Synch to No Gnus 200411150531.
authoryamaoka <yamaoka>
Mon, 15 Nov 2004 05:32:22 +0000 (05:32 +0000)
committeryamaoka <yamaoka>
Mon, 15 Nov 2004 05:32:22 +0000 (05:32 +0000)
lisp/ChangeLog
lisp/gnus-start.el
lisp/nntp.el

index 82050d9..acb4a68 100644 (file)
@@ -1,3 +1,13 @@
+2004-11-15  Katsumi Yamaoka  <yamaoka@jpl.org>
+
+       * nntp.el (nntp-request-update-info): Return nil if
+       nntp-marks-is-evil is true so that gnus-get-unread-articles-in-group
+       may not call gnus-activate-group which uselessly issues the GROUP
+       commands for all nntp groups and wastes time.  Reported by Romain
+       Francoise <romain@orebokech.com>.
+
+       * gnus-start.el (gnus-get-unread-articles): Remove redundant test.
+
 2004-11-15  Simon Josefsson  <jas@extundo.com>
 
        * gnus-art.el (gnus-header-button-alist): Handle URLs in OpenPGP:
 
        * starttls.el (starttls-gnutls-program, starttls-use-gnutls)
        (starttls-extra-arguments, starttls-process-connection-type)
-       (starttls-connect, starttls-failure, starttls-success): 
+       (starttls-connect, starttls-failure, starttls-success):
 
        * spam-stat.el (spam-stat): Add :version.
 
        * nnmail.el (nnmail-split-fancy-with-parent-ignore-groups)
        (nnmail-cache-ignore-groups, nnmail-spool-hook)
        (nnmail-split-fancy-match-partial-words)
-       (nnmail-split-lowercase-expanded): 
+       (nnmail-split-lowercase-expanded):
 
        * nndiary.el (nndiary): Add :version.
 
index d52044e..c7a3d7c 100644 (file)
@@ -1709,8 +1709,7 @@ If SCAN, request a scan of that group as well."
       (cond ((and method (eq method-type 'foreign))
             ;; These groups are foreign.  Check the level.
             (if (<= (gnus-info-level info) foreign-level)
-                (when (and (<= (gnus-info-level info) foreign-level)
-                           (setq active (gnus-activate-group group 'scan)))
+                (when (setq active (gnus-activate-group group 'scan))
                   ;; Let the Gnus agent save the active file.
                   (when (and gnus-agent active (gnus-online method))
                     (gnus-agent-save-group-info
index f8bd011..1bb3953 100644 (file)
@@ -1118,29 +1118,29 @@ newsgroups that match the regexp."
 
 (deffoo nntp-request-update-info (group info &optional server)
   (unless nntp-marks-is-evil
-    (nntp-possibly-create-directory group server))
-  (when (and (not nntp-marks-is-evil) (nntp-marks-changed-p group server))
-    (nnheader-message 8 "Updating marks for %s..." group)
-    (nntp-open-marks group server)
-    ;; Update info using `nntp-marks'.
-    (mapc (lambda (pred)
-           (unless (memq (cdr pred) gnus-article-unpropagated-mark-lists)
-             (gnus-info-set-marks
-              info
-              (gnus-update-alist-soft
-               (cdr pred)
-               (cdr (assq (cdr pred) nntp-marks))
-               (gnus-info-marks info))
-              t)))
-         gnus-article-mark-lists)
-    (let ((seen (cdr (assq 'read nntp-marks))))
-      (gnus-info-set-read info
-                         (if (and (integerp (car seen))
-                                  (null (cdr seen)))
-                             (list (cons (car seen) (car seen)))
-                           seen)))
-    (nnheader-message 8 "Updating marks for %s...done" group))
-  info)
+    (nntp-possibly-create-directory group server)
+    (when (nntp-marks-changed-p group server)
+      (nnheader-message 8 "Updating marks for %s..." group)
+      (nntp-open-marks group server)
+      ;; Update info using `nntp-marks'.
+      (mapc (lambda (pred)
+             (unless (memq (cdr pred) gnus-article-unpropagated-mark-lists)
+               (gnus-info-set-marks
+                info
+                (gnus-update-alist-soft
+                 (cdr pred)
+                 (cdr (assq (cdr pred) nntp-marks))
+                 (gnus-info-marks info))
+                t)))
+           gnus-article-mark-lists)
+      (let ((seen (cdr (assq 'read nntp-marks))))
+       (gnus-info-set-read info
+                           (if (and (integerp (car seen))
+                                    (null (cdr seen)))
+                               (list (cons (car seen) (car seen)))
+                             seen)))
+      (nnheader-message 8 "Updating marks for %s...done" group))
+    info))