From mboxrd@z Thu Jan 1 00:00:00 1970 From: Samuel Wales Subject: Re: Org campture recursively expands %-escapes Date: Thu, 26 Nov 2015 15:10:23 -0700 Message-ID: References: <874mgb9gqv.fsf@nicolasgoaziou.fr> <87d1uwpm1a.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:59561) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a24kD-0002y3-Qi for emacs-orgmode@gnu.org; Thu, 26 Nov 2015 17:10:27 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a24kC-0000DO-Gx for emacs-orgmode@gnu.org; Thu, 26 Nov 2015 17:10:25 -0500 Received: from mail-wm0-x229.google.com ([2a00:1450:400c:c09::229]:36892) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a24kC-0000DD-9X for emacs-orgmode@gnu.org; Thu, 26 Nov 2015 17:10:24 -0500 Received: by wmww144 with SMTP id w144so37066365wmw.0 for ; Thu, 26 Nov 2015 14:10:23 -0800 (PST) In-Reply-To: <87d1uwpm1a.fsf@nicolasgoaziou.fr> 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 , Thomas Preindl , emacs-orgmode@gnu.org On 11/26/15, Nicolas Goaziou wrote: > Samuel Wales writes: >> just to clarify, >> >> "%(alpha-org-protocol-string \"%:link\" \"%:description\" \"%i\")" >> >> is not recursive, right? > > It is. the above is the only way i was able to get org-protocol to do what i needed. > 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. i think i understand. maybe we need another way to pass %i.