From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id 0PjYOnmNBmYebAEA62LTzQ:P1 (envelope-from ) for ; Fri, 29 Mar 2024 10:44:26 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id 0PjYOnmNBmYebAEA62LTzQ (envelope-from ) for ; Fri, 29 Mar 2024 10:44:26 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=IFPfleu5; 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=posteo.net ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1711705465; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=0PPADjI9GHP4PRLpU8cvqydYicAXoqHGQtvgf0ABDYE=; b=mD1Kbr1ZxK1bgU6K1mth4WFwIlgLofRhgRJeRsIcnvhtZilmDJH6GzfaTJCSeCU8z7iU+u vK4+DWhsdVQzOa78AK2RV4de7o5OVDT9ztG8RS6o0LkgrRtXx1V6M1nc1BazZd/LkrY87o liUnY6jiEr8j1ujIREeUaLSdXDl3Z4qmQ5xfqzYoFfNsTDnPqlY+W1/nyp7/7iXNSJylER T4G7zuukRqqicli/FzheAit3PhlFAYTQigV6451n2ez1vdIz0QL6Wd7ytKoN9u1Imn7BXu 9bLJHW1xOIMVPYAfCwFAHfvcR7LobAP+oCIyJnX14lC1llL/ajJDQJUKGQ7RAg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=IFPfleu5; 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=posteo.net ARC-Seal: i=1; s=key1; d=yhetil.org; t=1711705465; a=rsa-sha256; cv=none; b=kvUddKpDB2Fuf4i4H0zd7ifczrRIg/AxB8lKwBaqRylU9GRVm5rB+GgBrENP8GcaEWT/LI p8W7yOyWqd7TSblxvngMtZ3lnj0oauCav3UVhvWXy1R7X/26Y3gOyC0YoecgHTgUAK8ztT VzZF4+dZUnNyk1dwmfjmChGZiGHoOPKRZ8Ey2uS4ahJjBpXTBxIwPuXhv8c2S2IapDSFtX x9LORBRg8PTBOyaL/qA5f5TAupyuSv9Q2tb7W0OuyA5+1+V6wJwLm+6LjErOdTudpwQhkB vVqZ8itKMj32yu21iilhexOWL3IWG8spYBlNKsBOy/oB058pDW7pJap2DosECw== 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 6F28A6E685 for ; Fri, 29 Mar 2024 10:44:25 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rq8ls-0004K5-Fa; Fri, 29 Mar 2024 05:43:36 -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 1rq8lq-0004J9-Le for emacs-orgmode@gnu.org; Fri, 29 Mar 2024 05:43:34 -0400 Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rq8lo-0003HK-Gw for emacs-orgmode@gnu.org; Fri, 29 Mar 2024 05:43:34 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 52342240101 for ; Fri, 29 Mar 2024 10:43:29 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1711705409; bh=QRvyksA1dZ+7yMpsQQLplUvm4eOrC6uB1mnn894gVI4=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: From; b=IFPfleu5KXdAd4y/Lz04jIxujIDjIcx3Rjv/lPJnS06+LlBYN7s6eTApqK00B56y2 w34g4uLrB/vtdXyb27skfW0FU2s1c7bP3aXAyht2dk5DemROsLU+OVkxWWSr5hNEIz +duld82LWwYs0+6gONpXXdhUqb/tH8jFnVoKUV9J77D6Sh/LAJw3KrsvaQr6fkiqbb ehqRlwTbhHjbeGVKgcvv9v8mn0IEFpXIBpHyWCVd83/MGWsKpp3P308TBI+bzGMBA2 5NKfnhSvFkmsqmC5OOwx5uCoWAuJ8wLVJ936nOdQDWxFx8O7Zrqr6dgIKqAT/cKD/j gVgbEN5q+KTDA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4V5b7h3SwMz9rxK; Fri, 29 Mar 2024 10:43:28 +0100 (CET) From: Ihor Radchenko To: Doerthous Cc: emacs-orgmode@gnu.org, =?utf-8?Q?S=C3=A9bastien?= Miquel Subject: Re: Support for whitespace prefix for :noweb-prefix In-Reply-To: References: <87o7ayrwfc.fsf@localhost> Date: Fri, 29 Mar 2024 09:43:36 +0000 Message-ID: <875xx5fk53.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.66; envelope-from=yantar92@posteo.net; 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_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=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-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Queue-Id: 6F28A6E685 X-Spam-Score: -7.09 X-Migadu-Spam-Score: -7.09 X-Migadu-Scanner: mx10.migadu.com X-TUID: nSfwmoQF6L3/ Doerthous writes: >> Do you mean that you want the code to be indented according to the major >> mode rules? >> > > Why it relates to major mode, > > Currently, with :noweb-prefix set to yes, the above code will be expand to > #+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. I think that a more general approach could be allowing :noweb-prefix to have a value of string that will be appended to each line on the expansion. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at