* gnus-agent.el (gnus-agent-save-alist): Fix.
authorLars Magne Ingebrigtsen <larsi@gnus.org>
Fri, 25 Jan 2002 18:06:21 +0000 (18:06 +0000)
committerLars Magne Ingebrigtsen <larsi@gnus.org>
Fri, 25 Jan 2002 18:06:21 +0000 (18:06 +0000)
* nnagent.el (nnagent-retrieve-headers): Must have cut too much by
mistake.  Reinstated lost code.

lisp/ChangeLog
lisp/gnus-agent.el
lisp/nnagent.el

index 5265ce0..c29fef4 100644 (file)
@@ -1,3 +1,10 @@
+2002-01-25  Lars Magne Ingebrigtsen  <larsi@gnus.org>
+
+       * gnus-agent.el (gnus-agent-save-alist): Fix.
+
+       * nnagent.el (nnagent-retrieve-headers): Must have cut too much by
+       mistake.  Reinstated lost code.
+
 2002-01-25  Josh Huber  <huber@alum.wpi.edu>
 
        * mml2015.el (mml2015-mailcrypt-decrypt): Display a signature if
index 280bc3a..bb7b12f 100644 (file)
@@ -1126,7 +1126,7 @@ the actual number of articles toggled is returned."
   (let* ((file-name-coding-system nnmail-pathname-coding-system)
         (prev (cons nil gnus-agent-article-alist))
         (all prev)
-        print-level print-length item)
+        print-level print-length item article)
     (while (setq article (pop articles))
       (while (and (cdr prev)
                 (< (caadr prev) article))
@@ -1137,8 +1137,8 @@ the actual number of articles toggled is returned."
        ((> (caadr prev) article)
        (setcdr prev (cons (cons article state) (cdr prev))))
        ((= (caadr prev) article)
-       (setcdr (cadr prev) state))
-       (setq prev (cdr prev))))
+       (setcdr (cadr prev) state)))
+      (setq prev (cdr prev)))
     (setq gnus-agent-article-alist (cdr all))
     (with-temp-file (if dir
                        (expand-file-name ".agentview" dir)
index 5bdc1e6..86c23d6 100644 (file)
       ;; This loop is just for the `condition-case' -- if reading bugs
       ;; out on a line, it'll still continue on to the next line.  So
       ;; this look is normally just executed once.
-      
+      (while (not (eobp))
+       (condition-case ()
+           (while arts
+             (setq n (read (current-buffer)))
+             (if (> n (car arts))
+                 (beginning-of-line))
+             (while (and arts (> n (car arts)))
+               (insert (format 
+                        "%d\t[Undownloaded article %d]\tGnus Agent\t\t\t\n"
+                        (car arts) (car arts)))
+               (pop arts))
+             (if (and arts (= n (car arts)))
+                 (pop arts))
+             (forward-line 1))
+         (error
+          (gnus-error 4 "Strange nov line (%d)"
+                      (count-lines (point-min) (point)))))
+       (forward-line 1))
       (while arts
        (insert (format
                 "%d\t[Undownloaded article %d]\tGnus Agent\t\t\t\n"