Following solution is used to compile current buffer that is a LaTeX
file:
(defun my-run-latex () "Save all buffers and run LaTeX on the current master." (interactive) (let* ((inhibit-message t) (TeX-command-force "LaTeX") (TeX-clean-confirm t) (TeX-save-query nil) (master (TeX-master-file)) (process (and (stringp master) (TeX-process master)))) (TeX-save-document master) (when (and (processp process) (eq (process-status process) 'run)) (delete-process process)) (TeX-command-master)))
When I apply M-x my-run-latex
, I am able to compile the latex file. But when it is first applied, I see the following lines in the minibuffer:
When I ENTER
it continues compiling. Afterwards when I apply M-x my-run-latex
, the Master file:
line in the minibuffer does not show up and it compiles right away.
Is it possible to prevent Master file:
line to show up in the minibuffer when M-x my-run-latex
is first called?