What functionality is available in emacs to get information about a keyboard macro?

Even something as simple as printing out what the macro evaluates.

  • What have you tried, and in which way did this not give you the info you're looking for?
    – Stefan
    Jul 17, 2020 at 14:59

1 Answer 1


In general terms you can't really say what a keyboard macro does without executing it, because it's all contextual. What does C-c C-c do? It depends. What does C-x o C-c C-c do? That depends on even more things (like the window configuration you happen to have at the time).

However... if you invoke the keyboard macro editor, it'll do the best it can to show you which commands the keys are going to call. It might be wrong about them, because the context available in the editor may not be the context in which you use the macro; but if your macro is pretty generic, you'll at least have a good idea.

Use C-xC-ke to edit a keyboard macro.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.