From f64ba6ea422f9e85fb661ec1ec62ca6eef7c33c3 Mon Sep 17 00:00:00 2001 From: Jim Blandy Date: Wed, 19 May 1993 00:19:16 +0000 Subject: [PATCH] * xfns.c (x_set_menu_bar_lines): Minibuffer-only frames can't have menu bars. --- src/xfns.c | 7 +++++++ 1 file changed, 7 insertions(+) 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) 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