Mercurial > emacs
changeset 2880:9a78169e44df
* xfns.c (x_set_menu_bar_lines): Minibuffer-only frames can't have
menu bars.
author | Jim Blandy <jimb@redhat.com> |
---|---|
date | Wed, 19 May 1993 00:19:16 +0000 |
parents | 48dd9b2361df |
children | 11eced50eaa6 |
files | src/xfns.c |
diffstat | 1 files changed, 7 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/xfns.c Tue May 18 23:25:21 1993 +0000 +++ b/src/xfns.c Wed May 19 00:19:16 1993 +0000 @@ -895,6 +895,13 @@ 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