From: Stefan Monnier Date: Tue, 7 Feb 2023 23:10:33 +0000 (-0500) Subject: * lisp/edmacro.el (edit-kbd-macro): Fix thinko (bug#61333) X-Git-Tag: emacs-29.0.90~471 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=21f3c7ef269;p=emacs.git * lisp/edmacro.el (edit-kbd-macro): Fix thinko (bug#61333) Backported from commit 2273cdb40e1939f7c29a669f6a64e6a27738c1a5. --- diff --git a/lisp/edmacro.el b/lisp/edmacro.el index c0723dc8dfe..c995e2f89d7 100644 --- a/lisp/edmacro.el +++ b/lisp/edmacro.el @@ -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)))