From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ivan Vanyushkin Subject: Re: S-Tab strange behavour Date: Wed, 03 Feb 2010 12:13:41 +0200 Message-ID: <4B694C55.8000600@vanav.com.ua> References: <4B687CF9.5030807@vanav.com.ua> <2a4ba2fd1002021140m43ed89ecof918578f08889c30@mail.gmail.com> <4B688D47.5060208@vanav.com.ua> <2a4ba2fd1002021325y7799d84fyed189502582f47e2@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NccDm-0000FH-PC for emacs-orgmode@gnu.org; Wed, 03 Feb 2010 05:12:30 -0500 Received: from [199.232.76.173] (port=34125 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NccDl-0000Ep-T7 for emacs-orgmode@gnu.org; Wed, 03 Feb 2010 05:12:29 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1NccDl-0007RR-2L for emacs-orgmode@gnu.org; Wed, 03 Feb 2010 05:12:29 -0500 Received: from lo.gmane.org ([80.91.229.12]:52555) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NccDk-0007RJ-ID for emacs-orgmode@gnu.org; Wed, 03 Feb 2010 05:12:28 -0500 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1NccDc-0002KS-Vp for emacs-orgmode@gnu.org; Wed, 03 Feb 2010 11:12:20 +0100 Received: from 178.122.48.7 ([178.122.48.7]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 03 Feb 2010 11:12:20 +0100 Received: from vanav by 178.122.48.7 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 03 Feb 2010 11:12:20 +0100 In-Reply-To: <2a4ba2fd1002021325y7799d84fyed189502582f47e2@mail.gmail.com> 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: emacs-orgmode@gnu.org 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. > 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.