diff options
| author | Richard M. Stallman | 1997-08-08 06:42:34 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1997-08-08 06:42:34 +0000 |
| commit | 8baabd2a147bdff47317e789751ff80f3c2dce31 (patch) | |
| tree | 5636d9a11c612774b783a6ddb9049ec8a6601cfd | |
| parent | f58bb396e827907742c88b9df811ffa906ab119a (diff) | |
| download | emacs-8baabd2a147bdff47317e789751ff80f3c2dce31.tar.gz emacs-8baabd2a147bdff47317e789751ff80f3c2dce31.zip | |
(command-line-1): Don't let type-ahead inhibit the
initial contents of *scratch*.
| -rw-r--r-- | lisp/startup.el | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lisp/startup.el b/lisp/startup.el index b89922ba49d..8b7da9c7e3c 100644 --- a/lisp/startup.el +++ b/lisp/startup.el | |||
| @@ -710,8 +710,7 @@ from being initialized." | |||
| 710 | (cond ((and (not inhibit-startup-message) (not noninteractive) | 710 | (cond ((and (not inhibit-startup-message) (not noninteractive) |
| 711 | ;; Don't clobber a non-scratch buffer if init file | 711 | ;; Don't clobber a non-scratch buffer if init file |
| 712 | ;; has selected it. | 712 | ;; has selected it. |
| 713 | (string= (buffer-name) "*scratch*") | 713 | (string= (buffer-name) "*scratch*")) |
| 714 | (not (input-pending-p))) | ||
| 715 | ;; If there are no switches to process, we might as well | 714 | ;; If there are no switches to process, we might as well |
| 716 | ;; run this hook now, and there may be some need to do it | 715 | ;; run this hook now, and there may be some need to do it |
| 717 | ;; before doing any output. | 716 | ;; before doing any output. |
| @@ -738,7 +737,7 @@ from being initialized." | |||
| 738 | (when (= (buffer-size) 0) | 737 | (when (= (buffer-size) 0) |
| 739 | (let ((buffer-undo-list t)) | 738 | (let ((buffer-undo-list t)) |
| 740 | (unwind-protect | 739 | (unwind-protect |
| 741 | (progn | 740 | (when (not (input-pending-p)) |
| 742 | (goto-char (point-max)) | 741 | (goto-char (point-max)) |
| 743 | ;; The convention for this piece of code is that | 742 | ;; The convention for this piece of code is that |
| 744 | ;; each piece of output starts with one or two newlines | 743 | ;; each piece of output starts with one or two newlines |