But there are some other similar macros, which would have same requirement for me. So, is it possible to run a saved macro to run for a selected region. Like apply-macro-to-region-lines function for a saved macro.
Ankur
Ankur Jain wrote:It would be easier just to use query-replace-regexp to add a comma to
> I saved a macro which appends a comma(,) at the end of a line. I want to
> apply this saved macro to a region now. I mean, I select a region in emacs
> and do "append_comma" macro command to apply this to the whole region.
the end of each line:
M-C-% $ RET , RET