From mboxrd@z Thu Jan 1 00:00:00 1970 From: Juri Krivov Subject: Re: feature request: C-k safety Date: Thu, 3 Jun 2010 13:11:57 +0200 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0213668947==" Return-path: Received: from [140.186.70.92] (port=54762 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OK8L9-0002yj-UG for emacs-orgmode@gnu.org; Thu, 03 Jun 2010 07:12:01 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OK8L8-0000Ik-Vl for emacs-orgmode@gnu.org; Thu, 03 Jun 2010 07:11:59 -0400 Received: from mail-wy0-f169.google.com ([74.125.82.169]:62464) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OK8L8-0000IV-NX for emacs-orgmode@gnu.org; Thu, 03 Jun 2010 07:11:58 -0400 Received: by wyb39 with SMTP id 39so3796566wyb.0 for ; Thu, 03 Jun 2010 04:11:57 -0700 (PDT) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Carsten Dominik Cc: emacs-orgmode@gnu.org, Scott Otterson --===============0213668947== Content-Type: multipart/alternative; boundary=00163645774e53c3f904881e466b --00163645774e53c3f904881e466b Content-Type: text/plain; charset=ISO-8859-1 On Thu, Jun 3, 2010 at 12:19 AM, Carsten Dominik wrote: > Hi Scott, > > OK, I am giving you a variable org-ctrl-k-protect-subtree to get this > protection, either with a query or by throwing an error. > > But: my prediction is that you will set this variable to nil again soon :D > LoL! Actually, I think is a gread idea, and I will test it also. Probably error will be much better than query. Thank you Scott and Carsten. Greetings Juri > > Let me know how it goes. > > Cheers > > - Carsten > > > On Jun 1, 2010, at 4:51 PM, Scott Otterson wrote: > > 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. >> >> Thanks much, >> >> Scott >> > --00163645774e53c3f904881e466b Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable

On Thu, Jun 3, 2010 at 12:19 AM, Carsten= Dominik <carsten.dominik@gmail.com> wrote:
Hi Scott,

OK, I am giving you a variable org-ctrl-k-protect-subtree to get this prote= ction, either with a query or by throwing an error.

But: =A0my prediction is that you will set this variable to nil again soon = :D
LoL!
Actually, I th= ink is a gread idea, and I will test it also. =A0Probably error will
be much better than query. Thank you Scott and Carsten.
Greetings
Juri
=A0

Let me know how it goes.

Cheers

- Carsten


On Jun 1, 2010, at 4:51 PM, Scott Otterson wrote:

For what must be the dozenth time, I've just accidentally deleted a lar= ge 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 s= o automatic for me that the keystroke is close to subconscious. =A0A mistak= en C-k is especially hard to detect because org-mode displays the result ex= actly like what your subconscious expects, that is, a collapsed headline is= deleted to the end -- and the tree underneath is wiped out with no noticea= ble warning.

Feature request: add an option preventing tree deletion with C-k without us= er confirmation. =A0Actually, I'd like an option to prevent it period.<= br>
If this option is already in there, then you're encouraged to tell me t= o RTFM. =A0But then also please tell me where it is, because I can't fi= nd it.

Thanks much,

Scott
--00163645774e53c3f904881e466b-- --===============0213668947== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode --===============0213668947==--