comint-send-input tiny change
authorVitalie Spinu <spinuvit@gmail.com>
Mon, 7 Jan 2013 01:06:39 +0000 (17:06 -0800)
committerGlenn Morris <rgm@gnu.org>
Mon, 7 Jan 2013 01:06:39 +0000 (17:06 -0800)
* lisp/comint.el (comint-send-input): Check size of buffer before
waiting for process output, in case already accepted.

Fixes: debbugs:13290

lisp/ChangeLog
lisp/comint.el

index 86cd55c..54ce07b 100644 (file)
@@ -1,3 +1,8 @@
+2013-01-07  Vitalie Spinu  <spinuvit@gmail.com>  (tiny change)
+
+       * comint.el (comint-send-input): Check size of buffer before
+       waiting for process output, in case already accepted.  (Bug#13290)
+
 2013-01-04  Michael Albinus  <michael.albinus@gmx.de>
 
        * net/tramp-sh.el (tramp-set-file-uid-gid): UID and GID must be
index 7bdf67f..eda73af 100644 (file)
@@ -1847,9 +1847,9 @@ Similarly for Soar, Scheme, etc."
           (let ((echo-len (- comint-last-input-end
                              comint-last-input-start)))
             ;; Wait for all input to be echoed:
-            (while (and (accept-process-output proc)
-                        (> (+ comint-last-input-end echo-len)
+            (while (and (> (+ comint-last-input-end echo-len)
                            (point-max))
+                        (accept-process-output proc)
                         (zerop
                          (compare-buffer-substrings
                           nil comint-last-input-start