emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] Possible Bug in Capture.


From: Nicolas Goaziou
Subject: Re: [O] Possible Bug in Capture.
Date: Mon, 20 Feb 2017 12:38:15 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux)

Hello,

address@hidden 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]