emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* [BUG] org-save-all-org-buffers reapplies startup visibility [9.5 (release_9.5 @ /usr/local/share/emacs/29.0.50/lisp/org/)]
@ 2021-10-05 13:14 Marcel van der Boom
  2021-10-05 17:53 ` Bhavin Gandhi
  2021-10-06  2:08 ` No Wayman
  0 siblings, 2 replies; 8+ messages in thread
From: Marcel van der Boom @ 2021-10-05 13:14 UTC (permalink / raw)
  To: emacs-orgmode


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/)


^ permalink raw reply	[flat|nested] 8+ messages in thread
[parent not found: <cdd5fdae-5c61-916b-9e6e-9e9d51a0a834@ctpowe.net>]

end of thread, other threads:[~2021-10-09 19:34 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-05 13:14 [BUG] org-save-all-org-buffers reapplies startup visibility [9.5 (release_9.5 @ /usr/local/share/emacs/29.0.50/lisp/org/)] Marcel van der Boom
2021-10-05 17:53 ` Bhavin Gandhi
2021-10-06  2:08 ` No Wayman
2021-10-09 19:33   ` Kyle Meyer
     [not found] <cdd5fdae-5c61-916b-9e6e-9e9d51a0a834@ctpowe.net>
2021-10-05 19:51 ` Fwd: " Michael Powe
2021-10-08 11:55   ` Lennart C. Karssen
2021-10-08 22:00     ` Mark Barton
2021-10-08 22:30       ` Mark Barton
2021-10-09 16:38         ` No Wayman
2021-10-09 18:43           ` Mark Barton

Code repositories for project(s) associated with this inbox:

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).