auctex-devel
[Top][All Lists]
Advanced

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

[AUCTeX-devel] [elpa] externals/auctex f1bcbe3 54/69: Improve LaTeX-warn


From: Tassilo Horn
Subject: [AUCTeX-devel] [elpa] externals/auctex f1bcbe3 54/69: Improve LaTeX-warnings-regexp
Date: Sat, 26 Mar 2016 21:36:37 +0000

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

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



reply via email to

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