]> git.eshelyaron.com Git - emacs.git/commitdiff
(frame-notice-user-settings): Make menu-bar-mode
authorRichard M. Stallman <rms@gnu.org>
Sat, 25 Jun 1994 18:20:55 +0000 (18:20 +0000)
committerRichard M. Stallman <rms@gnu.org>
Sat, 25 Jun 1994 18:20:55 +0000 (18:20 +0000)
and default-frame-alist consistent with each other.

lisp/frame.el

index e76ac2f1fe7026df2088c4267f090de817a4ae56..524a9f3d8a5502df0904947df370565f45b7e3c7 100644 (file)
@@ -166,6 +166,14 @@ These supersede the values given in `default-frame-alist'.")
 ;;; information to which we must react; do what needs to be done.
 (defun frame-notice-user-settings ()
 
+  ;; Make menu-bar-mode and default-frame-alist consistent.
+  (let ((default (assq 'menu-bar-lines default-frame-alist)))
+    (if default
+       (setq menu-bar-mode (not (eq (cdr default) 0)))
+      (setq default-frame-alist
+           (cons (cons 'menu-bar-lines (if menu-bar-mode 1 0))
+                 default-frame-alist))))
+
   ;; Creating and deleting frames may shift the selected frame around,
   ;; and thus the current buffer.  Protect against that.  We don't
   ;; want to use save-excursion here, because that may also try to set