emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [O] How does org-babel-post-tangle-hook work?


From: Eric Schulte
Subject: Re: [O] How does org-babel-post-tangle-hook work?
Date: Sun, 03 Aug 2014 21:22:57 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux)

This says that when the hook is executed, the current buffer (as
identified by the `current-buffer' function) will be a buffer visiting
the file of the tangled code.

Grant Rettke <address@hidden> writes:

> Hi,
>
> In this document
>
> http://orgmode.org/manual/Extracting-source-code.html#Extracting-source-code
>
> the hook 'org-babel-post-tangle-hook is explained as
>
> ,----
> | This hook is run from within code files tangled by org-babel-tangle.
> Example applications could include post-processing, compilation or
> evaluation of tangled code files.
> `----
>
> I know what a hook is and how to use them and where they run.
>
> My trouble is that I don't understand what this documentation is saying.
>
> Is it saying that if this hook exists in a file that was tangled by
> org that it will be executed? If so does it only work for elisp files
> or any kind of file?
>
> Kind regards,
>
> Grant Rettke | ACM, ASA, FSF, IEEE, SIAM
> address@hidden | http://www.wisdomandwonder.com/
> “Wisdom begins in wonder.” --Socrates
> ((λ (x) (x x)) (λ (x) (x x)))
> “Life has become immeasurably better since I have been forced to stop
> taking it seriously.” --Thompson
>

-- 
Eric Schulte
https://cs.unm.edu/~eschulte
PGP: 0x614CA05D (see https://u.fsf.org/yw)



reply via email to

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