From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id kPpzAQrjYWEbCQAAgWs5BA (envelope-from ) for ; Sat, 09 Oct 2021 20:44:26 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id yOugNwnjYWHnGQAAbx9fmQ (envelope-from ) for ; Sat, 09 Oct 2021 18:44:25 +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 369829058 for ; Sat, 9 Oct 2021 20:44:25 +0200 (CEST) Received: from localhost ([::1]:36476 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mZHKZ-0003se-Oo for larch@yhetil.org; Sat, 09 Oct 2021 14:44:23 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:51068) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mZHK1-0003sU-U6 for emacs-orgmode@gnu.org; Sat, 09 Oct 2021 14:43:50 -0400 Received: from mail-pj1-x102e.google.com ([2607:f8b0:4864:20::102e]:40518) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mZHK0-0003IQ-Bh for emacs-orgmode@gnu.org; Sat, 09 Oct 2021 14:43:49 -0400 Received: by mail-pj1-x102e.google.com with SMTP id pf6-20020a17090b1d8600b0019fa884ab85so11642578pjb.5 for ; Sat, 09 Oct 2021 11:43:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=+6WXNAC/iioJogyZNSl7UL1BiXL4xfBwfJamEoCnbA0=; b=mgj9zOQ2kq9Nu5xRDiEoWwJ3Sxyh+5fAV1LwkALZ4sGw8eFW/K434G52rL239VNBjI IRwcH9EJan8R7t+IZVQKp/s8LI/uQYbvfNtSZr1h/gUqNLQ5aVIV2WBig6NUqYgpVFkm QYvXf4/rPrTFDS9oBWftP+9ltK1SU9ZzsbZWVFyaQpXeWLdT5zDsDTgf0SdjqmLu4Cn5 gBdwZoeHAyqCrwByJiUydFZYZf24NBTgTVwt4cB1IeKN+UgwdS2/zkw1zsidW1rdpw+Q gjNm6Vtgf33L+TQM9fJSJhZeV3CJ2i9ST6DfbcnVQL1LU1Gb2dh0ZSErzvKHfI51Mnbd ysxg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=+6WXNAC/iioJogyZNSl7UL1BiXL4xfBwfJamEoCnbA0=; b=H2mao20in/sFAkRhzpgO3Hem6G1rBuu6Cb/XBn7PI7KFtYMVj9366Q4vyBZpmLM1vE I7dQ/agh9X0lnR6qhngdBztmn3Bd7ruqw7bpxQl9JfIMlE/wRD/dO+oCnQLQqxCypZYi oiTn/ask89jL7WxBIkL224MvtV6Iau+oKZH9w8CrzJmL+YssYwMiEu9Gqucmijp94ltQ OTvFTLy4jjKab+fhf6fobUBAmNkOMYVSvdOeLmdQzz8mM4iliNANMRlHNFwgA9u9wi3J HPsP5UG82JhD6dlacO08UO2zOB2cQTlVdCCYUfdijuyNmjccEXABszMhSmqzhkKPXngv fE1Q== X-Gm-Message-State: AOAM532H92wUZlhzqv1ExbOAmP/4jdGT3pZkVq14nQrnPlr8mpVEp3MA gXHHavWGa0LKKLMJugV54Pc= X-Google-Smtp-Source: ABdhPJyu4Zug2uSy3yvJ4yT5/BAwUHEhF1TF7RQZHBPMj9zqT2vEgGFdISEHg24NVppZ+OZnG64kRA== X-Received: by 2002:a17:90b:1e05:: with SMTP id pg5mr20118582pjb.173.1633805026485; Sat, 09 Oct 2021 11:43:46 -0700 (PDT) Received: from smtpclient.apple (2603-8001-7a00-01a0-5919-e93b-4829-d74b.res6.spectrum.com. [2603:8001:7a00:1a0:5919:e93b:4829:d74b]) by smtp.gmail.com with ESMTPSA id c12sm2896414pfc.161.2021.10.09.11.43.45 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sat, 09 Oct 2021 11:43:46 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.120.0.1.13\)) 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/)] From: Mark Barton In-Reply-To: <87tuhqb18o.fsf@gmail.com> Date: Sat, 9 Oct 2021 11:43:44 -0700 Content-Transfer-Encoding: quoted-printable Message-Id: <36B4FFBE-029D-451B-800C-470A4178930C@gmail.com> References: <87tuhqb18o.fsf@gmail.com> To: No Wayman X-Mailer: Apple Mail (2.3654.120.0.1.13) Received-SPF: pass client-ip=2607:f8b0:4864:20::102e; envelope-from=mbarton98@gmail.com; helo=mail-pj1-x102e.google.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 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, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, 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: , Cc: orgmode , lennart@karssen.org, juri@linkov.net 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=1633805065; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=+6WXNAC/iioJogyZNSl7UL1BiXL4xfBwfJamEoCnbA0=; b=JUAQMm17Cv2dtfeuruVeIMrZl8bzC40dl5MKKkOqsaQcOtiacH2s0iiZMYR6fAPjuYTSbO 3kNTdCx5unF7kVQ8VkBhcsdlrWKR1cri0Ai3d/mQW6P0KUXHY+fomFutqgpWKj1qVUdOM9 d3Gbk4F7dMZJN6WPDJSi2fgi77Kj5mN0z5OwSBu3XqJOHpaykg8onrI396wvANFFZl8aNe LqflZ5YgzhStUE6c4osgsSVUOho2514Vppf5Up25ScLriZbzE9g8bJ1YtOmHShq1RhNx+K PGIAwxziCRbSFU2c+e4gn7GfRKCyKbaR4T9LQPa7AMNBJeluhMn3/KXYsR1pmg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1633805065; a=rsa-sha256; cv=none; b=BBItLY+84QHHH0Ia7SsFS0dwS0GXddzrZeUhU5Gk8XLuDxVqeOYVmyup3XmyJg2GAANWz/ K/Z40fZvfAqV1S/dkB10wqnGVe05arKmCl9i0T+zuYBorjfyowwTwzkQWJNHooVdGhPXo8 J5MVDHgq4K+pSzOQ528JhvL3n3Rung1iaeVRT7ufCh2NTjNPQKUj2O9gGugEneqXq9yZ2q nEQGznk9j5bkYFExcCKBlb82pLrHijgYbGAhVyfvxS6iO82qxbmpMdJZtAzR6+XRc5Brtj 0PzXeWjvJD68jNkQ0jm2OZhp4iNwjMtpffPjMIRsAcCq08uPEVjhPCUC19n8VA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=mgj9zOQ2; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); 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: -0.81 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=mgj9zOQ2; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); 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: 369829058 X-Spam-Score: -0.81 X-Migadu-Scanner: scn0.migadu.com X-TUID: h4W1+is2HD1x It works on my system with native compilation on macOS 11.6. I made the = change to org.el that is in my local clone of the emacs master branch = and recompiled. Looking at the Help for the function, I see it is native compiled Lisp = in my test here. - *Help* - buffer org-save-all-org-buffers is an interactive native compiled Lisp function in =E2=80=98org.el=E2=80=99. (org-save-all-org-buffers) =E2=80=94 - diff - Save all Org buffers without user confirmation. modified lisp/org/org.el @@ -15362,7 +15362,7 @@ org-save-all-org-buffers "Save all Org buffers without user confirmation." (interactive) (message "Saving all Org buffers...") - (save-some-buffers t (lambda () (derived-mode-p 'org-mode))) + (save-some-buffers t (lambda () (and (derived-mode-p 'org-mode) t))) (when (featurep 'org-id) (org-id-locations-save)) (message "Saving all Org buffers... done")) =20 > On Oct 9, 2021, at 9:38 AM, No Wayman = wrote: >=20 >=20 > Your analysis is correct. I looked into this a couple days ago. > See the following message for an explanation and a patch (testing = appreciated): >=20 > = https://list.orgmode.org/87zgrmc2rg.fsf@gmail.com/T/#m9888bc09d77d7bba70ba= 99671aca72446c4d41b9 >=20 >=20