From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id AIZsDR4smGNCmQAAbAwnHQ (envelope-from ) for ; Tue, 13 Dec 2022 08:39:10 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id CPBoDR4smGMzMwAA9RJhRA (envelope-from ) for ; Tue, 13 Dec 2022 08:39:10 +0100 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 ECBB3341AE for ; Tue, 13 Dec 2022 08:39:09 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p4zrX-0003PZ-NH; Tue, 13 Dec 2022 02:38:03 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p4zrD-0003J7-3P for emacs-orgmode@gnu.org; Tue, 13 Dec 2022 02:37:45 -0500 Received: from mail-wm1-x330.google.com ([2a00:1450:4864:20::330]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1p4zrB-0006Ki-CS for emacs-orgmode@gnu.org; Tue, 13 Dec 2022 02:37:42 -0500 Received: by mail-wm1-x330.google.com with SMTP id 206-20020a1c02d7000000b003d1e906ca23so1167451wmc.3 for ; Mon, 12 Dec 2022 23:37:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:message-id:date:subject:to:from:from:to:cc:subject :date:message-id:reply-to; bh=imOPXTim8Kn4qRg1S0hEhxLCIQiQMAUVwZTxgG9Ko/8=; b=q36i40mQu88AWXoeLadl20T+0U6gLQ4wNbI6xXvl8PW/sU4+EZiW/2A0HGTdTAdNtK bySiyNYNKLPTtNgcLGx51iYzfj65LcKZoDo9U9Pyzq/LUzfqQFiegYWhKp1A9NNk2QvN JU5w0RXj4mmpxJWrFi5LTvq330b55OrSnSx7QRtFi/B+nZX6VVclsun48CGAo5/bX91H VHNiw4LA87YyaH3MEXt2akmy+EzVckyVdDiu4Wu8o0kERRDpfjCzW2DmgB7P/xB63GbP o38fG/NuTRXysL9sgcSKGq/q2OqjoVzOqakwZ09OH8ZaVgBcSoAqA0CDTPChSarepSKp OIog== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:message-id:date:subject:to:from:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=imOPXTim8Kn4qRg1S0hEhxLCIQiQMAUVwZTxgG9Ko/8=; b=0uRjkIYuS6NeH1jrMttJfpzf7Nih0bmPbuPld2YxIKo8poS11vcwFIbZ35TkF8DLZv Em82t5fXItNvD+1ccaEd7bjDK/vcQUnj6wZ1hJ17C7aj505jqYLM0LQ6VIbU5RVR53rL ud8XkCcSHetbroXq3xHOjK89KbTyfT4+zs0d7ctP2WodE9RHXILEf2Y7+UvShWQtLHRf MoaIdbvD01kN4hB+QOuVA0PxctWEhgXCWu/p4dQbW9+3oN9kVyH4tFhm8j69R5nz6ffz qnFtqlTedmLWNwlB0wqR11tG+R3FRxfnbJrCYUXHBN28yLMxxbXI2LWmCrZ7inAhBTqB pUgg== X-Gm-Message-State: ANoB5pnS7PMG6H/2q7MCGpMRz+hQb/2E2rRcOjUd3xHnMZHnsgIu2BSo Ws0aGXYVvqr1ElHivtzSG/rfPy02hyY= X-Google-Smtp-Source: AA0mqf4huAkFRcLVEvAT4qdu9mn0guLWqOPFv5gXLV4l/6uc7KrD20cRfgkjv4LHMMg/EzobCB54ug== X-Received: by 2002:a05:600c:34cd:b0:3cf:c2a5:5abc with SMTP id d13-20020a05600c34cd00b003cfc2a55abcmr15038139wmq.17.1670917058725; Mon, 12 Dec 2022 23:37:38 -0800 (PST) Received: from hirondell (pop.92-184-107-44.mobile.abo.orange.fr. [92.184.107.44]) by smtp.gmail.com with ESMTPSA id f10-20020a7bcd0a000000b003d01b84e9b2sm11439135wmj.27.2022.12.12.23.37.37 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Dec 2022 23:37:38 -0800 (PST) From: =?utf-8?Q?K=C3=A9vin_Le_Gouguec?= To: emacs-orgmode@gnu.org Subject: 9.6 - hide-drawer-startup option(s?) [9.5.5 (release_9.5.5 @ /usr/local/share/emacs/29.0.50/lisp/org/)] Date: Tue, 13 Dec 2022 08:37:37 +0100 Message-ID: <877cyvzrcu.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2a00:1450:4864:20::330; envelope-from=kevin.legouguec@gmail.com; helo=mail-wm1-x330.google.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, 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.29 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1670917150; 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=imOPXTim8Kn4qRg1S0hEhxLCIQiQMAUVwZTxgG9Ko/8=; b=dCmHh7j4bY/8RY29Wjuqrsjy5hW0CWpED/wlBKaoKX1x+EajJk5HkpKtJiBiZmrj/jHMkA /APEETWnWD9u5HMDHEFZ1wsYA6TGlNjfoh4dXeuhMihv191l/EMWRl5LqiVmNxbEtxgigJ wyHjH1aG2NIPPR+gf4VsBDkPEqn/MR57mdE2toxEefO0BQILFweAFe82XW1DJYIROfJayF dvW75k41oZLd3WsocgHIzke5TEVELcXYPIBca7M8Zr4mJuHb2O5n8Wjy9pl3lPKTBJx4tw s6Xf0hZY30173WXlsJcsTJsohCbgcvnuftKznMHizthr97Pgqra9p8FOnqrpCA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=q36i40mQ; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gmail.com ARC-Seal: i=1; s=key1; d=yhetil.org; t=1670917150; a=rsa-sha256; cv=none; b=uQAIuGQkazWgNEM2xrnv0+lG78xof5ifd4qrY6AeB+2JGsjZ2szTTe2HoLz7JI/n4F0z+D 9laIbGySwVen3l0xDLAHz4s8zcN2uwIv+JLeep2VthFY23KNpkH0TOZC0dBUojmA2Y8337 yAIt/XXLXvCz1WZsXwROgwOwpMUUUSKeNP9aUkbEzXIAet86+At7kTXf6KNffLveozRkKe +kWHvcptHqwefsXhZydGMMOVSPyjhXfMqnwj6qG/jlgOU5s0Da+fgOpLd7YPSan8aQDSXO Xm494aCFcO1jKI9OIn3nE+ugEJaIwwpnDefXqj/cNn7xBjOwKFRtBw/mGsAAAw== X-Migadu-Spam-Score: -7.92 X-Spam-Score: -7.92 X-Migadu-Queue-Id: ECBB3341AE X-Migadu-Scanner: scn0.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=q36i40mQ; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gmail.com X-TUID: /zjX/WbYShYw Hey Org, Trying out Emacs 29 and going over ORG-NEWS, this item stands out to me: > *** A new custom setting =org-hide-drawer-startup= to control initial folding state of drawers A quick grep for org(-cycle)?-hide-drawer-startup turns this up: File: etc/ORG-NEWS 459 27 *** A new custom setting =org-hide-drawer-startup= to control initial folding state of drawers File: lisp/org-cycle.el 128 12 (defcustom org-cycle-hide-drawer-startup t 630 11 (when org-cycle-hide-drawer-startup (org-cycle-hide-drawers 'all)) File: lisp/org.el 4074 20 ("hidedrawers" org-hide-drawer-startup t) 4075 22 ("nohidedrawers" org-hide-drawer-startup nil) AFAICT those were all introduced in 2022-06-25 "org-cycle.el: New custom setting `org-cycle-hide-drawer-startup'" (bcfed0f34). Is the patch below in order, or have I missed something that makes this all work? (Haven't actually tried the feature and won't be able to before this evening; sending this speculatively in case things are as simple as they look. Apologies for the noise if not) diff --git a/etc/ORG-NEWS b/etc/ORG-NEWS index 67889c0b1..e3b3f802d 100644 --- a/etc/ORG-NEWS +++ b/etc/ORG-NEWS @@ -456,7 +456,7 @@ options: =:icalendar-scheduled-summary-prefix=, =:icalendar-deadline-summary-prefix= -*** A new custom setting =org-hide-drawer-startup= to control initial folding state of drawers +*** A new custom setting =org-cycle-hide-drawer-startup= to control initial folding state of drawers Previously, all the drawers were always folded when opening an Org file. This only had an effect on the drawers outside folded diff --git a/lisp/org.el b/lisp/org.el index 3018e4d6f..80e44d85a 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -4071,8 +4071,8 @@ After a match, the following groups carry important information: ("noptag" org-tag-persistent-alist nil) ("hideblocks" org-hide-block-startup t) ("nohideblocks" org-hide-block-startup nil) - ("hidedrawers" org-hide-drawer-startup t) - ("nohidedrawers" org-hide-drawer-startup nil) + ("hidedrawers" org-cycle-hide-drawer-startup t) + ("nohidedrawers" org-cycle-hide-drawer-startup nil) ("beamer" org-startup-with-beamer-mode t) ("entitiespretty" org-pretty-entities t) ("entitiesplain" org-pretty-entities nil))