diff options
| author | Lars Ingebrigtsen | 2012-02-01 23:16:56 +0000 |
|---|---|---|
| committer | Katsumi Yamaoka | 2012-02-01 23:16:56 +0000 |
| commit | 02e8d7e970f88a06ff303128ea47190c8bfd2fa9 (patch) | |
| tree | 5949115454400212a9c4f80e1cb171da28f605f0 | |
| parent | b5235dd9509d53950094390fe303ec2d83cb8cba (diff) | |
| download | emacs-02e8d7e970f88a06ff303128ea47190c8bfd2fa9.tar.gz emacs-02e8d7e970f88a06ff303128ea47190c8bfd2fa9.zip | |
gnus-group.el: Make error reporting when doing `M-g' work again
nntp.el: Make nntp report connection errors better
| -rw-r--r-- | lisp/gnus/ChangeLog | 7 | ||||
| -rw-r--r-- | lisp/gnus/gnus-group.el | 5 | ||||
| -rw-r--r-- | lisp/gnus/nntp.el | 4 |
3 files changed, 12 insertions, 4 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog index 655bffc8f96..765ba923a51 100644 --- a/lisp/gnus/ChangeLog +++ b/lisp/gnus/ChangeLog | |||
| @@ -1,5 +1,12 @@ | |||
| 1 | 2012-02-01 Lars Ingebrigtsen <larsi@gnus.org> | 1 | 2012-02-01 Lars Ingebrigtsen <larsi@gnus.org> |
| 2 | 2 | ||
| 3 | * gnus-group.el (gnus-group-get-new-news-this-group): Don't overwrite | ||
| 4 | the real error message with the useless "previously known to be down". | ||
| 5 | Which isn't even correct. | ||
| 6 | |||
| 7 | * nntp.el (nntp-open-connection): Report the error message if the nntp | ||
| 8 | server can't be reached. | ||
| 9 | |||
| 3 | * nnimap.el (nnimap-retrieve-group-data-early): Keep track of how many | 10 | * nnimap.el (nnimap-retrieve-group-data-early): Keep track of how many |
| 4 | groups we do a total scan for. | 11 | groups we do a total scan for. |
| 5 | (nnimap-wait-for-response): Say that we're doing a total scan, if we're | 12 | (nnimap-wait-for-response): Say that we're doing a total scan, if we're |
diff --git a/lisp/gnus/gnus-group.el b/lisp/gnus/gnus-group.el index 3327bbea5a0..60522839a9a 100644 --- a/lisp/gnus/gnus-group.el +++ b/lisp/gnus/gnus-group.el | |||
| @@ -4070,10 +4070,7 @@ If DONT-SCAN is non-nil, scan non-activated groups as well." | |||
| 4070 | (gnus-agent-save-group-info | 4070 | (gnus-agent-save-group-info |
| 4071 | method (gnus-group-real-name group) active)) | 4071 | method (gnus-group-real-name group) active)) |
| 4072 | (gnus-group-update-group group nil t)) | 4072 | (gnus-group-update-group group nil t)) |
| 4073 | (if (eq (gnus-server-status (gnus-find-method-for-group group)) | 4073 | (gnus-error 3 "%s error: %s" group (gnus-status-message group)))) |
| 4074 | 'denied) | ||
| 4075 | (gnus-error 3 "Server previously determined to be down; not retrying") | ||
| 4076 | (gnus-error 3 "%s error: %s" group (gnus-status-message group))))) | ||
| 4077 | (when beg | 4074 | (when beg |
| 4078 | (goto-char beg)) | 4075 | (goto-char beg)) |
| 4079 | (when gnus-goto-next-group-when-activating | 4076 | (when gnus-goto-next-group-when-activating |
diff --git a/lisp/gnus/nntp.el b/lisp/gnus/nntp.el index 7148fdbb216..98393a61764 100644 --- a/lisp/gnus/nntp.el +++ b/lisp/gnus/nntp.el | |||
| @@ -1385,6 +1385,10 @@ password contained in '~/.nntp-authinfo'." | |||
| 1385 | (nnheader-cancel-timer timer)) | 1385 | (nnheader-cancel-timer timer)) |
| 1386 | (when (and process | 1386 | (when (and process |
| 1387 | (not (memq (process-status process) '(open run)))) | 1387 | (not (memq (process-status process) '(open run)))) |
| 1388 | (with-current-buffer pbuffer | ||
| 1389 | (goto-char (point-min)) | ||
| 1390 | (nnheader-report 'nntp "Error when connecting: %s" | ||
| 1391 | (buffer-substring (point) (line-end-position)))) | ||
| 1388 | (setq process nil)) | 1392 | (setq process nil)) |
| 1389 | (unless process | 1393 | (unless process |
| 1390 | (nntp-kill-buffer pbuffer)) | 1394 | (nntp-kill-buffer pbuffer)) |