Commit 5ca114d1 authored by Stefan Monnier's avatar Stefan Monnier
Browse files

* lisp/menu-bar.el (popup-menu): Use key-binding.

parent cfeda390
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
......
......@@ -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.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment