From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ivan Vanyushkin Subject: Re: S-Tab strange behavour Date: Tue, 02 Feb 2010 22:38:31 +0200 Message-ID: <4B688D47.5060208@vanav.com.ua> References: <4B687CF9.5030807@vanav.com.ua> <2a4ba2fd1002021140m43ed89ecof918578f08889c30@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 1NcPUj-0003H0-MB for emacs-orgmode@gnu.org; Tue, 02 Feb 2010 15:37:09 -0500 Received: from [199.232.76.173] (port=37879 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NcPUj-0003Gg-1N for emacs-orgmode@gnu.org; Tue, 02 Feb 2010 15:37:09 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1NcPUh-0005VR-24 for emacs-orgmode@gnu.org; Tue, 02 Feb 2010 15:37:08 -0500 Received: from it-team.org ([78.109.23.48]:64695) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NcPUf-0005U9-Hg for emacs-orgmode@gnu.org; Tue, 02 Feb 2010 15:37:06 -0500 In-Reply-To: <2a4ba2fd1002021140m43ed89ecof918578f08889c30@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: Ryan Thompson Cc: emacs-orgmode@gnu.org 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.