From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.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 CLqlLttzBWZPCgAA62LTzQ:P1 (envelope-from ) for ; Thu, 28 Mar 2024 14:42:51 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id CLqlLttzBWZPCgAA62LTzQ (envelope-from ) for ; Thu, 28 Mar 2024 14:42:51 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=outlook.com header.s=selector1 header.b="NH3l/OjT"; 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=outlook.com; arc=pass ("microsoft.com:s=arcselector9901:i=1") ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1711633371; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to: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=LV72A1PQeTfWfPdY7qK6sm8dXfduNcZypV9iBFUnCOw=; b=AcV8PLwlTVL77BCR95q7zUhEkxM4ou8vqXGJTnaFhcvHgctAITJ/6CwBW+kElu/+tQROi+ k6CMVeyJ2mRnpnGfcgrk3f4SEA5VXGnh7VbD2ps8i/Hn43TUzPO5D2g2CQrbwcj2Jffv7/ AVAZTxnwtlQ3Ax3ZZgEX6C/DwHBbBivkG/kGncuQOOVfkpZH2Dm6tp1/+DqX34Yx0MVJCx CungZ31I3zjW5Xc58ZC/aYUFVpvM1wISlv7VjjCn0SMS4eJi9GvyuUZTWucDjVt72BM0iJ 80qwwaB0HWY/tdzoRhTLYnJvIQte2WqB5Uj/uqN093zACluZXhKHkLQkPCr9Rw== ARC-Authentication-Results: i=2; aspmx1.migadu.com; dkim=pass header.d=outlook.com header.s=selector1 header.b="NH3l/OjT"; 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=outlook.com; arc=pass ("microsoft.com:s=arcselector9901:i=1") ARC-Seal: i=2; s=key1; d=yhetil.org; t=1711633371; a=rsa-sha256; cv=pass; b=kwHx8VemyFXReEkxo0Kih2Mv13XhaQrD671AT0CYSG+PGYrUxIlsuwKMHEJqr05x2aSW1d dVPonN7r6YFkr6DJMPVjSGUuzOTfrNU6vbQWiFnOLB4hPXjItiJflyJRZt7Hh800nQUWCj e9zBjIx1biwvakvbnykotNdZ4RO2azmrKSZzDINrEN60T2oQPq0vWviQZxRI5BV877Kp50 oX6kGl3nuBbpAXUPy7jDAw8RTEo0WYVBYwf8leX6Hc8ORAzLdkxqMNhXmwv7PbXVcxodqV avKI9YjdR1ruJANzWGC+vAt+NMLQrY2ZFlXEey4SRJOeu9dz6pdWkZEbe/rcLg== 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 80273384EE for ; Thu, 28 Mar 2024 14:42:51 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rpq1E-0003HZ-HX; Thu, 28 Mar 2024 09:42:12 -0400 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 1rogI6-0006QO-6N for emacs-orgmode@gnu.org; Mon, 25 Mar 2024 05:06:50 -0400 Received: from mail-tycjpn01olkn20800.outbound.protection.outlook.com ([2a01:111:f403:2814::800] helo=JPN01-TYC-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rogI4-0001SU-5d for emacs-orgmode@gnu.org; Mon, 25 Mar 2024 05:06:49 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Jb6y73kTi8d1jtft+IQHo8dIPHhwJS+3dLy4svlrlJvSLwIHRNDMG5pwk5mHwkqzuwIhdjxy8ZS+4ucMWKo5Ie+3VjG7RwEuanXZW62AMauXD8mun2Ulr8sxYxriXbPf9twdQHHcvf3hEF/twqO7hNbQwcGPh/Titw7X6F4S21kJ4l1p77y+LQkQP2ymVsnyiA8LqOuGB2+y7pF+4f6RkeINiBaFh+PPXE/+CSUExu3AL8R4cf6MF8WgaB5jj99I3zZQw1+5/P2iUIA0KLz4i3Zd3OZglfungsy87dQ2sWoLOYLEbBVkKMe+5i35YLTJH2htU7AedszcocHd5PFi5g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=LV72A1PQeTfWfPdY7qK6sm8dXfduNcZypV9iBFUnCOw=; b=i8S8c4yo7v1iBL8HODVnvSFpqbdcyIaYm/rrHTm0jDSRa5/Ar5f+1NVDLqax6UlaMh4ChLBwTbA3EuogMBWo6V7n3Rny7ahdQKS9K3ey0eySnjCG7cic+CpsmtqYwfgi75PHR20++DZg+itIpOCRvPR0Wf2OaWltQm9IL+HHDKQVkJlbZW1kmYRp8DE3gsJZpFQF9UHJkG+1Yo68YuaZxIlef7/oNU5WoKHt7+Hdbzo6BhJfLh/EVS966yl2oDEromva+gJS8Jqc9i7aA+I7+EU62F0i3arXKocfCccWU6q4e/PKpTGHi7+c3mo0wfl+dZn3eciSPicv2a4wRCGneA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=LV72A1PQeTfWfPdY7qK6sm8dXfduNcZypV9iBFUnCOw=; b=NH3l/OjTiSK12YNP4cW1D6TsTrm3i++/NFJZDexb5UR5MSJIwhsEMf3x4bfLgQBeb+JTiPmEfC6YBF3DXsafgocOFtz2KxdTjZZftYSfDV5CEM2v1AoDtobYf1xw/M4sprnrC4ooa3FaGUw/CCz9Rz4xQVQy3HqH0KJ+OD9DHIIiU1+mOJFOjlezHucXXO2M9rJyAEvUMYWKWIoKWGgfNyaR34Wux2NVnyf9K/FH4G5BHDxMLOSFaYPM0SG3tdy6QFmNr9Zeo/ggfGUYBQxVc+4wbbiW9OfPvl+xEisc7ImYM2qoXLvnSzrO+du2L41rwdZYoJtSSkFdllbUi/HCdw== Received: from TYYP286MB2899.JPNP286.PROD.OUTLOOK.COM (2603:1096:400:2f5::6) by OS3P286MB1640.JPNP286.PROD.OUTLOOK.COM (2603:1096:604:161::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7409.30; Mon, 25 Mar 2024 09:01:40 +0000 Received: from TYYP286MB2899.JPNP286.PROD.OUTLOOK.COM ([fe80::bc4e:7fc4:8964:d419]) by TYYP286MB2899.JPNP286.PROD.OUTLOOK.COM ([fe80::bc4e:7fc4:8964:d419%7]) with mapi id 15.20.7409.023; Mon, 25 Mar 2024 09:01:40 +0000 From: "Chen Mingzheng" To: emacs-orgmode@gnu.org Subject: [FR] Add whitespace option for :noweb-prefix In-Reply-To: <87a5mrlnsa.fsf@localhost> (Ihor Radchenko's message of "Thu, 21 Mar 2024 13:25:41 +0000") References: <877chxt7ql.fsf@localhost> <171096963729.7.13315176883660452357.290626130@slmails.com> <87a5mrlnsa.fsf@localhost> Date: Mon, 25 Mar 2024 17:01:36 +0800 Message-ID: Content-Type: text/plain X-TMN: [QxdA6QTiAPxdlKxhPtP5ftdFdHZTJRW1] X-ClientProxiedBy: TYCP301CA0077.JPNP301.PROD.OUTLOOK.COM (2603:1096:405:7b::19) To TYYP286MB2899.JPNP286.PROD.OUTLOOK.COM (2603:1096:400:2f5::6) X-Microsoft-Original-Message-ID: <86a5mmlm6n.fsf@outlook.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYYP286MB2899:EE_|OS3P286MB1640:EE_ X-MS-Office365-Filtering-Correlation-Id: c98a1efb-61e1-4bdf-ff11-08dc4caa2f15 X-MS-Exchange-SLBlob-MailProps: bHQ38DpbEWBguLMTQvmSH2PzJ50JvOmGGz8RRjXt7cNJhReUkh/GtU2pZAzKpjXHaNTVaq2x59x/Ihkgz3TlChIQtVKjyyfZYbyWET4eMMu+SAbHoKXPjvQlilJqPF407+ZOs0+QgAeDxN6SWSWCncecj0mSc8fFq66Lj4El8s7H3XOPQdmSY/p4oAUh5edwOkj+9gtDjb68QMyZuYjRxQlMT0BHfh3ZZc6NkxRP7vz/mXTcyT5/Ad0v9rAGSFskTQR4/Y2mJFSIchcjHhGvu3ia2wbC0m7pfoERwtHc69mKo2kS8bGlJgRQ3/TDoZfBbcuzSmYkTaiq76tnpqi2cL6YwiCRi0oZKbeiELwtmuo0s1BKTRGXvKAw9scsMkWLvLFGKEP2blF9drvGC/Q6jVHczp99LUqyihkJ+d+OJ270+U57KSHyB+JgLi6jcdiXOwKoEMPOa9lyFB3wV6g/AVEUcnIRvCjvkZiMNdm+fSkIK7E5Q2f13MpXQqBexs6ml3lHBBsF4IOW1j42AXkzG+1WN/VjyNDpcuRDLyJppW2cDKXoFmoGHT0CAAP1nIjEq/NZTjxjcLFuKL8jPcASX9qe2v0sPfOqlRPPasu4Ez69goFRWHgaK1eu9wYDdB2JiUuN5eZTAVcObtqkIfzEY/hnlq2/Xvy0UMWviM6atBYJGJrWC9Pgcg== X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: t1OvsfBURCa0A+ZZIyDaQ78GLnBSxnv4aun5C1iy0+8a+h2shuuYJ93QqWdls1bePm04fEMNmYFwjP3kz+Ak66ARhv23dc9uhD05ESHEPqH2WoptLXnHcxL+u3n0XEXcvrb76/ga6fQp1VqhbqifD9xy0FpTBLSF6zWq8wBoCDb3Pry/AqxGDiWwtyEvdmjkEN54lXmgq2jlOthWk9xxvGy2KKCOdLBsWC01ekSfmbABFaTEzzR1U5mBlBdertKSPuM2DrtgvYBEtCsNmCp+Ye32y6X9tB7AzA0s8xtniXGgFt01rpMd875bDfCpqKL0RchfqHizyCehFS6rFSVZkRT5J5XlrscZ6XTKCi0aYvA+tqYFHK/b3+PhGAlJ1qytHVJweO0p2Oe6QBEdsYjF7HiisdZK1Tj651bz+KDkpwjTjzLFKXWIKNM1k0CC2mTDdD94McQcCZb33OR8Uw6wf0srRUqOifTw3rVLeXsPnr2U1qyasYu8rAnrmmc0lTQ16cqMXzJLiUMECj3eBbxLkG1YL2PhSJrfc1cFLZtr4mbwVINTBn6ArOzw8ugjekQL X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?2fZa7wVvNdqqeVfCpkGYDczeD6zK04JbObqEH7cXvv8/TwVZmXKM9+NUW67n?= =?us-ascii?Q?pIQm7Tf7y21YFKlNTfsco+xS4O0y9jk4vOXgIF431PsNHimxSMbQEcQRv+/W?= =?us-ascii?Q?0AY8osnwmsAPBWvxZQPGJItbdLkSHWkum1XP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j+OSR6sQvTshzIIoQJXp5gIyfLSDsIoOj5zpHQ3+1mKloDYD2c?= =?us-ascii?Q?FxQ6X4TjU7Kk1/S8jQEElPACkCRLdXVb3x0Osv/Z0gi60NQ6m63ZHcvliYk+?= =?us-ascii?Q?jVW23Ybd1Gm4jVGUN1aCCs9mBZiklSjPD6p3FJ/oxZKbftC5dhX2ciN47ZJ+?= =?us-ascii?Q?aN13JMyOSbgSMKRmeg0Wv8rjD4jvWl0oMh3ZGu7UHZrtGbT9nvS5s6QkdZEo?= =?us-ascii?Q?Pd3hcKYzvUS81iP+zvzU?= X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: c98a1efb-61e1-4bdf-ff11-08dc4caa2f15 X-MS-Exchange-CrossTenant-AuthSource: TYYP286MB2899.JPNP286.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Mar 2024 09:01:40.3646 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: OS3P286MB1640 Received-SPF: pass client-ip=2a01:111:f403:2814::800; envelope-from=chen.mingzheng@outlook.com; helo=JPN01-TYC-obe.outbound.protection.outlook.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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_FROM=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Thu, 28 Mar 2024 09:42:10 -0400 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-Country: US X-Migadu-Flow: FLOW_IN X-Spam-Score: -5.70 X-Migadu-Queue-Id: 80273384EE X-Migadu-Scanner: mx13.migadu.com X-Migadu-Spam-Score: -5.70 X-TUID: jrb/WwKVguEX Hi For :noweb-prefix of noweb feature, now we have "yes" or "no" option. Can we add a new "whitespace" option so that we can: Giving following fragments, #+begin_src elisp :noweb-ref varable-bindings (a 0) (b 1) #+end_src #+begin_src elisp :noweb-ref do-something `(,a ,b) #+end_src we use the "whitespace" option here #+name: a-fragment #+begin_src elisp :noweb yes :noweb-prefix whitespace (let (<>) <>) #+end_src to produce the follow code: #+begin_src elisp (let ((a 0) (b 1)) `(,a ,b)) #+end_src Here is a try: #+begin_src elisp :exports results :wrap src elisp (org-babel--expand-body (org-babel-lob--src-info "a-fragment")) #+end_src BTW, I'm curious if there's an public API that can output the code expansion of an noweb src block by it's name like above? Best regards, Chen