branch: elpa
commit 88fbf8021c7da3c2bf14a646663bd0eb0ccc1448
Author: Mosè Giordano <[email protected]>
Commit: Mosè Giordano <[email protected]>
Fix in TeX sentinels
* tex-buf.el (TeX-TeX-sentinel, TeX-LaTeX-sentinel): Use
`TeX-error-overview-make-entries' to test presence of errors or
warnings. This is the same test carried in `TeX-master-directory' and
prevents from getting an error when
`TeX-error-overview-open-after-TeX-run' is non-nil but
`TeX-debug-warnings' and/or `TeX-debug-bad-boxes' are nil.
---
tex-buf.el | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/tex-buf.el b/tex-buf.el
index 58e1602..2b1e1a3 100644
--- a/tex-buf.el
+++ b/tex-buf.el
@@ -1358,7 +1358,9 @@ errors or warnings to show."
(progn
(if TeX-parse-all-errors
(TeX-parse-all-errors))
- (if (and TeX-error-overview-open-after-TeX-run TeX-error-list)
+ (if (and TeX-error-overview-open-after-TeX-run
+ (TeX-error-overview-make-entries
+ (TeX-master-directory)))
(TeX-error-overview)))
(message (concat name ": formatted " (TeX-current-pages)))
(if (with-current-buffer TeX-command-buffer
@@ -1461,7 +1463,9 @@ Open the error overview if
errors or warnings to show."
(if TeX-parse-all-errors
(TeX-parse-all-errors))
- (if (and TeX-error-overview-open-after-TeX-run TeX-error-list)
+ (if (and TeX-error-overview-open-after-TeX-run
+ (TeX-error-overview-make-entries
+ (TeX-master-directory)))
(TeX-error-overview))
(cond ((TeX-TeX-sentinel-check process name))
((and (save-excursion