aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJuri Linkov2008-03-12 21:54:36 +0000
committerJuri Linkov2008-03-12 21:54:36 +0000
commit9bc6f805fcc851b23e0ee6c9946887f0ae6085d7 (patch)
tree9834b232b215026d585352b643e0ac80239ca848
parentc59302074701d64a198b232d1ab1f9a23375c198 (diff)
downloademacs-9bc6f805fcc851b23e0ee6c9946887f0ae6085d7.tar.gz
emacs-9bc6f805fcc851b23e0ee6c9946887f0ae6085d7.zip
(inhibit-startup-screen): Revert incomplete
2008-03-10 merge from emacs--rel--22 that partly reverted 2008-02-28 change that added initial message to *scratch* buffer regardless of the value of `inhibit-startup-screen'. Now keep this change in the trunk, but not in the 22 branch.
-rw-r--r--lisp/startup.el13
1 files changed, 1 insertions, 12 deletions
diff --git a/lisp/startup.el b/lisp/startup.el
index 1f0cff2ccec..8ab56eee180 100644
--- a/lisp/startup.el
+++ b/lisp/startup.el
@@ -56,7 +56,6 @@ directory using `find-file'. If t, open the `*scratch*' buffer."
56 56
57(defcustom inhibit-startup-screen nil 57(defcustom inhibit-startup-screen nil
58 "Non-nil inhibits the startup screen. 58 "Non-nil inhibits the startup screen.
59It also inhibits display of the initial message in the `*scratch*' buffer.
60 59
61This is for use in your personal init file (but NOT site-start.el), once 60This is for use in your personal init file (but NOT site-start.el), once
62you are familiar with the contents of the startup screen." 61you are familiar with the contents of the startup screen."
@@ -1155,9 +1154,7 @@ opening the first frame (e.g. open a connection to an X server).")
1155 1154
1156") 1155")
1157 "Initial message displayed in *scratch* buffer at startup. 1156 "Initial message displayed in *scratch* buffer at startup.
1158If this is nil, no message will be displayed. 1157If this is nil, no message will be displayed."
1159If `inhibit-startup-screen' is non-nil, then no message is displayed,
1160regardless of the value of this variable."
1161 :type '(choice (text :tag "Message") 1158 :type '(choice (text :tag "Message")
1162 (const :tag "none" nil)) 1159 (const :tag "none" nil))
1163 :group 'initialization) 1160 :group 'initialization)
@@ -2242,14 +2239,6 @@ A fancy display is used on graphic displays, normal otherwise."
2242 ;; (with-no-warnings 2239 ;; (with-no-warnings
2243 ;; (setq menubar-bindings-done t)) 2240 ;; (setq menubar-bindings-done t))
2244 2241
2245 ;; If *scratch* exists and is empty, insert initial-scratch-message.
2246 (and initial-scratch-message
2247 (get-buffer "*scratch*")
2248 (with-current-buffer "*scratch*"
2249 (when (zerop (buffer-size))
2250 (insert initial-scratch-message)
2251 (set-buffer-modified-p nil))))
2252
2253 (if (> file-count 0) 2242 (if (> file-count 0)
2254 (display-startup-screen t) 2243 (display-startup-screen t)
2255 (display-startup-screen nil))))) 2244 (display-startup-screen nil)))))