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 11:11:15 +0200 Organization: Organization?!? Message-ID: <85wt7cwkwc.fsf@lola.goethe.zz> References: <1160133442.016714.5230@m7g2000cwm.googlegroups.com> <85ejtlyuhv.fsf@lola.goethe.zz> <200610070345.k973jLj2011358@powdermilk.math.berkeley.edu> <85iriwy3m0.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 1160214228 20016 80.91.229.2 (7 Oct 2006 09:43:48 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 7 Oct 2006 09:43:48 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Oct 07 11:43:47 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 1GW8iE-0004Oe-V4 for geh-help-gnu-emacs@m.gmane.org; Sat, 07 Oct 2006 11:43:19 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GW8iE-0005cy-AD for geh-help-gnu-emacs@m.gmane.org; Sat, 07 Oct 2006 05:43:18 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!newsgate.cistron.nl!xs4all!newsfeed.stueberl.de!uucp.gnuu.de!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:VdTgtn15MEuTQ9gMrAFUmDHZMO4= Original-Lines: 85 Original-NNTP-Posting-Date: 07 Oct 2006 11:11:44 CEST Original-NNTP-Posting-Host: 1297ea1b.newsspool3.arcor-online.net Original-X-Trace: DXC=?Gn]J4YlK@<^cW`WBF>WQ\BH3Y2[Vn?00\VCc>CV`H8_`hhQ4^9QSCVg3dO6lR6NaNf; 4[m3 Original-X-Complaints-To: usenet-abuse@arcor.de Original-Xref: shelby.stanford.edu gnu.emacs.help:142255 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:37874 Archived-At: Ilya Zakharevich writes: > [A complimentary Cc of this posting was NOT [per weedlist] sent to > David Kastrup > ], who wrote in article <85iriwy3m0.fsf@lola.goethe.zz>: >> > [A complimentary Cc of this posting was NOT [per weedlist] sent to >> > David Kastrup >> > ], >> >> I already told you to leave off "complimentary copies" to group >> articles: they are a breach of netiquette since they add no valuable >> information at all and tend to confuse the recipient into having to >> reply multiple times: once in mail, and later, when the mistake has >> been noticed, on the group again. > > Fill free to read this header again. Thanks. > > BTW, you know that sending BLIND Cc is considered a breach of > netiquette, right, and you know the reasons? And still you do it... > Sigh... That was not a blind CC. That was a separate mail sent first, before I noticed. It was the reply to your mail. I had to repost this reply to the list when I noticed. You should have noticed the difference: the group version carried the complaint, the mail version didn't. So you are, in effect, complaining that your "courtesy copy" had just the bad effect I told you it had. >> Please stop this nuisance. You can expect that people writing on >> Usenet groups are also reading there. > > Your statement would have some significance if Usenet were a > reliable media. It was not 20 years ago. It still is not. But your message contained no information that would have been personally important to me. So there was no point in making sure that it specifically reached me in case Usenet failed. >> >> >> 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? >> > >> > How many people do you know who would type something like this? :-( > >> Well, enough for the idiom to be useful. That's why it was invented >> and documented. > > Enough to invent and document it. AFAIK, not enough for it to be > useful. Well, if it is not useful, there is no point in complaining about it. Just don't use it, then. >> > And to have a "generally usable" wrapper, one needs a way to >> > identify how many paren groups are inside your "foo" and "rock" >> > regular expressions. >> >> I can't actually think of a user interface for such a wrapper that >> would not really complicate things. In particular if you want to >> refer to matched groups in the replacements, it is pretty hard to >> come up with anything close to a useful interface. > > All this means is that you had a bad day. Just revisit it in a day > or so, if you do not know the answer already. [Hint at the end of > the message. ;-] > Hint: one presses ENTER to end the replacement string. What about > pressing something els, like C-u ENTER? ;-) How about rereading what I wrote above? "In particular if you want to refer to matched groups in the replacements, it is pretty hard to come up with anything close to a useful interface." So how does C-u RET make it easy to refer to matched groups? -- David Kastrup, Kriemhildstr. 15, 44793 Bochum