From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: Capture template --- :empty-lines 1 results in error Date: Wed, 15 Aug 2012 03:47:33 +0200 Message-ID: <87d32thqoa.fsf@gnu.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([208.118.235.92]:55927) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T1ShR-0006HT-FF for emacs-orgmode@gnu.org; Tue, 14 Aug 2012 21:47:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T1ShQ-0003qh-FV for emacs-orgmode@gnu.org; Tue, 14 Aug 2012 21:47:09 -0400 Received: from mail-wg0-f49.google.com ([74.125.82.49]:38758) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T1ShQ-0003qd-99 for emacs-orgmode@gnu.org; Tue, 14 Aug 2012 21:47:08 -0400 Received: by wgbez12 with SMTP id ez12so766502wgb.30 for ; Tue, 14 Aug 2012 18:47:07 -0700 (PDT) In-Reply-To: (Alan E. Davis's message of "Tue, 14 Aug 2012 14:30:54 -0700") 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: "Alan E. Davis" Cc: org-mode Hi Alan, "Alan E. Davis" writes: > This may be a bug? > > I have this template in my list of templates, to open the file with > my templates, so I could edit it: > >        ("i" "Edit ~/org/capture-templates.2.el" plain (file "~/org/ > capture-templates.2.el") "" :empty-lines 1 :unnarrowed t) > > I started to get an error when running this template, and a few > others.  Can you tell what error? (setq debug-on-error t) > This started somewhat recently, but I don't know exactly > when.  > >     When I removed the ":empty-lines 1" part, the template worked > fine.   > >         ("i" "Edit ~/org/capture-templates.2.el" plain (file "~/org/ > capture-templates.2.el") " "  :unnarrowed t) > > I am pretty sure that this is not only from the "empty-lines 1 > part.   Another template with this option does work ok, but has > ":prepend t". Hard to reproduce... perhaps you can try to bisect and find the culprit commit? Or just rewind a bit and tell what version works for sure, and what version doesn't? Thanks in advance, -- Bastien