Function: evil-match-interactive-code
evil-match-interactive-code is a byte-compiled function defined in
evil-common.el.
Signature
(evil-match-interactive-code INTERACTIVE &optional POS)
Documentation
Match an interactive code at position POS in string INTERACTIVE.
Return the first matching entry in evil-interactive-alist, or nil.
Source Code
;; Defined in ~/.emacs.d/elpa/evil-20251108.138/evil-common.el
;;; Interactive forms
(defun evil-match-interactive-code (interactive &optional pos)
"Match an interactive code at position POS in string INTERACTIVE.
Return the first matching entry in `evil-interactive-alist', or nil."
(unless pos (setq pos 0))
(cl-loop
with len = (length interactive) for entry in evil-interactive-alist thereis
(let* ((string (car entry))
(end (+ pos (length string))))
(and (<= end len)
(eq (compare-strings string nil nil interactive pos end) t)
entry))))