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 4CEJLJ0r819GcAAA0tVLHw (envelope-from ) for ; Mon, 04 Jan 2021 14:52:13 +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 sAq+J50r81+WagAA1q6Kng (envelope-from ) for ; Mon, 04 Jan 2021 14:52:13 +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 639259405D4 for ; Mon, 4 Jan 2021 14:52:08 +0000 (UTC) Received: from localhost ([::1]:34152 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kwRDK-0008J5-56 for larch@yhetil.org; Mon, 04 Jan 2021 09:52:06 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:48702) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kwRCo-0008Iu-Qv for emacs-orgmode@gnu.org; Mon, 04 Jan 2021 09:51:34 -0500 Received: from mail-il1-x129.google.com ([2607:f8b0:4864:20::129]:40792) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kwRCn-0007Aw-0w for emacs-orgmode@gnu.org; Mon, 04 Jan 2021 09:51:34 -0500 Received: by mail-il1-x129.google.com with SMTP id e7so21790331ile.7 for ; Mon, 04 Jan 2021 06:51:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=XSxzQqyIMAv7Ldz2jygC2bEP24D13U5genEhbC+5MQk=; b=Vf+zPGxXkLkn6TU7Q4wxOoesoOBIUwaTocxqlhPBrIh80JwsOhF8gr87NDvcwwlJ6g jGnCzBB3+4ZIpBp202qDTy9MubgocTrY1TMaIkzJ9HrJMMrazhQs368+X23m2zG4gL4k tBI2Nhvc01Ymk/pQ0CupLLnLqyF4IXe/Kv+AzBgTbZ0Oou8t/M9+OCARC70jA/MmYXDu WBObPqH8hS+LTW8fTAL45pa9oxhFyURCy5oe3YCq8fKT11ytgg/7m39NcP6x6rlbpkkl 5190eYNkkVtXN/RBItVksDjtCkmN5YEMF49JzQnd6i0az1kSwPOljtnogwgUtAltbBXx /fyg== 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:content-transfer-encoding; bh=XSxzQqyIMAv7Ldz2jygC2bEP24D13U5genEhbC+5MQk=; b=FXpYOu4xwM9VrgF7B2OeRAWf5oDtPaVZWM6LZTLT28DY6tn5OqofzXOR5na+iXc/NJ fgLqtzWIAzPwPd32L6F03MkmRmjV1ZleawlIVQ/lR4Mn6pt5ZuvjdH5KNhtfLh6aPerE c+1vgnbnMPBhem/etph+y7fyK74AP5sif3KgD4Xo5whhv/K+F9zHvpRIMDyRZzVEan/W CZbP5/lMnjAnn1iD7Kr3SZgBDTcU56xqKY6MgLHqS46PRxFso7cmeIu5NLxvgkjz61Yv F7VtE097c71vhn5G7G8rNPRLLChB4z4y2+rveTCGokMvuKKPE2vNP9QegDLsKLt5S7VF rSpw== X-Gm-Message-State: AOAM5319b2yUzn+qpNE6qCqSN5jm7HYiwloT+R/djdvSqOqajpXHpV+u uPyZyMQZ5fmGHWQrULS/c7EslYhl9Y+QKyG5qg== X-Google-Smtp-Source: ABdhPJwlmJ2GR4ovsENM0/XT/fT+CmxAl/ogHmyMCtfSzdvXgbH/NL80mbruU0rNOIzliDEvhlfKvu3p37PUs7hDzhs= X-Received: by 2002:a92:79c7:: with SMTP id u190mr69645450ilc.140.1609771891170; Mon, 04 Jan 2021 06:51:31 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Immanuel Litzroth Date: Mon, 4 Jan 2021 15:50:55 +0100 Message-ID: Subject: Re: ist here a :post header arg for tangling? To: Diego Zamboni Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2607:f8b0:4864:20::129; envelope-from=immanuel.litzroth@gmail.com; helo=mail-il1-x129.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, 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: , 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: -2.03 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=Vf+zPGxX; 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: 639259405D4 X-Spam-Score: -2.03 X-Migadu-Scanner: scn1.migadu.com X-TUID: azF3uE9ex9fr There's that, but you're not gonna do much with that since it is global to emacs. If you're brimming with vigour you might achieve what you want by rebinding that each time you tangle to do the correct thing. Not much information is available in that hook, you get dropped into a temp buffer containing the result of tangling. Immanuel On Mon, Jan 4, 2021 at 3:07 PM Diego Zamboni wrote: > > There's =3Dorg-babel-post-tangle-hook=3D, which AFAICT specifies hooks th= at 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.or= g/manual/Extracting-Source-Code.html#Hooks-3 > > --Diego > > > > > > On Fri, Jan 1, 2021 at 1:31 PM Immanuel Litzroth 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 w= hat >> 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 acces= s 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. >> --=20 -- Researching the dual problem of finding the function that has a given point as fixpoint.