emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Jacopo De Simoi <wilderjds@protonmail.com>
To: Trust me I am a Doctor <pillule@riseup.net>
Cc: Tom Gillespie <tgbugs@gmail.com>,
	Tim Cross <theophilusx@gmail.com>,
Subject: Re: [PATCH] Allow tangling to a list of files
Date: Thu, 08 Jul 2021 17:42:19 +0000	[thread overview]
Message-ID: <n2gUPm0GchjPxBdefQtBzeyKDc6WJVXc__woDAUp6xBOzYXfCkKg3nXuLXtZfhNNyqN4YW4QhJI894x8hG4O84g1ddXv96Gq2sUCJP2nbHs=@protonmail.com> (raw)
In-Reply-To: <87k0m0682j.fsf@riseup.net>

Hi Doctor,

 It's good to have such constructive discussion here.

I like your approach to tangle based on tags.  I accomplish more or less the same in this (unfinished) literate config for zshrc


Here the function `org-tags-to-filenames' simply fetches the list of tags and returns a list of filenames corresponding to the tags.  Each block is then tangled to each file in the returned list (using the patch under discussion)

‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐

On Thursday, July 8th, 2021 at 12:41 PM, Trust me I am a Doctor <pillule@riseup.net> wrote:

> Hi,
> I have no particular opinion for the patch proposed but wanted to share
> with you some reflections I had on the subject to use one org file to
> tangle to multiple setup.
> I use abundantly virtual machines and my emacs configurations have many
> bits that I don't want everywhere, be it a mail setup, a rss setup, or
> extra languages setup ... etc.
> It is not exactly the same usage, I do not tangle different versions in
> one pass, I tangle a version at a time, and take care of installing it
> in the right place later.
> Naively I started to use the header's tags to tangle blocks. I thought
> because there was already in place a query syntax for the tags it
> may been interesting to use that.
> You can see attached a proto of a tangle function that accept tags
> specification and that will only tangle the blocks of the headings
> matching this specification; and some utilities that I use with it.
> However I must say that solution is quite simplistic. It effectively
> allow me to filter dynamically what I tangle from my files, but I cannot
> rely on it to specify elegantly, eg, complex dependencies between
> packages.
> At some point I wished to use org-properties to abstract some logics
> from Elisp to org, and then forget about I always have something else to
> tweak ...
> ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

      reply	other threads:[~2021-07-08 17:43 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-07-05 18:54 [PATCH] Allow tangling to a list of files Jacopo De Simoi
2021-07-06  2:57 ` Vladimir Lomov
2021-07-06  4:43 ` Greg Minshall
2021-07-06  5:09   ` Jacopo De Simoi via General discussions about Org-mode.
2021-07-06  6:11     ` Vladimir Lomov
2021-07-06 15:24       ` Jacopo De Simoi via General discussions about Org-mode.
2021-07-07  3:27         ` Vladimir Lomov
2021-07-07  4:09           ` Tim Cross
2021-07-07  5:01           ` Jacopo De Simoi
2021-07-07  6:56           ` Greg Minshall
2021-07-07 11:05             ` Jacopo De Simoi
2021-07-09 12:26             ` Vladimir Lomov
2021-07-09 13:39               ` Jacopo De Simoi
2021-07-09 22:47               ` Tim Cross
2021-07-06  7:30     ` Tim Cross
2021-07-07 23:06       ` Jacopo De Simoi via General discussions about Org-mode.
2021-07-07 23:28         ` Tim Cross
2021-07-08  0:01           ` Jacopo De Simoi
2021-07-08  0:41             ` Tom Gillespie
2021-07-08 16:41               ` Trust me I am a Doctor
2021-07-08 17:42                 ` Jacopo De Simoi [this message]
     [not found] <-0ZoEP_lzUvrnWSq9TwiYHNJ0Spa94xjiTOF0TU8np0pYgHEPx-62_dr5xBMd3VUu7frSRXxiAFje99v2jeaJg==@protonmail.internalid>

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='n2gUPm0GchjPxBdefQtBzeyKDc6WJVXc__woDAUp6xBOzYXfCkKg3nXuLXtZfhNNyqN4YW4QhJI894x8hG4O84g1ddXv96Gq2sUCJP2nbHs=@protonmail.com' \
    --to=wilderjds@protonmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=pillule@riseup.net \
    --cc=tgbugs@gmail.com \
    --cc=theophilusx@gmail.com \


* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox


This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).