branch: externals/auctex
commit 9f3e760d4ab1f499b814c0318416797e7c244b81
Author: Tassilo Horn <[email protected]>
Commit: Tassilo Horn <[email protected]>
Recognize L3 \msg_line_context: on warning parsing
* tex-buf.el (TeX-warning): Recognize L3 \msg_line_context: on warning
parsing which reads "on line X" instead of "on input line X".
---
tex-buf.el | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/tex-buf.el b/tex-buf.el
index ce54251..a36bda8 100644
--- a/tex-buf.el
+++ b/tex-buf.el
@@ -2815,7 +2815,10 @@ warning."
(let* ( ;; line-string: match 1 is beginning line, match 2 is end line
(line-string (if bad-box
"at lines? \\([0-9]*\\)\\(?:--\\([0-9]*\\)\\)?"
- "on input line \\([0-9]*\\)\\."))
+ ;; Traditional messages say "on input line X",
+ ;; the LaTeX3 \msg_line_context:. just reads
+ ;; "on line X".
+ "on \\(?:input \\)?line \\([0-9]*\\)\\."))
;; word-string: match 1 is the word
(word-string (if bad-box "[][\\W() ---]\\(\\w+\\)[][\\W() ---]*$"
;; Match "ref" in both "Reference `ref' on page NN