Function: reftex-toc-check-docstruct
reftex-toc-check-docstruct is a byte-compiled function defined in
reftex-toc.el.gz.
Signature
(reftex-toc-check-docstruct)
Documentation
Check if the current docstruct is fully up to date and all files visited.
Source Code
;; Defined in /usr/src/emacs/lisp/textmodes/reftex-toc.el.gz
(defun reftex-toc-check-docstruct ()
"Check if the current docstruct is fully up to date and all files visited."
;; We do this by checking if all sections are on the right position
(let ((docstruct (symbol-value reftex-docstruct-symbol))
entry marker empoint)
(catch 'exit
(while (setq entry (pop docstruct))
(if (eq (car entry) 'toc)
(progn
(setq marker (nth 4 entry)
empoint (nth 8 entry))
(if (not (and (markerp marker)
(marker-buffer marker)
(= (marker-position marker) empoint)))
(throw 'exit nil)))))
t)))