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 gCWxOivG6WU7MQEAe85BDQ:P1 (envelope-from ) for ; Thu, 07 Mar 2024 14:50:36 +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 gCWxOivG6WU7MQEAe85BDQ (envelope-from ) for ; Thu, 07 Mar 2024 14:50:36 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=Qlp6GPWu; 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=posteo.net ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1709819435; 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=e1/1IUjT0odVG+Si1Ca4kG+kpjuNenuVQqR2kwVrxIU=; b=au0fF9Zo4Xq7MQqoj1UqUrZjA8DEvRPj4haZBsToa0j2B0NWZPNzGwNqMr6yNo1g7IDPj/ v7jK1cytYz8OAblqSfToILhk6QDnROeSU/OaIy8qnsEBI+EXz0iLuHKO2tpA2iWcm7cWXY /5pbqywYfI3gZ50HW9m72lXJslwdOcrUbgmR4DCUBREt5cpoGfZFEG02udmVfoKMj2yD/N FADsWf6qpM17smK0fc88K+Bst8SFJBm7vUXhNRojb8UDA3ZOt6cr46aAfziVm2DeUPplVs GdhGiPbQQZTzlTyAdcE0r2+FPGT78LmXJ5lNaQuy3mzGQtbNyoSKGBhC9fojEQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1709819435; a=rsa-sha256; cv=none; b=foVEXfHH71SiEy6ElpI9So6knHb4+68kySaXAQmOh5GWqkEdASqzNty1gk+BiYQ9pjYS1A L7/NxtvTrl7jKHYNBfhCXp5tZKANudydvBlCwvg4wYfpJygF7ntIC+R0xh/yhi2dS85s8G uwsI0nsPhpyc1bPSt8Prs7/QR6ndZiUTo7jsbXV+J6JekOfIMGp8IAyZOJYBvvX8fhY35B dgmdUC/BceJsAoK3qtjcOpxy9moQVE7SmefAFSTFb2bzjtH/mSXDH51wDrvGU5akF1hBTO urpOc4rzP0+vID1Fn/MIliUSkHLUvbUws+k7Py++lDDg1oksvFcTkxcQVa5mEA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=Qlp6GPWu; 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=posteo.net 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 D0E7C45E97 for ; Thu, 7 Mar 2024 14:50:35 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1riE82-0007j3-4X; Thu, 07 Mar 2024 08:49:46 -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 1riE5G-0005cl-Ov for emacs-orgmode@gnu.org; Thu, 07 Mar 2024 08:46:56 -0500 Received: from mout01.posteo.de ([185.67.36.65]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1riE5F-00082u-0M for emacs-orgmode@gnu.org; Thu, 07 Mar 2024 08:46:54 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 1593424002A for ; Thu, 7 Mar 2024 14:46:51 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1709819211; bh=iKA1YwUNPB3lRVzno/GRaGKjRqKPfL5SAtoqgVGhvsY=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: From; b=Qlp6GPWuz4tQYRZVKk/Lqo2WuiyfJOXTzQC/856s9F0Dzl7sSrpEvzPTLed7GyJwI oucg+IV51mzg/fKBIc46NfZ0zAdtGj5Wyxyl4p7qUqPk/H2HjBpC/UnnidbrokxNNm R502K3yI1fVxS8FL9zgAmzdPnezIOt0RXqq8CpMmrk8Nft15tVbWP9JYt1mq97xnYU 6KhTbvAX75k9WCAX0x9Eek4frZf56O4IqJYxNYV5hujFcOq/yDdORhIhse7QxH5fdw syTMN3fjlc8o+wGnJM/IzS0EIDduG3UIZuV3cjtAJzizMe4H5d4PsHWwwC+cfYeF1p G+ny0FvXExnUA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Tr9Zf331zz6twj; Thu, 7 Mar 2024 14:46:50 +0100 (CET) From: Ihor Radchenko To: Amy Grinn Cc: emacs-orgmode@gnu.org Subject: Re: noweb-start and noweb-end header args In-Reply-To: References: <878r2v38s7.fsf@localhost> <8734t337l1.fsf@localhost> <87wmqf1o3w.fsf@localhost> Date: Thu, 07 Mar 2024 13:50:56 +0000 Message-ID: <87msraxi9r.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.65; envelope-from=yantar92@posteo.net; helo=mout01.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, 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.50 X-Spam-Score: -6.50 X-Migadu-Queue-Id: D0E7C45E97 X-Migadu-Scanner: mx11.migadu.com X-TUID: o8B2lyA9fLhe Amy Grinn writes: >> 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. That's not what I had in mind. I thought of resolving/replacing noweb references before fontifying the code. That way, the major mode for src block will simply not see <> text and will not be confused. >> 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. Sure, but I wanted to hear why such feature is useful in practice. Your example with fontification is not something I consider as a good justification for adding a new feature. You another email provides a better justification though. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at