diff options
| author | Chong Yidong | 2011-05-08 21:24:00 -0400 |
|---|---|---|
| committer | Chong Yidong | 2011-05-08 21:24:00 -0400 |
| commit | 4c44026c141100262a535eaa1ca62bf11fce9ece (patch) | |
| tree | 593777e061f4675b4e282d2d358a9e1e693a20e0 | |
| parent | adec429a62892d52ad25c36df1d27a3904bac5ba (diff) | |
| download | emacs-4c44026c141100262a535eaa1ca62bf11fce9ece.tar.gz emacs-4c44026c141100262a535eaa1ca62bf11fce9ece.zip | |
Various fixes to compilation-error-regexp-alist-alist.
* lisp/progmodes/compile.el (compilation-error-regexp-alist-alist): Fix
the ant regexp to handle end-line and end-column info from jikes.
Re-introduce maven regexp. Give the ruby-Test::Unit regexp a
higher priority to avoid clobbering by gnu.
| -rw-r--r-- | lisp/ChangeLog | 7 | ||||
| -rw-r--r-- | lisp/progmodes/compile.el | 26 |
2 files changed, 23 insertions, 10 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 60b462e106b..a04afa93930 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,10 @@ | |||
| 1 | 2011-05-09 Chong Yidong <cyd@stupidchicken.com> | ||
| 2 | |||
| 3 | * progmodes/compile.el (compilation-error-regexp-alist-alist): Fix | ||
| 4 | the ant regexp to handle end-line and end-column info from jikes. | ||
| 5 | Re-introduce maven regexp. Give the ruby-Test::Unit regexp a | ||
| 6 | higher priority to avoid clobbering by gnu. | ||
| 7 | |||
| 1 | 2011-05-08 Chong Yidong <cyd@stupidchicken.com> | 8 | 2011-05-08 Chong Yidong <cyd@stupidchicken.com> |
| 2 | 9 | ||
| 3 | * cus-face.el (custom-declare-face): Call custom-theme-recalc-face | 10 | * cus-face.el (custom-declare-face): Call custom-theme-recalc-face |
diff --git a/lisp/progmodes/compile.el b/lisp/progmodes/compile.el index 830de7d6244..60ad7cb0e9e 100644 --- a/lisp/progmodes/compile.el +++ b/lisp/progmodes/compile.el | |||
| @@ -126,6 +126,9 @@ and a string describing how the process finished.") | |||
| 126 | 126 | ||
| 127 | (defvar compilation-num-errors-found) | 127 | (defvar compilation-num-errors-found) |
| 128 | 128 | ||
| 129 | ;; If you make any changes to `compilation-error-regexp-alist-alist', | ||
| 130 | ;; be sure to run the ERT test in test/automated/compile-tests.el. | ||
| 131 | |||
| 129 | (defvar compilation-error-regexp-alist-alist | 132 | (defvar compilation-error-regexp-alist-alist |
| 130 | '((absoft | 133 | '((absoft |
| 131 | "^\\(?:[Ee]rror on \\|[Ww]arning on\\( \\)\\)?[Ll]ine[ \t]+\\([0-9]+\\)[ \t]+\ | 134 | "^\\(?:[Ee]rror on \\|[Ww]arning on\\( \\)\\)?[Ll]ine[ \t]+\\([0-9]+\\)[ \t]+\ |
| @@ -138,8 +141,8 @@ of[ \t]+\"?\\([a-zA-Z]?:?[^\":\n]+\\)\"?:" 3 2 nil (1)) | |||
| 138 | " in line \\([0-9]+\\) of file \\([^ \n]+[^. \n]\\)\\.? " 2 1) | 141 | " in line \\([0-9]+\\) of file \\([^ \n]+[^. \n]\\)\\.? " 2 1) |
| 139 | 142 | ||
| 140 | (ant | 143 | (ant |
| 141 | "^[ \t]*\\[[^] \n]+\\][ \t]*\\([^: \n]+\\):\\([0-9]+\\):\\(?:\\([0-9]+\\):[0-9]+:[0-9]+:\\)?\ | 144 | "^[ \t]*\\[[^] \n]+\\][ \t]*\\([^: \n]+\\):\\([0-9]+\\):\\(?:\\([0-9]+\\):\\([0-9]+\\):\\([0-9]+\\):\\)?\ |
| 142 | \\( warning\\)?" 1 2 3 (4)) | 145 | \\( warning\\)?" 1 (2 . 4) (3 . 5) (4)) |
| 143 | 146 | ||
| 144 | (bash | 147 | (bash |
| 145 | "^\\([^: \n\t]+\\): line \\([0-9]+\\):" 1 2) | 148 | "^\\([^: \n\t]+\\): line \\([0-9]+\\):" 1 2) |
| @@ -194,6 +197,14 @@ of[ \t]+\"?\\([a-zA-Z]?:?[^\":\n]+\\)\"?:" 3 2 nil (1)) | |||
| 194 | 197 | ||
| 195 | (jikes-file | 198 | (jikes-file |
| 196 | "^\\(?:Found\\|Issued\\) .* compiling \"\\(.+\\)\":$" 1 nil nil 0) | 199 | "^\\(?:Found\\|Issued\\) .* compiling \"\\(.+\\)\":$" 1 nil nil 0) |
| 200 | |||
| 201 | |||
| 202 | ;; This used to be pathologically slow on long lines (Bug#3441), | ||
| 203 | ;; due to matching filenames via \\(.*?\\). This might be faster. | ||
| 204 | (maven | ||
| 205 | ;; Maven is a popular free software build tool for Java. | ||
| 206 | "\\([0-9]*[^0-9\n]\\(?:[^\n :]\\| [^-/\n]\\|:[^ \n]\\)*?\\):\\[\\([0-9]+\\),\\([0-9]+\\)\\] " 1 2 3) | ||
| 207 | |||
| 197 | (jikes-line | 208 | (jikes-line |
| 198 | "^ *\\([0-9]+\\)\\.[ \t]+.*\n +\\(<-*>\n\\*\\*\\* \\(?:Error\\|Warnin\\(g\\)\\)\\)" | 209 | "^ *\\([0-9]+\\)\\.[ \t]+.*\n +\\(<-*>\n\\*\\*\\* \\(?:Error\\|Warnin\\(g\\)\\)\\)" |
| 199 | nil 1 nil 2 0 | 210 | nil 1 nil 2 0 |
| @@ -205,6 +216,9 @@ of[ \t]+\"?\\([a-zA-Z]?:?[^\":\n]+\\)\"?:" 3 2 nil (1)) | |||
| 205 | \\([0-9]+\\)\\(?::\\([0-9]+\\)\\)?\\(?:\\(:\\)\\|\\(,\\|$\\)\\)?" | 216 | \\([0-9]+\\)\\(?::\\([0-9]+\\)\\)?\\(?:\\(:\\)\\|\\(,\\|$\\)\\)?" |
| 206 | 1 2 3 (4 . 5)) | 217 | 1 2 3 (4 . 5)) |
| 207 | 218 | ||
| 219 | (ruby-Test::Unit | ||
| 220 | "^[\t ]*\\[\\([^\(].*\\):\\([1-9][0-9]*\\)\\(\\]\\)?:in " 1 2) | ||
| 221 | |||
| 208 | (gnu | 222 | (gnu |
| 209 | ;; The first line matches the program name for | 223 | ;; The first line matches the program name for |
| 210 | 224 | ||
| @@ -257,11 +271,6 @@ of[ \t]+\"?\\([a-zA-Z]?:?[^\":\n]+\\)\"?:" 3 2 nil (1)) | |||
| 257 | (end-of-line) | 271 | (end-of-line) |
| 258 | nil))) | 272 | nil))) |
| 259 | 273 | ||
| 260 | ;; This regexp is pathologically slow on long lines (Bug#3441). | ||
| 261 | ;; (maven | ||
| 262 | ;; ;; Maven is a popular build tool for Java. Maven is Free Software. | ||
| 263 | ;; "\\(.*?\\):\\[\\([0-9]+\\),\\([0-9]+\\)\\]" 1 2 3) | ||
| 264 | |||
| 265 | ;; Should be lint-1, lint-2 (SysV lint) | 274 | ;; Should be lint-1, lint-2 (SysV lint) |
| 266 | (mips-1 | 275 | (mips-1 |
| 267 | " (\\([0-9]+\\)) in \\([^ \n]+\\)" 2 1) | 276 | " (\\([0-9]+\\)) in \\([^ \n]+\\)" 2 1) |
| @@ -302,9 +311,6 @@ during global destruction\\.$\\)" 1 2) | |||
| 302 | "\\(?:Parse\\|Fatal\\) error: \\(.*\\) in \\(.*\\) on line \\([0-9]+\\)" | 311 | "\\(?:Parse\\|Fatal\\) error: \\(.*\\) in \\(.*\\) on line \\([0-9]+\\)" |
| 303 | 2 3 nil nil) | 312 | 2 3 nil nil) |
| 304 | 313 | ||
| 305 | (ruby-Test::Unit | ||
| 306 | "[\t ]*\\[\\([^\(].*\\):\\([1-9][0-9]*\\)\\(\\]\\)?:$" 1 2) | ||
| 307 | |||
| 308 | (rxp | 314 | (rxp |
| 309 | "^\\(?:Error\\|Warnin\\(g\\)\\):.*\n.* line \\([0-9]+\\) char\ | 315 | "^\\(?:Error\\|Warnin\\(g\\)\\):.*\n.* line \\([0-9]+\\) char\ |
| 310 | \\([0-9]+\\) of file://\\(.+\\)" | 316 | \\([0-9]+\\) of file://\\(.+\\)" |