]> git.eshelyaron.com Git - emacs.git/commitdiff
(command-line-1): Don't let type-ahead inhibit the
authorRichard M. Stallman <rms@gnu.org>
Fri, 8 Aug 1997 06:42:34 +0000 (06:42 +0000)
committerRichard M. Stallman <rms@gnu.org>
Fri, 8 Aug 1997 06:42:34 +0000 (06:42 +0000)
initial contents of *scratch*.

lisp/startup.el

index b89922ba49d8e71af84bcda5964fa30373251744..8b7da9c7e3c1a4cdb3f7e9f155ee0abf8c99f54b 100644 (file)
@@ -710,8 +710,7 @@ from being initialized."
       (cond ((and (not inhibit-startup-message) (not noninteractive)
                  ;; Don't clobber a non-scratch buffer if init file
                  ;; has selected it.
-                 (string= (buffer-name) "*scratch*")
-                 (not (input-pending-p)))
+                 (string= (buffer-name) "*scratch*"))
             ;; If there are no switches to process, we might as well
             ;; run this hook now, and there may be some need to do it
             ;; before doing any output.
@@ -738,7 +737,7 @@ from being initialized."
             (when (= (buffer-size) 0)
               (let ((buffer-undo-list t))
                 (unwind-protect
-                    (progn
+                    (when (not (input-pending-p))
                       (goto-char (point-max))
                       ;; The convention for this piece of code is that
                       ;; each piece of output starts with one or two newlines