Hello, Roland Fehrenbacher <r...@q-leap.de> writes:
> is there any option or other customization to keep the outline of an org > buffer (uncollapsed parts of the tree) after the buffer has been > reverted (org-mode 9.0.1, emacs 25.3.2)? In my case only the top > headings are displayed after reverting. This is quite annoying and > time-consuming in a setup, where one constantly switches between git > branches e.g. Org provides two functions to save and restore visibility (and a macro that does both, but isn't useful in your case): `org-outline-overlay-data' and `org-set-outline-overlay-data'. You may want to use them within `before-revert-hook' and `after-revert-hook'. Regards, -- Nicolas Goaziou