From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Bug: org-capture inserts empty line before title Date: Sat, 03 Mar 2018 23:40:04 +0100 Message-ID: <87r2p0g4xv.fsf@nicolasgoaziou.fr> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53647) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1esFp2-0008Ot-MH for emacs-orgmode@gnu.org; Sat, 03 Mar 2018 17:40:10 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1esFp0-0005Zh-LH for emacs-orgmode@gnu.org; Sat, 03 Mar 2018 17:40:08 -0500 Received: from relay2-d.mail.gandi.net ([2001:4b98:c:538::194]:44307) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1esFp0-0005ZH-9q for emacs-orgmode@gnu.org; Sat, 03 Mar 2018 17:40:06 -0500 In-Reply-To: (Luke's message of "Fri, 2 Mar 2018 11:46:55 +0800") 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: Luke Cc: emacs-orgmode@gnu.org Hello, Luke writes: > org-capture seems to be inserting an extra line before the task > heading. So the narrowed buffer for editing the task looks something > like this: > > -------------------- Top of window --------------- > > ** TODO My new task > [2018-03-02 Fri] > [[file:~/.notes]] > -------------------- End of buffer --------------- > > I would expect the task heading to be the first line in the buffer. > After pressing 'C-c C-c' the resulting file looks like this: > > -------------------------------------------------- > * Tasks > > ** TODO My new task > [2018-03-02 Fri] > [[file:~/.notes]] > -------------------------------------------------- > > Is this a bug? If not, how do I stop the blank line from being > inserted before the heading. As far as I can tell, this is not related > to org-blank-before-new-entry. Could you show the capture template you used? I do not notice anything like that with my templates. Regards, -- Nicolas Goaziou