aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1998-01-21 21:39:02 +0000
committerRichard M. Stallman1998-01-21 21:39:02 +0000
commitacfd10115299f5397ea34956f7dbd4b3f43d9f03 (patch)
tree6c15e021497127e09d3fa457d02bed41ec23d9fc
parent813b81b37d03f75159e0a175451af7af613e21cf (diff)
downloademacs-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.el121
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) 766The 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) 768Useful Files menu items:
769 (eq (key-binding "\C-hi") 'info) 769Exit Emacs (or type Control-x followed by Control-c)
770 (eq (key-binding "\C-h\C-n") 'view-emacs-news)) 770Recover Session recover files you were editing before a crash
771 (insert " 771
772Important Help menu items:
773Emacs Tutorial Learn-by-doing tutorial for using Emacs efficiently.
774\(Non)Warranty GNU Emacs comes with ABSOLUTELY NO WARRANTY
775Copying Conditions Conditions for redistributing and changing Emacs.
776Getting New Versions How to obtain the latest version of Emacs.
777")
778 (insert "\n\n" (emacs-version)
779 "
780Copyright (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 "
772Get help C-h (Hold down CTRL and press h) 790Get help C-h (Hold down CTRL and press h)
773Undo changes C-x u Exit Emacs C-x C-c 791Undo changes C-x u Exit Emacs C-x C-c
774Get a tutorial C-h t Use Info to read docs C-h i") 792Get 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
777Get help %s 795Get help %s
778Undo changes \\[advertised-undo] 796Undo changes \\[advertised-undo]
779Exit Emacs \\[save-buffers-kill-emacs] 797Exit Emacs \\[save-buffers-kill-emacs]
780Get a tutorial \\[help-with-tutorial] 798Get a tutorial \\[help-with-tutorial]
781Use Info to read docs \\[info]" 799Use 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 "
793Activate menubar F10 or ESC ` or M-`") 810Activate menubar F10 or ESC ` or M-`")
794 (insert (substitute-command-keys " 811 (insert (substitute-command-keys "
795Activate menubar \\[tmm-menubar]")))) 812Activate 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 "
801Mode-specific menu C-mouse-3 (third button, with CTRL)")) 818Mode-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.
805If you have no Meta key, you may instead type ESC followed by the character.)") 822If 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 "
820Copyright (C) 1997 Free Software Foundation, Inc.") 837Copyright (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
826GNU Emacs comes with ABSOLUTELY NO WARRANTY; type C-h C-w for full details. 843GNU Emacs comes with ABSOLUTELY NO WARRANTY; type C-h C-w for full details.
827You may give out copies of Emacs; type C-h C-c to see the conditions. 844You may give out copies of Emacs; type C-h C-c to see the conditions.
828Type C-h C-d for information on getting the latest version.") 845Type 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
831GNU Emacs comes with ABSOLUTELY NO WARRANTY; type \\[describe-no-warranty] for full details. 848GNU Emacs comes with ABSOLUTELY NO WARRANTY; type \\[describe-no-warranty] for full details.
832You may give out copies of Emacs; type \\[describe-copying] to see the conditions. 849You may give out copies of Emacs; type \\[describe-copying] to see the conditions.
833Type \\[describe-distribution] for information on getting the latest version."))) 850Type \\[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)