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: Sat, 07 Oct 2006 00:01:00 +0200 Organization: Organization?!? Message-ID: <85ejtlyuhv.fsf@lola.goethe.zz> 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 1160174467 2327 80.91.229.2 (6 Oct 2006 22:41:07 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 6 Oct 2006 22:41:07 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Oct 07 00:41:06 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 1GVyNA-0005Xf-AP for geh-help-gnu-emacs@m.gmane.org; Sat, 07 Oct 2006 00:40:53 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GVyN9-0002DR-U8 for geh-help-gnu-emacs@m.gmane.org; Fri, 06 Oct 2006 18:40:51 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!newsfeed.berkeley.edu!ucberkeley!newsfeed.arcor.de!newsspool2.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:kaErb8fa1NL0DT7BHzr3B4XjUpY= Original-Lines: 20 Original-NNTP-Posting-Date: 07 Oct 2006 00:01:26 CEST Original-NNTP-Posting-Host: f12372b8.newsspool2.arcor-online.net Original-X-Trace: DXC=[elhLXj2CBLKmC3PKIdSVeYB4WS Original-X-Complaints-To: usenet-abuse@arcor.de Original-Xref: shelby.stanford.edu gnu.emacs.help:142240 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:37860 Archived-At: Ilya Zakharevich writes: > [A complimentary Cc of this posting] Please don't. It is sufficient to answer to the list. > David Kastrup wrote: >> With Emacs 22: >> >> C-M-% \(foo\)\|\(rock\)\|metal RET >> \,(cond (\1 "bar") (\2 "house") ("goa")) RET > > To make it useful, one needs a function to count the number of > parentheses in a given regular expression. Is there? Uh WHAT? You just type the above stuff. Why would that not be useful? -- David Kastrup, Kriemhildstr. 15, 44793 Bochum