Commit 33590869 authored by Eli Zaretskii's avatar Eli Zaretskii
Browse files

Fix TTY menu invocation via M-x.

 lisp/menu-bar.el (menu-bar-open): Fix invocation via M-x by forcing
 the update of the menu bar.
parent c4e6b585
2014-06-02 Eli Zaretskii <>
* menu-bar.el (menu-bar-open): Fix invocation via M-x.
2014-06-01 Eli Zaretskii <>
* simple.el (keyboard-quit): Force update of mode lines, to remove
......@@ -2267,6 +2267,12 @@ If FRAME is nil or not given, use the selected frame."
((eq type 'w32) (w32-menu-bar-open frame))
((and (null tty-menu-open-use-tmm)
(not (zerop (or (frame-parameter nil 'menu-bar-lines) 0))))
;; Make sure the menu bar is up to date. One situation where
;; this is important is when this function is invoked by name
;; via M-x, in which case the menu bar includes the "Minibuf"
;; menu item that should be removed when we exit the minibuffer.
(sit-for 0)
(let* ((x tty-menu--initial-menu-x)
(menu (menu-bar-menu-at-x-y x 0 frame)))
(popup-menu (or
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