From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id EJ4WO/1k7WM5jQAAbAwnHQ (envelope-from ) for ; Thu, 16 Feb 2023 00:04:30 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id QE09Ov1k7WP1hwAAG6o9tA (envelope-from ) for ; Thu, 16 Feb 2023 00:04:29 +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 900A62D586 for ; Thu, 16 Feb 2023 00:04:29 +0100 (CET) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=eGjWwZFf; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1676502269; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=xtSnGIiTp6UsRyJcAQnLjGK4CiOUnbR7GGhqkh0p2F8=; b=t/bwlqHqbv2T/vpyqW3eM1oUCCyEU4A2/sG9enWjOacU+MDkGQ7UlAhZl9PiVPX/DKA/Pg BCgLz+UncoKk3mtXdOIXF4utogw58meyIz63olysHtCCYS/JkdMbIVcd4TfjXrOwKsYxyR qB1yDXgWmWwOLTTCBRBf6FMEplag2KqG3tGkuDKY7rE7sKNPe2R2d2Z+wHrZjxZNSQIUEP fIo6Le7T2FNPTtjYEJTygtUGaUTiY4r+LK4M7TInP+5FFfzFBK5tJ3vbGgVZEkc4XoMFOw NRJKO1X0ftjCr1/Etlv2kDmq1VSBYAAwXPaPJ+33W/B6/Wh9JZtBnzjkP1/gEg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=eGjWwZFf; 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" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1676502269; a=rsa-sha256; cv=none; b=OdG0/LN0Xs6Sv+s+aDmfvbBJ4V+BLYMgs4S63BvKUJxGqc33duQ4byp2VeY3oI1kkF1GZO jrdOt5EwZZ5vYhl2ihi7Y2gcGeY6nZh1QI7tmRQEDqF1/L0n+mCjgMheXOs60DIWceHDwz sgr64o/923zCJixwWr0gGF0odiMGu0nQSbdcB8defa/NBND4VuJH/r72B2RjW4Dt3HR3Rf WGP+d7y871x2r6e0SUNhscKf6Zzfn9LuE+MUectEd60KUFynyfG/wsViq0HU6bxEqtKoB5 DvNUMon1D77mGiuf2cjf7y+r8LTkcEaj1vyacnWYgRux36nwqOJe8kVbuAKkNg== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pSQo7-0004P7-OC; Wed, 15 Feb 2023 18:03:23 -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 1pSQo6-0004Oh-87 for emacs-orgmode@gnu.org; Wed, 15 Feb 2023 18:03:22 -0500 Received: from mail-pl1-x635.google.com ([2607:f8b0:4864:20::635]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pSQo3-0003ab-Gm for emacs-orgmode@gnu.org; Wed, 15 Feb 2023 18:03:21 -0500 Received: by mail-pl1-x635.google.com with SMTP id r8so265494pls.2 for ; Wed, 15 Feb 2023 15:03:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=xtSnGIiTp6UsRyJcAQnLjGK4CiOUnbR7GGhqkh0p2F8=; b=eGjWwZFfZobqwaLYRsD/zYvq/vMgxatapSWPDV5V9+Cv8P5Lda2NwhQ5Llm/MW2cBR 8oeuarpP/xwTUxDKZVnAaosuPdl9mTbu7Fs/cxizywLQas3wkxg7KtL2GjB4ooTx3ORN YtbVOatUvDBQUkqwKhReIZ4cmhMUOzrOzQiQyY512mOcuwVAlOOkxKlX0mSr6jcobTZF 4DnoNvrnchfjBXspHDrQc3XDjGGC3Z4j5KYI1LFkcKDwBcuh/v6wMCK9yUhvaGvX06HF 2ozGjiddCbqfur0kbzrdj5Cd+DUVCBL3ym6Q050l8BBTd2r4YOWurycz0hmeGLrtd/Cw Gebw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=xtSnGIiTp6UsRyJcAQnLjGK4CiOUnbR7GGhqkh0p2F8=; b=QbLrWc84RPosM0jnfJzh73jVZG/KHxSvAORvBs+sWgZ6nwFVsGkp4+7/VBk4zHGOxC lxxQDfn8mdaGv6ngnNxTE/GF6GM6ZgoG/fOuVXm5hY1cyiFuCS7kdKmykJo7ewC625IV +ZH4OZW+8LMXwK94avJVVHozJQMkLngRnsdGvuVTWm51PHeFD8wJ9XjQpZtUPBcEDfk9 vLx0IGVlk0t7PfNbt6+qb5os6Ys3ookN5cScyZZPM4BXq7CTBFv/mz3fobg4pB8A4jMr bMt5NbmMbqP1UkLZNnMYAPRB69a0mtDfQoPjNGEMDr6dp5W+izqdExPGts2x/h8nxcgS 8pVw== X-Gm-Message-State: AO0yUKXzitOpR2mSyU0bSSqL0uqI/vetpFX+wxhtizMsUmucZrBQwXKh dSHOFfayQQ8uNVNNt7ipJsWURM8ZP2icjUqG0dI= X-Google-Smtp-Source: AK7set+hv4R90wXztcKmOv/pGXE62QqtcwNqNfLUyGPkdPLnQNYA5MTTd0QU+8cLPumqIrl1bTA5f4ZbicLu7/Mp4Co= X-Received: by 2002:a17:903:192:b0:19a:eb5f:1c8e with SMTP id z18-20020a170903019200b0019aeb5f1c8emr28876plg.23.1676502197671; Wed, 15 Feb 2023 15:03:17 -0800 (PST) MIME-Version: 1.0 References: <87ilg33pyr.fsf@localhost> In-Reply-To: From: Daniel Hubmann Date: Thu, 16 Feb 2023 00:03:06 +0100 Message-ID: Subject: Re: [BUG] Incorrect display of folded headings after cycling with subheading with VISIBILITY content/children To: Ihor Radchenko Cc: emacs-orgmode@gnu.org Content-Type: multipart/alternative; boundary="000000000000f51c0205f4c51590" Received-SPF: pass client-ip=2607:f8b0:4864:20::635; envelope-from=hubisan@gmail.com; helo=mail-pl1-x635.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, HTML_MESSAGE=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: X-Migadu-Queue-Id: 900A62D586 X-Spam-Score: -7.63 X-Migadu-Spam-Score: -7.63 X-Migadu-Scanner: scn0.migadu.com 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 X-TUID: PQuJ/QdAlwx2 --000000000000f51c0205f4c51590 Content-Type: text/plain; charset="UTF-8" Ah, my bad. Got confused. The output above set according to the properties is correct. Thanks a lot for the fast fix. On Wed, Feb 15, 2023 at 11:26 PM Daniel Hubmann wrote: > Thanks for the partial fix. > > Unfortunately there is still something strange going on as the last > heading gets hidden. Added some more headings to demonstrate this better: > > This is the unfolded file content: > > * Heading Lvl 1 > ** Heading Lvl 2 with VISIBILITY content > :PROPERTIES: > :VISIBILITY: content > :END: > *** Heading Lvl 3 > ** Another Heading Lvl 2 > * Formulas > ** New Ones > *** LET > *** LAMBDA > :PROPERTIES: > :VISIBILITY: content > :END: > *** XMATCH > *** XLOOKUP > * Dynamic Array Formulas > > After using org-cycle-content followed by > org-cycle-set-visibility-according-to-property I get this: > > * Heading Lvl 1 > ** Heading Lvl 2 with VISIBILITY content... > *** Heading Lvl 3... > * Formulas > *** LAMBDA > * Dynamic Array Formulas > > Whereas the expected output should look as follows: > > * Heading Lvl 1 > ** Heading Lvl 2 with VISIBILITY content > *** Heading Lvl 3 > *** Another Heading Lvl 2 (missing)* > * Formulas > > *** New Ones (missing)*** LET **(missing)* > *** LAMBDA > > **** XMATCH (missing)*** XLOOKUP* *(missing)* > * Dynamic Array Formulas > > Setting org-fold-core-style to overlays doesn't change the outcome. > > On Wed, Feb 15, 2023 at 4:30 PM Ihor Radchenko > wrote: > >> Daniel Hubmann writes: >> >> > * Heading Lvl 1...** Heading Lvl 2 with VISIBILITY content... >> > *** Heading Lvl 3... >> >> Thanks for reporting! >> Fixed, on bugfix. >> https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=be9280f68 >> >> -- >> Ihor Radchenko // yantar92, >> Org mode contributor, >> Learn more about Org mode at . >> Support Org development at , >> or support my work at >> > --000000000000f51c0205f4c51590 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Ah, my bad. Got confused. The output above set accord= ing to the properties is correct.

Thanks a lot for= the fast fix.

On Wed, Feb 15, 2023 at 11:26 PM Daniel Hubmann <= ;hubisan@gmail.com> wrote:
<= /div>
Thanks for the partial fix.

Unf= ortunately there is still something strange going on as the last heading ge= ts hidden. Added some more headings to demonstrate this better:
<= br>
This is the unfolded file content:

*= Heading Lvl 1
** Heading Lvl 2 with VISIBILITY content
:PROPERTIES:<= br>:VISIBILITY: content
:END:
*** Heading Lvl 3
** Another Heading= Lvl 2
* Formulas
** New Ones
*** LET
*** LAMBDA
:PROPERTIE= S:
:VISIBILITY: content
:END:
*** XMATCH
*** XLOOKUP
* Dynam= ic Array Formulas

After using org-cycle-content fo= llowed by org-cycle-set-visibility-according-to-property I get this:
<= div>
* Heading Lvl 1
** Heading Lvl 2 with VISIBILI= TY content...
*** Heading Lvl 3...
* Formulas
*** LAMBDA
* Dynamic Array Formulas

Whe= reas the expected output should look as follows:

*= Heading Lvl 1
** Heading Lvl 2 with VISIBILITY content
*** Heading L= vl 3
** Another Heading Lvl 2 (missing)
* Formulas
** Ne= w Ones (missing)
*** LET
(missing)
*** LAMBDA
*** XMATCH (missing)
*** XLOOKUP (missing)
* Dynam= ic Array Formulas

Setting org-fold-core-style to o= verlays doesn't change the outcome.

On Wed, Feb 15,= 2023 at 4:30 PM Ihor Radchenko <yantar92@posteo.net> wrote:
Daniel Hubmann <hubisan@gmail.com> writes:

> * Heading Lvl 1...** Heading Lvl 2 with VISIBILITY content...
> *** Heading Lvl 3...

Thanks for reporting!
Fixed, on bugfix.
https://git.savannah.gnu= .org/cgit/emacs/org-mode.git/commit/?id=3Dbe9280f68

--
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,=
or support my work at <https://liberapay.com/yantar92>
--000000000000f51c0205f4c51590--