nntp.el (nntp-wait-for-string): Supply a timeout for accept-process-output to ensure progress.
This commit is contained in:
parent
cdad7ab25b
commit
d832b43712
4 changed files with 6 additions and 3 deletions
|
@ -1,5 +1,8 @@
|
|||
2010-09-06 Lars Magne Ingebrigtsen <larsi@gnus.org>
|
||||
|
||||
* nntp.el (nntp-wait-for-string): Supply a timeout for
|
||||
accept-process-output to ensure progress.
|
||||
|
||||
* gnus-start.el (gnus-get-unread-articles): If being given an explicit
|
||||
level to get unread articles from, then use that for foreign groups,
|
||||
too.
|
||||
|
|
|
@ -1768,7 +1768,7 @@ password contained in '~/.nntp-authinfo'."
|
|||
(while (and (setq proc (get-buffer-process buf))
|
||||
(memq (process-status proc) '(open run))
|
||||
(not (re-search-forward regexp nil t)))
|
||||
(accept-process-output proc)
|
||||
(accept-process-output proc 0.1)
|
||||
(set-buffer buf)
|
||||
(goto-char (point-min)))))
|
||||
|
||||
|
|
|
@ -267,7 +267,7 @@ This is initialized based on `user-mail-address'."
|
|||
(gnus-message 7 "Waiting for response from %s..." host)
|
||||
(while (and (memq (process-status tcp-connection) '(open run))
|
||||
(zerop (buffer-size)))
|
||||
(accept-process-output tcp-connection))
|
||||
(accept-process-output tcp-connection 1))
|
||||
(gnus-message 7 "Waiting for response from %s... done" host)))))
|
||||
|
||||
;;;###autoload
|
||||
|
|
|
@ -276,7 +276,7 @@ BUFFER defaults to the current buffer."
|
|||
(unless buffer (setq buffer (current-buffer)))
|
||||
(let (entry)
|
||||
(while (setq entry (rassq buffer hashcash-process-alist))
|
||||
(accept-process-output (car entry)))))
|
||||
(accept-process-output (car entry) 1))))
|
||||
|
||||
(defun hashcash-processes-running-p (buffer)
|
||||
"Return non-nil if hashcash processes in BUFFER are still running."
|
||||
|
|
Loading…
Add table
Reference in a new issue