[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] Changes to emacs/lisp/startup.el,v
From: |
Juri Linkov |
Subject: |
[Emacs-diffs] Changes to emacs/lisp/startup.el,v |
Date: |
Thu, 28 Feb 2008 23:31:31 +0000 |
CVSROOT: /sources/emacs
Module name: emacs
Changes by: Juri Linkov <jurta> 08/02/28 23:31:31
Index: startup.el
===================================================================
RCS file: /sources/emacs/emacs/lisp/startup.el,v
retrieving revision 1.482
retrieving revision 1.483
diff -u -b -r1.482 -r1.483
--- startup.el 28 Feb 2008 22:58:54 -0000 1.482
+++ startup.el 28 Feb 2008 23:31:31 -0000 1.483
@@ -1587,12 +1587,14 @@
(> frame-height (+ image-height 19)))))))
-(defun normal-splash-screen (&optional startup)
+(defun normal-splash-screen (&optional startup concise)
"Display non-graphic splash screen.
If optional argument STARTUP is non-nil, display the startup screen
-after Emacs starts. If STARTUP is nil, display the About screen."
- (let ((prev-buffer (current-buffer)))
- (with-current-buffer (get-buffer-create "*About GNU Emacs*")
+after Emacs starts. If STARTUP is nil, display the About screen.
+If CONCISE is non-nil, display a concise version of the
+splash screen in another window."
+ (let ((splash-buffer (get-buffer-create "*About GNU Emacs*")))
+ (with-current-buffer splash-buffer
(setq buffer-read-only nil)
(erase-buffer)
(setq default-directory command-line-default-directory)
@@ -1653,9 +1655,11 @@
(setq buffer-read-only t)
(if (and view-read-only (not view-mode))
(view-mode-enter nil 'kill-buffer))
- (switch-to-buffer "*About GNU Emacs*")
(if startup (rename-buffer "*GNU Emacs*" t))
- (goto-char (point-min)))))
+ (goto-char (point-min)))
+ (if concise
+ (display-buffer splash-buffer)
+ (switch-to-buffer splash-buffer))))
(defun normal-mouse-startup-screen ()
;; The user can use the mouse to activate menus
@@ -1943,7 +1947,7 @@
(if (not (get-buffer "*GNU Emacs*"))
(if (use-fancy-splash-screens-p)
(fancy-startup-screen concise)
- (normal-splash-screen t))))
+ (normal-splash-screen t concise))))
(defun display-about-screen ()
"Display the *About GNU Emacs* buffer.
- [Emacs-diffs] Changes to emacs/lisp/startup.el,v, Miles Bader, 2008/02/01
- [Emacs-diffs] Changes to emacs/lisp/startup.el,v, Jan Djärv, 2008/02/07
- [Emacs-diffs] Changes to emacs/lisp/startup.el,v, Glenn Morris, 2008/02/10
- [Emacs-diffs] Changes to emacs/lisp/startup.el,v, Juri Linkov, 2008/02/12
- [Emacs-diffs] Changes to emacs/lisp/startup.el,v, Glenn Morris, 2008/02/16
- [Emacs-diffs] Changes to emacs/lisp/startup.el,v, Juri Linkov, 2008/02/16
- [Emacs-diffs] Changes to emacs/lisp/startup.el,v, Dan Nicolaescu, 2008/02/17
- [Emacs-diffs] Changes to emacs/lisp/startup.el,v, Juri Linkov, 2008/02/28
- [Emacs-diffs] Changes to emacs/lisp/startup.el,v, Juri Linkov, 2008/02/28
- [Emacs-diffs] Changes to emacs/lisp/startup.el,v,
Juri Linkov <=
- [Emacs-diffs] Changes to emacs/lisp/startup.el,v, Kim F. Storm, 2008/02/29