Ismael Bouya writes:

> I would like to report a bug in filtered mode for org-mode. Take this
> given file as example:
> -----------
> * Some heading 1
> ** Some header to remove                                            :sometag:
> ** Some header to keep                                             :othertag:
> -----------
>
> (note that last two headers are *at the same level*)
>
> Now filter with `C-c / m sometag`. It will show only "Some header to
> remove". However, if you remove that heading (with C-k) it will also
> remove the next one, which is a quite surprising behavior.
> Is there a way to avoid getting bitten by this?

Setting org-ctrl-k-protect-subtree should catch this.

You might also be interested in configuring org-show-context-detail, in
particular the value for tags-tree.

Reply via email to