changeset 19616:bc9b6200a609

(compilation-error-regexp-alist): Allow spaces in file names for Microsoft C; check more carefully for the rest of the error message.
author Richard M. Stallman <rms@gnu.org>
date Fri, 29 Aug 1997 02:08:28 +0000
parents 4cdef838afb0
children 6337e9a0ed92
files lisp/progmodes/compile.el
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/progmodes/compile.el	Fri Aug 29 02:06:39 1997 +0000
+++ b/lisp/progmodes/compile.el	Fri Aug 29 02:08:28 1997 +0000
@@ -163,7 +163,11 @@
     ;; This used to be less selective and allow characters other than
     ;; parens around the line number, but that caused confusion for
     ;; GNU-style error messages.
-    ("\\(\\([a-zA-Z]:\\)?[^:( \t\n-]+\\)(\\([0-9]+\\))" 1 3)
+    ;; This used to reject spaces and dashes in file names,
+    ;; but they are valudnow; so I made it more strict about the error
+    ;; message that follows.
+    ("\\(\\([a-zA-Z]:\\)?[^:(\t\n]+\\)(\\([0-9]+\\)) \
+: \\(error\\|warning\\) C[0-9]+:" 1 3)
 
     ;; Borland C++:
     ;;  Error ping.c 15: Unable to open include file 'sys/types.h'