* Possible Bug in Capture.
@ 2017-02-20 10:31 lists
2017-02-20 11:38 ` Nicolas Goaziou
0 siblings, 1 reply; 3+ messages in thread
From: lists @ 2017-02-20 10:31 UTC (permalink / raw)
To: emacs-orgmode
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.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Possible Bug in Capture.
2017-02-20 10:31 Possible Bug in Capture lists
@ 2017-02-20 11:38 ` Nicolas Goaziou
2017-02-21 11:54 ` Ian Barton
0 siblings, 1 reply; 3+ messages in thread
From: Nicolas Goaziou @ 2017-02-20 11:38 UTC (permalink / raw)
To: lists; +Cc: emacs-orgmode
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Possible Bug in Capture.
2017-02-20 11:38 ` Nicolas Goaziou
@ 2017-02-21 11:54 ` Ian Barton
0 siblings, 0 replies; 3+ messages in thread
From: Ian Barton @ 2017-02-21 11:54 UTC (permalink / raw)
To: emacs-orgmode
>
> 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
>
Thank you! Things have obviously changed since the last time I set up
a capture template. Note to self: "Remember to RTFM first".
Ian.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2017-02-21 11:54 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-02-20 10:31 Possible Bug in Capture lists
2017-02-20 11:38 ` Nicolas Goaziou
2017-02-21 11:54 ` Ian Barton
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.