From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Malte Spiess Newsgroups: gmane.emacs.help Subject: Re: multiple search strings in query-replace-regexp Date: Sat, 07 Oct 2006 10:20:52 +0200 Organization: Arcor Message-ID: <8764ewpme3.fsf@trick.ulm.malte.spiess> References: <1160133442.016714.5230@m7g2000cwm.googlegroups.com> <874puhsmzj.fsf@trick.ulm.malte.spiess> <1160134896.365287.138010@e3g2000cwe.googlegroups.com> <85y7rt1x2k.fsf@lola.goethe.zz> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1160210507 10879 80.91.229.2 (7 Oct 2006 08:41:47 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 7 Oct 2006 08:41:47 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Oct 07 10:41:45 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GW7ka-0000rp-BO for geh-help-gnu-emacs@m.gmane.org; Sat, 07 Oct 2006 10:41:40 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GW7kZ-0003wM-S3 for geh-help-gnu-emacs@m.gmane.org; Sat, 07 Oct 2006 04:41:39 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!news.belwue.de!newsfeed.arcor.de!newsspool1.arcor-online.net!news.arcor.de.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.4 (gnu/linux) Cancel-Lock: sha1:USWTOK9Nd7nk+A2lVS4pRnDeBmg= Original-Lines: 33 Original-NNTP-Posting-Date: 07 Oct 2006 10:20:34 CEST Original-NNTP-Posting-Host: 2100d428.newsspool1.arcor-online.net Original-X-Trace: DXC=jcoDbdMjmX[AX0F2i>2EdAZlZDZWglNlFS Original-X-Complaints-To: usenet-abuse@arcor.de Original-Xref: shelby.stanford.edu gnu.emacs.help:142251 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:37870 Archived-At: David Kastrup writes: > "Florian Kaufmann" 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