tex-offer-save

tex-offer-save is a variable defined in `tex-mode.el'.
Its value is
t


Documentation:
If non-nil, ask about saving modified buffers before M-x tex-file is run.

You can customize this variable.