diff options
author | Dave Love <fx@gnu.org> | 2000-09-21 14:36:55 +0000 |
---|---|---|
committer | Dave Love <fx@gnu.org> | 2000-09-21 14:36:55 +0000 |
commit | 8b618804f85246e8345d3fdb64a94bb008c727ab (patch) | |
tree | 2c6fe0c653e6b6d7d31dcf0ed653c741667926d7 /lisp/msb.el | |
parent | 43ccb598c7fc2c5c0601c8f9869a6b6f7a78b121 (diff) |
(msb-mode-map): Use substitute-key-definition.
(msb-mode): Use msb-mode-map.
Diffstat (limited to 'lisp/msb.el')
-rw-r--r-- | lisp/msb.el | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/lisp/msb.el b/lisp/msb.el index 119ec7f17f..14b9784b3b 100644 --- a/lisp/msb.el +++ b/lisp/msb.el @@ -1132,9 +1132,7 @@ variable `msb-menu-cond'." ;; 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 @@ -1143,7 +1141,8 @@ variable `msb-menu-cond'." 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) |