jfbu via bug-auctex via Bug reporting list for AUCTeX <[email protected]> writes:
> With recent LaTeX, some documents trigger a TeX error message in the > log which should be ignored, but currently is not causing automation > from C-cC-a to fail. > > The log file will for example contain > > ``` > ./zut.tex:55: ignored error: Infinite glue shrinkage found in box being split > ``` > > To trigger this, make sure your LaTeX is relatively current and fetch > the minimal example from https://github.com/latex3/latex2e/issues/1907 > (no need for `\RequirePackage{latexbug}` line). > > Then try C-cC-a from the Emacs AUCTeX buffer. The PDF will fail to > show because Emacs will prompt the user thinking erroneously some > real-life build error happened. Note that the `pdflatex` return > status is `0`, which means that tools such as Latexmk do work > properly. Thanks for raising this. I think the following change fixes the issue: --8<---------------cut here---------------start------------->8--- diff --git a/tex.el b/tex.el index 601855bf..e7948780 100644 --- a/tex.el +++ b/tex.el @@ -8599,7 +8599,8 @@ Return nil only if no errors were found." "dvi"))))))) (if process (TeX-format-mode-line process)) (if (catch 'found - (while (re-search-forward "^\\(?:!\\|\\(.+?\\):[0-9]+:\\) " nil t) + (while (and (re-search-forward "^\\(?:!\\|\\(.+?\\):[0-9]+:\\) " nil t) + (not (looking-at-p "ignored error: "))) (if (or (not (match-beginning 1)) ;; Ignore non-error warning. (bug#55065) (file-exists-p (TeX-match-buffer 1))) --8<---------------cut here---------------end--------------->8--- Can you install the patch above locally and see if it helps? @Keita: I think you're more familiar with this part of AUCTeX, can you also have a look if I'm missing something here? TIA. Best, Arash P.S. Happy new year to you all! _______________________________________________ bug-auctex mailing list [email protected] https://lists.gnu.org/mailman/listinfo/bug-auctex
