If a compilation-mode buffer has a very long line, the `watcom' error regexp pattern is very slow at not matching. For example the foo.el below takes my old pc about 20 seconds to match nothing. The line in foo.el is 10,000 chars long, which might seem improbable, but in fact arises very easily from a "make" echoing a list of filenames from a distribution, eg. 200 filenames averaging 50 chars each including paths. (I've got one dist where the make spits 12,000 char lines, and another repeated 1500 char lines ...). I suppose the optional drive letter part of the pattern makes it backtrack to every character. I wonder if it could anchor to the start of the line to restrict that. (The alternative could be to loosen what's considered a filename there.) 2010-02-18 Kevin Ryde * progmodes/compile.el (compilation-error-regexp-alist-alist): In `watcom' add "^" for filename only at start of line. Avoids slowness backtracking to every char of a long line, O(N^2) in the length, eg. 20 seconds to fail to match a 10,000 char line.