diff options
| author | Richard M. Stallman | 1994-12-27 04:01:02 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1994-12-27 04:01:02 +0000 |
| commit | e65a6404e54e6158ea0b6a4a74959dd08cd7b3b3 (patch) | |
| tree | 0bafb9d77f7d886c2cd71014b547e6036c85c9b3 | |
| parent | 42269da571438a180a49f44bc2a62b73f51c8faf (diff) | |
| download | emacs-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.el | 38 |
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.) |
| 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."))) |