aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1994-07-26 19:57:59 +0000
committerRichard M. Stallman1994-07-26 19:57:59 +0000
commit4d587a6ce1f09acda481b9a0983c0460faa05f48 (patch)
tree303b1a1efb5ecbcd7b936dfee3610ce053e8e60d
parentcd33a5a086d82618167efebca2d3ea1927a09e57 (diff)
downloademacs-4d587a6ce1f09acda481b9a0983c0460faa05f48.tar.gz
emacs-4d587a6ce1f09acda481b9a0983c0460faa05f48.zip
(menu-bar-update-buffers): Use (current-global-map), not global-map.
-rw-r--r--lisp/menu-bar.el4
1 files changed, 2 insertions, 2 deletions
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.")
291 291
292(defun menu-bar-update-buffers () 292(defun menu-bar-update-buffers ()
293 ;; If user discards the Buffers item, play along. 293 ;; If user discards the Buffers item, play along.
294 (and (lookup-key global-map [menu-bar buffer]) 294 (and (lookup-key (current-global-map) [menu-bar buffer])
295 (frame-or-buffer-changed-p) 295 (frame-or-buffer-changed-p)
296 (let ((buffers (buffer-list)) 296 (let ((buffers (buffer-list))
297 (frames (frame-list)) 297 (frames (frame-list))
@@ -379,7 +379,7 @@ A large number or nil slows down menu responsiveness.")
379 (setq buffers-menu (cons 'keymap buffers-menu))) 379 (setq buffers-menu (cons 'keymap buffers-menu)))
380 (if frames-menu 380 (if frames-menu
381 (setq frames-menu (cons 'keymap frames-menu))) 381 (setq frames-menu (cons 'keymap frames-menu)))
382 (define-key global-map [menu-bar buffer] 382 (define-key (current-global-map) [menu-bar buffer]
383 (cons "Buffers" 383 (cons "Buffers"
384 (if (and buffers-menu frames-menu) 384 (if (and buffers-menu frames-menu)
385 (list 'keymap "Buffers and Frames" 385 (list 'keymap "Buffers and Frames"