Function: evil-execute-last-recorded-macro

evil-execute-last-recorded-macro is an interactive and byte-compiled function defined in evil-commands.el.

Signature

(evil-execute-last-recorded-macro COUNT)

Documentation

Execute last recorded keyboard macro COUNT times.

When called with a non-numerical prefix (such as C-u (universal-argument)), COUNT is infinite.

Key Bindings

Source Code

;; Defined in ~/.emacs.d/elpa/evil-20251108.138/evil-commands.el
(evil-define-command evil-execute-last-recorded-macro (count)
  "Execute last recorded keyboard macro COUNT times.
When called with a non-numerical prefix \
\(such as \\[universal-argument]),
COUNT is infinite."
  :keep-visual t
  :suppress-operator t
  (interactive
   (list (cond
          ((and current-prefix-arg (numberp current-prefix-arg)) current-prefix-arg)
          (current-prefix-arg 0)
          (t 1))))
  (if evil-last-recorded-register
      (evil-execute-macro count (evil-get-register evil-last-recorded-register t))
    (user-error "No previous macro"))
  (setq evil-last-register evil-last-recorded-register))