From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: [HTML] subtree export reverted back to absolute H level behavior Date: Wed, 27 Feb 2013 20:52:56 +0100 Message-ID: <87r4k1r0tj.fsf@gmail.com> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:41186) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UAn4O-0002UE-2k for emacs-orgmode@gnu.org; Wed, 27 Feb 2013 14:53:46 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UAn4C-0003At-8x for emacs-orgmode@gnu.org; Wed, 27 Feb 2013 14:53:34 -0500 Received: from mail-wi0-f176.google.com ([209.85.212.176]:38522) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UAn4B-00033i-11 for emacs-orgmode@gnu.org; Wed, 27 Feb 2013 14:53:28 -0500 Received: by mail-wi0-f176.google.com with SMTP id hm14so6786040wib.15 for ; Wed, 27 Feb 2013 11:53:08 -0800 (PST) In-Reply-To: (Samuel Wales's message of "Wed, 27 Feb 2013 11:49:24 -0700") 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: Samuel Wales Cc: emacs-orgmode@gnu.org Hello, Samuel Wales writes: > The old exporter had a bug where exporting a subtree would start H > levels at the level in the file. > > Thus, the top level being exported could be H8 if it were indented to > that level. Or H38 if it were indented to that level. > > IMO better behavior is relative. > > === > > The new exporter seemed to fix this, but it seems to have gone back to > the old behavior in a recent commit on git master. > > It is excellent to make the new emulate the old as much as possible; > this reduces bugs and impact on people. But does anybody rely on > absolute levels for subtree export? My guess would be no, but I could > be wrong. > > === > > Recent commit caused this change in output: > > -

An intriguing and fun question

> +An intriguing and fun question > > Hope I've not misunderstood something here. I can't run the > dispatcher directly because I get other issues. It would help to see your test file. For example, in the following Org buffer, * Level 1 ** Level 2 *** Level 3 **** Level 4 ***** Level 5 ****** Level 6 exporting subtree with point on "Level 4" will result as

Level 5

and

Level 6

, which is correct. I think your file is more like the following: * Something ** An intriguing and fun question ****** An intriguing and fun question I.e. you skipped levels in your file. Then, numbering indeed skips parts. So to put it differently, level is relative to the lowest level among exported headline (it will always be 1), thereafter, it is absolute. Regards, -- Nicolas Goaziou