Give drawers their own invisibility spec
commit4403d4685e19fb99ba9bfec2bd4ff6781c66981f
authorNicolas Goaziou <mail@nicolasgoaziou.fr>
Tue, 18 Oct 2016 07:52:39 +0000 (18 09:52 +0200)
committerNicolas Goaziou <mail@nicolasgoaziou.fr>
Wed, 10 Jan 2018 14:58:21 +0000 (10 15:58 +0100)
tree83d33ef7103823ca8ff9c2d187874adc6b1b5af4
parent4f74aa4c0eda8bb4b0a3ec89000d700572ce0105
Give drawers their own invisibility spec

* lisp/org.el (org-mode): Add special invisibility spec for drawers.
(org-show-set-visibility): Handle new invisibility spec.
(org-clean-visibility-after-subtree-move): Fix argument for
`org-cycle-hide-drawers'.  `overview' is a no-op.
(org-cycle-hook):
(org-cycle-internal-local):
(org-flag-drawer):
(org-move-subtree-down):
(org-show-entry):
* lisp/org-agenda.el (org-agenda-clock-in):
* lisp/org-clock.el (org-clock-goto):
* lisp/org-feed.el (org-feed-update):
* lisp/org-inlinetask.el (org-inlinetask-toggle-visibility): Do not hide
  drawers when expanding a headline.

Drawers and headlines visibility are now unrelated.  As a consequence,
there is no need to hide drawers every time a headline is expanded.
lisp/org-agenda.el
lisp/org-clock.el
lisp/org-feed.el
lisp/org-inlinetask.el
lisp/org.el