diff lisp/startup.el @ 8759:19d9177069c4

(command-line): If initial X frame has a menu bar, mark menu-bar-mode as on.
author Richard M. Stallman <rms@gnu.org>
date Thu, 15 Sep 1994 20:09:49 +0000
parents db4473742de7
children 54b7aaded223
line wrap: on
line diff
--- a/lisp/startup.el	Thu Sep 15 08:45:46 1994 +0000
+++ b/lisp/startup.el	Thu Sep 15 20:09:49 1994 +0000
@@ -313,6 +313,10 @@
       (face-initialize))
   (if (fboundp 'frame-initialize)
       (frame-initialize))
+  ;; If frame was created with a menu bar, set menu-bar-mode on.
+  (if (and (eq window-system 'x)
+	   (> (cdr (assq 'menu-bar-lines (frame-parameters))) 0))
+      (menu-bar-mode t))
 
   (run-hooks 'before-init-hook)