[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] Capture with org-directory not working?
From: |
Rainer M Krug |
Subject: |
Re: [O] Capture with org-directory not working? |
Date: |
Tue, 20 Sep 2016 09:25:35 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.1 (darwin) |
Nick Dokos <address@hidden> writes:
> Rainer M Krug <address@hidden> 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
- [O] Capture with org-directory not working?, Rainer M Krug, 2016/09/19
- Re: [O] Capture with org-directory not working?, Nick Dokos, 2016/09/19
- Re: [O] Capture with org-directory not working?,
Rainer M Krug <=
- Re: [O] Capture with org-directory not working?, Adam Porter, 2016/09/20
- Re: [O] Capture with org-directory not working?, Rainer Krug, 2016/09/20
- Re: [O] Capture with org-directory not working?, Adam Porter, 2016/09/20
- Re: [O] Capture with org-directory not working?, Rainer Krug, 2016/09/21
- Re: [O] Capture with org-directory not working?, Adam Porter, 2016/09/21
- Re: [O] Capture with org-directory not working?, Rainer M Krug, 2016/09/21