From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Re: S-Tab strange behavour Date: Wed, 3 Feb 2010 11:30:06 +0100 Message-ID: References: <4B687CF9.5030807@vanav.com.ua> <2a4ba2fd1002021140m43ed89ecof918578f08889c30@mail.gmail.com> <4B688D47.5060208@vanav.com.ua> <2a4ba2fd1002021325y7799d84fyed189502582f47e2@mail.gmail.com> <4B694C55.8000600@vanav.com.ua> 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 1NccUt-0003K5-5i for emacs-orgmode@gnu.org; Wed, 03 Feb 2010 05:30:11 -0500 Received: from [199.232.76.173] (port=33418 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NccUs-0003JQ-LE for emacs-orgmode@gnu.org; Wed, 03 Feb 2010 05:30:10 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1NccUr-00010S-EE for emacs-orgmode@gnu.org; Wed, 03 Feb 2010 05:30:10 -0500 Received: from mail-ew0-f228.google.com ([209.85.219.228]:41014) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NccUr-00010M-4w for emacs-orgmode@gnu.org; Wed, 03 Feb 2010 05:30:09 -0500 Received: by ewy28 with SMTP id 28so1177255ewy.8 for ; Wed, 03 Feb 2010 02:30:08 -0800 (PST) In-Reply-To: <4B694C55.8000600@vanav.com.ua> 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: Ivan Vanyushkin Cc: emacs-orgmode@gnu.org On Feb 3, 2010, at 11:13 AM, Ivan Vanyushkin wrote: > On 02.02.2010 23:25, Ryan Thompson wrote: >> If the previous command was anything else, >> then Org Mode has no idea whether the buffer or its visibility has >> changed since the last-executed S-Tab, since it cannot know which >> other commands will affect buffer visibility and which will not. > > I think, only Org changes visibility, so it can track current state. No, there are other commands outside Org that are changing visibility. Also, Org creates "strange" visibillity states with sparse trees etc. Furthermore, I in fact like that it is agnostic of the current visibility. Then I can create a state by quickly pressing TAB or S-TAB 1, 2, or three times - without even looking. - Carsten > > > >> On Tue, Feb 2, 2010 at 12:38 PM, Ivan >> Vanyushkin wrote: >>> There is org-startup-folded that controls startup state, so org- >>> mode should >>> know it. >>> >>> Also S-Tab forgets state even in the middle of document. Key >>> presses to >>> reproduce: >>> >>> 1) S-Tab - OVERVIEW >>> 2) S-Tab - CONTENTS >>> 3) C-G (or any other) >>> 4) S-Tab - OVERVIEW (expected: SHOW ALL) >>> >>> or >>> >>> 1) S-Tab - OVERVIEW >>> 3) C-G (or any other) >>> 4) S-Tab - OVERVIEW (nothing changed! expected: CONTENTS) >>> >>> Is it by design? Why? >>> >>> >>> On 02.02.2010 21:40, Ryan Thompson wrote: >>>> >>>> I don't think it is possible in general to know the startup state >>>> of a >>>> file. Files with a #+STARTUP line may be an execption. >>>> >>>> On Tue, Feb 2, 2010 at 11:28 AM, Ivan >>>> Vanyushkin >>>> wrote: >>>>> >>>>> Hello. >>>>> >>>>> On initial file opening, S- cycles through >>>>> 1) OVERVIEW -> 2) CONTENTS -> 3) SHOW ALL >>>>> not depending on current state of document. >>>>> >>>>> So, if (as default) document is in OVERVIEW state, first press >>>>> _does nothing_ (switch to OVERVIEW again). Expected: CONTENTS. >>>>> >>>>> If document initially "#+STARTUP: content", then first press >>>>> switches it >>>>> back to OVERVIEW. Expected: SHOW ALL. >>>>> >>>>> So, S-Tab (and maybe Tab) doesn't use context state when start >>>>> cycling. >>>>> >>>>> Is it correct and why? >>>>> >>>>> org-version 6.21 and 6.34c >>>>> Emacs 23.1.1 >>>>> >>>>> Thank you for your answer! >>>>> >>>>> >>>>> -- >>>>> Ivan Vanyushkin - Vanav. > > > > _______________________________________________ > 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