Function: gnus-group-best-unread-group
gnus-group-best-unread-group is an interactive and byte-compiled
function defined in gnus-group.el.gz.
Signature
(gnus-group-best-unread-group &optional EXCLUDE-GROUP)
Documentation
Go to the group with the highest level.
If EXCLUDE-GROUP, do not go to that group.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/gnus/gnus-group.el.gz
(defun gnus-group-best-unread-group (&optional exclude-group)
"Go to the group with the highest level.
If EXCLUDE-GROUP, do not go to that group."
(interactive nil gnus-group-mode)
(goto-char (point-min))
(let ((best 100000)
unread best-point)
(while (not (eobp))
(setq unread (get-text-property (point) 'gnus-unread))
(when (and (numberp unread) (> unread 0))
(when (and (get-text-property (point) 'gnus-level)
(< (get-text-property (point) 'gnus-level) best)
(or (not exclude-group)
(not (equal exclude-group (gnus-group-group-name)))))
(setq best (get-text-property (point) 'gnus-level))
(setq best-point (point))))
(forward-line 1))
(when best-point
(goto-char best-point))
(gnus-group-position-point)
(and best-point (gnus-group-group-name))))