From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: [patch, ox] Unnumbered headlines Date: Sat, 27 Sep 2014 10:19:28 +0200 Message-ID: <87lhp5cw6n.fsf@nicolasgoaziou.fr> References: <87lhqzyubg.fsf@gmx.us> <87bnrrp0tb.fsf@nicolasgoaziou.fr> <87r40n6nrg.fsf@gmx.us> <87egwmaxte.fsf@nicolasgoaziou.fr> <87k34y701i.fsf@gmx.us> <87fvfl86ct.fsf@nicolasgoaziou.fr> <87k34xghtt.fsf@gmx.us> <87ppeon4mw.fsf@nicolasgoaziou.fr> <87tx4020lh.fsf@gmx.us> <87vboflkil.fsf@nicolasgoaziou.fr> <87iokfdvi3.fsf@gmx.us> <87d2aiesce.fsf@nicolasgoaziou.fr> <87y4t6v6g4.fsf@gmx.us> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:48900) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XXnDb-0001IS-TI for emacs-orgmode@gnu.org; Sat, 27 Sep 2014 04:19:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XXnDT-0005vu-Ps for emacs-orgmode@gnu.org; Sat, 27 Sep 2014 04:19:03 -0400 Received: from relay3-d.mail.gandi.net ([2001:4b98:c:538::195]:39950) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XXnDT-0005vV-JQ for emacs-orgmode@gnu.org; Sat, 27 Sep 2014 04:18:55 -0400 In-Reply-To: <87y4t6v6g4.fsf@gmx.us> (rasmus@gmx.us's message of "Fri, 26 Sep 2014 15:48:11 +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: Rasmus Cc: emacs-orgmode@gnu.org Hello, Rasmus writes: > Thanks for all time you've put into the comments. I appreciate it, > and I will try to revise the patches over the weekend. Thanks. Again, there's no rush. > I worry about this approach based on some observations Alan sent > off-list. When you export the quoted document with num:nil all labels > will be of the form "unnumbered-N", loosing all structure in labels. I don't think how that would be a problem. A label is expected to refer uniquely to a headline. Reflecting structure of the document is not a requisite. "sec-NUM" is but a bonus. As far as labels go, we could also use "headline-X" for all headlines, numbered or not. > Also, some labels are still unassigned in html for unnumbered > headlines, e.g. the "text-" (which is a function of parents' section > numbers) and outline-container-sec-. Couldn't they be turned into "text-unnumbered-X" and "outline-container-unnumbered-X" instead? > Do you think it's better to solve the remaining issues, and accept > that when num:nil exported documents will be quite altered compared to > previously, or should I try to introduce a more informative ID for > numbered an unnumbered headlines alike? The former. > If following the latter path, the most obvious approach (to me) would > be to have a separate :headline-id > and :headline-numbering. :headline-id could be collected using > something like `org-export--collect-headline-numbering', but labels > would not necessarily reflect the printed section numbers, > though :headline-numbering would still be "correct". I think we don't need this added complexity. Regards, -- Nicolas Goaziou