> Unfortunately, doing that is often at odds with the goals of > keeping the test code simple and efficient. If you find small > and clean changes that improve matters without inducing > inordinate inefficiency even in projects with thousands of source > files, please send a patch.
Proposed sed extension to help this: <http://lists.gnu.org/archive/html/bug-gnu-utils/2009-11/msg00030.html> This is a good aproach, but for compilation-mode to work you need the line number as well. Would it be acceptable for syntax-check to use this option if it is included in GNU sed? It wouldn't be compatible with POSIX sed, but one could do a check for the option and only use it if one is using GNU sed.