Function: reftex-all-document-files
reftex-all-document-files is an autoloaded and byte-compiled function
defined in reftex-parse.el.gz.
Signature
(reftex-all-document-files &optional RELATIVE)
Documentation
Return a list of all files belonging to the current document.
When RELATIVE is non-nil, give file names relative to directory of master file.
Source Code
;; Defined in /usr/src/emacs/lisp/textmodes/reftex-parse.el.gz
;; NB this is a global autoload - see reftex.el.
;;;###autoload
(defun reftex-all-document-files (&optional relative)
"Return a list of all files belonging to the current document.
When RELATIVE is non-nil, give file names relative to directory
of master file."
(let* ((all (symbol-value reftex-docstruct-symbol))
(master-dir (file-name-directory (reftex-TeX-master-file)))
(re (concat "\\`" (regexp-quote master-dir)))
file-list tmp file)
(while (setq tmp (assoc 'bof all))
(setq file (nth 1 tmp)
all (cdr (memq tmp all)))
(and relative
(string-match re file)
(setq file (substring file (match-end 0))))
(push file file-list))
(nreverse file-list)))