aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJuri Linkov2008-03-02 16:18:21 +0000
committerJuri Linkov2008-03-02 16:18:21 +0000
commit1344a1f99e110e040d69325f27a6d2afd26a7535 (patch)
treeefa6959fd777dd507bbc034f20d200b306e86aeb
parent59cd993bbda67978f1c25e205b9c429cd30e267f (diff)
downloademacs-1344a1f99e110e040d69325f27a6d2afd26a7535.tar.gz
emacs-1344a1f99e110e040d69325f27a6d2afd26a7535.zip
Revert 2008-02-28 change that adds initial message
to *scratch* buffer regardless of the value of `inhibit-startup-screen'.
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/startup.el21
2 files changed, 17 insertions, 9 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 1071d15b88f..76a30b75224 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12008-03-02 Juri Linkov <juri@jurta.org>
2
3 * startup.el: Revert 2008-02-28 change that adds initial message
4 to *scratch* buffer regardless of the value of `inhibit-startup-screen'.
5
12008-03-01 Dan Nicolaescu <dann@ics.uci.edu> 62008-03-01 Dan Nicolaescu <dann@ics.uci.edu>
2 7
3 * textmodes/css-mode.el (css-indent-offset, css-electric-keys): 8 * textmodes/css-mode.el (css-indent-offset, css-electric-keys):
diff --git a/lisp/startup.el b/lisp/startup.el
index a5e315cbc0f..4f66a1cf501 100644
--- a/lisp/startup.el
+++ b/lisp/startup.el
@@ -42,6 +42,7 @@
42 42
43(defcustom inhibit-startup-screen nil 43(defcustom inhibit-startup-screen nil
44 "Non-nil inhibits the startup screen. 44 "Non-nil inhibits the startup screen.
45It also inhibits display of the initial message in the `*scratch*' buffer.
45 46
46This is for use in your personal init file (but NOT site-start.el), once 47This is for use in your personal init file (but NOT site-start.el), once
47you are familiar with the contents of the startup screen." 48you are familiar with the contents of the startup screen."
@@ -1122,7 +1123,9 @@ or `CVS', and any subdirectory that contains a file named `.nosearch'."
1122 1123
1123") 1124")
1124 "Initial message displayed in *scratch* buffer at startup. 1125 "Initial message displayed in *scratch* buffer at startup.
1125If this is nil, no message will be displayed." 1126If this is nil, no message will be displayed.
1127If `inhibit-startup-screen' is non-nil, then no message is displayed,
1128regardless of the value of this variable."
1126 :type '(choice (text :tag "Message") 1129 :type '(choice (text :tag "Message")
1127 (const :tag "none" nil)) 1130 (const :tag "none" nil))
1128 :group 'initialization) 1131 :group 'initialization)
@@ -2121,14 +2124,6 @@ A fancy display is used on graphic displays, normal otherwise."
2121 ;; abort later. 2124 ;; abort later.
2122 (unless (frame-live-p (selected-frame)) (kill-emacs nil)))))) 2125 (unless (frame-live-p (selected-frame)) (kill-emacs nil))))))
2123 2126
2124 ;; If *scratch* exists and is empty, insert initial-scratch-message.
2125 (and initial-scratch-message
2126 (get-buffer "*scratch*")
2127 (with-current-buffer "*scratch*"
2128 (when (zerop (buffer-size))
2129 (insert initial-scratch-message)
2130 (set-buffer-modified-p nil))))
2131
2132 (if (or inhibit-startup-screen 2127 (if (or inhibit-startup-screen
2133 noninteractive 2128 noninteractive
2134 emacs-quick-startup) 2129 emacs-quick-startup)
@@ -2173,6 +2168,14 @@ A fancy display is used on graphic displays, normal otherwise."
2173 ;; (with-no-warnings 2168 ;; (with-no-warnings
2174 ;; (setq menubar-bindings-done t)) 2169 ;; (setq menubar-bindings-done t))
2175 2170
2171 ;; If *scratch* exists and is empty, insert initial-scratch-message.
2172 (and initial-scratch-message
2173 (get-buffer "*scratch*")
2174 (with-current-buffer "*scratch*"
2175 (when (zerop (buffer-size))
2176 (insert initial-scratch-message)
2177 (set-buffer-modified-p nil))))
2178
2176 (if (> file-count 0) 2179 (if (> file-count 0)
2177 (display-startup-screen t) 2180 (display-startup-screen t)
2178 (display-startup-screen nil))))) 2181 (display-startup-screen nil)))))