aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJim Blandy1993-05-19 00:19:16 +0000
committerJim Blandy1993-05-19 00:19:16 +0000
commitf64ba6ea422f9e85fb661ec1ec62ca6eef7c33c3 (patch)
treefcf1e1221c43f3735b30fe8752433b795fadef17 /src
parent7e773fb425c8de50d71643365ba125e716cac911 (diff)
downloademacs-f64ba6ea422f9e85fb661ec1ec62ca6eef7c33c3.tar.gz
emacs-f64ba6ea422f9e85fb661ec1ec62ca6eef7c33c3.zip
* xfns.c (x_set_menu_bar_lines): Minibuffer-only frames can't have
menu bars.
Diffstat (limited to 'src')
-rw-r--r--src/xfns.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/xfns.c b/src/xfns.c
index 9b9ecab6f3c..3e272cae31f 100644
--- a/src/xfns.c
+++ b/src/xfns.c
@@ -895,6 +895,13 @@ x_set_menu_bar_lines (f, value, oldval)
895 int nlines; 895 int nlines;
896 int olines = FRAME_MENU_BAR_LINES (f); 896 int olines = FRAME_MENU_BAR_LINES (f);
897 897
898 /* Right now, menu bars don't work properly in minibuf-only frames;
899 most of the commands try to apply themselves to the minibuffer
900 frame itslef, and get an error because you can't switch buffers
901 in or split the minibuffer window. */
902 if (FRAME_MINBUF_ONLY_P (f))
903 return;
904
898 if (XTYPE (value) == Lisp_Int) 905 if (XTYPE (value) == Lisp_Int)
899 nlines = XINT (value); 906 nlines = XINT (value);
900 else 907 else