Daniele Nicolodi writes: > Hello, > > i saw a few reports of bugs related to folding and unfolding of > headlines recently, but I think this is not a duplicate.
I think you're referring to https://orgmode.org/list/87h7qu10ht....@eml.cc https://orgmode.org/list/CAJj=8EFJXFu9ZQ11cO24AAu=1jykW2Zr+=R4FLuKG=bljfu...@mail.gmail.com The cases reported there are resolved by e8070d71a (Revert "org.el: Allow empty subtrees to be folded back", 2020-10-26). > I just noticed that with the latest release (Org mode version 9.4 > (9.4-27-g47bf60-elpa @ /Users/daniele/.emacs.d/elpa/org-20201026/) > unfolding of headlines is broken by whitespace. In particular with a > buffer with this content: > > * Foo > ** Bar > bar bar bar+49 1520 7178926 > > > * Baz > > where the line before "* Baz" contains a single whitespace character, > the headline "* Foo" can be folded but cannot be unfolded. Removing the > whitespace while the headline is folded fixes the problem. Yep, with your test case (making sure to add a space on the line before Baz), I can trigger the issue on your reported version (47bf6005b), and it goes away with e8070d71a. So, it looks like the same underlying problem and should go away with the next elpa bump.