emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* [BUG] Incorrect display of folded headings after cycling with subheading with VISIBILITY content/children
@ 2023-02-14 10:05 Daniel Hubmann
  2023-02-14 18:39 ` Bruno Barbier
  2023-02-15 15:31 ` Ihor Radchenko
  0 siblings, 2 replies; 7+ messages in thread
From: Daniel Hubmann @ 2023-02-14 10:05 UTC (permalink / raw)
  To: emacs-orgmode

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

Org mode version 9.6 (9.6-g30314c @
/home/hubisan/.emacs.default/straight/build/org/)
GNU Emacs 29.0.60 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.33,
cairo version 1.16.0) of 2023-01-03

Have the following org file contents (using emacs -q):

* Heading Lvl 1
** Heading Lvl 2 with VISIBILITY content
:PROPERTIES:
:VISIBILITY: content
:END:
*** Heading Lvl 3
** Another Heading Lvl 2

After using org-cycle-overview (or org-cycle-content) and then using
org-cycle-set-visibility-according-to-property I get this:

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

If I use :VISIBILITY: children I get this ("Another Heading Lvl 2" is
hidden):

* Heading Lvl 1
** Heading Lvl 2 with VISIBILITY content
:PROPERTIES:
:VISIBILITY: content
:END:
*** Heading Lvl 3...

Tried to debug it, but didn't find the cause. Happens after exiting
save-restriction.

Best wishes
Daniel

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

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [BUG] Incorrect display of folded headings after cycling with subheading with VISIBILITY content/children
  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 15:31 ` Ihor Radchenko
  1 sibling, 1 reply; 7+ messages in thread
From: Bruno Barbier @ 2023-02-14 18:39 UTC (permalink / raw)
  To: Daniel Hubmann, emacs-orgmode


Daniel Hubmann <hubisan@gmail.com> writes:

> ...
> After using org-cycle-overview (or org-cycle-content) and then using
> org-cycle-set-visibility-according-to-property I get this:
>
> * Heading Lvl 1...** Heading Lvl 2 with VISIBILITY content...
> *** Heading Lvl 3...
>

I'm observing the same behavior.

Org mode version 9.6.1

Bruno


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [BUG] Incorrect display of folded headings after cycling with subheading with VISIBILITY content/children
  2023-02-14 18:39 ` Bruno Barbier
@ 2023-02-14 21:15   ` William Denton
  2023-02-15  9:36     ` Daniel Hubmann
  0 siblings, 1 reply; 7+ messages in thread
From: William Denton @ 2023-02-14 21:15 UTC (permalink / raw)
  To: Bruno Barbier; +Cc: Daniel Hubmann, emacs-orgmode

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

On 14 February 2023, Bruno Barbier wrote:

> Daniel Hubmann <hubisan@gmail.com> writes:
>
>> After using org-cycle-overview (or org-cycle-content) and then using
>> org-cycle-set-visibility-according-to-property I get this:
>>
>> * Heading Lvl 1...** Heading Lvl 2 with VISIBILITY content...
>> *** Heading Lvl 3...
>
> I'm observing the same behavior.

Similar things have been happening to me since the middle of last year.

See:

https://lists.gnu.org/archive/html/emacs-orgmode/2022-07/msg00368.html

https://lists.gnu.org/archive/html/emacs-orgmode/2022-05/msg00811.html
(my screenshots are gone by they looked like what's been described)

Ihor did some work but the problem is still going on now and then, in the sort 
of way that seems unreproducible to me.


Bill

--
William Denton
https://www.miskatonic.org/
Librarian, artist and licensed private investigator.
Toronto, Canada
CO₂: 421.18 ppm (Mauna Loa Observatory, 2023-02-13)

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [BUG] Incorrect display of folded headings after cycling with subheading with VISIBILITY content/children
  2023-02-14 21:15   ` William Denton
@ 2023-02-15  9:36     ` Daniel Hubmann
  0 siblings, 0 replies; 7+ messages in thread
From: Daniel Hubmann @ 2023-02-15  9:36 UTC (permalink / raw)
  To: William Denton; +Cc: Bruno Barbier, emacs-orgmode

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

Tried (setq org-fold-core-style 'overlays) which is mentioned in the link.
Unfortunately the behaviour is still the same.

On Tue, Feb 14, 2023 at 10:15 PM William Denton <wtd@pobox.com> wrote:

> On 14 February 2023, Bruno Barbier wrote:
>
> > Daniel Hubmann <hubisan@gmail.com> writes:
> >
> >> After using org-cycle-overview (or org-cycle-content) and then using
> >> org-cycle-set-visibility-according-to-property I get this:
> >>
> >> * Heading Lvl 1...** Heading Lvl 2 with VISIBILITY content...
> >> *** Heading Lvl 3...
> >
> > I'm observing the same behavior.
>
> Similar things have been happening to me since the middle of last year.
>
> See:
>
> https://lists.gnu.org/archive/html/emacs-orgmode/2022-07/msg00368.html
>
> https://lists.gnu.org/archive/html/emacs-orgmode/2022-05/msg00811.html
> (my screenshots are gone by they looked like what's been described)
>
> Ihor did some work but the problem is still going on now and then, in the
> sort
> of way that seems unreproducible to me.
>
>
> Bill
>
> --
> William Denton
> https://www.miskatonic.org/
> Librarian, artist and licensed private investigator.
> Toronto, Canada
> CO₂: 421.18 ppm (Mauna Loa Observatory, 2023-02-13)

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

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [BUG] Incorrect display of folded headings after cycling with subheading with VISIBILITY content/children
  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-15 15:31 ` Ihor Radchenko
  2023-02-15 22:26   ` Daniel Hubmann
  1 sibling, 1 reply; 7+ messages in thread
From: Ihor Radchenko @ 2023-02-15 15:31 UTC (permalink / raw)
  To: Daniel Hubmann; +Cc: emacs-orgmode

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>


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [BUG] Incorrect display of folded headings after cycling with subheading with VISIBILITY content/children
  2023-02-15 15:31 ` Ihor Radchenko
@ 2023-02-15 22:26   ` Daniel Hubmann
  2023-02-15 23:03     ` Daniel Hubmann
  0 siblings, 1 reply; 7+ messages in thread
From: Daniel Hubmann @ 2023-02-15 22:26 UTC (permalink / raw)
  To: Ihor Radchenko; +Cc: emacs-orgmode

[-- 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 --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [BUG] Incorrect display of folded headings after cycling with subheading with VISIBILITY content/children
  2023-02-15 22:26   ` Daniel Hubmann
@ 2023-02-15 23:03     ` Daniel Hubmann
  0 siblings, 0 replies; 7+ messages in thread
From: Daniel Hubmann @ 2023-02-15 23:03 UTC (permalink / raw)
  To: Ihor Radchenko; +Cc: emacs-orgmode

[-- 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 --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2023-02-15 23:04 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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

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).