From: Richard M. Stallman Date: Tue, 26 Jul 1994 19:57:59 +0000 (+0000) Subject: (menu-bar-update-buffers): Use (current-global-map), not global-map. X-Git-Tag: emacs-19.34~7506 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=4d587a6ce1f09acda481b9a0983c0460faa05f48;p=emacs.git (menu-bar-update-buffers): Use (current-global-map), not global-map. --- diff --git a/lisp/menu-bar.el b/lisp/menu-bar.el index 1030db5131a..fca39856a8c 100644 --- a/lisp/menu-bar.el +++ b/lisp/menu-bar.el @@ -291,7 +291,7 @@ A large number or nil slows down menu responsiveness.") (defun menu-bar-update-buffers () ;; If user discards the Buffers item, play along. - (and (lookup-key global-map [menu-bar buffer]) + (and (lookup-key (current-global-map) [menu-bar buffer]) (frame-or-buffer-changed-p) (let ((buffers (buffer-list)) (frames (frame-list)) @@ -379,7 +379,7 @@ A large number or nil slows down menu responsiveness.") (setq buffers-menu (cons 'keymap buffers-menu))) (if frames-menu (setq frames-menu (cons 'keymap frames-menu))) - (define-key global-map [menu-bar buffer] + (define-key (current-global-map) [menu-bar buffer] (cons "Buffers" (if (and buffers-menu frames-menu) (list 'keymap "Buffers and Frames"