Function: TeX-PDF-mode-parsed
TeX-PDF-mode-parsed is a byte-compiled function defined in tex.el.
Signature
(TeX-PDF-mode-parsed ARG)
Documentation
Change TeX-PDF-mode(var)/TeX-PDF-mode(fun) to ARG based on parsing.
If this conflicts with previous parsed settings, just use the default. If an explicit setting is already established, don't do anything.
Source Code
;; Defined in ~/.emacs.d/elpa/auctex-14.1.2/tex.el
(defun TeX-PDF-mode-parsed (arg)
"Change `TeX-PDF-mode' to ARG based on parsing.
If this conflicts with previous parsed settings,
just use the default. If an explicit setting is
already established, don't do anything."
;; Basically we have the following situations:
;; TeX-PDF-mode-parsed (local-variable-p 'TeX-PDF-mode):
;; nil nil : virgin state
;; nil t : stably set state (possibly because of conflicting parse info)
;; t t : non-conflicting parsed info
(if TeX-PDF-mode-parsed
(unless (eq TeX-PDF-mode arg)
(TeX-PDF-mode (if (default-value 'TeX-PDF-mode) 1 0)))
(unless (local-variable-p 'TeX-PDF-mode (current-buffer))
(TeX-PDF-mode (if arg 1 0))
(setq TeX-PDF-mode-parsed t))))