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 7DSVJFpc7WMVTAEAbAwnHQ (envelope-from ) for ; Wed, 15 Feb 2023 23:27:38 +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 uGjaIlpc7WPD1wAA9RJhRA (envelope-from ) for ; Wed, 15 Feb 2023 23:27:38 +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 30BA132767 for ; Wed, 15 Feb 2023 23:27:38 +0100 (CET) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=bTVfxOK7; 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=1676500058; 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=0BNK4CDYdodEJwuF/qCNp6iVO9VUyOhVaiqhb7ugXVo=; b=dEhYImLyDULRRSr8EVxMaE9xbcHOIqyyOzMzxdHtuLDuTZ1o5Yyg4qTHc1jhf2ssSWGTUr 5ceYBbHjp8pb7PJT+o0u98s4ht1bAWOViXQGORZGJlFUiUirAmKzHYIICtINVNvMKFRprC kzG8ueLMEdf/vuz100SYwsv6wFCiX5WLxAlita9/MAQgIFePqLml/Scqy4WHaX8g7/G13q 8Tldzf9Fpzi7yXCFz5Xwn87iZTlsoKfpkzKpqdFcMiYFGbecmhMvM/r2DwLsinhSEtqo7v G3vsKuFIHrNIEXPz76FOQdESbbOaZ/81e1zajWtB1r7RnhWO3wj8mxCwKhaMbQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=bTVfxOK7; 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=1676500058; a=rsa-sha256; cv=none; b=r6fGfqzbRMmAKOJ8A2TONzzSNHM092+O+XcoEsyTeyF4VQ5o3oqaN0T+5MllNUL/cKNEpo eMrnynIP6w6qpqpmQsE48p/UCzqfigcKvXdKXxYORMBNkhCAf4i183CF135PZ8rIzwPDoO vho+DoKCL5aQZu9jTn8qCj1rajwPdBBfAjFBlJooS63ILBg3psEJOq5UFCSayb57RZxz47 kmaDGaugmD+x+Lk3J7PddJQ7nHPVM2v405TeQ95HkK8nGFSdMJY14SQ8aeErrav/7kQZdA GZ/RL8sJCOf3rUscS0uPhX9Nm7Rm8/td9eTWeCr7e6lA8MpCB7uar04UlULL8g== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pSQEo-0003OM-Cp; Wed, 15 Feb 2023 17:26:54 -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 1pSQEn-0003O6-Gj for emacs-orgmode@gnu.org; Wed, 15 Feb 2023 17:26:53 -0500 Received: from mail-pg1-x533.google.com ([2607:f8b0:4864:20::533]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pSQEk-0000TY-EW for emacs-orgmode@gnu.org; Wed, 15 Feb 2023 17:26:53 -0500 Received: by mail-pg1-x533.google.com with SMTP id c29so83889pgm.5 for ; Wed, 15 Feb 2023 14:26:49 -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=0BNK4CDYdodEJwuF/qCNp6iVO9VUyOhVaiqhb7ugXVo=; b=bTVfxOK7/G3mtI3JhVZdaFzzejmvLQDfZjMI/cNYA4qlOWGM53AKfBk20064Was/fP M98DKqvZsHKyh71cijpw7j9D1UmR+hqxWPtLXRxKfvjrhaenCvO4Ig4xE0862AAgzD9t JMKXKMklwsy6fNFA4c2xzpyt3JL+gATjFkVz4B4eVdde2kq6ZPWDyiDzvCTXfdamHdlu CHD+nuC96dSBnsVS+CppqqgmU/cJY1dEccX1+visZXhDV5qP1Xh6zJm+7JwsuxVm6UEx mZsxh9MzDy7uXrZUHFe+cZIHSrX8pmkV0jUq5Rnrx/p099MogcnsHsI/2uG5+f7Ha0JN 2rhA== 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=0BNK4CDYdodEJwuF/qCNp6iVO9VUyOhVaiqhb7ugXVo=; b=cnhP20VtUXHDWwz2bGdFSY14uDmZCnqQPdq28eB/FDnjmIBlLkTFCidyFgYg58LZ03 fW6OkR96OgH6uauIi3uRF4to5e4rc6esLOMD/M4COGPcgtMu9oeFLOO3MLVzYZbT4mix acioxg3UeRHAZHED1fvdBc2x57vDx5/8rUThmvVx1Bk7aKKaeBwoKibf6IIsvCQ8bCc/ RLlqlJMLt3jpG8sSQb2LGAya6zcZcgobtLWDDzxng+rTBoyz54B378+5H51wcid4UbXP 1joGlJ9Mct7L9tauiCERRg8YxZt5bKUZ+mvw6g4FSNYlLVX6x3QHuTM3bicbws7OIFwM dTMg== X-Gm-Message-State: AO0yUKV1wPx1hCmXCwo+d9bqyf0jwyDm5uBcXSPJjDiyARrk2i9Mt4sY OpPgauZvq+rsUJthF0GQ2WwW2Mn37Cy3HR//UK4t5xCe/Qw= X-Google-Smtp-Source: AK7set9b47tBoQRGcCMm+NwtlT9Nyhyom7J7aoOIl0CMSYEfK8SxZm5h9U5nCPjxuxTMWGGrXjWWOnq1FStaO8qDyFA= X-Received: by 2002:a63:3813:0:b0:4fb:a38d:c09b with SMTP id f19-20020a633813000000b004fba38dc09bmr595726pga.10.1676500007938; Wed, 15 Feb 2023 14:26:47 -0800 (PST) MIME-Version: 1.0 References: <87ilg33pyr.fsf@localhost> In-Reply-To: <87ilg33pyr.fsf@localhost> From: Daniel Hubmann Date: Wed, 15 Feb 2023 23:26:36 +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="000000000000706f7305f4c49347" Received-SPF: pass client-ip=2607:f8b0:4864:20::533; envelope-from=hubisan@gmail.com; helo=mail-pg1-x533.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: 30BA132767 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: PUAO1zEyqizC --000000000000706f7305f4c49347 Content-Type: text/plain; charset="UTF-8" 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 > --000000000000706f7305f4c49347 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
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:
<= div>
* Heading Lvl 1
** Heading Lvl 2 with VISIBILITY cont= ent
: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-propert= y 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:
<= div>
* Heading Lvl 1
** Heading Lvl 2 with VISIBILITY cont= ent
*** Heading Lvl 3
** Another Heading Lvl 2 (missing)
* = Formulas
** New Ones (missing)
*** LET
(missing)=
*** LAMBDA
*** XMATCH (missing)
*** XLOOKUP
(mis= sing)
* Dynamic Array Formulas

Setting org-= fold-core-style to overlays doesn't change the outcome.
<= /div>

--000000000000706f7305f4c49347--