From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id huQwBwg75mBrywAAgWs5BA (envelope-from ) for ; Thu, 08 Jul 2021 01:38:48 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id CK44Agg75mC3JgAAbx9fmQ (envelope-from ) for ; Wed, 07 Jul 2021 23:38:48 +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 4C0E920389 for ; Thu, 8 Jul 2021 01:38:47 +0200 (CEST) Received: from localhost ([::1]:53422 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m1H7u-0002QN-Bs for larch@yhetil.org; Wed, 07 Jul 2021 19:38:46 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:56560) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m1H7H-0002QE-Rw for emacs-orgmode@gnu.org; Wed, 07 Jul 2021 19:38:07 -0400 Received: from mail-pf1-x429.google.com ([2607:f8b0:4864:20::429]:44887) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m1H7F-0006IW-TZ for emacs-orgmode@gnu.org; Wed, 07 Jul 2021 19:38:07 -0400 Received: by mail-pf1-x429.google.com with SMTP id x3so138443pfc.11 for ; Wed, 07 Jul 2021 16:38:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=references:user-agent:from:to:cc:subject:date:in-reply-to :message-id:mime-version; bh=Aw+0GlHI0Rqibq9f6QBBjA2B25oNN5FiPKdHc4p4Sqc=; b=kOQjEPAWsdzku966GUDEB4tgWDqLcZnpzOQO1faCCROXu6Cj+PuTix4BPRwEuSBcB3 2TlyarOarhtl6a3g4BnvuXHiPFtSsmTJkJofQpkNEZeDmAiVXr+6kfIigsQ0bP10RWOy h8vF2Bx9ETTDPMScJu8im0VvZN5TOf/R1md5wnw5KitFpvsT4WxKwTSrupqohJPIfWZs qIxEbrqTdJy4h34Bad4JDSsjkY25OHSxF9HsZkqs6D9TbmHUG954pE++8Sz8SS7rwTY/ YkpMQ0C0qu7QjRVqmDkz6dKqtfVp0QxDziHWN5UDz5tE4I3Sol2ICbR4ZAYuqcYlbLC1 j8jA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:references:user-agent:from:to:cc:subject:date :in-reply-to:message-id:mime-version; bh=Aw+0GlHI0Rqibq9f6QBBjA2B25oNN5FiPKdHc4p4Sqc=; b=RFn+K/FvOfMpAJDQvXE5wbLTtiAcMgoIYe2kYoA9KZfA/YAQUnlyR1dToIE10XRIax IfzPKkzULB1dTjlo1v1eKwBe6Qy4GmEWCe1zvnGRNJRF9HWDYMwtJ6buS/rSJMOrN1MB 5aqYOiUyZznotjmsAovu//a7vL59SpxauaApXiqDUPw0j7bl5OJZAxWuJNFYAfVH1t82 Tqxw2CrxIbvW+G1zk7278lzL8LqzX2W1N3JpfFmKpg6MoyJpYJ/+jDbjj/uXJZKt7mC+ O5MsyRQlA2i9bNWVcWlhwod6kC+Vp1pbW59diIEUbjNPto7ys4r0oDqRG1XpxktAoqu7 jU3g== X-Gm-Message-State: AOAM530IK9o8kKYJJ2yEUq9OfLJ+ZB1IiIi3ibojRLj43ToQIvebwNIK d+NTDfLRFmxPk5bNG7zatc8uEW4w4y8= X-Google-Smtp-Source: ABdhPJyoZtIHuL3C+2R20v77jBMYOu6CjD6qL1/0e7bfNyCRVvaCzfONjKCS3BNFXvZ0AW+ScEEZfw== X-Received: by 2002:a63:1718:: with SMTP id x24mr2415009pgl.416.1625701084181; Wed, 07 Jul 2021 16:38:04 -0700 (PDT) Received: from tim-desktop (106-69-111-137.dyn.iinet.net.au. [106.69.111.137]) by smtp.gmail.com with ESMTPSA id g123sm294365pfb.187.2021.07.07.16.38.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 07 Jul 2021 16:38:03 -0700 (PDT) References: <-0ZoEP_lzUvrnWSq9TwiYHNJ0Spa94xjiTOF0TU8np0pYgHEPx-62_dr5xBMd3VUu7frSRXxiAFje99v2jeaJg==@protonmail.internalid> <6nablMuhQkeviB-6VFvbgkSFIQUX0t1Cn9X8VKPNkMNmTx_r0NlLhnpTJQyUB9EjTZEtB_1xnumcRgd_UEl_mQ==@protonmail.internalid> <87h7h7nakd.fsf@gmail.com> <3116936.aeNJFYEL58@bl4ckspoons> User-agent: mu4e 1.5.13; emacs 28.0.50 From: Tim Cross To: Jacopo De Simoi Subject: Re: [PATCH] Allow tangling to a list of files Date: Thu, 08 Jul 2021 09:28:24 +1000 In-reply-to: <3116936.aeNJFYEL58@bl4ckspoons> Message-ID: <87r1g9lmp3.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::429; envelope-from=theophilusx@gmail.com; helo=mail-pf1-x429.google.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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, 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=1625701127; 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=Aw+0GlHI0Rqibq9f6QBBjA2B25oNN5FiPKdHc4p4Sqc=; b=pogDDhx4moeaJx7Yfh3DPYTmXM2Z6uy89ZJEL2opuXno70hc0RZmDyzfcoFoPElShILOD9 2k8mprcXWvQPx/fI3gCapvf36cyFY7eGgCXRCWthcJ11lFHJKQzF3IFg6d42RIMNR9Araz rd9XBIKTp+cgHBz72Ph4m0wXxK3bCfH4ih65H5t1vEaoivWHvwe9RuZgU68c8EY2lU0vyc AEI8rmm1RxizEmMZCkqNG5iyXJZRpgn2VwyRa5O3kz2xJ7W9BYo7e9wcP2f/I+O7fGcIIh dTtj/6lF/PfDd02Vc2kyjUAUK3XZr07//UMaQ1Q2qY6iB4qEb/GFTZHV67+4lQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1625701127; a=rsa-sha256; cv=none; b=NCJZt9lYeUkb9AJMOLePQD1CmP3ZTsAu8Q4bDTrAgyVAN1QvOX6mzRlV4HHiCmz+qTDVX1 NaVvUe8DLHiimS1lRoQKcUx7GCGPT9Z7ePtzLwHEKZaY1E4R/7ToAIto9DtNVa2ovjKhRV NQdWewI8vsjxMvceFCZVyJHq39/aMlEgjgvcTf0TXWJ2SMLsPrCWEb+itSYfuZuFjvoTZB MeZVWf0r5hV1eYR37e0OnzkRbX5Apx6xAD6D8z+Cs12G0neQnX/AtAm19fij4Y0W2oJAlx Y3RE10tYj324Wa5HrPU/js+u/ZnStrlDl1s78/hV5C9BgOgRU0i4FdEwUdEMVg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=kOQjEPAW; dmarc=pass (policy=none) header.from=gmail.com; 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: -3.11 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=kOQjEPAW; dmarc=pass (policy=none) header.from=gmail.com; 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: 4C0E920389 X-Spam-Score: -3.11 X-Migadu-Scanner: scn0.migadu.com X-TUID: lqJ5fLDelzm5 Jacopo De Simoi writes: > > In fact the files are different, since each source block is tangled to a > possibly different subset of files. > > The logic for which files to tangle according to which parameter or tags can be > implemented by some lisp magic such as > > #+begin_src sh :tangle (filenames-according-to-situation) > #+end_src > > So my patch provides the framework to do this, but the implementation is left > to the author. > This possibly makes your intention a little clearer. It seems to me that what you are asking for is not support for specifying a list of files, but support for specifying a function which will return the filename of the file to use for the tangled output? That is something I could see as being more useful than the ability to set a list of output filename. Things could be defined so that if the function returns nil, the block is not tangled, if it returns 't the block is tangled to the default output file and if the function returns a string, that string is interpreted as a filename which is to be used as the output target for the tangle. I think I might have seen another request for this type of functionality on the list recently? Such functionality seems like a useful addition. -- Tim Cross