I was given a directory of files in which I was asked to make some systematic changes. Because it was a one-off task, and because there were only a few hundred files I thought I'd use an Emacs keyboard macro.
My macro, in addition to making the desired changes, placed a bunch of
! in the buffer (since I was trying to answer a query about whether to replace an instance of pattern match with a declaration tell emacs to replace all instances, and if no instances were found it just inserted an
Is there a nice simple way of getting rid of all these
! using another keyboard macro and/or some simple