emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ist here a :post header arg for tangling?


From: Immanuel Litzroth
Subject: Re: ist here a :post header arg for tangling?
Date: Mon, 4 Jan 2021 16:38:38 +0100

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 <diego@zzamboni.org> 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 
> <immanuel.litzroth@gmail.com> 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 <diego@zzamboni.org> wrote:
>> >
>> > 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.
>> >>
>>
>>
>> --
>> -- 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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]