diff options
| author | Gnus developers | 2011-08-21 09:39:07 +0000 |
|---|---|---|
| committer | Katsumi Yamaoka | 2011-08-21 09:39:07 +0000 |
| commit | 1e91d50696f9d458228039f5d1e346fd4dae41e6 (patch) | |
| tree | f4ddb48c65e08ab12a2297f06b639efee7438f53 | |
| parent | f5e3c5984b072553838cb15dfd4ab94a9f6ac436 (diff) | |
| download | emacs-1e91d50696f9d458228039f5d1e346fd4dae41e6.tar.gz emacs-1e91d50696f9d458228039f5d1e346fd4dae41e6.zip | |
Merge changes made in Gnus trunk.
nntp.el (nntp-authinfo-file): Mark as obsolete -- use auth-source instead.
pop3.el (pop3-wait-for-messages): Don't use Gnus functions here.
gnus-util.el (gnus-process-live-p): Copy over compat function.
pop3.el (pop3-wait-for-messages): If the pop3 process dies, stop processing.
nntp.el (nntp-kill-buffer): Kill the process before killing the buffer to avoid warnings.
gnus-agent.el (gnus-agent-expire-done-message): Use %.f as format specified to reduce precision.
| -rw-r--r-- | lisp/gnus/ChangeLog | 20 | ||||
| -rw-r--r-- | lisp/gnus/gnus-agent.el | 2 | ||||
| -rw-r--r-- | lisp/gnus/gnus-util.el | 7 | ||||
| -rw-r--r-- | lisp/gnus/nntp.el | 5 | ||||
| -rw-r--r-- | lisp/gnus/pop3.el | 2 |
5 files changed, 35 insertions, 1 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog index 744817e68f2..4fc144b81b9 100644 --- a/lisp/gnus/ChangeLog +++ b/lisp/gnus/ChangeLog | |||
| @@ -1,3 +1,23 @@ | |||
| 1 | 2011-08-21 Lars Magne Ingebrigtsen <larsi@gnus.org> | ||
| 2 | |||
| 3 | * nntp.el (nntp-authinfo-file): Mark as obsolete -- use auth-source | ||
| 4 | instead. | ||
| 5 | |||
| 6 | * pop3.el (pop3-wait-for-messages): Don't use Gnus functions here. | ||
| 7 | |||
| 8 | * gnus-util.el (gnus-process-live-p): Copy over compat function. | ||
| 9 | |||
| 10 | * pop3.el (pop3-wait-for-messages): If the pop3 process dies, stop | ||
| 11 | processing. | ||
| 12 | |||
| 13 | * nntp.el (nntp-kill-buffer): Kill the process before killing the | ||
| 14 | buffer to avoid warnings. | ||
| 15 | |||
| 16 | 2011-08-20 Simon Josefsson <simon@josefsson.org> | ||
| 17 | |||
| 18 | * gnus-agent.el (gnus-agent-expire-done-message): Use %.f as format | ||
| 19 | specified to reduce precision. | ||
| 20 | |||
| 1 | 2011-08-19 Lars Magne Ingebrigtsen <larsi@gnus.org> | 21 | 2011-08-19 Lars Magne Ingebrigtsen <larsi@gnus.org> |
| 2 | 22 | ||
| 3 | * nnimap.el (nnimap-transform-headers): Protect against (NIL ...) | 23 | * nnimap.el (nnimap-transform-headers): Protect against (NIL ...) |
diff --git a/lisp/gnus/gnus-agent.el b/lisp/gnus/gnus-agent.el index 424c55c40f5..26222119b98 100644 --- a/lisp/gnus/gnus-agent.el +++ b/lisp/gnus/gnus-agent.el | |||
| @@ -3560,7 +3560,7 @@ articles in every agentized group? ")) | |||
| 3560 | units (cdr units))) | 3560 | units (cdr units))) |
| 3561 | 3561 | ||
| 3562 | (format "Expiry recovered %d NOV entries, deleted %d files,\ | 3562 | (format "Expiry recovered %d NOV entries, deleted %d files,\ |
| 3563 | and freed %f %s." | 3563 | and freed %.f %s." |
| 3564 | (nth 0 stats) | 3564 | (nth 0 stats) |
| 3565 | (nth 1 stats) | 3565 | (nth 1 stats) |
| 3566 | size (car units))) | 3566 | size (car units))) |
diff --git a/lisp/gnus/gnus-util.el b/lisp/gnus/gnus-util.el index 03ff4a2ea4b..34953611966 100644 --- a/lisp/gnus/gnus-util.el +++ b/lisp/gnus/gnus-util.el | |||
| @@ -1249,6 +1249,13 @@ This function saves the current buffer." | |||
| 1249 | (with-current-buffer gnus-group-buffer | 1249 | (with-current-buffer gnus-group-buffer |
| 1250 | (eq major-mode 'gnus-group-mode)))) | 1250 | (eq major-mode 'gnus-group-mode)))) |
| 1251 | 1251 | ||
| 1252 | (defun gnus-process-live-p (process) | ||
| 1253 | "Returns non-nil if PROCESS is alive. | ||
| 1254 | A process is considered alive if its status is `run', `open', | ||
| 1255 | `listen', `connect' or `stop'." | ||
| 1256 | (memq (process-status process) | ||
| 1257 | '(run open listen connect stop))) | ||
| 1258 | |||
| 1252 | (defun gnus-remove-if (predicate sequence &optional hash-table-p) | 1259 | (defun gnus-remove-if (predicate sequence &optional hash-table-p) |
| 1253 | "Return a copy of SEQUENCE with all items satisfying PREDICATE removed. | 1260 | "Return a copy of SEQUENCE with all items satisfying PREDICATE removed. |
| 1254 | SEQUENCE should be a list, a vector, or a string. Returns always a list. | 1261 | SEQUENCE should be a list, a vector, or a string. Returns always a list. |
diff --git a/lisp/gnus/nntp.el b/lisp/gnus/nntp.el index 986fd51a613..325aa67f80d 100644 --- a/lisp/gnus/nntp.el +++ b/lisp/gnus/nntp.el | |||
| @@ -261,6 +261,8 @@ See `nnml-marks-is-evil' for more information.") | |||
| 261 | (const :format "" "password") | 261 | (const :format "" "password") |
| 262 | (string :format "Password: %v"))))))) | 262 | (string :format "Password: %v"))))))) |
| 263 | 263 | ||
| 264 | (make-obsolete 'nntp-authinfo-file nil "Emacs 24.1") | ||
| 265 | |||
| 264 | 266 | ||
| 265 | 267 | ||
| 266 | (defvoo nntp-connection-timeout nil | 268 | (defvoo nntp-connection-timeout nil |
| @@ -430,6 +432,9 @@ be restored and the command retried." | |||
| 430 | 432 | ||
| 431 | (defun nntp-kill-buffer (buffer) | 433 | (defun nntp-kill-buffer (buffer) |
| 432 | (when (buffer-name buffer) | 434 | (when (buffer-name buffer) |
| 435 | (let ((process (get-buffer-process buffer))) | ||
| 436 | (when process | ||
| 437 | (delete-process process))) | ||
| 433 | (kill-buffer buffer) | 438 | (kill-buffer buffer) |
| 434 | (nnheader-init-server-buffer))) | 439 | (nnheader-init-server-buffer))) |
| 435 | 440 | ||
diff --git a/lisp/gnus/pop3.el b/lisp/gnus/pop3.el index e29ddb0d44e..54c21703836 100644 --- a/lisp/gnus/pop3.el +++ b/lisp/gnus/pop3.el | |||
| @@ -178,6 +178,8 @@ Use streaming commands." | |||
| 178 | 178 | ||
| 179 | (defun pop3-wait-for-messages (process count total-size) | 179 | (defun pop3-wait-for-messages (process count total-size) |
| 180 | (while (< (pop3-number-of-responses total-size) count) | 180 | (while (< (pop3-number-of-responses total-size) count) |
| 181 | (unless (memq (process-status process) '(open run)) | ||
| 182 | (error "pop3 process died")) | ||
| 181 | (when total-size | 183 | (when total-size |
| 182 | (message "pop3 retrieved %dKB (%d%%)" | 184 | (message "pop3 retrieved %dKB (%d%%)" |
| 183 | (truncate (/ (buffer-size) 1000)) | 185 | (truncate (/ (buffer-size) 1000)) |