]> git.eshelyaron.com Git - emacs.git/commitdiff
* lisp/menu-bar.el (popup-menu): Use key-binding.
authorStefan Monnier <monnier@iro.umontreal.ca>
Wed, 6 Nov 2013 17:18:02 +0000 (12:18 -0500)
committerStefan Monnier <monnier@iro.umontreal.ca>
Wed, 6 Nov 2013 17:18:02 +0000 (12:18 -0500)
lisp/ChangeLog
lisp/menu-bar.el

index 4740eab6ee6bd5564cea3112e74d040e06bcf8da..619bca2076bfd01c90cfaa828d4c4f74c57bd4ab 100644 (file)
@@ -1,3 +1,7 @@
+2013-11-06  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * menu-bar.el (popup-menu): Use key-binding.
+
 2013-11-06  Eli Zaretskii  <eliz@gnu.org>
 
        * menu-bar.el (popup-menu, menu-bar-open): When displaying TTY
index ae1edabf58390957340cd2529e449745d25bd080..13c4c36be17e775fedcc1af977f5f85be4c9a1f8 100644 (file)
@@ -2189,12 +2189,7 @@ FROM-MENU-BAR, if non-nil, means we are dropping one of menu-bar's menus."
                (setq position (list menu-symbol (list frame '(menu-bar)
                                                 event 0)))
                (setq map
-                     (or
-                      (lookup-key global-map (vector 'menu-bar menu-symbol))
-                      (lookup-key (current-local-map) (vector 'menu-bar
-                                                              menu-symbol))
-                      (cdar (minor-mode-key-binding (vector 'menu-bar
-                                                            menu-symbol)))))))
+                     (key-binding (vector 'menu-bar menu-symbol)))))
             ((and (not (keymapp map)) (listp map))
              ;; We were given a list of keymaps.  Search them all
              ;; in sequence until a first binding is found.