Re: [Orgmode] Re: S-Tab strange behavour

2010-02-03 Thread Carsten Dominik
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 affe

[Orgmode] Re: S-Tab strange behavour

2010-02-03 Thread Ivan Vanyushkin
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, onl

[Orgmode] Re: S-Tab strange behavour

2010-02-02 Thread Ryan Thompson
S-Tab probably checks the value of last-command to see if the previous command was also a S-Tab. 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

[Orgmode] Re: S-Tab strange behavour

2010-02-02 Thread Ivan Vanyushkin
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 - OVERVI