From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Bug Report: TAB on empty headline cycles through the wrong levels Date: Mon, 30 Nov 2009 17:40:36 +0100 Message-ID: <2939B61F-D1C6-4149-A07E-69782522C07B@gmail.com> References: <4B105471.5020002@virginia.edu> Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NFA0Y-00022L-FL for emacs-orgmode@gnu.org; Mon, 30 Nov 2009 12:25:54 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NFA0T-0001zz-N2 for emacs-orgmode@gnu.org; Mon, 30 Nov 2009 12:25:53 -0500 Received: from [199.232.76.173] (port=36010 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NFA0T-0001zt-Ey for emacs-orgmode@gnu.org; Mon, 30 Nov 2009 12:25:49 -0500 Received: from mail-ew0-f224.google.com ([209.85.219.224]:38204) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NFA0T-0004P4-4D for emacs-orgmode@gnu.org; Mon, 30 Nov 2009 12:25:49 -0500 Received: by ewy24 with SMTP id 24so4386813ewy.26 for ; Mon, 30 Nov 2009 09:25:48 -0800 (PST) In-Reply-To: <4B105471.5020002@virginia.edu> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: "Ryan C. Thompson" Cc: org-mode Mailinglist Hi Ryan, here I do not agree with your assessment. Putting the cursor at the beginning of a headline and pressing M-RET is a specific exception of the normal workings of the command, and it create a sibling above the entry. If you want to make use of the indentation cycling, I think you should go to the end of the subtree above by pressing LEFT, and then use M- RET annd then TAB to get your level right. - Carsten On Nov 27, 2009, at 11:36 PM, Ryan C. Thompson wrote: > 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 > > > _______________________________________________ > Emacs-orgmode mailing list > Please use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode - Carsten