(msb-mode): Use msb-mode-map.
;; C-down-mouse-1).
(defvar msb-mode-map
(let ((map (make-sparse-keymap "Msb")))
- (mapcar (lambda (key)
- (define-key map key #'msb))
- (where-is-internal 'mouse-buffer-menu (make-sparse-keymap)))
+ (substitute-key-definition 'mouse-buffer-menu 'msb map global-map)
map))
;;;###autoload
With arg, turn Msb mode on if and only if arg is positive.
This mode overrides the binding(s) of `mouse-buffer-menu' to provide a
different buffer menu using the function `msb'."
- nil nil nil :global t
+ nil nil msb-mode-map
+ :global t
(if msb-mode
(progn
(add-hook 'menu-bar-update-hook 'msb-menu-bar-update-buffers)