Nicolas Goaziou <m...@nicolasgoaziou.fr> writes:

> Rainer M Krug <rai...@krugs.de> writes:
>
>> Hi
>>
>> I am trying to get an in-buffer logging to work. I want to log some
>> changes in the file and I am using the following template, which was
>> working some (longer?) time ago:
>>
>> (setq org-capture-templates
>>       `(
>>         ;; ;;;;;;;;;;;;;;;;::
>>         ;; In File Logging ::
>>         ;; ;;;;;;;;;;;;;;;;::
>>         ("c"   "Changes to be logged in buffer"    
>>          entry   (file+headline (buffer-file-name) "CHANGES Log")   
>>          "* %^{Header of CHANGES item}\nLOGGED: %T \n- link     :: %a \n- 
>> author   :: Rainer M Krug, email: rai...@krugs.de\n %?")
>>         ))
>>
>> But now I get the following error message when using the capture
>> template:
>>
>> ,----
>> | if: Target buffer ".notes" for file+headline should be in Org mode
>> `----
>>
>> Any suggestions on how I can get this to work?
>
> It should work again in latest Org ELPA.
>
> In Org 9.1, you will need to change it to 
>
>   (file+headline (lambda () (buffer-file-name) ...))

Thanks - upgraded to newest master from git and used the syntax you
gave - works perfectly.

Thanks,

Rainer

>
>
> Regards,

-- 
Rainer M. Krug
email: Rainer<at>krugs<dot>de
PGP: 0x0F52F982

Attachment: signature.asc
Description: PGP signature

Reply via email to