Function: ispell-accept-output
ispell-accept-output is a byte-compiled function defined in
ispell.el.gz.
Signature
(ispell-accept-output &optional TIMEOUT-SECS TIMEOUT-MSECS)
Documentation
Wait for output from Ispell process, or for TIMEOUT-SECS + TIMEOUT-MSECS.
(The TIMEOUT-MSECS argument is obsolete and should be avoided.)
If asynchronous subprocesses are not supported, call function ispell-filter(var)/ispell-filter(fun)
and pass it the output of the last Ispell invocation.
Source Code
;; Defined in /usr/src/emacs/lisp/textmodes/ispell.el.gz
;;; **********************************************************************
;;; **********************************************************************
;;;###autoload (define-key esc-map "$" 'ispell-word)
(defun ispell-accept-output (&optional timeout-secs timeout-msecs)
"Wait for output from Ispell process, or for TIMEOUT-SECS + TIMEOUT-MSECS.
\(The TIMEOUT-MSECS argument is obsolete and should be avoided.)
If asynchronous subprocesses are not supported, call function `ispell-filter'
and pass it the output of the last Ispell invocation."
(if ispell-async-processp
(if (process-live-p ispell-process)
(let ((timeout (if timeout-msecs
(+ (or timeout-secs 0) (/ timeout-msecs 1000.0))
timeout-secs)))
(accept-process-output ispell-process timeout))
(error "No Ispell process to read output from!"))
(if (null ispell-process)
(error "No Ispell process to read output from!")
(let ((buf ispell-output-buffer)
ispell-output)
(if (not (bufferp buf))
(setq ispell-filter nil)
(with-current-buffer buf
(setq ispell-output (buffer-substring-no-properties
(point-min) (point-max))))
(ispell-filter t ispell-output)
(with-current-buffer buf
(erase-buffer)))))))