]> git.eshelyaron.com Git - emacs.git/commitdiff
Keep the gnus active range current while getting articles
authorAndrew G Cohen <cohen@andy.bu.edu>
Mon, 27 Mar 2023 01:37:55 +0000 (09:37 +0800)
committerAndrew G Cohen <cohen@andy.bu.edu>
Sun, 9 Apr 2023 06:23:34 +0000 (14:23 +0800)
* lisp/gnus/gnus-group.el (gnus-group-get-new-news-this-group):
* lisp/gnus/gnus-group.el (gnus-get-unread-articles-in-group): Update
the current value of the active range since it might have changed.

lisp/gnus/gnus-group.el
lisp/gnus/gnus-start.el

index 070d1223e2cf17ea30ff4086d1428fccd5f4e98c..8c1d7e3c86a087a97680275500449593cb56afe1 100644 (file)
@@ -4195,7 +4195,8 @@ If DONT-SCAN is non-nil, scan non-activated groups as well."
          (let ((info (gnus-get-info group))
                (active (gnus-active group)))
            (when info
-             (gnus-request-update-info info method))
+              (gnus-request-update-info info method)
+              (setq active (gnus-active group)))
            (gnus-get-unread-articles-in-group info active)
            (unless (gnus-virtual-group-p group)
              (gnus-close-group group))
index d59b5b58cebd8fab69a192782f0b3d0b0f97204d..19b8b09de0332cdfe98bfe3d08bd4120bc0b34e4 100644 (file)
@@ -1490,7 +1490,8 @@ backend check whether the group actually exists."
               (gnus-request-update-info
                info (inline (gnus-find-method-for-group
                              (gnus-info-group info)))))
-      (gnus-activate-group (gnus-info-group info) nil t))
+      (gnus-activate-group (gnus-info-group info) nil t)
+      (setq active (gnus-active (gnus-info-group info))))
 
     (let* ((range (gnus-info-read info))
           (num 0))