Function: gnus-agent-summary-fetch-group
gnus-agent-summary-fetch-group is an interactive and byte-compiled
function defined in gnus-agent.el.gz.
Signature
(gnus-agent-summary-fetch-group &optional ALL)
Documentation
Fetch the downloadable articles in the group.
Optional arg ALL, if non-nil, means to fetch all articles.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/gnus/gnus-agent.el.gz
(defun gnus-agent-summary-fetch-group (&optional all)
"Fetch the downloadable articles in the group.
Optional arg ALL, if non-nil, means to fetch all articles."
(interactive "P")
(let ((articles
(if all gnus-newsgroup-articles
gnus-newsgroup-downloadable))
(gnus-command-method (gnus-find-method-for-group gnus-newsgroup-name))
fetched-articles)
(gnus-agent-while-plugged
(unless articles
(error "No articles to download"))
(gnus-agent-with-fetch
(setq gnus-newsgroup-undownloaded
(gnus-sorted-ndifference
gnus-newsgroup-undownloaded
(setq fetched-articles
(gnus-agent-fetch-articles
gnus-newsgroup-name articles)))))
(save-excursion
(dolist (article articles)
(let ((was-marked-downloadable
(memq article gnus-newsgroup-downloadable)))
(cond (gnus-agent-mark-unread-after-downloaded
(setq gnus-newsgroup-downloadable
(delq article gnus-newsgroup-downloadable))
(when (and (not (member article gnus-newsgroup-dormant))
(not (member article gnus-newsgroup-marked)))
(gnus-summary-mark-article article gnus-unread-mark)))
(was-marked-downloadable
(gnus-summary-set-agent-mark article t)))
(when (gnus-summary-goto-subject article nil t)
(gnus-summary-update-download-mark article))))))
fetched-articles))