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: Malte Spiess
Subject: Re: multiple search strings in query-replace-regexp
Date: Sat, 07 Oct 2006 10:20:52 +0200
User-agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.4 (gnu/linux)

David Kastrup <dak@gnu.org> writes:

> "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

Doesn't work with Emacs 21.4.1 :-(...

Looks pretty impressive though!
Does \, cause to execute lisp stuff?

Btw: Shouldn't

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

work, too?

Greetings

Malte


reply via email to

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