auctex
[Top][All Lists]
Advanced

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

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


From: Diogo F. S. Ramos
Subject: Re: [AUCTeX] Can the hook `TeX-after-compilation-finished-functions' work as a file local variable?
Date: Wed, 11 Apr 2018 18:47:24 -0300

>>>> 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?
>>
>>> 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:

>> Ah, thank you, Arash.  But I think then the variable
>> `TeX-after-compilation-finished-functions' won't be file local.

> Set the LOCAL argument to t.  It should do the trick.

Good idea, Arash.  Unfortunately, the function still isn't executed,
even tho the variable `TeX-after-compilation-finished-functions' is
local in the buffer and the function shows up when I describe it.

This is the document I tried:

--8<---------------cut here---------------start------------->8---
\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:
% eval: (add-hook 'TeX-after-compilation-finished-functions (lambda (x) 
(message "hello, world")) nil t)
% End:
--8<---------------cut here---------------end--------------->8---



reply via email to

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