aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGnus developers <[email protected]>2011-08-21 09:39:07 +0000
committerKatsumi Yamaoka <[email protected]>2011-08-21 09:39:07 +0000
commit1e91d50696f9d458228039f5d1e346fd4dae41e6 (patch)
treef4ddb48c65e08ab12a2297f06b639efee7438f53
parentf5e3c5984b072553838cb15dfd4ab94a9f6ac436 (diff)
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/ChangeLog20
-rw-r--r--lisp/gnus/gnus-agent.el2
-rw-r--r--lisp/gnus/gnus-util.el7
-rw-r--r--lisp/gnus/nntp.el5
-rw-r--r--lisp/gnus/pop3.el2
5 files changed, 35 insertions, 1 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog
index 744817e68f..4fc144b81b 100644
--- a/lisp/gnus/ChangeLog
+++ b/lisp/gnus/ChangeLog
@@ -1,3 +1,23 @@
+2011-08-21 Lars Magne Ingebrigtsen <[email protected]>
+
+ * 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.
+
+2011-08-20 Simon Josefsson <[email protected]>
+
+ * gnus-agent.el (gnus-agent-expire-done-message): Use %.f as format
+ specified to reduce precision.
+
2011-08-19 Lars Magne Ingebrigtsen <[email protected]>
* nnimap.el (nnimap-transform-headers): Protect against (NIL ...)
diff --git a/lisp/gnus/gnus-agent.el b/lisp/gnus/gnus-agent.el
index 424c55c40f..26222119b9 100644
--- a/lisp/gnus/gnus-agent.el
+++ b/lisp/gnus/gnus-agent.el
@@ -3560,7 +3560,7 @@ articles in every agentized group? "))
units (cdr units)))
(format "Expiry recovered %d NOV entries, deleted %d files,\
- and freed %f %s."
+ and freed %.f %s."
(nth 0 stats)
(nth 1 stats)
size (car units)))
diff --git a/lisp/gnus/gnus-util.el b/lisp/gnus/gnus-util.el
index 03ff4a2ea4..3495361196 100644
--- a/lisp/gnus/gnus-util.el
+++ b/lisp/gnus/gnus-util.el
@@ -1249,6 +1249,13 @@ This function saves the current buffer."
(with-current-buffer gnus-group-buffer
(eq major-mode 'gnus-group-mode))))
+(defun gnus-process-live-p (process)
+ "Returns non-nil if PROCESS is alive.
+A process is considered alive if its status is `run', `open',
+`listen', `connect' or `stop'."
+ (memq (process-status process)
+ '(run open listen connect stop)))
+
(defun gnus-remove-if (predicate sequence &optional hash-table-p)
"Return a copy of SEQUENCE with all items satisfying PREDICATE removed.
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 986fd51a61..325aa67f80 100644
--- a/lisp/gnus/nntp.el
+++ b/lisp/gnus/nntp.el
@@ -261,6 +261,8 @@ See `nnml-marks-is-evil' for more information.")
(const :format "" "password")
(string :format "Password: %v")))))))
+(make-obsolete 'nntp-authinfo-file nil "Emacs 24.1")
+
(defvoo nntp-connection-timeout nil
@@ -430,6 +432,9 @@ be restored and the command retried."
(defun nntp-kill-buffer (buffer)
(when (buffer-name buffer)
+ (let ((process (get-buffer-process buffer)))
+ (when process
+ (delete-process process)))
(kill-buffer buffer)
(nnheader-init-server-buffer)))
diff --git a/lisp/gnus/pop3.el b/lisp/gnus/pop3.el
index e29ddb0d44..54c2170383 100644
--- a/lisp/gnus/pop3.el
+++ b/lisp/gnus/pop3.el
@@ -178,6 +178,8 @@ Use streaming commands."
(defun pop3-wait-for-messages (process count total-size)
(while (< (pop3-number-of-responses total-size) count)
+ (unless (memq (process-status process) '(open run))
+ (error "pop3 process died"))
(when total-size
(message "pop3 retrieved %dKB (%d%%)"
(truncate (/ (buffer-size) 1000))