From: Richard M. Stallman Date: Fri, 29 Aug 1997 02:08:28 +0000 (+0000) Subject: (compilation-error-regexp-alist): Allow spaces in file names for Microsoft C; X-Git-Tag: emacs-20.1~332 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=d2705a1815f4ec01ce0c5cc60f6698cec9b8228e;p=emacs.git (compilation-error-regexp-alist): Allow spaces in file names for Microsoft C; check more carefully for the rest of the error message. --- 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'