emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: John Hendy <jw.hendy@gmail.com>
To: Jisang Yoo <jisang.yoo.ac+org@gmail.com>
Cc: emacs-orgmode <emacs-orgmode@gnu.org>
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	[thread overview]
Message-ID: <CA+M2ft-iOgCAD-X5MNdO0vpSLZ2QGm_C_VrjOJqZjGHex26CzQ@mail.gmail.com> (raw)
In-Reply-To: <loom.20130425T222207-409@post.gmane.org>

On Thu, Apr 25, 2013 at 3:39 PM, Jisang Yoo <jisang.yoo.ac+org@gmail.com> 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<cursor> 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.



  reply	other threads:[~2013-04-25 21:52 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-25 20:39 Jisang Yoo
2013-04-25 21:51 ` John Hendy [this message]
2013-04-26  6:54 ` Bastien
2013-05-02 18:51   ` John Hendy
2013-05-02 18:52     ` John Hendy
2013-05-07  9:54     ` Bastien
2013-05-07 21:34       ` John Hendy
2013-05-10  6:49         ` Carsten Dominik
2013-05-17 23:08           ` John Hendy

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CA+M2ft-iOgCAD-X5MNdO0vpSLZ2QGm_C_VrjOJqZjGHex26CzQ@mail.gmail.com \
    --to=jw.hendy@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=jisang.yoo.ac+org@gmail.com \
    --subject='Re: M-RET inside the first second-level heading of the first first-level heading' \


* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

Code repositories for project(s) associated with this inbox:


This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).