Function: gnus-mark-article-as-read
gnus-mark-article-as-read is a byte-compiled function defined in
gnus-sum.el.gz.
Signature
(gnus-mark-article-as-read ARTICLE &optional MARK)
Documentation
Enter ARTICLE in the pertinent lists and remove it from others.
Source Code
;; Defined in /usr/src/emacs/lisp/gnus/gnus-sum.el.gz
(defun gnus-mark-article-as-read (article &optional mark)
"Enter ARTICLE in the pertinent lists and remove it from others."
;; Make the article expirable.
(let ((mark (or mark gnus-del-mark)))
(setq gnus-newsgroup-expirable
(if (= mark gnus-expirable-mark)
(gnus-add-to-sorted-list gnus-newsgroup-expirable article)
(delq article gnus-newsgroup-expirable)))
;; Remove from unread and marked lists.
(setq gnus-newsgroup-unreads (delq article gnus-newsgroup-unreads))
(setq gnus-newsgroup-marked (delq article gnus-newsgroup-marked))
(setq gnus-newsgroup-spam-marked (delq article gnus-newsgroup-spam-marked))
(setq gnus-newsgroup-dormant (delq article gnus-newsgroup-dormant))
(push (cons article mark) gnus-newsgroup-reads)
;; Possibly remove from cache, if that is used.
(when gnus-use-cache
(gnus-cache-enter-remove-article article))
t))