diff options
| author | Roland McGrath | 1995-05-11 00:44:51 +0000 |
|---|---|---|
| committer | Roland McGrath | 1995-05-11 00:44:51 +0000 |
| commit | 4dbf8a2c70e4ba8f50776b1c17bdb23aa7b4b126 (patch) | |
| tree | f3b6c19b470d9b069b4b87464827447c001ff74f | |
| parent | 1305021dea3b2980a199d2b17f239cdc80e11087 (diff) | |
| download | emacs-4dbf8a2c70e4ba8f50776b1c17bdb23aa7b4b126.tar.gz emacs-4dbf8a2c70e4ba8f50776b1c17bdb23aa7b4b126.zip | |
(compilation-error-regexp-alist): Add regexps for IBM and Cray compilers.
(compilation-next-error-locus): Ignore a column number that is zero.
| -rw-r--r-- | lisp/progmodes/compile.el | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/lisp/progmodes/compile.el b/lisp/progmodes/compile.el index ba3e0672b78..aa7334e4d5d 100644 --- a/lisp/progmodes/compile.el +++ b/lisp/progmodes/compile.el | |||
| @@ -180,6 +180,15 @@ of[ \t]+\"?\\([^\":\n]+\\)\"?:" 3 2) | |||
| 180 | ;; GNU messages with program name and optional column number. | 180 | ;; GNU messages with program name and optional column number. |
| 181 | ("\n[^0-9 \n\t:]+:[ \t]*\\([^ \n\t:]+\\):\ | 181 | ("\n[^0-9 \n\t:]+:[ \t]*\\([^ \n\t:]+\\):\ |
| 182 | \\([0-9]+\\):\\(\\([0-9]+\\)[: \t]\\)?" 1 2 4) | 182 | \\([0-9]+\\):\\(\\([0-9]+\\)[: \t]\\)?" 1 2 4) |
| 183 | |||
| 184 | ;; Cray C compiler error messages | ||
| 185 | ("\n\\(cc\\| cft\\)-[0-9]+ c\\(c\\|f77\\): ERROR \\([^,]+, \\)* File = \\([^,]+\\), Line = \\([0-9]+\\)" 4 5) | ||
| 186 | |||
| 187 | ;; IBM C/C++ Tools 2.01: | ||
| 188 | ;; foo.c(2:0) : informational EDC0804: Function foo is not referenced. | ||
| 189 | ;; foo.c(3:8) : warning EDC0833: Implicit return statement encountered. | ||
| 190 | ;; foo.c(5:5) : error EDC0350: Syntax error. | ||
| 191 | ("\n *\\([^(]+\\)(\\([0-9]+\\):\\([0-9]+\\)) : " 1 2 3) | ||
| 183 | ) | 192 | ) |
| 184 | "Alist that specifies how to match errors in compiler output. | 193 | "Alist that specifies how to match errors in compiler output. |
| 185 | Each elt has the form (REGEXP FILE-IDX LINE-IDX [COLUMN-IDX FILE-FORMAT...]) | 194 | Each elt has the form (REGEXP FILE-IDX LINE-IDX [COLUMN-IDX FILE-FORMAT...]) |
| @@ -1003,7 +1012,7 @@ The current buffer should be the desired compilation output buffer." | |||
| 1003 | (save-restriction | 1012 | (save-restriction |
| 1004 | (widen) | 1013 | (widen) |
| 1005 | (goto-line last-line) | 1014 | (goto-line last-line) |
| 1006 | (if column | 1015 | (if (and column (> column 0)) |
| 1007 | ;; Columns in error msgs are 1-origin. | 1016 | ;; Columns in error msgs are 1-origin. |
| 1008 | (move-to-column (1- column)) | 1017 | (move-to-column (1- column)) |
| 1009 | (beginning-of-line)) | 1018 | (beginning-of-line)) |