From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marcin Borkowski Subject: Re: How to get list item depth within the exporter framework? Date: Mon, 27 Jul 2015 10:53:35 +0200 Message-ID: <87bney2d80.fsf@mbork.pl> References: <87h9oq2evj.fsf@mbork.pl> <87d1ze2dkg.fsf@mbork.pl> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:36051) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZJeAZ-0008Ek-VN for emacs-orgmode@gnu.org; Mon, 27 Jul 2015 04:54:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZJeAV-0006hE-49 for emacs-orgmode@gnu.org; Mon, 27 Jul 2015 04:53:59 -0400 Received: from mail.mojserwer.eu ([2a01:5e00:2:52::8]:33961) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZJeAU-0006g8-T3 for emacs-orgmode@gnu.org; Mon, 27 Jul 2015 04:53:55 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.mojserwer.eu (Postfix) with ESMTP id 8268F8F2002 for ; Mon, 27 Jul 2015 10:53:41 +0200 (CEST) Received: from mail.mojserwer.eu ([127.0.0.1]) by localhost (mail.mojserwer.eu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id FMmpQcnBh+rg for ; Mon, 27 Jul 2015 10:53:39 +0200 (CEST) Received: from localhost (unknown [109.232.24.146]) by mail.mojserwer.eu (Postfix) with ESMTPSA id 60F646F2003 for ; Mon, 27 Jul 2015 10:53:39 +0200 (CEST) In-reply-to: <87d1ze2dkg.fsf@mbork.pl> 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 2015-07-27, at 10:46, Marcin Borkowski wrote: > On 2015-07-27, at 10:17, Marcin Borkowski wrote: > >> Hi all, >> >> as I mentioned, I'm writing a simple exporter. However, I stumbled on >> something apparently simple. How to get the current list level within >> org-whatever-item transcoder? > > By inspecting values of org-whatever-item's arguments, I found out one > way: by checking the amount of indentation in :bullet. Is it reliable? Ooops, my bad. Indentation is stripped from :bullet. So, what do I do? Best, -- Marcin Borkowski http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski Faculty of Mathematics and Computer Science Adam Mickiewicz University