From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 8b/BNyX042CXsgAAgWs5BA (envelope-from ) for ; Tue, 06 Jul 2021 08:11:49 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id wOvaMiX042C5cQAAbx9fmQ (envelope-from ) for ; Tue, 06 Jul 2021 06:11:49 +0000 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 2BB571A58D for ; Tue, 6 Jul 2021 08:11:49 +0200 (CEST) Received: from localhost ([::1]:55562 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m0eJ9-0000Au-Tc for larch@yhetil.org; Tue, 06 Jul 2021 02:11:47 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:57972) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m0eIh-0000Ad-ND for emacs-orgmode@gnu.org; Tue, 06 Jul 2021 02:11:19 -0400 Received: from forward104o.mail.yandex.net ([2a02:6b8:0:1a2d::607]:59766) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m0eIe-0007zu-MI for emacs-orgmode@gnu.org; Tue, 06 Jul 2021 02:11:19 -0400 Received: from sas1-1fb0fcb041b9.qloud-c.yandex.net (sas1-1fb0fcb041b9.qloud-c.yandex.net [IPv6:2a02:6b8:c14:2688:0:640:1fb0:fcb0]) by forward104o.mail.yandex.net (Yandex) with ESMTP id 63348940099; Tue, 6 Jul 2021 09:11:11 +0300 (MSK) Received: from sas8-b61c542d7279.qloud-c.yandex.net (sas8-b61c542d7279.qloud-c.yandex.net [2a02:6b8:c1b:2912:0:640:b61c:542d]) by sas1-1fb0fcb041b9.qloud-c.yandex.net (mxback/Yandex) with ESMTP id J0IcAfUocd-BAIG8X9H; Tue, 06 Jul 2021 09:11:11 +0300 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1625551871; bh=weOCe3ZGH3cBE6Pzfpj9OsZbc/1NAaWj1H7YBdaepVk=; h=In-Reply-To:Subject:Cc:To:From:References:Date:Message-ID; b=huhH1JZ+VaOWiMaMH1H+vWLRqWf4/RaAJXUxNFzCSWO1AgsaYLcNBt1qyi2BkRB8Y XXtb1po+5UdNcuOLJN04eRaoGpX1MF+ZAgIu6yf7MTJPEiN33k290BKM1cuap3WaW3 rptFAHTd/6cWCMOeFvD4jW5opX+Aiu3y00sMDd64= Received: by sas8-b61c542d7279.qloud-c.yandex.net (smtp/Yandex) with ESMTPSA id frvtLxrZoE-BAPWeb1O; Tue, 06 Jul 2021 09:11:10 +0300 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (Client certificate not present) Received: by smoon.bkoty.ru (Postfix, from userid 1000) id 4GJscs2cdNz8xq; Tue, 6 Jul 2021 14:11:09 +0800 (+08) Date: Tue, 6 Jul 2021 14:11:09 +0800 From: Vladimir Lomov To: Jacopo De Simoi Subject: Re: [PATCH] Allow tangling to a list of files Message-ID: References: <-0ZoEP_lzUvrnWSq9TwiYHNJ0Spa94xjiTOF0TU8np0pYgHEPx-62_dr5xBMd3VUu7frSRXxiAFje99v2jeaJg==@protonmail.internalid> <195645.1625546634@apollo2.minshall.org> <1903689.usQuhbGJ8B@bl4ckspoons> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="qO4vRSxtFiZgp1Ke" Content-Disposition: inline In-Reply-To: <1903689.usQuhbGJ8B@bl4ckspoons> Received-SPF: pass client-ip=2a02:6b8:0:1a2d::607; envelope-from=lomov.vl@yandex.ru; helo=forward104o.mail.yandex.net 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_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.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Greg Minshall , emacs-orgmode@gnu.org Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1625551909; 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=weOCe3ZGH3cBE6Pzfpj9OsZbc/1NAaWj1H7YBdaepVk=; b=nbK6Ot/9JBOBq7Py2zkpl3YHV9y2eMjE+eRPI5qByQhs+VkMUgyMDRwQKXEYB9cWqkc05d BBO3+9lG+f9iFzj2F1n/q1hWOj8VhTGPb5V1AtNaamcTh0kASptBgIm9h58uR9ehUl/dMX 3ICIINVTNY2+1YpUoKVUnVlyruFZvlwQwF//XlctBbJOoDAZdJO+oJ1uMmRD3zaJXAFAoP y/MFIK4hZNTyM7Gj5n2GMpiD1dB0NJCGznDCftn2Q5YQ5wnAL5bVHoXs52A/Kpn5YErF4F xnWE4VAzetAFmH3aN2q7cZeFosbnFfMwOPScQu+9tG6dfiEyaop06ogd7/zfaw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1625551909; a=rsa-sha256; cv=none; b=YDkAuyxRvb/wnoqi6Vj+dPLowDpG7j9juzEL0BZ8Re3q6n3U/Okm8Ft1OfOInlaWRrKtp5 yXd13zzk2rGHFD/ZCQnRI1t8439Pd1AOU6JSApMeootcyDZ37ajPaq7jmuXl1gn+WKXzX0 Ow/L0eMB3oaLU3ZZq4EbkfU7YKaWqkn2IV0KuOM1LF1jmrdhSSCFdBRM5bfkIi3/8uwuiP 20KqpT5aLfc9nBBkEZ4H/A0VMz7DDDM3IbmfV9Z6L58e016J1tl1V83iyFnAqUhtYuFC2e LRLfvJR66co3ZMUjLbZ9z5HY5frTAQp5j8JTlDHISe322LuJ+E2ieDsb3ku40Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=yandex.ru header.s=mail header.b=huhH1JZ+; dmarc=pass (policy=none) header.from=yandex.ru; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Spam-Score: -5.21 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=yandex.ru header.s=mail header.b=huhH1JZ+; dmarc=pass (policy=none) header.from=yandex.ru; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: 2BB571A58D X-Spam-Score: -5.21 X-Migadu-Scanner: scn0.migadu.com X-TUID: L0TXphx0l6sz --qO4vRSxtFiZgp1Ke Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hello! ** Jacopo De Simoi via General discussions about Org-mode. [2021-07-06 01:09:30 -0400]: > Hi Greg,=20 > thanks for your comments! > On Tuesday, July 6, 2021 12:43:54 AM EDT Greg Minshall wrote: >> hi, Jacopo, >>=20 >> i'm not convinced this is needed over and above your old "solution" of >> using <> witn N-different source blocks, each :tangle'ing to a >> different file. > To be honest I never quite managed to get it work... =3D)=20 > My point here is to be able to have one org file tangle'ing to several,= =20 > slightly different outputs. Ideally I want to use one readable literate = config=20 > for all my machines; the config can then be published (or exported) to ht= ml I do the same with 'noweb' feature. > Say I want to create an org file to tangle .tmux.conf (or .zshrc) for dif= ferent=20 > machines; then most of the conf file would be the same (and each such blo= ck=20 > would be tangled to all files) whereas some specifics could be tangled to= =20 > corresponding files only (e.g. ALIASes or EDITORs)=20 How this could be solved by your approach by tangling to several files? They will be identical! > Even if a solution using noweb could work, I find being able to tangle to= a=20 > list of files more readable and elegant. Could you explain this a bit more? How you will see that (assuming you have exported Org to HTML) this goes into different files? Again, if you tangle = to several files they content will be the same! Then why you need different files? > Especially when exporting the org in an external format, > I think the noweb solution would look like a hack, IMHO, yes, this is a hack and the "standard" way. I would suggest to read again Org manual concerning "Literate programming". > whereas a solution with tangle-to-list would be much easier to parse.=20 How that? You will tangle source block to several files, they content will = be identical! Or you suggesting to add some syntax for source block indicating= to which file to tangle that code snippet? I would recommend you to describe your needs and how you do things right no= w. [...] > Best, > Jacopo --- WBR, Vladimir Lomov --=20 When a camel flies, no one laughs if it doesn't get very far! --qO4vRSxtFiZgp1Ke Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEARYIAB0WIQQaopaKwcQWyz7yQfAHGfInzJc4BQUCYOPz9wAKCRAHGfInzJc4 BY8YAP9a/Ssca2vUvwik1hxhhFeuILMsDOujpHOFrjcdZvF9MAD7B6LZmCd8ow2t cmwc4/ZX6ez6MgfprBVoFiakRnHXtgc= =voeO -----END PGP SIGNATURE----- --qO4vRSxtFiZgp1Ke--