Re: [O] Bug: Append new heading when :END: exists

2013-04-24 Thread Muchenxuan Tong
Cool! Thanks! On Wed, Apr 24, 2013 at 3:57 PM, Bastien wrote: > Hi Muchenxuan, > > Muchenxuan Tong writes: > > > 1. Assume that the content is: > > * Hello > > :LOGBOOK: > > - Note taken on [2013-04-22 Mon 16:57] \\ > > hello > > :END: > > > > 2. Fold it, so that it becomes > > * He

Re: [O] Bug: Append new heading when :END: exists

2013-04-24 Thread Bastien
Hi Muchenxuan, Muchenxuan Tong writes: > 1. Assume that the content is: > * Hello >   :LOGBOOK: >   - Note taken on [2013-04-22 Mon 16:57] \\ >     hello >   :END: > > 2. Fold it, so that it becomes > * Hello… > > 3. Put the cursor at the end of the heading, and press M-RET or C-RET > * Hello…(h

Re: [O] Bug: Append new heading when :END: exists

2013-04-22 Thread Muchenxuan Tong
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

Re: [O] Bug: Append new heading when :END: exists

2013-04-22 Thread Bastien
Yes, this is the same problem than the one reported by Muchenxuan Tong; a different problem than the one reported by Jeff, fixed. (I will take a lot at the problem later on this week.) I first wasn't able to reproduce those problems because I have `org-special-ctrl-a/e' set to 'reversed, so C-e d

Re: [O] Bug: Append new heading when :END: exists

2013-04-22 Thread John Hendy
On Mon, Apr 22, 2013 at 1:48 PM, Carsten Dominik wrote: > Hi Jeff, > > thanks for the report - this should be fixed now. For general headlines, this is fixed for me. I'm getting bad results if there's a source code block in the headline, though. See attached pics (in chronological order) showing

Re: [O] Bug: Append new heading when :END: exists

2013-04-22 Thread Bastien
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 be

Re: [O] Bug: Append new heading when :END: exists

2013-04-22 Thread Carsten Dominik
Hi Jeff, thanks for the report - this should be fixed now. - Carsten On 22.4.2013, at 17:40, Jeff Kowalczyk wrote: > Sometime after 37f94d2 , a bug appeared which seems close to the thread > subject: > > When in the body of a heading, and pressing meta-enter, message prints: 'not > in item'

Re: [O] Bug: Append new heading when :END: exists

2013-04-22 Thread Jeff Kowalczyk
Sometime after 37f94d2 , a bug appeared which seems close to the thread subject: When in the body of a heading, and pressing meta-enter, message prints: 'not in item'. Reverting to 37f94d2 fixes. Thanks, Jeff

Re: [O] Bug: Append new heading when :END: exists

2013-04-22 Thread John Hendy
On Apr 22, 2013 4:02 AM, "Muchenxuan Tong" wrote: > > 1. Assume that the content is: > * Hello > :LOGBOOK: > - Note taken on [2013-04-22 Mon 16:57] \\ > hello > :END: > > 2. Fold it, so that it becomes > * Hello… > > 3. Put the cursor at the end of the heading, and press M-RET or C-RET >

[O] Bug: Append new heading when :END: exists

2013-04-22 Thread Muchenxuan Tong
1. Assume that the content is: * Hello :LOGBOOK: - Note taken on [2013-04-22 Mon 16:57] \\ hello :END: 2. Fold it, so that it becomes * Hello… 3. Put the cursor at the end of the heading, and press M-RET or C-RET * Hello…(here) The new "*" will be in the beginning of :END:, which is in