Nick Dokos <[email protected]> writes: > Rainer M Krug <[email protected]> writes: > >> Hi >> >> I have the following capture template: >> >> ,---- >> | ("T" "TODO to be logged in notes.org" >> | entry (file+headline (concat org-directory "/notes.org") "Tasks") >> >> | ;; entry (file+headline "~/org/notes.org" "Tasks") >> | "* TODO [#D] \n%i \n:PROPERTIES: \n:END: \n%? \n%a") >> `---- >> >> As it is now, it is not working, but when I use the secont=d entry line, >> it is working. >> > > Try (!!note the backquote at the beginning and the comma before the concat > form!!): > > (setq org-capture-templates > `( > ... > ("T" "TODO to be logged in notes.org" > entry (file+headline ,(concat org-directory "/notes.org") "Tasks") > > "* TODO [#D] \n%i \n:PROPERTIES: \n:END: \n%? \n%a") > ...)) >
Thanks! the problem was the missing comma, as I had the backquote
already there. This must have changed some time ago, as I used these
templates before. This is working now.
But now I realized that my other in-file capture templates are giving
the same message. Here is one of my in-file capture templates:
,----
| (setq org-capture-templates
| `(
| ;; ;;;;;;;;;;;;;;;;::
| ;; In File Logging ::
| ;; ;;;;;;;;;;;;;;;;::
| ("p" "Problem to be logged in buffer"
| entry (file+headline (buffer-file-name) "QUESTIONS")
| ...
| ))
`----
I assume it also has to do with the evaluation, but putting a comma in
front of (buffer-file-name) does not change anything.
Thanks,
Rainer
>
> See
>
> (info "(elisp) Backquote")
--
Rainer M. Krug
email: Rainer<at>krugs<dot>de
PGP: 0x0F52F982
signature.asc
Description: PGP signature
