diff options
| author | Richard M. Stallman <rms@gnu.org> | 1993-05-08 16:45:38 +0000 |
|---|---|---|
| committer | Richard M. Stallman <rms@gnu.org> | 1993-05-08 16:45:38 +0000 |
| commit | e5a10c81691fb76bbb0b010a914e28efc088baf6 (patch) | |
| tree | cbe6ba87a278d8a3a08a649ddf55ba0dd2f0714d /lisp/menu-bar.el | |
| parent | 99e2d9a9152f55ebc40fd3f4eb1e3c22d2d662c5 (diff) | |
| download | emacs-e5a10c81691fb76bbb0b010a914e28efc088baf6.tar.gz | |
Don't add menu bar to minibuffer-only frames.
Diffstat (limited to 'lisp/menu-bar.el')
| -rw-r--r-- | lisp/menu-bar.el | 4 |
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." ;;; (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. |
