Function: vundo-next-root
vundo-next-root is an interactive and natively compiled function
defined in vundo.el.
Signature
(vundo-next-root)
Documentation
Move to the beginning of the next stem.
Key Bindings
vundo-mode-map w
Source Code
;; Defined in /nix/store/386w2ds6bdh3gcz9k23jssw4cni4lfr2-emacs-packages-deps/share/emacs/site-lisp/elpa/vundo-2.4.0/vundo.el
(defun vundo-next-root ()
"Move to the beginning of the next stem."
(interactive)
(vundo--check-for-command
(when-let* ((this (vundo--current-node vundo--prev-mod-list))
;; If NEXT is nil, ie. this node doesn’t have a child, do
;; nothing.
(next (car (vundo-m-children this))))
(vundo--move-to-node
this next vundo--orig-buffer vundo--prev-mod-list)
(setq this next
next (car (vundo-m-children this)))
(while (and next (not (vundo--stem-root-p this)))
(vundo--move-to-node
this next vundo--orig-buffer vundo--prev-mod-list)
(setq this next
next (car (vundo-m-children this))))
(vundo--trim-undo-list
vundo--orig-buffer this vundo--prev-mod-list)
(vundo--refresh-buffer
vundo--orig-buffer (current-buffer)
'incremental))))