emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: lists@wilkesley.net
To: emacs-orgmode@gnu.org
Subject: Possible Bug in Capture.
Date: Mon, 20 Feb 2017 10:31:15 +0000	[thread overview]
Message-ID: <4f3f4cc4971d5f048af5bdb6a53c5a51@wilkesley.net> (raw)

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 <mail@nicolasgoaziou.fr>
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.

             reply	other threads:[~2017-02-20 10:31 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-02-20 10:31 lists [this message]
2017-02-20 11:38 ` Possible Bug in Capture Nicolas Goaziou
2017-02-21 11:54   ` Ian Barton

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4f3f4cc4971d5f048af5bdb6a53c5a51@wilkesley.net \
    --to=lists@wilkesley.net \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).