aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoland McGrath1994-06-13 23:27:44 +0000
committerRoland McGrath1994-06-13 23:27:44 +0000
commite7601974b01313142586cc665d42c5db83782681 (patch)
tree52f7ffe2f6da4d81bd4c894e69eee2de0a2b69f9
parenta7085d65c410b0c89fa4fb1232e70b60462dafea (diff)
downloademacs-e7601974b01313142586cc665d42c5db83782681.tar.gz
emacs-e7601974b01313142586cc665d42c5db83782681.zip
(compilation-error-regexp-alist): Extend first regexp to handle Borland C++
msgs: "Warning" or "Error" before file name.
-rw-r--r--lisp/progmodes/compile.el6
1 files changed, 5 insertions, 1 deletions
diff --git a/lisp/progmodes/compile.el b/lisp/progmodes/compile.el
index 1ab5589a28c..76e71ec8215 100644
--- a/lisp/progmodes/compile.el
+++ b/lisp/progmodes/compile.el
@@ -108,11 +108,15 @@ or when it is used with \\[next-error] or \\[compile-goto-error].")
108 ;; foo.c:8: error message 108 ;; foo.c:8: error message
109 ;; or HP-UX 7.0 fc: 109 ;; or HP-UX 7.0 fc:
110 ;; foo.f :16 some horrible error message 110 ;; foo.f :16 some horrible error message
111 ;; or Borland C++:
112 ;; Error ping.c 15: Unable to open include file 'sys/types.h'
113 ;; Warning ping.c 68: Call to function 'func' with no prototype
111 ;; 114 ;;
112 ;; We'll insist that the number be followed by a colon or closing 115 ;; We'll insist that the number be followed by a colon or closing
113 ;; paren, because otherwise this matches just about anything 116 ;; paren, because otherwise this matches just about anything
114 ;; containing a number with spaces around it. 117 ;; containing a number with spaces around it.
115 ("\n\\([^:( \t\n]+\\)[:(][ \t]*\\([0-9]+\\)[:) \t]" 1 2) 118 ("\n\\(Error\\|Warning\\)[ \t]*\\([^:( \t\n]+\\)\
119[:(][ \t]*\\([0-9]+\\)[:) \t]" 2 3)
116 120
117 ;; 4.3BSD lint pass 2 121 ;; 4.3BSD lint pass 2
118 ;; strcmp: variable # of args. llib-lc(359) :: /usr/src/foo/foo.c(8) 122 ;; strcmp: variable # of args. llib-lc(359) :: /usr/src/foo/foo.c(8)