random delay.
Fixes: debbugs:14681
+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.
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))