Hi Kyle, And thanks for a second pair of eyes on this!
I've pushed a patch to the repo that should fix it. --- commit 8d7a9b4ce Hide drawers before first headline properly when cycling visibility * lisp/org.el (org--hide-drawers): New internal function consolidating logic from two places currently. (org-cycle-hide-drawers): Hide drawers before first headline at appropriate times. Refactor to use new internal function `org--hide-drawers'. (org-hide-drawer-all): Refactor to use new internal function `org--hide-drawers'. Kind regards Gustav ________________________________________ From: Kyle Meyer <k...@kyleam.com> Sent: Sunday, November 1, 2020 19:21 To: Gustav Wikström Cc: emacs-orgmode@gnu.org Subject: Re: Default fold state of property drawers? Gustav Wikström writes: > But maybe my issue rather lies in how the visibility toggling with > S-TAB functions. The file property drawer is open in OVERVIEW and > CONTENT but hidden in SHOW ALL. My intuition says that the > file-property drawer should be closed for all toggle-states. Thoughts? I agree. While I've never used file-level property drawers, my expectation would be for them to behave in the same way a heading's would. FWIW when you introduced file-level property drawers in 1bdff9f73 (Org document property-drawers, 2019-05-26), it looks like cycling wasn't considered and S-TAB would just ignore these drawers, preserving their current state. The cycling behavior you described above appears to come with 1aa095ccf (Fix drawer invisibility, 2020-06-06). I think that was in response to <https://orgmode.org/list/87a71thwp2....@fastmail.fm/T/#u>. While I haven't taken a close look, my guess is that the effect on file-level property drawers was unintended, and that improvements here would be welcomed.