Function: evil-compile-replacement
evil-compile-replacement is a byte-compiled function defined in
evil-common.el.
Signature
(evil-compile-replacement TO)
Documentation
Maybe convert a regexp replacement TO to Lisp.
Return a list suitable for perform-replace if necessary, the
original string if not. Currently the following magic characters
in replacements are supported: 0-9&#lLuUrnbt,
The magic character , (comma) start an Emacs-lisp expression.
Source Code
;; Defined in ~/.emacs.d/elpa/evil-20251108.138/evil-common.el
(defun evil-compile-replacement (to)
"Maybe convert a regexp replacement TO to Lisp.
Return a list suitable for `perform-replace' if necessary, the
original string if not. Currently the following magic characters
in replacements are supported: 0-9&#lLuUrnbt,
The magic character , (comma) start an Emacs-lisp expression."
(when (stringp to)
(save-match-data
(cons 'replace-eval-replacement
(car (evil-compile-subreplacement to))))))