>>>>> Andreas Matthias <[email protected]> writes:
> Here are the functions that generate the warnings.
> pdfTeX:
> <
> https://github.com/TeX-Live/texlive-source/blob/trunk/texk/web2c/pdftexdir/pdftex.web#L15627-L15643>


> luaTeX:
> <
> https://github.com/TeX-Live/texlive-source/blob/trunk/texk/web2c/luatexdir/tex/errors.c#L988-L1040
>> 

> Andreas

Thanks. It's hard for me to tell how the LuaTeX warning begins, so my
tentative plan is to support only pdfTeX warnings. I hope the attached
patch does the expected job.

What do others think?

Regards,
Ikumi Keita
#StandWithUkraine #StopWarInUkraine
#Gaza #StopMassiveKilling #CeasefireNOW

diff --git a/tex.el b/tex.el
index 59a33142..89299611 100644
--- a/tex.el
+++ b/tex.el
@@ -8570,9 +8570,10 @@ Return nil only if no errors were found."
 ;;   LaTeX Font Warning: ...
 ;;   Package xyz123 Warning: ...
 ;;   Class xyz123 Warning: ...
+;;   pdfTeX warning (ext4): ...
 (defvar LaTeX-warnings-regexp
-  "\\(?:LaTeX\\|Class\\|Package\\|\\*\\) [-A-Za-z0-9]* ?[Ww]arning:"
-  "Regexp matching LaTeX warnings.")
+  "\\(?:LaTeX\\|Class\\|Package\\|pdfTeX\\|\\*\\) [-A-Za-z0-9]* ?[Ww]arning\\(?: ([-A-Za-z0-9]+)\\)?:"
+  "Regexp matching LaTeX and pdfTeX warnings.")
 
 (defun TeX-LaTeX-sentinel-has-warnings ()
   "Return non-nil, if the output buffer contains warnings.

Reply via email to