[vine-users:081922] Re: Mew and link click

Tatsuo Ishii t-ishii @ sra.co.jp
2012年 6月 13日 (水) 13:29:33 JST


>> 石井と申します。
>> 
>> Vine 6.0でMewでメールの読み書きをしています。以前(Vine 5)はできていたの
>> ですが、Mew messageの中にURLリンクがあり、そこをマウスでクリック
>> (mouse-2)してブラウザ(Firefox)に表示するのができなくなってしまいました。
>> 手動で browse-url-at-point を実行してもやはりできません。
>> 確認すべきポイントなどありましたらご教示いただけないでしょうか?
> 
> 自己フォローです。結論から言うと、firewallの内側にいるときに失敗するよ
> うです。
> 
> trace-functionでbrowse-url-at-pointをトレースしたところ、
> 1 -> browse-url-at-point: arg=nil
> 1 <- browse-url-at-point: #<process xdg-open http://mail.postgresql.org...>
> 
> となり、xdg-open を呼び出してURLを表示していることが分かりました。
> xdg-open(shell scriptです)を直接叩いてみると、
[略]
> となり、gvfs-open がfirewallを超えられないのでエラーになっていることが
> 分かりました。こういう動作が正しいのかどうか分かりませんが、原因がわかっ
> たので、Mewやbrowse.elの設定でどうにかならないものなのか調べてみます。

結局、browse-url-xdg-open-program をxdg-openからfirefoxに変更することで
目的が達成できました。emacsから"customize"を叩き、
Hypertext->Browse-urlグループを表示、browse-url-xdg-open-program を
xdg-openからfirefoxに変更できました。結果は、$HOME/.emacs.d/init.elに

(custom-set-variables
  ;; custom-set-variables was added by Custom.
  ;; If you edit it by hand, you could mess it up, so be careful.
  ;; Your init file should contain only one such instance.
  ;; If there is more than one, they won't work right.
 '(browse-url-xdg-open-program "firefox"))

のように記録されます。
--
Tatsuo Ishii
SRA OSS, Inc. Japan
English: http://www.sraoss.co.jp/index_en.php
Japanese: http://www.sraoss.co.jp


vine-users メーリングリストの案内