summaryrefslogtreecommitdiff
path: root/test/lisp/progmodes/compile-tests.el
diff options
context:
space:
mode:
authorMattias EngdegÄrd <mattiase@acm.org>2020-02-14 21:26:20 +0100
committerMattias EngdegÄrd <mattiase@acm.org>2020-02-17 11:23:41 +0100
commit96a269d045091bcf7ed424a7a039385727f6e694 (patch)
treee00db489aab4770550cd116e7d21f169e5540205 /test/lisp/progmodes/compile-tests.el
parentefc9d4fe3ef256e6c546c1690bf7dd968f1fdac8 (diff)
downloademacs-96a269d045091bcf7ed424a7a039385727f6e694.tar.gz
Speed up 'maven' compilation error message regexp
Anchor the regexp at line-start to prevent quadratic behaviour when it doesn't match (bug#39595). It's unclear whether the type tag, like [ERROR], is always present; we keep it optional just in case. * lisp/progmodes/compile.el (compilation-error-regexp-alist-alist): Rewrite 'maven' regexp, using rx for clarity. * etc/compilation.txt (maven): More examples. * test/lisp/progmodes/compile-tests.el (compile-tests--test-regexps-data): No leading spaces; they seems to stem from a misunderstanding in bug#11517.
Diffstat (limited to 'test/lisp/progmodes/compile-tests.el')
-rw-r--r--test/lisp/progmodes/compile-tests.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/lisp/progmodes/compile-tests.el b/test/lisp/progmodes/compile-tests.el
index 350b4eb400f..c3cec01f8b0 100644
--- a/test/lisp/progmodes/compile-tests.el
+++ b/test/lisp/progmodes/compile-tests.el
@@ -242,7 +242,7 @@
;; maven
("FooBar.java:[111,53] no interface expected here"
1 53 111 "FooBar.java" 2)
- (" [ERROR] /Users/cinsk/hello.java:[651,96] ';' expected"
+ ("[ERROR] /Users/cinsk/hello.java:[651,96] ';' expected"
15 96 651 "/Users/cinsk/hello.java" 2) ;Bug#11517.
("[WARNING] /foo/bar/Test.java:[27,43] unchecked conversion"
11 43 27 "/foo/bar/Test.java" 1) ;Bug#20556