[Mono-dev] gmcs output differing from shell and emacs (through make and xbuild)

Mads Bondo Dydensborg mbd at dbc.dk
Tue Oct 17 05:02:30 EDT 2006

mandag 16 oktober 2006 22:09 skrev Miguel de Icaza:
> Hello,
> > I am rather confused to this. What exactly controls the format of the
> > error messages from gmcs? Can I somehow make it at least output the line
> > numbers, even when called from xbuild?
> The compiler detects if its being ran in Emacs, and if so, turns off
> column information, because column information confuses Emacs'
> next-error command.

Hi Miguel.

Thanks a lot for your answer. I suspected that gcms had some special "Emacs 
detection". However, my problem was related to running: emacs -> xbuild -> 
gmcs, where even the linenumbers dissappear! Here is an overview of my tests:

gmcs alone => line + column
xbuild -> gmcs => line + column
emacs -> gmcs => line only
emacs -> make -> gmcs => line only
emacs -> xbuild -> gmcs => neither line, nor column.

I am pretty surprised by the last line. Having no line information, _really_ 
confuses the next-error command of Emacs ;-)

Is there a way to force gmcs to provide (at least) line numbers in that case?

FYI: It should be quite trivial to extend the compilation-error-regexp-alist 
in Emacs to handle column information too. I am using the csharp-mode from 
davh.dk, and I believe the pattern in there can be changed to match column 
cases too (match both with, and without . I am willing to try and submit a 
changed pattern to the maintainer of the compilation mode file.



Med venlig hilsen/Regards

Systemudvikler/Systemsdeveloper cand.scient.dat, Ph.d., Mads Bondo Dydensborg
Dansk BiblioteksCenter A/S, Tempovej 7-11, 2750 Ballerup, Tlf. +45 44 86 77 34

More information about the Mono-devel-list mailing list