From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Eli Zaretskii" Newsgroups: gmane.emacs.bugs Subject: Re: please implement query-exchange Date: Tue, 19 Nov 2002 20:59:08 +0300 Sender: bug-gnu-emacs-admin@gnu.org Message-ID: <3405-Tue19Nov2002205907+0200-eliz@is.elta.co.il> References: <87isyynuk3.fsf@jidanni.org> <1438-Sat16Nov2002211425+0200-eliz@is.elta.co.il> Reply-To: Eli Zaretskii NNTP-Posting-Host: main.gmane.org X-Trace: main.gmane.org 1037732371 22395 80.91.224.249 (19 Nov 2002 18:59:31 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 19 Nov 2002 18:59:31 +0000 (UTC) Cc: bug-gnu-emacs@gnu.org Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18EDaq-0005ou-00 for ; Tue, 19 Nov 2002 19:59:28 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 18EDcU-0000AM-00; Tue, 19 Nov 2002 14:01:10 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10) id 18EDbf-0008MS-00 for bug-gnu-emacs@gnu.org; Tue, 19 Nov 2002 14:00:19 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10) id 18EDbb-0008LJ-00 for bug-gnu-emacs@gnu.org; Tue, 19 Nov 2002 14:00:17 -0500 Original-Received: from diana.inter.net.il ([192.114.186.19]) by monty-python.gnu.org with esmtp (Exim 4.10) id 18EDba-0007b1-00 for bug-gnu-emacs@gnu.org; Tue, 19 Nov 2002 14:00:14 -0500 Original-Received: from zaretsky ([80.230.194.13]) by diana.inter.net.il (Mirapoint Messaging Server MOS 3.2.1-GA) with ESMTP id AQR04308; Tue, 19 Nov 2002 20:58:52 +0200 (IST) Original-To: usenet@fischman.org X-Mailer: emacs 21.3.50 (via feedmail 8 I) and Blat ver 1.8.9 In-reply-to: (message from Ami Fischman on Tue, 19 Nov 2002 09:25:19 -0800) Errors-To: bug-gnu-emacs-admin@gnu.org X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Bug reports for GNU Emacs, the Swiss army knife of text editors List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.bugs:3911 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:3911 > From: Ami Fischman > Date: Tue, 19 Nov 2002 09:25:19 -0800 > > "Eli Zaretskii" writes: > > [...] > > > Can't you do that with query-replace-regexp using parenthesized > > subexpressions and the \N feature (where N is a digit)? > > Is this really possible? When I first read your post, I just said to > myself "oh, yeah, that's right; that should take care of it" but later on I > actually tried to implement a query-exchange function using only one > query-replace-regexp, and couldn't figure out how to do it. I see from (a > private email?) that Dan posted to the list that you suggested to him a > regexp that would take care of his particular string of text, but I'm now > more curious about the general problem. I didn't mean to suggest a general solution. I meant to say that for each specific case one can devise a regexp and a replacement string with \N that solves that particular case.