diff options
| author | Lars Magne Ingebrigtsen | 2010-09-07 00:04:11 +0000 |
|---|---|---|
| committer | Katsumi Yamaoka | 2010-09-07 00:04:11 +0000 |
| commit | d832b437121824695a25b2b8e01e143545100508 (patch) | |
| tree | 636cfb22b52796353a67c2017f0addf73ef29b36 | |
| parent | cdad7ab25bd273fbf8631b24a55977dac5072b23 (diff) | |
| download | emacs-d832b437121824695a25b2b8e01e143545100508.tar.gz emacs-d832b437121824695a25b2b8e01e143545100508.zip | |
nntp.el (nntp-wait-for-string): Supply a timeout for accept-process-output to ensure progress.
| -rw-r--r-- | lisp/gnus/ChangeLog | 3 | ||||
| -rw-r--r-- | lisp/gnus/nntp.el | 2 | ||||
| -rw-r--r-- | lisp/gnus/spam-report.el | 2 | ||||
| -rw-r--r-- | lisp/mail/hashcash.el | 2 |
4 files changed, 6 insertions, 3 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog index 7bd62149c95..f2e48fc5782 100644 --- a/lisp/gnus/ChangeLog +++ b/lisp/gnus/ChangeLog | |||
| @@ -1,5 +1,8 @@ | |||
| 1 | 2010-09-06 Lars Magne Ingebrigtsen <larsi@gnus.org> | 1 | 2010-09-06 Lars Magne Ingebrigtsen <larsi@gnus.org> |
| 2 | 2 | ||
| 3 | * nntp.el (nntp-wait-for-string): Supply a timeout for | ||
| 4 | accept-process-output to ensure progress. | ||
| 5 | |||
| 3 | * gnus-start.el (gnus-get-unread-articles): If being given an explicit | 6 | * gnus-start.el (gnus-get-unread-articles): If being given an explicit |
| 4 | level to get unread articles from, then use that for foreign groups, | 7 | level to get unread articles from, then use that for foreign groups, |
| 5 | too. | 8 | too. |
diff --git a/lisp/gnus/nntp.el b/lisp/gnus/nntp.el index 5373230fd8e..3cdd63084ef 100644 --- a/lisp/gnus/nntp.el +++ b/lisp/gnus/nntp.el | |||
| @@ -1768,7 +1768,7 @@ password contained in '~/.nntp-authinfo'." | |||
| 1768 | (while (and (setq proc (get-buffer-process buf)) | 1768 | (while (and (setq proc (get-buffer-process buf)) |
| 1769 | (memq (process-status proc) '(open run)) | 1769 | (memq (process-status proc) '(open run)) |
| 1770 | (not (re-search-forward regexp nil t))) | 1770 | (not (re-search-forward regexp nil t))) |
| 1771 | (accept-process-output proc) | 1771 | (accept-process-output proc 0.1) |
| 1772 | (set-buffer buf) | 1772 | (set-buffer buf) |
| 1773 | (goto-char (point-min))))) | 1773 | (goto-char (point-min))))) |
| 1774 | 1774 | ||
diff --git a/lisp/gnus/spam-report.el b/lisp/gnus/spam-report.el index 0e4576ae3f5..0e32e934040 100644 --- a/lisp/gnus/spam-report.el +++ b/lisp/gnus/spam-report.el | |||
| @@ -267,7 +267,7 @@ This is initialized based on `user-mail-address'." | |||
| 267 | (gnus-message 7 "Waiting for response from %s..." host) | 267 | (gnus-message 7 "Waiting for response from %s..." host) |
| 268 | (while (and (memq (process-status tcp-connection) '(open run)) | 268 | (while (and (memq (process-status tcp-connection) '(open run)) |
| 269 | (zerop (buffer-size))) | 269 | (zerop (buffer-size))) |
| 270 | (accept-process-output tcp-connection)) | 270 | (accept-process-output tcp-connection 1)) |
| 271 | (gnus-message 7 "Waiting for response from %s... done" host))))) | 271 | (gnus-message 7 "Waiting for response from %s... done" host))))) |
| 272 | 272 | ||
| 273 | ;;;###autoload | 273 | ;;;###autoload |
diff --git a/lisp/mail/hashcash.el b/lisp/mail/hashcash.el index a10db0194fc..cc3af11a47d 100644 --- a/lisp/mail/hashcash.el +++ b/lisp/mail/hashcash.el | |||
| @@ -276,7 +276,7 @@ BUFFER defaults to the current buffer." | |||
| 276 | (unless buffer (setq buffer (current-buffer))) | 276 | (unless buffer (setq buffer (current-buffer))) |
| 277 | (let (entry) | 277 | (let (entry) |
| 278 | (while (setq entry (rassq buffer hashcash-process-alist)) | 278 | (while (setq entry (rassq buffer hashcash-process-alist)) |
| 279 | (accept-process-output (car entry))))) | 279 | (accept-process-output (car entry) 1)))) |
| 280 | 280 | ||
| 281 | (defun hashcash-processes-running-p (buffer) | 281 | (defun hashcash-processes-running-p (buffer) |
| 282 | "Return non-nil if hashcash processes in BUFFER are still running." | 282 | "Return non-nil if hashcash processes in BUFFER are still running." |