Accidentally defined a keyboard macro in Emacs? There's a macro ring, so you can get your previous macro back with kmacro-delete-ring-head!