edit-kbd-macro

edit-kbd-macro is an interactive autoloaded compiled Lisp function in `edmacro.el'.

It is bound to C-x C-k e.

(edit-kbd-macro KEYS &optional PREFIX FINISH-HOOK STORE-HOOK)

Edit a keyboard macro.
At the prompt, type any key sequence which is bound to a keyboard macro.
Or, type `C-x e' or RET to edit the last keyboard macro, `C-h l' to edit
the last 300 keystrokes as a keyboard macro, or `M-x' to edit a macro by
its command name.
With a prefix argument, format the macro in a more concise way.