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: Thu, 16 Feb 2023 00:03:06 +0100	[thread overview]
Message-ID: <CAOX7s=2Z97-wa3F2-JyKboOVbi+gCKXBLysxcWR=asMj1FA65A@mail.gmail.com> (raw)
In-Reply-To: <CAOX7s=2SUpfLBgPuKhzdpVdHTtLh_hQmTMXGD0V=xAp1jvMqtg@mail.gmail.com>

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

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 <hubisan@gmail.com> 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 <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: 3353 bytes --]

      reply	other threads:[~2023-02-15 23:04 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
2023-02-15 23:03     ` Daniel Hubmann [this message]

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=2Z97-wa3F2-JyKboOVbi+gCKXBLysxcWR=asMj1FA65A@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).