diff options
| author | Richard M. Stallman | 1997-07-02 19:29:45 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1997-07-02 19:29:45 +0000 |
| commit | 9cab952df9c7874056c7ec87a43c98dcc16c2793 (patch) | |
| tree | 22f57d9b7f18ebc617a7ec6e17c2be66a2091a20 /lisp | |
| parent | 6befe10512b11a3663dec10a5414098fe716bb71 (diff) | |
| download | emacs-9cab952df9c7874056c7ec87a43c98dcc16c2793.tar.gz emacs-9cab952df9c7874056c7ec87a43c98dcc16c2793.zip | |
(compilation-parse-errors): Skip 2 lines only for Compilation major mode.
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/progmodes/compile.el | 24 |
1 files changed, 14 insertions, 10 deletions
diff --git a/lisp/progmodes/compile.el b/lisp/progmodes/compile.el index 3662e935dbd..96dd255b37b 100644 --- a/lisp/progmodes/compile.el +++ b/lisp/progmodes/compile.el | |||
| @@ -160,7 +160,10 @@ or when it is used with \\[next-error] or \\[compile-goto-error].") | |||
| 160 | ;; Microsoft C/C++: | 160 | ;; Microsoft C/C++: |
| 161 | ;; keyboard.c(537) : warning C4005: 'min' : macro redefinition | 161 | ;; keyboard.c(537) : warning C4005: 'min' : macro redefinition |
| 162 | ;; d:\tmp\test.c(23) : error C2143: syntax error : missing ';' before 'if' | 162 | ;; d:\tmp\test.c(23) : error C2143: syntax error : missing ';' before 'if' |
| 163 | ("\\(\\([a-zA-Z]:\\)?[^:( \t\n-]+\\)[:(][ \t]*\\([0-9]+\\)[:) \t]" 1 3) | 163 | ;; This used to be less selective and allow characters other than |
| 164 | ;; parens around the line number, but that caused confusion for | ||
| 165 | ;; GNU-style error messages. | ||
| 166 | ("\\(\\([a-zA-Z]:\\)?[^:( \t\n-]+\\)(\\([0-9]+\\))" 1 3) | ||
| 164 | 167 | ||
| 165 | ;; Borland C++: | 168 | ;; Borland C++: |
| 166 | ;; Error ping.c 15: Unable to open include file 'sys/types.h' | 169 | ;; Error ping.c 15: Unable to open include file 'sys/types.h' |
| @@ -241,9 +244,10 @@ of[ \t]+\"?\\([a-zA-Z]?:?[^\":\n]+\\)\"?:" 3 2) | |||
| 241 | ;; E, file.cc(35,52) Illegal operation on pointers | 244 | ;; E, file.cc(35,52) Illegal operation on pointers |
| 242 | ("[EW], \\([^(\n]*\\)(\\([0-9]+\\),[ \t]*\\([0-9]+\\)" 1 2 3) | 245 | ("[EW], \\([^(\n]*\\)(\\([0-9]+\\),[ \t]*\\([0-9]+\\)" 1 2 3) |
| 243 | 246 | ||
| 244 | ;; GNU messages with program name and optional column number. | 247 | ;;; This seems to be superfluous because the first pattern matches it. |
| 245 | ("[a-zA-Z]?:?[^0-9 \n\t:]+[^ \n\t:]*:[ \t]*\\([^ \n\t:]+\\):\ | 248 | ;;; ;; GNU messages with program name and optional column number. |
| 246 | \\([0-9]+\\):\\(\\([0-9]+\\)[: \t]\\)?" 1 2 4) | 249 | ;;; ("[a-zA-Z]?:?[^0-9 \n\t:]+[^ \n\t:]*:[ \t]*\\([^ \n\t:]+\\):\ |
| 250 | ;;;\\([0-9]+\\):\\(\\([0-9]+\\)[: \t]\\)?" 1 2 4) | ||
| 247 | 251 | ||
| 248 | ;; Cray C compiler error messages | 252 | ;; Cray C compiler error messages |
| 249 | ("\\(cc\\| cft\\)-[0-9]+ c\\(c\\|f77\\): ERROR \\([^,\n]+, \\)* File = \ | 253 | ("\\(cc\\| cft\\)-[0-9]+ c\\(c\\|f77\\): ERROR \\([^,\n]+, \\)* File = \ |
| @@ -1581,12 +1585,12 @@ See variable `compilation-parse-errors-function' for the interface it uses." | |||
| 1581 | 1585 | ||
| 1582 | ;; Don't reparse messages already seen at last parse. | 1586 | ;; Don't reparse messages already seen at last parse. |
| 1583 | (goto-char compilation-parsing-end) | 1587 | (goto-char compilation-parsing-end) |
| 1584 | (if (bobp) | 1588 | (when (and (bobp) |
| 1585 | (progn | 1589 | (eq major-mode 'compilation-mode)) |
| 1586 | (setq compilation-current-file nil) ; No current file at start. | 1590 | (setq compilation-current-file nil) ; No current file at start. |
| 1587 | ;; Don't parse the first two lines as error messages. | 1591 | ;; Don't parse the first two lines as error messages. |
| 1588 | ;; This matters for grep. | 1592 | ;; This matters for grep. |
| 1589 | (forward-line 2))) | 1593 | (forward-line 2)) |
| 1590 | 1594 | ||
| 1591 | ;; Parse messages. | 1595 | ;; Parse messages. |
| 1592 | (while (not (or found-desired (eobp))) | 1596 | (while (not (or found-desired (eobp))) |