# HG changeset patch # User Roland McGrath # Date 771550064 0 # Node ID bffe692e284496da81c3e751b528240889537b88 # Parent e3a341341aeb2800bbb913bdc8f034c50177b2f7 (compilation-error-regexp-alist): Extend first regexp to handle Borland C++ msgs: "Warning" or "Error" before file name. diff -r e3a341341aeb -r bffe692e2844 lisp/progmodes/compile.el --- a/lisp/progmodes/compile.el Mon Jun 13 21:12:56 1994 +0000 +++ b/lisp/progmodes/compile.el Mon Jun 13 23:27:44 1994 +0000 @@ -108,11 +108,15 @@ ;; foo.c:8: error message ;; or HP-UX 7.0 fc: ;; foo.f :16 some horrible error message + ;; or Borland C++: + ;; Error ping.c 15: Unable to open include file 'sys/types.h' + ;; Warning ping.c 68: Call to function 'func' with no prototype ;; ;; We'll insist that the number be followed by a colon or closing ;; paren, because otherwise this matches just about anything ;; containing a number with spaces around it. - ("\n\\([^:( \t\n]+\\)[:(][ \t]*\\([0-9]+\\)[:) \t]" 1 2) + ("\n\\(Error\\|Warning\\)[ \t]*\\([^:( \t\n]+\\)\ +[:(][ \t]*\\([0-9]+\\)[:) \t]" 2 3) ;; 4.3BSD lint pass 2 ;; strcmp: variable # of args. llib-lc(359) :: /usr/src/foo/foo.c(8)