Paul Stansell <paulstans...@gmail.com> writes: > There seems to be some inconsistency in the effect of using "#+STARTUP: > hideblocks". I have attached 3 org files to illustrate the differences. > All org files are the same except for their "#+STARTUP:" directives. > > bug2.org :: On opening this file, the content of Section is hidden, the > content of the code block at the top level is hidden (as expected), but on > opening Section the content of the code block in Section is not hidden even > though "#+STARTUP: hideblocks" is specified.
Confirmed. This is because `org-at-block-p' (called by `org-block-map' <- `org-fold-hide-block-all') does not work inside folded headings. This should be fixed on the refactoring branch. Not urgent. -- Ihor Radchenko // yantar92, Org mode maintainer, Learn more about Org mode at <https://orgmode.org/>. Support Org development at <https://liberapay.com/org-mode>, or support my work at <https://liberapay.com/yantar92>