From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id mOchDnXM52OdQwAAbAwnHQ (envelope-from ) for ; Sat, 11 Feb 2023 18:12:21 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id 8GxADXXM52N67gAAG6o9tA (envelope-from ) for ; Sat, 11 Feb 2023 18:12:21 +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 EF1C139F0E for ; Sat, 11 Feb 2023 18:12:20 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pQtPX-0003D1-HW; Sat, 11 Feb 2023 12:11:42 -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 1pQtPL-0003AL-08 for emacs-orgmode@gnu.org; Sat, 11 Feb 2023 12:11:27 -0500 Received: from mail-qv1-xf34.google.com ([2607:f8b0:4864:20::f34]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pQtP3-0003y6-Mn for emacs-orgmode@gnu.org; Sat, 11 Feb 2023 12:11:11 -0500 Received: by mail-qv1-xf34.google.com with SMTP id i12so5700561qvs.2 for ; Sat, 11 Feb 2023 09:11:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:in-reply-to:date :subject:to:from:user-agent:references:from:to:cc:subject:date :message-id:reply-to; bh=C6pyOJ7So3cWhD45veKTWe+sSOFE/1PoIuZ7a48s/vo=; b=JP4GXt/MYVEomXdvQL1iwzYY1HVSbzX5ElW39vmb79YYGbh36Heb2yBu4pv15aST0s 3Wd//6kqdgcjMaQAVcpq8CpnM7IuD3xKg89ruM3Kq+pcepjgnUroQdoyhNcWnwe+nT3m ZGqkzVgxja78qGsE7pOH5zHbXm/lWnQcxw0lM8gG0gW/JPRGxkfJ9TeJOARFTf13mw4i 8KIRyQqIGQLH1Mh3nin0bOqp5VMM5icQnK6QCRfZNGgSapdoxsNI8hIf1sJoyHqo9MSU X9FVWHKTXRUsDubms+G1Ulrn0PbbOMelMp9dyDN4Q5jDNno6lR8p48/PwHifb4d+Ns0B vDKA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:in-reply-to:date :subject:to:from:user-agent:references:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=C6pyOJ7So3cWhD45veKTWe+sSOFE/1PoIuZ7a48s/vo=; b=dRDtKt8mVhW1N20j4lt+OH9qwe5bdJiRAbeG0lfbvrTVXLpTPdP43074DDeS+Xk8PI 9+M+ux3/8UBGX6FHNiMuGrVKrkr0eCQ4LdhwK/h3VtKQ+q5/SCjYo9yRT7Dqh2zagmqO uTLhMl3oPobUF7crv6xfN0hm0+YuFWbHCcOcf0EM1fvv1aWv9czw+9pa9icVKxs6JZKY 0btUwvOZhKsrOyAgw9HTVMDoUCIDk9Bbmh/MbB03IUJR0twva+c1jXISlf398AzQuiaB B4S1h46YOvb06MfLVopar/c4k2/tLaesllF8ebRLjaP3SlHJKJ2S8IzOJurykMsVXUnG +2qw== X-Gm-Message-State: AO0yUKW+TVePdcfA4mGMA/jUZwUVBt3urET9o+vvqhcUySAf7E4Dp19W XpRTVrRRFY8aSbxBSQ98Y0K/rqhx2F8= X-Google-Smtp-Source: AK7set+7MuM/fq6tsOcpnRPxKiNxWEoFz7ub/DSF8sHdCTZbkFPyLJ+8fFGVFh9amegsQl6wc+vNNg== X-Received: by 2002:ad4:5ba1:0:b0:56b:eceb:2d9d with SMTP id 1-20020ad45ba1000000b0056beceb2d9dmr31526326qvq.36.1676135467828; Sat, 11 Feb 2023 09:11:07 -0800 (PST) Received: from nbook ([2601:84:8481:7922:73aa:68b9:6adc:cd5]) by smtp.gmail.com with ESMTPSA id i65-20020a37b844000000b0071f40a59fe5sm5942009qkf.127.2023.02.11.09.11.07 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 11 Feb 2023 09:11:07 -0800 (PST) References: User-agent: mu4e 1.9.19; emacs 30.0.50 From: No Wayman To: emacs-orgmode@gnu.org Subject: Re: [PATCH] Introduce "export features" Date: Sat, 11 Feb 2023 12:03:21 -0500 In-reply-to: Message-ID: <87lel4gm6b.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2607:f8b0:4864:20::f34; envelope-from=iarchivedmywholelife@gmail.com; helo=mail-qv1-xf34.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, 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-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1676135541; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to: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=C6pyOJ7So3cWhD45veKTWe+sSOFE/1PoIuZ7a48s/vo=; b=iZr0jfB3DGtDMYcJEXmepQCNCWJzpP7hM9lRwSS8saNg6rGWeIRBNfOULBFyXhV+Wc2Yns jQoMAgkojE7tPSx1lI3+QHTy6sIXsUcTfyd60AEvwoxEfUouwQmmec3LQMJFpDdZPZFbWi AlJYGVwzRxiSRyIBdK/gHvFrghAacvQJn8NjTpEap5fE0veYZgA4MdKszsyjeDllaVgGl9 eyDmNC/rEnKNen4hLyAQV2tuSschlAI/ohW3LVVtlW14niBVz+VBs1NYdtccE1U5DAMath z2w6lWCUDyChY/MW3tncoSJqSeyxBqhibHI7GcbqHtR5z/1udreiTUB5BGhFqw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b="JP4GXt/M"; 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=gmail.com ARC-Seal: i=1; s=key1; d=yhetil.org; t=1676135541; a=rsa-sha256; cv=none; b=IMBYmHmvd+CNXvxxXvuxYkpfzEGoOeRk9TBAu/+z4Di/axWOejsm5NIe4cC7wZAqI/Gye0 hAbvwq50Hm7XQYCISTIeMxDNPSHXFfNgTtzJTtuQvFheia6QQNgrFl5k7ww6kU1rkrABRB ipgFUBYDQq9Kgd+XmGg48TBCaFKb2vRPC5MIJmre9oSuI5pHq82aEsEBjdysrJluCZ2kWh R54qK1kWJHOpgVcqiUssUaMjm34SkzQlGPIOEZz8UOI+bYi9/tPAto26FuR+e85BDn7eGl XO98/ptTt7xlLr3L2er/EIV9/BIOXr/mDDk84NNuBOnQxCZ7vZN43Uj98QcUBw== X-Migadu-Queue-Id: EF1C139F0E X-Migadu-Scanner: scn1.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b="JP4GXt/M"; 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=gmail.com X-Migadu-Spam-Score: -6.31 X-Spam-Score: -6.31 X-TUID: uAeric8qXeeC > often we include content in export templates that is only=20 > relevant in > particular situations. > > =E2=80=9Cexport features=E2=80=9D allow for the specification of qualitie= s of=20 > the org buffer > being exported that imply certain =E2=80=9Cfeatures=E2=80=9D, and how tho= se=20 > features may be > implemented in a particular export. > now `\usepackage{svg}' is automatically added when exporting a=20 > buffer that > includes SVG images. =20 > =E2=94=8C=E2=94=80=E2=94=80=E2=94=80=E2=94=80 > =E2=94=82 (org-export-update-features 'beamer > =E2=94=82 (beamer-metropolis > =E2=94=82 :condition (string-match-p \"metropolis$\" (plist-get info=20 > :beamer-theme)) > =E2=94=82 :snippet my-org-beamer-metropolis-tweaks > =E2=94=82 :order 3)) > =E2=94=94=E2=94=80=E2=94=80=E2=94=80=E2=94=80 As discussed on the Doom Emacs Discord, I strongly suggest=20 renaming to avoid overloading the term "feature". To me, your description indicates sinppets are inserted=20 contextually. Org has a similar notion of contexts with=20 `org-capture-templates-contexts'. A similar name would be better as it does not overload the term=20 "feature", which already has a different meaning in elisp. e.g. org-export-backend-contexts