# HG changeset patch # User Richard M. Stallman # Date 1018108658 0 # Node ID 2b898d06932514419e7f3f6caf2cb6af1b116070 # Parent 85a7b7660c2da6af772629231cdcb6d835af162b (compilation-error-regexp-alist): New alternatives for FILE:LINE.COL and for ranges of columns and lines. diff -r 85a7b7660c2d -r 2b898d069325 lisp/progmodes/compile.el --- a/lisp/progmodes/compile.el Sat Apr 06 11:41:36 2002 +0000 +++ b/lisp/progmodes/compile.el Sat Apr 06 15:57:38 2002 +0000 @@ -270,6 +270,33 @@ \\([a-zA-Z]?:?[^:( \t\n]*[^:( \t\n0-9][^:( \t\n]*\\)[:(][ \t]*\\([0-9]+\\)\ \\([) \t]\\|:\\(\\([0-9]+:\\)\\|[0-9]*[^:0-9]\\)\\)" 2 3 6) + ;; GNU utilities with precise locations (line and columns), + ;; possibly ranges: + ;; foo.c:8.23-9.1: error message + ("\\([a-zA-Z][-a-zA-Z._0-9]+: ?\\)\ +\\([0-9]+\\)\\.\\([0-9]+\\)\ +-\\([0-9]+\\)\\.\\([0-9]+\\)\ +:" 1 2 3) ;; When ending points are supported, add line = 4 and col = 5. + ;; foo.c:8.23-45: error message + ("\\([a-zA-Z][-a-zA-Z._0-9]+: ?\\)\ +\\([0-9]+\\)\\.\\([0-9]+\\)\ +-\\([0-9]+\\)\ +:" 1 2 3) ;; When ending points are supported, add line = 2 and col = 4. + ;; foo.c:8-45.3: error message + ("\\([a-zA-Z][-a-zA-Z._0-9]+: ?\\)\ +\\([0-9]+\\)\ +-\\([0-9]+\\)\\.\\([0-9]+\\)\ +:" 1 2 nil) ;; When ending points are supported, add line = 2 and col = 4. + ;; foo.c:8.23: error message + ("\\([a-zA-Z][-a-zA-Z._0-9]+: ?\\)\ +\\([0-9]+\\)\\.\\([0-9]+\\)\ +:" 1 2 3) + ;; foo.c:8-23: error message + ("\\([a-zA-Z][-a-zA-Z._0-9]+: ?\\)\ +\\([0-9]+\\)\ +-\\([0-9]+\\)\ +:" 1 2 nil);; When ending points are supported, add line = 3. + ;; Microsoft C/C++: ;; keyboard.c(537) : warning C4005: 'min' : macro redefinition ;; d:\tmp\test.c(23) : error C2143: syntax error : missing ';' before 'if'