From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id sG+rFsBJ1GLdcwEAbAwnHQ (envelope-from ) for ; Sun, 17 Jul 2022 19:41:20 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id 4GxIFcBJ1GJrHwAAG6o9tA (envelope-from ) for ; Sun, 17 Jul 2022 19:41:20 +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 B147BD99B for ; Sun, 17 Jul 2022 19:41:19 +0200 (CEST) Received: from localhost ([::1]:50382 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oD8Gc-0008M2-Em for larch@yhetil.org; Sun, 17 Jul 2022 13:41:18 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:43212) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oD8FP-0008Jw-Tn for emacs-orgmode@gnu.org; Sun, 17 Jul 2022 13:40:03 -0400 Received: from mout02.posteo.de ([185.67.36.66]:54545) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oD8FM-00087v-Vr for emacs-orgmode@gnu.org; Sun, 17 Jul 2022 13:40:03 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 1397B24010A for ; Sun, 17 Jul 2022 19:39:54 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.eu; s=2017; t=1658079595; bh=hRNl3EPfJwtefzeRsDbw5bPSQs6wKrfyWuw28Upm/Js=; h=Date:Subject:To:Cc:From:From; b=apGeNP7SUC92GqQgOE85VHNAW9JIDVDq6hkdhtiuEbS0/ZZvA1jsa7c8IwEWLY7Rs ff1TUrLNlNH2bIv6wT6ACMyXAdKIo07DLOpMojbtC6XUbpUxB+MLhPsvjLImu+3Vl6 QkRotOZkhXbSZj8t2mvUtOfgDU4NS8MoDZ6Y/K6AMu9OWNfJ4N8vfORAMG7zmHUSHZ ta1NKPn5NnIfzzobgjC3qhk+yjN4j5C0xKTr0ugQr4TOWQ7NsWIu/RNaHhMLF6e08j Ge16+tvL1dG+060P/RR3MRF+UTAoH2PHQg59JcxZ6kHFwedx/O6x0i74TzGKCPDZnt mJCKwhwmfztJQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4LmC615zFLz6tmF; Sun, 17 Jul 2022 19:39:53 +0200 (CEST) Message-ID: <635c8e99-ea37-f93a-4eab-e547d2c2ab61@posteo.eu> Date: Sun, 17 Jul 2022 17:39:53 +0000 MIME-Version: 1.0 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) Content-Language: fr To: Ihor Radchenko Cc: emacs-orgmode , Greg Minshall 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> <87k08dxrnc.fsf@localhost> From: =?UTF-8?Q?S=c3=a9bastien_Miquel?= In-Reply-To: <87k08dxrnc.fsf@localhost> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=185.67.36.66; envelope-from=sebastien.miquel@posteo.eu; 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_H2=-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: , Reply-To: sebastien.miquel@posteo.eu 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=1658079680; h=from:from:sender:sender:reply-to: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=alhUBpiffX//IcN2wtKIPX7l1VBSt2v3INWc8utC6IM=; b=Nh2f2sS1Bnt9KnHp1M6KDV/hkfdTZfgeKuIigiiW+Q637zBwVVyC0lVf8yMFCbREcI3Rup IdT1nF6qeFXqYxWodzdJOJSeGe3SZdgDdE+MVBw54Q2EctkN8ZXAixTjBaNYDz+5l0KkcG FkQ3yXz1yOe69n7U29YiPVdeshTOAuibWn3C6IHVtV5ytVxxraLZHs3sJUCPibw2T3J0bA 6gJZziscIAa1yL126zvg82ik5VKFcHtK2tXQ8eTo54XYnqZ9kqOULizKiOLndGKsk8Su+R hdiXOcSbIVUtygmaeDh+75pE4Bp9wdrXAySWblZUOWYiLclTdiR9APmQGgg11g== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1658079680; a=rsa-sha256; cv=none; b=bsM89B3UtO1Q9gm03/IHQMsTS/0kktb92nGqgFJqQT/heHcdTsaSM6atcu8mkmve9pHHBz Rpr3BJwQQ14UbGP03RQ7qX/rHX0DaRJ53Nrmm7SLvZRW0i/KCuRUE+UbvmPJaOvm+LXPaH QJ/yfAyVGl935dDsoz1Kxoz31lcTi/YgNYkWvwX+WgizVKaAZDObXp5Gj7BSMbKepsKNAh Eha4Jr2aGcO9RxYQPv8ymTussHvZs2WNCrgAHzhNo9i2EoKcpa4fsbPiRZ/LxJc4DJBSn5 fCsAgZgyXXoBrCogcHvc54w0dHICiPYSuTv8tWr7gOmgPZzxDSDH2iSkwJQTHw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.eu header.s=2017 header.b=apGeNP7S; dmarc=pass (policy=none) header.from=posteo.eu; 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: -7.43 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.eu header.s=2017 header.b=apGeNP7S; dmarc=pass (policy=none) header.from=posteo.eu; 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: B147BD99B X-Spam-Score: -7.43 X-Migadu-Scanner: scn0.migadu.com X-TUID: NPv04vGpqLje Hi, Ihor Radchenko writes: > 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. The uses are maybe too niche to warrant the breaking change. A syntax extension like : var=block-id[] seems possible, even though brackets are already overloaded. One alternative is to only allow the syntax inside noweb brackets instead of generic variable arguments. I assume there'd be much less breakage. It would also makes sense to allow noweb references instead of block ids. We'd add support for : <> and <> would also insert the contents as a by-product. Do you have any example of use in mind, beyond my original one ? Regards, -- Sébastien Miquel