[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] Allow tangling to a list of files

From: Tim Cross
Subject: Re: [PATCH] Allow tangling to a list of files
Date: Thu, 08 Jul 2021 09:28:24 +1000
User-agent: mu4e 1.5.13; emacs 28.0.50

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 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

reply via email to

[Prev in Thread] Current Thread [Next in Thread]