diff options
| author | Gerd Moellmann | 2000-10-12 12:07:26 +0000 |
|---|---|---|
| committer | Gerd Moellmann | 2000-10-12 12:07:26 +0000 |
| commit | dbeb499bca8ed08155b7080d42741e133624e62d (patch) | |
| tree | 4735abff711f3e1947388ae7c13c7db3e5e56f85 | |
| parent | d861718a093d186e692e8ce962abc3630a77b4d3 (diff) | |
| download | emacs-dbeb499bca8ed08155b7080d42741e133624e62d.tar.gz emacs-dbeb499bca8ed08155b7080d42741e133624e62d.zip | |
(fancy-splash-screens): Don't add a pre-command hook.
(fancy-splash-pre-command, fancy-splash-pending-command): Removed.
(command-line-1): Don't use fancy-splash-pending-command.
(fancy-splash-screens-1): Goto point-min after inserting text.
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/startup.el | 17 |
2 files changed, 7 insertions, 15 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 73d3c8d9b3c..fa062b2b3d4 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,5 +1,10 @@ | |||
| 1 | 2000-10-12 Gerd Moellmann <gerd@gnu.org> | 1 | 2000-10-12 Gerd Moellmann <gerd@gnu.org> |
| 2 | 2 | ||
| 3 | * startup.el (fancy-splash-screens): Don't add a pre-command hook. | ||
| 4 | (fancy-splash-pre-command, fancy-splash-pending-command): Removed. | ||
| 5 | (command-line-1): Don't use fancy-splash-pending-command. | ||
| 6 | (fancy-splash-screens-1): Goto point-min after inserting text. | ||
| 7 | |||
| 3 | * calendar/diary-lib.el (diary-cyclic): Doc fix from Ed Reingold. | 8 | * calendar/diary-lib.el (diary-cyclic): Doc fix from Ed Reingold. |
| 4 | 9 | ||
| 5 | * progmodes/scheme.el (scheme-mode-map): Use lisp-mode-shared-map | 10 | * progmodes/scheme.el (scheme-mode-map): Use lisp-mode-shared-map |
diff --git a/lisp/startup.el b/lisp/startup.el index e4656e8e9fc..a6aae252045 100644 --- a/lisp/startup.el +++ b/lisp/startup.el | |||
| @@ -989,6 +989,7 @@ where FACE is a valid face specification, as it can be used with | |||
| 989 | (unless (current-message) | 989 | (unless (current-message) |
| 990 | (message fancy-splash-help-echo)) | 990 | (message fancy-splash-help-echo)) |
| 991 | (set-buffer-modified-p nil) | 991 | (set-buffer-modified-p nil) |
| 992 | (goto-char (point-min)) | ||
| 992 | (force-mode-line-update) | 993 | (force-mode-line-update) |
| 993 | (setq fancy-current-text (cdr fancy-current-text)))) | 994 | (setq fancy-current-text (cdr fancy-current-text)))) |
| 994 | 995 | ||
| @@ -1000,16 +1001,6 @@ where FACE is a valid face specification, as it can be used with | |||
| 1000 | (throw 'exit nil)) | 1001 | (throw 'exit nil)) |
| 1001 | 1002 | ||
| 1002 | 1003 | ||
| 1003 | (defvar fancy-splash-pending-command nil | ||
| 1004 | "If non-nil, a command to be executed after the splash screen display.") | ||
| 1005 | |||
| 1006 | (defun fancy-splash-pre-command () | ||
| 1007 | (unless (memq this-command | ||
| 1008 | '(ignore fancy-splash-default-action browse-url)) | ||
| 1009 | (setq fancy-splash-pending-command this-command) | ||
| 1010 | (throw 'exit nil))) | ||
| 1011 | |||
| 1012 | |||
| 1013 | (defun fancy-splash-screens () | 1004 | (defun fancy-splash-screens () |
| 1014 | "Display fancy splash screens when Emacs starts." | 1005 | "Display fancy splash screens when Emacs starts." |
| 1015 | (setq fancy-splash-help-echo (startup-echo-area-message)) | 1006 | (setq fancy-splash-help-echo (startup-echo-area-message)) |
| @@ -1029,7 +1020,6 @@ where FACE is a valid face specification, as it can be used with | |||
| 1029 | (propertize "---- %b %-" 'face '(:weight bold)) | 1020 | (propertize "---- %b %-" 'face '(:weight bold)) |
| 1030 | timer (run-with-timer 0 5 #'fancy-splash-screens-1 | 1021 | timer (run-with-timer 0 5 #'fancy-splash-screens-1 |
| 1031 | splash-buffer)) | 1022 | splash-buffer)) |
| 1032 | (add-hook 'pre-command-hook 'fancy-splash-pre-command) | ||
| 1033 | (recursive-edit)) | 1023 | (recursive-edit)) |
| 1034 | (cancel-timer timer) | 1024 | (cancel-timer timer) |
| 1035 | (remove-hook 'pre-command-hook 'fancy-splash-pre-command) | 1025 | (remove-hook 'pre-command-hook 'fancy-splash-pre-command) |
| @@ -1237,10 +1227,7 @@ Type \\[describe-distribution] for information on getting the latest version.")) | |||
| 1237 | (erase-buffer) | 1227 | (erase-buffer) |
| 1238 | (when initial-scratch-message | 1228 | (when initial-scratch-message |
| 1239 | (insert initial-scratch-message)) | 1229 | (insert initial-scratch-message)) |
| 1240 | (set-buffer-modified-p nil)) | 1230 | (set-buffer-modified-p nil))))))) |
| 1241 | |||
| 1242 | (when fancy-splash-pending-command | ||
| 1243 | (call-interactively fancy-splash-pending-command))))))) | ||
| 1244 | 1231 | ||
| 1245 | ;; Delay 2 seconds after the init file error message | 1232 | ;; Delay 2 seconds after the init file error message |
| 1246 | ;; was displayed, so user can read it. | 1233 | ;; was displayed, so user can read it. |