emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] Capture template to capture in current buffer


From: Rainer M Krug
Subject: Re: [O] Capture template to capture in current buffer
Date: Mon, 14 Nov 2016 13:29:43 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (darwin)

Nicolas Goaziou <address@hidden> writes:

> Rainer M Krug <address@hidden> 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: address@hidden %?")
>>         ))
>>
>> 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

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