diff options
| author | Richard M. Stallman | 1997-03-23 20:51:17 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1997-03-23 20:51:17 +0000 |
| commit | 6f6e0bcd514d86f53da8ccb066df9757c93c48e0 (patch) | |
| tree | f9c0a9852c2095a794ae824677c7914fa2f475cf | |
| parent | 214b32165eba7e8ddf8d97a21f86ba43fa4f3be3 (diff) | |
| download | emacs-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.el | 12 |
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 "\ | ||
| 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. |