diff options
| author | Glenn Morris | 2013-01-13 17:08:13 -0800 |
|---|---|---|
| committer | Glenn Morris | 2013-01-13 17:08:13 -0800 |
| commit | 51e7349210ae8de4296e4efe4ac903ceae8786cc (patch) | |
| tree | 33ed3d7278e46552d0d3735bd42fa248a1964535 | |
| parent | b35b088608a02d43b39bbfd3240547d3d9de7366 (diff) | |
| download | emacs-51e7349210ae8de4296e4efe4ac903ceae8786cc.tar.gz emacs-51e7349210ae8de4296e4efe4ac903ceae8786cc.zip | |
Fix interpretation of gnu line.col1-col2 error message format
* lisp/progmodes/compile.el (compilation-error-regexp-alist-alist):
* test/automated/compile-tests.el (compile-tests--test-regexps-data):
Fix interpretation of gnu line.col1-col2 format.
Fixes: debbugs:13335
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/progmodes/compile.el | 5 | ||||
| -rw-r--r-- | test/ChangeLog | 5 | ||||
| -rw-r--r-- | test/automated/compile-tests.el | 4 |
4 files changed, 16 insertions, 3 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 5c7e8c3e6a8..9fc6660ce32 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2013-01-14 Glenn Morris <rgm@gnu.org> | ||
| 2 | |||
| 3 | * progmodes/compile.el (compilation-error-regexp-alist-alist): | ||
| 4 | Fix interpretation of gnu line.col1-col2 format. (Bug#13335) | ||
| 5 | |||
| 1 | 2013-01-13 Fabián Ezequiel Gallina <fgallina@cuca> | 6 | 2013-01-13 Fabián Ezequiel Gallina <fgallina@cuca> |
| 2 | 7 | ||
| 3 | * progmodes/python.el (python-nav-end-of-statement): Fix | 8 | * progmodes/python.el (python-nav-end-of-statement): Fix |
diff --git a/lisp/progmodes/compile.el b/lisp/progmodes/compile.el index 4e1cd4a24e3..fa5a0234a69 100644 --- a/lisp/progmodes/compile.el +++ b/lisp/progmodes/compile.el | |||
| @@ -134,6 +134,7 @@ and a string describing how the process finished.") | |||
| 134 | 134 | ||
| 135 | ;; If you make any changes to `compilation-error-regexp-alist-alist', | 135 | ;; If you make any changes to `compilation-error-regexp-alist-alist', |
| 136 | ;; be sure to run the ERT test in test/automated/compile-tests.el. | 136 | ;; be sure to run the ERT test in test/automated/compile-tests.el. |
| 137 | ;; emacs -batch -l compile-tests.el -f ert-run-tests-batch-and-exit | ||
| 137 | 138 | ||
| 138 | (defvar compilation-error-regexp-alist-alist | 139 | (defvar compilation-error-regexp-alist-alist |
| 139 | '((absoft | 140 | '((absoft |
| @@ -261,8 +262,8 @@ of[ \t]+\"?\\([a-zA-Z]?:?[^\":\n]+\\)\"?:" 3 2 nil (1)) | |||
| 261 | ;; The "in \\|from " exception was added to handle messages from Ruby. | 262 | ;; The "in \\|from " exception was added to handle messages from Ruby. |
| 262 | "^\\(?:[[:alpha:]][-[:alnum:].]+: ?\\|[ \t]+\\(?:in \\|from \\)\\)?\ | 263 | "^\\(?:[[:alpha:]][-[:alnum:].]+: ?\\|[ \t]+\\(?:in \\|from \\)\\)?\ |
| 263 | \\([0-9]*[^0-9\n]\\(?:[^\n :]\\| [^-/\n]\\|:[^ \n]\\)*?\\): ?\ | 264 | \\([0-9]*[^0-9\n]\\(?:[^\n :]\\| [^-/\n]\\|:[^ \n]\\)*?\\): ?\ |
| 264 | \\([0-9]+\\)\\(?:[.:]\\([0-9]+\\)\\)?\ | 265 | \\([0-9]+\\)\\(?:-\\(?4:[0-9]+\\)\\(?:\\.\\(?5:[0-9]+\\)\\)?\ |
| 265 | \\(?:-\\([0-9]+\\)?\\(?:\\.\\([0-9]+\\)\\)?\\)?:\ | 266 | \\|[.:]\\(?3:[0-9]+\\)\\(?:-\\(?:\\(?4:[0-9]+\\)\\.\\)?\\(?5:[0-9]+\\)\\)?\\)?:\ |
| 266 | \\(?: *\\(\\(?:Future\\|Runtime\\)?[Ww]arning\\|W:\\)\\|\ | 267 | \\(?: *\\(\\(?:Future\\|Runtime\\)?[Ww]arning\\|W:\\)\\|\ |
| 267 | *\\([Ii]nfo\\(?:\\>\\|rmationa?l?\\)\\|I:\\|instantiated from\\|[Nn]ote\\)\\|\ | 268 | *\\([Ii]nfo\\(?:\\>\\|rmationa?l?\\)\\|I:\\|instantiated from\\|[Nn]ote\\)\\|\ |
| 268 | *[Ee]rror\\|\[0-9]?\\(?:[^0-9\n]\\|$\\)\\|[0-9][0-9][0-9]\\)" | 269 | *[Ee]rror\\|\[0-9]?\\(?:[^0-9\n]\\|$\\)\\|[0-9][0-9][0-9]\\)" |
diff --git a/test/ChangeLog b/test/ChangeLog index 7b058c1d2bd..472a6073884 100644 --- a/test/ChangeLog +++ b/test/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2013-01-14 Glenn Morris <rgm@gnu.org> | ||
| 2 | |||
| 3 | * automated/compile-tests.el (compile-tests--test-regexps-data): | ||
| 4 | Fix interpretation of gnu line.col1-col2 format. (Bug#13335) | ||
| 5 | |||
| 1 | 2013-01-10 Wolfgang Jenkner <wjenkner@inode.at> | 6 | 2013-01-10 Wolfgang Jenkner <wjenkner@inode.at> |
| 2 | 7 | ||
| 3 | * automated/man-tests.el: New file. | 8 | * automated/man-tests.el: New file. |
diff --git a/test/automated/compile-tests.el b/test/automated/compile-tests.el index f976efe72de..682867d1178 100644 --- a/test/automated/compile-tests.el +++ b/test/automated/compile-tests.el | |||
| @@ -176,8 +176,10 @@ | |||
| 176 | ("foo.c:8.23: note: message" 1 23 8 "foo.c") | 176 | ("foo.c:8.23: note: message" 1 23 8 "foo.c") |
| 177 | ("foo.c:8.23: info: message" 1 23 8 "foo.c") | 177 | ("foo.c:8.23: info: message" 1 23 8 "foo.c") |
| 178 | ("foo.c:8:23:information: message" 1 23 8 "foo.c") | 178 | ("foo.c:8:23:information: message" 1 23 8 "foo.c") |
| 179 | ("foo.c:8.23-45: Informational: message" 1 (23 . nil) (8 . 45) "foo.c") | 179 | ("foo.c:8.23-45: Informational: message" 1 (23 . 46) (8 . nil) "foo.c") |
| 180 | ("foo.c:8-23: message" 1 nil (8 . 23) "foo.c") | 180 | ("foo.c:8-23: message" 1 nil (8 . 23) "foo.c") |
| 181 | ;; The next one is not in the GNU standards AFAICS. | ||
| 182 | ;; Here we seem to interpret it as LINE1-LINE2.COL2. | ||
| 181 | ("foo.c:8-45.3: message" 1 (nil . 4) (8 . 45) "foo.c") | 183 | ("foo.c:8-45.3: message" 1 (nil . 4) (8 . 45) "foo.c") |
| 182 | ("foo.c:8.23-9.1: message" 1 (23 . 2) (8 . 9) "foo.c") | 184 | ("foo.c:8.23-9.1: message" 1 (23 . 2) (8 . 9) "foo.c") |
| 183 | ("jade:dbcommon.dsl:133:17:E: missing argument for function call" | 185 | ("jade:dbcommon.dsl:133:17:E: missing argument for function call" |