From: Eric Abrahamsen Date: Fri, 6 May 2022 16:37:07 +0000 (-0700) Subject: Don't force Gnus cache usage in nnvirtual X-Git-Tag: emacs-29.0.90~1931^2~12 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=6d4cc2358b009462ab0e196946a1a89474c30264;p=emacs.git Don't force Gnus cache usage in nnvirtual * 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. --- diff --git a/lisp/gnus/nnvirtual.el b/lisp/gnus/nnvirtual.el index cc87a707ce6..ae4265de7fb 100644 --- a/lisp/gnus/nnvirtual.el +++ b/lisp/gnus/nnvirtual.el @@ -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