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 ms5.migadu.com with LMTPS id gIi8K6MkoGLBlQAAbAwnHQ (envelope-from ) for ; Wed, 08 Jun 2022 06:25:07 +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 2CKTK6MkoGL9MgAAauVa8A (envelope-from ) for ; Wed, 08 Jun 2022 06:25:07 +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 5F651FF4C for ; Wed, 8 Jun 2022 06:25:07 +0200 (CEST) Received: from localhost ([::1]:46476 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nynFg-0002JL-Qf for larch@yhetil.org; Wed, 08 Jun 2022 00:25:04 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:55454) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nynEF-0002JC-Pr for emacs-orgmode@gnu.org; Wed, 08 Jun 2022 00:23:35 -0400 Received: from mail-yw1-x112f.google.com ([2607:f8b0:4864:20::112f]:44572) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nynEE-0002st-2X for emacs-orgmode@gnu.org; Wed, 08 Jun 2022 00:23:35 -0400 Received: by mail-yw1-x112f.google.com with SMTP id 00721157ae682-30ec2aa3b6cso196308737b3.11 for ; Tue, 07 Jun 2022 21:23:33 -0700 (PDT) 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; bh=YdMF0zUwmQEj8v08m4r6VK8jCK+Xsxbdww64lc8slj4=; b=KH1WuEn9snd0RAHZYO01F9qj5STuwl1QT4JiJ6QdQSUDfOg5kKKaeIJ7MFAEw2YES5 qO5Op+6SUjnzCK6voIZse9pZLgvGk8Mm9zG91uVFJbap42JOZJQS/+A4DINhUnFm8LV5 LVG5mVnqAohb4/ojXsHZYKArZp69089co+31YFFgsuVRwMDRIDCtq134oj/lDtj5Tz0t /0NvguiuEtma1DRX6WB+QXtlx2yUvDdy18cODV9D88nnRvlbGPEFIhrCJb8vBy9J6n21 LARMEy7T7TXdaqKx59w7z3sVm3FpU1HOXVJy/6n0MDtLHfRf92yX4vlUKk/HHYqcmAfM G43Q== 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; bh=YdMF0zUwmQEj8v08m4r6VK8jCK+Xsxbdww64lc8slj4=; b=x7IxcN7Rlo/Y2IJBUievcLsmMsxyX2z9pF80mLzyHZlVDtvg45M3CgNxcdn0w4Y3Nh jvT2Drn+ETY5cIudHp1cHUYDVxPr0cVBzfHGeWnV7Y9reeDry85iFqSUr7Xio5ARq+k8 64lIUM1GJCzO+3KiqsyRZpN+OHtHwgaFLuKSQSIaRZjMjQCprzPcEV9XM+aVLmsLNZh9 hp4Dq7R5kthZeKzpHEatbN65CJbKn1kz3Nb+tPGMalUFuy2T3YV+HdJ0gdugN74NtoTk KkJk9E8cQUc13ip/aBWgpFmj3oyHcToVbiAz83KwyHVgxpt8YzE3UThK19+6uJQZxvjk rtRQ== X-Gm-Message-State: AOAM5319WTN2DaxQ6YtC8v8XanXdhNNQFeGaVAqZBFRbVnJThm4WFbx+ BVcpDClPZavfCbrl+VTcSxitVdiX7STvfxZOKWlPVDLG X-Google-Smtp-Source: ABdhPJwgBtnqDvUMR+PumvtFgYQxOS6gUIlEO8abVSFMOI4yUzT2rRFQ3HqVgmmIOHOYcYUJxhnLTHkRexJhlVUQ/vg= X-Received: by 2002:a81:304:0:b0:2fe:e17e:4660 with SMTP id 4-20020a810304000000b002fee17e4660mr36258755ywd.236.1654662212626; Tue, 07 Jun 2022 21:23:32 -0700 (PDT) MIME-Version: 1.0 References: <87ee7c9quk.fsf@localhost> <87k09ycc7n.fsf@localhost> <874k0vud2l.fsf@localhost> In-Reply-To: <874k0vud2l.fsf@localhost> From: Tom Gillespie Date: Tue, 7 Jun 2022 21:23:21 -0700 Message-ID: Subject: Re: [DISCUSSION] Refactoring fontification system To: Ihor Radchenko Cc: Max Nikulin , emacs-orgmode Content-Type: text/plain; charset="UTF-8" Received-SPF: pass client-ip=2607:f8b0:4864:20::112f; envelope-from=tgbugs@gmail.com; helo=mail-yw1-x112f.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, 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" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1654662307; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=YdMF0zUwmQEj8v08m4r6VK8jCK+Xsxbdww64lc8slj4=; b=gh2/+lWXk6K0uicnVlLx048VQMgbY1U2ej6LlKg5bGvModEXsOsgO6d42x7CiE9L89al0u OeiZeZUJhV3YVqpEuWQilKF2jNONGV/Y5zeCwl2/+twFwVBeplc20IPmi+s+wNTRw8xTKy qFCjP1ZJIDIlBxkU9GdEC168RrsTCAa+oeVvinFCty6iZb0MhQvtx3Ukx2f6BS7OUd7K9x 5VvYNMKjGApHJ/qxB4eSzGIHxMdc+NfZ43eS9ZVMBM8F3O9A0wcrRewHXhnarrVzKBmF4O meAu9Rz92lyFT2h+bpJbStvkUuGIWdcxP7Xi4A2Cxi5jLuixiYSQhaXlEl/p/g== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1654662307; a=rsa-sha256; cv=none; b=qot5gecVtd3kSwb9vGQFxiU6tg2bDrpg/C7APmSXxM8T0Vs+vsrFxo16mpBVQArsiMiWKu ttlpLYeXa7cKovh+XogFMey7IvEnVhpzWxaVzwYlDNTNgUyBFuiJsiPZGkNJYfP7M61f3e QDFRZk46ZNV70g/h68ocLf/KuJV42nBMUIdpi+4Ol9c/asXKH8SRBzxt8L9q0bTbsOP/Hu IOZlwhM/9gz+NNjOiTvJB3Jns6Cgec2sUscCExulG3SplD8d96qXiO9Z8iMJpDI4wmcHO6 wxrQgtAnFXtrgbf5w101Tn3juOqd1JA4O19qtEAg9dn2cwDyQxcAg/vtxfykuQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=KH1WuEn9; 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.00 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=KH1WuEn9; 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: 5F651FF4C X-Spam-Score: -4.00 X-Migadu-Scanner: scn0.migadu.com X-TUID: JKSonqpP7fr7 > As for lang parameter support in example blocks, would you mind creating > a separate feature request thread? Extending export blocks export will > require changing in parser syntax and thus should be discussed carefully > in a separate thread. I would strongly caution against allowing an optional #+begin_example lang syntax. It will lead to extreme confusion, even when users know to use org-lint. The reason for this is that example blocks do not have (and frankly should not have) full org-babel support. Babel is already complex enough as is without having to explain to a user that yes they can noweb an example block into a src block, but that they cannot noweb a source block into an example block. One of the most powerful features of src blocks is that they can go from being dumb examples all the way up to fully executable programs. Example blocks cannot do that, and adding features that overlap with code blocks is inviting duplicated effort and will confuse and frustrate users if they have the misfortune to start with an example block an then have to change mid way through to a code block. I also think that adding a parameter #+begin_example :lang bash to example blocks will also lead to confusion because now there are two different ways to specify what lang a block is. To me the answer should be to just use source blocks if you need highlighting, example blocks should not highlight at all in order to make the distinction clear. Best, Tom