changeset 107202:5e6600997bb8

* progmodes/compile.el (compilation-error-regexp-alist-alist): In `watcom' anchor regexp to start of line, to avoid slowness (Bug#5599).
author Chong Yidong <cyd@stupidchicken.com>
date Sat, 20 Feb 2010 08:53:06 -0500
parents 79d3f11c8368
children 5cec35cc882b
files lisp/ChangeLog lisp/progmodes/compile.el
diffstat 2 files changed, 7 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/ChangeLog	Sat Feb 20 10:59:16 2010 +0200
+++ b/lisp/ChangeLog	Sat Feb 20 08:53:06 2010 -0500
@@ -1,3 +1,9 @@
+2010-02-20  Kevin Ryde  <user42@zip.com.au>
+
+	* progmodes/compile.el (compilation-error-regexp-alist-alist): In
+	`watcom' anchor regexp to start of line, to avoid slowness
+	(Bug#5599).
+
 2010-02-20  Eli Zaretskii  <eliz@gnu.org>
 
 	* subr.el (remove-yank-excluded-properties): Explain in a comment
--- a/lisp/progmodes/compile.el	Sat Feb 20 10:59:16 2010 +0200
+++ b/lisp/progmodes/compile.el	Sat Feb 20 08:53:06 2010 -0500
@@ -350,7 +350,7 @@
      "^\\([^, \n\t]+\\), line \\([0-9]+\\), char \\([0-9]+\\)[:., \(-]" 1 2 3)
 
     (watcom
-     "\\(\\(?:[a-zA-Z]:\\)?[^:(\t\n]+\\)(\\([0-9]+\\)): ?\
+     "^[ \t]*\\(\\(?:[a-zA-Z]:\\)?[^:(\t\n]+\\)(\\([0-9]+\\)): ?\
 \\(?:\\(Error! E[0-9]+\\)\\|\\(Warning! W[0-9]+\\)\\):"
      1 2 nil (4))