Function: evil-execute-change
evil-execute-change is a byte-compiled function defined in
evil-repeat.el.
Signature
(evil-execute-change CHANGES REL-POINT)
Documentation
Execute as list of changes.
CHANGES is a list of triples (REL-BEG INSERT-TEXT NDEL). REL-BEG is the relative position (to point) where the change takes place. INSERT-TEXT is the text to be inserted at that position and NDEL the number of characters to be deleted at that position before insertion.
REL-POINT is the relative position to point before the changed where point should be placed after all changes.
Source Code
;; Defined in ~/.emacs.d/elpa/evil-20251108.138/evil-repeat.el
(defun evil-execute-change (changes rel-point)
"Execute as list of changes.
CHANGES is a list of triples (REL-BEG INSERT-TEXT NDEL).
REL-BEG is the relative position (to point) where the change
takes place. INSERT-TEXT is the text to be inserted at that
position and NDEL the number of characters to be deleted at that
position before insertion.
REL-POINT is the relative position to point before the changed
where point should be placed after all changes."
(evil-save-repeat-info
(let ((point (point)))
(dolist (change changes)
(goto-char (+ point (nth 0 change)))
(delete-char (nth 2 change))
(insert (nth 1 change)))
(goto-char (+ point rel-point)))))