aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJuri Linkov2007-09-09 12:10:33 +0000
committerJuri Linkov2007-09-09 12:10:33 +0000
commit490a1ad61db35906ed0947f43dd97d818e6f0d25 (patch)
treee5d5427d72937cc3f27e7b869423b6b3f697ff60
parented5e089402041bbac73dca7d1c48302e03055051 (diff)
downloademacs-490a1ad61db35906ed0947f43dd97d818e6f0d25.tar.gz
emacs-490a1ad61db35906ed0947f43dd97d818e6f0d25.zip
(initial-buffer-choice): Rename choice "Splash screen"
to "Startup screen". Fix docstring. (inhibit-startup-screen): Rename from `inhibit-splash-screen'. (inhibit-splash-screen): Make alias to `inhibit-startup-screen'. (inhibit-startup-message): Change alias to `inhibit-startup-screen'. (initial-scratch-message): Fix docstring. (fancy-startup-text): Move link to Emacs Manual below Emacs Guided Tour (which is a kind of tutorial and will be next to Emacs Tutorial). Add link to "Customize Startup" and set interval between links to 5 spaces. (fancy-about-text): Add links "Authors" and "Contributing". (fancy-splash-head): Add text "Welcome to " on the startup screen, and "This is " on the about screen. Add link to "http://www.gnu.org/software/emacs/" for "GNU Emacs". For the about screen move emacs version to the header from `fancy-splash-tail' (as it's done already for normal about screen). (fancy-splash-tail): Insert emacs version only for startup screen. (normal-splash-screen): Remove duplicate empty lines. (normal-about-screen): Add links "Authors" and "Contributing".
-rw-r--r--lisp/ChangeLog26
-rw-r--r--lisp/startup.el90
2 files changed, 91 insertions, 25 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index a8f99ef5b9c..a1a570544d3 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,29 @@
12007-09-09 Juri Linkov <juri@jurta.org>
2
3 * Makefile.in (update-authors): Add etc/ to AUTHORS.
4
5 * makefile.w32-in (update-authors): Add etc/ to AUTHORS.
6
7 * startup.el (initial-buffer-choice): Rename choice "Splash screen"
8 to "Startup screen". Fix docstring.
9 (inhibit-startup-screen): Rename from `inhibit-splash-screen'.
10 (inhibit-splash-screen): Make alias to `inhibit-startup-screen'.
11 (inhibit-startup-message): Change alias to `inhibit-startup-screen'.
12 (initial-scratch-message): Fix docstring.
13 (fancy-startup-text): Move link to Emacs Manual below Emacs Guided
14 Tour (which is a kind of tutorial and will be next to Emacs Tutorial).
15 Add link to "Customize Startup" and set interval between links to
16 5 spaces.
17 (fancy-about-text): Add links "Authors" and "Contributing".
18 (fancy-splash-head): Add text "Welcome to " on the startup screen,
19 and "This is " on the about screen. Add link to
20 "http://www.gnu.org/software/emacs/" for "GNU Emacs".
21 For the about screen move emacs version to the header from
22 `fancy-splash-tail' (as it's done already for normal about screen).
23 (fancy-splash-tail): Insert emacs version only for startup screen.
24 (normal-splash-screen): Remove duplicate empty lines.
25 (normal-about-screen): Add links "Authors" and "Contributing".
26
12007-09-09 Michael Albinus <michael.albinus@gmx.de> 272007-09-09 Michael Albinus <michael.albinus@gmx.de>
2 28
3 * net/tramp.el (top): Remove declarations of `tramp-gw-*' symbols, 29 * net/tramp.el (top): Remove declarations of `tramp-gw-*' symbols,
diff --git a/lisp/startup.el b/lisp/startup.el
index e469f87ba9f..f004f944b86 100644
--- a/lisp/startup.el
+++ b/lisp/startup.el
@@ -49,18 +49,18 @@ The value is nil if the selected frame is on a text-only-terminal.")
49 49
50(defcustom initial-buffer-choice nil 50(defcustom initial-buffer-choice nil
51 "Buffer to show after starting Emacs. 51 "Buffer to show after starting Emacs.
52If the value is nil and `inhibit-splash-screen' is nil, show the 52If the value is nil and `inhibit-startup-screen' is nil, show the
53startup screen. If the value is string, visit the specified file or 53startup screen. If the value is string, visit the specified file or
54directory using `find-file'. If t, open the `*scratch*' buffer." 54directory using `find-file'. If t, open the `*scratch*' buffer."
55 :type '(choice 55 :type '(choice
56 (const :tag "Splash screen" nil) 56 (const :tag "Startup screen" nil)
57 (directory :tag "Directory" :value "~/") 57 (directory :tag "Directory" :value "~/")
58 (file :tag "File" :value "~/file.txt") 58 (file :tag "File" :value "~/file.txt")
59 (const :tag "Lisp scratch buffer" t)) 59 (const :tag "Lisp scratch buffer" t))
60 :version "23.1" 60 :version "23.1"
61 :group 'initialization) 61 :group 'initialization)
62 62
63(defcustom inhibit-splash-screen nil 63(defcustom inhibit-startup-screen nil
64 "Non-nil inhibits the startup screen. 64 "Non-nil inhibits the startup screen.
65It also inhibits display of the initial message in the `*scratch*' buffer. 65It also inhibits display of the initial message in the `*scratch*' buffer.
66 66
@@ -69,7 +69,8 @@ you are familiar with the contents of the startup screen."
69 :type 'boolean 69 :type 'boolean
70 :group 'initialization) 70 :group 'initialization)
71 71
72(defvaralias 'inhibit-startup-message 'inhibit-splash-screen) 72(defvaralias 'inhibit-splash-screen 'inhibit-startup-screen)
73(defvaralias 'inhibit-startup-message 'inhibit-startup-screen)
73 74
74(defcustom inhibit-startup-echo-area-message nil 75(defcustom inhibit-startup-echo-area-message nil
75 "*Non-nil inhibits the initial startup echo area message. 76 "*Non-nil inhibits the initial startup echo area message.
@@ -1123,7 +1124,7 @@ opening the first frame (e.g. open a connection to an X server).")
1123") 1124")
1124 "Initial message displayed in *scratch* buffer at startup. 1125 "Initial message displayed in *scratch* buffer at startup.
1125If this is nil, no message will be displayed. 1126If this is nil, no message will be displayed.
1126If `inhibit-splash-screen' is non-nil, then no message is displayed, 1127If `inhibit-startup-screen' is non-nil, then no message is displayed,
1127regardless of the value of this variable." 1128regardless of the value of this variable."
1128 :type '(choice (text :tag "Message") 1129 :type '(choice (text :tag "Message")
1129 (const :tag "none" nil)) 1130 (const :tag "none" nil))
@@ -1156,11 +1157,11 @@ regardless of the value of this variable."
1156 (concat " (" title ")")))) 1157 (concat " (" title ")"))))
1157 "\n" 1158 "\n"
1158 :face variable-pitch 1159 :face variable-pitch
1159 :link ("View Emacs Manual" (lambda (button) (info-emacs-manual)))
1160 "\tView the Emacs manual using Info\n"
1161 :link ("Emacs Guided Tour" 1160 :link ("Emacs Guided Tour"
1162 (lambda (button) (browse-url "http://www.gnu.org/software/emacs/tour/"))) 1161 (lambda (button) (browse-url "http://www.gnu.org/software/emacs/tour/")))
1163 "\tOverview of Emacs features\n" 1162 "\tOverview of Emacs features\n"
1163 :link ("View Emacs Manual" (lambda (button) (info-emacs-manual)))
1164 "\tView the Emacs manual using Info\n"
1164 :link ("Absence of Warranty" (lambda (button) (describe-no-warranty))) 1165 :link ("Absence of Warranty" (lambda (button) (describe-no-warranty)))
1165 "\tGNU Emacs comes with " 1166 "\tGNU Emacs comes with "
1166 :face (variable-pitch :slant oblique) 1167 :face (variable-pitch :slant oblique)
@@ -1171,12 +1172,15 @@ regardless of the value of this variable."
1171 :link ("More Manuals / Ordering" (lambda (button) (view-order-manuals))) 1172 :link ("More Manuals / Ordering" (lambda (button) (view-order-manuals)))
1172 "\tThe FSF sells printed copies of several manuals for Emacs\n" 1173 "\tThe FSF sells printed copies of several manuals for Emacs\n"
1173 "\n" 1174 "\n"
1174 "To start... " 1175 "To start... "
1175 :link ("Open a File" 1176 :link ("Open a File"
1176 (lambda (button) (call-interactively 'find-file))) 1177 (lambda (button) (call-interactively 'find-file)))
1177 "\t" 1178 " "
1178 :link ("Open Home Directory" 1179 :link ("Open Home Directory"
1179 (lambda (button) (dired "~"))) 1180 (lambda (button) (dired "~")))
1181 " "
1182 :link ("Customize Startup"
1183 (lambda (button) (customize-group 'initialization)))
1180 "\n")) 1184 "\n"))
1181 "A list of texts to show in the middle part of splash screens. 1185 "A list of texts to show in the middle part of splash screens.
1182Each element in the list should be a list of strings or pairs 1186Each element in the list should be a list of strings or pairs
@@ -1184,6 +1188,17 @@ Each element in the list should be a list of strings or pairs
1184 1188
1185(defvar fancy-about-text 1189(defvar fancy-about-text
1186 '((:face variable-pitch 1190 '((:face variable-pitch
1191 :link ("Authors"
1192 (lambda (button)
1193 (view-file (expand-file-name "AUTHORS" data-directory))
1194 (goto-char (point-min))))
1195 "\tMany people have contributed code included in GNU Emacs\n"
1196 :link ("Contributing"
1197 (lambda (button)
1198 (view-file (expand-file-name "CONTRIBUTE" data-directory))
1199 (goto-char (point-min))))
1200 "\tHow to contribute improvements to Emacs\n"
1201 "\n"
1187 :link ("GNU and Freedom" (lambda (button) (describe-project))) 1202 :link ("GNU and Freedom" (lambda (button) (describe-project)))
1188 "\tWhy we developed GNU Emacs, and the GNU operating system\n" 1203 "\tWhy we developed GNU Emacs, and the GNU operating system\n"
1189 :link ("Absence of Warranty" (lambda (button) (describe-no-warranty))) 1204 :link ("Absence of Warranty" (lambda (button) (describe-no-warranty)))
@@ -1314,13 +1329,15 @@ where FACE is a valid face specification, as it can be used with
1314 (insert "\n") 1329 (insert "\n")
1315 (fancy-splash-insert 1330 (fancy-splash-insert
1316 :face '(variable-pitch :foreground "red") 1331 :face '(variable-pitch :foreground "red")
1317 "GNU Emacs is one component of the " 1332 (if startup "Welcome to " "This is ")
1333 :link
1334 '("GNU Emacs" (lambda (button) (browse-url "http://www.gnu.org/software/emacs/")))
1335 ", one component of the "
1318 :link 1336 :link
1319 (if (eq system-type 'gnu/linux) 1337 (if (eq system-type 'gnu/linux)
1320 '("GNU/Linux" (lambda (button) (browse-url "http://www.gnu.org/gnu/linux-and-gnu.html"))) 1338 '("GNU/Linux" (lambda (button) (browse-url "http://www.gnu.org/gnu/linux-and-gnu.html")))
1321 '("GNU" (lambda (button) (describe-project)))) 1339 '("GNU" (lambda (button) (describe-project))))
1322 " operating system.") 1340 " operating system.\n")
1323 (insert "\n")
1324 (if startup 1341 (if startup
1325 (fancy-splash-insert 1342 (fancy-splash-insert
1326 :face 'variable-pitch 1343 :face 'variable-pitch
@@ -1332,20 +1349,29 @@ using the mouse.\n"
1332 "Control-g" 1349 "Control-g"
1333 :face 'variable-pitch 1350 :face 'variable-pitch
1334 "." 1351 "."
1335 "\n\n")) 1352 "\n\n")
1336 ) 1353 (let ((fg (if (eq (frame-parameter nil 'background-mode) 'dark)
1354 "cyan" "darkblue")))
1355 (fancy-splash-insert :face `(variable-pitch :foreground ,fg)
1356 "\n"
1357 (emacs-version)
1358 "\n"
1359 :face '(variable-pitch :height 0.5)
1360 emacs-copyright
1361 "\n\n"))))
1337 1362
1338(defun fancy-splash-tail (&optional startup) 1363(defun fancy-splash-tail (&optional startup)
1339 "Insert the tail part of the splash screen into the current buffer." 1364 "Insert the tail part of the splash screen into the current buffer."
1340 (let ((fg (if (eq (frame-parameter nil 'background-mode) 'dark) 1365 (let ((fg (if (eq (frame-parameter nil 'background-mode) 'dark)
1341 "cyan" "darkblue"))) 1366 "cyan" "darkblue")))
1342 (fancy-splash-insert :face `(variable-pitch :foreground ,fg) 1367 (if startup
1343 "\nThis is " 1368 (fancy-splash-insert :face `(variable-pitch :foreground ,fg)
1344 (emacs-version) 1369 "\nThis is "
1345 "\n" 1370 (emacs-version)
1346 :face '(variable-pitch :height 0.5) 1371 "\n"
1347 emacs-copyright 1372 :face '(variable-pitch :height 0.5)
1348 "\n") 1373 emacs-copyright
1374 "\n"))
1349 (and startup 1375 (and startup
1350 auto-save-list-file-prefix 1376 auto-save-list-file-prefix
1351 ;; Don't signal an error if the 1377 ;; Don't signal an error if the
@@ -1497,8 +1523,6 @@ Warning Warning!!! Pure space overflow !!!Warning Warning
1497 ", one component of the GNU/Linux operating system.\n" 1523 ", one component of the GNU/Linux operating system.\n"
1498 ", a part of the GNU operating system.\n")) 1524 ", a part of the GNU operating system.\n"))
1499 1525
1500 (insert "\n")
1501
1502 (if startup 1526 (if startup
1503 (if (display-mouse-p) 1527 (if (display-mouse-p)
1504 ;; The user can use the mouse to activate menus 1528 ;; The user can use the mouse to activate menus
@@ -1696,7 +1720,7 @@ If you have no Meta key, you may instead type ESC followed by the character.)")
1696 (eq (key-binding "\C-h\C-w") 'describe-no-warranty)) 1720 (eq (key-binding "\C-h\C-w") 'describe-no-warranty))
1697 (progn 1721 (progn
1698 (insert 1722 (insert
1699 "\n 1723 "
1700GNU Emacs comes with ABSOLUTELY NO WARRANTY; type C-h C-w for ") 1724GNU Emacs comes with ABSOLUTELY NO WARRANTY; type C-h C-w for ")
1701 (insert-button "full details" 1725 (insert-button "full details"
1702 'action (lambda (button) (describe-no-warranty)) 1726 'action (lambda (button) (describe-no-warranty))
@@ -1714,7 +1738,7 @@ Type C-h C-d for information on ")
1714 'follow-link t) 1738 'follow-link t)
1715 (insert ".")) 1739 (insert "."))
1716 (insert (substitute-command-keys 1740 (insert (substitute-command-keys
1717 "\n 1741 "
1718GNU Emacs comes with ABSOLUTELY NO WARRANTY; type \\[describe-no-warranty] for ")) 1742GNU Emacs comes with ABSOLUTELY NO WARRANTY; type \\[describe-no-warranty] for "))
1719 (insert-button "full details" 1743 (insert-button "full details"
1720 'action (lambda (button) (describe-no-warranty)) 1744 'action (lambda (button) (describe-no-warranty))
@@ -1737,6 +1761,22 @@ Type \\[describe-distribution] for information on "))
1737 1761
1738 (insert "To follow a link, click Mouse-1 on it, or move to it and type RET.\n\n") 1762 (insert "To follow a link, click Mouse-1 on it, or move to it and type RET.\n\n")
1739 1763
1764 (insert-button "Authors"
1765 'action
1766 (lambda (button)
1767 (view-file (expand-file-name "AUTHORS" data-directory))
1768 (goto-char (point-min)))
1769 'follow-link t)
1770 (insert "\t\tMany people have contributed code included in GNU Emacs\n")
1771
1772 (insert-button "Contributing"
1773 'action
1774 (lambda (button)
1775 (view-file (expand-file-name "CONTRIBUTE" data-directory))
1776 (goto-char (point-min)))
1777 'follow-link t)
1778 (insert "\tHow to contribute improvements to Emacs\n\n")
1779
1740 (insert-button "GNU and Freedom" 1780 (insert-button "GNU and Freedom"
1741 'action (lambda (button) (describe-project)) 1781 'action (lambda (button) (describe-project))
1742 'follow-link t) 1782 'follow-link t)