I'm using native windows emacs together with mingw. When there's a compile error, the *compilation* buffer looks like this:
make -C ..
make: Entering directory `/c/Users/m.grunwald/Documents/Projects/aaaa/bbbb/cccc/dddd'
compiling Update.c
../Source/Update.c: In function 'SetMessage':
../Source/Update.c:52:1: error: 'd' undeclared (first use in this function)
d
When I use (next-error)
, emacs prompts me to "Find this error in...:" and the path it suggests is
c:/c/Users/m.grunwald/Documents/Projects/aaaa/bbbb/cccc/dddd/
Now this is neither a valid windows nor a valid mingw path and it makes compiling tideous. How do I get rid of the leading "C:" ?
Please note that the path that "make" prompts in the 2nd line is correct.
The linked topic "C:/c/user/...my-folder/ isn't an existing directory" error is about the same problem, but fixes it only in magit. I have no idea where I should tackle the problem for compile-mode and this is the wrong aproach, IMHO. It should be possible to fix this in emacs itself and only once, not once in each mode...