Function: logview-thread-difference-to-current-entry
logview-thread-difference-to-current-entry is an interactive and
natively compiled function defined in logview.el.
Signature
(logview-thread-difference-to-current-entry)
Documentation
Display difference to current entry's timestamp in its thread.
In case there is a global difference base (appointed with \<logview-mode-map>M-x logview-difference-to-current-entry (logview-difference-to-current-entry)),
it stays in effect for other threads. Similarly, activated display
of differences to section headers (see \<logview-mode-map>M-x logview-difference-to-section-headers (logview-difference-to-section-headers)) continues for other
threads.
Key Bindings
logview-mode-map z t
Source Code
;; Defined in /nix/store/3zkn9hgpv447zb8nrg55d9x2ynmmrk40-emacs-packages-deps/share/emacs/site-lisp/elpa/logview-20260218.2013/logview.el
(defun logview-thread-difference-to-current-entry ()
"Display difference to current entry's timestamp in its thread.
In case there is a global difference base (appointed with `\\<logview-mode-map>\\[logview-difference-to-current-entry]'),
it stays in effect for other threads. Similarly, activated display
of differences to section headers (see `\\<logview-mode-map>\\[logview-difference-to-section-headers]') continues for other
threads."
(interactive)
(logview--assert 'timestamp 'thread)
(logview--std-temporarily-widening
(logview--locate-current-entry entry start
;; Make sure that it is parsed.
(logview--entry-timestamp entry start)
(let ((base (cons entry start))
(thread (logview--entry-group entry start logview--thread-group)))
(unless (and logview--timestamp-difference-per-thread-bases
(equal (gethash thread logview--timestamp-difference-per-thread-bases) base))
(unless logview--timestamp-difference-per-thread-bases
(setq logview--timestamp-difference-per-thread-bases (make-hash-table :test #'equal)))
(puthash thread base logview--timestamp-difference-per-thread-bases)
(logview--refontify-buffer))))))