EmacsCE+navi2chで快適2chアクセスat MOBILE
EmacsCE+navi2chで快適2chアクセス - 暇つぶし2ch233:(not 1)
01/10/03 23:14
もいっちょ。
>>208
> でも、Navi2chからブラウザを何回か呼び出してると、
> ハングしちゃうのはどうにかならんものでしょうか。

>>184 に書いてある
Navi2chがプロセスのしっぽを握ってるっていうのは ftxBrowser のプロセスが何個も
残っちゃうって事ですよね?
だったら以下の事を試してもらえますか?

(start-process "test" (current-buffer)
shell-file-name shell-command-switch
"path/to/ftxBrowser")
を評価して ftxBrowser を起動("path/to/ftxBrowser" ftxBrowser のある場所)した後に、
(delete-process "test")
を評価してさっき起動したプロセスを殺す。
その後、
M-x list-processes RET
としてプロセスが残っているかどうか確認する。

もしそれで、ftxBrowser が動いていてプロセスが残っていないのなら、

(setq browse-url-ftxbrowser-sleep-time 1)
(setq browse-url-ftxbrowser-program "path/to/ftxBrowser")
(setq browse-url-browser-function 'browse-url-ftxbrowser)
(defun browse-url-ftxbrowser (url &optional new-window)
(interactive (browse-url-interactive-arg "URL: "))
(let ((proc (start-process "ftx" (current-buffer)
shell-file-name shell-command-switch
browse-url-ftxbrowser-program)))
(sleep-for browse-url-ftxbrowser-sleep-time)
(delete-process proc)))

を .emacs に書いておけば Emacs がプロセスを手放すようになると思います。
browse-url-ftxbrowser-sleep-time と、browse-url-ftxbrowser-program は適当に変
えて下さい。


次ページ
続きを表示
1を表示
最新レス表示
レスジャンプ
類似スレ一覧
スレッドの検索
話題のニュース
おまかせリスト
オプション
しおりを挟む
スレッドに書込
スレッドの一覧
暇つぶし2ch