Made build-view always recompile tex

This commit is contained in:
Karolis Velicka 2015-04-23 20:00:31 +01:00 committed by syl20bnr
parent 2e389089ea
commit a074122fc2

View file

@ -13,13 +13,12 @@
(progn
(defun auctex/build-view ()
(interactive)
(if (buffer-modified-p)
(progn
(let ((TeX-save-query nil))
(TeX-save-document (TeX-master-file)))
(setq build-proc (TeX-command "LaTeX" 'TeX-master-file -1))
(set-process-sentinel build-proc 'auctex/build-sentinel))
(TeX-view)))
(TeX-view))
(defun auctex/build-sentinel (process event)
(if (string= event "finished\n")