From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Bug: `org-capture-templates' file+headline target does not accept string variable [8.2.10 (8.2.10-elpa @ c:/Users/louis/AppData/Roaming/.emacs.d/elpa/org-20141013/)] Date: Tue, 14 Oct 2014 22:37:55 +0200 Message-ID: <87vbnm4cbg.fsf@nicolasgoaziou.fr> References: <543D7129.40801@hacari.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:47824) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xe8qP-00054t-Dm for emacs-orgmode@gnu.org; Tue, 14 Oct 2014 16:37:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xe8qG-000750-ME for emacs-orgmode@gnu.org; Tue, 14 Oct 2014 16:37:21 -0400 Received: from relay4-d.mail.gandi.net ([2001:4b98:c:538::196]:37886) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xe8qG-00074V-Gi for emacs-orgmode@gnu.org; Tue, 14 Oct 2014 16:37:12 -0400 In-Reply-To: <543D7129.40801@hacari.com> (Louis Chan's message of "Tue, 14 Oct 2014 19:53:29 +0100") 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: Louis Chan Cc: emacs-orgmode@gnu.org Hello, Louis Chan writes: > Having a template inside `org-capture-templates`, which uses the > file+headline target, with a string variable as its third argument (the > node headline), makes the command `org-capture` fail (specifically, when > selecting this particular template that uses this target). > The heading I have chosen, "Tasks", does exist within the file selected > within the template. When I use a variable that contains the string > "Tasks", the command fails. However, when I use the literal string > "Tasks" instead, the command succeeds and works fine. Nothing, in the manual or in `org-capture-templates' docstring, pretends that variables are supported there. You are expected to provide a string. I don't see any bug here. Regards, -- Nicolas Goaziou