From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: %( in capture template Date: Sun, 19 Feb 2017 10:07:11 +0100 Message-ID: <87r32uzgzk.fsf@nicolasgoaziou.fr> References: <87bmveo58e.fsf@gmail.com> <87inpmug8c.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:56190) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cfNSn-0001hb-8S for emacs-orgmode@gnu.org; Sun, 19 Feb 2017 04:07:26 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cfNSi-0002GT-AS for emacs-orgmode@gnu.org; Sun, 19 Feb 2017 04:07:25 -0500 Received: from relay4-d.mail.gandi.net ([217.70.183.196]:56957) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cfNSi-0002Fh-3e for emacs-orgmode@gnu.org; Sun, 19 Feb 2017 04:07:20 -0500 In-Reply-To: (Samuel Wales's message of "Wed, 8 Feb 2017 21:41:23 -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" To: Samuel Wales Cc: emacs-orgmode@gnu.org Hello, Samuel Wales writes: > with the new org maint code, i still occasionally get the literal string. > > it occurs when the region spans a blank line. I cannot reproduce your issue. > like > > %(concat > "http://whatever.whatever/building-a-mold-free-house/whatever" > "Building a mold free house" " I have trouble understanding the double quote above. Do you mean the text below is inserted within the %(concat ...) or are these your templates? In this case, which one produces the error? > these remplates [don't know if first does anything] > > (add-to-list 'org-capture-templates > `("L" "Protocol L for link" entry > (file+headline ,org-default-notes-file "xyzzy-remember") > ;; fixme perhaps i do not need the %i, if it is for no text > "%(concat \"%:link\" > \"%:description\" \"%i\") L" > :prepend t :immediate-finish t :jump-to-captured t)) > ;; this seems to get called by org capture whether selection or not > (add-to-list 'org-capture-templates > `("p" "Protocol p" entry > (file+headline ,org-default-notes-file "xyzzy-remember") > "%(concat \"%:link\" > \"%:description\" \"%i\")" > :prepend t :immediate-finish t :jump-to-captured t)) Regards, -- Nicolas Goaziou