]> git.eshelyaron.com Git - emacs.git/commitdiff
Don't force Gnus cache usage in nnvirtual
authorEric Abrahamsen <eric@ericabrahamsen.net>
Fri, 6 May 2022 16:37:07 +0000 (09:37 -0700)
committerEric Abrahamsen <eric@ericabrahamsen.net>
Fri, 6 May 2022 16:43:59 +0000 (09:43 -0700)
* lisp/gnus/nnvirtual.el (nnvirtual-retrieve-headers): We're not sure
why this was happening, but it shouldn't be necessary. Simply calling
`gnus-retrieve-headers' directly will use the cache if the user has
configured it.

lisp/gnus/nnvirtual.el

index cc87a707ce6b5b96b4614500f6e3a9d7900bddd3..ae4265de7fbb29dc2e9abc2d64c6777e2bc84c48 100644 (file)
@@ -114,14 +114,9 @@ It is computed from the marks of individual component groups.")
                       (gnus-check-server
                        (gnus-find-method-for-group cgroup) t)
                       (gnus-request-group cgroup t)
-                      (setq prefix (gnus-group-real-prefix cgroup))
-                      ;; FIX FIX FIX we want to check the cache!
-                      ;; This is probably evil if people have set
-                      ;; gnus-use-cache to nil themselves, but I
-                      ;; have no way of finding the true value of it.
-                      (let ((gnus-use-cache t))
-                        (setq result (gnus-retrieve-headers
-                                      articles cgroup nil))))
+                      (setq prefix (gnus-group-real-prefix cgroup)
+                             result (gnus-retrieve-headers
+                                    articles cgroup nil)))
              (set-buffer nntp-server-buffer)
              ;; If we got HEAD headers, we convert them into NOV
              ;; headers.  This is slow, inefficient and, come to think