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 gCnnI11c6GWaVAEAe85BDQ:P1 (envelope-from ) for ; Wed, 06 Mar 2024 13:06:53 +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 gCnnI11c6GWaVAEAe85BDQ (envelope-from ) for ; Wed, 06 Mar 2024 13:06:53 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=daLRtFpF; 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=1709726813; 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=DED8ejBb18c4SXO+iILHtaZvA9tfpMZIKp98jSQXAUc=; b=BLGXiuhQGyWtULeMzZ2/jwfYl47anftM5tZ1BoFNDaHoVyFnnh5nex+kqbAdPRUIFyezMK UxbVwKJZbrFgIys4tR+PLbtZVoHu2vKLyKCdicxNOjwBdB2hRYS5bKh8/VzfCM5DQMyhVo dxAEtNnBaM7on2NOFK74CnYNVbO4VtYDS1k3HRA3MaOT4GM4BGuiuLPvRqaedIuF52nntZ 82z7V9KFYPWY8S3+DElkJqHBhq2wXqyXaNifoJWg54DPh6WMf0OLTpq/Nobson53Go5gow zpsYJ6rNawgJpc43366xUa7rO1Gibu140TRjFFxpBqkhpympBTskqPFfMfLtjQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=daLRtFpF; 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-Seal: i=1; s=key1; d=yhetil.org; t=1709726813; a=rsa-sha256; cv=none; b=WrjVpqK9I8JLYtvOfgBdmnfhXFdlDXohZbhpw4o+xXrr5V6LqOiw4apcZx92mTmYYt2ynX JqoBZ8Og963pvFIxxzM+QhuQExSaJTxyhOT/h2l3pb+iT1xDaaZ2LTsycREtmk+nAGG8kg nQgDv7SkcObRV8DyBCBEq5LboVmQsGJ2CUcUa1QJ46CyDAw23YjUYGdoDz+GuVKIioRZjw /IMbFO6EK3K8z4wMOgokRKOELz2UimXQB0BdRaAKooO3J3r8/4g2A3G40yWZCTW6xofqZR ohYqsfh5k6uS/sYjS768C+pDuGNZD03b1M280M21NgNQ285JAGhFWGzqgw+q2w== 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 55E165A790 for ; Wed, 6 Mar 2024 13:06:53 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rhq23-0001GR-Iw; Wed, 06 Mar 2024 07:05:59 -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 1rhq21-0001GI-GK for emacs-orgmode@gnu.org; Wed, 06 Mar 2024 07:05:57 -0500 Received: from mail-qk1-x72b.google.com ([2607:f8b0:4864:20::72b]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rhq20-0007Ny-0g for emacs-orgmode@gnu.org; Wed, 06 Mar 2024 07:05:57 -0500 Received: by mail-qk1-x72b.google.com with SMTP id af79cd13be357-788425bfdb7so12077985a.1 for ; Wed, 06 Mar 2024 04:05:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1709726754; x=1710331554; 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=DED8ejBb18c4SXO+iILHtaZvA9tfpMZIKp98jSQXAUc=; b=daLRtFpFkvEOfVFccry2ed0CMl9yQeLCT8KXkRxjrbrBGkTflG3dC0AwBiAPL8IIju nKJMK2x7lWUizciVxwbBL5Zf4t/IlNqpOi7dNa61C9FgduhF5ZOi824mx9CHWqJbovnI OCTU+YDluEQnH+WZpH8p6NEvAC1+sE7WxIyhqF+mSMy4uUDfMBlLBFzHU8QBzE4fP9TJ 15AtPo5p6vCOEVTBXoVhg4fkLIjxmlLFM/PSsES4z+isJB6QgbInnEagCTkwnObGf5hn xusugwAHrzyCHirc6nFlyQThPGKepSRHxuRMANs2xD2ucrqsFERspxAuYCpn3fR9LZLV 3+6g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709726754; x=1710331554; 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=DED8ejBb18c4SXO+iILHtaZvA9tfpMZIKp98jSQXAUc=; b=pilZecOH2ZD+MRRV51y6Pl+0zQiwAbUmBi96pgsHry0ZmsAF4byn2gy3FQnBoC/PrT ilBF3sDjSjMGxojzLDtF+4pV2dKemlpPB7/BuKHFlVfB/1bA8W84VENQnxmZK3XcPd+f 2msCovEPnHiPwaQEeNOd/C5h4joEC1ntWm1KbF8bDgV8YzCCw53RnwGr4yAwa2hnnx/l hJWMEr4nBFbc2njQc6AXLPEDgluAEMtdNsumcUN/xcnQOW7q2B9QZtkPEVRd6UZ7d6wm 6UiZ6avWgjeoC8DZ70i5c7YYZEkVl+vQibflVVdN50RF+HsVlAHv7IBa32ilZawZsRnf B3Ew== X-Gm-Message-State: AOJu0YwMDpkZVvbaylOEwdmZaBIvbm5ynxtgGMZDGhVDJvF4I4GB7vqR TJcnGhGCC9MWLVHAGDnQdEnWOtFlz0xK5wGv4YGQcfdpi4km50yVp4fUFgRgP+o= X-Google-Smtp-Source: AGHT+IGWT7OuRCQM8h/HT/L4FFWK94TwFYkXSRNPfrAPNjsHM8Mbnjml6Ch17cDPj80tIGpauLe8lQ== X-Received: by 2002:a05:620a:244a:b0:788:22ab:1cc5 with SMTP id h10-20020a05620a244a00b0078822ab1cc5mr8225008qkn.36.1709726754181; Wed, 06 Mar 2024 04:05:54 -0800 (PST) Received: from localhost (024-236-139-114.res.spectrum.com. [24.236.139.114]) by smtp.gmail.com with ESMTPSA id bl37-20020a05620a1aa500b007884164bc2csm321426qkb.135.2024.03.06.04.05.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Mar 2024 04:05:53 -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: <8734t337l1.fsf@localhost> (Ihor Radchenko's message of "Wed, 06 Mar 2024 11:47:38 +0000") References: <878r2v38s7.fsf@localhost> <8734t337l1.fsf@localhost> Date: Wed, 06 Mar 2024 07:05:53 -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::72b; envelope-from=grinn.amy@gmail.com; helo=mail-qk1-x72b.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-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -7.28 X-Spam-Score: -7.28 X-Migadu-Queue-Id: 55E165A790 X-Migadu-Scanner: mx11.migadu.com X-TUID: b64bA3o+UFDt Ihor Radchenko writes: > Amy Grinn writes: > >>>> #+name: firewall >>>> #+begin_src sh :noweb yes :noweb-start <<< :noweb-end >>> >>> >>> May you please explain the use case when changing the default values >>> is useful? >> >> Of course! Changing the default values can be useful to prevent syntax >> highlighting errors in a specific language. In the example I gave, <<< >> and >>> aren't recognized as the beginning of a heredoc in a shell >> script the way <> would be. > > This sounds like XY problem then. > If the real problem you want to solve is fontification, we may instead > adjust Org mode fontification of source blocks to exclude noweb > references. I see a problem with multiple possible solutions, some more involved than others. The org-babel-noweb-wrap-* variables are already customizeable and, in researching a solution to this problem, I have found users who set these variables on a file or directory-local level already. 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. 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.