R.A. Epigonos et al.

[wanderlust] 送信時にスクロールで内容確認する Wanderlust/2.15.5 (Almost Unreal)

debianでwlパッケージ(Wanderlust/2.14.0 (Africa))をwl-betaパッケージ(Wanderlust/2.15.5 (Almost Unreal))に変えた。これによって、送信確認時の表示が"Send current draft? <y/n/j(down)/k(up)>"から"Send current draft? (y or n)"になってしまい、スクロールできなくなってしまった。これを解決するにはwl-draft-send-confirm-typeに適切な値を設定すればよい。これを行うにはdescribe-variableを使う。

とりあえずemacsとwlを起動。

$ emacs -f wl

M-x で describe-variable を起動。編集したい変数を入力。

M-x describe-variable
Describe variable: wl-draft-send-confirm-type

新しいバッファに以下のようなメッセージが流れる。wl-draft-send-confirm-typeの現在の値はy-or-n-pであることがわかる。customizeにアンダーラインが惹かれている。これにカーソルを合わせてenterで編集画面を出せる。

wl-draft-send-confirm-type is a variable defined in `wl-vars.el'.
Its value is y-or-n-p

Documentation:
*Confirmation type or function to use when send a message.

You can customize this variable.

編集画面が以下。[Value Menu] を押せば設定可能な値を見ることが出来る。

Editing a setting changes only the text in this buffer.
To apply your changes, use the Save or Set buttons.
Saving a change normally works by editing your init file.
For details, see [Saving Customizations] in the [Emacs manual].


 Operate on all settings in this buffer that are not marked HIDDEN:
 [Set for current session] [Save for future sessions]
 [Undo edits] [Reset to saved] [Erase customizations]   [Exit]

Wl Draft Send Confirm Type: [Hide Value] [Value Menu] y-or-n-p
Ask user a "y or n" question.  Return t if answer is "y". [More]
   [State]: STANDARD.
   Confirmation type or function to use when send a message.
Groups: [Wl Draft]

設定可能な値は下のようになっている。

Available choices:

0 = y or n with scroll (j/k)
1 = y or n with scroll (SPC/BS)
2 = y-or-n-p
3 = yes-or-no-p
4 = Other function

C-g = Quit

古いバージョンと同じ挙動にするには0を選択する。ミニバッファに以下のようなメッセージになる。

Choice: 0
To install your edits, invoke [State] and choose the Set operation

言われたとおり [State] を押すと以下のようになる。

Available choices: 1

0 = Set for Current Session
1 = Save for Future Sessions
2 = Undo Edits
4 = Erase Customization
7 = Add Comment
: = Show Saved Lisp Expression

C-g = Quit

今回は1を選んで設定を永続的なものにする。

Operation on Wl Draft Send Confirm Type: 1

以下の内容が~/.emacs.d/init.el に書き込まれる。この箇所を.wlに移動させてもOK

(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.
 '(wl-draft-send-confirm-type (quote scroll-by-j/k)))
(custom-set-faces
  ;; custom-set-faces 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.
 )

これで送信時の確認にスクロール機能が加わる。

リファレンス

  1. wl-draft-send-confirm-type default
  2. muneda's diary(2007-08-20)
  3. GNU Emacs Lispリファレンスマニュアル: カスタマイズ定義の書き方
  4. Emacsカスタマイズ入門(Emacsをsetqする方法)
  5. Send current draft? <y/n/j(down)/k(up)> - Google 検索

ソーシャルブックマーク

  1. はてなブックマーク
  2. Google Bookmarks
  3. del.icio.us

ChangeLog

  1. Posted: 2010-05-19T07:43:25+09:00
  2. Modified: 2010-05-19T07:43:25+09:00
  3. Generated: 2023-08-27T23:09:14+09:00