From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daimrod Subject: Re: killing all contents of a headline Date: Tue, 19 Feb 2013 12:13:11 +0100 Message-ID: <87621owo8o.fsf@tanger.home> References: Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([208.118.235.92]:51064) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U7lFK-0003Ou-QL for emacs-orgmode@gnu.org; Tue, 19 Feb 2013 06:20:32 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U7lFF-0002kB-Vn for emacs-orgmode@gnu.org; Tue, 19 Feb 2013 06:20:26 -0500 Received: from mail-wi0-f173.google.com ([209.85.212.173]:42088) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U7lFF-0002k7-Pm for emacs-orgmode@gnu.org; Tue, 19 Feb 2013 06:20:21 -0500 Received: by mail-wi0-f173.google.com with SMTP id hq4so4634363wib.12 for ; Tue, 19 Feb 2013 03:20:20 -0800 (PST) In-Reply-To: (42's message of "Tue, 19 Feb 2013 06:01:23 -0500") 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 --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable 42 147 writes: > 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)? I don't think know if this command exists, but, assuming your cursor is on the headline you can: 1. copy the title (C-a C-c SPC C-e M-w) 2. cut the subtree (C-c C-x C-w) 3. paste the previously copied headline C-y M-y If you find yourself doing this very often you could put it in a keyboardmacro. =2D-=20 Daimrod/Greg --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (GNU/Linux) iQIcBAEBAgAGBQJRI15OAAoJEBNzVHcrZRiUUDAP/im1JkNBL78MeyDeTlkDK22e f/i4uI0AB47KEgxeeTLRRnHxLKuylmHlZQOBEATKRcv4kaQMTfXORYAQEwerFUqf jUsJKXuQkqWXtDbGmAV+ztJDes7br4MQ8mbANotUzMwB4sLRJjLni/dXix+P4DVX tKvQIP6d392bAZe8VVvgu1XX5+pHDtMKLEQIhIG4Dl7TfKGLbTv94PppsdZb6WoT CpEvj2zoDRNRRkDKAODMYm1tgye2pWV9sRMv2EB965UvGnQA2ZRN9GyyaQODanB4 rHW8jruH4kjWtGdm+Tlskrvvtbz5X+c+YvBMdho75KUNV5S0f4lII1HxhI0XfuLC qHooQ0RmIIikpRO7Q3xM8DcQorSfFyHL3kORSgbCJXzlQWiN5bopQF5blIOIcDfV /mG03l41hMnDxzy3z33wXUnhKVUZzSCYS71ln3WFwASUEZ45RcYqyO3iGB1DnNrK z+E5FNtaYbxpqccZn61VPXxkM1IDUN5Q6Ie6RXb0eY5eXfQVa8Lbd891oPHgpVvE nAYFZyN0MrinPL4No3yqx6iJGeey5SaiKzXSwY/d+uUgMZQNooJcnZljt0j2B6Ze 4ypDg7htzkOh6xiGxMq9adEpNqt5ND2WSIahEnNUdqCxSG0E9BvHiUaUACZ6O9dQ OpdqC80W/dIpQTsZ8ygC =X2ku -----END PGP SIGNATURE----- --=-=-=--