Function: logview-toggle-sections-thread-bound

logview-toggle-sections-thread-bound is an interactive and natively compiled function defined in logview.el.

Signature

(logview-toggle-sections-thread-bound &optional ARG)

Documentation

Toggle whether sections are bound to threads.

Section-defining view determines which entries start sections. If sections are thread-bound (the default), only another match within the same thread ends a section. Otherwise, any match ends the previous section. If sections are thread-bound, they can overlap.

If invoked with prefix argument, make sections thread-bound if the argument is positive, non-bound otherwise.

Key Bindings

logview-mode-map c t

Source Code

;; Defined in /nix/store/3zkn9hgpv447zb8nrg55d9x2ynmmrk40-emacs-packages-deps/share/emacs/site-lisp/elpa/logview-20260218.2013/logview.el
(defun logview-toggle-sections-thread-bound (&optional arg)
  "Toggle whether sections are bound to threads.
Section-defining view determines which entries start sections.
If sections are thread-bound (the default), only another match
within the same thread ends a section.  Otherwise, any match ends
the previous section.  If sections are thread-bound, they can
overlap.

If invoked with prefix argument, make sections thread-bound if
the argument is positive, non-bound otherwise."
  (interactive (list (or current-prefix-arg 'toggle)))
  (logview--assert 'thread)
  (when (and (logview--toggle-option-locally 'logview--sections-thread-bound arg (called-interactively-p 'interactive)
                                             "Sections are now thread-bound and can overlap"
                                             "Sections are not thread-bound anymore and are always sequential")
             logview--timestamp-difference-to-section-headers)
    (logview--refontify-buffer)))