From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id yNctKLhWXGGwGQAAgWs5BA (envelope-from ) for ; Tue, 05 Oct 2021 15:44:24 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id aJnVI7hWXGHYVAAAB5/wlQ (envelope-from ) for ; Tue, 05 Oct 2021 13:44:24 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id E73492041D for ; Tue, 5 Oct 2021 15:44:23 +0200 (CEST) Received: from localhost ([::1]:57908 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mXkk3-0002ED-2q for larch@yhetil.org; Tue, 05 Oct 2021 09:44:23 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39672) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mXkhn-00017D-1P for emacs-orgmode@gnu.org; Tue, 05 Oct 2021 09:42:03 -0400 Received: from read.hsdev.com ([209.250.245.235]:53198) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mXkhk-0005SR-DT for emacs-orgmode@gnu.org; Tue, 05 Oct 2021 09:42:02 -0400 Received: from hsdev.com (2001-41f0-0061-0001-38f9-6aff-fe0b-8b8a.static.v6.ziggozakelijk.nl [IPv6:2001:41f0:61:1:38f9:6aff:fe0b:8b8a]) by read.hsdev.com (Postfix) with ESMTPA id 158F021C5D for ; Tue, 5 Oct 2021 15:41:56 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hsdev.com; s=201906; t=1633441317; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type; bh=Da/ICQXD5Yq5Mgb8w1FitKEF760Lg7cMpxf1E1OmDw0=; b=cIvhrjS2eWst5U3qx1r1BngYcQPskqyXSj+S0krLn7O3Mgjq0kFhyPlhGtiaDvhn/MToLe ivH+OEB1Jj+O8hNAHsybvMQA4HV0hAybXD6HwzW43yJHPYNEhwyoa3+bO0/8Q9XgMMaV8y fFTx+yWX7mCGVfpqTIOGuxNlzlkeOzM= Received: from t510.hsdev.com (t510.hsdev.com [127.0.0.1]) by hsdev.com (Postfix) with ESMTP id 965695E2ECCD for ; Tue, 5 Oct 2021 15:41:56 +0200 (CEST) User-agent: mu4e 1.7.0; emacs 29.0.50 From: Marcel van der Boom 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 Message-ID: <87ilybmvvf.fsf@hsdev.com> MIME-Version: 1.0 Content-Type: text/plain; format=flowed Received-SPF: pass client-ip=209.250.245.235; envelope-from=marcel@hsdev.com; helo=read.hsdev.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1633441464; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=Da/ICQXD5Yq5Mgb8w1FitKEF760Lg7cMpxf1E1OmDw0=; b=a8Bw4cpfcy6MHvVVtYW0zXWkUOZs30j96sztSmQAmYFDYdSFy7YI7Xqu4UhqwV9YUkMQ/x 9LRIR1xpRMb9zjdMdMy3uOprFFIyB8HAvtn6Gab0IbW188QGA5/9g4h7mlbYkXKupBbuW6 OvIoZS3ia0TV+QA2pnq0a3gn23frcuOK5zaVvSbnQlYM4/efz1JZNRIHKkjFcBrM3cSI5e CGQTp08Slbjknl11Zc8HV2FK0KP7OSxIT0VfeIYsxO83V6jLVdoITb7NyN25DWZpG8LWjV q3Q7awgt68srUQtfGpPk4tEHcTj1BGkSr7KQjhF5FMJ9GNrQOr/tjLY/fijmaQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1633441464; a=rsa-sha256; cv=none; b=jheYWXdQy0pUNoywROjkbZ7Wjw0yj7JZKDykdzE06FL43naIoKRRhsNZ/OJ1YdLfQRgptq CpNEz/3Z2Ge+DsXCnTdAF6i//2a5W1fTGCeZ44X0ElNXaWg8YhYJCUyGUpiuwjHF4nkRe+ pezbYCs9pQec7rLXr6JHeAtEJtH/N01RN7ZAzExj0dZpNB2mtYviojOdQy1SPifwfLDz+L OWHO/Pko6BGDUMVjz9oDLY3JDtEW9u5cluQcTmBlRYGVZI8ELns0VYfC1feEuaEIA2tyPx 3lIhhb0MjgNJveYeNrDS/qMH07upnbaO20fFexklcTV/4EjILEiFdpQjVp7CoA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=hsdev.com header.s=201906 header.b=cIvhrjS2; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Spam-Score: -3.11 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=hsdev.com header.s=201906 header.b=cIvhrjS2; dmarc=pass (policy=quarantine) header.from=hsdev.com; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: E73492041D X-Spam-Score: -3.11 X-Migadu-Scanner: scn0.migadu.com X-TUID: ghpP4mg9mFBH 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/)