[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] Capture template to capture in current buffer
From: |
Nicolas Goaziou |
Subject: |
Re: [O] Capture template to capture in current buffer |
Date: |
Mon, 14 Nov 2016 12:28:15 +0100 |
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) ...))
Regards,
--
Nicolas Goaziou