From d2705a1815f4ec01ce0c5cc60f6698cec9b8228e Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Fri, 29 Aug 1997 02:08:28 +0000 Subject: [PATCH] (compilation-error-regexp-alist): Allow spaces in file names for Microsoft C; check more carefully for the rest of the error message. --- lisp/progmodes/compile.el | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lisp/progmodes/compile.el b/lisp/progmodes/compile.el index d9a7d9d0519..6d12db7075d 100644 --- a/lisp/progmodes/compile.el +++ b/lisp/progmodes/compile.el @@ -163,7 +163,11 @@ or when it is used with \\[next-error] or \\[compile-goto-error].") ;; 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' -- 2.39.2