summaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1997-08-29 02:08:28 +0000
committerRichard M. Stallman <rms@gnu.org>1997-08-29 02:08:28 +0000
commitd2705a1815f4ec01ce0c5cc60f6698cec9b8228e (patch)
treee2351166deca655cdab75396ec82812e83d638dd /lisp
parenta337fe7f350e2e5a9e5945d56aaca0a972e8f262 (diff)
downloademacs-d2705a1815f4ec01ce0c5cc60f6698cec9b8228e.tar.gz
(compilation-error-regexp-alist): Allow spaces in file names for Microsoft C;
check more carefully for the rest of the error message.
Diffstat (limited to 'lisp')
-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 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'