aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Ingebrigtsen2020-09-13 16:46:11 +0200
committerLars Ingebrigtsen2020-09-13 16:46:11 +0200
commitdef34a20766ea5179afd5e5ed090a2b86fcccb5e (patch)
tree5315814cc1010fa9b396fde5ff37f072522dcd8f
parentc2dea983e8016dab6e76a10d8b02ffbf894e2760 (diff)
downloademacs-def34a20766ea5179afd5e5ed090a2b86fcccb5e.tar.gz
emacs-def34a20766ea5179afd5e5ed090a2b86fcccb5e.zip
Don't eagerly store articles in the Agent by default
* lisp/gnus/gnus-agent.el (gnus-agent-store-article): Made obsolete. * lisp/gnus/gnus-art.el (gnus-request-article-this-buffer): Don't call it. * lisp/gnus/gnus-async.el (gnus-async-article-callback): Ditto (bug#43356). This partially reverts f3b146e943cd733fb716c75048f24b73826e5f30, which in was response to what appears to be an erroneous feature-request - bug#8502. Instead this should be done instead: “If I read an article while plugged, do they get entered into the Agent?” *No*. If you want this behavior, add ‘gnus-agent-fetch-selected-article’ to ‘gnus-select-article-hook’.
-rw-r--r--lisp/gnus/gnus-agent.el1
-rw-r--r--lisp/gnus/gnus-art.el5
-rw-r--r--lisp/gnus/gnus-async.el6
3 files changed, 2 insertions, 10 deletions
diff --git a/lisp/gnus/gnus-agent.el b/lisp/gnus/gnus-agent.el
index 03e447e072a..d7388d480c3 100644
--- a/lisp/gnus/gnus-agent.el
+++ b/lisp/gnus/gnus-agent.el
@@ -3812,6 +3812,7 @@ has been fetched."
3812 t)))) 3812 t))))
3813 3813
3814(defun gnus-agent-store-article (article group) 3814(defun gnus-agent-store-article (article group)
3815 (declare (obsolete nil "28.1"))
3815 (let* ((gnus-command-method (gnus-find-method-for-group group)) 3816 (let* ((gnus-command-method (gnus-find-method-for-group group))
3816 (file (gnus-agent-article-name (number-to-string article) group)) 3817 (file (gnus-agent-article-name (number-to-string article) group))
3817 (file-name-coding-system nnmail-pathname-coding-system) 3818 (file-name-coding-system nnmail-pathname-coding-system)
diff --git a/lisp/gnus/gnus-art.el b/lisp/gnus/gnus-art.el
index e0339cc1f32..13a85379970 100644
--- a/lisp/gnus/gnus-art.el
+++ b/lisp/gnus/gnus-art.el
@@ -7084,10 +7084,7 @@ If given a prefix, show the hidden text instead."
7084 gnus-summary-buffer) 7084 gnus-summary-buffer)
7085 (when gnus-keep-backlog 7085 (when gnus-keep-backlog
7086 (gnus-backlog-enter-article 7086 (gnus-backlog-enter-article
7087 group article (current-buffer))) 7087 group article (current-buffer))))
7088 (when (and gnus-agent
7089 (gnus-agent-group-covered-p group))
7090 (gnus-agent-store-article article group)))
7091 (setq result 'article)) 7088 (setq result 'article))
7092 (methods 7089 (methods
7093 (setq gnus-override-method (pop methods))) 7090 (setq gnus-override-method (pop methods)))
diff --git a/lisp/gnus/gnus-async.el b/lisp/gnus/gnus-async.el
index e3e81c8bbce..9bcb6c33a64 100644
--- a/lisp/gnus/gnus-async.el
+++ b/lisp/gnus/gnus-async.el
@@ -225,12 +225,6 @@ that was fetched."
225 (save-excursion 225 (save-excursion
226 (save-restriction 226 (save-restriction
227 (narrow-to-region mark (point-max)) 227 (narrow-to-region mark (point-max))
228 ;; Put the articles into the agent, if they aren't already.
229 (when (and gnus-agent
230 (gnus-agent-group-covered-p group))
231 (save-restriction
232 (narrow-to-region mark (point-max))
233 (gnus-agent-store-article article group)))
234 ;; Prefetch images for the groups that want that. 228 ;; Prefetch images for the groups that want that.
235 (when (fboundp 'gnus-html-prefetch-images) 229 (when (fboundp 'gnus-html-prefetch-images)
236 (gnus-html-prefetch-images summary)) 230 (gnus-html-prefetch-images summary))