aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/textmodes
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/textmodes')
-rw-r--r--lisp/textmodes/ispell.el8
1 files changed, 6 insertions, 2 deletions
diff --git a/lisp/textmodes/ispell.el b/lisp/textmodes/ispell.el
index 22047598b26..418901dae48 100644
--- a/lisp/textmodes/ispell.el
+++ b/lisp/textmodes/ispell.el
@@ -1782,11 +1782,15 @@ You can set this variable in hooks in your init file -- eg:
1782 1782
1783 1783
1784(defun ispell-accept-output (&optional timeout-secs timeout-msecs) 1784(defun ispell-accept-output (&optional timeout-secs timeout-msecs)
1785 "Wait for output from Ispell process, or TIMEOUT-SECS and TIMEOUT-MSECS. 1785 "Wait for output from Ispell process, or for TIMEOUT-SECS + TIMEOUT-MSECS.
1786\(The TIMEOUT-MSECS argument is obsolete and should be avoided.)
1786If asynchronous subprocesses are not supported, call function `ispell-filter' 1787If asynchronous subprocesses are not supported, call function `ispell-filter'
1787and pass it the output of the last Ispell invocation." 1788and pass it the output of the last Ispell invocation."
1788 (if ispell-async-processp 1789 (if ispell-async-processp
1789 (accept-process-output ispell-process timeout-secs timeout-msecs) 1790 (let ((timeout (if timeout-msecs
1791 (+ (or timeout-secs 0) (/ timeout-msecs 1000.0))
1792 timeout-secs)))
1793 (accept-process-output ispell-process timeout))
1790 (if (null ispell-process) 1794 (if (null ispell-process)
1791 (error "No Ispell process to read output from!") 1795 (error "No Ispell process to read output from!")
1792 (let ((buf ispell-output-buffer) 1796 (let ((buf ispell-output-buffer)