From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.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 CIeNKcrdDmNwgAEAbAwnHQ (envelope-from ) for ; Wed, 31 Aug 2022 06:04:26 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id 6GNxKcrdDmMy5gAAauVa8A (envelope-from ) for ; Wed, 31 Aug 2022 06:04:26 +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 5AD141B83E for ; Wed, 31 Aug 2022 06:04:26 +0200 (CEST) Received: from localhost ([::1]:49816 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oTExl-0003sI-0A for larch@yhetil.org; Wed, 31 Aug 2022 00:04:25 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36926) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oTExC-0003s6-O5 for emacs-orgmode@gnu.org; Wed, 31 Aug 2022 00:03:51 -0400 Received: from mail-pj1-x1034.google.com ([2607:f8b0:4864:20::1034]:37405) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oTExA-0001x5-Rj for emacs-orgmode@gnu.org; Wed, 31 Aug 2022 00:03:50 -0400 Received: by mail-pj1-x1034.google.com with SMTP id i5-20020a17090a2a0500b001fd8708ffdfso10716841pjd.2 for ; Tue, 30 Aug 2022 21:03:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:from:to:cc; bh=y0XS1z2IfhoL1W0Sj2iXdH2/E5WsU/rZYfvRCofRmro=; b=NwJFbjW4Gd3qHNlPnVoQwi3pJlCYkcGRvu5dyuLh7TgizY2I/NVSbfHUxzWVV7xsEd tUbL09J592fskQ5oZC88k5oHYHg/nDZM4dP5pJR292ZTZtc6XpOTO3JsJgd/VRTahx7g 8Lf+DnHPtoOMq87epWy8G/N2WQrJA/0eJFDcuE8KhT84VUwfCZvUizilyZu8DQZZS3dt S/DZdykrvR6bROkmlsAHOsN3ee0+ZbphhRAHRMjWiW6bggC9jB4WDCxL7z7Lhvdiafhx MftGubf/kGa91BC3XlbdTtfy2UF54/9nWz6jmfhmuaRbOFjA1AjbOINrWPkzY65NezFn 9ubA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:x-gm-message-state:from:to:cc; bh=y0XS1z2IfhoL1W0Sj2iXdH2/E5WsU/rZYfvRCofRmro=; b=2s7nEf0IsmkIUj/FKFl6ChjYxqlaEhFOAhXE/dKeEOPDHjZ/uwUQCEcB6Q6D3LiXau cZe7CSg7nFna2y67Nt0anJx4OWKrfHKKsx8w0RnExoB2xaiaovjPGeGSORV/pFynPiNZ xBpI0vZwSQJNqFgQ0VCcagXWg1fAy2GeLJZ39GVoCXSYL/v1LT0oakyycvusNfdkBJw/ S6B12TLTukt/TZzCefE20QTrMhiqny2fdh91vgpVM1OJxqhv580YqfVok7qShhD12RQs BOR7lAy6QwfkW0ud0yQqC5gR4ukWZEYrhrtuUnmc+ly4y7iW7GoTrHGNxPG6lAaGVf09 E28Q== X-Gm-Message-State: ACgBeo0gkF/0pjMZEiDm1yxn8jFJz4Rp7SP/tlfZnW4Ina9FfBKcTw2j W45KsczCPkxmng1ECOaBwJ5+eG/cOBMN25Xz X-Google-Smtp-Source: AA6agR6CUAYoePKrrY8onVThnMKAtQ21xsc97ydY6lj5nrxOAW8qKMGRZ5sro+AqbFD/+WlPU7xsKA== X-Received: by 2002:a17:902:f604:b0:172:ffa5:2ed9 with SMTP id n4-20020a170902f60400b00172ffa52ed9mr24355276plg.7.1661918626873; Tue, 30 Aug 2022 21:03:46 -0700 (PDT) Received: from localhost ([115.154.175.57]) by smtp.gmail.com with ESMTPSA id e11-20020a170902784b00b00173164792aasm10571604pln.127.2022.08.30.21.03.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Aug 2022 21:03:46 -0700 (PDT) From: Ihor Radchenko To: sebastien.miquel@posteo.eu Cc: emacs-orgmode Subject: Re: [PATCH] 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: <884a86ae-8637-a9c8-326d-a0725e5ac142@posteo.eu> 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> <635c8e99-ea37-f93a-4eab-e547d2c2ab61@posteo.eu> <87sfmsv3b7.fsf@localhost> <884a86ae-8637-a9c8-326d-a0725e5ac142@posteo.eu> Date: Wed, 31 Aug 2022 12:04:49 +0800 Message-ID: <87y1v5njmm.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::1034; envelope-from=yantar92@gmail.com; helo=mail-pj1-x1034.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=1661918666; 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=y0XS1z2IfhoL1W0Sj2iXdH2/E5WsU/rZYfvRCofRmro=; b=ryIrr54KzkLV52VbDVY/ae+Rg0L8wK3Z8OLxikLtFyAxuDjYpR7Fhs6IIC4j3CacO4EnjL dCAfgaieO7aLuzKDMyoukPBYP1t1ezGSCWh4/D0huQWrHnhSjuUyzK+comVSgVo5yLNvDO H5xMRvBpp3VUu2v8p6zAIhN5IP4JDvq688Q7JZfwQz+V497zfS8GWrOz22mDyp5bNQAJ/U n7fZDSHn7NCGa0u61K5s8IBOy3E5DLLSYgRr5vdysERs9cg07ZeLsdJ/LwD9+cjNz92xRY OEon9XGLc7ri0eGRtQHYR9B/ZzwQ1T3WcP6GbWfFxo87+S/TqNlD0xj7yFFyNg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1661918666; a=rsa-sha256; cv=none; b=QsyL7NfohGyOeANP7oKRoO6U0QeUjJgzuuUM3iag+INU+oMd5q10ixAagiFPWijSajAb9U 26h5/0BPczNH/95NCRuFF+aL0SrmvWhuXjDxMhpfmipguxQJukAZV5vAjbsXoIwN3kwh8m x3rBN7YiZB77pNHi8fKCfGTHPRmBEN+ALo3gyMrqKBdXix3lEkNFCMSXTFhQCeJ+2Sh0EK V8hjlAFHFMxyxq62hvx1Tevr7LC+OQVUVusj5sI9iAM+/9I0uOosryXnhlqYpBtMt2Z1/b TNFTFugUkSKEbvv3e7H+7eqmRb9Gi0NBo38+oVhM7dIMmZrcsUUN0nuAoxaATw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=NwJFbjW4; 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: -1.79 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=NwJFbjW4; 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: 5AD141B83E X-Spam-Score: -1.79 X-Migadu-Scanner: scn1.migadu.com X-TUID: l/0arPIrTRw5 S=C3=A9bastien Miquel writes: > I've implemented this proposal in the patch attached. > > Does it look good to you ? Thanks! The patch looks mostly fine. Applied onto main via 72f66ca0b. https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=3D72f66ca0b= 9d336e0da61b17cbe8ce183eef364dd A small side effect of the patch is that name[] will also work for lists: #+name: test - one - two - three #+begin_src emacs-lisp :var x=3Dtest[] (message "%S" x) #+end_src #+RESULTS: : (("one") ("two") ("three")) which is not intentional, but does not break anything and also somewhat logical. #+begin_src emacs-lisp :var x=3Dtest[1:2] (message "%S" x) #+end_src #+RESULTS: : (("two") ("three")) worked in the past anyway, despite not being documented. --=20 Ihor Radchenko, Org mode contributor, Learn more about Org mode at https://orgmode.org/. Support Org development at https://liberapay.com/org-mode, or support my work at https://liberapay.com/yantar92