comparison lisp/startup.el @ 10272:f4c81ad44719

(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'.
author Richard M. Stallman <rms@gnu.org>
date Tue, 27 Dec 1994 04:01:02 +0000
parents 55f7d03ce918
children abacb10bd5e6
comparison
equal deleted inserted replaced
10271:d20db86b0c0c 10272:f4c81ad44719
511 ;; If keys have their default meanings, 511 ;; If keys have their default meanings,
512 ;; use precomputed string to save lots of time. 512 ;; use precomputed string to save lots of time.
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.)
522 To kill the Emacs job, type C-x C-c. 520 To kill the Emacs job, type C-x C-c.
523 Type C-h t for a tutorial on using Emacs. 521 Type C-h t for a tutorial on using Emacs.
524 Type C-h i to enter Info, which you can use to read GNU documentation. 522 Type 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.)
525 To kill the Emacs job, type \\[save-buffers-kill-emacs].
526 Type \\[help-with-tutorial] for a tutorial on using Emacs.
527 Type \\[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 "
539 C-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 "
526 GNU Emacs comes with ABSOLUTELY NO WARRANTY; type C-h C-w for full details. 546 GNU Emacs comes with ABSOLUTELY NO WARRANTY; type C-h C-w for full details.
527 You may give out copies of Emacs; type C-h C-c to see the conditions. 547 You may give out copies of Emacs; type C-h C-c to see the conditions.
528 Type C-h C-d for information on getting the latest version.") 548 Type 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 "
531 To kill the Emacs job, type \\[save-buffers-kill-emacs].
532 Type \\[help-with-tutorial] for a tutorial on using Emacs.
533 Type \\[info] to enter Info, which you can use to read GNU documentation.
534
535 GNU Emacs comes with ABSOLUTELY NO WARRANTY; type \\[describe-no-warranty] for full details. 551 GNU Emacs comes with ABSOLUTELY NO WARRANTY; type \\[describe-no-warranty] for full details.
536 You may give out copies of Emacs; type \\[describe-copying] to see the conditions. 552 You may give out copies of Emacs; type \\[describe-copying] to see the conditions.
537 Type \\[describe-distribution] for information on getting the latest version."))) 553 Type \\[describe-distribution] for information on getting the latest version.")))
538 (set-buffer-modified-p nil) 554 (set-buffer-modified-p nil)
539 (sit-for 120)) 555 (sit-for 120))