diff options
| author | Richard M. Stallman | 1994-09-15 20:09:49 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1994-09-15 20:09:49 +0000 |
| commit | 1fe0333f4f77f58bf3112484ae39542e1e1ee267 (patch) | |
| tree | 38afc3bb8a52103c55b459f1b646d609bdd7e426 | |
| parent | c7bcb20dc639b7dcef17928db688381eadefcd0f (diff) | |
| download | emacs-1fe0333f4f77f58bf3112484ae39542e1e1ee267.tar.gz emacs-1fe0333f4f77f58bf3112484ae39542e1e1ee267.zip | |
(command-line): If initial X frame has a menu bar, mark menu-bar-mode as on.
| -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.") | |||
| 313 | (face-initialize)) | 313 | (face-initialize)) |
| 314 | (if (fboundp 'frame-initialize) | 314 | (if (fboundp 'frame-initialize) |
| 315 | (frame-initialize)) | 315 | (frame-initialize)) |
| 316 | ;; If frame was created with a menu bar, set menu-bar-mode on. | ||
| 317 | (if (and (eq window-system 'x) | ||
| 318 | (> (cdr (assq 'menu-bar-lines (frame-parameters))) 0)) | ||
| 319 | (menu-bar-mode t)) | ||
| 316 | 320 | ||
| 317 | (run-hooks 'before-init-hook) | 321 | (run-hooks 'before-init-hook) |
| 318 | 322 | ||