Function: vundo--node-timestamp
vundo--node-timestamp is a natively compiled function defined in
vundo.el.
Signature
(vundo--node-timestamp MOD-LIST NODE &optional NO-BUFFER)
Documentation
Return a timestamp from MOD-LIST for NODE, if any.
In addition to undo-based timestamps, this includes the modtime of the current buffer (if it has an associated file which is unmodified and NO-BUFFER is non-nil).
Source Code
;; Defined in /nix/store/386w2ds6bdh3gcz9k23jssw4cni4lfr2-emacs-packages-deps/share/emacs/site-lisp/elpa/vundo-2.4.0/vundo.el
(defun vundo--node-timestamp (mod-list node &optional no-buffer)
"Return a timestamp from MOD-LIST for NODE, if any.
In addition to undo-based timestamps, this includes the modtime
of the current buffer (if it has an associated file which is
unmodified and NO-BUFFER is non-nil)."
(when-let ((master (vundo--master-eqv-mod-of node)))
(or (alist-get master vundo--timestamps nil nil #'eq)
(and (eq node (vundo--current-node mod-list))
(with-current-buffer vundo--orig-buffer
(and (not no-buffer) (buffer-file-name)
(not (buffer-modified-p))
(visited-file-modtime)))))))