GNU bug report logs - #70776
[PATCH] Generalize some error description regexp

Previous Next

Package: auctex;

Reported by: Paul Nelson <ultrono <at> gmail.com>

Date: Sat, 4 May 2024 23:45:02 UTC

Severity: normal

Tags: patch

Done: Arash Esbati <arash <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Paul Nelson <ultrono <at> gmail.com>
To: bug-auctex <at> gnu.org
Subject: [PATCH] Generalize some error description regexp
Date: Sun, 5 May 2024 01:44:01 +0200
[Message part 1 (text/plain, inline)]
Steps to reproduce: create test.tex with

\documentclass{amsart}
\newtheorem{theorem}{Theorem}
\newtheorem{proposition}{Proposition}
\begin{document}
\begin{theorem}
  blah
\end{proposition}
\end{document}

and do C-c C-c followed by C-c `.  This jumps to the error, but no help is
available, even though LaTeX-error-description-list contains a relevant
entry.

The issue is that tex generates an error like the following:

LaTeX Error: \begin{theorem} on input line 5 ended by \end{proposition}.

On the other hand, the relevant regular expression in
LaTeX-error-description-list doesn't allow for "on input line X".  This
patch generalizes that regular expression so that it matches such output.

Thanks, best,

Paul
[Message part 2 (text/html, inline)]
[0001-Generalize-some-error-description-regexp.patch (application/x-patch, attachment)]

This bug report was last modified 1 year and 13 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.