Ihor Radchenko <yanta...@gmail.com> writes: > The bug is triggered by incorrect result of org-list-struct. > In org-list-struct with the above invisibility settings, > current-indentation incorrectly returns 0 on "a", "b", and "c" items. I > suspect Emacs bug.
After discussion with Emacs devs [1], I have found where the problem is coming from. `current-indentation' used by Org parser returns the _visible_ indentation and has undefined behaviour when the line is invisible. This undefined behaviour worked in older versions of Emacs, but not newer. Fixed. https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=9db57aee3e86dc47771840d21a19dc2e21e52299 [1] https://debbugs.gnu.org/cgi/bugreport.cgi?bug=56837 -- 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>