mirror of
https://git.savannah.gnu.org/git/emacs/org-mode.git
synced 2024-11-25 07:27:57 +00:00
fd1d2992f6
* lisp/org.el (org-ctrl-k-protect-subtree): New option. (org-kill-line): Protect hidden subtrees if the user wants it. * doc/org.texi (Headlines): Mention the special behavior of C-k in headlines. Scott Otterson writes: > For what must be the dozenth time, I've just accidentally deleted a > large tree by typing C-k while in a headline. > > This is really easy to do because emacs users have "C-k deletes to the > end of the line" worn deeply into their neural pathways -- it's so > automatic for me that the keystroke is close to subconscious. A > mistaken C-k is especially hard to detect because org-mode displays > the result exactly like what your subconscious expects, that is, a > collapsed headline is deleted to the end -- and the tree underneath is > wiped out with no noticeable warning. > > Feature request: add an option preventing tree deletion with C-k > without user confirmation. Actually, I'd like an option to prevent it > period. > > If this option is already in there, then you're encouraged to tell me > to RTFM. But then also please tell me where it is, because I can't > find it. Carsten replies > This is now possible due to the variable > `org-ctrl-k-protect-subtree'. But I predict that you are going to set > it to nil again soon :D |
||
---|---|---|
.. | ||
.aspell.org.conf | ||
.nosearch | ||
ChangeLog | ||
dir | ||
Documentation_Standards.org | ||
org.texi | ||
orgcard.tex | ||
orgguide.texi | ||
pdflayout.sty | ||
texinfo.tex |