Function: gnus-summary-limit-to-subject
gnus-summary-limit-to-subject is an interactive and byte-compiled
function defined in gnus-sum.el.gz.
Signature
(gnus-summary-limit-to-subject SUBJECT &optional HEADER NOT-MATCHING)
Documentation
Limit the summary buffer to articles that have subjects that match a regexp.
If NOT-MATCHING, excluding articles that have subjects that match a regexp.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/gnus/gnus-sum.el.gz
(defun gnus-summary-limit-to-subject (subject &optional header not-matching)
"Limit the summary buffer to articles that have subjects that match a regexp.
If NOT-MATCHING, excluding articles that have subjects that match a regexp."
(interactive
(list
(read-string
(if current-prefix-arg "Exclude subject (regexp): " "Limit to subject (regexp): "))
nil current-prefix-arg)
gnus-summary-mode)
(unless header
(setq header "subject"))
(when (not (equal "" subject))
(prog1
(let ((articles (gnus-summary-find-matching
(or header "subject") subject 'all nil nil
not-matching)))
(unless (or articles not-matching)
(error "Found no matches for \"%s\"" subject))
(gnus-summary-limit articles))
(gnus-summary-position-point))))