org-mode/lisp
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
..
ChangeLog `org-timer-set-timer': new prefix argument. 2010-05-28 12:38:29 +02:00
ChangeLog.01 Fix whitespace issues 2010-06-01 17:16:37 +02:00
org-agenda.el Persistent filters in Org mode 2010-05-20 08:54:17 +02:00
org-archive.el Push version number to 6.36trans 2010-05-09 06:24:20 +02:00
org-ascii.el Push version number to 6.36trans 2010-05-09 06:24:20 +02:00
org-attach.el Push version number to 6.36trans 2010-05-09 06:24:20 +02:00
org-bbdb.el Push version number to 6.36trans 2010-05-09 06:24:20 +02:00
org-beamer.el Fix some customization issues in org-beamer.el patch by Jan Moringen 2010-05-30 22:17:29 +02:00
org-bibtex.el Push version number to 6.36trans 2010-05-09 06:24:20 +02:00
org-clock.el Allow to skip steps in clock reports that have zero time 2010-05-22 08:18:20 +02:00
org-colview-xemacs.el Push version number to 6.36trans 2010-05-09 06:24:20 +02:00
org-colview.el Push version number to 6.36trans 2010-05-09 06:24:20 +02:00
org-compat.el Push version number to 6.36trans 2010-05-09 06:24:20 +02:00
org-crypt.el Push version number to 6.36trans 2010-05-09 06:24:20 +02:00
org-ctags.el Push version number to 6.36trans 2010-05-09 06:24:20 +02:00
org-datetree.el Push version number to 6.36trans 2010-05-09 06:24:20 +02:00
org-docbook.el More flexibility for the XSLT command 2010-05-14 13:38:14 +02:00
org-docview.el Fix copyright years 2010-05-16 15:44:55 +02:00
org-entities.el Push version number to 6.36trans 2010-05-09 06:24:20 +02:00
org-exp-blocks.el Push version number to 6.36trans 2010-05-09 06:24:20 +02:00
org-exp.el Implement pretty display of sub- and superscripts. 2010-06-03 00:06:19 +02:00
org-faces.el Push version number to 6.36trans 2010-05-09 06:24:20 +02:00
org-feed.el Push version number to 6.36trans 2010-05-09 06:24:20 +02:00
org-footnote.el Push version number to 6.36trans 2010-05-09 06:24:20 +02:00
org-freemind.el Push version number to 6.36trans 2010-05-09 06:24:20 +02:00
org-gnus.el org-gnus.el: Mention also Gmane in org-gnus-prefer-web-links 2010-05-28 15:46:37 -06:00
org-habit.el Add help-echo to habit graph 2010-05-13 07:45:26 +02:00
org-html.el Fix indentation 2010-06-02 15:02:36 +02:00
org-icalendar.el Clean up space in headlines when exporting to iCalendar 2010-05-18 14:45:56 +02:00
org-id.el PATCH: Fix minor XEmacs compatibility issue 2010-05-26 22:43:43 -06:00
org-indent.el Push version number to 6.36trans 2010-05-09 06:24:20 +02:00
org-info.el Push version number to 6.36trans 2010-05-09 06:24:20 +02:00
org-inlinetask.el Push version number to 6.36trans 2010-05-09 06:24:20 +02:00
org-irc.el Push version number to 6.36trans 2010-05-09 06:24:20 +02:00
org-jsinfo.el Push version number to 6.36trans 2010-05-09 06:24:20 +02:00
org-latex.el Minor fixes 2010-06-01 09:43:03 +02:00
org-list.el Document the use of `org-list-demote-modify-bullet'. 2010-05-23 07:11:01 +02:00
org-mac-message.el Push version number to 6.36trans 2010-05-09 06:24:20 +02:00
org-macs.el Push version number to 6.36trans 2010-05-09 06:24:20 +02:00
org-mew.el Push version number to 6.36trans 2010-05-09 06:24:20 +02:00
org-mhe.el Push version number to 6.36trans 2010-05-09 06:24:20 +02:00
org-mobile.el Move a function to org.el 2010-05-31 18:57:01 +02:00
org-mouse.el Push version number to 6.36trans 2010-05-09 06:24:20 +02:00
org-plot.el Push version number to 6.36trans 2010-05-09 06:24:20 +02:00
org-protocol.el Push version number to 6.36trans 2010-05-09 06:24:20 +02:00
org-publish.el Serialize the publishing cache 2010-05-25 11:38:42 +02:00
org-remember.el Push version number to 6.36trans 2010-05-09 06:24:20 +02:00
org-rmail.el Push version number to 6.36trans 2010-05-09 06:24:20 +02:00
org-src.el Fix org-src saving mechanism for XEmacs 2010-05-24 09:20:23 -04:00
org-table.el Fix alignment of numbers with invisible characters in tables 2010-05-19 11:34:23 +02:00
org-timer.el `org-timer-set-timer': new prefix argument. 2010-05-28 12:38:29 +02:00
org-vm.el Push version number to 6.36trans 2010-05-09 06:24:20 +02:00
org-w3m.el org-w3m.el: Get text property directly, not using macro `w3m-anchor'. 2010-05-26 22:53:36 -06:00
org-wl.el Adjust indentation to meet coding style. 2010-05-12 10:02:43 +02:00
org-xoxo.el Push version number to 6.36trans 2010-05-09 06:24:20 +02:00
org.el Make it possible to protect hidden subtrees to be killed by `C-k' 2010-06-03 00:18:44 +02:00