Fix startup visibility bug
commit94f2f59a9379814b0235826c1c19ceb4bc698f49
authorCarsten Dominik <carsten.dominik@gmail.com>
Fri, 22 Oct 2010 16:14:18 +0000 (22 18:14 +0200)
committerCarsten Dominik <carsten.dominik@gmail.com>
Fri, 22 Oct 2010 16:14:18 +0000 (22 18:14 +0200)
treebf8826b655e0c159f85777f19206a49498d8e8c9
parent594a764adbd144e0b708e8a534293103c7a77203
Fix startup visibility bug

* lisp/org.el (org-cycle): Make sure resetting to startup visibility
works after another cycle command.

Gez writes:

> I have a query about the C-u C-u TAB command.  When I've just edited
> or used S-TAB (no matter which part of the global cycle it's on) C-u
> C-u TAB works as I would expect.  But if I've just used TAB, C-u C-u
> TAB cycles hrough -> CONTENTS -> SHOW ALL etc, even while the mini
> buffer displays "startup visibility plus VISIBILITY properties" at
> each stage of the cycle. C-u C-u TAB also cycles when it's repeated.
> I find it hard to keep track of whether it will cycle or not while I'm
> using it to view areas of the outline, so in effect, the only way I
> feel sure I can quickly return to my desired startup visibility is
> with S-TAB C-u C-u TAB, which is a lot of keystrokes! So my questions
> are - is this expected behaviour?  Can it be changed?
lisp/org.el