aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/textmodes
diff options
context:
space:
mode:
authorPaul Eggert2019-01-15 14:08:41 -0800
committerPaul Eggert2019-01-15 14:09:11 -0800
commit2a3bd6798e9670828f0402079fcc116d6d6b042d (patch)
treefaed45fcd905138435b9100758f5bcc44e60ec3a /lisp/textmodes
parent9fc02ff5ea95c31a8d81eabb5634aa135fcd8786 (diff)
downloademacs-2a3bd6798e9670828f0402079fcc116d6d6b042d.tar.gz
emacs-2a3bd6798e9670828f0402079fcc116d6d6b042d.zip
Avoid using obsolete accept-process-output arg
* lisp/gnus/nnheader.el (nnheader-accept-process-output): * lisp/net/dns.el (dns-query): * lisp/net/imap.el (imap-wait-for-tag): * lisp/net/network-stream.el (network-stream-get-response): * lisp/net/pop3.el (pop3-accept-process-output): * lisp/obsolete/starttls.el (starttls-negotiate-gnutls) (starttls-open-stream-gnutls): * lisp/server.el (server-eval-at): * lisp/textmodes/ispell.el (ispell-accept-output): Do not depend on the obsolete milliseconds argument of accept-process-output.
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)