emacs-orgmode
[Top][All Lists]
Advanced

[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

Attachment: signature.asc
Description: PGP signature


reply via email to

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