From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: Bug in behavior of M-RET with latest Org-mode Date: Mon, 25 Feb 2013 00:39:05 -0500 Message-ID: <14474.1361770745@alphaville> References: Reply-To: nicholas.dokos@hp.com Return-path: Received: from eggs.gnu.org ([208.118.235.92]:44643) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U9qmv-0007mF-LM for emacs-orgmode@gnu.org; Mon, 25 Feb 2013 00:40:12 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U9qmK-00038H-Q4 for emacs-orgmode@gnu.org; Mon, 25 Feb 2013 00:39:45 -0500 Received: from g1t0027.austin.hp.com ([15.216.28.34]:14822) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U9qmK-000388-JX for emacs-orgmode@gnu.org; Mon, 25 Feb 2013 00:39:08 -0500 Received: from g1t0039.austin.hp.com (g1t0039.austin.hp.com [16.236.32.45]) by g1t0027.austin.hp.com (Postfix) with ESMTP id A6B98380F0 for ; Mon, 25 Feb 2013 05:39:06 +0000 (UTC) Received: from alphaville.americas.hpqcorp.net (openvpn.lnx.usa.hp.com [16.125.113.33]) by g1t0039.austin.hp.com (Postfix) with ESMTP id 3585334102 for ; Mon, 25 Feb 2013 05:39:06 +0000 (UTC) Received: from alphaville (localhost [127.0.0.1]) by alphaville.americas.hpqcorp.net (Postfix) with ESMTP id 11E3A414FC for ; Mon, 25 Feb 2013 00:39:05 -0500 (EST) In-Reply-To: Message from "John Wiegley" of "Sun, 24 Feb 2013 22:25:41 CST." 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: emacs-orgmode@gnu.org John Wiegley wrote: > In Org I've liked that fact that hitting M-RET in a list of headlines which > have no intervening whitespace, will add a new headline without whitespace. > Example: > > * One > * Two > * Three > > If hit M-RET at the , I'll would get: > > * One > * Two > * > * Three > > With the latest Org, I get: > > * One > * Two > * > > * Three > > Is this just a regression, or has the core behavior been changed to do this? > Is there a new variable I need to tweak to get the old behavior? > Actually, with the default (`auto') setting of the variable I indicated in my previous email (`org-blank-before-new-entry'), I get the first behavior, not the second. The only problem is that when I insert the first headline, it gets inserted after an empty first line, so adding a second headline fools the auto setting into thinking I want empty lines between headings. But if I delete the empty first line, M-RET never puts any empty lines between headings. So the heuristic might not be perfect, but it seems to work for all but the first headline. Nick