]> git.eshelyaron.com Git - emacs.git/commitdiff
* comint.el (comint-redirect-results-list-from-process): Fix
authorLeo Liu <sdl.web@gmail.com>
Fri, 21 Jun 2013 01:21:15 +0000 (09:21 +0800)
committerLeo Liu <sdl.web@gmail.com>
Fri, 21 Jun 2013 01:21:15 +0000 (09:21 +0800)
random delay.

Fixes: debbugs:14681
lisp/ChangeLog
lisp/comint.el

index 5811fd1b0b236d46ef4ee03aa950cc6388f3f3e1..e4c67dde1d9cbfd06e3305bc333e931a99ebd9ed 100644 (file)
@@ -1,3 +1,8 @@
+2013-06-21  Leo Liu  <sdl.web@gmail.com>
+
+       * comint.el (comint-redirect-results-list-from-process): Fix
+       random delay.  (Bug#14681)
+
 2013-06-21  Juanma Barranquero  <lekktu@gmail.com>
 
        * profiler.el (profiler-format-number): Use log, not log10.
index 592f63fa68367f3ab79bd603bf72960e15b859c1..c1a1c56f78a357818f8b83ce2f89847425b1e2ab 100644 (file)
@@ -3725,8 +3725,8 @@ REGEXP-GROUP is the regular expression group in REGEXP to use."
                                               output-buffer process nil t)
       ;; Wait for the process to complete
       (set-buffer (process-buffer process))
-      (while (null comint-redirect-completed)
-       (accept-process-output nil 1))
+      (while (and (null comint-redirect-completed)
+                 (accept-process-output process)))
       ;; Collect the output
       (set-buffer output-buffer)
       (goto-char (point-min))