aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1994-12-27 04:01:02 +0000
committerRichard M. Stallman1994-12-27 04:01:02 +0000
commite65a6404e54e6158ea0b6a4a74959dd08cd7b3b3 (patch)
tree0bafb9d77f7d886c2cd71014b547e6036c85c9b3
parent42269da571438a180a49f44bc2a62b73f51c8faf (diff)
downloademacs-e65a6404e54e6158ea0b6a4a74959dd08cd7b3b3.tar.gz
emacs-e65a6404e54e6158ea0b6a4a74959dd08cd7b3b3.zip
(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'.
-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")
513 (if (and (eq (key-binding "\C-h") 'help-command) 513 (if (and (eq (key-binding "\C-h") 'help-command)
514 (eq (key-binding "\C-xu") 'advertised-undo) 514 (eq (key-binding "\C-xu") 'advertised-undo)
515 (eq (key-binding "\C-x\C-c") 'save-buffers-kill-emacs) 515 (eq (key-binding "\C-x\C-c") 'save-buffers-kill-emacs)
516 (eq (key-binding "\C-h\C-c") 'describe-copying) 516 (eq (key-binding "\C-ht") 'help-with-tutorial)
517 (eq (key-binding "\C-h\C-d") 'describe-distribution) 517 (eq (key-binding "\C-hi") 'info))
518 (eq (key-binding "\C-h\C-w") 'describe-no-warranty)
519 (eq (key-binding "\C-ht") 'help-with-tutorial))
520 (insert 518 (insert
521 "Type C-h for help; C-x u to undo changes. (`C-' means use CTRL key.) 519 "Type C-h for help; C-x u to undo changes. (`C-' means use CTRL key.)
522To kill the Emacs job, type C-x C-c. 520To kill the Emacs job, type C-x C-c.
523Type C-h t for a tutorial on using Emacs. 521Type C-h t for a tutorial on using Emacs.
524Type C-h i to enter Info, which you can use to read GNU documentation. 522Type C-h i to enter Info, which you can use to read GNU documentation.")
525 523 (insert (substitute-command-keys
524 (format "Type %s for help; \\[advertised-undo] to undo changes. (`C-' means use CTRL key.)
525To kill the Emacs job, type \\[save-buffers-kill-emacs].
526Type \\[help-with-tutorial] for a tutorial on using Emacs.
527Type \\[info] to enter Info, which you can use to read GNU documentation."
528 (let ((where (where-is-internal
529 'help-command nil t)))
530 (if where
531 (key-description where)
532 "M-x help"))))))
533
534 ;; Windows and MSDOS (currently) do not count as
535 ;; window systems, but do have mouse support.
536 (if (or (memq (system-type '(msdos windowsnt)))
537 window-system)
538 (insert "
539C-mouse-3 (third mouse button, with Control) gets a mode-specific menu."))
540 (insert "\n")
541 (if (and (eq (key-binding "\C-h\C-c") 'describe-copying)
542 (eq (key-binding "\C-h\C-d") 'describe-distribution)
543 (eq (key-binding "\C-h\C-w") 'describe-no-warranty))
544 (insert
545 "
526GNU Emacs comes with ABSOLUTELY NO WARRANTY; type C-h C-w for full details. 546GNU Emacs comes with ABSOLUTELY NO WARRANTY; type C-h C-w for full details.
527You may give out copies of Emacs; type C-h C-c to see the conditions. 547You may give out copies of Emacs; type C-h C-c to see the conditions.
528Type C-h C-d for information on getting the latest version.") 548Type C-h C-d for information on getting the latest version.")
529 (insert (substitute-command-keys 549 (insert (substitute-command-keys
530 "Type \\[help-command] for help; \\[advertised-undo] to undo changes. (`C-' means use CTRL key.) 550 "
531To kill the Emacs job, type \\[save-buffers-kill-emacs].
532Type \\[help-with-tutorial] for a tutorial on using Emacs.
533Type \\[info] to enter Info, which you can use to read GNU documentation.
534
535GNU Emacs comes with ABSOLUTELY NO WARRANTY; type \\[describe-no-warranty] for full details. 551GNU Emacs comes with ABSOLUTELY NO WARRANTY; type \\[describe-no-warranty] for full details.
536You may give out copies of Emacs; type \\[describe-copying] to see the conditions. 552You may give out copies of Emacs; type \\[describe-copying] to see the conditions.
537Type \\[describe-distribution] for information on getting the latest version."))) 553Type \\[describe-distribution] for information on getting the latest version.")))