From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id sBQpCP6Q+GOmhQEAbAwnHQ (envelope-from ) for ; Fri, 24 Feb 2023 11:27:10 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id mIhGB/6Q+GNrFAAAG6o9tA (envelope-from ) for ; Fri, 24 Feb 2023 11:27:10 +0100 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 C92E217CF1 for ; Fri, 24 Feb 2023 11:27:09 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pVVHq-0001DO-QY; Fri, 24 Feb 2023 05:26:46 -0500 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 1pVVHe-0001Ap-46 for emacs-orgmode@gnu.org; Fri, 24 Feb 2023 05:26:34 -0500 Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pVVHb-0008NB-Nr for emacs-orgmode@gnu.org; Fri, 24 Feb 2023 05:26:33 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 839CD2404BD for ; Fri, 24 Feb 2023 11:26:27 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1677234389; bh=Meb6+x+R0sFR7zMFO+ZdQt6cyX1ZwbHNLXdOY9tiCQA=; h=From:To:Cc:Subject:Date:From; b=WxZDhYXSYIzxSNezdu7RRLA4FU638e9DssR924bh0owrjS2oew7zJuMzOGXkEPKHe 2b0PyW78jHJbH9k7OjCvnIOW5MLC107KNKO5NFbmFvPaU0SVafLNz5J+d3bsLW/Yqx ZWMBKhYAFU/a+7aan4Z9HsbLhJWzrWAUUacN92FJdw2iLhMsf3irvT+qhznC1dO62u /6udYo8IAWrW8GeCs9yrZWHRcOJmHGNeKFktGbup2GyDtN3LLMUWylw9iSwH3cyQ1K eU9m/lL4T+eyDW1K3MarCgC+0i33kfjDuFFP5kiZ1SQiusrktGKWWpbgVJGmGEzs8U uWDXZej/mw8iA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4PNQzN4jZZz9rxD; Fri, 24 Feb 2023 11:26:24 +0100 (CET) From: Ihor Radchenko To: sebastien.miquel@posteo.eu Cc: emacs-orgmode Subject: Re: [POLL] Naming of "export features" In-Reply-To: <27a9349f-2171-d065-d257-6074f627c1ef@posteo.eu> References: <875yc95rxp.fsf@tec.tecosaur.net> <87h6vfnl3a.fsf@tec.tecosaur.net> <871qmhdh3l.fsf@localhost> <27a9349f-2171-d065-d257-6074f627c1ef@posteo.eu> Date: Fri, 24 Feb 2023 10:27:04 +0000 Message-ID: <874jrbs6iv.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=185.67.36.66; envelope-from=yantar92@posteo.net; helo=mout02.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_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 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-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1677234429; 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=sC6ahDf9xCraBRkHdn0hIMzRiL3ryWAa/gTXNIuMJVI=; b=JPtV4IU1tNQFu6pETVW1BEx4OuEFHF0iKqqn/kxUz4gj04nwLiYUNjKusNNBJ/DH9iPG0+ Q3YKvRQfkGtqZbcxVO0hB+IorbHiwsFptCPlQJjzef7eaoCXQX2kS9Yr3DQ9p4vKjLWs4X k0MX5AQkUUElEXiWuEX4ejFkTzUJkpENnoiR1RkLkESOfweZDXr5dRQg8J37PI8izQKH7M F1MMMgqp2scDD9g3ThwFX3+ulcbb+FjW/WBWYMUxyIktlebzUMHtqAPxlUmTuU80LPCL8Q afLDdrFb/RjBRAl/F5+xZInCVS9coDCV51dFWpwpH/mHsY2K6JdXmbVJZJ1dLQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=WxZDhYXS; dmarc=pass (policy=none) header.from=posteo.net; 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-Seal: i=1; s=key1; d=yhetil.org; t=1677234429; a=rsa-sha256; cv=none; b=jseFl1X2W6ff8SXkG+wkdcQFduy4h5bTBO//3smmNcGZBEaHF+rSS9JutKCT9Z7s4zkQ9W p7ckgFLWGLT/WBpzN4ViXDR6BOjApGf52+e9btrfdY0FASjrndXz/qFmWc/BntcHhO3JYz HI5u00rNnf2J3ZdIKLoGLTMl0CFzcfVMw7eIzl7RCPI7eK7hpDwsT/TqmHeVGEwC2U/A4G XOyQK5W/13DgZfk0IzaOXjms5ETXOEvA3lTfSdwkuAQSSa7JdhkvTg1pwd8DJr5BTE6Gk/ 0lENm4ZWJLyaVupSsKGEho/7hlO/rpjpjMcSx1Ykeu2lHT4K+QpZ11TLN5tNkw== Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=WxZDhYXS; dmarc=pass (policy=none) header.from=posteo.net; 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: scn1.migadu.com X-Migadu-Spam-Score: -6.17 X-Spam-Score: -6.17 X-Migadu-Queue-Id: C92E217CF1 X-TUID: hz+gu13fZAmm S=C3=A9bastien Miquel writes: > What benefits does that bring over making enabled features available in=20 > =3Dinfo=3D for the usual transcoders and advising them ? We should indeed make the features/condition available via info. However, advising is (1) bad practice unless we have no choice; (2) not as flexible. I will illustrate below. > Your initial example of adding a comment to the end and beginning of the= =20 > document can be done by advising, say, =3Dorg-latex-template=3D and=20 > concatenating some strings with its =3Dcontent=3D argument. What you suggest is indeed an OK alternative for my specific example of adding text to the beginning/end of the document. However, it will be much harder to add something in the middle of the exported contents. Consider that you want to redefine a LaTeX command after certain \usepackage{foo} call in LaTeX preamble, but before another \usepackage{bar} call. Let's assume that the preamble template has the following: (:template . (... (:name 'foo :snippet "\\usepackage{foo}") ... (:name 'bar :snippet "\\usepackage{bar}") ...)) Now, we can simply add the following snippet to the template: (:snippet "" :after 'foo :before 'bar) and the definition will be automatically inserted at the right place in the middle of the LaTeX preamble. --=20 Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at