[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Orgmode] Bug Report: TAB on empty headline cycles through the wrong lev
From: |
Ryan C. Thompson |
Subject: |
[Orgmode] Bug Report: TAB on empty headline cycles through the wrong levels |
Date: |
Fri, 27 Nov 2009 14:36:33 -0800 |
User-agent: |
Thunderbird 2.0.0.23 (X11/20090817) |
I have discovered a possible bug with the new 6.33 feature of cycling
empty headline levels with TAB. IT seems that org will always assume
that the initial level of the headline is the "base" level. Pressing TAB
once will always go one level deeper than that, to the "child" level,
TAB a second time will go one level shallower than the base level, and
so on.
the problem is that I expect the "base" level to be based on the
previous headline's level, not on the initial level of the empty
headline itself. The problem would not usually show itself, because if
you press meta+RET at the end of a headline, you get a new empty one at
the same level as the previous headline. However, if you press meta+RET
at the *beginning* of a headline (before the stars), you get a new empty
headline at the same level as the *next* headline, which might not be
the same level as the previous headline.
Here's a simple test case:
* Head1
** Head2
Put the point at the very beginning of the second heading, and press
meta+RET, then TAB. You should get this:
* Head1
*** [point is here]
** Head2
The following is what I would *expect* to get:
* Head1
* [point is here]
** Head2
So basically, the base level for depth cycling should be determined from
the previous headline, not the new blank headline. At least, that's what
I expected, and I can't think of any reason you would want to put a
level-3 headline under a level-1 headline.
-Ryan
- [Orgmode] Bug Report: TAB on empty headline cycles through the wrong levels,
Ryan C. Thompson <=