From mboxrd@z Thu Jan 1 00:00:00 1970 From: lists@wilkesley.net Subject: Possible Bug in Capture. Date: Mon, 20 Feb 2017 10:31:15 +0000 Message-ID: <4f3f4cc4971d5f048af5bdb6a53c5a51@wilkesley.net> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:48194) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cflFb-0000Re-OP for emacs-orgmode@gnu.org; Mon, 20 Feb 2017 05:31:24 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cflFX-0008Cw-C8 for emacs-orgmode@gnu.org; Mon, 20 Feb 2017 05:31:23 -0500 Received: from mail2.wilkesley.net ([176.58.110.121]:47334 helo=li40-130.members.linode.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cflFX-0008Ck-5M for emacs-orgmode@gnu.org; Mon, 20 Feb 2017 05:31:19 -0500 Received: from wilkesley.org (localhost [127.0.0.1]) (Authenticated sender: lists@wilkesley.net) by li40-130.members.linode.com (Postfix) with ESMTPA id 4DB68DC6C3 for ; Mon, 20 Feb 2017 10:31:15 +0000 (UTC) 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: emacs-orgmode@gnu.org 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) This appears to have been introduced in: commit 958eacdf2294b4edd6aa797d57d4c36ada682089 Author: Nicolas Goaziou Date: Sun Nov 6 09:29:09 2016 +0100 org-capture: Small refactoring * lisp/org-capture.el (org-capture-set-target-location): Refactor using pattern-matching for clarity. Ian.