From mboxrd@z Thu Jan 1 00:00:00 1970 From: Muchenxuan Tong Subject: Re: Bug: Append new heading when :END: exists Date: Tue, 23 Apr 2013 09:23:50 +0800 Message-ID: References: <87sj2io0l3.fsf@bzg.ath.cx> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a11c2ab5ca9257404dafd093e Return-path: Received: from eggs.gnu.org ([208.118.235.92]:51961) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UURxc-000648-2r for emacs-orgmode@gnu.org; Mon, 22 Apr 2013 21:23:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UURxX-0008PV-Vl for emacs-orgmode@gnu.org; Mon, 22 Apr 2013 21:23:56 -0400 In-Reply-To: <87sj2io0l3.fsf@bzg.ath.cx> 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: Bastien Cc: emacs-orgmode --001a11c2ab5ca9257404dafd093e Content-Type: text/plain; charset=ISO-8859-1 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 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 > > --001a11c2ab5ca9257404dafd093e Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
I checked the code of `org-insert-heading'.<= br>
One potential factor: when folded, and putting cursor and the end of= heading, the cursor is supposed to be=A0

:END: (here)

and it's not judged as a heading.


On Tue, Apr 23, 2013 at 2:57 AM, Bastie= n <bz= g@gnu.org> wrote:
I'm tempted to apply the following patch= , as this problem falls under
the category of "inserting in an invisible region". =A0I 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...



--
=A0Bastien


--001a11c2ab5ca9257404dafd093e--