Hi,

I use both plain TeX and ConTeXt, and I use pdf-tools (v20260102.1101) to
look at the created PDFs.

In my 'TeX-mode-hook I have (among other things)
    (load-library "pdf-tools-autoloads.el")
    (pdf-tools-install)
    (setq TeX-view-program-selection '((output-pdf "PDF Tools"))
          TeX-source-correlate-start-server t)
    (add-hook 'TeX-after-compilation-finished-functions
              #'TeX-revert-document-buffer)

When using both ConTeXt and plain TeX, upon initial compilation and C-c C-v,
the window splits into two, and I see the PDF in one window.

When I re-compile, in ConTeXt, the PDF is automatically refreshed, but this
does not happen with plain TeX.  I do see
        TeX: formatted {<n>} pages(s)
but the PDF file is not updated.

If I then execute
        (TeX-revert-document-buffer "<filename>.pdf")
the PDF file updates.


I have confirmed that TeX-after-compilation-finished-functions's value is
        (TeX-revert-document-buffer)
while I am editing the plain TeX file (so it didn't get clobbered
somewhere).

And if I am "in" the PDFView window, revert-buffer-function is
        pdf-view-revert-buffer
so that seems to be OK, and executing 
        C-M-: (pdf-view-revert-buffer)
updates the PDF (after asking me to answer a yes-or-no question).

But other than those things, I'm not sure how to track this down.

Can anyone either tell me what I am doing wrong, or suggest where I should
look for problems?

Thanks.

                                Jim

Reply via email to