Sebastian Miele <i...@whxvd.name> writes: > In an emacs -Q, create an Org buffer with the following contents: > > --8<---------------cut here---------------start------------->8--- > * AB > ** C > --8<---------------cut here---------------end--------------->8--- > > Fold the subtree under the heading AB, so that only a single line is > displayed (ending in "..."). With point between A and B, hit > C-S-<backspace> (kill-whole-line). > > Expected: The whole _visible_ line, i.e., the entire contents of the > buffer is erased. Actual behavior: The line with heading C remains.
Fixed, on main. This is a workaround, but it was suggested by Stefan (Emacs maintained) that changing visibility in the modification hooks might be unsafe in general. https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=f9702a09e For unrelated reasons, `kill-whole-line' in Emacs will also be changed to not use multi-step edit. -- 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>