From mboxrd@z Thu Jan 1 00:00:00 1970 From: 42 147 Subject: emptying all headlines Date: Thu, 1 Jan 2015 19:14:04 +0100 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=089e0160bdb271291c050b9b3051 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:59116) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y6kG6-0006UQ-KV for emacs-orgmode@gnu.org; Thu, 01 Jan 2015 13:14:07 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Y6kG5-00050s-Rf for emacs-orgmode@gnu.org; Thu, 01 Jan 2015 13:14:06 -0500 Received: from mail-lb0-x22d.google.com ([2a00:1450:4010:c04::22d]:49477) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y6kG5-00050k-Im for emacs-orgmode@gnu.org; Thu, 01 Jan 2015 13:14:05 -0500 Received: by mail-lb0-f173.google.com with SMTP id z12so14389372lbi.32 for ; Thu, 01 Jan 2015 10:14:04 -0800 (PST) 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: Org Mode --089e0160bdb271291c050b9b3051 Content-Type: text/plain; charset=UTF-8 I'm looking for a way to copy only the headlines and sub-headlines, etc., in org-mode, without any of the text that had been folded into them. Thus: /* Bach. [commentary] /** Well-Tempered Clavier. [commentary] /*** Book I. [commentary] /**** Prelude in C Major. [commentary] Would become: /* Bach. /** Well-Tempered Clavier. /*** Book I. /**** Prelude in C Major. In other words: a way to empty all the headlines in a buffer. --089e0160bdb271291c050b9b3051 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
I'm looking for a way to copy only the headlines and s= ub-headlines, etc., in
org-mode, without any of the text that had been f= olded into them. Thus:

/* Bach.

[commentary]

/** Well-= Tempered Clavier.

[commentary]

/*** Book I.

[commentar= y]

/**** Prelude in C Major.

[commentary]

Would become= :

/* Bach.
/** Well-Tempered Clavier.
/*** Book I.
/**** Pr= elude in C Major.

In other words: a way to empty all the headlines i= n a buffer.
--089e0160bdb271291c050b9b3051--