emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Diego Zamboni <diego@zzamboni.org>
To: Immanuel Litzroth <immanuel.litzroth@gmail.com>
Cc: gmauer@gmail.com, emacs-orgmode <emacs-orgmode@gnu.org>
Subject: Re: ist here a :post header arg for tangling?
Date: Mon, 4 Jan 2021 15:07:30 +0100	[thread overview]
Message-ID: <CAGY83Ednxzmw7EvZNCTfLEhGf1DXg_9RhCOxva91uWgO49ZubA@mail.gmail.com> (raw)
In-Reply-To: <CAM1nAcyA3zfoKjBapJhx4f5VaS9RUnY67ZiVk50XWMqrBfo5jg@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1115 bytes --]

There's =org-babel-post-tangle-hook=, which AFAICT specifies hooks that
will be run with the tangled code in a temporary buffer. I couldn't find
much documentation nor examples, but it is mentioned at
https://orgmode.org/manual/Extracting-Source-Code.html#Hooks-3

--Diego





On Fri, Jan 1, 2021 at 1:31 PM 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: 1787 bytes --]

  reply	other threads:[~2021-01-04 14:08 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 [this message]
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

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=CAGY83Ednxzmw7EvZNCTfLEhGf1DXg_9RhCOxva91uWgO49ZubA@mail.gmail.com \
    --to=diego@zzamboni.org \
    --cc=emacs-orgmode@gnu.org \
    --cc=gmauer@gmail.com \
    --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).