> I've added both the sed script and the .emacs hack to the Emacs page. BTW, what version of Emacs / sml-mode are people using? I've not been able to get either mlton.el or the .emacs hack to work with my setup. For the former, my Emacs doesn't know about save-buffer-excursion. For the latter, my Emacs doesn't know about compilation-error-regexp-alist.