diff options
| author | Richard M. Stallman | 1996-08-31 16:26:55 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1996-08-31 16:26:55 +0000 |
| commit | 3f5a3e124ba2bb72950d1fb1d817df7a5c885c0d (patch) | |
| tree | ff360bfe2d039e83f4ff9e2c3546beabb344d4b8 | |
| parent | b3398af135341cbf4f738d05e1c4ad99efcf03e1 (diff) | |
| download | emacs-3f5a3e124ba2bb72950d1fb1d817df7a5c885c0d.tar.gz emacs-3f5a3e124ba2bb72950d1fb1d817df7a5c885c0d.zip | |
(command-line-1): Rearrange initial screen.
| -rw-r--r-- | lisp/startup.el | 58 |
1 files changed, 33 insertions, 25 deletions
diff --git a/lisp/startup.el b/lisp/startup.el index 69642d82ac4..073e78c43ce 100644 --- a/lisp/startup.el +++ b/lisp/startup.el | |||
| @@ -695,49 +695,53 @@ from being initialized.") | |||
| 695 | ;; The convention for this piece of code is that | 695 | ;; The convention for this piece of code is that |
| 696 | ;; each piece of output starts with one or two newlines | 696 | ;; each piece of output starts with one or two newlines |
| 697 | ;; and does not end with any newlines. | 697 | ;; and does not end with any newlines. |
| 698 | (insert (emacs-version) | 698 | (insert "Welcome to GNU Emacs") |
| 699 | " | 699 | (if (eq system-type 'gnu/linux) |
| 700 | Copyright (C) 1996 Free Software Foundation, Inc.") | 700 | (insert ", one component of a Linux-based GNU system.")) |
| 701 | (insert "\n") | ||
| 701 | ;; If keys have their default meanings, | 702 | ;; If keys have their default meanings, |
| 702 | ;; use precomputed string to save lots of time. | 703 | ;; use precomputed string to save lots of time. |
| 703 | (if (and (eq (key-binding "\C-h") 'help-command) | 704 | (if (and (eq (key-binding "\C-h") 'help-command) |
| 704 | (eq (key-binding "\C-xu") 'advertised-undo) | 705 | (eq (key-binding "\C-xu") 'advertised-undo) |
| 705 | (eq (key-binding "\C-x\C-c") 'save-buffers-kill-emacs) | 706 | (eq (key-binding "\C-x\C-c") 'save-buffers-kill-emacs) |
| 706 | (eq (key-binding "\C-ht") 'help-with-tutorial) | 707 | (eq (key-binding "\C-ht") 'help-with-tutorial) |
| 707 | (eq (key-binding "\C-hi") 'info)) | 708 | (eq (key-binding "\C-hi") 'info) |
| 708 | (insert "\n | 709 | (eq (key-binding "\C-h\C-n") 'view-emacs-news)) |
| 709 | Type C-x C-c to exit Emacs. | 710 | (insert " |
| 710 | Type C-h for help; C-x u to undo changes. | 711 | Get help C-h (Hold down CTRL and press h) |
| 711 | Type C-h t for a tutorial on using Emacs. | 712 | Undo changes C-x u Exit Emacs C-x C-c |
| 712 | Type C-h i to enter Info, which you can use to read GNU documentation.") | 713 | Get a tutorial C-h t Use Info to read docs C-h i") |
| 713 | (insert (substitute-command-keys | 714 | (insert (substitute-command-keys |
| 714 | (format "\n | 715 | (format "\n |
| 715 | Type \\[save-buffers-kill-emacs] to exit Emacs. | 716 | Get help %s |
| 716 | Type %s for help; \\[advertised-undo] to undo changes. | 717 | Undo changes \\[advertised-undo] |
| 717 | Type \\[help-with-tutorial] for a tutorial on using Emacs. | 718 | Exit Emacs \\[save-buffers-kill-emacs] |
| 718 | Type \\[info] to enter Info, which you can use to read GNU documentation." | 719 | Get a tutorial \\[help-with-tutorial] |
| 720 | Use Info to read docs \\[info]" | ||
| 719 | (let ((where (where-is-internal | 721 | (let ((where (where-is-internal |
| 720 | 'help-command nil t))) | 722 | 'help-command nil t))) |
| 721 | (if where | 723 | (if where |
| 722 | (key-description where) | 724 | (key-description where) |
| 723 | "M-x help")))))) | 725 | "M-x help")))))) |
| 724 | ;; Many users seem to have problems with these. | ||
| 725 | (insert " | ||
| 726 | (`C-' means use the CTRL key. `M-' means use the Meta (or Alt) key. | ||
| 727 | If you have no Meta key, you may instead type ESC followed by the character.)") | ||
| 728 | ;; Say how to use the menu bar | 726 | ;; Say how to use the menu bar |
| 729 | ;; if that is not with the mouse. | 727 | ;; if that is not with the mouse. |
| 730 | (if (not (assq 'display (frame-parameters))) | 728 | (if (not (assq 'display (frame-parameters))) |
| 731 | (if (eq (key-binding "\M-`") 'tmm-menubar) | 729 | (if (and (eq (key-binding "\M-`") 'tmm-menubar) |
| 732 | (insert "\n\nType F10 or M-` to use the menu bar.") | 730 | (eq (key-binding [f10]) 'tmm-menubar)) |
| 733 | (insert (substitute-command-keys | 731 | (insert " |
| 734 | "\n\nType \\[tmm-menubar] to use the menu bar.")))) | 732 | Activate menubar F10 or ESC ` or M-`") |
| 733 | (insert (substitute-command-keys " | ||
| 734 | Activate menubar \\[tmm-menubar]")))) | ||
| 735 | 735 | ||
| 736 | ;; Windows and MSDOS (currently) do not count as | 736 | ;; Windows and MSDOS (currently) do not count as |
| 737 | ;; window systems, but do have mouse support. | 737 | ;; window systems, but do have mouse support. |
| 738 | (if window-system | 738 | (if window-system |
| 739 | (insert "\n | 739 | (insert " |
| 740 | C-mouse-3 (third mouse button, with Control) gets a mode-specific menu.")) | 740 | Mode-specific menu C-mouse-3 (third button, with CTRL)")) |
| 741 | ;; Many users seem to have problems with these. | ||
| 742 | (insert " | ||
| 743 | \(`C-' means use the CTRL key. `M-' means use the Meta (or Alt) key. | ||
| 744 | If you have no Meta key, you may instead type ESC followed by the character.)") | ||
| 741 | (and auto-save-list-file-prefix | 745 | (and auto-save-list-file-prefix |
| 742 | (directory-files | 746 | (directory-files |
| 743 | (file-name-directory auto-save-list-file-prefix) | 747 | (file-name-directory auto-save-list-file-prefix) |
| @@ -746,10 +750,13 @@ C-mouse-3 (third mouse button, with Control) gets a mode-specific menu.")) | |||
| 746 | (regexp-quote (file-name-nondirectory | 750 | (regexp-quote (file-name-nondirectory |
| 747 | auto-save-list-file-prefix))) | 751 | auto-save-list-file-prefix))) |
| 748 | t) | 752 | t) |
| 749 | (insert "\n\nIf an Emacs session crashed recently,\n" | 753 | (insert "\n\nIf an Emacs session crashed recently, " |
| 750 | "type M-x recover-session RET to recover" | 754 | "type M-x recover-session RET\nto recover" |
| 751 | " the files you were editing.")) | 755 | " the files you were editing.")) |
| 752 | 756 | ||
| 757 | (insert "\n\n" (emacs-version) | ||
| 758 | " | ||
| 759 | Copyright (C) 1996 Free Software Foundation, Inc.") | ||
| 753 | (if (and (eq (key-binding "\C-h\C-c") 'describe-copying) | 760 | (if (and (eq (key-binding "\C-h\C-c") 'describe-copying) |
| 754 | (eq (key-binding "\C-h\C-d") 'describe-distribution) | 761 | (eq (key-binding "\C-h\C-d") 'describe-distribution) |
| 755 | (eq (key-binding "\C-h\C-w") 'describe-no-warranty)) | 762 | (eq (key-binding "\C-h\C-w") 'describe-no-warranty)) |
| @@ -763,6 +770,7 @@ Type C-h C-d for information on getting the latest version.") | |||
| 763 | GNU Emacs comes with ABSOLUTELY NO WARRANTY; type \\[describe-no-warranty] for full details. | 770 | GNU Emacs comes with ABSOLUTELY NO WARRANTY; type \\[describe-no-warranty] for full details. |
| 764 | You may give out copies of Emacs; type \\[describe-copying] to see the conditions. | 771 | You may give out copies of Emacs; type \\[describe-copying] to see the conditions. |
| 765 | Type \\[describe-distribution] for information on getting the latest version."))) | 772 | Type \\[describe-distribution] for information on getting the latest version."))) |
| 773 | (goto-char (point-min)) | ||
| 766 | 774 | ||
| 767 | (set-buffer-modified-p nil) | 775 | (set-buffer-modified-p nil) |
| 768 | (sit-for 120)) | 776 | (sit-for 120)) |