diff options
| author | Richard M. Stallman | 2006-09-15 00:56:14 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2006-09-15 00:56:14 +0000 |
| commit | 81a0b042c950e35a71e59bd5399f7eabdd633c7c (patch) | |
| tree | 49ba92b9a3f2b404ad4a549329f11773c7d7196a | |
| parent | efeb22bf0a6e882ac2a424ddfa3554a309c862d2 (diff) | |
| download | emacs-81a0b042c950e35a71e59bd5399f7eabdd633c7c.tar.gz emacs-81a0b042c950e35a71e59bd5399f7eabdd633c7c.zip | |
(fancy-splash-text): Change text to improve alignment.
(fancy-splash-screens): Don't set non-standard tab width.
Bind cursor-type temporarily, and make it easy to patch to
preserve the splash buffer.
(normal-splash-screen, fancy-splash-tail): Spell out "Meta-x".
(fancy-splash-screens): Display echo-area message explicitly.
Don't set fancy-splash-help-echo.
| -rw-r--r-- | lisp/startup.el | 25 |
1 files changed, 14 insertions, 11 deletions
diff --git a/lisp/startup.el b/lisp/startup.el index c1adf617aa4..c3d0fc1a765 100644 --- a/lisp/startup.el +++ b/lisp/startup.el | |||
| @@ -1137,8 +1137,8 @@ regardless of the value of this variable." | |||
| 1137 | "\n"))) | 1137 | "\n"))) |
| 1138 | :face variable-pitch "\ | 1138 | :face variable-pitch "\ |
| 1139 | Emacs FAQ\tFrequently asked questions and answers | 1139 | Emacs FAQ\tFrequently asked questions and answers |
| 1140 | Read the Emacs Manual\tView the Emacs manual using Info | 1140 | View Emacs Manual\tView the Emacs manual using Info |
| 1141 | \(Non)Warranty\tGNU Emacs comes with " | 1141 | Absence of Warranty\tGNU Emacs comes with " |
| 1142 | :face (variable-pitch :slant oblique) | 1142 | :face (variable-pitch :slant oblique) |
| 1143 | "ABSOLUTELY NO WARRANTY\n" | 1143 | "ABSOLUTELY NO WARRANTY\n" |
| 1144 | :face variable-pitch | 1144 | :face variable-pitch |
| @@ -1149,7 +1149,7 @@ More Manuals / Ordering Manuals Buying printed manuals from the FSF\n") | |||
| 1149 | (:face (variable-pitch :weight bold) | 1149 | (:face (variable-pitch :weight bold) |
| 1150 | "Useful File menu items:\n" | 1150 | "Useful File menu items:\n" |
| 1151 | :face variable-pitch "\ | 1151 | :face variable-pitch "\ |
| 1152 | Exit Emacs\t(Or type Control-x followed by Control-c) | 1152 | Exit Emacs\t\t(Or type Control-x followed by Control-c) |
| 1153 | Recover Crashed Session\tRecover files you were editing before a crash | 1153 | Recover Crashed Session\tRecover files you were editing before a crash |
| 1154 | 1154 | ||
| 1155 | 1155 | ||
| @@ -1300,7 +1300,7 @@ using the mouse.\n\n") | |||
| 1300 | t) | 1300 | t) |
| 1301 | (fancy-splash-insert :face '(variable-pitch :foreground "red") | 1301 | (fancy-splash-insert :face '(variable-pitch :foreground "red") |
| 1302 | "\n\nIf an Emacs session crashed recently, " | 1302 | "\n\nIf an Emacs session crashed recently, " |
| 1303 | "type M-x recover-session RET\nto recover" | 1303 | "type Meta-x recover-session RET\nto recover" |
| 1304 | " the files you were editing.")))) | 1304 | " the files you were editing.")))) |
| 1305 | 1305 | ||
| 1306 | (defun fancy-splash-screens-1 (buffer) | 1306 | (defun fancy-splash-screens-1 (buffer) |
| @@ -1345,7 +1345,6 @@ mouse." | |||
| 1345 | 1345 | ||
| 1346 | (defun fancy-splash-screens (&optional hide-on-input) | 1346 | (defun fancy-splash-screens (&optional hide-on-input) |
| 1347 | "Display fancy splash screens when Emacs starts." | 1347 | "Display fancy splash screens when Emacs starts." |
| 1348 | (setq fancy-splash-help-echo (startup-echo-area-message)) | ||
| 1349 | (if hide-on-input | 1348 | (if hide-on-input |
| 1350 | (let ((old-hourglass display-hourglass) | 1349 | (let ((old-hourglass display-hourglass) |
| 1351 | (fancy-splash-outer-buffer (current-buffer)) | 1350 | (fancy-splash-outer-buffer (current-buffer)) |
| @@ -1357,18 +1356,17 @@ mouse." | |||
| 1357 | (save-selected-window | 1356 | (save-selected-window |
| 1358 | (select-frame frame) | 1357 | (select-frame frame) |
| 1359 | (switch-to-buffer "GNU Emacs") | 1358 | (switch-to-buffer "GNU Emacs") |
| 1360 | (setq tab-width 20) | ||
| 1361 | (setq splash-buffer (current-buffer)) | 1359 | (setq splash-buffer (current-buffer)) |
| 1362 | (catch 'stop-splashing | 1360 | (catch 'stop-splashing |
| 1363 | (unwind-protect | 1361 | (unwind-protect |
| 1364 | (let ((map (make-sparse-keymap))) | 1362 | (let ((map (make-sparse-keymap)) |
| 1363 | (cursor-type nil)) | ||
| 1365 | (use-local-map map) | 1364 | (use-local-map map) |
| 1366 | (define-key map [switch-frame] 'ignore) | 1365 | (define-key map [switch-frame] 'ignore) |
| 1367 | (define-key map [t] 'fancy-splash-default-action) | 1366 | (define-key map [t] 'fancy-splash-default-action) |
| 1368 | (define-key map [mouse-movement] 'ignore) | 1367 | (define-key map [mouse-movement] 'ignore) |
| 1369 | (define-key map [mode-line t] 'ignore) | 1368 | (define-key map [mode-line t] 'ignore) |
| 1370 | (setq cursor-type nil | 1369 | (setq display-hourglass nil |
| 1371 | display-hourglass nil | ||
| 1372 | minor-mode-map-alist nil | 1370 | minor-mode-map-alist nil |
| 1373 | emulation-mode-map-alists nil | 1371 | emulation-mode-map-alists nil |
| 1374 | buffer-undo-list t | 1372 | buffer-undo-list t |
| @@ -1379,12 +1377,17 @@ mouse." | |||
| 1379 | timer (run-with-timer 0 fancy-splash-delay | 1377 | timer (run-with-timer 0 fancy-splash-delay |
| 1380 | #'fancy-splash-screens-1 | 1378 | #'fancy-splash-screens-1 |
| 1381 | splash-buffer)) | 1379 | splash-buffer)) |
| 1380 | (message "%s" (startup-echo-area-message)) | ||
| 1382 | (recursive-edit)) | 1381 | (recursive-edit)) |
| 1383 | (cancel-timer timer) | 1382 | (cancel-timer timer) |
| 1384 | (setq display-hourglass old-hourglass | 1383 | (setq display-hourglass old-hourglass |
| 1385 | minor-mode-map-alist old-minor-mode-map-alist | 1384 | minor-mode-map-alist old-minor-mode-map-alist |
| 1386 | emulation-mode-map-alists old-emulation-mode-map-alists) | 1385 | emulation-mode-map-alists old-emulation-mode-map-alists) |
| 1387 | (kill-buffer splash-buffer))))) | 1386 | (use-local-map nil) |
| 1387 | (switch-to-buffer "*scratch*") | ||
| 1388 | ;;; Comment out the next line in order to see the splash buffer exactly as it was. | ||
| 1389 | (kill-buffer splash-buffer) | ||
| 1390 | )))) | ||
| 1388 | ;; If hide-on-input is nil, don't hide the buffer on input. | 1391 | ;; If hide-on-input is nil, don't hide the buffer on input. |
| 1389 | (if (or (window-minibuffer-p) | 1392 | (if (or (window-minibuffer-p) |
| 1390 | (window-dedicated-p (selected-window))) | 1393 | (window-dedicated-p (selected-window))) |
| @@ -1580,7 +1583,7 @@ Type \\[describe-distribution] for information on getting the latest version.")) | |||
| 1580 | auto-save-list-file-prefix))) | 1583 | auto-save-list-file-prefix))) |
| 1581 | t) | 1584 | t) |
| 1582 | (insert "\n\nIf an Emacs session crashed recently, " | 1585 | (insert "\n\nIf an Emacs session crashed recently, " |
| 1583 | "type M-x recover-session RET\nto recover" | 1586 | "type Meta-x recover-session RET\nto recover" |
| 1584 | " the files you were editing.")) | 1587 | " the files you were editing.")) |
| 1585 | 1588 | ||
| 1586 | ;; Display the input that we set up in the buffer. | 1589 | ;; Display the input that we set up in the buffer. |