Function: vundo--mod-list-trim
vundo--mod-list-trim is a natively compiled function defined in
vundo.el.
Signature
(vundo--mod-list-trim MOD-LIST N)
Documentation
Remove MODS from MOD-LIST.
Keep the first N modifications.
Source Code
;; Defined in /nix/store/386w2ds6bdh3gcz9k23jssw4cni4lfr2-emacs-packages-deps/share/emacs/site-lisp/elpa/vundo-2.4.0/vundo.el
(defun vundo--mod-list-trim (mod-list n)
"Remove MODS from MOD-LIST.
Keep the first N modifications."
(cl-loop for midx from (1+ n) to (1- (length mod-list))
for mod = (aref mod-list midx)
do (let ((parent (vundo-m-parent mod))
(eqv-list (vundo--eqv-list-of mod)))
(when parent
(setf (vundo-m-children parent)
(remove mod (vundo-m-children parent))))
(when eqv-list
(vundo--eqv-merge (remove mod eqv-list)))))
(seq-subseq mod-list 0 (1+ n)))