From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id CPpNLb7H6WWH0gAAqHPOHw:P1 (envelope-from ) for ; Thu, 07 Mar 2024 14:57:18 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id CPpNLb7H6WWH0gAAqHPOHw (envelope-from ) for ; Thu, 07 Mar 2024 14:57:18 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=KzNHJE9p; 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=1709819838; 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=v3xfhyQHNq1YrvWutFNBiedS8Ez9ONatYAJh97ce6l4=; b=gqhWx6MxR60PORgYgOwulsO50J+j3oSzoCfmHkzmI8ngTtq/z4dDwSEvMaluNeAnIZj6HL CQkzCQurKjb/LNiaEaocSKu+6FlZfkG7WgaS7MF+vY0jtaVc0YF0qvMb5wgiGUmQFdZUDf pKVuYVC8/eLz03jGr+aCivXkUL8Rptutx6n8YgmVC/gF3AZoN+/pVeInmoXKXQ5QSwqgyR s0br31W8GG3pTEtLB0gp6NSvg7cn5J7K+9yFKko1mUEK+DJwiFwT2stY8rtfPdJyc5Amrv BduPlrqa4Ou3mD+aaQ9RRhsnwFmOY1FcLTKh85b3mUVEuOYUZqD3TSc0R+sxtg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=KzNHJE9p; 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-Seal: i=1; s=key1; d=yhetil.org; t=1709819838; a=rsa-sha256; cv=none; b=tDV8fn7ouC2cJt9bDOMa7Mm3ZoQf4VojopGoSvuU4aR1hLoxsy5ehQKJafLOoHI5FOgeXQ GObkHjVnhu27kzVK5pIOambjM0YftqvlKo855cHKaN89fgwgIZxIgi96dy773yOcJPKedB wh7uU7dVuYeaJMo/sjpC77qTqy9AjJ7ZAthtQyZsrtYKToEqxcmffjOLtDn9XCAPRLY73+ 8pcQsZxy1oQUG/QhbASmfjAtQY+4+iPmCcuOp6y/z/qZjT8Zy/0HyapdNh2zEQ4ja5KLcy khY20sOhYVvscJZdt3S0tAy1gkIeUmJe975CsVM/NW5C+YUw11PfjHp8MBy1wg== 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 9C41355C5C for ; Thu, 7 Mar 2024 14:57:18 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1riEE1-0000Ur-8u; Thu, 07 Mar 2024 08:55:57 -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 1riECv-0007Ra-2h for emacs-orgmode@gnu.org; Thu, 07 Mar 2024 08:54:59 -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 1riECl-000524-AO for emacs-orgmode@gnu.org; Thu, 07 Mar 2024 08:54:48 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 379BB240028 for ; Thu, 7 Mar 2024 14:54:36 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1709819676; bh=I7qYrhRLHSrYXdh5lTEYC4KppXBC58x5jHCyt1rPPdk=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: From; b=KzNHJE9p86+yAhZPvpzFdgD5sZUdGMkf5Nzi4GEutNh6Udi0L6uR9Xrc11noEpA4O qGqa3qJrP3gI/o57BeD1eHUtg84dyp2iggyKJKq2n3p5YpdZUE3BnkS1b4qmPDZz86 GLm2P70VxBR+OVH+ZDCa1xG2LPFvTT2CiC0x6VYDICE9XtS6m5u9EuzCHlIOXlCGL4 npJBf29p2F7143hoMEqsVw0vmDcJB9TAGQD8z3SVvUDDAw0Qgcug9CMJ9HK0sdfoW0 TWu9kLqTqLkdyv/uVJWCdMZ0KWuyW4Ee7Ys9zkMl45/cYojqkug3XG8OyYsnRn/tft Hd5BYRaH3tDMQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Tr9lb2zy3z9rxB; Thu, 7 Mar 2024 14:54:35 +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> Date: Thu, 07 Mar 2024 13:58:41 +0000 Message-ID: <87jzmexhwu.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.55 X-Spam-Score: -6.55 X-Migadu-Queue-Id: 9C41355C5C X-Migadu-Scanner: mx13.migadu.com X-TUID: oQP/YUjDwZuT Amy Grinn writes: > To expand on this, some major modes can fundamentally conflict with the > default noweb syntax. Here is a valid shell script *and* a valid noweb > reference to a block named EOF: > > cat <> file.txt > Hello > EOF > > I hope this helps explain why the wrap-start and wrap-end options were > necessary to include more than a decade ago. In terms of actually using > them, it's a bit cumbersome, especially in Org mode buffers that use > multiple languages. This makes sense. I agree that setting noweb reference syntax per-language is useful in some cases. > The second diff I sent (under the termux handle, accidentally) is my > preferred solution (:noweb yes <<< >>>). This would avoid the need for > new header arguments to be introduced while maintaining backwards > compatibility. It also feels natural to specify the two options > together: I can't think of a good reason to only need to specify the > wrap-end option. :noweb yes <<< >>> is actually backwards-incompatible. Consider third-party code that makes assumptions about possible values of :noweb header argument. If third-party code does a check like (equal noweb-value "yes"), the new syntax can break such code. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at