From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id iJKGNr8281/PbAAA0tVLHw (envelope-from ) for ; Mon, 04 Jan 2021 15:39:43 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id GMxSMr82818hAgAAB5/wlQ (envelope-from ) for ; Mon, 04 Jan 2021 15:39:43 +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 38E04940148 for ; Mon, 4 Jan 2021 15:39:43 +0000 (UTC) Received: from localhost ([::1]:40920 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kwRxO-0002m1-60 for larch@yhetil.org; Mon, 04 Jan 2021 10:39:42 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:60608) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kwRwz-0002li-Bb for emacs-orgmode@gnu.org; Mon, 04 Jan 2021 10:39:17 -0500 Received: from mail-io1-xd30.google.com ([2607:f8b0:4864:20::d30]:41582) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kwRwx-0006hd-Jn for emacs-orgmode@gnu.org; Mon, 04 Jan 2021 10:39:17 -0500 Received: by mail-io1-xd30.google.com with SMTP id t8so25349440iov.8 for ; Mon, 04 Jan 2021 07:39:15 -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=a4czfACsvhQUXzdJn29OJKZUgl3TPzGbc4tRrQaR3v0=; b=SS63XOvlY+LuCzhOo/7PwOLz/WcgPHCu1PWGVg825U7c22UNPY6kVmvVXtRLNbHtPc rLqdce1xLzxMTHwd/msUV63cixc2FJCjSmvaUcBGuaRUBjBnD+bIG5zcByhb3y5A+M5R rlFM2IegjnjCLkdHyFXJ5mJeKW6RqNrE1FEhwnMv25d6DxAlP5tegXzyKEdOJFlB1ho2 8MlgYxA1PHhXuzxF5g62OTGwWXSuGaNzhlYoMv7smt5Foq4cGNyRb/E/htqXsAAzuxlc MywddDqqG2Yobty29EYvG0iTJ94dEsxOYHF+BjR7rR2q1QMprKBW4sCab1AokGVX6G2+ SKuA== 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=a4czfACsvhQUXzdJn29OJKZUgl3TPzGbc4tRrQaR3v0=; b=EMUPxtpxwapPZFaSortrSOAkSfTfLjF0wiiGpVBBaTUvnUHQb7WO6fwaAn1pXW+4aq XLwFD0b2UHA7yHQqf9/K4r5mtjFBNKyX3y8U1n6ylrqega9zZxuI8u+8NMcbFjNW34Iq r/JS6bULEPiF16ow/jgz9Xd8M34QWLSzVid/dn+354rrkkY0pJyFdNnIuk3o5SXaTQ+8 /6ROlwvMN9AdKqY9ZI7wJCZcUZNMzf4/7OehM4onNxvRhs1bWWlctizQ1F9HWVfgGawQ wsMnsePu6YrIS+PxTYk5hs0/gy/X7CR4yTciXUKw7/xL8uCtbf0vvSoYzcbhm/E/cS/j qnMw== X-Gm-Message-State: AOAM531MnIm74CRJIT0e5LOj9+7fwYhHrA/fJ/+w7VViatdguOfD8av8 +O14TA79HfMO1HDSxNpnEjsaafOC3X1xgOMoOw== X-Google-Smtp-Source: ABdhPJwzcSXaWEZsfhQYpcoiKs9A04Wdel9LV8A0UWRdrKD1OOUhYiaFBdLmtS9GZlRnSEIhFKPNkckFPs/w5ntJr6w= X-Received: by 2002:a02:6557:: with SMTP id u84mr61795466jab.82.1609774754606; Mon, 04 Jan 2021 07:39:14 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Immanuel Litzroth Date: Mon, 4 Jan 2021 16:38:38 +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::d30; envelope-from=immanuel.litzroth@gmail.com; helo=mail-io1-xd30.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=SS63XOvl; 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: 38E04940148 X-Spam-Score: -2.03 X-Migadu-Scanner: scn0.migadu.com X-TUID: RlmE5EnZb3vf I also seem to remember that the buffer you are dropped into after tangling doesn't even have the correct major mode set. Immanuel On Mon, Jan 4, 2021 at 4:11 PM Diego Zamboni wrote: > > Agree. It should be possible to make the hook file-local, but still it's = not trivial to have good control over where and how the changes are made. > > --Diego > > > On Mon, Jan 4, 2021 at 3:51 PM Immanuel Litzroth wrote: >> >> 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= that will be run with the tangled code in a temporary buffer. I couldn't f= ind 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 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 decid= e 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 ac= cess 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 tang= led. Is there a header-arg for that? >> >> >> >> >> >> >> >> -- >> >> -- Researching the dual problem of finding the function that has a >> >> given point as fixpoint. >> >> >> >> >> -- >> -- 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.