From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms1.migadu.com with LMTPS id 4BT4CLJMDWa47gAAqHPOHw:P1 (envelope-from ) for ; Wed, 03 Apr 2024 14:33:54 +0200 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id 4BT4CLJMDWa47gAAqHPOHw (envelope-from ) for ; Wed, 03 Apr 2024 14:33:54 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=ucl.ac.uk header.s=selector1 header.b="IrKdHpk/"; 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=ucl.ac.uk; 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=1712147634; 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=r6Fhc3AuKgAuhSNkLTkuq0dNRzMfV3J7/n3QsWUtRSI=; b=hp75Y6klv6o2rYwUkM5XJcEaQMMqcsegjUgvFwEwyKh4bn1KV9Od/89rS8FxZ+gff3/zrM KEgVoYdl2aFMdEacLcXWLiT4hR7QmZj+R/K7Xno2pGlPhm3UBpq4ip/oDlmJE46ZOf8bA0 0sJAzM+I0ynAATGT/158zD+knlbhMIdtML56TIE7BQG8D8pePSMWbfEe16WwQSNhLg7eVu 0xeoW2IkoxDiZ607LxuAlzd+sTed/0h1L2vY0UPTgJ2eO6Y2yXmpZ1doO05Wo/qmKHmdxJ nodVnLUmD7yv7lIPGjt4vGYNvOIrt3j/U/QQ66fYtjrcha8CPF0K6UPwNf9q0g== ARC-Seal: i=2; s=key1; d=yhetil.org; t=1712147634; a=rsa-sha256; cv=pass; b=VwcL2UiDudZTxmA9l++jezWyNO0tY+ov58Dh7euW29u1oKW4j7IpGTp4Arwv8LC/0yBbAu tAhDGMNfiKhJGDPuBROVURZLA/fr498EVBLhHIEQj0SDw0P8pl4CI9cP/XVcJjcheClDSt t7qbYnQLyp16cy6h2qtk4cbTXBKSqlHwxfMy3flz61e88+fTCYWgzYTcXsDTbBCpLoYLe2 qvn3ViiWy6dokPn5KVz/Y8PfLeBhyMVmjupVW2la2I9kPd2Cpr8ChjcACpHgjoXy7dD1fA 32NG7AtV99TBlrgJS3ccHmps3C31xp9EguQSZjel/dQySxyUj71p9stNW7ED5Q== ARC-Authentication-Results: i=2; aspmx1.migadu.com; dkim=pass header.d=ucl.ac.uk header.s=selector1 header.b="IrKdHpk/"; 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=ucl.ac.uk; arc=pass ("microsoft.com:s=arcselector9901:i=1") 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 ACEA91D51A for ; Wed, 3 Apr 2024 14:33:53 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rrznN-0005Qj-Ja; Wed, 03 Apr 2024 08:32:49 -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 1rrznK-0005QH-T8 for emacs-orgmode@gnu.org; Wed, 03 Apr 2024 08:32:47 -0400 Received: from mail-he1eur04on20700.outbound.protection.outlook.com ([2a01:111:f403:260f::700] helo=EUR04-HE1-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 1rrznI-0000eR-0J for emacs-orgmode@gnu.org; Wed, 03 Apr 2024 08:32:45 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=nz74bnHrp/8+XM/lXEro13AddEZm19e8Rz/0cfdvxIRIpFVcE9ybom5vqLU7RI24rufDyJo+SHeVqBnWqxMkuSfTUFPP6QLr2G9zn5nfwcYcbrjggH5F7vZTdwfK3Tk1goA+hJ+WXBqccLG+Lzn5r/XGKxGsASdB2sDfMRs0rbxR/oLP1gCjhZ07jc8KTe7hpX4155Bh+4S8O0h7a3/hgiZpq3BLLfkeexD0mW1kGM7kG4Skr8loS3RK9TfBBKliURBxEVYv+njdgq5VCsp3GyB2pRbjUV01tIllQaq5w0BpNn3aEtSO66KcbhuU8/BHS/htWmjvLf3rHWrpC+uQLQ== 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=r6Fhc3AuKgAuhSNkLTkuq0dNRzMfV3J7/n3QsWUtRSI=; b=BzaFHluI2pQBMsROGZ748ccpt1+0FGlQd5q3oi03FNNXutkRuw2GsPQhxPNwcYVJEspMuaT7H7sWefSC+3dT3ELnjSLcfR19J3XsBgvmRejlOIkUppA8LsrXYBRd3J4CjJTVWd9HZasnG7UyuZsugfKRDLr+kRiPXwibPfYYvc8joTWNVxbI1Le5W3SlvvsDaLtnQuYA4dNtF378KwFwINnTWMZjaXgAitnurrlKg6g31RI7dKKfOSKu9BmaXXPjb2olKg7QElToYFr+U5lNdS9uzAD9nb3NUezrguB3QbofWDt67YUh/FZyVrI/uhlu7y4zYhr6a8Qe9dI51j5q2Q== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=ucl.ac.uk; dmarc=pass action=none header.from=ucl.ac.uk; dkim=pass header.d=ucl.ac.uk; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ucl.ac.uk; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=r6Fhc3AuKgAuhSNkLTkuq0dNRzMfV3J7/n3QsWUtRSI=; b=IrKdHpk/jEmeXrqVmIO1FZ6rNYfPbhxor0b8pQ/PSwdy6AF/AMrXIqemcPHNDmnOvQD6hgirOu4OMdaivHxPSqKBWOmCyXzvrQuyHRhLDalv5D4k+HwMxMWd/4RYzlxWxGMZ0ZqCdQe+UW3oLvvxhmOnuOiihT0PMy06xdIQSqI= Received: from AS4PR01MB10249.eurprd01.prod.exchangelabs.com (2603:10a6:20b:4fa::21) by AS4PR01MB10156.eurprd01.prod.exchangelabs.com (2603:10a6:20b:4f9::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7409.46; Wed, 3 Apr 2024 12:27:38 +0000 Received: from AS4PR01MB10249.eurprd01.prod.exchangelabs.com ([fe80::124e:61f6:2b2e:b811]) by AS4PR01MB10249.eurprd01.prod.exchangelabs.com ([fe80::124e:61f6:2b2e:b811%3]) with mapi id 15.20.7409.042; Wed, 3 Apr 2024 12:27:38 +0000 From: "Fraga, Eric" To: Ihor Radchenko CC: Doerthous , "emacs-orgmode@gnu.org" , =?iso-8859-1?Q?S=E9bastien_Miquel?= Subject: Re: Support for whitespace prefix for :noweb-prefix Thread-Topic: Support for whitespace prefix for :noweb-prefix Thread-Index: AQHagRX7A0BDTXPS1kCXeoyjWeRDVg== Date: Wed, 3 Apr 2024 12:27:38 +0000 Message-ID: <87y19u3a2u.fsf@ucl.ac.uk> References: <87o7ayrwfc.fsf@localhost> <875xx5fk53.fsf@localhost> In-Reply-To: <875xx5fk53.fsf@localhost> (Ihor Radchenko's message of "Fri, 29 Mar 2024 09:43:36 +0000") Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: user-agent: gnus (Emacs 30.0.50) x-url: http://www.ucl.ac.uk/~ucecesf/ mail-followup-to: Org Mode List x-ms-publictraffictype: Email x-ms-traffictypediagnostic: AS4PR01MB10249:EE_|AS4PR01MB10156:EE_ x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: EGCYjkjGsr0R+7gE8mLp1l/ZnYTN+c6fNhZQDBG9SsI6CLtzgO2bK5WE3r/6zImNSR7mNbTN9/b9J12P45AT07AUev6lk+pOh9d7g8xd7gUMD3dBSJNajHqOhUuJKEL0tFF9/8aXLhn0Zz6nZpvvjeM7WqMZ5eB0sczUTx8/9vL5fnSkB8cZSihXuCvUUxa9xOJSPgXkIIXTDr8qpMYziqAwxvPlh2sOaz25h/HnAUMyidBZyajEJ9mnPflPoNJX5QUbnYsIJB4/aoEHjjw07wfExuaNMkFNw5xJszDcmgcgSPPWwhJqH2sRf5/4Mqrmdwt22pCzExKF6JQWkhN0/2EHrqqh/N4Lrt8LbFZzQRzJgfRd29J2g49d4MVAkFR8ZJRaHGFK4Uhb5LeQSY5eVaXZfJMwMurT19nLJ4QmHWxQcANMwy6GDGlMf8wQbmHnUn9FSvcfr8Jhqo0sxOgpr9uBYlS+tSszXTxYddY/vCYS0IU2/M22c/fTdwTpdvRzsLOPvOJh3J/7mmnHvtUzJxOmnU0TaK9e8fQ61OurLNeyAik2KzB41vWLRgquYfdhGMp28uFriVTKr5bb+/GtRYSNTpeVJRMf95EpcJ4AwqJ+XSMkvS923tofmdRvhwj5LPl1sqr2sn859zYNhPqLrGiu+Zdj6wQqvhmvB8Smzqc= x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AS4PR01MB10249.eurprd01.prod.exchangelabs.com; PTR:; CAT:NONE; SFS:(13230031)(366007)(1800799015)(376005); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?iso-8859-1?Q?UMI8rIm+dVhSZ+04FNzkta3z66QqArMzjqumbQ8q5F5zXMHw6dGL0BYLGN?= =?iso-8859-1?Q?OBrotcu16oC6U5k0xXuvSUtteqqa8O0+R/SHUp2dIwOR5Vpnopk/HE7w7B?= =?iso-8859-1?Q?5OU1qDomEQj+ZvuGPVCghRjd4v2RxKaxMr4wGynhkVrXV/EaErLzuCYr7n?= =?iso-8859-1?Q?QgBYr6ItCIoqNz4qMSsMFBTdHnAFkicF6lxODKcIqs0f0z5x7MaA9ifaIy?= =?iso-8859-1?Q?xEurwIm7yzznvQ9o1rFUuaRSJU9gC00BB2nYEfGCAFQFgQTvL7Kkc38Mop?= =?iso-8859-1?Q?u6KgjPAM6y5vMzkQzy/1LiyU9gAfgjivN6BfzQlR8cAJJPlyUeQ3t3MTOK?= =?iso-8859-1?Q?Uw6NSyPXsoYbhXHkAfB4dD/trFCsOpwDXNmdjpwWb9E+yUTdHtOb7Ld2UB?= =?iso-8859-1?Q?9Mc6hIkrnmNSCWwc7IQ6PsiPJPLVCAtlPG2CUzn4ljfN6PMewwlVB+Ep4o?= =?iso-8859-1?Q?Y7Sr4r63MaWtErLQ3wniYsPDRKqDcgG57YS7OyM3Eiak4lhMPi29b/YDEQ?= =?iso-8859-1?Q?5pKIkFeMTlMfqEV6k4+B0MXWXp4fMezmb7d3xYYxLwcixfBcLuEex3olpR?= =?iso-8859-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omAUMYi1e+Z?= =?iso-8859-1?Q?KP3OGZm+V9VTooH3cowb1P2zczUQq0Zw8utDOk03YpNR7H6cJJKz16XhBF?= =?iso-8859-1?Q?6a8e/Uq4ssTDQoVzyHuaa3ywN5nwH9P51ujyHSq+VISyehIYGhSOIdyi/G?= =?iso-8859-1?Q?cG5tpiNgXAzjRFQ0b9Qj0bsZ7pLqiEvA4v?= Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: ucl.ac.uk X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: AS4PR01MB10249.eurprd01.prod.exchangelabs.com X-MS-Exchange-CrossTenant-Network-Message-Id: a0a22956-f9b6-40b4-83e1-08dc53d9730a X-MS-Exchange-CrossTenant-originalarrivaltime: 03 Apr 2024 12:27:38.2262 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 1faf88fe-a998-4c5b-93c9-210a11d9a5c2 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: 1Ec8tvdjBdCa1z06Y2C2eIZRxNMV2vQ5R94Kax8YflV0+INThHoJ9uu7cCWtHJ/2UZW7MJXjnoTJH5rzMUoFHw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS4PR01MB10156 Received-SPF: pass client-ip=2a01:111:f403:260f::700; envelope-from=e.fraga@ucl.ac.uk; helo=EUR04-HE1-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, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 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: -9.58 X-Spam-Score: -9.58 X-Migadu-Queue-Id: ACEA91D51A X-Migadu-Scanner: mx12.migadu.com X-TUID: 2q3MshojpR0z On Friday, 29 Mar 2024 at 09:43, Ihor Radchenko wrote: > Doerthous writes: >> #+begin_src elisp >> (let ((a 0) >> (let ((b 1)) >> `(,a ,b)) >> #+end_src >> >> ~(let (~ is the prefix of <>. >> >> I thought we can replace just the prefix in current code[1] with >> ~(setq prefix (replace-regexp-in-string "[^ \t]" " " prefix))~ ? > > I see. > So, you want a custom prefix before the expanded noweb reference lines. Not only that; at the moment, the prefix is defined by the text that comes before the noweb reference and hence why the "(let (" is repeated on the second line in the code block above. So it's a combination of no prefix in such a case and the indentation according to major mode. For me, the latter is not an issue but the former is. (but not really an issue for me as I make sure I only have noweb references on lines where such a replacement will not cause any problems...) --=20 : Eric S Fraga, with org release_9.6.23-1314-g945046 in Emacs 30.0.50=