[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 ()
- [elpa] externals/auctex a28aea0 01/57: Add test for my last commit, (continued)
- [elpa] externals/auctex a28aea0 01/57: Add test for my last commit, Tassilo Horn, 2017/07/25
- [elpa] externals/auctex cf6480c 07/57: Make preview.sty compatible with recent luatex, Tassilo Horn, 2017/07/25
- [elpa] externals/auctex 581002f 08/57: Add LaTeX core command \oldstylenums, Tassilo Horn, 2017/07/25
- [elpa] externals/auctex d412083 10/57: * tex-ispell.el (TeX-ispell-skip-cmds-list): Add \addlinespace., Tassilo Horn, 2017/07/25
- [elpa] externals/auctex f5cf886 14/57: Add support for plus sign in macro syntax specification list, Tassilo Horn, 2017/07/25
- [elpa] externals/auctex 5ea2221 19/57: * latex/preview.dtx: Adjust modification date for CTAN., Tassilo Horn, 2017/07/25
- [elpa] externals/auctex ef7e48b 12/57: Consider the return value of `assq-delete-all', Tassilo Horn, 2017/07/25
- [elpa] externals/auctex 272c9d6 15/57: Improve exclusion of reserved characters from command matches, Tassilo Horn, 2017/07/25
- [elpa] externals/auctex 4ddee01 38/57: * style/beamer.el ("beamer"): Query for optional argument after \pause., Tassilo Horn, 2017/07/25
- [elpa] externals/auctex d2dfab6 30/57: Fix indentation in ConTeXt mode after indented optional argument, Tassilo Horn, 2017/07/25
- [elpa] externals/auctex 0c03e4a 36/57: Catch expl3 warnings,
Tassilo Horn <=
- [elpa] externals/auctex a90cab5 02/57: Fix comment environment highlighting, Tassilo Horn, 2017/07/25
- [elpa] externals/auctex f6e7767 06/57: Do not highlight control spaces with "\ ", Tassilo Horn, 2017/07/25
- [elpa] externals/auctex 38b413e 05/57: Adjust macros acc. to change in `LaTeX-paragraph-commands-regexp-make', Tassilo Horn, 2017/07/25
- [elpa] externals/auctex 93123b6 18/57: Query for expl3 package options, Tassilo Horn, 2017/07/25
- [elpa] externals/auctex f039132 16/57: Use `ispell-tex-arg-end' on parsed elements, Tassilo Horn, 2017/07/25
- [elpa] externals/auctex e21d071 24/57: Exclude arguments to math environments from fontification, Tassilo Horn, 2017/07/25
- [elpa] externals/auctex dcd5503 26/57: * doc/changes.texi: Document recent changes., Tassilo Horn, 2017/07/25
- [elpa] externals/auctex 6fd235f 32/57: ; * tex-buf.el (TeX-adjust-process-coding-system): Avoid a compilation warning., Tassilo Horn, 2017/07/25
- [elpa] externals/auctex cd36aa8 45/57: Check and set `TeX-quote-language' if necessary, Tassilo Horn, 2017/07/25
- [elpa] externals/auctex ef68910 44/57: Add new style/australian.el and style/newzealand.el, Tassilo Horn, 2017/07/25