aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1994-06-25 18:20:55 +0000
committerRichard M. Stallman1994-06-25 18:20:55 +0000
commit2ffa6186965c268f10f8132423a5c32c06e79b53 (patch)
tree9c65d08060531c8f8a7fb1ced29923f306c03a64
parent7b7d6615835cfc88447376412384b1adeb1e4571 (diff)
downloademacs-2ffa6186965c268f10f8132423a5c32c06e79b53.tar.gz
emacs-2ffa6186965c268f10f8132423a5c32c06e79b53.zip
(frame-notice-user-settings): Make menu-bar-mode
and default-frame-alist consistent with each other.
-rw-r--r--lisp/frame.el8
1 files changed, 8 insertions, 0 deletions
diff --git a/lisp/frame.el b/lisp/frame.el
index e76ac2f1fe7..524a9f3d8a5 100644
--- a/lisp/frame.el
+++ b/lisp/frame.el
@@ -166,6 +166,14 @@ These supersede the values given in `default-frame-alist'.")
166;;; information to which we must react; do what needs to be done. 166;;; information to which we must react; do what needs to be done.
167(defun frame-notice-user-settings () 167(defun frame-notice-user-settings ()
168 168
169 ;; Make menu-bar-mode and default-frame-alist consistent.
170 (let ((default (assq 'menu-bar-lines default-frame-alist)))
171 (if default
172 (setq menu-bar-mode (not (eq (cdr default) 0)))
173 (setq default-frame-alist
174 (cons (cons 'menu-bar-lines (if menu-bar-mode 1 0))
175 default-frame-alist))))
176
169 ;; Creating and deleting frames may shift the selected frame around, 177 ;; Creating and deleting frames may shift the selected frame around,
170 ;; and thus the current buffer. Protect against that. We don't 178 ;; and thus the current buffer. Protect against that. We don't
171 ;; want to use save-excursion here, because that may also try to set 179 ;; want to use save-excursion here, because that may also try to set