From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rainer M Krug Subject: Re: Capture template to capture in current buffer Date: Mon, 14 Nov 2016 13:29:43 +0100 Message-ID: References: <87shqupagg.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:44462) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c6GOa-0005cP-DY for emacs-orgmode@gnu.org; Mon, 14 Nov 2016 07:29:57 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c6GOX-000204-8x for emacs-orgmode@gnu.org; Mon, 14 Nov 2016 07:29:56 -0500 Received: from mout.kundenserver.de ([212.227.126.131]:63397) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1c6GOX-0001zd-0C for emacs-orgmode@gnu.org; Mon, 14 Nov 2016 07:29:53 -0500 In-Reply-To: <87shqupagg.fsf@nicolasgoaziou.fr> (Nicolas Goaziou's message of "Mon, 14 Nov 2016 12:28:15 +0100") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: emacs-orgmode@gnu.org --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Nicolas Goaziou writes: > Rainer M Krug 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"=20=20=20=20 >> entry (file+headline (buffer-file-name) "CHANGES Log")=20=20= =20 >> "* %^{Header of CHANGES item}\nLOGGED: %T \n- link :: %a \n= - author :: Rainer M Krug, email: Rainer@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=20 > > (file+headline (lambda () (buffer-file-name) ...)) Thanks - upgraded to newest master from git and used the syntax you gave - works perfectly. Thanks, Rainer > > > Regards, =2D-=20 Rainer M. Krug email: Rainerkrugsde PGP: 0x0F52F982 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEcBAEBCAAGBQJYKa48AAoJENvXNx4PUvmChR4H/0aQbJ5nX+foYyQJtIY131tL GPG6BDNrVsbpx+jYj+UFUuwCf99UWh4qKWqQL68RZdLZDJc/C84LgLdnADW9+fcr QGjs7ELYvWRx3LGpx/igC634t+qwysWEBF892q8q3CMN+oitdE8byeb/0s5bSItz 8WGZB4qgJuY6b7OP4CQh0KSDCQPyXgiehlMSIGTNh8L8XGyZ1j7OepIfd/++iswr Y214dhjvEfDULLUL4uyGOrOQWw/NG3XUz/FspIV8KEtCMI88k4IKOz/1EFDkbys2 BXv/RTGDZ1oOyNKjyJZ4Ga6MpvjAWKkCqwv+hgmNBBF0wo5Tr/r6PjIvwSgx88k= =dRV0 -----END PGP SIGNATURE----- --=-=-=--