org-mode/doc
Carsten Dominik fd1d2992f6 Make it possible to protect hidden subtrees to be killed by `C-k'
* 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
2010-06-03 00:18:44 +02:00
..
.aspell.org.conf Track support files useful in checking Org documentation. 2008-04-01 15:59:35 +02:00
.nosearch Add .nosearch file to the doc/ subdirectory. 2008-12-17 17:25:31 +01:00
ChangeLog Documentation fix 2010-05-19 11:37:13 +02:00
Documentation_Standards.org Fix some typos 2009-11-15 10:04:23 +01:00
dir Split out a number of files from org.el, and reorganize the 2008-03-28 09:57:14 +01:00
org.texi Make it possible to protect hidden subtrees to be killed by `C-k' 2010-06-03 00:18:44 +02:00
orgcard.tex Implement pretty display of sub- and superscripts. 2010-06-03 00:06:19 +02:00
orgguide.texi Free up the `C-c C-v' key for Org Babel 2010-05-12 08:04:27 +02:00
pdflayout.sty Change refcard processing to pdftex, using pdflayout.sty 2010-03-05 08:28:01 +01:00
texinfo.tex Split out a number of files from org.el, and reorganize the 2008-03-28 09:57:14 +01:00