changeset 2695:e04471272862

Don't add menu bar to minibuffer-only frames.
author Richard M. Stallman <rms@gnu.org>
date Sat, 08 May 1993 16:45:38 +0000
parents ca45565a3392
children 479c78c63f89
files lisp/menu-bar.el
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/menu-bar.el	Sat May 08 16:29:04 1993 +0000
+++ b/lisp/menu-bar.el	Sat May 08 16:45:38 1993 +0000
@@ -194,9 +194,11 @@
 ;;;	       (or (buffer-file-name) ""))))))
 
 ;; Give all existing frames a menu bar.
+;; (Except for minibuffer-only frames.)
 (let ((frames (frame-list)))
   (while frames
-    (modify-frame-parameters (car frames) '((menu-bar-lines . 1)))
+    (or (eq 'only (cdr (assq 'minibuffer (frame-parameters (car frames)))))
+	(modify-frame-parameters (car frames) '((menu-bar-lines . 1))))
     (setq frames (cdr frames))))
 
 ;; Make frames created from now on have a menu bar.