Sahas Subramanian has started a series of Emacs tutorial videos with the novel idea of teaching Emacs through the use of macros. The first video demonstrates the utility of keyboard macros by using them to solve a simple problem.
The problem is that you’re given a malformed Python dictionary of the form
{key:number, ...}
where “key” is an unquoted letter. That’s an error because the characters need to be quoted so Subramanian shows how you can fix things easily by recording a keyboard macro and invoking it for each entry in the dictionary. This is the first video so he doesn’t show how to repeat the invocation or invoke it until the end of buffer is reached. Doubtless, that will come in future videos.
Subramanian’s approach is interesting and I’m looking forward to future videos. The introductory video is only 7 minutes, 12 seconds long so it should be easy to fit it in if you want to take a look.