help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: multiple search strings in query-replace-regexp


From: David Kastrup
Subject: Re: multiple search strings in query-replace-regexp
Date: Fri, 06 Oct 2006 13:51:47 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

"Florian Kaufmann" <sensorflo@gmail.com> writes:

> that works only for multiple searches at once, but not for multiple
> search-replace at once.
>
> replace all foo by bar
> replace all rock by house
> replace all metal by goa
>
> :-) and so on

With Emacs 22:

C-M-% \(foo\)\|\(rock\)\|metal RET
\,(cond (\1 "bar") (\2 "house") ("goa")) RET

-- 
David Kastrup, Kriemhildstr. 15, 44793 Bochum


reply via email to

[Prev in Thread] Current Thread [Next in Thread]