From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: feature request: C-k safety Date: Thu, 3 Jun 2010 00:19:51 +0200 Message-ID: References: Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from [140.186.70.92] (port=38919 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OJwIz-0005VB-PY for emacs-orgmode@gnu.org; Wed, 02 Jun 2010 18:20:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OJwIx-0003TN-Js for emacs-orgmode@gnu.org; Wed, 02 Jun 2010 18:20:57 -0400 Received: from mail-ew0-f214.google.com ([209.85.219.214]:45407) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OJwIx-0003Qe-FB for emacs-orgmode@gnu.org; Wed, 02 Jun 2010 18:20:55 -0400 Received: by mail-ew0-f214.google.com with SMTP id 6so2326972ewy.32 for ; Wed, 02 Jun 2010 15:20:54 -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: Scott Otterson Cc: emacs-orgmode@gnu.org 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 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 > _______________________________________________ > 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 - Carsten