+2000-10-26 Katsumi Yamaoka <yamaoka@jpl.org>
+
+ * wl-e21.el (wl-message-overload-functions): Do nothing if
+ `current-local-map' is not available.
+ (wl-e21-setup-message-toolbar): Allow the argument `keymap'.
+
2000-10-26 TAKAHASHI Kaoru <kaoru@kaisei.org>
* wl-fldmgr.el (wl-fldmgr-save-folders): Fixed permission lateral
(wl-e21-make-toolbar-buttons wl-summary-mode-map wl-summary-toolbar)))
(eval-when-compile
- (defsubst wl-e21-setup-message-toolbar ()
+ (defsubst wl-e21-setup-message-toolbar (keymap)
(and wl-use-toolbar
(display-graphic-p)
(wl-e21-setup-toolbar wl-message-toolbar)
- (wl-e21-make-toolbar-buttons (current-local-map) wl-message-toolbar)))
+ (wl-e21-make-toolbar-buttons keymap wl-message-toolbar)))
(defsubst wl-e21-setup-draft-toolbar ()
(and wl-use-toolbar
(defalias 'wl-setup-summary 'wl-e21-setup-summary-toolbar)
(defun wl-message-overload-functions ()
- (wl-e21-setup-message-toolbar)
(let ((keymap (current-local-map)))
- (define-key keymap "l" 'wl-message-toggle-disp-summary)
- (define-key keymap [mouse-2] 'wl-message-refer-article-or-url)
- (define-key keymap [mouse-4] 'wl-message-wheel-down)
- (define-key keymap [mouse-5] 'wl-message-wheel-up)
- (define-key keymap [S-mouse-4] 'wl-message-wheel-down)
- (define-key keymap [S-mouse-5] 'wl-message-wheel-up)
- (set-keymap-parent wl-message-button-map keymap))
- (define-key wl-message-button-map [mouse-2] 'wl-message-button-dispatcher))
+ (when keymap
+ (wl-e21-setup-message-toolbar keymap)
+ (define-key keymap "l" 'wl-message-toggle-disp-summary)
+ (define-key keymap [mouse-2] 'wl-message-refer-article-or-url)
+ (define-key keymap [mouse-4] 'wl-message-wheel-down)
+ (define-key keymap [mouse-5] 'wl-message-wheel-up)
+ (define-key keymap [S-mouse-4] 'wl-message-wheel-down)
+ (define-key keymap [S-mouse-5] 'wl-message-wheel-up)
+ (set-keymap-parent wl-message-button-map keymap)
+ (define-key wl-message-button-map
+ [mouse-2] 'wl-message-button-dispatcher))))
(defun wl-message-wheel-up (event)
(interactive "e")