diff options
| author | Richard M. Stallman | 1998-01-21 21:39:02 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1998-01-21 21:39:02 +0000 |
| commit | acfd10115299f5397ea34956f7dbd4b3f43d9f03 (patch) | |
| tree | 6c15e021497127e09d3fa457d02bed41ec23d9fc | |
| parent | 813b81b37d03f75159e0a175451af7af613e21cf (diff) | |
| download | emacs-acfd10115299f5397ea34956f7dbd4b3f43d9f03.tar.gz emacs-acfd10115299f5397ea34956f7dbd4b3f43d9f03.zip | |
(command-line-1): Add alternate startup message
for use when there is a mouse.
| -rw-r--r-- | lisp/startup.el | 121 |
1 files changed, 69 insertions, 52 deletions
diff --git a/lisp/startup.el b/lisp/startup.el index ac7fc93bb8e..a5786239380 100644 --- a/lisp/startup.el +++ b/lisp/startup.el | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | ;;; startup.el --- process Emacs shell arguments | 1 | ;;; startup.el --- process Emacs shell arguments |
| 2 | 2 | ||
| 3 | ;; Copyright (C) 1985, 86, 92, 94, 95, 1996 Free Software Foundation, Inc. | 3 | ;; Copyright (C) 1985, 86, 92, 94, 95, 96, 97, 1998 Free Software Foundation, Inc. |
| 4 | 4 | ||
| 5 | ;; Maintainer: FSF | 5 | ;; Maintainer: FSF |
| 6 | ;; Keywords: internal | 6 | ;; Keywords: internal |
| @@ -760,77 +760,94 @@ If this is nil, no message will be displayed." | |||
| 760 | (if (eq system-type 'gnu/linux) | 760 | (if (eq system-type 'gnu/linux) |
| 761 | (insert ", one component of a Linux-based GNU system.")) | 761 | (insert ", one component of a Linux-based GNU system.")) |
| 762 | (insert "\n") | 762 | (insert "\n") |
| 763 | ;; If keys have their default meanings, | 763 | (if (assq 'display (frame-parameters)) |
| 764 | ;; use precomputed string to save lots of time. | 764 | (progn |
| 765 | (if (and (eq (key-binding "\C-h") 'help-command) | 765 | (insert "\ |
| 766 | (eq (key-binding "\C-xu") 'advertised-undo) | 766 | The menu bar menus above are sufficient for basic editing with the mouse, |
| 767 | (eq (key-binding "\C-x\C-c") 'save-buffers-kill-emacs) | 767 | |
| 768 | (eq (key-binding "\C-ht") 'help-with-tutorial) | 768 | Useful Files menu items: |
| 769 | (eq (key-binding "\C-hi") 'info) | 769 | Exit Emacs (or type Control-x followed by Control-c) |
| 770 | (eq (key-binding "\C-h\C-n") 'view-emacs-news)) | 770 | Recover Session recover files you were editing before a crash |
| 771 | (insert " | 771 | |
| 772 | Important Help menu items: | ||
| 773 | Emacs Tutorial Learn-by-doing tutorial for using Emacs efficiently. | ||
| 774 | \(Non)Warranty GNU Emacs comes with ABSOLUTELY NO WARRANTY | ||
| 775 | Copying Conditions Conditions for redistributing and changing Emacs. | ||
| 776 | Getting New Versions How to obtain the latest version of Emacs. | ||
| 777 | ") | ||
| 778 | (insert "\n\n" (emacs-version) | ||
| 779 | " | ||
| 780 | Copyright (C) 1998 Free Software Foundation, Inc.")) | ||
| 781 | ;; If keys have their default meanings, | ||
| 782 | ;; use precomputed string to save lots of time. | ||
| 783 | (if (and (eq (key-binding "\C-h") 'help-command) | ||
| 784 | (eq (key-binding "\C-xu") 'advertised-undo) | ||
| 785 | (eq (key-binding "\C-x\C-c") 'save-buffers-kill-emacs) | ||
| 786 | (eq (key-binding "\C-ht") 'help-with-tutorial) | ||
| 787 | (eq (key-binding "\C-hi") 'info) | ||
| 788 | (eq (key-binding "\C-h\C-n") 'view-emacs-news)) | ||
| 789 | (insert " | ||
| 772 | Get help C-h (Hold down CTRL and press h) | 790 | Get help C-h (Hold down CTRL and press h) |
| 773 | Undo changes C-x u Exit Emacs C-x C-c | 791 | Undo changes C-x u Exit Emacs C-x C-c |
| 774 | Get a tutorial C-h t Use Info to read docs C-h i") | 792 | Get a tutorial C-h t Use Info to read docs C-h i") |
| 775 | (insert (substitute-command-keys | 793 | (insert (substitute-command-keys |
| 776 | (format "\n | 794 | (format "\n |
| 777 | Get help %s | 795 | Get help %s |
| 778 | Undo changes \\[advertised-undo] | 796 | Undo changes \\[advertised-undo] |
| 779 | Exit Emacs \\[save-buffers-kill-emacs] | 797 | Exit Emacs \\[save-buffers-kill-emacs] |
| 780 | Get a tutorial \\[help-with-tutorial] | 798 | Get a tutorial \\[help-with-tutorial] |
| 781 | Use Info to read docs \\[info]" | 799 | Use Info to read docs \\[info]" |
| 782 | (let ((where (where-is-internal | 800 | (let ((where (where-is-internal |
| 783 | 'help-command nil t))) | 801 | 'help-command nil t))) |
| 784 | (if where | 802 | (if where |
| 785 | (key-description where) | 803 | (key-description where) |
| 786 | "M-x help")))))) | 804 | "M-x help")))))) |
| 787 | ;; Say how to use the menu bar | 805 | ;; Say how to use the menu bar |
| 788 | ;; if that is not with the mouse. | 806 | ;; if that is not with the mouse. |
| 789 | (if (not (assq 'display (frame-parameters))) | 807 | (if (and (eq (key-binding "\M-`") 'tmm-menubar) |
| 790 | (if (and (eq (key-binding "\M-`") 'tmm-menubar) | 808 | (eq (key-binding [f10]) 'tmm-menubar)) |
| 791 | (eq (key-binding [f10]) 'tmm-menubar)) | 809 | (insert " |
| 792 | (insert " | ||
| 793 | Activate menubar F10 or ESC ` or M-`") | 810 | Activate menubar F10 or ESC ` or M-`") |
| 794 | (insert (substitute-command-keys " | 811 | (insert (substitute-command-keys " |
| 795 | Activate menubar \\[tmm-menubar]")))) | 812 | Activate menubar \\[tmm-menubar]"))) |
| 796 | 813 | ||
| 797 | ;; Windows and MSDOS (currently) do not count as | 814 | ;; Windows and MSDOS (currently) do not count as |
| 798 | ;; window systems, but do have mouse support. | 815 | ;; window systems, but do have mouse support. |
| 799 | (if window-system | 816 | (if window-system |
| 800 | (insert " | 817 | (insert " |
| 801 | Mode-specific menu C-mouse-3 (third button, with CTRL)")) | 818 | Mode-specific menu C-mouse-3 (third button, with CTRL)")) |
| 802 | ;; Many users seem to have problems with these. | 819 | ;; Many users seem to have problems with these. |
| 803 | (insert " | 820 | (insert " |
| 804 | \(`C-' means use the CTRL key. `M-' means use the Meta (or Alt) key. | 821 | \(`C-' means use the CTRL key. `M-' means use the Meta (or Alt) key. |
| 805 | If you have no Meta key, you may instead type ESC followed by the character.)") | 822 | If you have no Meta key, you may instead type ESC followed by the character.)") |
| 806 | (and auto-save-list-file-prefix | 823 | (and auto-save-list-file-prefix |
| 807 | (directory-files | 824 | (directory-files |
| 808 | (file-name-directory auto-save-list-file-prefix) | 825 | (file-name-directory auto-save-list-file-prefix) |
| 809 | nil | 826 | nil |
| 810 | (concat "\\`" | 827 | (concat "\\`" |
| 811 | (regexp-quote (file-name-nondirectory | 828 | (regexp-quote (file-name-nondirectory |
| 812 | auto-save-list-file-prefix))) | 829 | auto-save-list-file-prefix))) |
| 813 | t) | 830 | t) |
| 814 | (insert "\n\nIf an Emacs session crashed recently, " | 831 | (insert "\n\nIf an Emacs session crashed recently, " |
| 815 | "type M-x recover-session RET\nto recover" | 832 | "type M-x recover-session RET\nto recover" |
| 816 | " the files you were editing.")) | 833 | " the files you were editing.")) |
| 817 | 834 | ||
| 818 | (insert "\n\n" (emacs-version) | 835 | (insert "\n\n" (emacs-version) |
| 819 | " | 836 | " |
| 820 | Copyright (C) 1997 Free Software Foundation, Inc.") | 837 | Copyright (C) 1998 Free Software Foundation, Inc.") |
| 821 | (if (and (eq (key-binding "\C-h\C-c") 'describe-copying) | 838 | (if (and (eq (key-binding "\C-h\C-c") 'describe-copying) |
| 822 | (eq (key-binding "\C-h\C-d") 'describe-distribution) | 839 | (eq (key-binding "\C-h\C-d") 'describe-distribution) |
| 823 | (eq (key-binding "\C-h\C-w") 'describe-no-warranty)) | 840 | (eq (key-binding "\C-h\C-w") 'describe-no-warranty)) |
| 824 | (insert | 841 | (insert |
| 825 | "\n | 842 | "\n |
| 826 | GNU Emacs comes with ABSOLUTELY NO WARRANTY; type C-h C-w for full details. | 843 | GNU Emacs comes with ABSOLUTELY NO WARRANTY; type C-h C-w for full details. |
| 827 | You may give out copies of Emacs; type C-h C-c to see the conditions. | 844 | You may give out copies of Emacs; type C-h C-c to see the conditions. |
| 828 | Type C-h C-d for information on getting the latest version.") | 845 | Type C-h C-d for information on getting the latest version.") |
| 829 | (insert (substitute-command-keys | 846 | (insert (substitute-command-keys |
| 830 | "\n | 847 | "\n |
| 831 | GNU Emacs comes with ABSOLUTELY NO WARRANTY; type \\[describe-no-warranty] for full details. | 848 | GNU Emacs comes with ABSOLUTELY NO WARRANTY; type \\[describe-no-warranty] for full details. |
| 832 | You may give out copies of Emacs; type \\[describe-copying] to see the conditions. | 849 | You may give out copies of Emacs; type \\[describe-copying] to see the conditions. |
| 833 | Type \\[describe-distribution] for information on getting the latest version."))) | 850 | Type \\[describe-distribution] for information on getting the latest version.")))) |
| 834 | (goto-char (point-min)) | 851 | (goto-char (point-min)) |
| 835 | 852 | ||
| 836 | (set-buffer-modified-p nil) | 853 | (set-buffer-modified-p nil) |