branch: main
commit 8c7c954b62709cc7a964f4022f271f4ce705b640
Author: Arash Esbati <[email protected]>
Commit: Arash Esbati <[email protected]>
Ignore "ignored error" messages
* tex.el (TeX-TeX-sentinel-check): Don't pay attention to "ignored
error" messages emitted by the typesetting engine. See also:
https://github.com/latex3/latex2e/issues/1907
(Bug#80102)
---
tex.el | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/tex.el b/tex.el
index 601855bf..e7948780 100644
--- a/tex.el
+++ b/tex.el
@@ -8599,7 +8599,8 @@ Return nil only if no errors were found."
"dvi")))))))
(if process (TeX-format-mode-line process))
(if (catch 'found
- (while (re-search-forward "^\\(?:!\\|\\(.+?\\):[0-9]+:\\) " nil t)
+ (while (and (re-search-forward "^\\(?:!\\|\\(.+?\\):[0-9]+:\\) " nil t)
+ (not (looking-at-p "ignored error: ")))
(if (or (not (match-beginning 1))
;; Ignore non-error warning. (bug#55065)
(file-exists-p (TeX-match-buffer 1)))