emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Daniel Hubmann <hubisan@gmail.com>
To: Ihor Radchenko <yantar92@posteo.net>
Cc: emacs-orgmode@gnu.org
Subject: Re: [BUG] Incorrect display of folded headings after cycling with subheading with VISIBILITY content/children
Date: Wed, 15 Feb 2023 23:26:36 +0100	[thread overview]
Message-ID: <CAOX7s=2SUpfLBgPuKhzdpVdHTtLh_hQmTMXGD0V=xAp1jvMqtg@mail.gmail.com> (raw)
In-Reply-To: <87ilg33pyr.fsf@localhost>

[-- Attachment #1: Type: text/plain, Size: 1658 bytes --]

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 <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=be9280f68
>
> --
> 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>
>

[-- Attachment #2: Type: text/html, Size: 2841 bytes --]

  reply	other threads:[~2023-02-15 22:27 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-02-14 10:05 [BUG] Incorrect display of folded headings after cycling with subheading with VISIBILITY content/children Daniel Hubmann
2023-02-14 18:39 ` Bruno Barbier
2023-02-14 21:15   ` William Denton
2023-02-15  9:36     ` Daniel Hubmann
2023-02-15 15:31 ` Ihor Radchenko
2023-02-15 22:26   ` Daniel Hubmann [this message]
2023-02-15 23:03     ` Daniel Hubmann

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAOX7s=2SUpfLBgPuKhzdpVdHTtLh_hQmTMXGD0V=xAp1jvMqtg@mail.gmail.com' \
    --to=hubisan@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=yantar92@posteo.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).