From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 6KTbGVTiq2GoFAAAgWs5BA (envelope-from ) for ; Sat, 04 Dec 2021 22:49:08 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id kL2XFVTiq2HKeAAA1q6Kng (envelope-from ) for ; Sat, 04 Dec 2021 21:49:08 +0000 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 1C6E4C597 for ; Sat, 4 Dec 2021 22:49:08 +0100 (CET) Received: from localhost ([::1]:53082 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mtcu3-000507-9L for larch@yhetil.org; Sat, 04 Dec 2021 16:49:07 -0500 Received: from eggs.gnu.org ([209.51.188.92]:55746) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mtctH-0004xZ-GF for emacs-orgmode@gnu.org; Sat, 04 Dec 2021 16:48:19 -0500 Received: from [2a00:1450:4864:20::332] (port=52787 helo=mail-wm1-x332.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mtctE-0003PQ-I7 for emacs-orgmode@gnu.org; Sat, 04 Dec 2021 16:48:19 -0500 Received: by mail-wm1-x332.google.com with SMTP id o29so5176166wms.2 for ; Sat, 04 Dec 2021 13:48:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=Pf8ZnKtfeyvb1QqpBNIAYE/L1Roi72kYWZK0YLrzMCo=; b=czCtcAOCd6lQ1+smChy93Iz3i3sE8ciBOIRZlJrBjN0MUdUZNnVf3aW0QgKVVR/auO rwstOc8x0P8wmbqo2kk6i+H/6CmtIwO7vV94YikalPIPmJjlLrwHJIu+6lYa7un4fWnt B7QFbupfHQCQ2fPWal9ZIejSnsDUht9dxfXuJ4L+qK02Ggi5bAAMkrZBJZpiFtw7R7SK tM5rhWSenw1MdSOpv67BiiGizo9Qdz2GFEkPhRiQpaWgYx90BwLW6gxH6+THPXNVHrG8 xuDAIHXrsFakkFv3K1lZd3PqnAd6/8x5D29n5WGF+p4Wj6m5R69rVlhIbGfoCrjjpRD7 LUFQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=Pf8ZnKtfeyvb1QqpBNIAYE/L1Roi72kYWZK0YLrzMCo=; b=Hdzo9WhN1V/3UyhQ7ERHTbwoNOJ1a7452XPfqAjMmYh2kIgtJwHdrjkdjQBIwnXc/t 0dJZrYXxkkjAUCv6Exj9LfUkfa+9l2Yme/R6E8JRtXyWflIiFPliwSM2lbJilvY2JXCS DZ1ZX/dbTw0y2fxDzPXzPeNzRY+hlt6r5fJu114pfWO+zOs9/jG6eNHKKlpAYnbbEr3W oWVOwtP8cBk0YeRzJAsrbnkvfIhzdez1KVom0m2WsenbzKRhkR9vPjd8kZ88vPCNqXGP hyQUHxFTNOw8L5hpTUJ0loci2T5QmqNjPFZ9p1GYU97Qi1FmaQN/2yAOsmc1LHYgSul1 Tw3A== X-Gm-Message-State: AOAM530Vv62iM0F2X9AgxKJ5sm+9K+qfLj7ZuLZ62dSjpZRaZ19uwfB0 wnO4jgb0cFyo/06pDR1otk28SAifG1Vmt8yjFg9aW9wS X-Google-Smtp-Source: ABdhPJyD5lW6gJYyytWPHtvgSL2yURF7iiqFkpotVxARLw7E/6uJQI3CgNIvuN2Iyo5sNQSF3hfaNRNWhOfUY9XSMj4= X-Received: by 2002:a1c:a9c6:: with SMTP id s189mr26077108wme.38.1638654495084; Sat, 04 Dec 2021 13:48:15 -0800 (PST) MIME-Version: 1.0 References: <4897bc60-b74f-ccfd-e13e-9b89a1194fdf@mailbox.org> <87fsrbp673.fsf@gmail.com> <1ef0e093-c165-2a5f-954d-6a33b64c8ee9@mailbox.org> <87r1avgnpi.fsf@localhost> <878rx2bzhw.fsf@nicolasgoaziou.fr> <9525e029-a590-3f48-df64-ffb9176075d9@mailbox.org> <87v904nq6t.fsf@gmail.com> In-Reply-To: <87v904nq6t.fsf@gmail.com> From: Tom Gillespie Date: Sat, 4 Dec 2021 13:48:03 -0800 Message-ID: Subject: Re: Org-syntax: Intra-word markup To: Timothy Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a00:1450:4864:20::332 (failed) Received-SPF: pass client-ip=2a00:1450:4864:20::332; envelope-from=tgbugs@gmail.com; helo=mail-wm1-x332.google.com X-Spam_score_int: -12 X-Spam_score: -1.3 X-Spam_bar: - X-Spam_report: (-1.3 / 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, PDS_HP_HELO_NORDNS=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no 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: , Cc: emacs-orgmode Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" 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=1638654548; 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=Pf8ZnKtfeyvb1QqpBNIAYE/L1Roi72kYWZK0YLrzMCo=; b=KlwweCfKuMPaP+D9ENAQn7XxbitjgTSZU3eDro6wM8PtM9cHRDKh6Vs3oqKIGIBkFoHQMw tLI7nzn6cUxkrS4VF024SEkvibUp4HFxBQwKgxXHxEhbxBBHco0UhSU09MESOGzDAg0Wuw luXTmehlDZziwvhJC/gXaWnJ81BHiRhx1Hjo/WIlYz0xO+B+pdWETXZi+mbJmaQ2BJ+g+P TIsvpokCoEzcmHcap536c6HoS8GgR/dPQ48aHnIDLVXp20EyIv4jy+ket51AdxkwtGj0km 1XX8/MSyw1WKIBG8zts4gUJw0NYxK/6BWcvFjFdGUBwWKFE0mZLWa+WC9UvAUw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1638654548; a=rsa-sha256; cv=none; b=gGIBM2UH8gaud+Glg31CTwQhigxgnCLs+HXSHnRiNxuhoXFecoi2qCfn7wsv6vaMjw2luf f1cEi86My+KjTqcdxsN7O5blkx63w0t8NiscKvUhkZ/AbvW7DqHb+lRCr/bY5XcCQw+2nK f2oILyHx71a0Q1Lstp4861IEjI/g/4o/PxOSdRn1wRuNLa0TvXu6VpqkNG5nW2jEWOdq3z h5GUl/OtPeR+RNHZZVDQKb1Wjb7/DBZHZNNdW0WAEnlDeNmQKSakno96FFG6uAmwrTNwSX bl6O8/zGlMcDbiaRYaH0zgDmf4wGZ0Qw+6azBSm6TmPzL+V/WsdHQr3448yudw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=czCtcAOC; dmarc=pass (policy=none) header.from=gmail.com; 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-Spam-Score: -4.13 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=czCtcAOC; dmarc=pass (policy=none) header.from=gmail.com; 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-Queue-Id: 1C6E4C597 X-Spam-Score: -4.13 X-Migadu-Scanner: scn0.migadu.com X-TUID: eBKmIj0ChnrN > Since org is a valid export backend though, perhaps this behaviour should= be > reserved for @@:=E2=80=A6@@, i.e. no export backend, which I think semant= ically fits > fairly nicely. This ends up being even more convenient than I initially realized. The current spec for export snippets is ambiguous when it says "NAME can contain any alpha-numeric character and hyphens" but the implementation behavior requires that "any" means "at least one" and is implemented using the + regex operator. What this means is that @@:...@@ syntax is not actually used in Org at all at the moment and renders as plain text. I agree that we need to avoid @@org:..@@ because it has legitimate uses. Making a back-end of empty string valid for parse separately syntax thus makes @@ syntax more regular overall, and allows @@:...@@ to be processed separately because it currently never enters the export snippet processing. This is important because export snippets do not seem to be easily accessible to earlier phases of the org-export machinery, i.e. there isn't a nice centralized place to preprocess @@org:...@@ even if we wanted to. On the other hand @@:...@@ isn't processed at all. I could be missing something in the org export code though. It will take a bit of work to get this behavior implemented I think, but it doesn't seem to have any conflicts. Some users may have set the empty backend to expand manually via org-export-snippet-translation-alist, but as long as we give org-export-snippet-translation-alist priority and warn people that setting "" manually will disable the new functionality then there shouldn't be any disruption. The behavior also sort of matches what we would want the empty string to be in this case, which is "all backends" and of course the only markup that makes sense for "all backends" is org itself! Best, Tom