diff options
| author | Juri Linkov | 2008-02-28 23:30:11 +0000 |
|---|---|---|
| committer | Juri Linkov | 2008-02-28 23:30:11 +0000 |
| commit | b36b0121583ddf8975e9af40c7c9b13d2f9ba7fb (patch) | |
| tree | 4275a4885409771737dbe8cc6fba8e1c40808aeb | |
| parent | 61ce9226fb818b6e0be36e95f931e75a59a43c98 (diff) | |
| download | emacs-b36b0121583ddf8975e9af40c7c9b13d2f9ba7fb.tar.gz emacs-b36b0121583ddf8975e9af40c7c9b13d2f9ba7fb.zip | |
(normal-splash-screen): Add argument `concise'.
Remove unused binding `prev-buffer'. Let-bind `splash-buffer'
to the created buffer. If `concise' is non-nil, call
`display-buffer', otherwise `switch-to-buffer'. Doc fix.
(display-startup-screen): Add argument `concise' to the call to
`normal-splash-screen'.
| -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 eb78b338272..499f2fd82b3 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 3e988421d3d..a5e315cbc0f 100644 --- a/lisp/startup.el +++ b/lisp/startup.el | |||
| @@ -1544,12 +1544,14 @@ we put it on this frame." | |||
| 1544 | (> frame-height (+ image-height 19))))))) | 1544 | (> frame-height (+ image-height 19))))))) |
| 1545 | 1545 | ||
| 1546 | 1546 | ||
| 1547 | (defun normal-splash-screen (&optional startup) | 1547 | (defun normal-splash-screen (&optional startup concise) |
| 1548 | "Display non-graphic splash screen. | 1548 | "Display non-graphic splash screen. |
| 1549 | If optional argument STARTUP is non-nil, display the startup screen | 1549 | If optional argument STARTUP is non-nil, display the startup screen |
| 1550 | after Emacs starts. If STARTUP is nil, display the About screen." | 1550 | after Emacs starts. If STARTUP is nil, display the About screen. |
| 1551 | (let ((prev-buffer (current-buffer))) | 1551 | If CONCISE is non-nil, display a concise version of the |
| 1552 | (with-current-buffer (get-buffer-create "*About GNU Emacs*") | 1552 | splash screen in another window." |
| 1553 | (let ((splash-buffer (get-buffer-create "*About GNU Emacs*"))) | ||
| 1554 | (with-current-buffer splash-buffer | ||
| 1553 | (setq buffer-read-only nil) | 1555 | (setq buffer-read-only nil) |
| 1554 | (erase-buffer) | 1556 | (erase-buffer) |
| 1555 | (setq default-directory command-line-default-directory) | 1557 | (setq default-directory command-line-default-directory) |
| @@ -1610,9 +1612,11 @@ after Emacs starts. If STARTUP is nil, display the About screen." | |||
| 1610 | (setq buffer-read-only t) | 1612 | (setq buffer-read-only t) |
| 1611 | (if (and view-read-only (not view-mode)) | 1613 | (if (and view-read-only (not view-mode)) |
| 1612 | (view-mode-enter nil 'kill-buffer)) | 1614 | (view-mode-enter nil 'kill-buffer)) |
| 1613 | (switch-to-buffer "*About GNU Emacs*") | ||
| 1614 | (if startup (rename-buffer "*GNU Emacs*" t)) | 1615 | (if startup (rename-buffer "*GNU Emacs*" t)) |
| 1615 | (goto-char (point-min))))) | 1616 | (goto-char (point-min))) |
| 1617 | (if concise | ||
| 1618 | (display-buffer splash-buffer) | ||
| 1619 | (switch-to-buffer splash-buffer)))) | ||
| 1616 | 1620 | ||
| 1617 | (defun normal-mouse-startup-screen () | 1621 | (defun normal-mouse-startup-screen () |
| 1618 | ;; The user can use the mouse to activate menus | 1622 | ;; The user can use the mouse to activate menus |
| @@ -1884,7 +1888,7 @@ screen." | |||
| 1884 | (if (not (get-buffer "*GNU Emacs*")) | 1888 | (if (not (get-buffer "*GNU Emacs*")) |
| 1885 | (if (use-fancy-splash-screens-p) | 1889 | (if (use-fancy-splash-screens-p) |
| 1886 | (fancy-startup-screen concise) | 1890 | (fancy-startup-screen concise) |
| 1887 | (normal-splash-screen t)))) | 1891 | (normal-splash-screen t concise)))) |
| 1888 | 1892 | ||
| 1889 | (defun display-about-screen () | 1893 | (defun display-about-screen () |
| 1890 | "Display the *About GNU Emacs* buffer. | 1894 | "Display the *About GNU Emacs* buffer. |