[Top][All Lists]

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

Re: [AUCTeX] auctex Digest, Vol 129, Issue 18: Setup for new PDF-Tools

From: Tassilo Horn
Subject: Re: [AUCTeX] auctex Digest, Vol 129, Issue 18: Setup for new PDF-Tools
Date: Mon, 23 Nov 2015 07:01:21 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 AquaMail/ (build: 22000040)


I think it's easy enough to check TeX-engine in the hook function so that one hook is enough. But then a more generic name would be better. How about TeX-after-compilation-finished-hook?


On November 22, 2015 23:04:23 Mosè Giordano <address@hidden> wrote:

Ciao Andrea,

2015-11-22 22:24 GMT+01:00 Andrea De Michele <address@hidden>:
I also use pdf-tools as pdf viewer with auctex, and the auto refresh of
the viewer buffer works (with auctex 11.89) but only with LaTeX, not
with ConTeXt.

I checked that TeX-after-TeX-LaTeX-command-finished-hook is not used
with ConTeXt-mode.

I have changed the function TeX-ConTeXt-sentinel in context.el adding at
the end

(unless TeX-error-list
    (run-hook-with-args 'TeX-after-TeX-LaTeX-command-finished-hook
                        (with-current-buffer TeX-command-buffer
                           (TeX-active-master (TeX-output-extension))))))

and now the auto refresh works also in ConTeXt.

There is a better way to enable the auto refresh for ConTeXt?

It is possible to include in AUCTeX the auto refresh feature also for

Makes sense to me, but I'm not sure about the name of the hook,
whether we should have a different hook for each sentinel (it may
cause code duplication on users' side but they have more control on
what to run after running a certain command) or a single hook for
every sentinel, but in this case we should change the name making it
more general.  I'm inclined toward the first option.  Tassilo, what do
you think?


reply via email to

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