Variable: evil-kbd-macro-suppress-motion-error

evil-kbd-macro-suppress-motion-error is a customizable variable defined in evil-vars.el.

Value

nil

Documentation

Whether left/right motions signal errors in keyboard macros. This variable only affects beginning-of-line or end-of-line errors regarding the motions h (evil-backward-char) and SPC (evil-forward-char) respectively. This may be desired since such errors cause macro definition or execution to be terminated. There are four possibilities:

- record: errors are suppressed when recording macros, but not when
  replaying them.
- replay: errors are suppressed when replaying macros, but not when
  recording them.
- t: errors are suppressed in both cases.
- nil: errors are never suppressed.

Source Code

;; Defined in ~/.emacs.d/elpa/evil-20251108.138/evil-vars.el
(defcustom evil-kbd-macro-suppress-motion-error nil
  "\\<evil-motion-state-map>
Whether left/right motions signal errors in keyboard macros.
This variable only affects beginning-of-line or end-of-line errors
regarding the motions \\[evil-backward-char] and \\[evil-forward-char]
respectively.  This may be desired since such errors cause macro
definition or execution to be terminated.  There are four
possibilities:

- `record': errors are suppressed when recording macros, but not when
  replaying them.
- `replay': errors are suppressed when replaying macros, but not when
  recording them.
- `t': errors are suppressed in both cases.
- `nil': errors are never suppressed."
  :type '(radio (const :tag "No" :value nil)
                (const :tag "Record" :value record)
                (const :tag "Replay" :value replay)
                (const :tag "Both" :value t))
  :group 'evil)