Function: TeX-revert-document-buffer

TeX-revert-document-buffer is a byte-compiled function defined in tex.el.

Signature

(TeX-revert-document-buffer FILE)

Documentation

Revert the buffer visiting FILE.

This function is intended to be used in TeX-after-compilation-finished-functions for users that view their compiled document with an emacs viewer such as doc-view-mode or pdf-view-mode. (Note that this function just calls revert-buffer in the respective buffer and thus requires that the corresponding mode defines a sensible revert-buffer-function.)

Source Code

;; Defined in ~/.emacs.d/elpa/auctex-14.1.2/tex.el
(defun TeX-revert-document-buffer (file)
  "Revert the buffer visiting FILE.
This function is intended to be used in
`TeX-after-compilation-finished-functions' for users that view
their compiled document with an emacs viewer such as
`doc-view-mode' or `pdf-view-mode'.  (Note that this function
just calls `revert-buffer' in the respective buffer and thus
requires that the corresponding mode defines a sensible
`revert-buffer-function'.)"
  (let ((buf (find-buffer-visiting file)))
    (when buf
      (with-current-buffer buf
        (revert-buffer nil t t)))))