Summary:
When calling `org-save-all-org-buffers` the initial visibility
setting as specified in `org-startup-folded` or specified in
=#+STARTUP: overview= will be applied to the org buffer in view.
My usecase is that `org-save-all-org-buffers` is called in an idle
timer and makes working on org files annoying, as the outline
keeps changing all the time, for example after returning from an
interrupting phonecall.
To reproduce:
- create two files:
test.org:
--8<---------------cut here---------------start------------->8---
#+SETUPFILE: ~/test-config.org
* Header one
Test header folding on save all buffers
** Header two
This will collapse after calling org-save-all-org-buffers
--8<---------------cut here---------------end--------------->8---
test-config.org;
--8<---------------cut here---------------start------------->8---
#+STARTUP:overview
--8<---------------cut here---------------end--------------->8---
- emacs -Q test.org
- make sure the outline is unfolded
- make a change so test.org is 'dirty'
- M-x org-save-all-org-buffers
Observed behaviour:
The outline in test.org will collapse and only show 'Header one'
Expected behaviour:
Outline state does not change on calling `org-save-all-buffers`
Emacs : GNU Emacs 29.0.50 (build 1, x86_64-pc-linux-gnu, GTK+
Version 3.24.30, cairo version 1.17.4)
of 2021-10-03
Package: Org mode version 9.5 (release_9.5 @
/usr/local/share/emacs/29.0.50/lisp/org/)