auctex-diffs
[Top][All Lists]
Advanced

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

[AUCTeX-diffs] GNU AUCTeX branch, master, updated. 4d426eac1664add53e220


From: Mosè Giordano
Subject: [AUCTeX-diffs] GNU AUCTeX branch, master, updated. 4d426eac1664add53e22046911e64d05991ade4a
Date: Tue, 13 Jun 2017 05:45:39 -0400 (EDT)

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU AUCTeX".

The branch, master has been updated
       via  4d426eac1664add53e22046911e64d05991ade4a (commit)
       via  0c03e4ac6042e7c19e4202b6d95c8c515145d264 (commit)
      from  ab04c45dde3c1e591bd4e46ccd6a6211710355da (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 4d426eac1664add53e22046911e64d05991ade4a
Author: Mosè Giordano <address@hidden>
Date:   Tue Jun 13 11:22:24 2017 +0200

    Suggest to rerun LaTeX if xsim properties changed
    
    * tex-buf.el (TeX-LaTeX-sentinel): Catch xsim warning suggesting to rerun 
LaTeX
    and set LaTeX and next default command.

diff --git a/tex-buf.el b/tex-buf.el
index 9659e07..fa8f409 100644
--- a/tex-buf.el
+++ b/tex-buf.el
@@ -1638,6 +1638,10 @@ Rerun to get mark in right position\\." nil t)
         (message
          "%s" "You should run LaTeX again to get TikZ marks in right position")
         (setq TeX-command-next TeX-command-default))
+       ((re-search-forward "^\* xsim warning: \"rerun\"" nil t)
+        (message
+         "%s" "You should run LaTeX again to synchronize exercise properties")
+        (setq TeX-command-next TeX-command-default))
        ((re-search-forward
          "^\\(\\*\\* \\)?J?I?p?\\(La\\|Sli\\)TeX\\(2e\\)? \
 \\(Version\\|ver\\.\\|<[0-9/-]*\\(?:u[^>]*\\)?>\\)" nil t)

commit 0c03e4ac6042e7c19e4202b6d95c8c515145d264
Author: Mosè Giordano <address@hidden>
Date:   Tue Jun 13 11:20:55 2017 +0200

    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.

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 ()

-----------------------------------------------------------------------

Summary of changes:
 tests/tex/error-parsing.el | 19 +++++++++++++++++++
 tex-buf.el                 |  6 +++++-
 2 files changed, 24 insertions(+), 1 deletion(-)


hooks/post-receive
-- 
GNU AUCTeX



reply via email to

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