aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/msb.el7
1 files changed, 3 insertions, 4 deletions
diff --git a/lisp/msb.el b/lisp/msb.el
index 119ec7f17f6..14b9784b3b8 100644
--- a/lisp/msb.el
+++ b/lisp/msb.el
@@ -1132,9 +1132,7 @@ variable `msb-menu-cond'."
1132;; C-down-mouse-1). 1132;; C-down-mouse-1).
1133(defvar msb-mode-map 1133(defvar msb-mode-map
1134 (let ((map (make-sparse-keymap "Msb"))) 1134 (let ((map (make-sparse-keymap "Msb")))
1135 (mapcar (lambda (key) 1135 (substitute-key-definition 'mouse-buffer-menu 'msb map global-map)
1136 (define-key map key #'msb))
1137 (where-is-internal 'mouse-buffer-menu (make-sparse-keymap)))
1138 map)) 1136 map))
1139 1137
1140;;;###autoload 1138;;;###autoload
@@ -1143,7 +1141,8 @@ variable `msb-menu-cond'."
1143With arg, turn Msb mode on if and only if arg is positive. 1141With arg, turn Msb mode on if and only if arg is positive.
1144This mode overrides the binding(s) of `mouse-buffer-menu' to provide a 1142This mode overrides the binding(s) of `mouse-buffer-menu' to provide a
1145different buffer menu using the function `msb'." 1143different buffer menu using the function `msb'."
1146 nil nil nil :global t 1144 nil nil msb-mode-map
1145 :global t
1147 (if msb-mode 1146 (if msb-mode
1148 (progn 1147 (progn
1149 (add-hook 'menu-bar-update-hook 'msb-menu-bar-update-buffers) 1148 (add-hook 'menu-bar-update-hook 'msb-menu-bar-update-buffers)