diff options
author | Karl Heuer <kwzh@gnu.org> | 1998-12-14 03:12:21 +0000 |
---|---|---|
committer | Karl Heuer <kwzh@gnu.org> | 1998-12-14 03:12:21 +0000 |
commit | d914bed56bea6c9932a006e8f8792e4d5d6bb6c7 (patch) | |
tree | 342db2b2303392f172faf5ea74470303fc441cc6 /lisp/progmodes/compile.el | |
parent | e228c7e2d4cc93e458cc1ecba561da69f8a7d317 (diff) | |
download | emacs-d914bed56bea6c9932a006e8f8792e4d5d6bb6c7.tar.gz |
(compilation-error-regexp-alist): Insist on a non-digit in the file name.
Diffstat (limited to 'lisp/progmodes/compile.el')
-rw-r--r-- | lisp/progmodes/compile.el | 7 |
1 files changed, 6 insertions, 1 deletions
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++: |