From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id KPiMAipGoGLQvAAAbAwnHQ (envelope-from ) for ; Wed, 08 Jun 2022 08:48:10 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id yFSVAipGoGIhAwEA9RJhRA (envelope-from ) for ; Wed, 08 Jun 2022 08:48:10 +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 8054DF710 for ; Wed, 8 Jun 2022 08:48:09 +0200 (CEST) Received: from localhost ([::1]:59540 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nypU7-0007jc-TB for larch@yhetil.org; Wed, 08 Jun 2022 02:48:07 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44400) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nypS6-0007hK-Kb for emacs-orgmode@gnu.org; Wed, 08 Jun 2022 02:46:03 -0400 Received: from mail-pl1-x62b.google.com ([2607:f8b0:4864:20::62b]:34707) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nypS4-0006LN-Tc for emacs-orgmode@gnu.org; Wed, 08 Jun 2022 02:46:02 -0400 Received: by mail-pl1-x62b.google.com with SMTP id i15so61926plr.1 for ; Tue, 07 Jun 2022 23:46:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=references:user-agent:from:to:subject:date:in-reply-to:message-id :mime-version; bh=b/nGbItIk7jYPWW7aN/clSFShFxN6Z2byrfOyEJX8TY=; b=eGBRv5tEGqxlqtde1qtinFcamUj6ezkeu97SxdflXiRtwhzDltkz9FikbwfUA7j1aO oI6wj1mpHXOQmJVyqX5XvgpRIY1NF+iOzEu41w+qhp6M6dg/Ie5RHpvDULQKIIhLkLZw foxKZs5VNo/kEJHt3gWcGyWmI7aH/vjMFRWYs5C4HVAsdHhbYpLh3zTtRDNVp2HtqTYd 1vd2n1r2V43djobiQLEOxZWqxmK1QCiy948o5rwfCLrE0x1OKLRluHIogNyMMpk2NwsH l/OGwcoHYbGGe8NwryZ3qXs93lfra+kZoFX3DvleVWYFxssfYmJFbzZga+VvnENLweqf JoNw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:references:user-agent:from:to:subject:date :in-reply-to:message-id:mime-version; bh=b/nGbItIk7jYPWW7aN/clSFShFxN6Z2byrfOyEJX8TY=; b=tEoA1kLu/0d43Xtn9Ta1RGVSV+9Oaabk3rAHvaR813kUZuf4BW0q3m5QnTf2wBQYHv 2MUr1kVXC3AxEhr1Hg0IsMu+/fnmCKZoz07ikMHBHsZyS9YfHpf2/+1dt7JkstlQ1Nvz hFjfRFldfeboUsHnAiGXRwT3nBi6eLUyyyBTkKVqYfAHK1IdviVSqqy8fitlBF7Ao+3X ynlZpV51Pc4Ioheq0cYGmexzBtB39WryNgCAho/DzAyFlJYhao8uh2YkT8w15uZR8f2D zYbDgX6y/sWm6LQiB4L9BmnewP6JzIIFM3zgesfXScuET264O/5SEvfW5fRXmdmpo+4a D0jw== X-Gm-Message-State: AOAM532t+E0yaMJ5PNJwHCIeKn0y+ISZd5hBgJWCJ8wmCUEhyO39tSDg PqWJ8fEh+kcjEaYiFkr5ypSUoyYcrnU= X-Google-Smtp-Source: ABdhPJxT6jMXwWP8x1kimpJKbLvXS1+3xgLpVX3zyfxaWHe/F4lx1ajHaWD7Ef41vvmsB+WPdFawIQ== X-Received: by 2002:a17:90b:1a88:b0:1e8:a0e2:fa15 with SMTP id ng8-20020a17090b1a8800b001e8a0e2fa15mr8127504pjb.83.1654670758932; Tue, 07 Jun 2022 23:45:58 -0700 (PDT) Received: from dingbat (2001-44b8-31f2-bb00-cd2b-640d-0e7c-d2cf.static.ipv6.internode.on.net. [2001:44b8:31f2:bb00:cd2b:640d:e7c:d2cf]) by smtp.gmail.com with ESMTPSA id w16-20020a1709026f1000b001635c9e7f77sm13274835plk.57.2022.06.07.23.45.57 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jun 2022 23:45:58 -0700 (PDT) References: <87ee7c9quk.fsf@localhost> <87k09ycc7n.fsf@localhost> <874k0vud2l.fsf@localhost> User-agent: mu4e 1.7.26; emacs 28.1.50 From: Tim Cross To: emacs-orgmode@gnu.org Subject: Re: [DISCUSSION] Refactoring fontification system Date: Wed, 08 Jun 2022 16:35:38 +1000 In-reply-to: Message-ID: <87mtenzm8k.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::62b; envelope-from=theophilusx@gmail.com; helo=mail-pl1-x62b.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=1654670889; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=b/nGbItIk7jYPWW7aN/clSFShFxN6Z2byrfOyEJX8TY=; b=cpGVkz4rFyK+Q1CExQghhc8WfJjBjLTtaLqANYUE4Xl7AavH70P6NdvcdBdpU/kv5ewiSY 68wXav/wSJziwbWiqY2yNvG6uN4l0cTvgm3cMf94aY4QTx72KUWT3/AEO5IQGDQ/c6XZdd iTnh8FVyi2nQ71Ay8+prewo/DopP+34ijwjTgQgezNbapdP/cKhaAPmToNCQY9Ng0gf2Mw mNlmHfh4DVfy3ho62k4G8yX/fGuajEaRDuxiBbNDubpckABnti/hKVzIOSHjSE0M3PBrhA T9A6HxRUIdn1WefTwcs6oSIMOQg5Hwzmb8x9q4ygD+37d9N8ss0T/SRi9XpxGw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1654670889; a=rsa-sha256; cv=none; b=ozwAvKgYc6QodfKgJFY2wmrRpGIfX2k3vYAnrcK3kEHDm0gVIeiNAD9mxuXp0MjoVsISlE mSCZEzvIPNRkzFo5dgEfjSpdsKowo9egNEHhtqGoEbm+FmhqLlsq1uQBXVA3i5f9nfkCGZ pr0jJKwIBQi4PQFWL/BFHc/0ev5EwH2lXOqBj3I4A39tor7VPpNSbOzOlt1h0s05MWKmPn 83VNfvi1b6qcKMCxnK615xcXiTb2MjxiddDpspQ8S+9d9SPaTd50wHX5IiFRsiEWmmA/hK p/xfFp2x0a0CATIaA40/JJqq0K4a+ONljRepJcO/Nld1v4g4LmICEsrJbFB8YQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=eGBRv5tE; 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: -7.51 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=eGBRv5tE; 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: 8054DF710 X-Spam-Score: -7.51 X-Migadu-Scanner: scn0.migadu.com X-TUID: BXYWKDL8aAy3 Tom Gillespie writes: >> 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. > +1. I hold the same view. I'm happy if example blocks have a highlighting which distinguishes them as a 'block of something' i.e. slightly different background, smaller or different font etc. However, they don't need font-locking style highlighting or highlighting which is determined by a language setting. If you want that level of highlighting, just use a src block, possibly disabling eval when warranted.