Mercurial > emacs
changeset 97543:e4ee733b4030
(edt-default-emulation-setup): Share global-buffers-menu-map with the
emulated global map.
author | Chong Yidong <cyd@stupidchicken.com> |
---|---|
date | Mon, 18 Aug 2008 19:07:59 +0000 |
parents | 0cc158540dbc |
children | abca40c62d44 |
files | lisp/emulation/edt.el |
diffstat | 1 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/emulation/edt.el Mon Aug 18 19:07:45 2008 +0000 +++ b/lisp/emulation/edt.el Mon Aug 18 19:07:59 2008 +0000 @@ -2211,7 +2211,11 @@ (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."