mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-23 05:17:35 +00:00
* xfns.c (x_set_menu_bar_lines): Minibuffer-only frames can't have
menu bars.
This commit is contained in:
parent
7e773fb425
commit
f64ba6ea42
1 changed files with 7 additions and 0 deletions
|
|
@ -895,6 +895,13 @@ x_set_menu_bar_lines (f, value, oldval)
|
|||
int nlines;
|
||||
int olines = FRAME_MENU_BAR_LINES (f);
|
||||
|
||||
/* Right now, menu bars don't work properly in minibuf-only frames;
|
||||
most of the commands try to apply themselves to the minibuffer
|
||||
frame itslef, and get an error because you can't switch buffers
|
||||
in or split the minibuffer window. */
|
||||
if (FRAME_MINBUF_ONLY_P (f))
|
||||
return;
|
||||
|
||||
if (XTYPE (value) == Lisp_Int)
|
||||
nlines = XINT (value);
|
||||
else
|
||||
|
|
|
|||
Loading…
Reference in a new issue