Fix bug #1077 with popping new frames from a minibuffer-only frame.
commitf68ab99bc19e7819788acd173e989aa5f52d94f7
authorEli Zaretskii <eliz@gnu.org>
Thu, 9 Dec 2010 19:07:53 +0000 (9 21:07 +0200)
committerEli Zaretskii <eliz@gnu.org>
Thu, 9 Dec 2010 19:07:53 +0000 (9 21:07 +0200)
tree4b2cd2033ead2a4e5464096791e365a06df30f84
parent99139556b846a507d121a436786039d7c716a5a0
Fix bug #1077 with popping new frames from a minibuffer-only frame.

 menu-bar.el (menu-bar-frame-for-menubar, menu-bar-positive-p):
 New functions.
 (menu-bar-showhide-menu) <menu-bar-mode, showhide-tool-bar>: Use
 them instead of `nil' and `>', respectively.
 (menu-bar-showhide-tool-bar-menu): Use menu-bar-frame-for-menubar
 instead of `nil'.
 (toggle-menu-bar-mode-from-frame): Use menu-bar-frame-for-menubar
 and menu-bar-positive-p instead of `nil' and `>', respectively.
lisp/ChangeLog
lisp/menu-bar.el