From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stig Brautaset Subject: Re: is it possible to reuse a capture template expansion? Date: Tue, 04 Oct 2016 21:12:14 +0100 Message-ID: References: <87lgy4oxal.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:37954) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1brW5A-00077O-Ei for emacs-orgmode@gnu.org; Tue, 04 Oct 2016 16:12:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1brW55-0008U3-Ac for emacs-orgmode@gnu.org; Tue, 04 Oct 2016 16:12:55 -0400 Received: from [195.159.176.226] (port=42257 helo=blaine.gmane.org) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1brW55-0008Rv-3b for emacs-orgmode@gnu.org; Tue, 04 Oct 2016 16:12:51 -0400 Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1brW4l-0004gk-I6 for emacs-orgmode@gnu.org; Tue, 04 Oct 2016 22:12:31 +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" To: emacs-orgmode@gnu.org Nicolas Goaziou writes: > Hello, > > Stig Brautaset writes: > >> I've got a capture template where I want to prompt for a string and use >> it in two places, but I end up being prompted twice. [...] > You can use %1, %2... to reuse the first string, the second one... Thanks! I now managed to get it to work, but had to add more backslashes: %\1, %\2 etc, not %1, %2. BTW, the manual[1] actually says %\\n, so adds _too many_ backslashes :-) [1] http://orgmode.org/manual/Template-expansion.html#Template-expansion Stig -- : Stig Brautaset, GNU Emacs 25.1.1, Org-mode version 8.3.6