aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1997-03-23 20:51:17 +0000
committerRichard M. Stallman1997-03-23 20:51:17 +0000
commit6f6e0bcd514d86f53da8ccb066df9757c93c48e0 (patch)
treef9c0a9852c2095a794ae824677c7914fa2f475cf
parent214b32165eba7e8ddf8d97a21f86ba43fa4f3be3 (diff)
downloademacs-6f6e0bcd514d86f53da8ccb066df9757c93c48e0.tar.gz
emacs-6f6e0bcd514d86f53da8ccb066df9757c93c48e0.zip
(command-line-1): Initialize *scratch* with
text saying not to use it for creating a file.
-rw-r--r--lisp/startup.el12
1 files changed, 8 insertions, 4 deletions
diff --git a/lisp/startup.el b/lisp/startup.el
index 68f857cde74..4c9e9bce7c0 100644
--- a/lisp/startup.el
+++ b/lisp/startup.el
@@ -778,11 +778,15 @@ Type \\[describe-distribution] for information on getting the latest version."))
778 778
779 (set-buffer-modified-p nil) 779 (set-buffer-modified-p nil)
780 (sit-for 120)) 780 (sit-for 120))
781 (save-excursion 781 (with-current-buffer (get-buffer "*scratch*")
782 ;; In case the Emacs server has already selected
783 ;; another buffer, erase the one our message is in.
784 (set-buffer (get-buffer "*scratch*"))
785 (erase-buffer) 782 (erase-buffer)
783 (insert "\
784If you want to create a file, don't type the text in this buffer.
785This buffer is for notes you don't want to save, and for Lisp evaluation.
786If you want to create a file, first visit that file with C-x C-f,
787then enter the text in that file's own buffer.
788
789")
786 (set-buffer-modified-p nil))))) 790 (set-buffer-modified-p nil)))))
787 ;; Delay 2 seconds after the init file error message 791 ;; Delay 2 seconds after the init file error message
788 ;; was displayed, so user can read it. 792 ;; was displayed, so user can read it.