branch: externals/auctex commit a1473f773900c02b71ad923a3c743c9515c5b2ab Author: Mosè Giordano <m...@gnu.org> Commit: Mosè Giordano <m...@gnu.org>
Capture warnings from packages with hyphens in name * tex-buf.el (TeX-LaTeX-sentinel-has-warnings): Add hyphen to regexps. (TeX-parse-error): Ditto. --- tex-buf.el | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tex-buf.el b/tex-buf.el index aced105..a8ba024 100644 --- a/tex-buf.el +++ b/tex-buf.el @@ -1395,7 +1395,7 @@ Warnings can be indicated by LaTeX or packages." (save-excursion (goto-char (point-min)) (re-search-forward - "^\\(LaTeX [A-Za-z]*\\|Package [A-Za-z0-9]+ \\)Warning:" nil t))) + "^\\(LaTeX [-A-Za-z]*\\|Package [-A-Za-z0-9]+ \\)Warning:" nil t))) (defun TeX-LaTeX-sentinel-has-bad-boxes () "Return non-nil, if LaTeX output indicates overfull or underfull boxes." @@ -2270,7 +2270,7 @@ Return non-nil if an error or warning is found." "^\\(\\(?:Overfull\\|Underfull\\|Tight\\|Loose\\)\ \\\\.*?[0-9]+--[0-9]+\\)\\|" ;; LaTeX warning - "^\\(\\(?:LaTeX [A-Za-z]*\\|Package [A-Za-z0-9]+ \\)Warning:.*\\)")) + "^\\(\\(?:LaTeX [-A-Za-z]*\\|Package [-A-Za-z0-9]+ \\)Warning:.*\\)")) (error-found nil)) (while (cond