Function: TeX-save-document

TeX-save-document is an interactive and byte-compiled function defined in tex.el.

Signature

(TeX-save-document NAME-OR-FILE-FN)

Documentation

Save all files belonging to the current document.

Return non-nil if document needs to be re-TeX'ed. In Lisp program, NAME-OR-FILE-FN specifies the current document. It is either the master name without extension or the function TeX-master-file.

Key Bindings

Source Code

;; Defined in ~/.emacs.d/elpa/auctex-14.1.2/tex.el
;;; Interactive Commands
;;
;; The general idea is, that there is one process and process buffer
;; associated with each master file, and one process and process
;; buffer for running TeX on a region.
;;
;; Some user commands operates on ``the'' process, which is the last
;; process still running or already finished.  Note that you cannot
;; run more than one process simultaneously, including preview by
;; preview-latex, because process filters and sentinels refer to
;; certain set of global variables which each invokation of the
;; process overwrites.  If you dare to do, the result is thus
;; unpredictable.

(defun TeX-save-document (name-or-file-fn)
  "Save all files belonging to the current document.
Return non-nil if document needs to be re-TeX'ed.
In Lisp program, NAME-OR-FILE-FN specifies the current document.
It is either the master name without extension or the function
`TeX-master-file'."
  (interactive (list #'TeX-master-file))
  (TeX-check-files (TeX--concat-ext name-or-file-fn (TeX-output-extension))
                   (cons (TeX--concat-ext name-or-file-fn) (TeX-style-list))
                   TeX-file-extensions))