Re: [O] Possible Bug in Capture.
> > 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.
Re: [O] Possible Bug in Capture.
Hello, li...@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
[O] Possible Bug in Capture.
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.