tags 7378 + patch quit >> The only way to do this reliably with GNU grep is to ask it to output >> escape sequences around file names and line numbers. > Feel free to try, but not for 24.1. And please try and quantify the > performance impact (if any), because M-x grep is already too slow. GNU grep also supports --null to output NUL bytes following file names, I haven't measured but it should be no slower and possibly faster since the regexp is simpler. There is a bit of added complexity to still support other greps which don't have --null: