From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Re: Variable 'org-ctrl-k-protect-subtree' defaults to nil Date: Wed, 3 Nov 2010 23:30:20 +0100 Message-ID: <3A548F03-656C-4DC9-AF0A-01569627F98E@gmail.com> References: <87y69audks.fsf@noorul.maa.corp.collab.net> 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=53231 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PDopC-0002EQ-Js for emacs-orgmode@gnu.org; Wed, 03 Nov 2010 21:41:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PDlqa-00032c-1Q for emacs-orgmode@gnu.org; Wed, 03 Nov 2010 18:30:25 -0400 Received: from mail-ey0-f169.google.com ([209.85.215.169]:49390) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PDlqZ-00032Y-R7 for emacs-orgmode@gnu.org; Wed, 03 Nov 2010 18:30:23 -0400 Received: by eydd26 with SMTP id d26so691367eyd.0 for ; Wed, 03 Nov 2010 15:30:23 -0700 (PDT) In-Reply-To: <87y69audks.fsf@noorul.maa.corp.collab.net> 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: Noorul Islam K M Cc: pjmtavares@hotmail.com, emacs-orgmode@gnu.org On Nov 3, 2010, at 7:27 AM, Noorul Islam K M wrote: > writes: > >> Hi everyone, >> >> It's the first time I'm giving any feedback on org-mode, so first >> of all I would like to congratulate the original creator and all >> contributors on a very interesting and useful work. >> >> I've discovered org-mode only a couple of weeks ago and was >> intrigued enough to restart using emacs, after several years away >> from it! I've been studying Org's documentation and tutorials, and >> started using it to help me manage my relocation from Brazil to >> Italy. >> >> What I am reporting, technically, is a feature: the fact that >> variable 'org-ctrl-k-protect-subtree' defaults to nil. But >> considering how easy this makes to lose a whole subtree of data, >> especially for a newcomer to org-mode, I think it should be >> considered a serious bug. As a matter of fact, I am very surprised >> that C-k would be considered an admissible alternative to C-c C-x C- >> w/M-w, as a way to kill a subtree! >> >> I propose that 'org-ctr-k-protect-subtree' is made to default to >> 't' ASAP (already costumized it in that way on my setup), and that >> the behavior of C-k on headings is made consistent: kill to the end >> of line, regardless of the visibility of the subtree. >> > > I slightly disagree here. Most of the time I definitely want the > entire > subtree to go away. I think this is the beauty of outline mode. I agree with Norul. C-k kills an entire visible line, and that line has ... ellispes and therefore *contains* the folded text. Just killing the headline would leave ... on a line by its own, a bad state which is not good to have. This change would also make the behavior inconsistent with other Emacs modes and behavior. So we will keep the current default - but feel free to submit a patch to documentation or a tutorial to points out this issue to beginners. Greetings. - Carsten