(gnus-agent-expire-group-1): Bind message-log-max
authorSimon Josefsson <jas@extundo.com>
Sun, 30 Nov 2003 17:30:56 +0000 (17:30 +0000)
committerSimon Josefsson <jas@extundo.com>
Sun, 30 Nov 2003 17:30:56 +0000 (17:30 +0000)
when messaging "X % completed" to inhibit logging them to the
message buffer.
(gnus-agent-expire-group-1): Mention group name in messages.
(gnus-agent-expire-group-1): Only print a message for an article
when there actually was something done to it.

lisp/ChangeLog
lisp/gnus-agent.el

index 8d55cf2..4fa312f 100644 (file)
@@ -1,5 +1,12 @@
 2003-11-30  Simon Josefsson  <jas@extundo.com>
 
+       * gnus-agent.el (gnus-agent-expire-group-1): Bind message-log-max
+       when messaging "X % completed" to inhibit logging them to the
+       message buffer.
+       (gnus-agent-expire-group-1): Mention group name in messages.
+       (gnus-agent-expire-group-1): Only print a message for an article
+       when there actually was something done to it.
+
        * mm-util.el (mm-enable-multibyte): Call set-buffer-multibyte with
        'to argument.  Fixes something or other in Emacs 22, and is
        backwards compatible.  From Kenichi Handa <handa@m17n.org>.
index 28544b8..e0a8ff3 100644 (file)
@@ -2725,7 +2725,8 @@ line." (point) nov-file)))
           (while dlist
             (let ((new-completed (truncate (* 100.0
                                               (/ (setq cnt (1+ cnt))
-                                                 len)))))
+                                                 len))))
+                 message-log-max)
               (when (> new-completed completed)
                 (setq completed new-completed)
                 (gnus-message 7 "%3d%% completed..."  completed)))
@@ -2739,16 +2740,16 @@ line." (point) nov-file)))
                ;; Kept articles are unread, marked, or special.
                (keep
                 (gnus-agent-message 10
-                                    "gnus-agent-expire: Article %d: Kept %s article%s."
-                                    article-number keep (if fetch-date " and file" ""))
+                                    "gnus-agent-expire: %s:%d: Kept %s article%s."
+                                    group article-number keep (if fetch-date " and file" ""))
                 (when fetch-date
                   (unless (file-exists-p
                            (concat dir (number-to-string
                                         article-number)))
                     (setf (nth 1 entry) nil)
                     (gnus-agent-message 3 "gnus-agent-expire cleared \
-download flag on article %d as the cached article file is missing."
-                                        (caar dlist)))
+download flag on %s:%d as the cached article file is missing."
+                                        group (caar dlist)))
                   (unless marker
                     (gnus-message 1 "gnus-agent-expire detected a \
 missing NOV entry.  Run gnus-agent-regenerate-group to restore it.")))
@@ -2816,13 +2817,14 @@ missing NOV entry.  Run gnus-agent-regenerate-group to restore it.")))
                     (push (format "Removed %s article number from \
 article alist" type) actions))
 
-                  (gnus-agent-message 8 "gnus-agent-expire: Article %d: %s"
-                                      article-number
-                                      (mapconcat 'identity actions ", "))))
+                 (when actions
+                   (gnus-agent-message 8 "gnus-agent-expire: %s:%d: %s"
+                                       group article-number
+                                       (mapconcat 'identity actions ", ")))))
                (t
                 (gnus-agent-message
-                 10 "gnus-agent-expire: Article %d: Article kept as \
-expiration tests failed." article-number)
+                 10 "gnus-agent-expire: %s:%d: Article kept as \
+expiration tests failed." group article-number)
                 (gnus-agent-append-to-list
                  tail-alist (cons article-number fetch-date)))
                )