changeset 41590:39c6a725758c

(command-line-1): Call kill-buffer only in non-fancy case.
author Richard M. Stallman <rms@gnu.org>
date Mon, 26 Nov 2001 20:15:26 +0000
parents 67d2bb283076
children 7c12657b7a8c
files lisp/startup.el
diffstat 1 files changed, 6 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/startup.el	Mon Nov 26 20:10:04 2001 +0000
+++ b/lisp/startup.el	Mon Nov 26 20:15:26 2001 +0000
@@ -1546,10 +1546,10 @@
       ;; If user typed input during all that work,
       ;; abort the startup screen.  Otherwise, display it now.
       (when (not (input-pending-p))
-	(with-current-buffer (get-buffer-create "GNU Emacs")
-	  (if (and (display-graphic-p)
-		   (use-fancy-splash-screens-p))
-	      (fancy-splash-screens)
+	(if (and (display-graphic-p)
+		 (use-fancy-splash-screens-p))
+	    (fancy-splash-screens)
+	  (with-current-buffer (get-buffer-create "GNU Emacs")
 	    (let ((tab-width 8)
 		  (mode-line-format (propertize "---- %b %-" 
 						'face '(:weight bold))))
@@ -1673,8 +1673,8 @@
 	      (goto-char (point-min))
 	      (save-window-excursion
 		(switch-to-buffer (current-buffer))
-		(sit-for 120)))))
-	(kill-buffer "GNU Emacs")))))
+		(sit-for 120))))
+	  (kill-buffer "GNU Emacs"))))))
 
 
 (defun command-line-normalize-file-name (file)