branch: master
commit 5fdc23508032d08097b1c1a82928267426b0f03b
Author: Paul Nelson <[email protected]>
Commit: Arash Esbati <[email protected]>
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 e2d2d88e..5c6a8510 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.")