* lisp/progmodes/compile.el (compilation-error-regexp-alist-alist):
authorStefan Monnier <monnier@iro.umontreal.ca>
Mon, 21 May 2012 04:28:41 +0000 (00:28 -0400)
committerStefan Monnier <monnier@iro.umontreal.ca>
Mon, 21 May 2012 04:28:41 +0000 (00:28 -0400)
Simplify Maven regexp, and make sure the file can't start with a space.

Fixes: debbugs:11517

lisp/ChangeLog
lisp/progmodes/compile.el
test/automated/compile-tests.el

index 78f0e38..f3c2426 100644 (file)
@@ -1,3 +1,9 @@
+2012-05-21  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * progmodes/compile.el (compilation-error-regexp-alist-alist):
+       Simplify Maven regexp, and make sure the file can't start with a space
+       (bug#11517).
+
 2012-05-21  Glenn Morris  <rgm@gnu.org>
 
        * Makefile.in (setwins, setwins_almost, setwins_for_subdirs):
index fe1b63f..4598659 100644 (file)
@@ -209,7 +209,7 @@ of[ \t]+\"?\\([a-zA-Z]?:?[^\":\n]+\\)\"?:" 3 2 nil (1))
     ;; due to matching filenames via \\(.*?\\).  This might be faster.
     (maven
      ;; Maven is a popular free software build tool for Java.
-     "\\([0-9]*[^0-9\n]\\(?:[^\n :]\\| [^-/\n]\\|:[^ \n]\\)*?\\):\\[\\([0-9]+\\),\\([0-9]+\\)\\] " 1 2 3)
+     "\\([\n]\\(?:[^\n :]\\| [^-/\n]\\|:[^ \n]\\)*?\\):\\[\\([0-9]+\\),\\([0-9]+\\)\\] " 1 2 3)
 
     (jikes-line
      "^ *\\([0-9]+\\)\\.[ \t]+.*\n +\\(<-*>\n\\*\\*\\* \\(?:Error\\|Warnin\\(g\\)\\)\\)"
index ad36c42..ecd0e88 100644 (file)
     ;; maven
     ("FooBar.java:[111,53] no interface expected here"
      1 53 111 "FooBar.java")
+    ("  [ERROR] /Users/cinsk/hello.java:[651,96] ';' expected"
+     15 96 651 "/Users/cinsk/hello.java") ;Bug#11517.
     ;; mips-1 mips-2
     ("TrimMask (255) in solomon.c may be indistinguishable from TrimMasks (93) in solomo.c due to truncation"
      11 nil 255 "solomon.c")