Mercurial > emacs
diff lisp/startup.el @ 90789:c0409ee15cee
Merge from emacs--devo--0
Patches applied:
* emacs--devo--0 (patch 670-674)
- Update from CVS
- Merge from gnus--rel--5.10
* gnus--rel--5.10 (patch 209-210)
- Merge from emacs--devo--0
- Update from CVS
Revision: emacs@sv.gnu.org/emacs--unicode--0--patch-185
author | Miles Bader <miles@gnu.org> |
---|---|
date | Wed, 21 Mar 2007 13:33:07 +0000 |
parents | 91bf6e05918b b8e7b9e517f7 |
children | 4ef881a120fe |
line wrap: on
line diff
--- a/lisp/startup.el Sun Mar 18 14:12:38 2007 +0000 +++ b/lisp/startup.el Wed Mar 21 13:33:07 2007 +0000 @@ -42,7 +42,7 @@ (defcustom inhibit-splash-screen nil "Non-nil inhibits the startup screen. -It also inhibits display of the initial message in the *scratch* buffer. +It also inhibits display of the initial message in the `*scratch*' buffer. This is for use in your personal init file, once you are familiar with the contents of the startup screen." @@ -195,7 +195,7 @@ the user's init file.") (defcustom initial-major-mode 'lisp-interaction-mode - "Major mode command symbol to use for the initial *scratch* buffer." + "Major mode command symbol to use for the initial `*scratch*' buffer." :type 'function :group 'initialization) @@ -1999,13 +1999,13 @@ (with-no-warnings (setq menubar-bindings-done t)) - ;; If *scratch* is selected and it is empty, insert an - ;; initial message saying not to create a file there. - (when (and initial-scratch-message - (equal (buffer-name) "*scratch*") - (= 0 (buffer-size))) - (insert initial-scratch-message) - (set-buffer-modified-p nil)) + ;; If *scratch* exists and is empty, insert initial-scratch-message. + (and initial-scratch-message + (get-buffer "*scratch*") + (with-current-buffer "*scratch*" + (when (zerop (buffer-size)) + (insert initial-scratch-message) + (set-buffer-modified-p nil)))) ;; If user typed input during all that work, ;; abort the startup screen. Otherwise, display it now.