Don't add menu bar to minibuffer-only frames.
This commit is contained in:
parent
99e2d9a915
commit
e5a10c8169
1 changed files with 3 additions and 1 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Reference in a new issue