[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
query-replace (was Re: Bug in minibuf ^N/^P for finding buffers)
- To: Jonathan Payne <http://www.marimba.com/~jpayne>
- Subject: query-replace (was Re: Bug in minibuf ^N/^P for finding buffers)
- From: http://dummy.us.eu.org/robert (robert)
- Date: Tue, 29 Oct 1996 10:59:17 -0800
- In-Reply-To: <199610291847.http://www.marimba.com/~KAA03844>
- XX-from: http://dummy.us.eu.org/robert (Robert)
> 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.