From mboxrd@z Thu Jan 1 00:00:00 1970 From: Volker Grabsch Subject: Annoying empty line after M-RET / C-RET Date: Thu, 6 Dec 2012 16:21:09 +0100 Message-ID: <20121206152109.GA20297@vlap> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([208.118.235.92]:35959) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TgdGF-00053b-Br for emacs-orgmode@gnu.org; Thu, 06 Dec 2012 10:21:23 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TgdGE-0008Uh-0U for emacs-orgmode@gnu.org; Thu, 06 Dec 2012 10:21:15 -0500 Received: from mail.notjusthosting.com ([78.47.75.226]:43480) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TgdGD-0008UW-QZ for emacs-orgmode@gnu.org; Thu, 06 Dec 2012 10:21:13 -0500 Received: from fire.condat.de ([62.96.207.15] helo=vlap) by mail.notjusthosting.com with esmtpa (Exim 4.72) (envelope-from ) id 1TgdGA-00084L-6K for emacs-orgmode@gnu.org; Thu, 06 Dec 2012 15:21:10 +0000 Content-Disposition: inline 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: Org Mode Dear Org-Mode Gurus, I noticed some strange behaviour in Org Mode. I'm not sure if this happens for a good reason, or is simply a bug. Either way, it's pretty annoying. Normally, C-RET inserts a new empty headline directly after the previous one, i.e. -------------------------------- Stuff * Head 1_ -------------------------------- [C-RET] -------------------------------- Stuff * Head 1 * _ -------------------------------- (where underscore "_" denotes the cursor) However, if the headline is preceded by an empty line, for whathever reason, the C-RET and M-RET commands add an extra newline: -------------------------------- Stuff * Head 1_ -------------------------------- [C-RET] -------------------------------- Stuff * Head 1 * _ -------------------------------- This is especially annoying when quickly typing notes into a small set of headers. A similar behaviour occurs at deeper levels as well. Also, this happens if there's a previous entry that ends with an empty line (i.e. it doesn't have to happen at the first headline entry). Is this a bug? Does it happen for a good reason (if so, what's the use case)? Can this be turned off? Thanks, Volker -- Volker Grabsch ---<<(())>>---