summaryrefslogtreecommitdiff
path: root/lisp/startup.el
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1994-12-27 04:01:02 +0000
committerRichard M. Stallman <rms@gnu.org>1994-12-27 04:01:02 +0000
commitd07dd1586cb83493cedd3c2ad0274f47fe204254 (patch)
treec75a2ec43669cb4f0e5887518af32974761184b6 /lisp/startup.el
parenta8625a7cd4907e2086ddcc14befae9e48c7b8a9c (diff)
downloademacs-d07dd1586cb83493cedd3c2ad0274f47fe204254.tar.gz
(command-line-1): Split startup msg into two parts.
Add something about C-mouse-3 when on a window system. (command-line-1): If help-command has no key binding, say `M-x help', not `M-x help-command'.
Diffstat (limited to 'lisp/startup.el')
-rw-r--r--lisp/startup.el38
1 files changed, 27 insertions, 11 deletions
diff --git a/lisp/startup.el b/lisp/startup.el
index 0b34117a00f..d42544b5b0d 100644
--- a/lisp/startup.el
+++ b/lisp/startup.el
@@ -513,25 +513,41 @@ Copyright (C) 1994 Free Software Foundation, Inc.\n\n")
(if (and (eq (key-binding "\C-h") 'help-command)
(eq (key-binding "\C-xu") 'advertised-undo)
(eq (key-binding "\C-x\C-c") 'save-buffers-kill-emacs)
- (eq (key-binding "\C-h\C-c") 'describe-copying)
- (eq (key-binding "\C-h\C-d") 'describe-distribution)
- (eq (key-binding "\C-h\C-w") 'describe-no-warranty)
- (eq (key-binding "\C-ht") 'help-with-tutorial))
+ (eq (key-binding "\C-ht") 'help-with-tutorial)
+ (eq (key-binding "\C-hi") 'info))
(insert
"Type C-h for help; C-x u to undo changes. (`C-' means use CTRL key.)
To kill the Emacs job, type C-x C-c.
Type C-h t for a tutorial on using Emacs.
-Type C-h i to enter Info, which you can use to read GNU documentation.
-
+Type C-h i to enter Info, which you can use to read GNU documentation.")
+ (insert (substitute-command-keys
+ (format "Type %s for help; \\[advertised-undo] to undo changes. (`C-' means use CTRL key.)
+To kill the Emacs job, type \\[save-buffers-kill-emacs].
+Type \\[help-with-tutorial] for a tutorial on using Emacs.
+Type \\[info] to enter Info, which you can use to read GNU documentation."
+ (let ((where (where-is-internal
+ 'help-command nil t)))
+ (if where
+ (key-description where)
+ "M-x help"))))))
+
+ ;; Windows and MSDOS (currently) do not count as
+ ;; window systems, but do have mouse support.
+ (if (or (memq (system-type '(msdos windowsnt)))
+ window-system)
+ (insert "
+C-mouse-3 (third mouse button, with Control) gets a mode-specific menu."))
+ (insert "\n")
+ (if (and (eq (key-binding "\C-h\C-c") 'describe-copying)
+ (eq (key-binding "\C-h\C-d") 'describe-distribution)
+ (eq (key-binding "\C-h\C-w") 'describe-no-warranty))
+ (insert
+ "
GNU Emacs comes with ABSOLUTELY NO WARRANTY; type C-h C-w for full details.
You may give out copies of Emacs; type C-h C-c to see the conditions.
Type C-h C-d for information on getting the latest version.")
(insert (substitute-command-keys
- "Type \\[help-command] for help; \\[advertised-undo] to undo changes. (`C-' means use CTRL key.)
-To kill the Emacs job, type \\[save-buffers-kill-emacs].
-Type \\[help-with-tutorial] for a tutorial on using Emacs.
-Type \\[info] to enter Info, which you can use to read GNU documentation.
-
+ "
GNU Emacs comes with ABSOLUTELY NO WARRANTY; type \\[describe-no-warranty] for full details.
You may give out copies of Emacs; type \\[describe-copying] to see the conditions.
Type \\[describe-distribution] for information on getting the latest version.")))