Function: vundo--master-eqv-mod-of
vundo--master-eqv-mod-of is a natively compiled function defined in
vundo.el.
Signature
(vundo--master-eqv-mod-of MOD)
Documentation
Return the master mod in the eqv-list of MOD.
Master mod is the mod with the smallest index in the eqv-list. This function is equivalent to (car (vundo--eqv-list-of mod)).
Source Code
;; Defined in /nix/store/386w2ds6bdh3gcz9k23jssw4cni4lfr2-emacs-packages-deps/share/emacs/site-lisp/elpa/vundo-2.4.0/vundo.el
;;; Mod list to tree
;;
;; If node a, b, c are in the same equivalent list, they represents
;; identical buffer states. For example, in the figure below, node 3
;; and 5 are in the same equivalent list:
;;
;; |
;; 3 5
;; | /
;; |/
;; 4
;;
;; We know 3 and 5 are in the same equivalent list because 5 maps to 3
;; in `undo-equiv-table' (basically).
(defun vundo--master-eqv-mod-of (mod)
"Return the master mod in the eqv-list of MOD.
Master mod is the mod with the smallest index in the eqv-list.
This function is equivalent to (car (vundo--eqv-list-of mod))."
(while (vundo-m-prev-eqv mod)
(cl-assert (not (eq mod (vundo-m-prev-eqv mod))))
(setq mod (vundo-m-prev-eqv mod)))
mod)