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: Sat, 03 Nov 2018 09:34:36 +0100 Message-ID: <877ehua7ab.fsf@nicolasgoaziou.fr> References: <87ftwkbhxs.fsf@nicolasgoaziou.fr> <87ftwk9s8e.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]:58900) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gIrON-0005WV-PW for emacs-orgmode@gnu.org; Sat, 03 Nov 2018 04:34:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gIrOK-0001yG-Fm for emacs-orgmode@gnu.org; Sat, 03 Nov 2018 04:34:51 -0400 Received: from relay3-d.mail.gandi.net ([217.70.183.195]:36065) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gIrOJ-0001qt-DC for emacs-orgmode@gnu.org; Sat, 03 Nov 2018 04:34:48 -0400 In-Reply-To: (Philip Hudson's message of "Fri, 2 Nov 2018 09:22:05 +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: > Why? This is a regression. You have something in your configuration that no longer works. Generally speaking, that could be a plain regression, indeed. But you may also have been relying on unspecified behavior: this might be a documentation bug. I cannot see your template, since you did not send it yet. I assume it uses an `entry' type. 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. You seem to capture something that doesn't correspond to this definition, hence the error. Note that keywords are global, so you could equivalently write: * Baz #+FOO: bar Now, with your template, I could reproduce the problem and try to know when and how the change happened, and guess the intent of `entry' type before this change. Maybe the documentation could be clearer, too. Suggestions welcome. Regards, --=20 Nicolas Goaziou