comparison lisp/startup.el @ 17236:c0fa9ba95c05

(command-line-1): Initialize *scratch* with text saying not to use it for creating a file.
author Richard M. Stallman <rms@gnu.org>
date Sun, 23 Mar 1997 20:51:17 +0000
parents ba46af9fd00d
children 9eb3383d05a6
comparison
equal deleted inserted replaced
17235:5905b103d7ea 17236:c0fa9ba95c05
776 Type \\[describe-distribution] for information on getting the latest version."))) 776 Type \\[describe-distribution] for information on getting the latest version.")))
777 (goto-char (point-min)) 777 (goto-char (point-min))
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 "\
784 If you want to create a file, don't type the text in this buffer.
785 This buffer is for notes you don't want to save, and for Lisp evaluation.
786 If you want to create a file, first visit that file with C-x C-f,
787 then 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.
789 (if init-file-had-error 793 (if init-file-had-error
790 (sit-for 2)) 794 (sit-for 2))