From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id 0NBjHlch819fCQAA0tVLHw (envelope-from ) for ; Mon, 04 Jan 2021 14:08:23 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id 4Po8Glch81/0SQAA1q6Kng (envelope-from ) for ; Mon, 04 Jan 2021 14:08:23 +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 67D609402D4 for ; Mon, 4 Jan 2021 14:08:22 +0000 (UTC) Received: from localhost ([::1]:51150 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kwQWy-0006Po-LI for larch@yhetil.org; Mon, 04 Jan 2021 09:08:20 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:39478) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kwQWR-0006PA-7b for emacs-orgmode@gnu.org; Mon, 04 Jan 2021 09:07:47 -0500 Received: from mail-ej1-x632.google.com ([2a00:1450:4864:20::632]:38385) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kwQWO-00013C-7q for emacs-orgmode@gnu.org; Mon, 04 Jan 2021 09:07:46 -0500 Received: by mail-ej1-x632.google.com with SMTP id 6so36931899ejz.5 for ; Mon, 04 Jan 2021 06:07:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zzamboni-org.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=7TEDxZkokHODeLMCzrDbTyzWSXFZNuQD2InpEJMiwc8=; b=nsZ1jUr0NB0DUIzJfQXJltz0etX8x7/H0n2MVMShXgbzx/R9lt5/PbMuzCREnm4naI qwuBJjJLJ5SbqbvRFkxkMidinMKKcbax5QuxdtMoXNdGnSl1DCzABeNVVWrLXT2mRx+Y 05MPTK99B3vHauB/HTM5bHyy7HGRC96hX4XTjxeEQIp+Zn/lxAPobl48SzCZ4R0j1vgx 8kq6cflsnDbJvahqoPQMz5c5BurtOix0oA2Yian3LcFJrMqGe7f4Xd4EBPtHS88JjEju BzSamJlZttCJF5ktfM82s6tHJRxAKpG8qDV0sZwS9SjIjGI+1thYcwsk53IGg7XtoYxS AoPQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=7TEDxZkokHODeLMCzrDbTyzWSXFZNuQD2InpEJMiwc8=; b=ORQXa8JfGU0cCbaEA4pNyNrMQOjDTxZzImKFyy31qgNi1C0wS0YAW/FH4cmLD9jWsP BiS27clmjfUEX7JlRLdfu3gd8kg1ZRqSKsM7RRGhNJlFjTzNfnPyLY46eX8W4ZhatI40 PCOCe2z5Tx9QwrnHn8kR8TTOqGFIx4tW8LKNr4+W3o7W/vsEpK/E1gYxD1OMDYX9oRpo CRoQhl2L/n5e2DQlyK+J6JjVD0zOD2Ros3cZjApqCKfpY9YIpCimoV2oIMw1qNEYvmO9 FmQgQ/r5uHDJCIys1KOieqN7yn0C3BTpyLY8a/6t7uoaHgKPq1U+k3TXOA9MV65vTvJT sCxw== X-Gm-Message-State: AOAM5307dB1yL45aCQ8WnqyUBc1kOmMlu6L82jQpJ/6KQUtx9CzjdzeP Af3LcaGLKBNe0e7CWQuxKIwQbjqWcW8BFD1kWPH8rQ== X-Google-Smtp-Source: ABdhPJwf9TJWVDkLlvk1ibppQR7HoAk/btW/Dfa4KbisM64U1i20OkNbsEB4IuLHT7rah6TRJQRUrTL2kSIqUnIG7Xo= X-Received: by 2002:a17:906:b307:: with SMTP id n7mr65726427ejz.102.1609769261438; Mon, 04 Jan 2021 06:07:41 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Diego Zamboni Date: Mon, 4 Jan 2021 15:07:30 +0100 Message-ID: Subject: Re: ist here a :post header arg for tangling? To: Immanuel Litzroth Content-Type: multipart/alternative; boundary="000000000000ffad7f05b8139cbb" Received-SPF: none client-ip=2a00:1450:4864:20::632; envelope-from=diego@zzamboni.org; helo=mail-ej1-x632.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_NONE=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: , Cc: gmauer@gmail.com, emacs-orgmode Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -1.53 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=zzamboni-org.20150623.gappssmtp.com header.s=20150623 header.b=nsZ1jUr0; dmarc=none; 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: 67D609402D4 X-Spam-Score: -1.53 X-Migadu-Scanner: scn1.migadu.com X-TUID: gNMDSYPKNJ1T --000000000000ffad7f05b8139cbb Content-Type: text/plain; charset="UTF-8" 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 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. > > --000000000000ffad7f05b8139cbb Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
There's =3Dorg-babel-post-tangle-hook=3D, which AF= AICT=C2=A0specifies hooks that will be run with the tangled code in a tempo= rary buffer. I couldn't find much documentation nor examples, but it is= mentioned at=C2=A0https://orgmode.org/manual/Extracting-Source-Code.html#H= ooks-3

--Diego




On Fri, Jan 1, 2021 at 1:31 PM Immanuel Litzr= oth <immanuel.litzroth@gm= ail.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 acce= ss 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 tan= gled. Is there a header-arg for that?



--
-- Researching the dual problem of finding the function that has a
given point as fixpoint.

--000000000000ffad7f05b8139cbb--