Function: gnus-summary-limit-exclude-childless-dormant
gnus-summary-limit-exclude-childless-dormant is an interactive and
byte-compiled function defined in gnus-sum.el.gz.
Signature
(gnus-summary-limit-exclude-childless-dormant)
Documentation
Hide all dormant articles that have no children.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/gnus/gnus-sum.el.gz
(defun gnus-summary-limit-exclude-childless-dormant ()
"Hide all dormant articles that have no children."
(interactive nil gnus-summary-mode)
(let ((data (gnus-data-list t))
articles d children)
;; Find all articles that are either not dormant or have
;; children.
(while (setq d (pop data))
(when (or (not (= (gnus-data-mark d) gnus-dormant-mark))
(and (setq children
(gnus-article-children (gnus-data-number d)))
(let (found)
(while children
(when (memq (car children) articles)
(setq children nil
found t))
(pop children))
found)))
(push (gnus-data-number d) articles)))
;; Do the limiting.
(prog1
(gnus-summary-limit articles)
(gnus-summary-position-point))))