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 ODPXAzHT6WVQCgEAqHPOHw:P1 (envelope-from ) for ; Thu, 07 Mar 2024 15:46:09 +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 ODPXAzHT6WVQCgEAqHPOHw (envelope-from ) for ; Thu, 07 Mar 2024 15:46:09 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b="SnzGV/C6"; 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=1709822769; 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=emESmigjblKjIRVyK/OmxgL1NPaWX/TVaSmw5sAeLDI=; b=BTwTaSTgqTKVtqIPCdkwpYabRJyAAJQuivNIMvHAI+xyG3H17XOD6gP0yg27S9J4lGb8NX 498An3uLRgDiadCluDHydIxuAbzPyPifqJymgABTk3lxM8EtM7b5RB9R941S9/H+YCgGJd z+q80JnWm/99HppEJdA+fgy5f0FAchjjWN2boDyiFrdGED980kJYEgv71/nl6P8WNKniDf aW0r6EFw8uzSGDc5u+8tKw3XaDPq4o2e+z/qoay91QbyAmbPmu8zFkfRWNzoRaAUUDowUv +9pKO8Mz0QJMqgS4qFdpR8WQx6i6LfSj8p44dLeQIXyQ9gRrdNzUx7Cr3G2WzA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b="SnzGV/C6"; 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=1709822769; a=rsa-sha256; cv=none; b=GJYtNtniAJbp0X7UQMRH9MB9DfOKXmEfB7pUKatfDGxw+gmxFUpu5iJqRY1Q0okFW8mMzW +e0TJoYcSqoQIeQieXcVwYph1rBNJ4+75C+n7UKfclhUjL8maEqlpwNvpmK9HyDh+ilndM PySdaXLr6iuhpxXxSPbirS32yP+BqMTcr7h0Rd/U04f7ceMQt9xeUuoAOGwrLvbG5WdJuN o8/5O8ZWyfV1cHnm0zTiqcNIURBGbzeRIm/t7DxWWtYIkx+REvlt3hFHFIQGY10P6skcD9 WJ8GV+c6hFNjCNEmBqpNt63CkuKN4BUkQYeW9JowuM2kJSceFsF8hgt8dVSD0A== 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 F389866DBF for ; Thu, 7 Mar 2024 15:46:08 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1riEzk-0005iF-K6; Thu, 07 Mar 2024 09:45:16 -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 1riEzh-0005gf-Ud for emacs-orgmode@gnu.org; Thu, 07 Mar 2024 09:45:14 -0500 Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1riEzZ-0007dx-58 for emacs-orgmode@gnu.org; Thu, 07 Mar 2024 09:45:13 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 67660240103 for ; Thu, 7 Mar 2024 15:45:01 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1709822701; bh=OrOQL9FfuVzZrYeD29yfskQowqJzhE7/MN3HGZfOz1s=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: From; b=SnzGV/C6fSwC7IP/nKt/L4B+vZZts/uO4hhJj2r05d0ebIATCF65LU6ZywPXG7ftG VkEim7YqwQBeWchkxKKroo5TCnYapz74b+Xp7kWC3YncEtZ+fuzqBZMUIUjzymCu6M qJ8vX9UMx/1j9Ri0R/d1L9NKxur8NH+29suP0v03Q2LGy6MoxYWPiswYJz0ODv2c5X ocY5HwC3r8XBX1X8Hc+aCnIRmMzlIbhCegMCWbX3c3iL6uQqBo67SCT1zU+IblSrBD GUmveZK2naF4cLHk4xp6Xg8WUXb0+dZZz6V/TmIThRH65dglyCFVKGSGh0/Kq+5hEm vPvClDNhpxj4w== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4TrBsm4P9Jz9rxD; Thu, 7 Mar 2024 15:45:00 +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> <87jzmexhwu.fsf@localhost> Date: Thu, 07 Mar 2024 14:49:06 +0000 Message-ID: <875xxyksgt.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.66; envelope-from=yantar92@posteo.net; helo=mout02.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_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, T_SCC_BODY_TEXT_LINE=-0.01, T_SPF_HELO_TEMPERROR=0.01, T_SPF_TEMPERROR=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: -7.21 X-Spam-Score: -7.21 X-Migadu-Queue-Id: F389866DBF X-Migadu-Scanner: mx13.migadu.com X-TUID: cCsgQp9wl27I Amy Grinn writes: > I kinda disagree with your reasoning but I agree with your conclusion. > I think it would be strange for third party or user configuration to > parse the value of a noweb header argument directly. Org provides a > lublic api for this which should be backwards compatible: > > (org-babel-noweb-p (nth 2 (org-babel-get-src-block-info t)) :tangle) Yeah, but this API is not uniform. Most other header arguments must be retrieved using `assq'. So, it is very common to use `assq' for everything, even if there is a specific API. (Ideally, we need to implement a uniform API to retrieve header argument values) > The middle way is to create just one new header arg: > > :noweb-wrap [end] Maybe should be mandatory. Otherwise, LGTM. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at