From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marcel van der Boom Subject: Re: killing all contents of a headline Date: Tue, 19 Feb 2013 12:36:40 +0100 Message-ID: <20130219123640.4d0c7702@hsdev.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([208.118.235.92]:55048) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U7lVw-0007jx-4V for emacs-orgmode@gnu.org; Tue, 19 Feb 2013 06:37:42 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U7lVu-00073Z-Fc for emacs-orgmode@gnu.org; Tue, 19 Feb 2013 06:37:35 -0500 Received: from hawking.hsdev.com ([213.125.12.142]:55383) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U7lVq-0006y6-56 for emacs-orgmode@gnu.org; Tue, 19 Feb 2013 06:37:34 -0500 In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: 42 147 Cc: emacs-orgmode@gnu.org On Tue 19-Feb-2013 06:01 42 147 wrote: > Title is self-explanatory. Is there a command that lets me place the > cursor on a headline and delete its contents (i.e., all of its text)? If you have the subtree collapsed and with your point on the heading, 'org-kill-line' kills the heading plus the content below it. It is bound to C-k by default I think. So, a clever combination of 'org-cycle' and 'org-kill-line' could be combined to form one command to kill a heading and its contents, regardless of the collapsed state. hth marcel -- Marcel van der Boom -- http://hsdev.com/mvdb.vcf HS-Development BV -- http://www.hsdev.com We use bitcoin! -- http://bitcoin.org