From: George Mauer <gmauer@gmail.com>
To: Immanuel Litzroth <immanuel.litzroth@gmail.com>
Cc: emacs-orgmode <emacs-orgmode@gnu.org>
Subject: Re: ist here a :post header arg for tangling?
Date: Mon, 4 Jan 2021 09:28:48 -0600 [thread overview]
Message-ID: <CA+pajWLJwazLY8kM6zrLS3Nx+hbQRH9KP3TTysJfLP6x40MQmQ@mail.gmail.com> (raw)
In-Reply-To: <CAM1nAcyA3zfoKjBapJhx4f5VaS9RUnY67ZiVk50XWMqrBfo5jg@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1359 bytes --]
So like I said, I would like to run some code to post-process files.
Nothing super-concrete, but a bunch of small use cases I've run into such as
- Running tests on every tangle
- Executing a code block in the same document and running tests after all
tangles
- Running a code-formatter such as prettierjs (or the python one which name
escapes me - autopep?) and potentially de-tangling back
I realize some of these things I could do with a file watcher, but not
really the ones that require modifying the document again
On Fri, Jan 1, 2021 at 6:29 AM Immanuel Litzroth <
immanuel.litzroth@gmail.com> wrote:
> I don't think there is an arg for that. I have written a tangler that
> reuses a lot
> of the org-babel machinery and has a more flexible mechanism to decide what
> to do with the tangled code -- I use it for example to not write a
> tangled file if it
> hasn't changed, meaning that it will not trigger recompile.
> The project is private now but if you're interested I can give you access
> to it.
> What exactly are you trying to do?
> Immanuel
>
> On Fri, Jan 1, 2021 at 2:09 AM George Mauer <gmauer@gmail.com> wrote:
> >
> > I'd like to run some code to post-process files after they are tangled.
> Is there a header-arg for that?
>
>
>
> --
> -- Researching the dual problem of finding the function that has a
> given point as fixpoint.
>
[-- Attachment #2: Type: text/html, Size: 1898 bytes --]
prev parent reply other threads:[~2021-01-04 15:30 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-01-01 1:08 ist here a :post header arg for tangling? George Mauer
2021-01-01 12:29 ` Immanuel Litzroth
2021-01-04 14:07 ` Diego Zamboni
2021-01-04 14:50 ` Immanuel Litzroth
2021-01-04 15:10 ` Diego Zamboni
2021-01-04 15:31 ` Immanuel Litzroth
2021-01-04 15:36 ` Immanuel Litzroth
2021-01-04 15:38 ` Immanuel Litzroth
2021-01-04 15:28 ` George Mauer [this message]
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:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
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=CA+pajWLJwazLY8kM6zrLS3Nx+hbQRH9KP3TTysJfLP6x40MQmQ@mail.gmail.com \
--to=gmauer@gmail.com \
--cc=emacs-orgmode@gnu.org \
--cc=immanuel.litzroth@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* 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
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
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).