aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1995-10-31 14:41:51 +0000
committerRichard M. Stallman1995-10-31 14:41:51 +0000
commit3ede3ecef441b136dbf3048353f6697f647ed454 (patch)
tree9fd7ce5d3da22773b6f1ba9b99b9fb6999b445d0
parent8e6f69ce8902439b89669a5fbfbfc87083d3742f (diff)
downloademacs-3ede3ecef441b136dbf3048353f6697f647ed454.tar.gz
emacs-3ede3ecef441b136dbf3048353f6697f647ed454.zip
(command-line-1): Say how to invoke menu bar, if not X.
(command-line): If not X, do enable menu bar.
-rw-r--r--lisp/startup.el11
1 files changed, 9 insertions, 2 deletions
diff --git a/lisp/startup.el b/lisp/startup.el
index d02593d61e0..0917557a497 100644
--- a/lisp/startup.el
+++ b/lisp/startup.el
@@ -456,8 +456,8 @@ this prefix to create a unique file name.")
456 (if (fboundp 'frame-initialize) 456 (if (fboundp 'frame-initialize)
457 (frame-initialize)) 457 (frame-initialize))
458 ;; If frame was created with a menu bar, set menu-bar-mode on. 458 ;; If frame was created with a menu bar, set menu-bar-mode on.
459 (if (and (eq window-system 'x) 459 (if (or (not (eq window-system 'x))
460 (> (cdr (assq 'menu-bar-lines (frame-parameters))) 0)) 460 (> (cdr (assq 'menu-bar-lines (frame-parameters))) 0))
461 (menu-bar-mode t)) 461 (menu-bar-mode t))
462 462
463 (run-hooks 'before-init-hook) 463 (run-hooks 'before-init-hook)
@@ -636,6 +636,13 @@ Type \\[info] to enter Info, which you can use to read GNU documentation."
636 (if where 636 (if where
637 (key-description where) 637 (key-description where)
638 "M-x help")))))) 638 "M-x help"))))))
639 ;; Say how to use the menu bar
640 ;; if that is not with the mouse.
641 (if (not (assq 'display (frame-parameters)))
642 (if (eq (key-binding "\M-`") 'tmm-menubar)
643 (insert "\n\nType M-` to use the menu bar.")
644 (insert (substitute-command-keys
645 "\n\nType \\[tmm-menubar] to use the menu bar."))))
639 646
640 ;; Windows and MSDOS (currently) do not count as 647 ;; Windows and MSDOS (currently) do not count as
641 ;; window systems, but do have mouse support. 648 ;; window systems, but do have mouse support.