(gnus-agent-fetch-group-1): After fetching
authorKai Grossjohann <kgrossjo@eu.uu.net>
Sun, 20 Oct 2002 20:28:12 +0000 (20:28 +0000)
committerKai Grossjohann <kgrossjo@eu.uu.net>
Sun, 20 Oct 2002 20:28:12 +0000 (20:28 +0000)
headers from the group, update variable `articles' to contain
only those numbers where headers exist.  (When fetching all
articles in a group, Gnus creates lots of numbers where there is
no articles.)

lisp/ChangeLog
lisp/gnus-agent.el

index e1de796..08564b9 100644 (file)
@@ -1,3 +1,11 @@
+2002-10-20  Kai Gro\e,A_\e(Bjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
+
+       * gnus-agent.el (gnus-agent-fetch-group-1): After fetching
+       headers from the group, update variable `articles' to contain
+       only those numbers where headers exist.  (When fetching all
+       articles in a group, Gnus creates lots of numbers where there is
+       no articles.)
+
 2002-10-20  Steve Youngs  <youngs@xemacs.org>
 
        * pgg-parse.el (pgg-parse-public-key-algorithm-alist): XEmacs
index edf5ebd..4161370 100644 (file)
@@ -1316,6 +1316,11 @@ This can be added to `gnus-select-article-hook' or
                 (setq gnus-newsgroup-headers
                       (gnus-get-newsgroup-headers-xover articles nil nil
                                                         group))
+                ;; Some articles may not exist, so update `articles'
+                ;; from what was actually found.  -- kai
+                (setq articles
+                      (mapcar (lambda (x) (aref x 0))
+                              gnus-newsgroup-headers))
                 ;; `gnus-agent-overview-buffer' may be killed for
                 ;; timeout reason.  If so, recreate it.
                 (gnus-agent-create-buffer)))