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) ...))


Regards,

-- 
Nicolas Goaziou

Reply via email to