changeset 31812:9214cf65b24b

(msb-mode-map): Use substitute-key-definition. (msb-mode): Use msb-mode-map.
author Dave Love <fx@gnu.org>
date Thu, 21 Sep 2000 14:36:55 +0000
parents 1a3a36f6811b
children b7491dcc3530
files lisp/msb.el
diffstat 1 files changed, 3 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/msb.el	Thu Sep 21 13:31:18 2000 +0000
+++ b/lisp/msb.el	Thu Sep 21 14:36:55 2000 +0000
@@ -1132,9 +1132,7 @@
 ;; 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 @@
 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)