diff options
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/progmodes/compile.el | 50 |
2 files changed, 45 insertions, 10 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 59f41b05bd9..bdf4e46e9d1 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2014-05-05 Daniel Colascione <dancol@dancol.org> | ||
| 2 | |||
| 3 | * progmodes/compile.el (compilation-error-regexp-alist-alist): | ||
| 4 | Port `gnu' pattern to rx. | ||
| 5 | |||
| 1 | 2014-05-05 Jarek Czekalski <jarekczek@poczta.onet.pl> | 6 | 2014-05-05 Jarek Czekalski <jarekczek@poczta.onet.pl> |
| 2 | 7 | ||
| 3 | Remove unneeded prompt when closing a buffer with active | 8 | Remove unneeded prompt when closing a buffer with active |
diff --git a/lisp/progmodes/compile.el b/lisp/progmodes/compile.el index f6a94e8bf8c..146b9f8cb71 100644 --- a/lisp/progmodes/compile.el +++ b/lisp/progmodes/compile.el | |||
| @@ -134,7 +134,7 @@ and a string describing how the process finished.") | |||
| 134 | ;; emacs -batch -l compile-tests.el -f ert-run-tests-batch-and-exit | 134 | ;; emacs -batch -l compile-tests.el -f ert-run-tests-batch-and-exit |
| 135 | 135 | ||
| 136 | (defvar compilation-error-regexp-alist-alist | 136 | (defvar compilation-error-regexp-alist-alist |
| 137 | '((absoft | 137 | `((absoft |
| 138 | "^\\(?:[Ee]rror on \\|[Ww]arning on\\( \\)\\)?[Ll]ine[ \t]+\\([0-9]+\\)[ \t]+\ | 138 | "^\\(?:[Ee]rror on \\|[Ww]arning on\\( \\)\\)?[Ll]ine[ \t]+\\([0-9]+\\)[ \t]+\ |
| 139 | of[ \t]+\"?\\([a-zA-Z]?:?[^\":\n]+\\)\"?:" 3 2 nil (1)) | 139 | of[ \t]+\"?\\([a-zA-Z]?:?[^\":\n]+\\)\"?:" 3 2 nil (1)) |
| 140 | 140 | ||
| @@ -255,16 +255,46 @@ of[ \t]+\"?\\([a-zA-Z]?:?[^\":\n]+\\)\"?:" 3 2 nil (1)) | |||
| 255 | ;; can be composed of any non-newline char, but it also rules out some | 255 | ;; can be composed of any non-newline char, but it also rules out some |
| 256 | ;; valid but unlikely cases, such as a trailing space or a space | 256 | ;; valid but unlikely cases, such as a trailing space or a space |
| 257 | ;; followed by a -, or a colon followed by a space. | 257 | ;; followed by a -, or a colon followed by a space. |
| 258 | 258 | ;; | |
| 259 | ;; The "in \\|from " exception was added to handle messages from Ruby. | 259 | ;; The "in \\|from " exception was added to handle messages from Ruby. |
| 260 | "^\\(?:[[:alpha:]][-[:alnum:].]+: ?\\|[ \t]+\\(?:in \\|from \\)\\)?\ | 260 | ,(rx |
| 261 | \\([0-9]*[^0-9\n]\\(?:[^\n :]\\| [^-/\n]\\|:[^ \n]\\)*?\\): ?\ | 261 | bol |
| 262 | \\([0-9]+\\)\\(?:-\\(?4:[0-9]+\\)\\(?:\\.\\(?5:[0-9]+\\)\\)?\ | 262 | (? (| (regexp "[[:alpha:]][-[:alnum:].]+: ?") |
| 263 | \\|[.:]\\(?3:[0-9]+\\)\\(?:-\\(?:\\(?4:[0-9]+\\)\\.\\)?\\(?5:[0-9]+\\)\\)?\\)?:\ | 263 | (regexp "[ \t]+\\(?:in \\|from\\)"))) |
| 264 | \\(?: *\\(\\(?:Future\\|Runtime\\)?[Ww]arning\\|W:\\)\\|\ | 264 | (group-n 1 (: (regexp "[0-9]*[^0-9\n]") |
| 265 | *\\([Ii]nfo\\(?:\\>\\|rmationa?l?\\)\\|I:\\|\\[ skipping .+ \\]\\|\ | 265 | (*? (| (regexp "[^\n :]") |
| 266 | \\(?:instantiated\\|required\\) from\\|[Nn]ote\\)\\|\ | 266 | (regexp " [^-/\n]") |
| 267 | *[Ee]rror\\|[0-9]?\\(?:[^0-9\n]\\|$\\)\\|[0-9][0-9][0-9]\\)" | 267 | (regexp ":[^ \n]"))))) |
| 268 | (regexp ": ?") | ||
| 269 | (group-n 2 (regexp "[0-9]+")) | ||
| 270 | (? (| (: "-" | ||
| 271 | (group-n 4 (regexp "[0-9]+")) | ||
| 272 | (? "." (group-n 5 (regexp "[0-9]+")))) | ||
| 273 | (: (in ".:") | ||
| 274 | (group-n 3 (regexp "[0-9]+")) | ||
| 275 | (? "-" | ||
| 276 | (? (group-n 4 (regexp "[0-9]+")) ".") | ||
| 277 | (group-n 5 (regexp "[0-9]+")))))) | ||
| 278 | ":" | ||
| 279 | (| (: (* " ") | ||
| 280 | (group-n 6 (| "FutureWarning" | ||
| 281 | "RuntimeWarning" | ||
| 282 | "Warning" | ||
| 283 | "warning" | ||
| 284 | "W:"))) | ||
| 285 | (: (* " ") | ||
| 286 | (group-n 7 (| (regexp "[Ii]nfo\\(?:\\>\\|rmationa?l?\\)") | ||
| 287 | "I:" | ||
| 288 | (: "[ skipping " (+ ".") " ]") | ||
| 289 | "instantiated from" | ||
| 290 | "required from" | ||
| 291 | (regexp "[Nn]ote")))) | ||
| 292 | (: (* " ") | ||
| 293 | (regexp "[Ee]rror")) | ||
| 294 | (: (regexp "[0-9]?") | ||
| 295 | (| (regexp "[^0-9\n]") | ||
| 296 | eol)) | ||
| 297 | (regexp "[0-9][0-9][0-9]"))) | ||
| 268 | 1 (2 . 4) (3 . 5) (6 . 7)) | 298 | 1 (2 . 4) (3 . 5) (6 . 7)) |
| 269 | 299 | ||
| 270 | (lcc | 300 | (lcc |