[Top][All Lists]

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

Re: [AUCTeX] Can the hook `TeX-after-compilation-finished-functions' wor

From: Arash Esbati
Subject: Re: [AUCTeX] Can the hook `TeX-after-compilation-finished-functions' work as a file local variable?
Date: Wed, 11 Apr 2018 23:14:31 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3

address@hidden (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:


   %%% Local Variables:
   %%% mode: latex
   %%% TeX-master: t
   %%% eval: (add-hook 'TeX-after-compilation-finished-functions (lambda (x) 
(message "hello, world!")))
   %%% End:

Best, Arash

reply via email to

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