Hello,
[email protected] 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