[MLton] Re: Ray tracer update

Florian Weimer fw@deneb.enyo.de
Thu, 16 Jun 2005 10:43:09 +0200


* Stephen J. Bevan:

> Instead of :-
>
>   Error: hello.sml 3.12.
>     Syntax error: deleting  RPAREN ARROW.
>
> generate :-
>
>   hello.sml:3:error:12
>     Syntax error: deleting  RPAREN ARROW.

"hello.sml:3:12:" is the more standard form, which will be used by GCC
in the future.

But I don't understand why this change is necessary.  Just add

(add-to-list 'compilation-error-regexp-alist
	     '("^Error: \\([^\t\n]*\\) \\([0-9]+\\)\\.\\([0-9]+\\)\\.$"
	       1 2 3))

to your ~/.emacs file, and Emacs should recognize MLton's error
messages.

>> I'll be the first to agree that the format you are currently using is
> more visually friendly, but the latter is what Emacs is looking for so
> (like GNU Ada) it would be handy to have it as an option in the compiler.

I don't understand your GNU Ada reference.  By default, GNAT generates
error messages which Emacs can parse.