From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Bug: Capture template insertion fails with #+FOO [9.1.14 (9.1.14-1-g4931fc-elpa @ /home/phil/.emacs.d/elpa/org-9.1.14/)] Date: Sun, 04 Nov 2018 15:03:49 +0100 Message-ID: <8736sh9by2.fsf@nicolasgoaziou.fr> References: <87ftwkbhxs.fsf@nicolasgoaziou.fr> <87ftwk9s8e.fsf@nicolasgoaziou.fr> <877ehua7ab.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:42370) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gJJ0T-0007yK-Lj for emacs-orgmode@gnu.org; Sun, 04 Nov 2018 09:04:02 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gJJ0L-0001iK-JH for emacs-orgmode@gnu.org; Sun, 04 Nov 2018 09:03:59 -0500 Received: from relay7-d.mail.gandi.net ([217.70.183.200]:44347) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gJJ0L-0001df-Cg for emacs-orgmode@gnu.org; Sun, 04 Nov 2018 09:03:53 -0500 In-Reply-To: (Philip Hudson's message of "Sat, 3 Nov 2018 09:09:46 +0000") 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: Philip Hudson Cc: emacs orgmode-mailinglist Hello, Philip Hudson writes: > On Sat, 3 Nov 2018 at 08:34, Nicolas Goaziou wro= te: >> I cannot see your template, since you did not send it yet. I assume it >> uses an `entry' type. > > No assumption involved. I stated so plainly. Indeed. >> Barring `plain', all capture types enforce >> a certain structure for contents. The `entry' type expects a node, which >> is roughly a headline plus contents, as noted in the manual: >> >> =E2=80=98entry=E2=80=99 >> An Org mode node, with a headline. Will be filed as the child >> of the target entry or as a top-level entry. The target file >> should be an Org file. > > Agreed, understood, and 100% the case in both my case (I'm afraid > you'll just have to take my word for it) and in the trivial but > effectively illustrative minimal failing case I gave you. No, it is not the case. AFAIU, in the minimal failing case, you capture #+FOO: bar * Baz This is _not_ a node. A node starts with a headline and everything is contained within that headline. So it doesn't qualify as a valid `entry' capture type. > The doco seems fine to me. I relied on it for the definition of my > template, which has worked as expected for years. It might be that you misinterpreted the definition of a node. Hence my suggestion to improve the documentation. In any case, you can simply move the keywords below the headline, and be done with it. Regards, --=20 Nicolas Goaziou