Skip to content

Running evil-repeat with a macro that deletes words results in an error. #7

Description

@nicholas-stout

Describe your issue

When I make a macro that involves deleting a word, I cannot repeat the macro with evil-repeat without getting an (args-out-of-range "" 0) error.

Here's the full stacktrace:

Debugger entered--Lisp error: (args-out-of-range "" 0)
  evil-read-key()
  byte-code("\10\205\5\0\11?\205\17\0\n\206\17\0\303 C\207" [evil-this-macro defining-kbd-macro evil-this-register evil-read-key] 1)
  command-execute(evil-record-macro)
  evil-execute-repeat-info(([64 100 113]))
  evil-execute-repeat-info-with-count(nil ([64 100 113]))
  #<subr evil-repeat>(nil nil)
  ad-Advice-evil-repeat(#<subr evil-repeat> nil nil)
  apply(ad-Advice-evil-repeat #<subr evil-repeat> (nil nil))
  evil-repeat(nil nil)
  funcall-interactively(evil-repeat nil nil)
  command-execute(evil-repeat)

I can reproduce this on the latest version of Doom without my private config. I've also been able to reproduce this in Fundamental Mode.

Steps to reproduce

  1. Open Doom Emacs.
  2. Open any file.
  3. Record this macro to q: dw j
  4. Run @q.
  5. Run evil-repeat.

System information

debug-info.txt

Disclosures

  • This issue was written with/by AI.

Metadata

Metadata

Assignees

No one assigned

    Type

    Open to PRs

    None yet

    Priority

    None yet

    Projects

    Status
    Investigating

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions