Function: nnselect-store-artlist
nnselect-store-artlist is a macro defined in nnselect.el.gz.
Signature
(nnselect-store-artlist GROUP ARTLIST)
Documentation
Store the ARTLIST for GROUP.
If the group parameter nnselect-store-artlist-override-function
is non-nil call this function on GROUP and ARTLIST; if the group
parameter nnselect-always-regenerate is non-nil don't store the
artlist; otherwise store the ARTLIST in the group parameters.
The active range is also stored.
Source Code
;; Defined in /usr/src/emacs/lisp/gnus/nnselect.el.gz
(defmacro nnselect-store-artlist (group artlist)
"Store the ARTLIST for GROUP.
If the group parameter `nnselect-store-artlist-override-function'
is non-nil call this function on GROUP and ARTLIST; if the group
parameter `nnselect-always-regenerate' is non-nil don't store the
artlist; otherwise store the ARTLIST in the group parameters.
The active range is also stored."
`(let ((override (gnus-group-get-parameter
,group
'nnselect-store-artlist-override-function)))
(gnus-group-set-parameter ,group 'active
(cons 1 (nnselect-artlist-length ,artlist)))
(cond
(override (funcall override ,group ,artlist))
((gnus-group-get-parameter ,group 'nnselect-always-regenerate)
(gnus-group-remove-parameter ,group 'nnselect-artlist))
(t
(gnus-group-set-parameter ,group 'nnselect-artlist
(nnselect-compress-artlist ,artlist))))))