branch: externals/auctex
commit 5fdc23508032d08097b1c1a82928267426b0f03b
Author: Paul Nelson <ultr...@gmail.com>
Commit: Arash Esbati <ar...@gnu.org>

    Generalize some error description regexp
    
    * latex.el (LaTeX-error-description-list): Generalize regexp for
    begin/end mismatch error, so that a line number may be given.
    (bug#70776)
---
 latex.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/latex.el b/latex.el
index e2d2d88e2a..5c6a851089 100644
--- a/latex.el
+++ b/latex.el
@@ -7160,7 +7160,7 @@ error message occurs when the \\\\ is used in a centering 
or flushing
 environment or else in the scope of a centering or flushing
 declaration.")
 
-    ("\\\\begin{[^ ]*} ended by \\\\end{[^ ]*}." .
+    ("\\\\begin{[^ ]*} \\(?:on input line [0-9]+ \\)?ended by \\\\end{[^ ]*}." 
.
      "LaTeX has found an \\end command that doesn't match the corresponding
 \\begin command. You probably misspelled the environment name in the
 \\end command, have an extra \\begin, or else forgot an \\end.")

Reply via email to