From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id gDNiK8bG42A2aAAAgWs5BA (envelope-from ) for ; Tue, 06 Jul 2021 04:58:14 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id aOIfJ8bG42ANWgAAB5/wlQ (envelope-from ) for ; Tue, 06 Jul 2021 02:58:14 +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 6207019A25 for ; Tue, 6 Jul 2021 04:58:13 +0200 (CEST) Received: from localhost ([::1]:56426 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m0bHn-0005pv-90 for larch@yhetil.org; Mon, 05 Jul 2021 22:58:11 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:34238) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m0bHM-0005nG-Ox for emacs-orgmode@gnu.org; Mon, 05 Jul 2021 22:57:44 -0400 Received: from forward102j.mail.yandex.net ([5.45.198.243]:38123) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m0bHG-0001Mw-Ch for emacs-orgmode@gnu.org; Mon, 05 Jul 2021 22:57:42 -0400 Received: from myt6-2cec5828668a.qloud-c.yandex.net (myt6-2cec5828668a.qloud-c.yandex.net [IPv6:2a02:6b8:c12:4019:0:640:2cec:5828]) by forward102j.mail.yandex.net (Yandex) with ESMTP id 0A5E9F2118B; Tue, 6 Jul 2021 05:57:33 +0300 (MSK) Received: from myt3-07a4bd8655f2.qloud-c.yandex.net (myt3-07a4bd8655f2.qloud-c.yandex.net [2a02:6b8:c12:693:0:640:7a4:bd86]) by myt6-2cec5828668a.qloud-c.yandex.net (mxback/Yandex) with ESMTP id QTKQ7cIvY0-vWHKieWf; Tue, 06 Jul 2021 05:57:33 +0300 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1625540252; bh=WkrLtDoRaPkKhtENSxB/oVbRTBvDnpalcCtNcALhkXQ=; h=In-Reply-To:Subject:Cc:To:From:References:Date:Message-ID; b=ESn/Y+K0RZA7KcYyIiZOR3X3J5voZLkFNdBHLf6wgZ67tebVRhce6c/yMP0wtAXeL vXxedzudAyq7xmctKlXDYIhCwA3qQRG7qftyxz+hf+xmPKxKTPeZlSxBCAjYwjqk9D cK8KeNaeKe60zRNj+u5dSR41orXdhR4whdB5W3FU= Received: by myt3-07a4bd8655f2.qloud-c.yandex.net (smtp/Yandex) with ESMTPSA id BdnRXHD8Rv-vWP0DxUo; Tue, 06 Jul 2021 05:57:32 +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 4GJnKR10F0z8xq; Tue, 6 Jul 2021 10:57:31 +0800 (+08) Date: Tue, 6 Jul 2021 10:57:31 +0800 From: Vladimir Lomov To: Jacopo De Simoi Subject: Re: [PATCH] Allow tangling to a list of files Message-ID: References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="LEO6Oz1L+hgRMgqS" Content-Disposition: inline In-Reply-To: Received-SPF: pass client-ip=5.45.198.243; envelope-from=lomov.vl@yandex.ru; helo=forward102j.mail.yandex.net X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-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: 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=1625540294; 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=WkrLtDoRaPkKhtENSxB/oVbRTBvDnpalcCtNcALhkXQ=; b=WRUstoyjt6oVVapOdbyjFtLtoPlhRGm14qXyP0dxAo0JncbJwvH/buj14nZoCAOOuL4tUc RXCX3N1onIS51JFlxyM4tAWtOFTvKHRgluwT8URHOFUh9/eW7MRfpRvRzZtsaju/z6SJGg 9uXthiE9S/UdoGMyV1qU8pHmZPH6AGwFzG8fqz4rO689KEHbeIQeWSR/tyPpCy9hEfDZ5X 3e73kM9ka1+cORNAIdRuy7B44yKqTqrkzCiP0bwog9WrRL8KN724P9LsZR7A2+PzuP/gtP BQqX7IgjljgEGI5kU1ex0Cjep9hX7R8z2n+8bHYL9x+GUT2Xv7AzMVGOdYpHJA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1625540294; a=rsa-sha256; cv=none; b=DyyjeSccZ/EiZWi9QeqjrPpkgSawok+yNylStqJOorO9DuT90AgUqo+X4ZNCKxTlmr28nX mCecVnQ9OTkmTzUKokKF7deUCKLwLNfOGeYIPde0FSQf2kIUoEsNeyfLkffQ7Pd7UJ7q1Y pFJtor+tCfIKDpaHMnpLK1m/FjIeNjBFap8VDj0ZV2cbd5aB4UFplrRz2NfYdgDFUdQZOj xxGx1twNXQJ13ITm9kq/PzFwv2gdIZ1LAYB4Js1iVfuCz4CUpeoV6YNHe32QBLTYAcAOyI v2Y1UJ1xhpxwQ0VDxsxvEs2+TzHlpgczCG+6Af8WBild9dYLnQZze2HP42BpHQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=yandex.ru header.s=mail header.b="ESn/Y+K0"; 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="ESn/Y+K0"; 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: 6207019A25 X-Spam-Score: -5.21 X-Migadu-Scanner: scn0.migadu.com X-TUID: 726aXxmkXsqb --LEO6Oz1L+hgRMgqS Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hello ** Jacopo De Simoi [2021-07-05 18:54:14 +0000]: > Dear All, I do use 'tangle' feature and I have several Org documents that tangle shell scripts as well as shell configurations so I could comment your proposal a bit. > Please find attached a patch (against master) that adds a feature to the > tangle framework. Essentially, the following block would now tangle to two > files > #+begin_src sh '("filename1" "filename2") > #my script > #+end_src May be you mean #+begin_src sh :tangle '("filename1" "filemane2") # some shell script #+end_src > Usecases > - literate config (e.g. .zshrc) of several machines at once (e.g. tangling > via tramp). IMO this is very specific use case but still it could be solved using exist= ing technique. I would suggest storing all configuration files (as well as Org documents) in git repository, tangle them on a host, push to a repository a= nd pull them on destination host (I do this myself, it helps me to avoid error= s). > - literate similar versions of the same script which differ only in small > chunks (I use it for a slightly different latexmkrc for my projects on > Dropbox) Again, IMO, this is very specific use case. You could use standard way to g= et desire result. Besides if you want tangle to several files they content will be the same, won't it be? So you couldn't get different results from one co= de block. I do a bit similar thing: I have Org document describing shell configuration for several hosts. I tangle to different files using standard technique and use 'noweb' feature to adapt to different hosts.=20 May be it would worth if you describe what you want to achieve and how you = are doing it now? [...] --- WBR, Vladimir Lomov --=20 Software suppliers are trying to make their software packages more "user-friendly". ... Their best approach, so far, has been to take all the old brochures, and stamp the words, "user-friendly" on the cover. -- Bill Gates, Microsoft, Inc. [Pot. Kettle. Black.] --LEO6Oz1L+hgRMgqS Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEARYIAB0WIQQaopaKwcQWyz7yQfAHGfInzJc4BQUCYOPGlQAKCRAHGfInzJc4 BTNiAQDDoZ5gZvtFtpN+O8YliUABTBfNgEo2Rl2KtVHpmN7nqgD/fVdlG1tzr9UK Yf8tjnZqFTpwyg1IQlNfFtLIPNiW/QE= =2Sic -----END PGP SIGNATURE----- --LEO6Oz1L+hgRMgqS--