Function: TeX-command-query
TeX-command-query is a byte-compiled function defined in tex.el.
Signature
(TeX-command-query NAME-OR-FILE-FN)
Documentation
Query the user for what TeX command to use.
Source Code
;; Defined in ~/.emacs.d/elpa/auctex-14.1.2/tex.el
(defun TeX-command-query (name-or-file-fn)
"Query the user for what TeX command to use."
(let* ((default (TeX-command-default name-or-file-fn))
(completion-ignore-case t)
(answer (or TeX-command-force
(completing-read
(format-prompt "Command" default)
(TeX-mode-specific-command-list major-mode) nil t
nil 'TeX-command-history default))))
;; If the answer is "latex" it will not be expanded to "LaTeX"
(setq answer (car-safe (assoc-string answer TeX-command-list t)))
(if (and answer
(not (string-equal answer "")))
answer
default)))