From mboxrd@z Thu Jan 1 00:00:00 1970 From: Philip Hudson 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: Fri, 2 Nov 2018 00:24:56 +0000 Message-ID: References: <87ftwkbhxs.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:33072) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gINH6-00031g-LE for emacs-orgmode@gnu.org; Thu, 01 Nov 2018 20:25:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gINGz-0001U9-KO for emacs-orgmode@gnu.org; Thu, 01 Nov 2018 20:25:19 -0400 Received: from mail-pl1-f176.google.com ([209.85.214.176]:40832) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gINGz-0001Qn-BQ for emacs-orgmode@gnu.org; Thu, 01 Nov 2018 20:25:13 -0400 Received: by mail-pl1-f176.google.com with SMTP id b9-v6so136667pls.7 for ; Thu, 01 Nov 2018 17:25:11 -0700 (PDT) In-Reply-To: <87ftwkbhxs.fsf@nicolasgoaziou.fr> 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-mailinglist On Thu, 1 Nov 2018 at 22:12, Nicolas Goaziou wrote: > > Philip Hudson writes: > > Could you show your template? Could you explain how you initiate the > capture process (e.g., with arguments)? Also, could you show the desired > output? Here's a minimal failing capture-completed template: ------- Cut here ------ #+FOO: bar * Baz ------ Cut here ------ Pass this into `org-capture-verify-tree'. This will reproduce the error. My fix strips out the leading in-buffer settings for the duration of that call only. Effectively what gets passed into `org-capture-verify-tree' is then this: ------- Cut here ------ * Baz ------- Cut here ------ -- Phil Hudson http://hudson-it.ddns.net Pretty Good Privacy (PGP) ID: 0x4E482F85