Function: logview-narrow-to-thread
logview-narrow-to-thread is an interactive and natively compiled
function defined in logview.el.
Signature
(logview-narrow-to-thread &optional THREAD-NAME)
Documentation
Narrow to specific thread or widen if already narrowed.
When called interactively, use the thread name of the current entry. With a prefix argument, read the name from the minibuffer instead.
Key Bindings
logview-mode-map y
Source Code
;; Defined in /nix/store/3zkn9hgpv447zb8nrg55d9x2ynmmrk40-emacs-packages-deps/share/emacs/site-lisp/elpa/logview-20260218.2013/logview.el
(defun logview-narrow-to-thread (&optional thread-name)
"Narrow to specific thread or widen if already narrowed.
When called interactively, use the thread name of the current
entry. With a prefix argument, read the name from the minibuffer
instead."
(interactive (list (when current-prefix-arg
(logview--assert 'thread)
(read-from-minibuffer "Narrow to thread: " nil nil nil logview--thread-name-history
(logview--std-temporarily-widening
(logview--locate-current-entry entry start
(logview--entry-group entry start logview--thread-group)))))))
(logview--assert 'thread)
(unless (or thread-name (cdar (car logview--effective-filter)))
(logview--std-temporarily-widening
(logview--locate-current-entry entry start
(unless entry
(user-error "There is no current entry, don't know which thread to narrow to"))
(setf thread-name (logview--entry-group entry start logview--thread-group)))))
(logview--do-narrow-to-thread thread-name)
(if thread-name
(message "Narrowed to thread `%s'" thread-name)
(message "All thread-narrowing filters got reset")))