I love using emacs to compile my C++ project using compilation mode and next-error
to jump to the warnings and errors in the source. However, I find it highly annoying that next-error
brings me to every #include for the lines "In file included from" in the compilation output. I know you can use compilation-skip-threshold
to skip warnings, but I don't want to skip warnings, and these include lines show up as warnings.
To me this seems to be a bug in compilation mode (these aren't warnings), but this bug was closed as "not a bug"
Specifically, for an output that looks like this:
In file included from /path/to/file1.h:linenum1:
In file included from /path/to/file2.h:linenum2:
In file included from /path/to/file3.h:linenum3:
/path/to/file4.h:linenum4:columnnum4: warning: you are bad at c++
I want next-error
to take me right to file4.h, instead of stopping in files 1 through 3 on the way.
Thanks!