From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dmitry Prokashev Subject: C-k keystroke kills the subtree Date: Sat, 25 Apr 2009 14:47:32 +0400 Message-ID: <461D034D-8269-4C93-A988-BC8944DA8E28@mail.ru> Mime-Version: 1.0 (Apple Message framework v930.3) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LxfQ1-0002wV-2S for emacs-orgmode@gnu.org; Sat, 25 Apr 2009 06:47:37 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LxfPz-0002vo-Q8 for emacs-orgmode@gnu.org; Sat, 25 Apr 2009 06:47:36 -0400 Received: from [199.232.76.173] (port=35925 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LxfPz-0002vd-Kw for emacs-orgmode@gnu.org; Sat, 25 Apr 2009 06:47:35 -0400 Received: from mx1.mail.ru ([94.100.176.15]:13811) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LxfPz-0004Go-2b for emacs-orgmode@gnu.org; Sat, 25 Apr 2009 06:47:35 -0400 Received: from [79.173.78.120] (port=60182 helo=macbook1.tepkom.spb.su) by mx1.mail.ru with psmtp id 1LxfPw-00083F-00 for emacs-orgmode@gnu.org; Sat, 25 Apr 2009 14:47:32 +0400 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: emacs-orgmode@gnu.org Hello there. I'm using org-mode for a several months and recently a sad thing happened with me. I suddenly found that a subtree where I look into rather rarely, but the information there is quite important, disappeared. Obviously I have stroked C-k while the point was located on the collapsed tree, and whole my tree disappeared and I did not even noticed that. When I found there is no subtree, it was already too late to restore it: there was no such change in undo history and probably I have removed that subtree in one of my previous emacs sessions. Probably its a good idea to review C-k behaviour in org mode. It may remove a single line (subtree header), expand the tree thus attaching it to the previous subtree of the same level, for example. And to remove the whole collapsed subtree, the user should mark it with a region and remove it using C-w thus providing something like a confirmation that he really wants to remove the whole subtree. Well this is just a set of ideas, but anyway I suppose that C-k should not remove the whole (collapsed) tree. My case was the root-level subtree, so I've lost about 1/5th of my file. And yes, thanks for a great tool, this is very usefull for me, and good luck! Best regards, Dmitry Prokashev, St. Petersburg, Russia