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 13:05:54 +0100 Organization: Organization?!? Message-ID: <85ejopng4d.fsf@lola.goethe.zz> References: <20070217103333.GA6096@wikitex.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1171716036 15282 80.91.229.12 (17 Feb 2007 12:40:36 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 17 Feb 2007 12:40:36 +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 13:40:30 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 1HIOre-0001LA-62 for geh-help-gnu-emacs@m.gmane.org; Sat, 17 Feb 2007 13:40:30 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HIOrd-0007mP-ON for geh-help-gnu-emacs@m.gmane.org; Sat, 17 Feb 2007 07:40:29 -0500 Original-Path: shelby.stanford.edu!headwall.stanford.edu!newsfeed.news2me.com!newsfeed.icl.net!newsfeed.fjserv.net!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!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.93 (gnu/linux) Cancel-Lock: sha1:8yIgGZzhKqynHSzVQJPiv4i1WSY= Original-Lines: 14 Original-NNTP-Posting-Date: 17 Feb 2007 13:05:55 CET Original-NNTP-Posting-Host: 81422b93.newsspool4.arcor-online.net Original-X-Trace: DXC=_NRI2^ePLej_0Po7BmQ3]l4IUK 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:41288 Archived-At: Peter Danenberg writes: >> I'd like to transform captured groups from `replace-regexp', say, >> by iterating over the search results with an arbitrary function. > > > The answer is of course to use `\,', following by an > arbitrary Lisp expression; read the source, Luke! Works only with Emacs>21, namely pretests or development snapshots of Emacs 22. -- David Kastrup, Kriemhildstr. 15, 44793 Bochum