From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marcin Borkowski Subject: Re: How to differentiate between lists in HTML export Date: Mon, 10 Nov 2014 03:02:16 +0100 Message-ID: <87a93zdd93.fsf@wmi.amu.edu.pl> References: <8761eue8dw.fsf@wmi.amu.edu.pl> <87ppd2ay9a.fsf@nicolasgoaziou.fr> <87fvdtcjy0.fsf@wmi.amu.edu.pl> <87bnogwzmc.fsf@nicolasgoaziou.fr> <87d28wcayy.fsf@wmi.amu.edu.pl> <87ppcwm0ps.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:48004) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XneJN-0000O9-W6 for emacs-orgmode@gnu.org; Sun, 09 Nov 2014 21:02:39 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XneJI-0007Fv-AA for emacs-orgmode@gnu.org; Sun, 09 Nov 2014 21:02:33 -0500 Received: from msg.wmi.amu.edu.pl ([2001:808:114:2::50]:49141) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XneJI-0007Fl-2z for emacs-orgmode@gnu.org; Sun, 09 Nov 2014 21:02:28 -0500 Received: from localhost (localhost [127.0.0.1]) by msg.wmi.amu.edu.pl (Postfix) with ESMTP id 2F2FB42069 for ; Mon, 10 Nov 2014 03:02:25 +0100 (CET) Received: from msg.wmi.amu.edu.pl ([127.0.0.1]) by localhost (msg.wmi.amu.edu.pl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 10Jac5OA93-F for ; Mon, 10 Nov 2014 03:02:25 +0100 (CET) Received: from localhost (99-229.echostar.pl [213.156.99.229]) by msg.wmi.amu.edu.pl (Postfix) with ESMTPSA id E02BB42067 for ; Mon, 10 Nov 2014 03:02:24 +0100 (CET) In-reply-to: <87ppcwm0ps.fsf@nicolasgoaziou.fr> 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 mailing list On 2014-11-10, at 00:08, Nicolas Goaziou wrote: > Marcin Borkowski writes: > >> Sorry for the noise, it seems to be working now. (I threw out the >> code, but AFAIR the non-uniqueness arised with ordinals of /items/ in >> different lists.) > > Yes, ordinals for items are relative to the list they belong to. OTOH > for plain lists, this is the sequence number among other plain lists in > the buffer (see docstring). That's exactly what I thought. (I need ordinals for plain lists, since I sometimes convert them to groups of radio buttons in my derived html backend; at first, I mistakenly took ordinals of items...) Tip to myself (and to whoever might need it): to have a unique id of a list item, combine the id of the parent list with the (relative) id of the item. > Regards, Best, -- Marcin Borkowski http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski Adam Mickiewicz University