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 ms0.migadu.com with LMTPS id qEpCB50IEWI3bwAAgWs5BA (envelope-from ) for ; Sat, 19 Feb 2022 16:11:25 +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 wB+ZBJ0IEWLBPwAA9RJhRA (envelope-from ) for ; Sat, 19 Feb 2022 16:11:25 +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 877D33577B for ; Sat, 19 Feb 2022 16:11:24 +0100 (CET) Received: from localhost ([::1]:57228 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nLRON-0001Qh-FC for larch@yhetil.org; Sat, 19 Feb 2022 10:11:23 -0500 Received: from eggs.gnu.org ([209.51.188.92]:51028) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nLRM4-00013A-L5 for emacs-orgmode@gnu.org; Sat, 19 Feb 2022 10:09:05 -0500 Received: from [2607:f8b0:4864:20::62d] (port=37485 helo=mail-pl1-x62d.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nLRLS-0006nI-98 for emacs-orgmode@gnu.org; Sat, 19 Feb 2022 10:08:58 -0500 Received: by mail-pl1-x62d.google.com with SMTP id q1so847051plx.4 for ; Sat, 19 Feb 2022 07:08:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version:content-transfer-encoding; bh=mMTKHsO6d0kUpunP34AlMvAlsk2jL/OZaGiFbXoUdSE=; b=Fx3ZUPSehK9svw7xPM/XWT+yqiQEFPSPESYrNcWm72Jlr53GV7BpNKFpEkod7jeMfZ yaHA45e2Qr5myZpoHTd3ti9PLA5ER+9ocVyPP81Y12GxXtYRO5D3ZGjLIqJSIrhX93Em vMmReDGkBd/PKoqGokDLAgjeZzMKaq040do15l12119i8KUGN8O+t68Kxp6rkxNgu+Dg 13YE9YUd3dCFGcg87+CbkVq1QCcZuAN/QuGZUTTiVnk/48W4/pa6x4QozedKiqLKYYxF nGSdYjxMxoel+mAeneznHuGpAuIh6MBtu4nywTCj7fR5aEXUL2iAVo9wLmk0f0uBfzSz Wtig== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version:content-transfer-encoding; bh=mMTKHsO6d0kUpunP34AlMvAlsk2jL/OZaGiFbXoUdSE=; b=i9+SrXTdcLncKyu9FYwo9jYSZq+qKFF5FozxgKQsFGzscz85fVjXr0DSEiYn/Ajz6N bPvH4UnyUeehrHM7cAY3VrdoPDo1T+caw5l5t8jL0slUfUQI2iZ+Yr3nuuy6VWyRgx5+ itkRcTUeCdE6UQn635lBkgTPwlO/9rW/o/FatUi7+tRwLRTxM0F9X3UzEh1F8wKEAdQK fsqvLzRSqvbkvDen2uZf4NTmRXv6Y25i1LXrWC3MqzF9JCI2jc/vC7N+ucDFY84h13Uw k6LiR1siZkP27+iL97PbNVS71D5srKLAtC7trv4V6I7v4+W6q+t22w3cwCvnDG06knhT WhRA== X-Gm-Message-State: AOAM532yyWw4WIHtTaePImrebmOqNvvF1LiJK948L6QCav7rgC97IaHY TmiCR5ck7MWyU8J3mZyR8sKOnv7wlxJ5Wg== X-Google-Smtp-Source: ABdhPJy6DiwiUhjtm5UO9uC+ff68lS/6WfnmD+HA1vSY7v0uzHjEzRhAnB87SG5s41pNGsPJWHbq+g== X-Received: by 2002:a17:90b:360e:b0:1b9:d9f0:b37 with SMTP id ml14-20020a17090b360e00b001b9d9f00b37mr13160200pjb.111.1645283293768; Sat, 19 Feb 2022 07:08:13 -0800 (PST) Received: from localhost ([113.20.30.139]) by smtp.gmail.com with ESMTPSA id c9sm6874440pfv.70.2022.02.19.07.08.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 19 Feb 2022 07:08:13 -0800 (PST) From: Ihor Radchenko To: John Mathena Subject: Re: [BUG] Child's visibility property is overridden by parent's [9.5.2 (9.5.2-gbc8c3e @ /home/john/.emacs.d/straight/build/org/) In-Reply-To: References: X-Woof-Bug: confirmed Date: Sat, 19 Feb 2022 23:07:46 +0800 Message-ID: <87tucu99od.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Host-Lookup-Failed: Reverse DNS lookup failed for 2607:f8b0:4864:20::62d (failed) Received-SPF: pass client-ip=2607:f8b0:4864:20::62d; envelope-from=yantar92@gmail.com; helo=mail-pl1-x62d.google.com X-Spam_score_int: -3 X-Spam_score: -0.4 X-Spam_bar: / X-Spam_report: (-0.4 / 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, PDS_HP_HELO_NORDNS=0.659, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no 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: , Cc: emacs-orgmode@gnu.org Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1645283484; 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=mMTKHsO6d0kUpunP34AlMvAlsk2jL/OZaGiFbXoUdSE=; b=a38oJg7NTY49T13WEalwKdXYplxgylZmlKTO1QbYIJ0synMgSvjn3e9AK6/8D2+KwZcAZb dzMHyYbXXPONo2DqrHDqdAHjq8jA8M1vwweD+WT7Y5NDdHGZxAbDjt8Amk+aUQZD5rsgdZ ppqH1tD9pNXy2+NS9dGCk35j77esOpSz7UtC/mrhAJynmI4gXpN7yWblYfGqNaJkJ+YzLQ se2du2cP35u0ct61xZOf2f6GSKGGnyBdB80Fxa4hQl0LQNRmMFpJWnV1NHG2Npwig3YVFQ ohHq/Bo0mqWKuNbfwAXVNzUsPIdBfSKHjXVE/YYwS1YJ+YO9Bf1xO38la/XWvA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1645283484; a=rsa-sha256; cv=none; b=d+ahZpcOvfuWFhsy1aEAtYmxGoXPRjx0yBKAV+eL77ZYHnvOkfmtlXnhpt4XcimNzp4hJP KCmfmJGYKf2ORUOZG0en+mJureKBoMaWzlksxCFHjAxe1ky95mm7Agn7GJusf5rsSGHvye a0hXiOmQddiu34q5tBTG4XwR9DHKDO+bwRMJDpMIaDrwfwTg427oJiwEfGijVfwnrp0Cyn LoXPlPJQRo9OBuVUbXfwtnZ4wqfIArcJdsQ9RdkGGsa3cTKUza2mGZLBCO1H+TmzY0YbMY 7mPIz6hEZfxBugyWBFQVLBbADaR/ZOzYxjFqqlJnsIOMogovQm7lpWyk4lAgpQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=Fx3ZUPSe; dmarc=pass (policy=none) header.from=gmail.com; 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" X-Migadu-Spam-Score: -3.83 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=Fx3ZUPSe; dmarc=pass (policy=none) header.from=gmail.com; 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" X-Migadu-Queue-Id: 877D33577B X-Spam-Score: -3.83 X-Migadu-Scanner: scn0.migadu.com X-TUID: nfKlKChNuaOw John Mathena writes: Confirmed. > It seems like the visibility property on a parent heading overrides > the visibility property on a child heading - is this expected? e.g. > when I have the raw text: > > * Foo > :PROPERTIES: > :VISIBILITY: content > :END: > ** Bar > :PROPERTIES: > :VISIBILITY: folded > :END: > *** Baz > > ... I would expect (and would like) to see > > * Foo... > * Bar... > > that is, where Foo shows only the content below it, and Bar has all of > its children folded. Instead, I get > > * Foo... > * Bar... > * Baz... The behaviour you observe is because org-cycle-set-visibility-according-to-property explicitly ignores all the VISIBILITY properties in all the descendent headings of a heading with VISIBILITY property. i.e. VISIBILITY property of Bar is ignored when its ancestor Foo has VISIBILITY property. This behaviour is not documented in the manual: >> Furthermore, any entries with a =E2=80=98VISIBILITY=E2=80=99 property= (see *note >> Properties and Columns::) get their visibility adapted accordingly. >> Allowed values for this property are =E2=80=98folded=E2=80=99, =E2=80=98= children=E2=80=99, =E2=80=98content=E2=80=99, >> and =E2=80=98all=E2=80=99. I would say that the existing behaviour is a confusing and might be considered as a bug. However, it may not always be straightforward how to deal with different combinations of VISIBILITY setting for ancestor/descendent headings. Consider the following example: * Foo :PROPERTIES: :VISIBILITY: folded :END: ** Bar :PROPERTIES: :VISIBILITY: content :END: *** Baz Foo is supposed to be folded, but it is unclear how to process Bar. Should Bar's contents be visible? Should it be folded? Best, Ihor