From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id +HJYGWyU6GVusgAAe85BDQ:P1 (envelope-from ) for ; Wed, 06 Mar 2024 17:06:04 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id +HJYGWyU6GVusgAAe85BDQ (envelope-from ) for ; Wed, 06 Mar 2024 17:06:04 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=jN4PllVX; 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-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1709741164; 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=Tvp9T96/zvlQVerv6Xe0nVju3hFL/HKsdGu0Oti9nTY=; b=W3+MN6YyHjhkaGRXRhn7gu3lfslPGrpeR6us0R0jpuBzZOMSAHD8LEWrIimMq2jCUHIGkk lAm8Tnp6CKQbZGdL1o5UmD0U8WPrmp4/ykPSHWwO0Zfp3nTdtYTJD1yYYLqh+8qwEVIpDV G4CJs10EM2WrENx58wZT4p8HiYolp6I5KnD8ITiGAkGLBz1I0AkwdZ6ImSg2JESGAvkqFK R+zBts3E887RArLyiPMD6Ufr6oyQ/T3HaGxGVhDNAKYOIK16LzHudlCKzysXtOiBhU1qd4 ZEoNsXfkjK/VScs9w5Bx3vvcmweR5OAnxJrJllI+MsgMafiLkN132JzvgjKScg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1709741164; a=rsa-sha256; cv=none; b=YwcDhRRGzlkbtjnxLd1z4ZBCokG9L5FZ+km/tIIH6Pn7nXEuyAU31BQvJr2IHshK3TSmKe 7Uf1jonC4R4X3XVv5gDcuu4B2qDyMQh7Vgtt1K7dK06Os0Vc0vhQ10YPUcZ1WtAq6l9WLx BlVO5+sZSSP4JIIsp88j9X4Sy72tI9TbYLigKsygoFOWbJD8+My2nUKiQiO0Ij+huhQCm4 MekXKsKMPB9f4/YsCW+Lc8ZLLQU9DyR6+56hw0Lbofke3fK0eSoIwjv1YwK8jzW0AXXeII 4Wgq+4h8KfaplsbUlzBeIiGRUPf4q/L2Q5wA3xwhC+TPPzW7Y0VTWyZh7e1jKg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=jN4PllVX; 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 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 066994356D for ; Wed, 6 Mar 2024 17:06:04 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rhtlP-000473-LA; Wed, 06 Mar 2024 11:05:03 -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 1rhtlI-00046T-RR for emacs-orgmode@gnu.org; Wed, 06 Mar 2024 11:04:56 -0500 Received: from mail-qv1-xf2a.google.com ([2607:f8b0:4864:20::f2a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rhtlE-00040l-Vz for emacs-orgmode@gnu.org; Wed, 06 Mar 2024 11:04:55 -0500 Received: by mail-qv1-xf2a.google.com with SMTP id 6a1803df08f44-68ffddd89d1so27516536d6.0 for ; Wed, 06 Mar 2024 08:04:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1709741091; x=1710345891; darn=gnu.org; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=Tvp9T96/zvlQVerv6Xe0nVju3hFL/HKsdGu0Oti9nTY=; b=jN4PllVXBPcXMNMa03lKJGM4kB4+VpeVBIwq4PRVWQgNRir4SgDujYzADsn4gV+FJ7 pY6SPZYthV8jewGX5uaVFpdBIDXDMLlo+silwQ9rhUpvqRSQCHl/8K1d5j+8FwDVyprt +PalPYUE6PLes0N9KmVLe08V+wjXsk6pgbzmrGL/Y9q2wRWDqJ41x+aTcKEpzHafHgZY xYcDK6s8nlfKWadBb3vD8xH+Gz8I4DIUpR68fPWWeAicigskPzIaUKABHkrAhtJF+yhW hqMGf/YfQ+IOe/YPZ9PY6118ooaSgubkqIPvSCpXQ6nyhX+srm9qORkMPcAlUzPux3UA kldA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709741091; x=1710345891; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=Tvp9T96/zvlQVerv6Xe0nVju3hFL/HKsdGu0Oti9nTY=; b=wTn2o1SQSHdcmWKnTxgLAAw+XfeXZvB36FrgS3lFV/D6HFBKfxaXjBGySPPNpcXSAz ZhZ7C6aknLOSXxVIWD0A0TnsRTp2qY0dYffpo0abGnX2TPccQ5G9Br4Rim13PYC22mA+ tOZU9ebnMfYc7IRD3/sefo1q4CRHOTJn2kegESmsd0YEVkL1HbZzFEO3mWXfXtRCG6zJ k+S+yVVAoQAq+zE6XrWGHiww5pZxc9Bvxq1cXFfNGsJZs9INMp5QUnpSRQM4RtiPYVUC GoKzPayPxZ9pmHKDvIeGK1sL6F/hNJ0KIFGAtnpHJgGJlZwcgNwykWAAX13r646JflJS xGDA== X-Gm-Message-State: AOJu0Yxi43TR3C6uEfoQ0Nhd+nXV5GP3FgHmHwxlwlGTj+ez97IwRUdJ 3ZKZCWmsI346xQFLm4kSL68SOQkL2VfHKOPiCk2Sx7RyAZIuTfzzD0ya0hY4KPQ= X-Google-Smtp-Source: AGHT+IFVJOzC2CPw5qDwNcbc8ftMtiqEJHeuoew3csdQ3XrB1E1XGLL1HE7oabWP8c6X9/t9nRX8Vg== X-Received: by 2002:a0c:e088:0:b0:690:7a87:1840 with SMTP id l8-20020a0ce088000000b006907a871840mr5331686qvk.20.1709741090436; Wed, 06 Mar 2024 08:04:50 -0800 (PST) Received: from localhost (024-236-139-114.res.spectrum.com. [24.236.139.114]) by smtp.gmail.com with ESMTPSA id lx6-20020a0562145f0600b0068f752195b5sm7569621qvb.86.2024.03.06.08.04.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Mar 2024 08:04:50 -0800 (PST) From: Amy Grinn To: Ihor Radchenko Cc: emacs-orgmode@gnu.org Subject: Re: noweb-start and noweb-end header args In-Reply-To: <87wmqf1o3w.fsf@localhost> (Ihor Radchenko's message of "Wed, 06 Mar 2024 13:33:39 +0000") References: <878r2v38s7.fsf@localhost> <8734t337l1.fsf@localhost> <87wmqf1o3w.fsf@localhost> Date: Wed, 06 Mar 2024 11:04:48 -0500 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::f2a; envelope-from=grinn.amy@gmail.com; helo=mail-qv1-xf2a.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-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -6.89 X-Spam-Score: -6.89 X-Migadu-Queue-Id: 066994356D X-Migadu-Scanner: mx11.migadu.com X-TUID: udJ462FkZk+7 Ihor Radchenko writes: > Amy Grinn writes: > >> How much does org mode modify the fontification for an indirect buffer? >> Without having looked into it, I assume not much or at all. >> ... I think >> that approach could be more complex, especially when dealing with a >> theoretically infinite number of major modes. > > Org mode does not _currently_ modify the code. But that's actually wrong > - things like escaped ,* or indentation sometimes also stay on the way > and produce incorrect fontification. So, rewriting the fontification of > src blocks to cleanup the code before fontification is long due. > noweb references is just another manifestation of this problem. I think we're talking past each other a little. I'm not talking about changing the text content of a src block, I'm talking about modifying the syntax table of a major mode such as sh-mode to ignore or handle <> syntax in an "edit-special" buffer. That was my interpretation of your suggestion of using fontification to solve this issue. And if that's the case, I foresee a lot of edge cases for modifying the display of major modes. >> Both solutions could be implemented at the same time. We could build on >> the existing functionality of the wrap-end and wrap-start variables >> while also looking at ways to modify the syntax highlighting without >> user intervention. > > I am not in favor of adding features that aim to serve as workarounds to > Org mode. This discussion is not about whether to allow users to modify noweb syntax. That feature is already a part of Org, well documented, and utilized. The feature request I'm making is to allow that modification to be done on a per-block level.