
1 Using MLWorks interactively
emacsclient.) Errors discovered by MLWorks are highlighted in the Emacs buffer.
envemacs, under the directory where MLWorks is installed, into the file .emacs in your home directory.
M-x mlworks-server in Emacs.
vi or the Windows editor Textpad, or, on Windows, any editor that uses DDE (Dynamic Data Exchange) to conduct ongoing communications with other applications, for example PFE 32.
%l, MLWorks will substitute an appropriate line number.
.mlworks_preferences in your home directory. The preferences file will be read in on starting subsequent MLWorks images. Suppose that, having set your editor to something acceptable, you invoke File > Use File to run a file which contains an error. MLWorks reports the error in the listener, and brings up the error browser.
MLWorks> use "error.sml"; val it : unit = () Use: error.sml error.sml:3,9 to 3,11: error: Unbound value booAll errors in the first erroneous declaration in the file will be found, and they may be browsed in the usual way. The actions available are the same as when any error is encountered, with one exception: the Action > Edit menu item on the error browser will start up your chosen editor, passing it the line number containing the error currently selected in the error browser.
Alternatively, you can position the cursor on the line in the listener where the location of the error is given, and select Edit > Edit Error. Again, MLWorks will start up your chosen editor at the line containing the error. This method allows you to edit a file containing an error even when you have switched off error browsers.
Editor settings and preferences can be controlled programmatically by the Shell.Editor and Shell.Options.Preferences structures. For full details, see the MLWorks Reference Manual.

Generated with Harlequin WebMaker