From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id WMQINfpK9GVoYgEAqHPOHw:P1 (envelope-from ) for ; Fri, 15 Mar 2024 14:19:55 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id WMQINfpK9GVoYgEAqHPOHw (envelope-from ) for ; Fri, 15 Mar 2024 14:19:54 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=fhjXTp0g; 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"; dmarc=pass (policy=none) header.from=posteo.net ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1710508794; 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:dkim-signature; bh=/WzZfzR19k9FrQUzsc31/TLNPFmn29j5+1/BgEmPns0=; b=SblLwIeAip4JS9fIRgon1dleoFualds+mWXQHvgDoiZtV8S2ylCXeImmX23ZFdt6wfnNH/ yekHdWllEGLlTbplxNhYe4czkczvBNv/BgCcIoGgIMkI+Wgu2f9wvrnOv4r1tntfg0U5mS dLGBU6OI7h1pw/GUH08G3opfb5Tg2H3/bLFw0CRSSMdTrtgAgbD+TQr0C+Ge73Sp07MJLA /s2cZEfz+rajGLofN0tIkyt52X19GvMAt6l4kJbWoxjMCffM6V28KA/Y/Xo4V20MwtGDji l2/00/S2Bkk23qoaZ6Vl2+pdRtGX0XPtWC9pJcUNA6aSt18MP6bdJSgdyUwH1A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=fhjXTp0g; 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"; dmarc=pass (policy=none) header.from=posteo.net ARC-Seal: i=1; s=key1; d=yhetil.org; t=1710508794; a=rsa-sha256; cv=none; b=VbvyjNPmmi+lGux4uRFry701cozsVdyWcnusjtmi7/j1XoRLr2o0PAwlJmk+DTSc8nZziA Di+5/tOF/I2ZBlCzxXwwcAe/0IugzOa9PRugRAy7oOenAdnaDwe+cw9DpyouAlkYvH4HOS dw6v9pLdaTlBpzkB3aHMcjIxEcQsqdhdVFxHQdEc5x+aJuUHeLN22xfOP3M7s4TnsIVIkc fVatdOIKOdbsiQdkkvaDrMIhZ0DWJ5N5v+EydzvhQS32Za/VDLwcHcSF5f07e9rliX+qhy gdYUy6Z1tAA3bPHooqFgdG3I0PG0EGBc4E781WVlfcmIuRERx195WtrI01bNLg== 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 B07D7620F5 for ; Fri, 15 Mar 2024 14:19:54 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rl7L0-0000Fr-V9; Fri, 15 Mar 2024 09:11:07 -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 1rl7KZ-0007R6-U2 for emacs-orgmode@gnu.org; Fri, 15 Mar 2024 09:10:41 -0400 Received: from mout01.posteo.de ([185.67.36.65]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rl7KJ-00081p-S6 for emacs-orgmode@gnu.org; Fri, 15 Mar 2024 09:10:39 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 5D8B2240028 for ; Fri, 15 Mar 2024 14:10:20 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1710508220; bh=YrR/qTdiGnGHbrnYQY+JLC5MCGGR3CF7zm0LjF9EOBk=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: Content-Transfer-Encoding:From; b=fhjXTp0gSXx3OODZXG9TfqrxHYaK6MGAP+jHknOoFRJhj+JyfbX/SgNsTq2/wd5Ic Z5cqZN8lusvfFvgbQgRl16mzVY2U6Arn1I2dwTDf+TJ7OURBUKNLlfc/LWAPZBr+EE IJTISRZovAVR1IcKkYitZwkdGdjj6GwtMfTXPgG9cyHry69QVi60RC78ek3kBDig8P 7COdeJS5YTRsNrU7Wd/5pSBa25atYtPYpZOX6VjOAzGTvZPtFrmuC7Bjt0G5g0TFwH AfJQvPag8Lc4q730HWB9Z2lJx3z83WyJwxDFKY5o8EeTx2RaQDVLkgpP7tWJWuX4z4 TBxtzJvf/yGlQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Tx4Nq6LFCz9rxB; Fri, 15 Mar 2024 14:10:19 +0100 (CET) From: =?utf-8?Q?Juan_Manuel_Mac=C3=ADas?= To: Max Nikulin Cc: emacs-orgmode@gnu.org Subject: Re: `:export' attribute?: Re: Experimental public branch for inline special blocks In-Reply-To: (Max Nikulin's message of "Fri, 15 Mar 2024 17:52:48 +0700") References: <87wmql6690.fsf@posteo.net> <87cysb2h68.fsf@posteo.net> <877ciavnwo.fsf_-_@posteo.net> <87bk7k7tuf.fsf@posteo.net> <87wmq85xn9.fsf@posteo.net> <877ci7bm2b.fsf@posteo.net> <87y1an9wkj.fsf@posteo.net> <87il1qm61y.fsf@posteo.net> <87edcem4rw.fsf@posteo.net> <87wmq4me2k.fsf@posteo.net> Date: Fri, 15 Mar 2024 13:10:17 +0000 Message-ID: <87a5mz4p52.fsf@posteo.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=185.67.36.65; envelope-from=maciaschain@posteo.net; helo=mout01.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, 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 X-Migadu-Scanner: mx12.migadu.com X-Migadu-Spam-Score: -9.99 X-Spam-Score: -9.99 X-Migadu-Queue-Id: B07D7620F5 X-TUID: FSHdtcWkLPax Thank you for your comments. Max Nikulin writes: > On 15/03/2024 09:19, Juan Manuel Mac=C3=ADas wrote: >> The attribute supports one or more elements separated by a space. Each >> element can be any of the following signs: "*" (export only the >> content), "-" (do not export), "=3D" (export the rest normally), "=3D*" >> (export the rest, but only the content), "=3D-" (do not export the rest). >> Additionally, backend names can be given explicitly, alone or >> accompanied by the "*" or "-" signs, that is (where "backend" equals the >> name of the backend): > > 1. "-" is a valid backend name and valid last character of backend name I had not thought of it. Can + also be a valid character?=20 > 2. From the description it is not clear to me what is effect of "rest" > specified for more than one backend. 'rest' (=3D) is equivalent to the rest of the backends that have not been explicitly set. What happens is that, with my current approach, if you want to export only one backend, you must enter: :export backend =3D- (that is, export this backend and not the rest) This is not ideal. It should be enough to just put: :export backend but I am not able to achieve it. > I have had into the code. I would expect something like the following > (characters may be changed, the code is not heavily tested). Two > characters from the following groups may be appended to backend name: > > + full (default) > * content > / skip > (these ones may be used without backed name to specify fallback action) > > =3D this and derived backends (default) > . this, but not derived backends > Perhaps it is necessary to add possibility that > these rules may coexist (use loop instead of assoc) OK. How about the following? - Single characters (they affect everything, if backend name is not specified, or the rest, if backend name is specified: =20=20 * content / skip . never export derived backends =3D full, this and derived backends (default) - And in combination with backend names (some examples): :export latex* > content to LaTeX, normal to the rest =20=20 :export latex/ > do not export to LaTeX :export latex. > do not export to LaTeX derived backends :export latex . > export normally to LaTeX but do not export the derived = backends in the rest of the cases etc. These days I'm going to be a little short on time, due to work, and I don't know if I'll be able to attend to the list. I want to calmly take a look at the code you share.