From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?utf-8?Q?Fran=C3=A7ois_Pinard?= Subject: Re: Spurious exporting of text before first header Date: Wed, 25 Sep 2013 11:03:14 -0400 Message-ID: <8661tp9c5p.fsf@iro.umontreal.ca> References: <86mwn1a6xn.fsf@iro.umontreal.ca> <86mwn12w2r.fsf@somewhere.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:58262) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VOqce-0004OI-T7 for emacs-orgmode@gnu.org; Wed, 25 Sep 2013 11:03:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VOqcY-0007i8-Ui for emacs-orgmode@gnu.org; Wed, 25 Sep 2013 11:03:24 -0400 Received: from 206-248-137-202.dsl.teksavvy.com ([206.248.137.202]:62749 helo=mercure.bureau.ubity.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VOqcY-0007hT-Hx for emacs-orgmode@gnu.org; Wed, 25 Sep 2013 11:03:18 -0400 In-Reply-To: <86mwn12w2r.fsf@somewhere.org> (Sebastien Vauban's message of "Wed, 25 Sep 2013 09:34:52 +0200") 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: emacs-orgmode@gnu.org "Sebastien Vauban" writes: > Hi Fran=C3=A7ois, Hello, Sebastien! :-) >> [...] if I have text and other contents prior to the first header of >> a file, those contents are indeed exported, while I would prefer not. >> [...] I have hundreds of Org files and for them all, have some >> personal conventions for their format and structure. [...} > If you like text without initial heading in the exported file, but don't = mind > adding an heading in the Org buffer, you could add this: > * Initial text :ignoreheading: > and get what you want in the exported file. I might have no other choice, but it would be sad. As I said, I have hundreds of Org files, all carefully crafted, rather nice to my eyes, most of them using initial text for useful and special purpose. Adding an initial header everywhere would disrupt this nicety, for the sole purpose of getting around what I consider to be an Org bug, or limitation, or lack of happiness, depending on how you want to call it! The spirit behind :export: is that it marks exactly what is going to be exported. This implies, in my understanding, that everything else does not get exported. If the lines prior to the first header are exported whenever there is an :export: tag somewhere, it goes against the spirit and intent of :export: in my opinion. Fran=C3=A7ois