branch: externals/auctex
commit f1bcbe3ee6f66bff7f9ffd280829babf28ddf525
Author: Mosè Giordano <[email protected]>
Commit: Mosè Giordano <[email protected]>
Improve LaTeX-warnings-regexp
* tex-buf.el (LaTeX-warnings-regexp): Catch also "LaTeX Font" warnings.
---
tex-buf.el | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/tex-buf.el b/tex-buf.el
index 2bd6d21..655faeb 100644
--- a/tex-buf.el
+++ b/tex-buf.el
@@ -1398,8 +1398,13 @@ Return nil ifs no errors were found."
(setq TeX-command-next TeX-command-Show))
nil))
+;; This regexp should catch warnings of the type
+;; LaTeX Warning: ...
+;; LaTeX Font Warning: ...
+;; Package xyz123 Warning: ...
+;; Class xyz123 Warning: ...
(defvar LaTeX-warnings-regexp
- "\(?:LaTeX [-A-Za-z0-9]*\|\(?:Class\|Package\) [-A-Za-z0-9]+ \)Warning:"
+ "\(?:LaTeX\|Class\|Package\) [-A-Za-z0-9]* ?Warning:"
"Regexp matching LaTeX warnings.")
(defun TeX-LaTeX-sentinel-has-warnings ()
_______________________________________________
auctex-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/auctex-devel