From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: [PATCH] Allow % escapes to capture templates, expanded to text entered in 'th prompt Date: Tue, 24 Apr 2012 11:57:02 +0200 Message-ID: <87haw98nbl.fsf@gnu.org> References: <87ehre1nyk.fsf@gnu.org> <20120423152947.GA8960@c3po> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:32900) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SMcTV-0007kE-Qo for emacs-orgmode@gnu.org; Tue, 24 Apr 2012 05:56:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SMcTT-0006x0-Ce for emacs-orgmode@gnu.org; Tue, 24 Apr 2012 05:55:57 -0400 Received: from incoming2.cnam.fr ([163.173.128.34]:14878) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SMcTT-0006wZ-6n for emacs-orgmode@gnu.org; Tue, 24 Apr 2012 05:55:55 -0400 In-Reply-To: <20120423152947.GA8960@c3po> (Toby Cubitt's message of "Mon, 23 Apr 2012 17:29:47 +0200") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org I've pushed a change to this new feature: http://orgmode.org/w/?p=org-mode.git;a=commit;h=1666b9 Using %n is not good, because it will match many escaped strings that you don't want to match. Using %\n looks good to me as it resonates with \1 in replace-regexp. Toby, let me know if you agree with this change. Thanks! -- Bastien