aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman2001-11-25 17:43:04 +0000
committerRichard M. Stallman2001-11-25 17:43:04 +0000
commit0baffc68914cc886f3307c61e5a3e500c7804468 (patch)
tree79ee9490a79603bf57b8b96ae27b191deb05afff
parent4190ce5c057aa84212f20d804c1d0c7071fd1ef9 (diff)
downloademacs-0baffc68914cc886f3307c61e5a3e500c7804468.tar.gz
emacs-0baffc68914cc886f3307c61e5a3e500c7804468.zip
(command-line-1): Don't do startup screen if a subprocess is running.
Call the startup screen buffer "GNU Emacs". Make a special mode-line-format for it.
-rw-r--r--lisp/startup.el13
1 files changed, 10 insertions, 3 deletions
diff --git a/lisp/startup.el b/lisp/startup.el
index 4101091734e..4eb4b28e23a 100644
--- a/lisp/startup.el
+++ b/lisp/startup.el
@@ -1502,6 +1502,9 @@ where FACE is a valid face specification, as it can be used with
1502 ;; has selected another buffer. 1502 ;; has selected another buffer.
1503 (string= (buffer-name) "*scratch*") 1503 (string= (buffer-name) "*scratch*")
1504 ;; Don't display startup screen if init file 1504 ;; Don't display startup screen if init file
1505 ;; has started some sort of server.
1506 (process-list)
1507 ;; Don't display startup screen if init file
1505 ;; has inserted some text in *scratch*. 1508 ;; has inserted some text in *scratch*.
1506 (= 0 (buffer-size))) 1509 (= 0 (buffer-size)))
1507 ;; Display a startup screen, after some preparations. 1510 ;; Display a startup screen, after some preparations.
@@ -1542,11 +1545,14 @@ where FACE is a valid face specification, as it can be used with
1542 ;; If user typed input during all that work, 1545 ;; If user typed input during all that work,
1543 ;; abort the startup screen. Otherwise, display it now. 1546 ;; abort the startup screen. Otherwise, display it now.
1544 (when (not (input-pending-p)) 1547 (when (not (input-pending-p))
1545 (with-temp-buffer 1548 (with-current-buffer (get-buffer-create "GNU Emacs")
1546 (if (and (display-graphic-p) 1549 (if (and (display-graphic-p)
1547 (use-fancy-splash-screens-p)) 1550 (use-fancy-splash-screens-p))
1548 (fancy-splash-screens) 1551 (fancy-splash-screens)
1549 (let ((tab-width 8)) 1552 (let ((tab-width 8)
1553 (mode-line-format (propertize "---- %b %-"
1554 'face '(:weight bold))))
1555
1550 ;; The convention for this piece of code is that 1556 ;; The convention for this piece of code is that
1551 ;; each piece of output starts with one or two newlines 1557 ;; each piece of output starts with one or two newlines
1552 ;; and does not end with any newlines. 1558 ;; and does not end with any newlines.
@@ -1666,7 +1672,8 @@ Type \\[describe-distribution] for information on getting the latest version."))
1666 (goto-char (point-min)) 1672 (goto-char (point-min))
1667 (save-window-excursion 1673 (save-window-excursion
1668 (switch-to-buffer (current-buffer)) 1674 (switch-to-buffer (current-buffer))
1669 (sit-for 120))))))))) 1675 (sit-for 120)))))
1676 (kill-buffer "GNU Emacs")))))
1670 1677
1671 1678
1672(defun command-line-normalize-file-name (file) 1679(defun command-line-normalize-file-name (file)