From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rick Frankel Subject: Re: Bug (?) in new exporter (export subtree) Date: Thu, 17 Jan 2013 08:28:49 -0500 Message-ID: <20130117132849.GA39115@BigDog.local> References: <20130115203629.GA25867@BigDog.local> <87libt2cx1.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([208.118.235.92]:53032) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TvpWW-0005W2-On for emacs-orgmode@gnu.org; Thu, 17 Jan 2013 08:28:56 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TvpWT-0001DO-VR for emacs-orgmode@gnu.org; Thu, 17 Jan 2013 08:28:52 -0500 Received: from [204.62.15.78] (port=52262 helo=mail.rickster.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TvpWT-0001C5-Ra for emacs-orgmode@gnu.org; Thu, 17 Jan 2013 08:28:49 -0500 Received: from BigDog.local (pool-71-190-193-126.nycmny.fios.verizon.net [71.190.193.126]) by mail.rickster.com (Postfix) with ESMTPS id CF32D20B01 for ; Thu, 17 Jan 2013 08:28:49 -0500 (EST) Content-Disposition: inline In-Reply-To: <87libt2cx1.fsf@gmail.com> 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 On Wed, Jan 16, 2013 at 07:36:10PM +0100, Nicolas Goaziou wrote: > Rick Frankel writes: > > > In the new exporter, when the option to export only the subtree is > > specified, the first heading in the subtree is used as the title of > > the document. This seems wrong, as it becomes the title, the first > > element in the table of contents and the first (not necessarily > > the top level) section in the document. > > It doesn't, AFAIU. Could you explain how you do export (in particular, > where is the point when you call the export subtree process) and what do > you expect on a simple example ? > > For me: > > #+begin_src org > #+TITLE: title > #+OPTIONS: toc:t > * Level 1 > Body 1 X > ** Level 2 > Body 2 > *** Level 3 > Body 3 > #+end_src > > with point at X will have "Level 1" as its title, but "Level 1" will > appear neither in the table of contents nor as the first section of the > produced document. So, it seems that as long as there is a body (or blank) line after the parent heading and you position the cursor on that line, it works (point at X): #+begin_src org * Title X ** heading 1 text ** heading 2 ... #+end_src But if there is no blank line after the "title", there is no way to get the expected results with the point either on the title line or the first asterix on heading 1: #+begin_src org * Title ** heading 1 text ** heading 2 ... #+end_src rick