From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Kitchin Subject: getting item information in an export filter? Date: Mon, 3 Feb 2020 09:15:43 -0500 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000b61b43059dac8f39" Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:34566) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iycW7-0005La-Iy for emacs-orgmode@gnu.org; Mon, 03 Feb 2020 09:16:00 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iycW6-0006pA-EC for emacs-orgmode@gnu.org; Mon, 03 Feb 2020 09:15:59 -0500 Received: from mail-wm1-x332.google.com ([2a00:1450:4864:20::332]:55791) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iycW5-0006nu-1Q for emacs-orgmode@gnu.org; Mon, 03 Feb 2020 09:15:57 -0500 Received: by mail-wm1-x332.google.com with SMTP id q9so16061110wmj.5 for ; Mon, 03 Feb 2020 06:15:56 -0800 (PST) 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-mx.org@gnu.org Sender: "Emacs-orgmode" To: org-mode-email --000000000000b61b43059dac8f39 Content-Type: text/plain; charset="UTF-8" In https://emacs.stackexchange.com/questions/55231/org-mode-export-html-add-name-attirbute-to-checkbox-input there was a question about modifying a checkbox export. I wrote an answer using a custom translate function in a derived backend, where I could get the name of the parent list pretty easily. It seems like that should also be possible in a filter, but I don't understand how to find the parent list in that case. I think it is buried in the info. Is there a general way to get to the org-element information for something in an export filter function? John ----------------------------------- Professor John Kitchin Doherty Hall A207F Department of Chemical Engineering Carnegie Mellon University Pittsburgh, PA 15213 412-268-7803 @johnkitchin http://kitchingroup.cheme.cmu.edu --000000000000b61b43059dac8f39 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
In=C2=A0https:/= /emacs.stackexchange.com/questions/55231/org-mode-export-html-add-name-atti= rbute-to-checkbox-input

there was a question about m= odifying a checkbox export. I wrote an answer using a custom translate func= tion in a derived backend, where I could get the name of the parent list pr= etty easily.=C2=A0

It seems like that should also = be possible in a filter, but I don't understand how to find the parent = list in that case. I think it is buried in the info.

Is there a general way to get to the org-element information for somethi= ng in an export filter function?

John

-----------------------------= ------
Professor John Kitchin=C2=A0
Doherty Hall A207F
Department = of Chemical Engineering
Carnegie Mellon University
Pittsburgh, PA 152= 13
412-268-7803
--000000000000b61b43059dac8f39--