Re: [AUCTeX] Can the hook `TeX-after-compilation-finished-functions' work as a file local variable?

2018-04-13 Thread Diogo F. S. Ramos
> With the current AUCTeX code, it would be necessary to rely on an idea > such that >> Something like: > >> (lambda (file) >> (when (= file "/file/that/I/want") >> ...)) > in order to achieve Diogo's request. Oh, I see. Thank you, Ikumi. I'll do that.

Re: [AUCTeX] Can the hook `TeX-after-compilation-finished-functions' work as a file local variable?

2018-04-12 Thread Ikumi Keita
Hi Diogo and Arash, > 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. > % Local Variables: > % eval: (add-hook 'TeX-after-compilation-fini

Re: [AUCTeX] Can the hook `TeX-after-compilation-finished-functions' work as a file local variable?

2018-04-11 Thread Diogo F. S. Ramos
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{doc

Re: [AUCTeX] Can the hook `TeX-after-compilation-finished-functions' work as a file local variable?

2018-04-11 Thread Arash Esbati
d...@riseup.net (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? > >> try adding your function to the hook with `add-hook'; this work

Re: [AUCTeX] Can the hook `TeX-after-compilation-finished-functions' work as a file local variable?

2018-04-11 Thread Diogo F. S. Ramos
>> 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} > >%%

Re: [AUCTeX] Can the hook `TeX-after-compilation-finished-functions' work as a file local variable?

2018-04-11 Thread Arash Esbati
d...@riseup.net (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}