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: Transforming Captures in replace-regexp Date: Sat, 17 Feb 2007 14:12:01 +0100 Organization: Organization?!? Message-ID: <85zm7dlyhq.fsf@lola.goethe.zz> References: <20070217103333.GA6096@wikitex.org> <85ejopng4d.fsf@lola.goethe.zz> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1171719649 24638 80.91.229.12 (17 Feb 2007 13:40:49 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 17 Feb 2007 13:40:49 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Feb 17 14:40:43 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HIPnv-0001GY-6k for geh-help-gnu-emacs@m.gmane.org; Sat, 17 Feb 2007 14:40:43 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HIPnu-0005dY-Ho for geh-help-gnu-emacs@m.gmane.org; Sat, 17 Feb 2007 08:40:42 -0500 Original-Path: shelby.stanford.edu!headwall.stanford.edu!newsfeed.news2me.com!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.ision.net!newsfeed2.easynews.net!ision!newsfeed.freenet.de!newsfeed01.chello.at!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.93 (gnu/linux) Cancel-Lock: sha1:jBTBlkOkJEDyrBMH6Iz5TPD2bXg= Original-Lines: 25 Original-NNTP-Posting-Date: 17 Feb 2007 14:12:02 CET Original-NNTP-Posting-Host: f82c77a7.newsspool1.arcor-online.net Original-X-Trace: DXC=I2C0l3K_03S<<0iRN7DLEQic==]BZ:af^4Fo<]lROoRQFl8W>\BH3YRKg`Q0EHG[ATCV`H8_`hhQT^9QSCVg3dOVOIC5DBZVJ9[V\O^?2<`gZUHbF6nA`R4eQ Original-X-Complaints-To: usenet-abuse@arcor.de Original-Xref: shelby.stanford.edu gnu.emacs.help:145685 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:41290 Archived-At: Peter Danenberg writes: >> Works only with Emacs>21, namely pretests or development snapshots >> of Emacs 22. > > > I notice from the ChangeLog, David, that you're respon- > sible for implementing `\,'; thanks: you've saved at least > several hours of my life. \, does not achieve anything that query-replace-regexp-eval could not already do previously. But discovering and using the latter felt, in my opinion, too awkward for convenience. You'll find that in the present implementation, \, actually does nothing that a non-interactive call of query-replace-regexp could not have achieved: it is implemented merely in the interactive form collecting the arguments for query-replace-regexp, the actual call of query-replace-regexp itself occuring with a Lisp form. You can look at it by using C-x M-ESC after a query-replace-regexp call using \,. -- David Kastrup, Kriemhildstr. 15, 44793 Bochum