Function: reftex-check-parse-consistency
reftex-check-parse-consistency is a byte-compiled function defined in
reftex.el.gz.
Signature
(reftex-check-parse-consistency)
Documentation
Check if parse file is consistent, throw an error if not.
Source Code
;; Defined in /usr/src/emacs/lisp/textmodes/reftex.el.gz
(defun reftex-check-parse-consistency ()
"Check if parse file is consistent, throw an error if not."
;; Check if the master is the same: when moving a document, this will see it.
(let* ((real-master (reftex-TeX-master-file))
(parsed-master
(nth 1 (assq 'bof (symbol-value reftex-docstruct-symbol)))))
;; Skip this check for buffer objects.
(unless (equal (reftex--get-truename real-master)
(reftex--get-truename parsed-master))
(message "Master file name in load file is different: %s versus %s"
parsed-master real-master)
(error "Master file name error")))
;; Check for the existence of all document files
;;; (let* ((all (symbol-value reftex-docstruct-symbol)))
;;; (while all
;;; (when (and (eq (car (car all)) 'bof)
;;; (not (file-regular-p (nth 1 (car all)))))
;;; (message "File %s in saved parse info not available" (cdr (car all)))
;;; (error "File not found"))
;;; (setq all (cdr all))))
)