From: Marcel van der Boom <marcel@hsdev.com> To: emacs-orgmode@gnu.org Subject: [BUG] org-save-all-org-buffers reapplies startup visibility [9.5 (release_9.5 @ /usr/local/share/emacs/29.0.50/lisp/org/)] Date: Tue, 05 Oct 2021 15:14:01 +0200 [thread overview] Message-ID: <87ilybmvvf.fsf@hsdev.com> (raw) 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/)
next reply other threads:[~2021-10-05 13:44 UTC|newest] Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top 2021-10-05 13:14 Marcel van der Boom [this message] 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
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style List information: https://www.orgmode.org/ * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=87ilybmvvf.fsf@hsdev.com \ --to=marcel@hsdev.com \ --cc=emacs-orgmode@gnu.org \ --subject='Re: [BUG] org-save-all-org-buffers reapplies startup visibility [9.5 (release_9.5 @ /usr/local/share/emacs/29.0.50/lisp/org/)]' \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
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).