From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id MKG2GHs0819SVQAA0tVLHw (envelope-from ) for ; Mon, 04 Jan 2021 15:30:03 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id 6F9JFHs0819IIQAAbx9fmQ (envelope-from ) for ; Mon, 04 Jan 2021 15:30:03 +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 CE2AD9405D4 for ; Mon, 4 Jan 2021 15:30:02 +0000 (UTC) Received: from localhost ([::1]:59024 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kwRo0-0006dR-Bs for larch@yhetil.org; Mon, 04 Jan 2021 10:30:00 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:58046) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kwRn6-0006d8-6S for emacs-orgmode@gnu.org; Mon, 04 Jan 2021 10:29:04 -0500 Received: from mail-oi1-x22b.google.com ([2607:f8b0:4864:20::22b]:34075) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kwRn3-0003GA-6j for emacs-orgmode@gnu.org; Mon, 04 Jan 2021 10:29:03 -0500 Received: by mail-oi1-x22b.google.com with SMTP id s75so32503214oih.1 for ; Mon, 04 Jan 2021 07:29:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:reply-to:from:date:message-id :subject:to:cc; bh=P/YRrPpMnCxFcr3PO8l3CuL89LgdXRjBlpFN1dRU98c=; b=bj7aMBDcPE4V8Cbu2BPnzn3GKRIK3itJ4f4grL7oxjJf3RqfqCtYrehN6le+dV6pH2 8q5RHanvy3U8SrHAiQlKxjjVaQvQeqYOFXYN1liTTL9vJIXIELwk68gd79huODWtxLe/ FXLb96Fg0KpAlHPuunJgh2cZ2BX8xsuDS63QAXmNtNqGx/3Sd604pCr12lP/MqWQEdsb FKDFdwlSR8V3/COJ3KXxRPSRuuafJ+4J0kt3juEI1pfscflyZiQ+wcPKOqFdrqdfLXAH Pk1ksTjpAB9y6o/eey0C2VRZpF0ouorRsDEXtzLzuNRJh8axcjPk+p4Vyf//tEbklmxM Immw== 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:reply-to :from:date:message-id:subject:to:cc; bh=P/YRrPpMnCxFcr3PO8l3CuL89LgdXRjBlpFN1dRU98c=; b=KK/erksIPM+ti+m45XUUymNNOF59CqyvJohl8hFnxciiH4fb09rp7hoV6ZMjOsqBfL J09t4sQEDEg2OQPxxFsKDFxuxrhwri+xbigHz0ngb4XTSObhvu8FtYKsNPR3A1w2iVsZ e4ff7J3FPNZmFJHyLJzpCA1Obau7+xmks5a1FWVat9I7R73AFs3FjURrHADx68ODrZFH 5S6mVuwkpO9J5GqBEfzvt74cTvH1IV+noKGglSWRnIGnWOeRH1LatWJBL1LEyqDSGiKa eKeD98bfelR73Cjlx/NhMluwyj5E0UvvaRmzNbl2lzvflISFiB6AWsyU3ePbNAxF6kiw b9tQ== X-Gm-Message-State: AOAM5303bhRf7fT/W55AYDmDmM4H/99W10K8j54VqY2MPZ1p8IuPcPtb 4gGIL61QuOLdihPmq65wjzIj/BiFOhzEhz7XyA0= X-Google-Smtp-Source: ABdhPJyR9z41o2PkRfij0bxcoNWMwn0Yua5VkdLItNOeMGXoXzXGYb7CL18uyGpEsaRcarOY4TV4yT3UQjENG8M4IEU= X-Received: by 2002:aca:fd91:: with SMTP id b139mr17484120oii.67.1609774139590; Mon, 04 Jan 2021 07:28:59 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: George Mauer Date: Mon, 4 Jan 2021 09:28:48 -0600 Message-ID: Subject: Re: ist here a :post header arg for tangling? To: Immanuel Litzroth Content-Type: multipart/alternative; boundary="000000000000c2525b05b814bf18" Received-SPF: pass client-ip=2607:f8b0:4864:20::22b; envelope-from=gmauer@gmail.com; helo=mail-oi1-x22b.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-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: , Reply-To: gmauer@gmail.com Cc: emacs-orgmode Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -2.03 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=bj7aMBDc; dmarc=pass (policy=none) header.from=gmail.com; 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: CE2AD9405D4 X-Spam-Score: -2.03 X-Migadu-Scanner: scn0.migadu.com X-TUID: 9vQyj2PYUl65 --000000000000c2525b05b814bf18 Content-Type: text/plain; charset="UTF-8" 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 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. > --000000000000c2525b05b814bf18 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
So like I said, I would like to run some code to post-proc= ess 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 al= l tangles
- Running a code-formatter such as prettierjs=C2=A0(or = the python one which name escapes me - autopep?) and potentially de-tanglin= g back

I realize some of these things I could do w= ith a file watcher, but not really the ones that require modifying the docu= ment 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 th= at. 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.
--000000000000c2525b05b814bf18--