Function: logview-narrow-to-section

logview-narrow-to-section is an interactive and natively compiled function defined in logview.el.

Signature

(logview-narrow-to-section &optional N SET-VIEW-IF-NEEDED)

Documentation

Narrow the buffer so that only the current section is visible.

If called interactively with a prefix argument, move forward or backward by that many sections first, thus showing a section other than the one point was originally in.

When the current submode has a thread concept, also replace thread narrowing filters so that only the thread of the section is visible.

Key Bindings

logview-mode-map c c

Source Code

;; Defined in /nix/store/3zkn9hgpv447zb8nrg55d9x2ynmmrk40-emacs-packages-deps/share/emacs/site-lisp/elpa/logview-20260218.2013/logview.el
(defun logview-narrow-to-section (&optional n set-view-if-needed)
  "Narrow the buffer so that only the current section is visible.
If called interactively with a prefix argument, move forward or
backward by that many sections first, thus showing a section
other than the one point was originally in.

When the current submode has a thread concept, also replace
thread narrowing filters so that only the thread of the section
is visible."
  ;; Second "p" is only needed so that SET-VIEW-IF-NEEDED is non-nil when called
  ;; interactively.
  (interactive (list (when current-prefix-arg
                       (prefix-numeric-value current-prefix-arg))
                     t))
  (logview-narrow-to-section-keep-threads n set-view-if-needed)
  (when (memq 'thread logview--submode-features)
    (logview--do-narrow-to-thread (logview--std-temporarily-widening
                                    (logview--locate-current-entry entry start
                                      (logview--entry-group entry start logview--thread-group))))))