aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1993-05-08 16:45:38 +0000
committerRichard M. Stallman1993-05-08 16:45:38 +0000
commite5a10c81691fb76bbb0b010a914e28efc088baf6 (patch)
treecbe6ba87a278d8a3a08a649ddf55ba0dd2f0714d
parent99e2d9a9152f55ebc40fd3f4eb1e3c22d2d662c5 (diff)
downloademacs-e5a10c81691fb76bbb0b010a914e28efc088baf6.tar.gz
emacs-e5a10c81691fb76bbb0b010a914e28efc088baf6.zip
Don't add menu bar to minibuffer-only frames.
-rw-r--r--lisp/menu-bar.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/menu-bar.el b/lisp/menu-bar.el
index a805999a086..5785a6cc4ae 100644
--- a/lisp/menu-bar.el
+++ b/lisp/menu-bar.el
@@ -194,9 +194,11 @@ and selects that window."
194;;; (or (buffer-file-name) "")))))) 194;;; (or (buffer-file-name) ""))))))
195 195
196;; Give all existing frames a menu bar. 196;; Give all existing frames a menu bar.
197;; (Except for minibuffer-only frames.)
197(let ((frames (frame-list))) 198(let ((frames (frame-list)))
198 (while frames 199 (while frames
199 (modify-frame-parameters (car frames) '((menu-bar-lines . 1))) 200 (or (eq 'only (cdr (assq 'minibuffer (frame-parameters (car frames)))))
201 (modify-frame-parameters (car frames) '((menu-bar-lines . 1))))
200 (setq frames (cdr frames)))) 202 (setq frames (cdr frames))))
201 203
202;; Make frames created from now on have a menu bar. 204;; Make frames created from now on have a menu bar.