emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Muchenxuan Tong <demon386@gmail.com>
To: Bastien <bzg@gnu.org>
Cc: emacs-orgmode <emacs-orgmode@gnu.org>
Subject: Re: Bug: Append new heading when :END: exists
Date: Tue, 23 Apr 2013 09:23:50 +0800	[thread overview]
Message-ID: <CANvjMgk91zMJfn8jajY5YwiA=sxLbtkEW98W04MxyVppoJwq3g@mail.gmail.com> (raw)
In-Reply-To: <87sj2io0l3.fsf@bzg.ath.cx>

[-- Attachment #1: Type: text/plain, Size: 711 bytes --]

I checked the code of `org-insert-heading'.

One potential factor: when folded, and putting cursor and the end of
heading, the cursor is supposed to be

:END: (here)

and it's not judged as a heading.

On Tue, Apr 23, 2013 at 2:57 AM, Bastien <bzg@gnu.org> wrote:

> I'm tempted to apply the following patch, as this problem falls under
> the category of "inserting in an invisible region".  I don't think it
> breaks any non-interactive call of org-insert-heading, but this needs
> further checking.
> Also, note that the problem occurs only when there is no blank line
> between the :END: and the following headline, so maybe the real fix
> has to be within org-insert-heading...
> --
>  Bastien

[-- Attachment #2: Type: text/html, Size: 1644 bytes --]

  reply	other threads:[~2013-04-23  1:23 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-22  9:02 Bug: Append new heading when :END: exists Muchenxuan Tong
2013-04-22 12:01 ` John Hendy
2013-04-22 18:57   ` Bastien
2013-04-23  1:23     ` Muchenxuan Tong [this message]
2013-04-22 15:40 ` Jeff Kowalczyk
2013-04-22 18:48   ` Carsten Dominik
2013-04-22 20:01     ` John Hendy
2013-04-22 20:33       ` Bastien
2013-04-24  7:57 ` Bastien
2013-04-24  8:31   ` Muchenxuan Tong

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='CANvjMgk91zMJfn8jajY5YwiA=sxLbtkEW98W04MxyVppoJwq3g@mail.gmail.com' \
    --to=demon386@gmail.com \
    --cc=bzg@gnu.org \
    --cc=emacs-orgmode@gnu.org \


* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public 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).