changeset 23866:b1adb6a721dd

(compilation-error-regexp-alist): Insist on a non-digit in the file name.
author Karl Heuer <kwzh@gnu.org>
date Mon, 14 Dec 1998 03:12:21 +0000
parents e5da22ef0b94
children 9c1495be5676
files lisp/progmodes/compile.el
diffstat 1 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/progmodes/compile.el	Mon Dec 14 03:06:46 1998 +0000
+++ b/lisp/progmodes/compile.el	Mon Dec 14 03:12:21 1998 +0000
@@ -156,7 +156,12 @@
     ;; We'll insist that the number be followed by a colon or closing
     ;; paren, because otherwise this matches just about anything
     ;; containing a number with spaces around it.
-    ("\\([-a-zA-Z._]+: ?\\)?\\([a-zA-Z]?:?[^:( \t\n]+\\)[:(][ \t]*\\([0-9]+\\)\
+
+    ;; We insist on a non-digit in the file name
+    ;; so that we don't mistake the file name for a command name
+    ;; and take the line number as the file name.
+    ("\\([-a-zA-Z._]+: ?\\)?\
+\\([a-zA-Z]?:?[^:( \t\n]*[^:( \t\n0-9][^:( \t\n]*\\)[:(][ \t]*\\([0-9]+\\)\
 \\([) \t]\\|:\\(\\([0-9]+:\\)\\|[0-9]*[^:0-9]\\)\\)" 2 3 6)
 
     ;; Microsoft C/C++: