From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Org campture recursively expands %-escapes Date: Thu, 26 Nov 2015 23:02:31 +0100 Message-ID: <87d1uwpm1a.fsf@nicolasgoaziou.fr> References: <874mgb9gqv.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:57828) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a24ap-0000Y2-KS for emacs-orgmode@gnu.org; Thu, 26 Nov 2015 17:00:44 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a24ao-0005zl-Tn for emacs-orgmode@gnu.org; Thu, 26 Nov 2015 17:00:43 -0500 Received: from relay4-d.mail.gandi.net ([2001:4b98:c:538::196]:57398) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a24ao-0005zh-Ms for emacs-orgmode@gnu.org; Thu, 26 Nov 2015 17:00:42 -0500 In-Reply-To: (Samuel Wales's message of "Thu, 26 Nov 2015 11:52:30 -0700") 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: Samuel Wales Cc: Thomas Preindl , emacs-orgmode@gnu.org Hello, Samuel Wales writes: > just to clarify, > > "%(alpha-org-protocol-string \"%:link\" \"%:description\" \"%i\")" > > is not recursive, right? It is. The first two are documented in org-capture-templates' docstring. So I guess they are fine. However, the last parameter is problematic. As pointed out by the OP, since it basically means "%(...)" are evaluated after "%i", it can lead to the following chain of events: %i => %(evil-command) => Evil result. Regards, -- Nicolas Goaziou