From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Possible Bug in Capture. Date: Mon, 20 Feb 2017 12:38:15 +0100 Message-ID: <87r32txfbs.fsf@nicolasgoaziou.fr> References: <4f3f4cc4971d5f048af5bdb6a53c5a51@wilkesley.net> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:35485) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cfmIU-0006aM-8s for emacs-orgmode@gnu.org; Mon, 20 Feb 2017 06:38:27 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cfmIT-00041E-D5 for emacs-orgmode@gnu.org; Mon, 20 Feb 2017 06:38:26 -0500 Received: from relay3-d.mail.gandi.net ([2001:4b98:c:538::195]:46925) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cfmIT-00040f-70 for emacs-orgmode@gnu.org; Mon, 20 Feb 2017 06:38:25 -0500 In-Reply-To: <4f3f4cc4971d5f048af5bdb6a53c5a51@wilkesley.net> (lists@wilkesley.net's message of "Mon, 20 Feb 2017 10:31:15 +0000") 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: lists@wilkesley.net Cc: emacs-orgmode@gnu.org Hello, lists@wilkesley.net writes: > I have just switched from maint to master and now get the following > error capturing to a date tree: > > #+begin_src emacs-lisp > Debugger entered--Lisp error: (error "Invalid capture target > specification: (file+datetree > \"~/Documents/emacs/org/org_files/tasks/notes.org\" \"Notes.\")") > signal(error ("Invalid capture target specification: (file+datetree > \"~/Documents/emacs/org/org_files/tasks/notes.org\" \"Notes.\")")) > error("Invalid capture target specification: %S" (file+datetree > "~/Documents/emacs/org/org_files/tasks/notes.org" "Notes.")) > org-capture-set-target-location() > org-capture(nil) > call-interactively(org-capture nil nil) > command-execute(org-capture) > > #+end_src > > This is my capture template: > > ("n" "Notes" entry (file+datetree > "~/Documents/emacs/org/org_files/tasks/notes.org" "Notes.") "* %U %? > :note:refile:" :prepend t) Your template is invalid. Per `org-capture-templates', it should be (file+datetree "path/to/file") IOW, there should be no "Notes." Regards, -- Nicolas Goaziou