diff options
| author | Jim Blandy | 1993-05-19 00:19:16 +0000 |
|---|---|---|
| committer | Jim Blandy | 1993-05-19 00:19:16 +0000 |
| commit | f64ba6ea422f9e85fb661ec1ec62ca6eef7c33c3 (patch) | |
| tree | fcf1e1221c43f3735b30fe8752433b795fadef17 | |
| parent | 7e773fb425c8de50d71643365ba125e716cac911 (diff) | |
| download | emacs-f64ba6ea422f9e85fb661ec1ec62ca6eef7c33c3.tar.gz emacs-f64ba6ea422f9e85fb661ec1ec62ca6eef7c33c3.zip | |
* xfns.c (x_set_menu_bar_lines): Minibuffer-only frames can't have
menu bars.
| -rw-r--r-- | src/xfns.c | 7 |
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 |