/usr/share/doc/mlton/guide/Emacs is in mlton-doc 20100608-5.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta name="robots" content="index,nofollow">
<title>Emacs - MLton Standard ML Compiler (SML Compiler)</title>
<link rel="stylesheet" type="text/css" charset="iso-8859-1" media="all" href="common.css">
<link rel="stylesheet" type="text/css" charset="iso-8859-1" media="screen" href="screen.css">
<link rel="stylesheet" type="text/css" charset="iso-8859-1" media="print" href="print.css">
<link rel="Start" href="Home">
</head>
<body lang="en" dir="ltr">
<script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
</script>
<script type="text/javascript">
_uacct = "UA-833377-1";
urchinTracker();
</script>
<table bgcolor = lightblue cellspacing = 0 style = "border: 0px;" width = 100%>
<tr>
<td style = "
border: 0px;
color: darkblue;
font-size: 150%;
text-align: left;">
<a class = mltona href="Home">MLton MLTONWIKIVERSION</a>
<td style = "
border: 0px;
font-size: 150%;
text-align: center;
width: 50%;">
Emacs
<td style = "
border: 0px;
text-align: right;">
<table cellspacing = 0 style = "border: 0px">
<tr style = "vertical-align: middle;">
</table>
<tr style = "background-color: white;">
<td colspan = 3
style = "
border: 0px;
font-size:70%;
text-align: right;">
<a href = "Home">Home</a>
<a href = "TitleIndex">Index</a>
</table>
<div id="content" lang="en" dir="ltr">
<h2 id="head-2e0730f57444eb865302c3917a4902e6ceae973f">SML Modes</h2>
<p>
There are a few Emacs modes for SML.
</p>
<ul>
<li>
<p>
<tt>sml-mode</tt>
</p>
</li>
<ul>
<li>
<p>
<a class="external" href="http://www.xemacs.org/Documentation/packages/html/sml-mode_3.html"><img src="moin-www.png" alt="[WWW]" height="11" width="11">http://www.xemacs.org/Documentation/packages/html/sml-mode_3.html</a>
</p>
</li>
<li>
<p>
<a class="external" href="http://www.smlnj.org/doc/Emacs/sml-mode.html"><img src="moin-www.png" alt="[WWW]" height="11" width="11">http://www.smlnj.org/doc/Emacs/sml-mode.html</a>
</p>
</li>
<li>
<p>
<a class="external" href="http://www.iro.umontreal.ca/~monnier/elisp/"><img src="moin-www.png" alt="[WWW]" height="11" width="11">http://www.iro.umontreal.ca/~monnier/elisp/</a>
</p>
</li>
</ul>
<li class="gap">
<p>
<a href = "http://mlton.org/cgi-bin/viewsvn.cgi/mlton/tags/on-MLTONWIKIVERSION-release/ide/emacs/mlton.el?view=markup"><img src="moin-www.png" alt="[WWW]" height="11" width="11">mlton.el</a> contains the Emacs lisp that <a href="StephenWeeks">StephenWeeks</a> uses to interact with MLton (in addition to using <tt>sml-mode</tt>).
</p>
</li>
<li class="gap">
<p>
<a class="external" href="http://primate.net/~itz/mindent.tar"><img src="moin-www.png" alt="[WWW]" height="11" width="11">http://primate.net/~itz/mindent.tar</a>, developed by Ian Zimmerman, who writes:
</p>
</li>
<ul>
Unlike the widespread <tt>sml-mode.el</tt> it doesn't try to indent code based on ML syntax. I gradually got skeptical about this approach after writing the initial indentation support for caml mode and watching it bloat insanely as the language added new features. Also, any such attempts that I know of impose a particular coding style, or at best a choice among a limited set of styles, which I now oppose. Instead my mode is based on a generic package which provides manual bindable commands for common indentation operations (example: indent the current line under the n-th occurrence of a particular character in the previous non-blank line).
</ul>
</ul>
<h3 id="head-ca4c2c588f94359116733bd5a53f0e418c8306bd">MLB modes</h3>
<p>
There is a mode for editing <a href="MLBasis"> ML Basis</a> files.
</p>
<ul>
<li>
<p>
<a href = "http://mlton.org/cgi-bin/viewsvn.cgi/mlton/tags/on-MLTONWIKIVERSION-release/ide/emacs/esml-mlb-mode.el?view=markup"><img src="moin-www.png" alt="[WWW]" height="11" width="11">esml-mlb-mode.el</a> (+ other files)
</p>
</li>
</ul>
<h2 id="head-50fc5c9c229626045a37381fd07f13e910551890">Definitions and uses</h2>
<p>
There is a mode that supports the precise def-use information that MLton can output. It highlights definitions and uses and provides commands for navigation (e.g. jump-to-def, jump-to-next, list-all-refs). It can be handy, for example, for navigating in the MLton compiler source code. See <a href="EmacsDefUseMode">EmacsDefUseMode</a> for further information.
</p>
<h2 id="head-7de6b40c953fe9d8e7942b13fb6e0adfff9a2f33">Building on the background</h2>
<p>
Tired of manually starting/stopping/restarting builds after editing files? Now you don't have to. See <a href="EmacsBgBuildMode">EmacsBgBuildMode</a> for further information.
</p>
<h2 id="head-38a2998cc83b4215b89f0b96917e58d59fdfae52">Error messages</h2>
<p>
MLton's error messages are not in the format that the Emacs <tt>next-error</tt> parser natively understands. There are a couple of ways to fix this. The easiest way is to add the following to your <tt>.emacs</tt> to cause Emacs to recognize MLton's error messages.
</p>
<ul>
<pre>(require 'compile)
(add-to-list 'compilation-error-regexp-alist
'("^Error: \\([^\t\n]*\\) \\([0-9]+\\)\\.\\([0-9]+\\)\\.$"
1 2 3))
</pre>
</ul>
<p>
Alternatively, you could use a sed script to rewrite MLton's errors. Here is one such script:
</p>
<ul>
<pre>sed -e 's/^\([W|E].*\): \([^ ]*\) \([0-9][0-9]*\)\.\([0-9][0-9]*\)\./\2:\3:\1:\4/'
</pre></ul>
</div>
<p>
<hr>
Last edited on 2008-08-16 18:45:47 by <span title="cs181037157.pp.htv.fi"><a href="VesaKarvonen">VesaKarvonen</a></span>.
</body></html>
|