[Date Prev][Date Next][Thread Prev][][Date Index][Thread Index]

Re: tab? session?



>>>>> In [emacs-w3m : No.08695] 山岡 wrote:

>> *-menu-commands を defcustom で設定すると、新たに w3m.el に追加
>> されても反映しなくなっちゃうので、あまりやりたくないです。

> えっと...あ、そういうことか。それって defcustom の根本的な欠点か
> もしれませんね。うーむ、二の句が続かない...

こういうものを作ればいいでしょうか。

(defcustom w3m-commands-focus-on-buffers-in-target
  '(w3m-goto-url-new-session
    w3m-copy-buffer
    w3m-view-url-with-external-browser
    w3m-bookmark-add-current-url)
  "A list of commands that focus on emacs-w3m buffers in target.
If a command which is listed in this variable is invoked by the menu,
the buffer in target will be raised and focused.  This affects the
menus that are made according to the `w3m-tab-button-menu-commands'
variable."
  :set (lambda (symbol value)
	 (w3m-tab-button-menu-commands の値を変更)
	 (それに基づいてメニューを作り直す)))

;; 別件 (gnus-bug) で呼ばれてるので、後で (もしかしたら来週)。