> From: Jonathan Payne <http://www.marimba.com/~jpayne> > Date: Tue Oct 29, 10:47am > > Hi Robert, > > Is there a way to do query replace across buffers? > > I also want to run macros across buffers. query-replace across buffers in Emacs can be done by doing an etags on all files you wanna replace. A "TAGS" file will be created. Get into Emacs and do M-x tags-query-replace. Specify the TAGS file you just created and viola!, you can query-replace across buffers! This is a hack taught to me by my workmate. The really _great_ thing about query-replace in Emacs is that you can replace multiline strings! You do this by putting the string you wanna replace into a kill buffer and when doing the query-replace, yanking the buffer. Only the last line will be shown, but the query-replace will work correctly. It's totally awesome because writing the same thing in Perl is a horendous pain. I do not know of a way to run macros across buffers, unfortunately.