Benjamin McMillan <mcmilla...@gmail.com> writes: >> But that will do exactly the opposite of what `org-fold-show-subtree' > does, won't it? > > I thought `org-fold-show-subtree' was there because various later > commands wouldn't work well if the tree was folded. In which case > it could be closed when done. Is that not the purpose?
There is no detailed description of this particular line in the git history, but judging from the code it was not added because commands won't work on invisible regions. The comment ";; Make the subtree visible" also implies that it is intentional. So, it looks like making sure that the archived subtree is visible is intentional from the very beginning. -- 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>