diff options
| -rw-r--r-- | lisp/ChangeLog | 9 | ||||
| -rw-r--r-- | lisp/startup.el | 18 |
2 files changed, 20 insertions, 7 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 2a813b43f37..ad9a927c54b 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,12 @@ | |||
| 1 | 2008-02-28 Juri Linkov <juri@jurta.org> | ||
| 2 | |||
| 3 | * startup.el (normal-splash-screen): Add argument `concise'. | ||
| 4 | Remove unused binding `prev-buffer'. Let-bind `splash-buffer' | ||
| 5 | to the created buffer. If `concise' is non-nil, call | ||
| 6 | `display-buffer', otherwise `switch-to-buffer'. Doc fix. | ||
| 7 | (display-startup-screen): Add argument `concise' to the call to | ||
| 8 | `normal-splash-screen'. | ||
| 9 | |||
| 1 | 2008-02-28 Kim F. Storm <storm@cua.dk> | 10 | 2008-02-28 Kim F. Storm <storm@cua.dk> |
| 2 | 11 | ||
| 3 | * startup.el (startup-echo-area-message): Check for about-emacs. | 12 | * startup.el (startup-echo-area-message): Check for about-emacs. |
diff --git a/lisp/startup.el b/lisp/startup.el index 6d99e27fdef..3e54e6f4e00 100644 --- a/lisp/startup.el +++ b/lisp/startup.el | |||
| @@ -1587,12 +1587,14 @@ we put it on this frame." | |||
| 1587 | (> frame-height (+ image-height 19))))))) | 1587 | (> frame-height (+ image-height 19))))))) |
| 1588 | 1588 | ||
| 1589 | 1589 | ||
| 1590 | (defun normal-splash-screen (&optional startup) | 1590 | (defun normal-splash-screen (&optional startup concise) |
| 1591 | "Display non-graphic splash screen. | 1591 | "Display non-graphic splash screen. |
| 1592 | If optional argument STARTUP is non-nil, display the startup screen | 1592 | If optional argument STARTUP is non-nil, display the startup screen |
| 1593 | after Emacs starts. If STARTUP is nil, display the About screen." | 1593 | after Emacs starts. If STARTUP is nil, display the About screen. |
| 1594 | (let ((prev-buffer (current-buffer))) | 1594 | If CONCISE is non-nil, display a concise version of the |
| 1595 | (with-current-buffer (get-buffer-create "*About GNU Emacs*") | 1595 | splash screen in another window." |
| 1596 | (let ((splash-buffer (get-buffer-create "*About GNU Emacs*"))) | ||
| 1597 | (with-current-buffer splash-buffer | ||
| 1596 | (setq buffer-read-only nil) | 1598 | (setq buffer-read-only nil) |
| 1597 | (erase-buffer) | 1599 | (erase-buffer) |
| 1598 | (setq default-directory command-line-default-directory) | 1600 | (setq default-directory command-line-default-directory) |
| @@ -1653,9 +1655,11 @@ after Emacs starts. If STARTUP is nil, display the About screen." | |||
| 1653 | (setq buffer-read-only t) | 1655 | (setq buffer-read-only t) |
| 1654 | (if (and view-read-only (not view-mode)) | 1656 | (if (and view-read-only (not view-mode)) |
| 1655 | (view-mode-enter nil 'kill-buffer)) | 1657 | (view-mode-enter nil 'kill-buffer)) |
| 1656 | (switch-to-buffer "*About GNU Emacs*") | ||
| 1657 | (if startup (rename-buffer "*GNU Emacs*" t)) | 1658 | (if startup (rename-buffer "*GNU Emacs*" t)) |
| 1658 | (goto-char (point-min))))) | 1659 | (goto-char (point-min))) |
| 1660 | (if concise | ||
| 1661 | (display-buffer splash-buffer) | ||
| 1662 | (switch-to-buffer splash-buffer)))) | ||
| 1659 | 1663 | ||
| 1660 | (defun normal-mouse-startup-screen () | 1664 | (defun normal-mouse-startup-screen () |
| 1661 | ;; The user can use the mouse to activate menus | 1665 | ;; The user can use the mouse to activate menus |
| @@ -1943,7 +1947,7 @@ screen." | |||
| 1943 | (if (not (get-buffer "*GNU Emacs*")) | 1947 | (if (not (get-buffer "*GNU Emacs*")) |
| 1944 | (if (use-fancy-splash-screens-p) | 1948 | (if (use-fancy-splash-screens-p) |
| 1945 | (fancy-startup-screen concise) | 1949 | (fancy-startup-screen concise) |
| 1946 | (normal-splash-screen t)))) | 1950 | (normal-splash-screen t concise)))) |
| 1947 | 1951 | ||
| 1948 | (defun display-about-screen () | 1952 | (defun display-about-screen () |
| 1949 | "Display the *About GNU Emacs* buffer. | 1953 | "Display the *About GNU Emacs* buffer. |