Wait for the end of the LIST ACTIVE command, if we're using that.
authorLars Ingebrigtsen <larsi@gnus.org>
Mon, 21 Feb 2011 08:47:13 +0000 (00:47 -0800)
committerLars Ingebrigtsen <larsi@gnus.org>
Mon, 21 Feb 2011 08:47:13 +0000 (00:47 -0800)
Instead of waiting for the beginning.

lisp/ChangeLog
lisp/nntp.el

index 31a3828..1a52db3 100644 (file)
@@ -2,6 +2,8 @@
 
        * nntp.el (nntp-finish-retrieve-group-infos): Add a kludge to use the
        given method as in the group name if we're using an extended method.
+       (nntp-finish-retrieve-group-infos): Wait for the end of the LIST ACTIVE
+       command, if we're using that, instead of waiting for the beginning.
 
        * gnus-start.el (gnus-get-unread-articles): Extend the methods so that
        we're sure to get unique server names, and we don't output two async
index 837f91f..09ecfb8 100644 (file)
@@ -808,7 +808,11 @@ command whose response triggered the error."
                      (progn
                        (goto-char last-point)
                        ;; Count replies.
-                       (while (re-search-forward "^[0-9]" nil t)
+                       (while (re-search-forward
+                               (if nntp-server-list-active-group
+                                   "^[.]"
+                                 "^[0-9]")
+                               nil t)
                          (incf received))
                        (setq last-point (point))
                        (< received count)))