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: Ikumi Keita
Subject: Re: [AUCTeX] Can the hook `TeX-after-compilation-finished-functions' work as a file local variable?
Date: Fri, 13 Apr 2018 15:35:08 +0900

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-finished-functions (lambda (x) 
> (message "hello, world")) nil t)
> % End:

When `TeX-LaTeX-sentinel' runs
`TeX-after-compilation-finished-functions', the current buffer is the
process output buffer *xxx output*.  Thus the local value of the latex
document buffer is not consulted.

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.

Regards,
Ikumi Keita



reply via email to

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