From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id YA+uMqbl42DjkgAAgWs5BA (envelope-from ) for ; Tue, 06 Jul 2021 07:09:58 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id oEpuLqbl42A0BwAA1q6Kng (envelope-from ) for ; Tue, 06 Jul 2021 05:09:58 +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 26E4823C3A for ; Tue, 6 Jul 2021 07:09:58 +0200 (CEST) Received: from localhost ([::1]:37138 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m0dLH-0001HD-PX for larch@yhetil.org; Tue, 06 Jul 2021 01:09:55 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:51100) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m0dKx-0001H4-Vf for emacs-orgmode@gnu.org; Tue, 06 Jul 2021 01:09:35 -0400 Received: from mail.math.toronto.edu ([128.100.68.68]:49005) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m0dKw-0001vZ-0O for emacs-orgmode@gnu.org; Tue, 06 Jul 2021 01:09:35 -0400 Received: from bl4ckspoons.localnet (coxeter.math.toronto.edu [128.100.68.3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: jacopods) by mail.math.toronto.edu (Postfix) with ESMTPSA id 58E1E42198D; Tue, 6 Jul 2021 01:09:31 -0400 (EDT) To: Greg Minshall Cc: emacs-orgmode@gnu.org Subject: Re: [PATCH] Allow tangling to a list of files Date: Tue, 06 Jul 2021 01:09:30 -0400 Message-ID: <1903689.usQuhbGJ8B@bl4ckspoons> In-Reply-To: <195645.1625546634@apollo2.minshall.org> References: <-0ZoEP_lzUvrnWSq9TwiYHNJ0Spa94xjiTOF0TU8np0pYgHEPx-62_dr5xBMd3VUu7frSRXxiAFje99v2jeaJg==@protonmail.internalid> <195645.1625546634@apollo2.minshall.org> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Received-SPF: softfail client-ip=128.100.68.68; envelope-from=wilderjds@protonmail.com; helo=mail.math.toronto.edu X-Spam_score_int: -34 X-Spam_score: -3.5 X-Spam_bar: --- X-Spam_report: (-3.5 / 5.0 requ) BAYES_00=-1.9, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_SOFTFAIL=0.665 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: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" Reply-to: Jacopo De Simoi From: Jacopo De Simoi via "General discussions about Org-mode." X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1625548198; h=from:from:sender:sender:reply-to: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; bh=WoE3TldTzN/JozvshXUmmXdIuAltDWPrZuP+KPDE6Ok=; b=mnnNscxgDbTViccB6et0O/HCawO5wtQc59vxRHMkVR0J1Iy2g0/4xtUUVYt7x3HY2xGUsX 9yw5Z+L0H5LNtP7VFYzA5wVef6RCHFVsaD6Xo6H4T9X3ZtnkUxcmHaLUGKBj1MU8quuwtV 9YLhxkwuG8CiOmfZYjEJ4tPFX/t5KGrQ0BKHP2Gh7REDwtV8ivePLY//Dik5xkEHBULr+v 0HT82ZCXhrqSfayRM/QW40T7iqjauIgP6C9kOmV9BXGUlacj9BtGrtDQhQKDZLmAoFhKLA NVjdFXu/7BGOO2mftcX+544jeRQIkrko3ky9Xowfd8Xoun+IXE4a1yAHSEoxPQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1625548198; a=rsa-sha256; cv=none; b=nSoE8O391R4kmOvXYkrYIenG1XkJtn0mRpEQ5MKI/zWkYgB4WvV4J4gkpju6yymJIAyUxe h4K79xYtjhBGs9t9KymoPsmBnFHETDajSgZ6FuEb9McBnCGrwXB2JaIaAum2IHUZOuxnlD YPS/OU3b/V/jilMpVad/YIC6LEg/h4gHXh+ormtrZQ4XqNlZ9bvPSr+SBrkq5h839wWhp6 P1F+Q3Mr+rzdzPgEX888OIRlul9V+2OGLmXkBAb6+4bIzo4xb6BzhfMu8mboSCXLPCAjim r+QzgY7B5LAuPD2zodLwzCSi7rdowCVtITW4KDiucsc0W6kNhVHlYrsneB8YlA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; 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: -1.91 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; 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: 26E4823C3A X-Spam-Score: -1.91 X-Migadu-Scanner: scn0.migadu.com X-TUID: jghCYeW35YIe Hi Greg, thanks for your comments! On Tuesday, July 6, 2021 12:43:54 AM EDT Greg Minshall wrote: > hi, Jacopo, > > 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... =) My point here is to be able to have one org file tangle'ing to several, slightly different outputs. Ideally I want to use one readable literate config for all my machines; the config can then be published (or exported) to html Say I want to create an org file to tangle .tmux.conf (or .zshrc) for different machines; then most of the conf file would be the same (and each such block would be tangled to all files) whereas some specifics could be tangled to corresponding files only (e.g. ALIASes or EDITORs) Even if a solution using noweb could work, I find being able to tangle to a list of files more readable and elegant. Especially when exporting the org in an external format, I think the noweb solution would look like a hack, whereas a solution with tangle-to-list would be much easier to parse. > > but, i'm curious -- in the example you sent, did you miss a ":tangle" on > the "#+begin_src" line? Yikes! of course I did! Good catch. > > > #+begin_src sh '("filename1" "filename2") > > #my script > > #+end_src > Best, Jacopo