From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: Cycling when there is no subtree Date: Fri, 31 Jul 2009 09:21:55 +0800 Message-ID: <87ljm5k5kl.fsf@bzg.ath.cx> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MWgrO-0006PX-0W for emacs-orgmode@gnu.org; Thu, 30 Jul 2009 21:24:38 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MWgrJ-0006Nb-AZ for emacs-orgmode@gnu.org; Thu, 30 Jul 2009 21:24:37 -0400 Received: from [199.232.76.173] (port=49478 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MWgrJ-0006NS-1z for emacs-orgmode@gnu.org; Thu, 30 Jul 2009 21:24:33 -0400 Received: from mail-pz0-f202.google.com ([209.85.222.202]:54833) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MWgrI-0000Rl-NX for emacs-orgmode@gnu.org; Thu, 30 Jul 2009 21:24:32 -0400 Received: by pzk40 with SMTP id 40so1217245pzk.14 for ; Thu, 30 Jul 2009 18:24:32 -0700 (PDT) In-Reply-To: (User's message of "Thu, 30 Jul 2009 10:14:40 +0000 (UTC)") 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: User Cc: emacs-orgmode@gnu.org User writes: > I noticed if a header has only some text under it and no > subheaders the TAB cycling still goes over the FOLDED -> CHILDREN > -> SUBTREE cycle, though the last two states are effectively the > same in that case and nothing happens when TAB is pressed in > CHILDREN state. > > Wouldn't it be better if in this case only the FOLDED - CHILDREN > states were cycled? > > This way I could open such a header with TAB and close it again > with an other TAB press. Now I have to press TAB 3 times to do it, > which is annoying. Org could be smarter than that. Yes. I added this feature. I first had concerns that breaking the tree-steps habit might be dangerous, but finally I don't think it is. Also note that we might want to update the behavior of the global cycling: when the CONTENTS view displays the same things than the OVERVIEW view, we should perhaps directly switch to SHOW ALL. I'll Carsten sort this out -- and possibly revert the change I just made, if he disagrees! Thanks for this idea, -- Bastien