How to warn about removal of folded subtrees in org-mode?

I edit content in org-mode emacs and use the header structure in folded and expanded modes. In editing, however, I worry that I accidentally delete a folded subtree containing content.

Is there a way to get org-mode to warn me before deleting a folded subtree containing hidden content?

+5
source share
1 answer

In some cases, to protect hidden trees, see the following variables:

org-catch-invisible-edits
org-ctrl-k-protect-subtree

Please note that they will not protect hidden trees from their destruction, for example, C-w( kill-region).

+8
source

All Articles