Function: logview-next-as-important-entry
logview-next-as-important-entry is an interactive and natively
compiled function defined in logview.el.
Signature
(logview-next-as-important-entry &optional N)
Documentation
Move point vertically down N “as important” entries.
Point is positioned at the beginning of the message of the resulting entry.
Here “as important” means any entry of level equal or higher than
that of the current entry. For example, if you start moving from
a warning, the function will stop on all warnings and errors in
the buffer, but skip all other “less important” entries. If the
last used command is either logview-next-as-important-entry or
logview-previous-as-important-entry, list of what is considered
“as important” is kept, otherwise it is recomputed anew.
Key Bindings
logview-mode-map N
Source Code
;; Defined in /nix/store/3zkn9hgpv447zb8nrg55d9x2ynmmrk40-emacs-packages-deps/share/emacs/site-lisp/elpa/logview-20260218.2013/logview.el
(defun logview-next-as-important-entry (&optional n)
"Move point vertically down N “as important” entries.
Point is positioned at the beginning of the message of the
resulting entry.
Here “as important” means any entry of level equal or higher than
that of the current entry. For example, if you start moving from
a warning, the function will stop on all warnings and errors in
the buffer, but skip all other “less important” entries. If the
last used command is either `logview-next-as-important-entry' or
`logview-previous-as-important-entry', list of what is considered
“as important” is kept, otherwise it is recomputed anew."
(interactive "p")
(logview--assert 'level)
(unless n
(setq n 1))
(logview--std-temporarily-widening
(logview--locate-current-entry entry nil
(unless (memq last-command '(logview-next-as-important-entry logview-previous-as-important-entry))
(setq logview--as-important-level (logview--entry-level entry))))
(let* ((level (or logview--as-important-level most-positive-fixnum))
(remaining (logview--forward-entry n (lambda (entry _start) (<= (logview--entry-level entry) level)))))
(logview--maybe-pulse-current-entry 'movement)
(logview--maybe-complain-about-movement n remaining 'as-important))))