From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Hendy Subject: Re: M-RET inside the first second-level heading of the first first-level heading Date: Thu, 25 Apr 2013 16:51:56 -0500 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: Received: from eggs.gnu.org ([208.118.235.92]:51994) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UVU59-0001qg-45 for emacs-orgmode@gnu.org; Thu, 25 Apr 2013 17:52:01 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UVU58-00059N-4K for emacs-orgmode@gnu.org; Thu, 25 Apr 2013 17:51:59 -0400 Received: from mail-la0-x22f.google.com ([2a00:1450:4010:c03::22f]:39658) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UVU57-00059D-Sv for emacs-orgmode@gnu.org; Thu, 25 Apr 2013 17:51:58 -0400 Received: by mail-la0-f47.google.com with SMTP id ez20so3054611lab.34 for ; Thu, 25 Apr 2013 14:51:56 -0700 (PDT) In-Reply-To: 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: Jisang Yoo Cc: emacs-orgmode On Thu, Apr 25, 2013 at 3:39 PM, Jisang Yoo wrote: > short description: > > When I try to create a new heading using M-RET, it works as expected except > one case: inside the first second-level heading of the first first-level > heading. This bug affects the latest ELPA version of org, but not the latest > bundled-with-Emacs version > > long description: > > Org version 8.0.1-6-ge6776c-elpaplus > GNU Emacs 24.3.1 > > Create an org buffer with the following contents > > * crunchy > ** bacon > * soft > ** tofu > * warm > ** milk > > 1. Place cursor at the end of bacon and press M-RET and org creates a first- > level heading, when it should have created a second level heading as it does > at the end of tofu or milk. > > 2. Place cursor at the beginning of "** bacon" and press M-RET and org creates > a first-level heading. I can replicate on Org-mode version 8.0.1 (release_8.0.1-40-g38051c). > > The odd behavior disappears after I add an empty line before the first > heading. I can also replicate this. Also odd is that if I put text under the first headline, it doesn't seem to matter what spacing is before/after it; ** bacon and M-RET will create a first level headline. * crunchy Test of some stuff. ** bacon I can delete the empty space between "Test of some stuff." and the first headline, or add more spaces, add more spaces between ** bacon and * soft, and I always get a first level headline with M-RET after ** bacon. Same with C-RET. John > >