]> git.eshelyaron.com Git - emacs.git/commitdiff
(compilation-error-regexp-alist): Insist on a non-digit in the file name.
authorKarl Heuer <kwzh@gnu.org>
Mon, 14 Dec 1998 03:12:21 +0000 (03:12 +0000)
committerKarl Heuer <kwzh@gnu.org>
Mon, 14 Dec 1998 03:12:21 +0000 (03:12 +0000)
lisp/progmodes/compile.el

index 74ee72dc4596b2f1a276e9ef8733a6e607439e9f..ddb4942525d2700c028d5b9d39f405b0af04f166 100644 (file)
@@ -156,7 +156,12 @@ or when it is used with \\[next-error] or \\[compile-goto-error].")
     ;; 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++: