Function: evil-repeat-type

evil-repeat-type is a byte-compiled function defined in evil-repeat.el.

This function is obsolete since 1.15.0; use evil--repeat-type instead.

Signature

(evil-repeat-type COMMAND &optional DEFAULT)

Documentation

Return the :repeat property of COMMAND.

If COMMAND doesn't have this property, return DEFAULT.

Source Code

;; Defined in ~/.emacs.d/elpa/evil-20251108.138/evil-repeat.el
(defun evil-repeat-type (command &optional default)
  "Return the :repeat property of COMMAND.
If COMMAND doesn't have this property, return DEFAULT."
  (declare (obsolete evil--repeat-type "1.15.0"))
  (when (functionp command) ; ignore keyboard macros
    (let* ((type (evil-get-command-property command :repeat default))
           (repeat-type (assq type evil-repeat-types)))
      (if repeat-type (cdr repeat-type) type))))