]> git.eshelyaron.com Git - emacs.git/commitdiff
(edt-default-emulation-setup): Share global-buffers-menu-map with the
authorChong Yidong <cyd@stupidchicken.com>
Mon, 18 Aug 2008 19:07:59 +0000 (19:07 +0000)
committerChong Yidong <cyd@stupidchicken.com>
Mon, 18 Aug 2008 19:07:59 +0000 (19:07 +0000)
emulated global map.

lisp/emulation/edt.el

index bcfb7977191b4e421236597c11f1814fd0c15246..32661b47f504b4bb00cf7d20b3ed1d077f312797 100644 (file)
@@ -2211,7 +2211,11 @@ Optional argument USER-SETUP non-nil means  called from function
         (fset 'edt-emulation-on (symbol-function 'edt-select-user-global-map)))
     (progn
       (fset 'edt-emulation-on (symbol-function 'edt-select-default-global-map))
-      (edt-select-default-global-map))))
+      (edt-select-default-global-map)))
+  ;; We need to share `global-buffers-menu-map' with the saved global
+  ;; keymap, because `menu-bar-update-buffers' directly changes it.
+  (define-key (current-global-map) [menu-bar buffer]
+    (cons "Buffers" global-buffers-menu-map)))
 
 (defun edt-user-emulation-setup ()
   "Setup user custom emulation of DEC's EDT editor."