From: Chong Yidong Date: Mon, 18 Aug 2008 19:09:23 +0000 (+0000) Subject: (edt-default-emulation-setup): Share global-buffers-menu-map with the X-Git-Tag: emacs-pretest-22.2.91~22 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=6bfebcda22fe89c82c5a45b0664ae5d6926fcaed;p=emacs.git (edt-default-emulation-setup): Share global-buffers-menu-map with the emulated global map. --- diff --git a/lisp/emulation/edt.el b/lisp/emulation/edt.el index 880bc0b55c6..3b180b935c7 100644 --- a/lisp/emulation/edt.el +++ b/lisp/emulation/edt.el @@ -2230,7 +2230,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."