emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/auctex 0c03e4a 36/57: Catch expl3 warnings


From: Tassilo Horn
Subject: [elpa] externals/auctex 0c03e4a 36/57: Catch expl3 warnings
Date: Tue, 25 Jul 2017 14:02:33 -0400 (EDT)

branch: externals/auctex
commit 0c03e4ac6042e7c19e4202b6d95c8c515145d264
Author: Mosè Giordano <address@hidden>
Commit: Mosè Giordano <address@hidden>

    Catch expl3 warnings
    
    * tex-buf.el (LaTeX-warnings-regexp): Adapt regexp to the style of expl3
    warnings.
    * tests/tex/error-parsing.el (TeX-error-parsing-expl3-warnings): New test 
for
    expl3 warnings.
---
 tests/tex/error-parsing.el | 19 +++++++++++++++++++
 tex-buf.el                 |  2 +-
 2 files changed, 20 insertions(+), 1 deletion(-)

diff --git a/tests/tex/error-parsing.el b/tests/tex/error-parsing.el
index 7193db6..3da46c1 100644
--- a/tests/tex/error-parsing.el
+++ b/tests/tex/error-parsing.el
@@ -121,6 +121,25 @@ ABD: EveryShipout initializing macros"
               0 "LaTeX Warning: There were undefined references.\n" nil nil 
nil 2805 nil)
 ))))
 
+(ert-deftest TeX-error-parsing-expl3-warnings ()
+  "Test parsing of expl3 warnings."
+  (should (equal
+          (with-temp-buffer
+            (setq TeX-debug-warnings t
+                  TeX-debug-bad-boxes t)
+             (insert
+             "*************************************************
+* xsim warning: \"rerun\"
+* 
+* Exercise properties may have changed. Rerun to get them synchronized.
+*************************************************
+")
+             (TeX-parse-all-errors)
+            TeX-error-list)
+          '((warning nil nil "* xsim warning: \"rerun\"" 0
+                     "* xsim warning: \"rerun\"\n* \n* Exercise properties may 
have changed. Rerun to get them 
synchronized.\n*************************************************\n"
+                     nil nil nil 200 nil)))))
+
 ;; See https://lists.gnu.org/archive/html/auctex/2017-04/msg00007.html.
 (ert-deftest TeX-LaTeX2e-date ()
   "Test parsing of different LaTeX2e date formats."
diff --git a/tex-buf.el b/tex-buf.el
index 5fff109..9659e07 100644
--- a/tex-buf.el
+++ b/tex-buf.el
@@ -1531,7 +1531,7 @@ Return nil ifs no errors were found."
 ;;   Package xyz123 Warning: ...
 ;;   Class xyz123 Warning: ...
 (defvar LaTeX-warnings-regexp
-  "\\(?:LaTeX\\|Class\\|Package\\) [-A-Za-z0-9]* ?Warning:"
+  "\\(?:LaTeX\\|Class\\|Package\\|\*\\) [-A-Za-z0-9]* ?[Ww]arning:"
   "Regexp matching LaTeX warnings.")
 
 (defun TeX-LaTeX-sentinel-has-warnings ()



reply via email to

[Prev in Thread] Current Thread [Next in Thread]