diff options
| author | Richard M. Stallman | 1995-11-14 18:28:49 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1995-11-14 18:28:49 +0000 |
| commit | 6695496f6c8693e765e6ff27514f71070c5df240 (patch) | |
| tree | 5ceb1dfebc883804b47b74e9069c450fa98214ef | |
| parent | 2dc3be7eba48b17a9eb8f02783e49999307491d0 (diff) | |
| download | emacs-6695496f6c8693e765e6ff27514f71070c5df240.tar.gz emacs-6695496f6c8693e765e6ff27514f71070c5df240.zip | |
(command-line-1): Reorganize the initial help output.
| -rw-r--r-- | lisp/startup.el | 31 |
1 files changed, 17 insertions, 14 deletions
diff --git a/lisp/startup.el b/lisp/startup.el index 7561d231a58..fd43d64f9de 100644 --- a/lisp/startup.el +++ b/lisp/startup.el | |||
| @@ -615,9 +615,12 @@ this prefix to create a unique file name.") | |||
| 615 | (setq menubar-bindings-done t) | 615 | (setq menubar-bindings-done t) |
| 616 | (unwind-protect | 616 | (unwind-protect |
| 617 | (progn | 617 | (progn |
| 618 | ;; The convention for this piece of code is that | ||
| 619 | ;; each piece of output starts with one or two newlines | ||
| 620 | ;; and does not end with any newlines. | ||
| 618 | (insert (emacs-version) | 621 | (insert (emacs-version) |
| 619 | " | 622 | " |
| 620 | Copyright (C) 1995 Free Software Foundation, Inc.\n\n") | 623 | Copyright (C) 1995 Free Software Foundation, Inc.") |
| 621 | ;; If keys have their default meanings, | 624 | ;; If keys have their default meanings, |
| 622 | ;; use precomputed string to save lots of time. | 625 | ;; use precomputed string to save lots of time. |
| 623 | (if (and (eq (key-binding "\C-h") 'help-command) | 626 | (if (and (eq (key-binding "\C-h") 'help-command) |
| @@ -625,13 +628,14 @@ Copyright (C) 1995 Free Software Foundation, Inc.\n\n") | |||
| 625 | (eq (key-binding "\C-x\C-c") 'save-buffers-kill-emacs) | 628 | (eq (key-binding "\C-x\C-c") 'save-buffers-kill-emacs) |
| 626 | (eq (key-binding "\C-ht") 'help-with-tutorial) | 629 | (eq (key-binding "\C-ht") 'help-with-tutorial) |
| 627 | (eq (key-binding "\C-hi") 'info)) | 630 | (eq (key-binding "\C-hi") 'info)) |
| 628 | (insert | 631 | (insert "\n |
| 629 | "Type C-h for help; C-x u to undo changes. (`C-' means use CTRL key.) | 632 | Type C-h for help; C-x u to undo changes. (`C-' means use CTRL key.) |
| 630 | To kill the Emacs job, type C-x C-c. | 633 | To kill the Emacs job, type C-x C-c. |
| 631 | Type C-h t for a tutorial on using Emacs. | 634 | Type C-h t for a tutorial on using Emacs. |
| 632 | Type C-h i to enter Info, which you can use to read GNU documentation.") | 635 | Type C-h i to enter Info, which you can use to read GNU documentation.") |
| 633 | (insert (substitute-command-keys | 636 | (insert (substitute-command-keys |
| 634 | (format "Type %s for help; \\[advertised-undo] to undo changes. (`C-' means use CTRL key.) | 637 | (format "\n |
| 638 | Type %s for help; \\[advertised-undo] to undo changes. (`C-' means use CTRL key.) | ||
| 635 | To kill the Emacs job, type \\[save-buffers-kill-emacs]. | 639 | To kill the Emacs job, type \\[save-buffers-kill-emacs]. |
| 636 | Type \\[help-with-tutorial] for a tutorial on using Emacs. | 640 | Type \\[help-with-tutorial] for a tutorial on using Emacs. |
| 637 | Type \\[info] to enter Info, which you can use to read GNU documentation." | 641 | Type \\[info] to enter Info, which you can use to read GNU documentation." |
| @@ -644,7 +648,7 @@ Type \\[info] to enter Info, which you can use to read GNU documentation." | |||
| 644 | ;; if that is not with the mouse. | 648 | ;; if that is not with the mouse. |
| 645 | (if (not (assq 'display (frame-parameters))) | 649 | (if (not (assq 'display (frame-parameters))) |
| 646 | (if (eq (key-binding "\M-`") 'tmm-menubar) | 650 | (if (eq (key-binding "\M-`") 'tmm-menubar) |
| 647 | (insert "\n\nType M-` to use the menu bar.") | 651 | (insert "\n\nType ESC ` or Meta-` to use the menu bar.") |
| 648 | (insert (substitute-command-keys | 652 | (insert (substitute-command-keys |
| 649 | "\n\nType \\[tmm-menubar] to use the menu bar.")))) | 653 | "\n\nType \\[tmm-menubar] to use the menu bar.")))) |
| 650 | 654 | ||
| @@ -652,28 +656,27 @@ Type \\[info] to enter Info, which you can use to read GNU documentation." | |||
| 652 | ;; window systems, but do have mouse support. | 656 | ;; window systems, but do have mouse support. |
| 653 | (if (or (memq system-type '(msdos windowsnt)) | 657 | (if (or (memq system-type '(msdos windowsnt)) |
| 654 | window-system) | 658 | window-system) |
| 655 | (insert " | 659 | (insert "\n |
| 656 | C-mouse-3 (third mouse button, with Control) gets a mode-specific menu.")) | 660 | C-mouse-3 (third mouse button, with Control) gets a mode-specific menu.")) |
| 657 | (insert "\n") | 661 | (if (directory-files "~/" nil "\\`\\.saves-" t) |
| 662 | (insert "\n\nIf an Emacs session crashed recently,\n" | ||
| 663 | "type M-x recover-session RET to recover" | ||
| 664 | " the files you were editing.")) | ||
| 665 | |||
| 658 | (if (and (eq (key-binding "\C-h\C-c") 'describe-copying) | 666 | (if (and (eq (key-binding "\C-h\C-c") 'describe-copying) |
| 659 | (eq (key-binding "\C-h\C-d") 'describe-distribution) | 667 | (eq (key-binding "\C-h\C-d") 'describe-distribution) |
| 660 | (eq (key-binding "\C-h\C-w") 'describe-no-warranty)) | 668 | (eq (key-binding "\C-h\C-w") 'describe-no-warranty)) |
| 661 | (insert | 669 | (insert |
| 662 | " | 670 | "\n |
| 663 | GNU Emacs comes with ABSOLUTELY NO WARRANTY; type C-h C-w for full details. | 671 | GNU Emacs comes with ABSOLUTELY NO WARRANTY; type C-h C-w for full details. |
| 664 | You may give out copies of Emacs; type C-h C-c to see the conditions. | 672 | You may give out copies of Emacs; type C-h C-c to see the conditions. |
| 665 | Type C-h C-d for information on getting the latest version.") | 673 | Type C-h C-d for information on getting the latest version.") |
| 666 | (insert (substitute-command-keys | 674 | (insert (substitute-command-keys |
| 667 | " | 675 | "\n |
| 668 | GNU Emacs comes with ABSOLUTELY NO WARRANTY; type \\[describe-no-warranty] for full details. | 676 | GNU Emacs comes with ABSOLUTELY NO WARRANTY; type \\[describe-no-warranty] for full details. |
| 669 | You may give out copies of Emacs; type \\[describe-copying] to see the conditions. | 677 | You may give out copies of Emacs; type \\[describe-copying] to see the conditions. |
| 670 | Type \\[describe-distribution] for information on getting the latest version."))) | 678 | Type \\[describe-distribution] for information on getting the latest version."))) |
| 671 | 679 | ||
| 672 | (if (directory-files "~/" nil "\\`\\.saves-" t) | ||
| 673 | (insert "\n\nIf an Emacs session crashed recently,\n" | ||
| 674 | "type M-x recover-session RET to recover" | ||
| 675 | " the files you were editing.")) | ||
| 676 | |||
| 677 | (set-buffer-modified-p nil) | 680 | (set-buffer-modified-p nil) |
| 678 | (sit-for 120)) | 681 | (sit-for 120)) |
| 679 | (save-excursion | 682 | (save-excursion |