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 8Nv7CtZA5mDt0gAAgWs5BA (envelope-from ) for ; Thu, 08 Jul 2021 02:03:34 +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 +KmsBtZA5mA2SwAAB5/wlQ (envelope-from ) for ; Thu, 08 Jul 2021 00:03:34 +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 64112206E3 for ; Thu, 8 Jul 2021 02:03:33 +0200 (CEST) Received: from localhost ([::1]:60754 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m1HVs-000139-F0 for larch@yhetil.org; Wed, 07 Jul 2021 20:03:32 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:59520) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m1HTo-000842-IJ for emacs-orgmode@gnu.org; Wed, 07 Jul 2021 20:01:25 -0400 Received: from mail-40133.protonmail.ch ([185.70.40.133]:25661) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m1HTm-0000oO-4N for emacs-orgmode@gnu.org; Wed, 07 Jul 2021 20:01:24 -0400 Date: Thu, 08 Jul 2021 00:01:17 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail; t=1625702478; bh=7fjnkeMmc0mxoDejJ3d+Ng62KVbVboleCUA7L0esB8c=; h=Date:To:From:Cc:Reply-To:Subject:In-Reply-To:References:From; b=kboWdipJ0INwjNa35JWMSx5I5dYXV5Jps4xzZlsrurL5OdIjFEWxwOcAJY8J4CDm1 q/OInQPlbVHNu6BJqIbIVXwYuElTbl4eRscWgdOqLYHw1L0L0ZfJkj04sBGmSKmi77 CU7dOfEf6dBdaAfbWoNEbmTDiXXuzv+CYONZMvoM= To: Tim Cross From: Jacopo De Simoi Cc: emacs-orgmode@gnu.org Subject: Re: [PATCH] Allow tangling to a list of files Message-ID: In-Reply-To: <87r1g9lmp3.fsf@gmail.com> References: <-0ZoEP_lzUvrnWSq9TwiYHNJ0Spa94xjiTOF0TU8np0pYgHEPx-62_dr5xBMd3VUu7frSRXxiAFje99v2jeaJg==@protonmail.internalid> <6nablMuhQkeviB-6VFvbgkSFIQUX0t1Cn9X8VKPNkMNmTx_r0NlLhnpTJQyUB9EjTZEtB_1xnumcRgd_UEl_mQ==@protonmail.internalid> <87h7h7nakd.fsf@gmail.com> <3116936.aeNJFYEL58@bl4ckspoons> <87r1g9lmp3.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=185.70.40.133; envelope-from=wilderjds@protonmail.com; helo=mail-40133.protonmail.ch 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_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-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: , Reply-To: Jacopo De Simoi 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=1625702613; 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:dkim-signature; bh=7fjnkeMmc0mxoDejJ3d+Ng62KVbVboleCUA7L0esB8c=; b=dLkhMNChoMxWslohcDJxtnl5N2flVaRLYB3ovqrxT1MzcVXlcs88md/KoOro5hWtSORLk6 EzJNXCNFz+wyUxQqPpu9O3csPrIIW2AfctDLZYdx3oh3Pq7Mqzu34DtGAvFHfdeQ5p8MQx UvYUpy/sTwMIbKk50XhLleGQ+aHbiREiufLQFRMoLtXBUC0JB3PPnoC9WgdGLffxZGmoIS ndifZlYJPWIBCpLj+n2JKdmf3JhlirH96lQ4RbBUwSUYsmU1XYrBfu3PKCEUpGtvCFRXFn 4OzLJJkTo/51y0LGRU3X0MwnvqTMcfawKEmnQg9L65bD5snjr3Uy2wY0//8NOg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1625702613; a=rsa-sha256; cv=none; b=G/+9PUHeBFN0pul1zrlIF4vP2BJj61/42ugx/ZXNbePjKcY4yhiIA9eWXgMaL12obkbmkn 53zGPtvRVoBBaHmgnGzZEsTQW8tttSmYzMPRq+d281bdqGUnqY6ZIOHV+Ac6F5A4znGiRu KfIF+PXn59rpxWfVTfHktww19lGHAxrTYEheGVJAGgRhDm4wv2YU8gKIQx1c2wqwdwYiT9 O95Z/8AIZ6hegXgIjzPlhBddFeEliTsKpC8EIIEK3rszZzl6JiECirT3kHeYaPRGb1xnQQ 7+5LTcvjiI99yCmFnY9E1lwnzD8ePpu0TpM33sxSAV3XdrmeKKdsShCLNDzUjg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=protonmail.com header.s=protonmail header.b=kboWdipJ; 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=protonmail.com header.s=protonmail header.b=kboWdipJ; dmarc=pass (policy=quarantine) header.from=protonmail.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: 64112206E3 X-Spam-Score: -3.11 X-Migadu-Scanner: scn0.migadu.com X-TUID: GW4tJQo0iV8X =E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90 Original Me= ssage =E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90 On Wednesday, July 7th, 2021 at 7:28 PM, Tim Cross = wrote: > Jacopo De Simoi jacopods@protonmail.com 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 tag= s 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 i= s 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. This is (mostly) already in place, lisp is indeed evaluated as an argument = of the : tangle argument (although the docs do not mention this fact). What my patch is providing is support for the case in which the function r= eturns a list of filenames rather than just one filename (or yes or no) The "(mostly)" above refer to the fact that 't is not processed correctly (= but that would be an easy fix) nil used to work before being broken by a recent commit. I posted a patch = on July 1 to address this issue, but it has not been considered yet. > > 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