diff options
author | Richard M. Stallman <rms@gnu.org> | 1994-09-15 20:09:49 +0000 |
---|---|---|
committer | Richard M. Stallman <rms@gnu.org> | 1994-09-15 20:09:49 +0000 |
commit | 1fe0333f4f77f58bf3112484ae39542e1e1ee267 (patch) | |
tree | 38afc3bb8a52103c55b459f1b646d609bdd7e426 /lisp/startup.el | |
parent | c7bcb20dc639b7dcef17928db688381eadefcd0f (diff) | |
download | emacs-1fe0333f4f77f58bf3112484ae39542e1e1ee267.tar.gz |
(command-line): If initial X frame has a menu bar, mark menu-bar-mode as on.
Diffstat (limited to 'lisp/startup.el')
-rw-r--r-- | lisp/startup.el | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lisp/startup.el b/lisp/startup.el index 6b646eed849..4de390c44a5 100644 --- a/lisp/startup.el +++ b/lisp/startup.el @@ -313,6 +313,10 @@ specified by the LC_ALL, LC_CTYPE and LANG environment variables.") (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) |