Function: gnus-summary-mark-same-subject
gnus-summary-mark-same-subject is a byte-compiled function defined in
gnus-sum.el.gz.
Signature
(gnus-summary-mark-same-subject SUBJECT &optional UNMARK)
Documentation
Mark articles with same SUBJECT as read, and return marked number.
If optional argument UNMARK is positive, remove any kinds of marks. If optional argument UNMARK is negative, mark articles as unread instead.
Source Code
;; Defined in /usr/src/emacs/lisp/gnus/gnus-sum.el.gz
(defun gnus-summary-mark-same-subject (subject &optional unmark)
"Mark articles with same SUBJECT as read, and return marked number.
If optional argument UNMARK is positive, remove any kinds of marks.
If optional argument UNMARK is negative, mark articles as unread instead."
(let ((count 1))
(save-excursion
(cond
((null unmark) ; Mark as read.
(while (and
(progn
(gnus-summary-mark-article-as-read gnus-killed-mark)
(gnus-summary-show-thread) t)
(gnus-summary-find-subject subject))
(setq count (1+ count))))
((> unmark 0) ; Tick.
(while (and
(progn
(gnus-summary-mark-article-as-unread gnus-ticked-mark)
(gnus-summary-show-thread) t)
(gnus-summary-find-subject subject))
(setq count (1+ count))))
(t ; Mark as unread.
(while (and
(progn
(gnus-summary-mark-article-as-unread gnus-unread-mark)
(gnus-summary-show-thread) t)
(gnus-summary-find-subject subject))
(setq count (1+ count)))))
(gnus-set-mode-line 'summary)
;; Return the number of marked articles.
count)))