branch: elpa
commit ae34515f48c4124869025d17c70762c2f5ab941b
Author: Mosè Giordano <[email protected]>
Commit: Mosè Giordano <[email protected]>
Better control for presence of errors
* tex-buf.el (TeX-LaTeX-sentinel): Use `TeX-error-report-switches'
instead of `TeX-error-list'.
---
tex-buf.el | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/tex-buf.el b/tex-buf.el
index b271a98..1212ec7 100644
--- a/tex-buf.el
+++ b/tex-buf.el
@@ -1551,7 +1551,7 @@ Rerun to get mark in right position\\." nil t)
(md5 (current-buffer)))))
(push (cons idx-file t) LaTeX-idx-changed-alist)))
- (unless (memq 'error (mapcar #'car TeX-error-list))
+ (unless (plist-get TeX-error-report-switches (intern (TeX-master-file)))
(run-hook-with-args 'TeX-after-compilation-finished-functions
(with-current-buffer TeX-command-buffer
(expand-file-name