comparison lisp/startup.el @ 92786:f85ca7d27ab2

(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.
author Juri Linkov <juri@jurta.org>
date Wed, 12 Mar 2008 21:54:36 +0000
parents d999f30304bc
children 4c9722bf77fa
comparison
equal deleted inserted replaced
92785:ca94bdbd0b62 92786:f85ca7d27ab2
54 :version "23.1" 54 :version "23.1"
55 :group 'initialization) 55 :group 'initialization)
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.
59 It also inhibits display of the initial message in the `*scratch*' buffer.
60 59
61 This is for use in your personal init file (but NOT site-start.el), once 60 This is for use in your personal init file (but NOT site-start.el), once
62 you are familiar with the contents of the startup screen." 61 you are familiar with the contents of the startup screen."
63 :type 'boolean 62 :type 'boolean
64 :group 'initialization) 63 :group 'initialization)
1153 ;; If you want to create a file, visit that file with C-x C-f, 1152 ;; If you want to create a file, visit that file with C-x C-f,
1154 ;; then enter the text in that file's own buffer. 1153 ;; then enter the text in that file's own buffer.
1155 1154
1156 ") 1155 ")
1157 "Initial message displayed in *scratch* buffer at startup. 1156 "Initial message displayed in *scratch* buffer at startup.
1158 If this is nil, no message will be displayed. 1157 If this is nil, no message will be displayed."
1159 If `inhibit-startup-screen' is non-nil, then no message is displayed,
1160 regardless 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)
1164 1161
1165 1162
2240 ;; (when (display-popup-menus-p) 2237 ;; (when (display-popup-menus-p)
2241 ;; (precompute-menubar-bindings)) 2238 ;; (precompute-menubar-bindings))
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)))))
2256 2245
2257 (defun command-line-normalize-file-name (file) 2246 (defun command-line-normalize-file-name (file)