Function: vundo--eqv-merge
vundo--eqv-merge is a natively compiled function defined in vundo.el.
Signature
(vundo--eqv-merge MLIST)
Documentation
Connect modifications in MLIST to be in the same equivalence list.
Order is reserved.
Source Code
;; Defined in /nix/store/386w2ds6bdh3gcz9k23jssw4cni4lfr2-emacs-packages-deps/share/emacs/site-lisp/elpa/vundo-2.4.0/vundo.el
(defun vundo--eqv-merge (mlist)
"Connect modifications in MLIST to be in the same equivalence list.
Order is reserved."
;; Basically, for MLIST = (A B C), set
;; A.prev = nil A.next = B
;; B.prev = A B.next = C
;; C.prev = B C.next = nil
(cl-loop for this-tail = mlist then (cdr this-tail)
for next-tail = (cdr mlist) then (cdr next-tail)
for prev-tail = (cons nil mlist) then (cdr prev-tail)
while this-tail
do (setf (vundo-m-prev-eqv (car this-tail)) (car prev-tail))
do (setf (vundo-m-next-eqv (car this-tail)) (car next-tail))))