[email protected] (Diogo F. S. Ramos) writes:
> I'm setting the hook `TeX-after-compilation-finished-functions' as a
> file local variable, but the functions aren't being called after I
> compile my document. Shouldn't they?
>
> I wrote the following document as a test.
>
> \documentclass{article}
>
> \begin{document}
> At vero eos et accusamus et iusto odio dignissimos ducimus, qui
> blanditiis praesentium voluptatum deleniti atque corrupti, quos
> dolores et quas molestias excepturi sint, obcaecati cupiditate
> non-provident, similique sunt in culpa, qui officia deserunt mollitia
> animi, id est laborum et dolorum fuga.
> \end{document}
>
>
> % Local Variables:
> % TeX-after-compilation-finished-functions: ((lambda (x) (message "hello,
> world")))
> % End:
>
> I expected to see the message `hello, world' on the buffer *Messages*,
> but it didn't show up.
Hi Diogo,
try adding your function to the hook with `add-hook'; this works for me:
...
\end{document}
%%% Local Variables:
%%% mode: latex
%%% TeX-master: t
%%% eval: (add-hook 'TeX-after-compilation-finished-functions (lambda (x)
(message "hello, world!")))
%%% End:
Best, Arash
_______________________________________________
auctex mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/auctex