Hello. flymake will highlight errors in the current buffer, even if the error comes from a different file. This can be noted, for example, when using > check-syntax: > gcc -Wall -Wextra -fsyntax-only *.cpp instead of the more common > check-syntax: > gcc -Wall -Wextra -pedantic -fsyntax-only -S $(CHK_SOURCES) in the Makefile. It also happens when using ant, where it can't be avoided. The attached patch filters out these errors when parsing. Alternatively, they could be filtered out when highlighting. regards, Nikolaj Schumacher