emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Daimrod <daimrod@gmail.com>
To: 42 147 <aeuster@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: killing all contents of a headline
Date: Tue, 19 Feb 2013 12:13:11 +0100	[thread overview]
Message-ID: <87621owo8o.fsf@tanger.home> (raw)
In-Reply-To: <ppzwwosc.fsf@gmail.com> (42's message of "Tue, 19 Feb 2013 06:01:23 -0500")

[-- Attachment #1: Type: text/plain, Size: 513 bytes --]

42 147 <aeuster@gmail.com> 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.

-- 
Daimrod/Greg

[-- Attachment #2: Type: application/pgp-signature, Size: 835 bytes --]

  reply	other threads:[~2013-02-19 11:20 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-02-19 11:01 killing all contents of a headline 42 147
2013-02-19 11:13 ` Daimrod [this message]
2013-02-19 11:36 ` Marcel van der Boom
2013-02-19 12:09 ` Bastien
2013-02-19 15:43   ` Suvayu Ali
2013-02-19 17:02     ` Bastien
2013-02-19 16:40   ` 42 147
2013-02-19 17:05     ` Bastien
2013-02-19 20:29       ` 42 147
2013-02-19 17:11     ` Suvayu Ali

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87621owo8o.fsf@tanger.home \
    --to=daimrod@gmail.com \
    --cc=aeuster@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).