Function: TeX-run-index
TeX-run-index is a byte-compiled function defined in tex.el.
Signature
(TeX-run-index NAME COMMAND FILE)
Documentation
Create a process for NAME using COMMAND to compile the index file.
Source Code
;; Defined in ~/.emacs.d/elpa/auctex-14.1.2/tex.el
(defun TeX-run-index (name command file)
"Create a process for NAME using COMMAND to compile the index file."
(let ((process (TeX-run-command name command file))
(element nil))
(setq TeX-sentinel-function #'TeX-index-sentinel)
;; Same cleaning as that for `LaTeX-idx-md5-alist' in `TeX-run-TeX'.
(while (setq element
;; `file' has been determined in `TeX-command-buffer', while
;; this function has `TeX-master-directory' as
;; `default-directory', then we have to expand `file' file-name
;; in the same directory of `TeX-command-buffer'.
(assoc (with-current-buffer TeX-command-buffer
(expand-file-name (TeX-active-master "idx")))
LaTeX-idx-changed-alist))
(setq LaTeX-idx-changed-alist (delq element LaTeX-idx-changed-alist)))
(if TeX-process-asynchronous
process
(TeX-synchronous-sentinel name file process))))