From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Capture template to capture in current buffer Date: Mon, 14 Nov 2016 12:28:15 +0100 Message-ID: <87shqupagg.fsf@nicolasgoaziou.fr> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:60078) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c6FQu-0006XO-5M for emacs-orgmode@gnu.org; Mon, 14 Nov 2016 06:28:16 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c6FQt-0007qs-BB for emacs-orgmode@gnu.org; Mon, 14 Nov 2016 06:28:16 -0500 Received: from relay4-d.mail.gandi.net ([2001:4b98:c:538::196]:53860) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1c6FQt-0007ql-4o for emacs-orgmode@gnu.org; Mon, 14 Nov 2016 06:28:15 -0500 In-Reply-To: (Rainer M. Krug's message of "Thu, 10 Nov 2016 12:35:57 +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: Rainer M Krug Cc: emacs-orgmode@gnu.org 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" > entry (file+headline (buffer-file-name) "CHANGES Log") > "* %^{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 (file+headline (lambda () (buffer-file-name) ...)) Regards, -- Nicolas Goaziou