* lisp/edmacro.el (edit-kbd-macro): Fix thinko (bug#61333)

Backported from commit 2273cdb40e.
This commit is contained in:
Stefan Monnier 2023-02-07 18:10:33 -05:00
parent 31bf35935f
commit 21f3c7ef26

View file

@ -156,9 +156,9 @@ With a prefix argument, format the macro in a more concise way."
(setq mac cmd)
(setq cmd nil)))
(when (kmacro-p mac)
(setq mac (kmacro--keys mac)
mac-counter (kmacro--counter mac)
mac-format (kmacro--format mac)))
(setq mac-counter (kmacro--counter mac)
mac-format (kmacro--format mac)
mac (kmacro--keys mac)))
(unless (arrayp mac)
(error "Key sequence %s is not a keyboard macro"
(key-description keys)))