From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id oFEiN/nulmQV4QAASxT56A (envelope-from ) for ; Sat, 24 Jun 2023 15:26:17 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id YO7ZNvnulmQr9QAAauVa8A (envelope-from ) for ; Sat, 24 Jun 2023 15:26:17 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 77DA43DA93 for ; Sat, 24 Jun 2023 15:26:17 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qD3GW-0007CK-MM; Sat, 24 Jun 2023 09:25:24 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qD3GU-0007Bx-RX for emacs-orgmode@gnu.org; Sat, 24 Jun 2023 09:25:22 -0400 Received: from mail.mojserwer.eu ([195.110.48.8]) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qD3GS-00015b-NY for emacs-orgmode@gnu.org; Sat, 24 Jun 2023 09:25:22 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.mojserwer.eu (Postfix) with ESMTP id A12B29204CA; Sat, 24 Jun 2023 15:25:18 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at mail.mojserwer.eu 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 ts2VONKFPhty; Sat, 24 Jun 2023 15:25:15 +0200 (CEST) Received: from localhost (91-227-196-3.net4me.pl [91.227.196.3]) by mail.mojserwer.eu (Postfix) with ESMTPSA id 3E8FDA0E1F1; Sat, 24 Jun 2023 15:25:15 +0200 (CEST) References: <87353exyyz.fsf@mbork.pl> <87r0qyuyoa.fsf@localhost> <87353dr73o.fsf@mbork.pl> <87ttvpp68q.fsf@mbork.pl> <874jnpdtei.fsf@localhost> <87sfb9oyjy.fsf@mbork.pl> <87ttvpkkks.fsf@localhost> User-agent: mu4e 1.1.0; emacs 30.0.50 From: Marcin Borkowski To: Ihor Radchenko Cc: Org-Mode mailing list Subject: Re: How to export to the simplest possible HTML? In-reply-to: <87ttvpkkks.fsf@localhost> Date: Sat, 24 Jun 2023 15:25:14 +0200 Message-ID: <87v8fd6lhh.fsf@mbork.pl> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=195.110.48.8; envelope-from=mbork@mbork.pl; helo=mail.mojserwer.eu X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Seal: i=1; s=key1; d=yhetil.org; t=1687613177; a=rsa-sha256; cv=none; b=jYqcPkUrnseVSHROYjPBgiqizDM3fz51InfWbI+orZTSsgIqeB2Qe1jtFA7/hFwld7DPmz pc1Bdo+a/PzfDIdKE6sDCku1k5A38IN6AN9C54Fg59Cu6v/sBMOGKGBYFn/ViVbeS1z40t DJ5AqEyMg+AogQV78aunmoCp7mirI4amXjCJWx774XuzO154cWXziT7jXF+BGRWY6RxTro f2EAqFYidaLpYABPDOchHKlmsXEF0m/O7AxcogjlmKxAfUydOysxJyv+BgjMM6aEj/9pqb +QpF8ZlMsLtFEqXTbVCkzMYzjqrfV9uTOOFfIFa2PiXQ6/mht1c58qsoSkY/zw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1687613177; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=CP7TDnXz/zkqEHinKQ7aCg28jlRH4YX8O+tNFkofwYE=; b=ag1rRODcE/IvwOA91rlALJIZy+d39HbHHXmPlg5/QfHBJda/hosVU7YCaidAWvdwLBlXZz FhemGi3S454nEyak7I6tM11lPNCClkYsCrXPrZy0xkuCri4+nl8qM6LbhvdGJWz6LzFmlY +fmisFLzwjz7ud0u3J+GYdNtzdsxzJ6xKTLa0TNYrYYHOtUcVaV0CiSSR8bRyERQjFPZCC 1H+iu+rLFHMplQ0tPK5gaxaJcKny+w7PzcK871p2Kogcxo8HhezhDwMEBxVSUu0RV5tkMT vpZiv6t+VtuMOVGEtwgUTcGgAL8zry0qQw7EcXYtIQTfo4tHM/ijUPFGqApnFA== Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Scanner: scn0.migadu.com X-Migadu-Spam-Score: -2.15 X-Spam-Score: -2.15 X-Migadu-Queue-Id: 77DA43DA93 X-TUID: FdMJvUT//VPn On 2023-06-03, at 10:37, Ihor Radchenko wrote: > Marcin Borkowski writes: > >>> You can loop over links in the exported subtree and export any extra if >>> necessary. For example, in the `org-export-filter-parse-tree-functions'. >> >> Interesting. The main problem with it is that the docstring is rather >> concise and I don't understand it well enough to use it. > > Org export passes the actual parsed and filtered AST that will be > exported to `org-export-filter-parse-tree-functions'. You can modify and > traverse the parse tree as you need. Yeah, that I do understand. Problem is, I don't know how the AST is structured, what functions operate on it etc. I am aware that I could learn all of that from the source and experimenting, but it would probably be a bit time-consuming, and other ways turned out to be much easier (which means better for me =E2=80=93 I want something simple). As an aside, inspecting deeply nested structures in Elisp seems a pain in the neck. Does anyone know a good method of interactively inspecting them? My usual approach (Edebug) is next to useless when the value displayed in the minibuffer is a deeply nested list with dozens or hundreds of elements at different levels... TIA, --=20 Marcin Borkowski http://mbork.pl