From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jay Dresser Subject: superflous blank line in capture Date: Wed, 10 May 2017 23:20:30 -0700 Message-ID: <87lgq3ykwh.fsf@jaydresser.us> References: <177e45f3-3e8d-16e2-58f6-ce27b248ab63@stndrf.de> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:48998) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d8hSp-0006fh-6t for emacs-orgmode@gnu.org; Thu, 11 May 2017 02:20:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d8hSm-0002cb-2S for emacs-orgmode@gnu.org; Thu, 11 May 2017 02:20:39 -0400 Received: from mout.perfora.net ([74.208.4.196]:58072) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1d8hSl-0002b1-RP for emacs-orgmode@gnu.org; Thu, 11 May 2017 02:20:36 -0400 Received: from altair ([68.186.55.186]) by mrelay.perfora.net (mreueus001 [74.208.5.2]) with ESMTPSA (Nemesis) id 0LeKz5-1dnsIH3mw9-00q8jl for ; Thu, 11 May 2017 08:20:33 +0200 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@gnu.org A little bug in capture I think. I am using this template: ("a" "Add Nag" entry (file+headline "~/Org/jay.org" "Nags") "* %?\nSCHEDULED: %T\nDEADLINE: %T\n:PROPERTIES:\n:CATEGORY: Urgent\n:APPT_WARNTIME: 10m\n:END:" :prepend t) This behaves correctly. If I am near the destination before I invoke, I can see that it inserts as shown but with a blank line after the ":END:" line. After I finish with C-c C-c, that blank line goes away. However when I use this template: ("a" "Add Nag" entry (file+headline "~/Org/jay.org" "Nags") "* %?\nSCHEDULED: %T\nDEADLINE: %T\n:PROPERTIES:\n:CATEGORY: Urgent\n:APPT_WARNTIME: 10m\n:END:" :prepend t :unnarrowed t) It also inserts the blank line, but when I finish with C-c C-c the blank line remains. I assume that the behavior should not be different in this way just because of the narrowing. -- Jay Dresser