]> code.delx.au - gnu-emacs/blobdiff - lisp/comint.el
Merge from emacs-24; up to 2012-12-08T12:11:29Z!eliz@gnu.org
[gnu-emacs] / lisp / comint.el
index e797fe841d397c4cc174bf2d3b10ea7be9f4b804..42ac08a9ecc6362f3baa78d4f8f3323caa8e7c8d 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