From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id OKm7NaWW0mJjcQEAbAwnHQ (envelope-from ) for ; Sat, 16 Jul 2022 12:44:53 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id 0BjINaWW0mLHUQAA9RJhRA (envelope-from ) for ; Sat, 16 Jul 2022 12:44:53 +0200 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 9F7A0C532 for ; Sat, 16 Jul 2022 12:44:53 +0200 (CEST) Received: from localhost ([::1]:58360 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oCfI4-0001q1-Mi for larch@yhetil.org; Sat, 16 Jul 2022 06:44:52 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:45214) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oCfHg-0001pr-Ay for emacs-orgmode@gnu.org; Sat, 16 Jul 2022 06:44:28 -0400 Received: from mail-pg1-x533.google.com ([2607:f8b0:4864:20::533]:36359) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oCfHe-0006IP-Ts for emacs-orgmode@gnu.org; Sat, 16 Jul 2022 06:44:28 -0400 Received: by mail-pg1-x533.google.com with SMTP id s206so6532939pgs.3 for ; Sat, 16 Jul 2022 03:44:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version:content-transfer-encoding; bh=WMBYx8+4rthny1WsR+pERpYwmaa4CucqmRQv888+Fuk=; b=FiBeSTsgE105SUyQkwCiobOMC/7qvHfokyzHHziNBrGKvAmj74RhJ8QZ27Z3bqfcPy eOJrrLQpq6WSZyP1A3NtwvEB4zM7SlAiVWxoGSjlvuBhlwZCpaP2VhyQnrGle2fmi93Q XNIV1PtrlFPh07kKZq4B7Ii2ykt9OSD/lAEFGb4ieb3wpujfOvs+qoODTduVc57WphQX RGDQ+3SbQSAqfK7vO3+uKXlFEkTNWJTftLJ7Co4eXtJs75sSVUyz3L5UbT1lea4aNgxR vj6H7/C+auYdrPXTSGShGNDBEwu7yieAiFXGmi7GSkreWnuMmeHX4/SD2qk6oS92RBx1 NqoQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version:content-transfer-encoding; bh=WMBYx8+4rthny1WsR+pERpYwmaa4CucqmRQv888+Fuk=; b=P5JTiI2YsAELkJy5LTYAyRY65aY26qVyzVpe08CCndMcp6Wrrb9r6jcp4fyxPCQ2M3 aPN4YoBwMb0ZbNQNdG0euCBd6STzpMdDlwdYGfkxo1WRRx9nL5o+HrwCk1UPzGZOBjpt rhe2QxH5jV3LsNRena8SrTdyx4vzjMzWgOAXzm3cD04+fUyiZtnO/LjF+YzKb/aAaf2F O3qaPpSG3w5avHDkyyrgzlarUdU6xngBRx+CklEtdaujd0lQbeYfn4Xe2jLsd52DIoqG oVgkfPHY1tOKnSLPJ8MA+ZwWt17glLeGzh33sn8l/b4oa2hN1B80fdctkG4MJF+o23x6 lJBw== X-Gm-Message-State: AJIora+mhCMcLczGCZqoX3WO8XNZlevXpNRzQwpKaCftLRzsUhHZfwzU AEmxQcES/x1nmqSEb4clSWQ= X-Google-Smtp-Source: AGRyM1swXdKzT08a0yf6LROfMrtqnfC5uDcZtGrnnghH8Fm7b3SfIu/U9zBljpALtZJUeG6kGyKCIg== X-Received: by 2002:a05:6a00:b4c:b0:52a:f6e7:818b with SMTP id p12-20020a056a000b4c00b0052af6e7818bmr18456265pfo.26.1657968265492; Sat, 16 Jul 2022 03:44:25 -0700 (PDT) Received: from localhost ([2409:8a70:2bd:4d0:8ec6:81ff:fe70:339d]) by smtp.gmail.com with ESMTPSA id g8-20020a6544c8000000b004148cbdd4e5sm4696206pgs.57.2022.07.16.03.44.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 16 Jul 2022 03:44:25 -0700 (PDT) From: Ihor Radchenko To: Greg Minshall Cc: sebastien.miquel@posteo.eu, emacs-orgmode Subject: Re: [FR] Make :var foo=name-of-src-block assign the source block code instead of currently assigned result of evaluation (was: [PATCH] Add :noweb-prefix and :noweb-trans babel header arguments) In-Reply-To: <1869598.1657966650@apollo2.minshall.org> References: <2dd9630a-c584-0702-62aa-393ad56c621e@posteo.eu> <875ymt8goc.fsf@localhost> <87v8urt8bu.fsf@localhost> <03eb4c66-ecaf-b5f5-c4cc-2195fb6c1a1a@posteo.eu> <87y1yiz3js.fsf@localhost> <7702b511-c289-5688-c64c-fb673324a63a@posteo.eu> <87ilnxe8oz.fsf@localhost> <1869598.1657966650@apollo2.minshall.org> Date: Sat, 16 Jul 2022 18:45:27 +0800 Message-ID: <87k08dxrnc.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2607:f8b0:4864:20::533; envelope-from=yantar92@gmail.com; helo=mail-pg1-x533.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 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_ENVFROM_END_DIGIT=0.25, 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" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1657968293; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=WMBYx8+4rthny1WsR+pERpYwmaa4CucqmRQv888+Fuk=; b=eEgIDuDVwa6mGL2gzygOLIPrmDFsr2qJn9IOykZBnwZLKJzgwJeoXi5+tLXKqR+Cl290lZ 9PAkFsMY5VeArfTBPunkOgPjTeLh7/+Wvhm69l7fYvjOuyX4G7sjv0Ej/tzvvOBk9/GL2K 8szflf+vOV6DXtSKUhgVs8GlCRv4rHweC69FEfF/J0vbgzLpe/hptYDh3UP2jaXgaC3yu3 JzuRzHC1UgBrYY6LPd3ZB8FMAfIkUB+UW1TXTkRleHRpkWECebWuji0botBsyp4+/C5ucd HEGjfzMO7icrYnJnVziXmX17JCjBXF1HudFW1JyfHulBqwYfVQ/HzEj120OuqQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1657968293; a=rsa-sha256; cv=none; b=JtR13PDlG0yEKasV8q83HVNHRfom9tFqg6pI+n+30sU5hS1WjCDVve+oCO7bvHJLeWvvpr vpGkU89+G92lwfznVCiGFrfA9Jj9eF50czwcya1OgeZh1SbVkA/6VhKHxdF7bIizNJJ55J uss2PXFNTHuNM1TbQRPM65RoIp7yA6AiaA0lvE7Y1wX/SqCIlXt8aCFYWcgjTGjR/01ROa Hi7+30nuIzmIofJJi5HemYDQDow3rAzpff6cuEj1iR5Co83K21hfwanmSW5VmumjLcBtsk ktbiilxT1zczPQbWeFr2bDfZYTjo+kdSbHTHncxax0efdjfXCsRtRU78ASQu0Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=FiBeSTsg; dmarc=pass (policy=none) header.from=gmail.com; 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" X-Migadu-Spam-Score: -3.44 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=FiBeSTsg; dmarc=pass (policy=none) header.from=gmail.com; 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" X-Migadu-Queue-Id: 9F7A0C532 X-Spam-Score: -3.44 X-Migadu-Scanner: scn1.migadu.com X-TUID: Te04mOJmw2Xt Greg Minshall writes: >> The current behaviour of :var foo=3Dname-of-src-block is assigning result >> of evaluation. However, this behaviour is actually not documented. >> 16.4 Environment of a Code Block section of the manual only documents >> uses like > > in fact, the text of the info page (on my system?) says >> code block without arguments >> A code block name, as assigned by =E2=80=98NAME=E2=80=99 keyword fr= om the example >> above, optionally followed by parentheses. > > note the "optionally". Hmm. You are right. I missed "optionally". Still, I find this idea as the best solution for people who want to process the source block text during noweb expansion. Alternative ideas are welcome though. I'd prefer to avoid breaking change if we can find an equally simple syntax alternative to assign source block code to a variable. Best, Ihor