From d914bed56bea6c9932a006e8f8792e4d5d6bb6c7 Mon Sep 17 00:00:00 2001 From: Karl Heuer Date: Mon, 14 Dec 1998 03:12:21 +0000 Subject: [PATCH] (compilation-error-regexp-alist): Insist on a non-digit in the file name. --- lisp/progmodes/compile.el | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lisp/progmodes/compile.el b/lisp/progmodes/compile.el index 74ee72dc459..ddb4942525d 100644 --- a/lisp/progmodes/compile.el +++ b/lisp/progmodes/compile.el @@ -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++: -- 2.39.2