From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Kastrup Newsgroups: gmane.emacs.help Subject: Re: multiple search strings in query-replace-regexp Date: Fri, 06 Oct 2006 13:51:47 +0200 Organization: Organization?!? Message-ID: <85y7rt1x2k.fsf@lola.goethe.zz> References: <1160133442.016714.5230@m7g2000cwm.googlegroups.com> <874puhsmzj.fsf@trick.ulm.malte.spiess> <1160134896.365287.138010@e3g2000cwe.googlegroups.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1160138475 6743 80.91.229.2 (6 Oct 2006 12:41:15 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 6 Oct 2006 12:41:15 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Oct 06 14:41:15 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 1GVp0p-0008TZ-5m for geh-help-gnu-emacs@m.gmane.org; Fri, 06 Oct 2006 14:41:12 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GVp0o-00007r-HN for geh-help-gnu-emacs@m.gmane.org; Fri, 06 Oct 2006 08:41:10 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!newsfeed.gamma.ru!Gamma.RU!newsfeed.icl.net!newsfeed.fjserv.net!colt.net!feeder.news-service.com!newsfeed.freenet.de!newsfeed01.chello.at!newsfeed.arcor.de!newsspool4.arcor-online.net!news.arcor.de.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help X-Face: 2FEFf>]>q>2iw=B6, xrUubRI>pR&Ml9=ao@P@i)L:\urd*t9M~y1^:+Y]'C0~{mAl`oQuAl \!3KEIp?*w`|bL5qr,H)LFO6Q=qx~iH4DN; i"; /yuIsqbLLCh/!U#X[S~(5eZ41to5f%E@'ELIi$t^ Vc\LWP@J5p^rst0+('>Er0=^1{]M9!p?&:\z]|;&=NP3AhB!B_bi^]Pfkw User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) Cancel-Lock: sha1:81kxNZfyn3D4GnMhNjImJATgMv4= Original-Lines: 18 Original-NNTP-Posting-Date: 06 Oct 2006 13:52:14 CEST Original-NNTP-Posting-Host: cc2e7f79.newsspool4.arcor-online.net Original-X-Trace: DXC=81JhhL@6[PYAX0F2i>BLKmC3PfgJO[oR5V2P Original-X-Complaints-To: usenet-abuse@arcor.de Original-Xref: shelby.stanford.edu gnu.emacs.help:142217 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:37836 Archived-At: "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 -- David Kastrup, Kriemhildstr. 15, 44793 Bochum