about summary refs log tree commit diff stats
path: root/html
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2017-01-11 09:40:41 -0800
committerKartik K. Agaram <vc@akkartik.com>2017-01-11 09:40:41 -0800
commit717d6cddc1464df9744a37056016b9f4230ab650 (patch)
tree5ce6be0dd5949c667738c37976716f4c04e1b1c6 /html
parent12712a40ed7441c7238da5e87438bc7e8b01f91a (diff)
downloadmu-717d6cddc1464df9744a37056016b9f4230ab650.tar.gz
3732
Diffstat (limited to 'html')
-rw-r--r--html/022arithmetic.cc.html4
-rw-r--r--html/101run_sandboxed.cc.html798
-rw-r--r--html/edit/001-editor.mu.html913
-rw-r--r--html/edit/002-typing.mu.html58
-rw-r--r--html/edit/003-shortcuts.mu.html142
-rw-r--r--html/edit/004-programming-environment.mu.html26
-rw-r--r--html/edit/005-sandbox.mu.html30
-rw-r--r--html/edit/006-sandbox-copy.mu.html4
-rw-r--r--html/edit/007-sandbox-delete.mu.html10
-rw-r--r--html/edit/008-sandbox-edit.mu.html8
-rw-r--r--html/edit/009-sandbox-test.mu.html2
-rw-r--r--html/edit/010-sandbox-trace.mu.html2
-rw-r--r--html/edit/011-errors.mu.html2
-rw-r--r--html/edit/012-editor-undo.mu.html58
14 files changed, 1033 insertions, 1024 deletions
diff --git a/html/022arithmetic.cc.html b/html/022arithmetic.cc.html
index e1e953a7..98e44ac6 100644
--- a/html/022arithmetic.cc.html
+++ b/html/022arithmetic.cc.html
@@ -813,13 +813,13 @@ if ('onhashchange' in window) {
 <span id="L751" class="LineNr">751 </span>
 <span id="L752" class="LineNr">752 </span><span class="Delimiter">:(scenario truncate_to_nearest_integer)</span>
 <span id="L753" class="LineNr">753 </span><span class="muRecipe">def</span> <a href='000organization.cc.html#L113'>main</a> [
-<span id="L754" class="LineNr">754 </span>  <span class="Constant">1</span>:num<span class="Special"> &lt;- </span><a href='101run_sandboxed.cc.html#L449'>truncate</a> <span class="Constant">12.2</span>
+<span id="L754" class="LineNr">754 </span>  <span class="Constant">1</span>:num<span class="Special"> &lt;- </span><a href='101run_sandboxed.cc.html#L457'>truncate</a> <span class="Constant">12.2</span>
 <span id="L755" class="LineNr">755 </span>]
 <span id="L756" class="LineNr">756 </span><span class="traceContains">+mem: storing 12 in location 1</span>
 <span id="L757" class="LineNr">757 </span>
 <span id="L758" class="LineNr">758 </span><span class="Delimiter">:(scenario truncate_negative)</span>
 <span id="L759" class="LineNr">759 </span><span class="muRecipe">def</span> <a href='000organization.cc.html#L113'>main</a> [
-<span id="L760" class="LineNr">760 </span>  <span class="Constant">1</span>:num<span class="Special"> &lt;- </span><a href='101run_sandboxed.cc.html#L449'>truncate</a> -<span class="Constant">12.2</span>
+<span id="L760" class="LineNr">760 </span>  <span class="Constant">1</span>:num<span class="Special"> &lt;- </span><a href='101run_sandboxed.cc.html#L457'>truncate</a> -<span class="Constant">12.2</span>
 <span id="L761" class="LineNr">761 </span>]
 <span id="L762" class="LineNr">762 </span><span class="traceContains">+mem: storing -12 in location 1</span>
 <span id="L763" class="LineNr">763 </span>
diff --git a/html/101run_sandboxed.cc.html b/html/101run_sandboxed.cc.html
index 58c7aac2..384cb677 100644
--- a/html/101run_sandboxed.cc.html
+++ b/html/101run_sandboxed.cc.html
@@ -118,11 +118,11 @@ if ('onhashchange' in window) {
 <span id="L56" class="LineNr"> 56 </span>  <span class="Normal">if</span> <span class="Delimiter">(</span>!new_code_pushed_to_stack<span class="Delimiter">)</span> <span class="Delimiter">{</span>
 <span id="L57" class="LineNr"> 57 </span>    products<span class="Delimiter">.</span>resize<span class="Delimiter">(</span><span class="Constant">5</span><span class="Delimiter">);</span>
 <span id="L58" class="LineNr"> 58 </span>    products<span class="Delimiter">.</span>at<span class="Delimiter">(</span><span class="Constant">0</span><span class="Delimiter">).</span>push_back<span class="Delimiter">(</span><span class="Constant">0</span><span class="Delimiter">);</span>
-<span id="L59" class="LineNr"> 59 </span>    products<span class="Delimiter">.</span>at<span class="Delimiter">(</span><span class="Constant">1</span><span class="Delimiter">).</span>push_back<span class="Delimiter">(</span><a href='101run_sandboxed.cc.html#L421'>trace_error_contents</a><span class="Delimiter">());</span>
+<span id="L59" class="LineNr"> 59 </span>    products<span class="Delimiter">.</span>at<span class="Delimiter">(</span><span class="Constant">1</span><span class="Delimiter">).</span>push_back<span class="Delimiter">(</span><a href='101run_sandboxed.cc.html#L429'>trace_error_contents</a><span class="Delimiter">());</span>
 <span id="L60" class="LineNr"> 60 </span>    products<span class="Delimiter">.</span>at<span class="Delimiter">(</span><span class="Constant">2</span><span class="Delimiter">).</span>push_back<span class="Delimiter">(</span><span class="Constant">0</span><span class="Delimiter">);</span>
-<span id="L61" class="LineNr"> 61 </span>    products<span class="Delimiter">.</span>at<span class="Delimiter">(</span><span class="Constant">3</span><span class="Delimiter">).</span>push_back<span class="Delimiter">(</span><a href='101run_sandboxed.cc.html#L435'>trace_app_contents</a><span class="Delimiter">());</span>
+<span id="L61" class="LineNr"> 61 </span>    products<span class="Delimiter">.</span>at<span class="Delimiter">(</span><span class="Constant">3</span><span class="Delimiter">).</span>push_back<span class="Delimiter">(</span><a href='101run_sandboxed.cc.html#L443'>trace_app_contents</a><span class="Delimiter">());</span>
 <span id="L62" class="LineNr"> 62 </span>    products<span class="Delimiter">.</span>at<span class="Delimiter">(</span><span class="Constant">4</span><span class="Delimiter">).</span>push_back<span class="Delimiter">(</span><span class="Constant">1</span><span class="Delimiter">);</span>  <span class="Comment">// completed</span>
-<span id="L63" class="LineNr"> 63 </span>    <a href='101run_sandboxed.cc.html#L151'>run_code_end</a><span class="Delimiter">();</span>
+<span id="L63" class="LineNr"> 63 </span>    <a href='101run_sandboxed.cc.html#L153'>run_code_end</a><span class="Delimiter">();</span>
 <span id="L64" class="LineNr"> 64 </span>    <span class="Identifier">break</span><span class="Delimiter">;</span>  <span class="Comment">// done with this instruction</span>
 <span id="L65" class="LineNr"> 65 </span>  <span class="Delimiter">}</span>
 <span id="L66" class="LineNr"> 66 </span>  <span class="Normal">else</span> <span class="Delimiter">{</span>
@@ -157,9 +157,9 @@ if ('onhashchange' in window) {
 <span id="L95" class="LineNr"> 95 </span>    <span class="Normal">for</span> <span class="Delimiter">(</span><span class="Normal">int</span> i = <span class="Constant">1</span><span class="Delimiter">;</span> i &lt; Reserved_for_tests<span class="Delimiter">;</span> ++i<span class="Delimiter">)</span>
 <span id="L96" class="LineNr"> 96 </span>      Memory<span class="Delimiter">.</span>erase<span class="Delimiter">(</span>i<span class="Delimiter">);</span>
 <span id="L97" class="LineNr"> 97 </span>  <span class="Delimiter">}</span>
-<span id="L98" class="LineNr"> 98 </span>  string command = <a href='003trace.cc.html#L365'>trim</a><span class="Delimiter">(</span><a href='101run_sandboxed.cc.html#L400'>strip_comments</a><span class="Delimiter">(</span><a href='038new_text.cc.html#L143'>read_mu_text</a><span class="Delimiter">(</span><a href='043space.cc.html#L76'>address</a><span class="Delimiter">)));</span>
+<span id="L98" class="LineNr"> 98 </span>  string command = <a href='003trace.cc.html#L365'>trim</a><span class="Delimiter">(</span><a href='101run_sandboxed.cc.html#L408'>strip_comments</a><span class="Delimiter">(</span><a href='038new_text.cc.html#L143'>read_mu_text</a><span class="Delimiter">(</span><a href='043space.cc.html#L76'>address</a><span class="Delimiter">)));</span>
 <span id="L99" class="LineNr"> 99 </span>  Name[get<span class="Delimiter">(</span>Recipe_ordinal<span class="Delimiter">,</span> <span class="Constant">&quot;interactive&quot;</span><span class="Delimiter">)</span>]<span class="Delimiter">.</span><a href='050scenario.cc.html#L60'>clear</a><span class="Delimiter">();</span>
-<span id="L100" class="LineNr">100 </span>  <a href='101run_sandboxed.cc.html#L140'>run_code_begin</a><span class="Delimiter">(</span><span class="Comment">/*</span><span class="Comment">should_stash_snapshots</span><span class="Comment">*/</span><span class="Constant">true</span><span class="Delimiter">);</span>
+<span id="L100" class="LineNr">100 </span>  <a href='101run_sandboxed.cc.html#L142'>run_code_begin</a><span class="Delimiter">(</span><span class="Comment">/*</span><span class="Comment">should_stash_snapshots</span><span class="Comment">*/</span><span class="Constant">true</span><span class="Delimiter">);</span>
 <span id="L101" class="LineNr">101 </span>  <span class="Normal">if</span> <span class="Delimiter">(</span>command<span class="Delimiter">.</span>empty<span class="Delimiter">())</span> <span class="Identifier">return</span> <span class="Constant">false</span><span class="Delimiter">;</span>
 <span id="L102" class="LineNr">102 </span>  <span class="Comment">// don't kill the current routine on parse errors</span>
 <span id="L103" class="LineNr">103 </span>  routine* save_current_routine = Current_routine<span class="Delimiter">;</span>
@@ -197,396 +197,404 @@ if ('onhashchange' in window) {
 <span id="L135" class="LineNr">135 </span>map&lt;recipe_ordinal<span class="Delimiter">,</span> map&lt;string<span class="Delimiter">,</span> <span class="Normal">int</span>&gt; &gt; Name_snapshot_stash<span class="Delimiter">;</span>
 <span id="L136" class="LineNr">136 </span>map&lt;string<span class="Delimiter">,</span> vector&lt;recipe_ordinal&gt; &gt; Recipe_variants_snapshot_stash<span class="Delimiter">;</span>
 <span id="L137" class="LineNr">137 </span>map&lt;string<span class="Delimiter">,</span> type_tree*&gt; Type_abbreviations_snapshot_stash<span class="Delimiter">;</span>
-<span id="L138" class="LineNr">138 </span>
-<span id="L139" class="LineNr">139 </span><span class="Delimiter">:(code)</span>
-<span id="L140" class="LineNr">140 </span><span class="Normal">void</span> <a href='101run_sandboxed.cc.html#L140'>run_code_begin</a><span class="Delimiter">(</span><span class="Normal">bool</span> should_stash_snapshots<span class="Delimiter">)</span> <span class="Delimiter">{</span>
-<span id="L141" class="LineNr">141 </span>  <span class="Comment">// stuff to undo later, in run_code_end()</span>
-<span id="L142" class="LineNr">142 </span>  Hide_errors = <span class="Constant">true</span><span class="Delimiter">;</span>
-<span id="L143" class="LineNr">143 </span>  Disable_redefine_checks = <span class="Constant">true</span><span class="Delimiter">;</span>
-<span id="L144" class="LineNr">144 </span>  <span class="Normal">if</span> <span class="Delimiter">(</span>should_stash_snapshots<span class="Delimiter">)</span>
-<span id="L145" class="LineNr">145 </span>    <a href='101run_sandboxed.cc.html#L167'>stash_snapshots</a><span class="Delimiter">();</span>
-<span id="L146" class="LineNr">146 </span>  Save_trace_stream = Trace_stream<span class="Delimiter">;</span>
-<span id="L147" class="LineNr">147 </span>  Trace_stream = <span class="Normal">new</span> trace_stream<span class="Delimiter">;</span>
-<span id="L148" class="LineNr">148 </span>  Trace_stream<span class="Delimiter">-&gt;</span>collect_depth = App_depth<span class="Delimiter">;</span>
-<span id="L149" class="LineNr">149 </span><span class="Delimiter">}</span>
-<span id="L150" class="LineNr">150 </span>
-<span id="L151" class="LineNr">151 </span><span class="Normal">void</span> <a href='101run_sandboxed.cc.html#L151'>run_code_end</a><span class="Delimiter">()</span> <span class="Delimiter">{</span>
-<span id="L152" class="LineNr">152 </span>  Hide_errors = <span class="Constant">false</span><span class="Delimiter">;</span>
-<span id="L153" class="LineNr">153 </span>  Disable_redefine_checks = <span class="Constant">false</span><span class="Delimiter">;</span>
-<span id="L154" class="LineNr">154 </span><span class="CommentedCode">//?   ofstream fout(&quot;sandbox.log&quot;);</span>
-<span id="L155" class="LineNr">155 </span><span class="CommentedCode">//?   fout &lt;&lt; Trace_stream-&gt;readable_contents(&quot;&quot;);</span>
-<span id="L156" class="LineNr">156 </span><span class="CommentedCode">//?   fout.close();</span>
-<span id="L157" class="LineNr">157 </span>  <span class="Normal">delete</span> Trace_stream<span class="Delimiter">;</span>
-<span id="L158" class="LineNr">158 </span>  Trace_stream = Save_trace_stream<span class="Delimiter">;</span>
-<span id="L159" class="LineNr">159 </span>  Save_trace_stream = <span class="Constant">NULL</span><span class="Delimiter">;</span>
-<span id="L160" class="LineNr">160 </span>  Save_trace_file<span class="Delimiter">.</span><a href='050scenario.cc.html#L60'>clear</a><span class="Delimiter">();</span>
-<span id="L161" class="LineNr">161 </span>  Recipe<span class="Delimiter">.</span>erase<span class="Delimiter">(</span>get<span class="Delimiter">(</span>Recipe_ordinal<span class="Delimiter">,</span> <span class="Constant">&quot;interactive&quot;</span><span class="Delimiter">));</span>  <span class="Comment">// keep past sandboxes from inserting errors</span>
-<span id="L162" class="LineNr">162 </span>  <span class="Normal">if</span> <span class="Delimiter">(</span>!Recipe_snapshot_stash<span class="Delimiter">.</span>empty<span class="Delimiter">())</span>
-<span id="L163" class="LineNr">163 </span>    <a href='101run_sandboxed.cc.html#L184'>unstash_snapshots</a><span class="Delimiter">();</span>
-<span id="L164" class="LineNr">164 </span><span class="Delimiter">}</span>
-<span id="L165" class="LineNr">165 </span>
-<span id="L166" class="LineNr">166 </span><span class="Comment">// keep sync'd with save_snapshots and restore_snapshots</span>
-<span id="L167" class="LineNr">167 </span><span class="Normal">void</span> <a href='101run_sandboxed.cc.html#L167'>stash_snapshots</a><span class="Delimiter">()</span> <span class="Delimiter">{</span>
-<span id="L168" class="LineNr">168 </span>  assert<span class="Delimiter">(</span>Recipe_ordinal_snapshot_stash<span class="Delimiter">.</span>empty<span class="Delimiter">());</span>
-<span id="L169" class="LineNr">169 </span>  Recipe_ordinal_snapshot_stash = Recipe_ordinal_snapshot<span class="Delimiter">;</span>
-<span id="L170" class="LineNr">170 </span>  assert<span class="Delimiter">(</span>Recipe_snapshot_stash<span class="Delimiter">.</span>empty<span class="Delimiter">());</span>
-<span id="L171" class="LineNr">171 </span>  Recipe_snapshot_stash = Recipe_snapshot<span class="Delimiter">;</span>
-<span id="L172" class="LineNr">172 </span>  assert<span class="Delimiter">(</span>Type_ordinal_snapshot_stash<span class="Delimiter">.</span>empty<span class="Delimiter">());</span>
-<span id="L173" class="LineNr">173 </span>  Type_ordinal_snapshot_stash = Type_ordinal_snapshot<span class="Delimiter">;</span>
-<span id="L174" class="LineNr">174 </span>  assert<span class="Delimiter">(</span>Type_snapshot_stash<span class="Delimiter">.</span>empty<span class="Delimiter">());</span>
-<span id="L175" class="LineNr">175 </span>  Type_snapshot_stash = Type_snapshot<span class="Delimiter">;</span>
-<span id="L176" class="LineNr">176 </span>  assert<span class="Delimiter">(</span>Name_snapshot_stash<span class="Delimiter">.</span>empty<span class="Delimiter">());</span>
-<span id="L177" class="LineNr">177 </span>  Name_snapshot_stash = Name_snapshot<span class="Delimiter">;</span>
-<span id="L178" class="LineNr">178 </span>  assert<span class="Delimiter">(</span>Recipe_variants_snapshot_stash<span class="Delimiter">.</span>empty<span class="Delimiter">());</span>
-<span id="L179" class="LineNr">179 </span>  Recipe_variants_snapshot_stash = Recipe_variants_snapshot<span class="Delimiter">;</span>
-<span id="L180" class="LineNr">180 </span>  assert<span class="Delimiter">(</span>Type_abbreviations_snapshot_stash<span class="Delimiter">.</span>empty<span class="Delimiter">());</span>
-<span id="L181" class="LineNr">181 </span>  Type_abbreviations_snapshot_stash = Type_abbreviations_snapshot<span class="Delimiter">;</span>
-<span id="L182" class="LineNr">182 </span>  save_snapshots<span class="Delimiter">();</span>
-<span id="L183" class="LineNr">183 </span><span class="Delimiter">}</span>
-<span id="L184" class="LineNr">184 </span><span class="Normal">void</span> <a href='101run_sandboxed.cc.html#L184'>unstash_snapshots</a><span class="Delimiter">()</span> <span class="Delimiter">{</span>
-<span id="L185" class="LineNr">185 </span>  restore_snapshots<span class="Delimiter">();</span>
-<span id="L186" class="LineNr">186 </span>  Recipe_ordinal_snapshot = Recipe_ordinal_snapshot_stash<span class="Delimiter">;</span>  Recipe_ordinal_snapshot_stash<span class="Delimiter">.</span><a href='050scenario.cc.html#L60'>clear</a><span class="Delimiter">();</span>
-<span id="L187" class="LineNr">187 </span>  Recipe_snapshot = Recipe_snapshot_stash<span class="Delimiter">;</span>  Recipe_snapshot_stash<span class="Delimiter">.</span><a href='050scenario.cc.html#L60'>clear</a><span class="Delimiter">();</span>
-<span id="L188" class="LineNr">188 </span>  Type_ordinal_snapshot = Type_ordinal_snapshot_stash<span class="Delimiter">;</span>  Type_ordinal_snapshot_stash<span class="Delimiter">.</span><a href='050scenario.cc.html#L60'>clear</a><span class="Delimiter">();</span>
-<span id="L189" class="LineNr">189 </span>  Type_snapshot = Type_snapshot_stash<span class="Delimiter">;</span>  Type_snapshot_stash<span class="Delimiter">.</span><a href='050scenario.cc.html#L60'>clear</a><span class="Delimiter">();</span>
-<span id="L190" class="LineNr">190 </span>  Name_snapshot = Name_snapshot_stash<span class="Delimiter">;</span>  Name_snapshot_stash<span class="Delimiter">.</span><a href='050scenario.cc.html#L60'>clear</a><span class="Delimiter">();</span>
-<span id="L191" class="LineNr">191 </span>  Recipe_variants_snapshot = Recipe_variants_snapshot_stash<span class="Delimiter">;</span>  Recipe_variants_snapshot_stash<span class="Delimiter">.</span><a href='050scenario.cc.html#L60'>clear</a><span class="Delimiter">();</span>
-<span id="L192" class="LineNr">192 </span>  Type_abbreviations_snapshot = Type_abbreviations_snapshot_stash<span class="Delimiter">;</span>  Type_abbreviations_snapshot_stash<span class="Delimiter">.</span><a href='050scenario.cc.html#L60'>clear</a><span class="Delimiter">();</span>
-<span id="L193" class="LineNr">193 </span><span class="Delimiter">}</span>
-<span id="L194" class="LineNr">194 </span>
-<span id="L195" class="LineNr">195 </span><span class="Delimiter">:(before &quot;End Load Recipes&quot;)</span>
-<span id="L196" class="LineNr">196 </span>load<span class="Delimiter">(</span>string<span class="Delimiter">(</span>
-<span id="L197" class="LineNr">197 </span><span class="Constant">&quot;recipe interactive [</span><span class="cSpecial">\n</span><span class="Constant">&quot;</span><span class="Delimiter">)</span> +  <span class="Comment">// just a dummy version to initialize the Recipe_ordinal and so on</span>
-<span id="L198" class="LineNr">198 </span><span class="Constant">&quot;]</span><span class="cSpecial">\n</span><span class="Constant">&quot;</span> +
-<span id="L199" class="LineNr">199 </span><span class="Constant">&quot;recipe sandbox [</span><span class="cSpecial">\n</span><span class="Constant">&quot;</span> +
-<span id="L200" class="LineNr">200 </span>  <span class="Constant">&quot;local-scope</span><span class="cSpecial">\n</span><span class="Constant">&quot;</span> +
-<span id="L201" class="LineNr">201 </span>  <span class="Constant">&quot;screen:&amp;:screen &lt;- new-fake-screen 30, 5</span><span class="cSpecial">\n</span><span class="Constant">&quot;</span> +
-<span id="L202" class="LineNr">202 </span>  <span class="Constant">&quot;routine-id:num &lt;- start-running interactive, screen</span><span class="cSpecial">\n</span><span class="Constant">&quot;</span> +
-<span id="L203" class="LineNr">203 </span>  <span class="Constant">&quot;limit-time routine-id, 100000/instructions</span><span class="cSpecial">\n</span><span class="Constant">&quot;</span> +
-<span id="L204" class="LineNr">204 </span>  <span class="Constant">&quot;wait-for-routine routine-id</span><span class="cSpecial">\n</span><span class="Constant">&quot;</span> +
-<span id="L205" class="LineNr">205 </span>  <span class="Constant">&quot;instructions-run:num &lt;- number-of-instructions routine-id</span><span class="cSpecial">\n</span><span class="Constant">&quot;</span> +
-<span id="L206" class="LineNr">206 </span>  <span class="Constant">&quot;stash instructions-run [instructions run]</span><span class="cSpecial">\n</span><span class="Constant">&quot;</span> +
-<span id="L207" class="LineNr">207 </span>  <span class="Constant">&quot;sandbox-state:num &lt;- routine-state routine-id</span><span class="cSpecial">\n</span><span class="Constant">&quot;</span> +
-<span id="L208" class="LineNr">208 </span>  <span class="Constant">&quot;completed?:bool &lt;- equal sandbox-state, 1/completed</span><span class="cSpecial">\n</span><span class="Constant">&quot;</span> +
-<span id="L209" class="LineNr">209 </span>  <span class="Constant">&quot;output:text &lt;- $most-recent-products</span><span class="cSpecial">\n</span><span class="Constant">&quot;</span> +
-<span id="L210" class="LineNr">210 </span>  <span class="Constant">&quot;errors:text &lt;- save-errors</span><span class="cSpecial">\n</span><span class="Constant">&quot;</span> +
-<span id="L211" class="LineNr">211 </span>  <span class="Constant">&quot;stashes:text &lt;- save-app-trace</span><span class="cSpecial">\n</span><span class="Constant">&quot;</span> +
-<span id="L212" class="LineNr">212 </span>  <span class="Constant">&quot;$cleanup-run-sandboxed</span><span class="cSpecial">\n</span><span class="Constant">&quot;</span> +
-<span id="L213" class="LineNr">213 </span>  <span class="Constant">&quot;return output, errors, screen, stashes, completed?</span><span class="cSpecial">\n</span><span class="Constant">&quot;</span> +
-<span id="L214" class="LineNr">214 </span><span class="Constant">&quot;]</span><span class="cSpecial">\n</span><span class="Constant">&quot;</span><span class="Delimiter">);</span>
-<span id="L215" class="LineNr">215 </span>
-<span id="L216" class="LineNr">216 </span><span class="Comment">//: adjust errors in the sandbox</span>
-<span id="L217" class="LineNr">217 </span><span class="Delimiter">:(after &quot;string maybe(string s)&quot;)</span>
-<span id="L218" class="LineNr">218 </span>  <span class="Normal">if</span> <span class="Delimiter">(</span>s == <span class="Constant">&quot;interactive&quot;</span><span class="Delimiter">)</span> <span class="Identifier">return</span> <span class="Constant">&quot;&quot;</span><span class="Delimiter">;</span>
-<span id="L219" class="LineNr">219 </span>
-<span id="L220" class="LineNr">220 </span><span class="Delimiter">:(scenario run_interactive_comments)</span>
-<span id="L221" class="LineNr">221 </span><span class="muRecipe">def</span> <a href='000organization.cc.html#L113'>main</a> [
-<span id="L222" class="LineNr">222 </span>  <span class="Constant">1</span>:text<span class="Special"> &lt;- </span><span class="Normal">new</span> [<span class="Comment"># ab</span>
-<span id="L223" class="LineNr">223 </span>add <span class="Constant">2</span><span class="Delimiter">,</span> <span class="Constant">2</span>]
-<span id="L224" class="LineNr">224 </span>  <span class="Constant">2</span>:text<span class="Special"> &lt;- </span>run-sandboxed <span class="Constant">1</span>:text
-<span id="L225" class="LineNr">225 </span>  <span class="Constant">3</span>:@:<span class="Normal">char</span><span class="Special"> &lt;- </span>copy *<span class="Constant">2</span>:text
-<span id="L226" class="LineNr">226 </span>]
-<span id="L227" class="LineNr">227 </span><span class="traceContains">+mem: storing 52 in location 4</span>
-<span id="L228" class="LineNr">228 </span>
-<span id="L229" class="LineNr">229 </span><span class="Delimiter">:(before &quot;End Primitive Recipe Declarations&quot;)</span>
-<span id="L230" class="LineNr">230 </span>_START_TRACKING_PRODUCTS<span class="Delimiter">,</span>
-<span id="L231" class="LineNr">231 </span><span class="Delimiter">:(before &quot;End Primitive Recipe Numbers&quot;)</span>
-<span id="L232" class="LineNr">232 </span><a href='001help.cc.html#L218'>put</a><span class="Delimiter">(</span>Recipe_ordinal<span class="Delimiter">,</span> <span class="Constant">&quot;$start-tracking-products&quot;</span><span class="Delimiter">,</span> _START_TRACKING_PRODUCTS<span class="Delimiter">);</span>
-<span id="L233" class="LineNr">233 </span><span class="Delimiter">:(before &quot;End Primitive Recipe Checks&quot;)</span>
-<span id="L234" class="LineNr">234 </span><span class="Normal">case</span> _START_TRACKING_PRODUCTS: <span class="Delimiter">{</span>
-<span id="L235" class="LineNr">235 </span>  <span class="Identifier">break</span><span class="Delimiter">;</span>
-<span id="L236" class="LineNr">236 </span><span class="Delimiter">}</span>
-<span id="L237" class="LineNr">237 </span><span class="Delimiter">:(before &quot;End Primitive Recipe Implementations&quot;)</span>
-<span id="L238" class="LineNr">238 </span><span class="Normal">case</span> _START_TRACKING_PRODUCTS: <span class="Delimiter">{</span>
-<span id="L239" class="LineNr">239 </span>  Track_most_recent_products = <span class="Constant">true</span><span class="Delimiter">;</span>
-<span id="L240" class="LineNr">240 </span>  <span class="Identifier">break</span><span class="Delimiter">;</span>
-<span id="L241" class="LineNr">241 </span><span class="Delimiter">}</span>
-<span id="L242" class="LineNr">242 </span>
-<span id="L243" class="LineNr">243 </span><span class="Delimiter">:(before &quot;End Primitive Recipe Declarations&quot;)</span>
-<span id="L244" class="LineNr">244 </span>_STOP_TRACKING_PRODUCTS<span class="Delimiter">,</span>
-<span id="L245" class="LineNr">245 </span><span class="Delimiter">:(before &quot;End Primitive Recipe Numbers&quot;)</span>
-<span id="L246" class="LineNr">246 </span><a href='001help.cc.html#L218'>put</a><span class="Delimiter">(</span>Recipe_ordinal<span class="Delimiter">,</span> <span class="Constant">&quot;$stop-tracking-products&quot;</span><span class="Delimiter">,</span> _STOP_TRACKING_PRODUCTS<span class="Delimiter">);</span>
-<span id="L247" class="LineNr">247 </span><span class="Delimiter">:(before &quot;End Primitive Recipe Checks&quot;)</span>
-<span id="L248" class="LineNr">248 </span><span class="Normal">case</span> _STOP_TRACKING_PRODUCTS: <span class="Delimiter">{</span>
-<span id="L249" class="LineNr">249 </span>  <span class="Identifier">break</span><span class="Delimiter">;</span>
-<span id="L250" class="LineNr">250 </span><span class="Delimiter">}</span>
-<span id="L251" class="LineNr">251 </span><span class="Delimiter">:(before &quot;End Primitive Recipe Implementations&quot;)</span>
-<span id="L252" class="LineNr">252 </span><span class="Normal">case</span> _STOP_TRACKING_PRODUCTS: <span class="Delimiter">{</span>
-<span id="L253" class="LineNr">253 </span>  Track_most_recent_products = <span class="Constant">false</span><span class="Delimiter">;</span>
-<span id="L254" class="LineNr">254 </span>  <span class="Identifier">break</span><span class="Delimiter">;</span>
-<span id="L255" class="LineNr">255 </span><span class="Delimiter">}</span>
-<span id="L256" class="LineNr">256 </span>
-<span id="L257" class="LineNr">257 </span><span class="Delimiter">:(before &quot;End Primitive Recipe Declarations&quot;)</span>
-<span id="L258" class="LineNr">258 </span>_MOST_RECENT_PRODUCTS<span class="Delimiter">,</span>
-<span id="L259" class="LineNr">259 </span><span class="Delimiter">:(before &quot;End Primitive Recipe Numbers&quot;)</span>
-<span id="L260" class="LineNr">260 </span><a href='001help.cc.html#L218'>put</a><span class="Delimiter">(</span>Recipe_ordinal<span class="Delimiter">,</span> <span class="Constant">&quot;$most-recent-products&quot;</span><span class="Delimiter">,</span> _MOST_RECENT_PRODUCTS<span class="Delimiter">);</span>
-<span id="L261" class="LineNr">261 </span><span class="Delimiter">:(before &quot;End Primitive Recipe Checks&quot;)</span>
-<span id="L262" class="LineNr">262 </span><span class="Normal">case</span> _MOST_RECENT_PRODUCTS: <span class="Delimiter">{</span>
-<span id="L263" class="LineNr">263 </span>  <span class="Identifier">break</span><span class="Delimiter">;</span>
-<span id="L264" class="LineNr">264 </span><span class="Delimiter">}</span>
-<span id="L265" class="LineNr">265 </span><span class="Delimiter">:(before &quot;End Primitive Recipe Implementations&quot;)</span>
-<span id="L266" class="LineNr">266 </span><span class="Normal">case</span> _MOST_RECENT_PRODUCTS: <span class="Delimiter">{</span>
-<span id="L267" class="LineNr">267 </span>  products<span class="Delimiter">.</span>resize<span class="Delimiter">(</span><span class="Constant">1</span><span class="Delimiter">);</span>
-<span id="L268" class="LineNr">268 </span>  products<span class="Delimiter">.</span>at<span class="Delimiter">(</span><span class="Constant">0</span><span class="Delimiter">).</span>push_back<span class="Delimiter">(</span><a href='038new_text.cc.html#L38'>new_mu_text</a><span class="Delimiter">(</span>Most_recent_products<span class="Delimiter">));</span>
-<span id="L269" class="LineNr">269 </span>  <span class="Identifier">break</span><span class="Delimiter">;</span>
-<span id="L270" class="LineNr">270 </span><span class="Delimiter">}</span>
-<span id="L271" class="LineNr">271 </span>
-<span id="L272" class="LineNr">272 </span><span class="Delimiter">:(before &quot;End Primitive Recipe Declarations&quot;)</span>
-<span id="L273" class="LineNr">273 </span>SAVE_ERRORS<span class="Delimiter">,</span>
-<span id="L274" class="LineNr">274 </span><span class="Delimiter">:(before &quot;End Primitive Recipe Numbers&quot;)</span>
-<span id="L275" class="LineNr">275 </span><a href='001help.cc.html#L218'>put</a><span class="Delimiter">(</span>Recipe_ordinal<span class="Delimiter">,</span> <span class="Constant">&quot;save-errors&quot;</span><span class="Delimiter">,</span> SAVE_ERRORS<span class="Delimiter">);</span>
-<span id="L276" class="LineNr">276 </span><span class="Delimiter">:(before &quot;End Primitive Recipe Checks&quot;)</span>
-<span id="L277" class="LineNr">277 </span><span class="Normal">case</span> SAVE_ERRORS: <span class="Delimiter">{</span>
-<span id="L278" class="LineNr">278 </span>  <span class="Identifier">break</span><span class="Delimiter">;</span>
-<span id="L279" class="LineNr">279 </span><span class="Delimiter">}</span>
-<span id="L280" class="LineNr">280 </span><span class="Delimiter">:(before &quot;End Primitive Recipe Implementations&quot;)</span>
-<span id="L281" class="LineNr">281 </span><span class="Normal">case</span> SAVE_ERRORS: <span class="Delimiter">{</span>
-<span id="L282" class="LineNr">282 </span>  products<span class="Delimiter">.</span>resize<span class="Delimiter">(</span><span class="Constant">1</span><span class="Delimiter">);</span>
-<span id="L283" class="LineNr">283 </span>  products<span class="Delimiter">.</span>at<span class="Delimiter">(</span><span class="Constant">0</span><span class="Delimiter">).</span>push_back<span class="Delimiter">(</span><a href='101run_sandboxed.cc.html#L421'>trace_error_contents</a><span class="Delimiter">());</span>
-<span id="L284" class="LineNr">284 </span>  <span class="Identifier">break</span><span class="Delimiter">;</span>
-<span id="L285" class="LineNr">285 </span><span class="Delimiter">}</span>
-<span id="L286" class="LineNr">286 </span>
-<span id="L287" class="LineNr">287 </span><span class="Delimiter">:(before &quot;End Primitive Recipe Declarations&quot;)</span>
-<span id="L288" class="LineNr">288 </span>SAVE_APP_TRACE<span class="Delimiter">,</span>
-<span id="L289" class="LineNr">289 </span><span class="Delimiter">:(before &quot;End Primitive Recipe Numbers&quot;)</span>
-<span id="L290" class="LineNr">290 </span><a href='001help.cc.html#L218'>put</a><span class="Delimiter">(</span>Recipe_ordinal<span class="Delimiter">,</span> <span class="Constant">&quot;save-app-trace&quot;</span><span class="Delimiter">,</span> SAVE_APP_TRACE<span class="Delimiter">);</span>
-<span id="L291" class="LineNr">291 </span><span class="Delimiter">:(before &quot;End Primitive Recipe Checks&quot;)</span>
-<span id="L292" class="LineNr">292 </span><span class="Normal">case</span> SAVE_APP_TRACE: <span class="Delimiter">{</span>
-<span id="L293" class="LineNr">293 </span>  <span class="Identifier">break</span><span class="Delimiter">;</span>
-<span id="L294" class="LineNr">294 </span><span class="Delimiter">}</span>
-<span id="L295" class="LineNr">295 </span><span class="Delimiter">:(before &quot;End Primitive Recipe Implementations&quot;)</span>
-<span id="L296" class="LineNr">296 </span><span class="Normal">case</span> SAVE_APP_TRACE: <span class="Delimiter">{</span>
-<span id="L297" class="LineNr">297 </span>  products<span class="Delimiter">.</span>resize<span class="Delimiter">(</span><span class="Constant">1</span><span class="Delimiter">);</span>
-<span id="L298" class="LineNr">298 </span>  products<span class="Delimiter">.</span>at<span class="Delimiter">(</span><span class="Constant">0</span><span class="Delimiter">).</span>push_back<span class="Delimiter">(</span><a href='101run_sandboxed.cc.html#L435'>trace_app_contents</a><span class="Delimiter">());</span>
-<span id="L299" class="LineNr">299 </span>  <span class="Identifier">break</span><span class="Delimiter">;</span>
-<span id="L300" class="LineNr">300 </span><span class="Delimiter">}</span>
-<span id="L301" class="LineNr">301 </span>
-<span id="L302" class="LineNr">302 </span><span class="Delimiter">:(before &quot;End Primitive Recipe Declarations&quot;)</span>
-<span id="L303" class="LineNr">303 </span>_CLEANUP_RUN_SANDBOXED<span class="Delimiter">,</span>
-<span id="L304" class="LineNr">304 </span><span class="Delimiter">:(before &quot;End Primitive Recipe Numbers&quot;)</span>
-<span id="L305" class="LineNr">305 </span><a href='001help.cc.html#L218'>put</a><span class="Delimiter">(</span>Recipe_ordinal<span class="Delimiter">,</span> <span class="Constant">&quot;$cleanup-run-sandboxed&quot;</span><span class="Delimiter">,</span> _CLEANUP_RUN_SANDBOXED<span class="Delimiter">);</span>
-<span id="L306" class="LineNr">306 </span><span class="Delimiter">:(before &quot;End Primitive Recipe Checks&quot;)</span>
-<span id="L307" class="LineNr">307 </span><span class="Normal">case</span> _CLEANUP_RUN_SANDBOXED: <span class="Delimiter">{</span>
-<span id="L308" class="LineNr">308 </span>  <span class="Identifier">break</span><span class="Delimiter">;</span>
-<span id="L309" class="LineNr">309 </span><span class="Delimiter">}</span>
-<span id="L310" class="LineNr">310 </span><span class="Delimiter">:(before &quot;End Primitive Recipe Implementations&quot;)</span>
-<span id="L311" class="LineNr">311 </span><span class="Normal">case</span> _CLEANUP_RUN_SANDBOXED: <span class="Delimiter">{</span>
-<span id="L312" class="LineNr">312 </span>  <a href='101run_sandboxed.cc.html#L151'>run_code_end</a><span class="Delimiter">();</span>
-<span id="L313" class="LineNr">313 </span>  <span class="Identifier">break</span><span class="Delimiter">;</span>
-<span id="L314" class="LineNr">314 </span><span class="Delimiter">}</span>
-<span id="L315" class="LineNr">315 </span>
-<span id="L316" class="LineNr">316 </span><span class="Delimiter">:(scenario &quot;run_interactive_converts_result_to_text&quot;)</span>
-<span id="L317" class="LineNr">317 </span><span class="muRecipe">def</span> <a href='000organization.cc.html#L113'>main</a> [
-<span id="L318" class="LineNr">318 </span>  <span class="Comment"># try to interactively add 2 and 2</span>
-<span id="L319" class="LineNr">319 </span>  <span class="Constant">1</span>:text<span class="Special"> &lt;- </span><span class="Normal">new</span> [add <span class="Constant">2</span><span class="Delimiter">,</span> <span class="Constant">2</span>]
-<span id="L320" class="LineNr">320 </span>  <span class="Constant">2</span>:text<span class="Special"> &lt;- </span>run-sandboxed <span class="Constant">1</span>:text
-<span id="L321" class="LineNr">321 </span>  <span class="Constant">10</span>:@:<span class="Normal">char</span><span class="Special"> &lt;- </span>copy <span class="Constant">2</span>:text/lookup
-<span id="L322" class="LineNr">322 </span>]
-<span id="L323" class="LineNr">323 </span><span class="Comment"># first letter in the output should be '4' in unicode</span>
-<span id="L324" class="LineNr">324 </span><span class="traceContains">+mem: storing 52 in location 11</span>
-<span id="L325" class="LineNr">325 </span>
-<span id="L326" class="LineNr">326 </span><span class="Delimiter">:(scenario &quot;run_interactive_returns_text&quot;)</span>
-<span id="L327" class="LineNr">327 </span><span class="muRecipe">def</span> <a href='000organization.cc.html#L113'>main</a> [
-<span id="L328" class="LineNr">328 </span>  <span class="Comment"># try to interactively add 2 and 2</span>
-<span id="L329" class="LineNr">329 </span>  <span class="Constant">1</span>:text<span class="Special"> &lt;- </span><span class="Normal">new</span> [
-<span id="L330" class="LineNr">330 </span>    <span class="Normal">x</span>:text<span class="Special"> &lt;- </span><span class="Normal">new</span> [a]
-<span id="L331" class="LineNr">331 </span>    <span class="Normal">y</span>:text<span class="Special"> &lt;- </span><span class="Normal">new</span> [b]
-<span id="L332" class="LineNr">332 </span>    <span class="Normal">z</span>:text<span class="Special"> &lt;- </span>append x:text<span class="Delimiter">,</span> y:text
-<span id="L333" class="LineNr">333 </span>  ]
-<span id="L334" class="LineNr">334 </span>  <span class="Constant">2</span>:text<span class="Special"> &lt;- </span>run-sandboxed <span class="Constant">1</span>:text
-<span id="L335" class="LineNr">335 </span>  <span class="Constant">10</span>:@:<span class="Normal">char</span><span class="Special"> &lt;- </span>copy <span class="Constant">2</span>:text/lookup
-<span id="L336" class="LineNr">336 </span>]
-<span id="L337" class="LineNr">337 </span><span class="Comment"># output contains &quot;ab&quot;</span>
-<span id="L338" class="LineNr">338 </span><span class="traceContains">+mem: storing 97 in location 11</span>
-<span id="L339" class="LineNr">339 </span><span class="traceContains">+mem: storing 98 in location 12</span>
-<span id="L340" class="LineNr">340 </span>
-<span id="L341" class="LineNr">341 </span><span class="Delimiter">:(scenario &quot;run_interactive_returns_errors&quot;)</span>
-<span id="L342" class="LineNr">342 </span><span class="muRecipe">def</span> <a href='000organization.cc.html#L113'>main</a> [
-<span id="L343" class="LineNr">343 </span>  <span class="Comment"># run a command that generates an error</span>
-<span id="L344" class="LineNr">344 </span>  <span class="Constant">1</span>:text<span class="Special"> &lt;- </span><span class="Normal">new</span> [x:num<span class="Special"> &lt;- </span>copy <span class="Constant">34</span>
-<span id="L345" class="LineNr">345 </span>get x:num<span class="Delimiter">,</span> <span class="Constant">foo:offset</span>]
-<span id="L346" class="LineNr">346 </span>  <span class="Constant">2</span>:text<span class="Delimiter">,</span> <span class="Constant">3</span>:text<span class="Special"> &lt;- </span>run-sandboxed <span class="Constant">1</span>:text
-<span id="L347" class="LineNr">347 </span>  <span class="Constant">10</span>:@:<span class="Normal">char</span><span class="Special"> &lt;- </span>copy <span class="Constant">3</span>:text/lookup
-<span id="L348" class="LineNr">348 </span>]
-<span id="L349" class="LineNr">349 </span><span class="Comment"># error should be &quot;unknown element foo in container number&quot;</span>
-<span id="L350" class="LineNr">350 </span><span class="traceContains">+mem: storing 117 in location 11</span>
-<span id="L351" class="LineNr">351 </span><span class="traceContains">+mem: storing 110 in location 12</span>
-<span id="L352" class="LineNr">352 </span><span class="traceContains">+mem: storing 107 in location 13</span>
-<span id="L353" class="LineNr">353 </span><span class="traceContains">+mem: storing 110 in location 14</span>
-<span id="L354" class="LineNr">354 </span><span class="Comment"># ...</span>
-<span id="L355" class="LineNr">355 </span>
-<span id="L356" class="LineNr">356 </span><span class="Delimiter">:(scenario run_interactive_with_comment)</span>
-<span id="L357" class="LineNr">357 </span><span class="muRecipe">def</span> <a href='000organization.cc.html#L113'>main</a> [
-<span id="L358" class="LineNr">358 </span>  <span class="Comment"># 2 instructions, with a comment after the first</span>
-<span id="L359" class="LineNr">359 </span>  <span class="Constant">1</span>:&amp;:@:num<span class="Special"> &lt;- </span><span class="Normal">new</span> [a:num<span class="Special"> &lt;- </span>copy <span class="Constant">0</span>  <span class="Comment"># abc</span>
-<span id="L360" class="LineNr">360 </span><span class="Normal">b</span>:num<span class="Special"> &lt;- </span>copy <span class="Constant">0</span>
-<span id="L361" class="LineNr">361 </span>]
-<span id="L362" class="LineNr">362 </span>  <span class="Constant">2</span>:text<span class="Delimiter">,</span> <span class="Constant">3</span>:text<span class="Special"> &lt;- </span>run-sandboxed <span class="Constant">1</span>:text
-<span id="L363" class="LineNr">363 </span>]
-<span id="L364" class="LineNr">364 </span><span class="Comment"># no errors</span>
-<span id="L365" class="LineNr">365 </span><span class="traceContains">+mem: storing 0 in location 3</span>
-<span id="L366" class="LineNr">366 </span>
-<span id="L367" class="LineNr">367 </span><span class="Delimiter">:(before &quot;End Running One Instruction&quot;)</span>
-<span id="L368" class="LineNr">368 </span><span class="Normal">if</span> <span class="Delimiter">(</span>Track_most_recent_products<span class="Delimiter">)</span> <span class="Delimiter">{</span>
-<span id="L369" class="LineNr">369 </span>  <a href='101run_sandboxed.cc.html#L372'>track_most_recent_products</a><span class="Delimiter">(</span>current_instruction<span class="Delimiter">(),</span> products<span class="Delimiter">);</span>
-<span id="L370" class="LineNr">370 </span><span class="Delimiter">}</span>
-<span id="L371" class="LineNr">371 </span><span class="Delimiter">:(code)</span>
-<span id="L372" class="LineNr">372 </span><span class="Normal">void</span> <a href='101run_sandboxed.cc.html#L372'>track_most_recent_products</a><span class="Delimiter">(</span><span class="Normal">const</span> instruction&amp; <a href='010vm.cc.html#L32'>instruction</a><span class="Delimiter">,</span> <span class="Normal">const</span> vector&lt;vector&lt;<span class="Normal">double</span>&gt; &gt;&amp; products<span class="Delimiter">)</span> <span class="Delimiter">{</span>
-<span id="L373" class="LineNr">373 </span>  ostringstream out<span class="Delimiter">;</span>
-<span id="L374" class="LineNr">374 </span>  <span class="Normal">for</span> <span class="Delimiter">(</span><span class="Normal">int</span> i = <span class="Constant">0</span><span class="Delimiter">;</span> i &lt; <a href='001help.cc.html#L138'>SIZE</a><span class="Delimiter">(</span>products<span class="Delimiter">);</span> ++i<span class="Delimiter">)</span> <span class="Delimiter">{</span>
-<span id="L375" class="LineNr">375 </span>    <span class="Comment">// A sandbox can print a string result, but only if it is actually saved</span>
-<span id="L376" class="LineNr">376 </span>    <span class="Comment">// to a variable in the sandbox, because otherwise the results are</span>
-<span id="L377" class="LineNr">377 </span>    <span class="Comment">// reclaimed before the sandbox sees them. So you get these interactions</span>
-<span id="L378" class="LineNr">378 </span>    <span class="Comment">// in the sandbox:</span>
-<span id="L379" class="LineNr">379 </span>    <span class="Comment">//</span>
-<span id="L380" class="LineNr">380 </span>    <span class="Comment">//    new [abc]</span>
-<span id="L381" class="LineNr">381 </span>    <span class="Comment">//    =&gt; &lt;address&gt;</span>
-<span id="L382" class="LineNr">382 </span>    <span class="Comment">//</span>
-<span id="L383" class="LineNr">383 </span>    <span class="Comment">//    x:text &lt;- new [abc]</span>
-<span id="L384" class="LineNr">384 </span>    <span class="Comment">//    =&gt; abc</span>
-<span id="L385" class="LineNr">385 </span>    <span class="Normal">if</span> <span class="Delimiter">(</span>i &lt; <a href='001help.cc.html#L138'>SIZE</a><span class="Delimiter">(</span><a href='010vm.cc.html#L32'>instruction</a><span class="Delimiter">.</span>products<span class="Delimiter">))</span> <span class="Delimiter">{</span>
-<span id="L386" class="LineNr">386 </span>      <span class="Normal">if</span> <span class="Delimiter">(</span><a href='027call_ingredient.cc.html#L174'>is_mu_text</a><span class="Delimiter">(</span><a href='010vm.cc.html#L32'>instruction</a><span class="Delimiter">.</span>products<span class="Delimiter">.</span>at<span class="Delimiter">(</span>i<span class="Delimiter">)))</span> <span class="Delimiter">{</span>
-<span id="L387" class="LineNr">387 </span>        <span class="Normal">if</span> <span class="Delimiter">(</span>!scalar<span class="Delimiter">(</span>products<span class="Delimiter">.</span>at<span class="Delimiter">(</span>i<span class="Delimiter">)))</span> <span class="Identifier">continue</span><span class="Delimiter">;</span>  <span class="Comment">// error handled elsewhere</span>
-<span id="L388" class="LineNr">388 </span>        out &lt;&lt; <a href='038new_text.cc.html#L143'>read_mu_text</a><span class="Delimiter">(</span>products<span class="Delimiter">.</span>at<span class="Delimiter">(</span>i<span class="Delimiter">).</span>at<span class="Delimiter">(</span><span class="Constant">0</span><span class="Delimiter">))</span> &lt;&lt; <span class="cSpecial">'\n'</span><span class="Delimiter">;</span>
-<span id="L389" class="LineNr">389 </span>        <span class="Identifier">continue</span><span class="Delimiter">;</span>
-<span id="L390" class="LineNr">390 </span>      <span class="Delimiter">}</span>
-<span id="L391" class="LineNr">391 </span>    <span class="Delimiter">}</span>
-<span id="L392" class="LineNr">392 </span>    <span class="Normal">for</span> <span class="Delimiter">(</span><span class="Normal">int</span> j = <span class="Constant">0</span><span class="Delimiter">;</span> j &lt; <a href='001help.cc.html#L138'>SIZE</a><span class="Delimiter">(</span>products<span class="Delimiter">.</span>at<span class="Delimiter">(</span>i<span class="Delimiter">));</span> ++j<span class="Delimiter">)</span>
-<span id="L393" class="LineNr">393 </span>      out &lt;&lt; no_scientific<span class="Delimiter">(</span>products<span class="Delimiter">.</span>at<span class="Delimiter">(</span>i<span class="Delimiter">).</span>at<span class="Delimiter">(</span>j<span class="Delimiter">))</span> &lt;&lt; <span class="Constant">' '</span><span class="Delimiter">;</span>
-<span id="L394" class="LineNr">394 </span>    out &lt;&lt; <span class="cSpecial">'\n'</span><span class="Delimiter">;</span>
-<span id="L395" class="LineNr">395 </span>  <span class="Delimiter">}</span>
-<span id="L396" class="LineNr">396 </span>  Most_recent_products = out<span class="Delimiter">.</span>str<span class="Delimiter">();</span>
-<span id="L397" class="LineNr">397 </span><span class="Delimiter">}</span>
-<span id="L398" class="LineNr">398 </span>
-<span id="L399" class="LineNr">399 </span><span class="Delimiter">:(code)</span>
-<span id="L400" class="LineNr">400 </span>string <a href='101run_sandboxed.cc.html#L400'>strip_comments</a><span class="Delimiter">(</span>string in<span class="Delimiter">)</span> <span class="Delimiter">{</span>
-<span id="L401" class="LineNr">401 </span>  ostringstream result<span class="Delimiter">;</span>
-<span id="L402" class="LineNr">402 </span>  <span class="Normal">for</span> <span class="Delimiter">(</span><span class="Normal">int</span> i = <span class="Constant">0</span><span class="Delimiter">;</span> i &lt; <a href='001help.cc.html#L138'>SIZE</a><span class="Delimiter">(</span>in<span class="Delimiter">);</span> ++i<span class="Delimiter">)</span> <span class="Delimiter">{</span>
-<span id="L403" class="LineNr">403 </span>    <span class="Normal">if</span> <span class="Delimiter">(</span>in<span class="Delimiter">.</span>at<span class="Delimiter">(</span>i<span class="Delimiter">)</span> != <span class="Constant">'#'</span><span class="Delimiter">)</span> <span class="Delimiter">{</span>
-<span id="L404" class="LineNr">404 </span>      result &lt;&lt; in<span class="Delimiter">.</span>at<span class="Delimiter">(</span>i<span class="Delimiter">);</span>
-<span id="L405" class="LineNr">405 </span>    <span class="Delimiter">}</span>
-<span id="L406" class="LineNr">406 </span>    <span class="Normal">else</span> <span class="Delimiter">{</span>
-<span id="L407" class="LineNr">407 </span>      <span class="Normal">while</span> <span class="Delimiter">(</span>i+<span class="Constant">1</span> &lt; <a href='001help.cc.html#L138'>SIZE</a><span class="Delimiter">(</span>in<span class="Delimiter">)</span> &amp;&amp; in<span class="Delimiter">.</span>at<span class="Delimiter">(</span>i+<span class="Constant">1</span><span class="Delimiter">)</span> != <span class="cSpecial">'\n'</span><span class="Delimiter">)</span>
-<span id="L408" class="LineNr">408 </span>        ++i<span class="Delimiter">;</span>
-<span id="L409" class="LineNr">409 </span>    <span class="Delimiter">}</span>
-<span id="L410" class="LineNr">410 </span>  <span class="Delimiter">}</span>
-<span id="L411" class="LineNr">411 </span>  <span class="Identifier">return</span> result<span class="Delimiter">.</span>str<span class="Delimiter">();</span>
-<span id="L412" class="LineNr">412 </span><span class="Delimiter">}</span>
-<span id="L413" class="LineNr">413 </span>
-<span id="L414" class="LineNr">414 </span><span class="Normal">int</span> <a href='101run_sandboxed.cc.html#L414'>stringified_value_of_location</a><span class="Delimiter">(</span><span class="Normal">int</span> <a href='043space.cc.html#L76'>address</a><span class="Delimiter">)</span> <span class="Delimiter">{</span>
-<span id="L415" class="LineNr">415 </span>  <span class="Comment">// convert to string</span>
-<span id="L416" class="LineNr">416 </span>  ostringstream out<span class="Delimiter">;</span>
-<span id="L417" class="LineNr">417 </span>  out &lt;&lt; no_scientific<span class="Delimiter">(</span><a href='001help.cc.html#L225'>get_or_insert</a><span class="Delimiter">(</span>Memory<span class="Delimiter">,</span> <a href='043space.cc.html#L76'>address</a><span class="Delimiter">));</span>
-<span id="L418" class="LineNr">418 </span>  <span class="Identifier">return</span> <a href='038new_text.cc.html#L38'>new_mu_text</a><span class="Delimiter">(</span>out<span class="Delimiter">.</span>str<span class="Delimiter">());</span>
-<span id="L419" class="LineNr">419 </span><span class="Delimiter">}</span>
-<span id="L420" class="LineNr">420 </span>
-<span id="L421" class="LineNr">421 </span><span class="Normal">int</span> <a href='101run_sandboxed.cc.html#L421'>trace_error_contents</a><span class="Delimiter">()</span> <span class="Delimiter">{</span>
-<span id="L422" class="LineNr">422 </span>  <span class="Normal">if</span> <span class="Delimiter">(</span>!Trace_stream<span class="Delimiter">)</span> <span class="Identifier">return</span> <span class="Constant">0</span><span class="Delimiter">;</span>
-<span id="L423" class="LineNr">423 </span>  ostringstream out<span class="Delimiter">;</span>
-<span id="L424" class="LineNr">424 </span>  <span class="Normal">for</span> <span class="Delimiter">(</span>vector&lt;trace_line&gt;::iterator p = Trace_stream<span class="Delimiter">-&gt;</span>past_lines<span class="Delimiter">.</span>begin<span class="Delimiter">();</span> p != Trace_stream<span class="Delimiter">-&gt;</span>past_lines<span class="Delimiter">.</span><a href='003trace.cc.html#L195'>end</a><span class="Delimiter">();</span> ++p<span class="Delimiter">)</span> <span class="Delimiter">{</span>
-<span id="L425" class="LineNr">425 </span>    <span class="Normal">if</span> <span class="Delimiter">(</span>p<span class="Delimiter">-&gt;</span>label != <span class="Constant">&quot;error&quot;</span><span class="Delimiter">)</span> <span class="Identifier">continue</span><span class="Delimiter">;</span>
-<span id="L426" class="LineNr">426 </span>    out &lt;&lt; p<span class="Delimiter">-&gt;</span>contents<span class="Delimiter">;</span>
-<span id="L427" class="LineNr">427 </span>    <span class="Normal">if</span> <span class="Delimiter">(</span>*--p<span class="Delimiter">-&gt;</span>contents<span class="Delimiter">.</span><a href='003trace.cc.html#L195'>end</a><span class="Delimiter">()</span> != <span class="cSpecial">'\n'</span><span class="Delimiter">)</span> out &lt;&lt; <span class="cSpecial">'\n'</span><span class="Delimiter">;</span>
-<span id="L428" class="LineNr">428 </span>  <span class="Delimiter">}</span>
-<span id="L429" class="LineNr">429 </span>  string result = out<span class="Delimiter">.</span>str<span class="Delimiter">();</span>
-<span id="L430" class="LineNr">430 </span>  <a href='101run_sandboxed.cc.html#L449'>truncate</a><span class="Delimiter">(</span>result<span class="Delimiter">);</span>
-<span id="L431" class="LineNr">431 </span>  <span class="Normal">if</span> <span class="Delimiter">(</span>result<span class="Delimiter">.</span>empty<span class="Delimiter">())</span> <span class="Identifier">return</span> <span class="Constant">0</span><span class="Delimiter">;</span>
-<span id="L432" class="LineNr">432 </span>  <span class="Identifier">return</span> <a href='038new_text.cc.html#L38'>new_mu_text</a><span class="Delimiter">(</span>result<span class="Delimiter">);</span>
-<span id="L433" class="LineNr">433 </span><span class="Delimiter">}</span>
-<span id="L434" class="LineNr">434 </span>
-<span id="L435" class="LineNr">435 </span><span class="Normal">int</span> <a href='101run_sandboxed.cc.html#L435'>trace_app_contents</a><span class="Delimiter">()</span> <span class="Delimiter">{</span>
-<span id="L436" class="LineNr">436 </span>  <span class="Normal">if</span> <span class="Delimiter">(</span>!Trace_stream<span class="Delimiter">)</span> <span class="Identifier">return</span> <span class="Constant">0</span><span class="Delimiter">;</span>
-<span id="L437" class="LineNr">437 </span>  ostringstream out<span class="Delimiter">;</span>
-<span id="L438" class="LineNr">438 </span>  <span class="Normal">for</span> <span class="Delimiter">(</span>vector&lt;trace_line&gt;::iterator p = Trace_stream<span class="Delimiter">-&gt;</span>past_lines<span class="Delimiter">.</span>begin<span class="Delimiter">();</span> p != Trace_stream<span class="Delimiter">-&gt;</span>past_lines<span class="Delimiter">.</span><a href='003trace.cc.html#L195'>end</a><span class="Delimiter">();</span> ++p<span class="Delimiter">)</span> <span class="Delimiter">{</span>
-<span id="L439" class="LineNr">439 </span>    <span class="Normal">if</span> <span class="Delimiter">(</span>p<span class="Delimiter">-&gt;</span>depth != App_depth<span class="Delimiter">)</span> <span class="Identifier">continue</span><span class="Delimiter">;</span>
-<span id="L440" class="LineNr">440 </span>    out &lt;&lt; p<span class="Delimiter">-&gt;</span>contents<span class="Delimiter">;</span>
-<span id="L441" class="LineNr">441 </span>    <span class="Normal">if</span> <span class="Delimiter">(</span>*--p<span class="Delimiter">-&gt;</span>contents<span class="Delimiter">.</span><a href='003trace.cc.html#L195'>end</a><span class="Delimiter">()</span> != <span class="cSpecial">'\n'</span><span class="Delimiter">)</span> out &lt;&lt; <span class="cSpecial">'\n'</span><span class="Delimiter">;</span>
-<span id="L442" class="LineNr">442 </span>  <span class="Delimiter">}</span>
-<span id="L443" class="LineNr">443 </span>  string result = out<span class="Delimiter">.</span>str<span class="Delimiter">();</span>
-<span id="L444" class="LineNr">444 </span>  <span class="Normal">if</span> <span class="Delimiter">(</span>result<span class="Delimiter">.</span>empty<span class="Delimiter">())</span> <span class="Identifier">return</span> <span class="Constant">0</span><span class="Delimiter">;</span>
-<span id="L445" class="LineNr">445 </span>  <a href='101run_sandboxed.cc.html#L449'>truncate</a><span class="Delimiter">(</span>result<span class="Delimiter">);</span>
-<span id="L446" class="LineNr">446 </span>  <span class="Identifier">return</span> <a href='038new_text.cc.html#L38'>new_mu_text</a><span class="Delimiter">(</span>result<span class="Delimiter">);</span>
-<span id="L447" class="LineNr">447 </span><span class="Delimiter">}</span>
-<span id="L448" class="LineNr">448 </span>
-<span id="L449" class="LineNr">449 </span><span class="Normal">void</span> <a href='101run_sandboxed.cc.html#L449'>truncate</a><span class="Delimiter">(</span>string&amp; x<span class="Delimiter">)</span> <span class="Delimiter">{</span>
-<span id="L450" class="LineNr">450 </span>  <span class="Normal">if</span> <span class="Delimiter">(</span><a href='001help.cc.html#L138'>SIZE</a><span class="Delimiter">(</span>x<span class="Delimiter">)</span> &gt; <span class="Constant">1024</span><span class="Delimiter">)</span> <span class="Delimiter">{</span>
-<span id="L451" class="LineNr">451 </span>    x<span class="Delimiter">.</span>erase<span class="Delimiter">(</span><span class="Constant">1024</span><span class="Delimiter">);</span>
-<span id="L452" class="LineNr">452 </span>    *x<span class="Delimiter">.</span>rbegin<span class="Delimiter">()</span> = <span class="cSpecial">'\n'</span><span class="Delimiter">;</span>
-<span id="L453" class="LineNr">453 </span>    *++x<span class="Delimiter">.</span>rbegin<span class="Delimiter">()</span> = <span class="Constant">'.'</span><span class="Delimiter">;</span>
-<span id="L454" class="LineNr">454 </span>    *++++x<span class="Delimiter">.</span>rbegin<span class="Delimiter">()</span> = <span class="Constant">'.'</span><span class="Delimiter">;</span>
-<span id="L455" class="LineNr">455 </span>  <span class="Delimiter">}</span>
-<span id="L456" class="LineNr">456 </span><span class="Delimiter">}</span>
-<span id="L457" class="LineNr">457 </span>
-<span id="L458" class="LineNr">458 </span><span class="Comment">//: simpler version of run-sandboxed: doesn't do any running, just loads</span>
-<span id="L459" class="LineNr">459 </span><span class="Comment">//: recipes and reports errors.</span>
-<span id="L460" class="LineNr">460 </span>
-<span id="L461" class="LineNr">461 </span><span class="Delimiter">:(before &quot;End Primitive Recipe Declarations&quot;)</span>
-<span id="L462" class="LineNr">462 </span>RELOAD<span class="Delimiter">,</span>
-<span id="L463" class="LineNr">463 </span><span class="Delimiter">:(before &quot;End Primitive Recipe Numbers&quot;)</span>
-<span id="L464" class="LineNr">464 </span><a href='001help.cc.html#L218'>put</a><span class="Delimiter">(</span>Recipe_ordinal<span class="Delimiter">,</span> <span class="Constant">&quot;reload&quot;</span><span class="Delimiter">,</span> RELOAD<span class="Delimiter">);</span>
-<span id="L465" class="LineNr">465 </span><span class="Delimiter">:(before &quot;End Primitive Recipe Checks&quot;)</span>
-<span id="L466" class="LineNr">466 </span><span class="Normal">case</span> RELOAD: <span class="Delimiter">{</span>
-<span id="L467" class="LineNr">467 </span>  <span class="Normal">if</span> <span class="Delimiter">(</span><a href='001help.cc.html#L138'>SIZE</a><span class="Delimiter">(</span>inst<span class="Delimiter">.</span>ingredients<span class="Delimiter">)</span> != <span class="Constant">1</span><span class="Delimiter">)</span> <span class="Delimiter">{</span>
-<span id="L468" class="LineNr">468 </span>    <a href='003trace.cc.html#L178'>raise</a> &lt;&lt; <a href='013update_operation.cc.html#L25'>maybe</a><span class="Delimiter">(</span>get<span class="Delimiter">(</span>Recipe<span class="Delimiter">,</span> r<span class="Delimiter">).</span>name<span class="Delimiter">)</span> &lt;&lt; <span class="Constant">&quot;'reload' requires exactly one ingredient, but got '&quot;</span> &lt;&lt; inst<span class="Delimiter">.</span>original_string &lt;&lt; <span class="Constant">&quot;'</span><span class="cSpecial">\n</span><span class="Constant">&quot;</span> &lt;&lt; <a href='003trace.cc.html#L195'>end</a><span class="Delimiter">();</span>
-<span id="L469" class="LineNr">469 </span>    <span class="Identifier">break</span><span class="Delimiter">;</span>
-<span id="L470" class="LineNr">470 </span>  <span class="Delimiter">}</span>
-<span id="L471" class="LineNr">471 </span>  <span class="Normal">if</span> <span class="Delimiter">(</span>!is_mu_text<span class="Delimiter">(</span>inst<span class="Delimiter">.</span>ingredients<span class="Delimiter">.</span>at<span class="Delimiter">(</span><span class="Constant">0</span><span class="Delimiter">)))</span> <span class="Delimiter">{</span>
-<span id="L472" class="LineNr">472 </span>    <a href='003trace.cc.html#L178'>raise</a> &lt;&lt; <a href='013update_operation.cc.html#L25'>maybe</a><span class="Delimiter">(</span>get<span class="Delimiter">(</span>Recipe<span class="Delimiter">,</span> r<span class="Delimiter">).</span>name<span class="Delimiter">)</span> &lt;&lt; <span class="Constant">&quot;first ingredient of 'reload' should be a string, but got '&quot;</span> &lt;&lt; inst<span class="Delimiter">.</span>ingredients<span class="Delimiter">.</span>at<span class="Delimiter">(</span><span class="Constant">0</span><span class="Delimiter">).</span>original_string &lt;&lt; <span class="Constant">&quot;'</span><span class="cSpecial">\n</span><span class="Constant">&quot;</span> &lt;&lt; <a href='003trace.cc.html#L195'>end</a><span class="Delimiter">();</span>
-<span id="L473" class="LineNr">473 </span>    <span class="Identifier">break</span><span class="Delimiter">;</span>
-<span id="L474" class="LineNr">474 </span>  <span class="Delimiter">}</span>
-<span id="L475" class="LineNr">475 </span>  <span class="Identifier">break</span><span class="Delimiter">;</span>
-<span id="L476" class="LineNr">476 </span><span class="Delimiter">}</span>
-<span id="L477" class="LineNr">477 </span><span class="Delimiter">:(before &quot;End Primitive Recipe Implementations&quot;)</span>
-<span id="L478" class="LineNr">478 </span><span class="Normal">case</span> RELOAD: <span class="Delimiter">{</span>
-<span id="L479" class="LineNr">479 </span>  restore_non_recipe_snapshots<span class="Delimiter">();</span>
-<span id="L480" class="LineNr">480 </span>  string code = <a href='038new_text.cc.html#L143'>read_mu_text</a><span class="Delimiter">(</span>ingredients<span class="Delimiter">.</span>at<span class="Delimiter">(</span><span class="Constant">0</span><span class="Delimiter">).</span>at<span class="Delimiter">(</span><span class="Constant">0</span><span class="Delimiter">));</span>
-<span id="L481" class="LineNr">481 </span>  <a href='101run_sandboxed.cc.html#L140'>run_code_begin</a><span class="Delimiter">(</span><span class="Comment">/*</span><span class="Comment">should_stash_snapshots</span><span class="Comment">*/</span><span class="Constant">false</span><span class="Delimiter">);</span>
-<span id="L482" class="LineNr">482 </span>  routine* save_current_routine = Current_routine<span class="Delimiter">;</span>
-<span id="L483" class="LineNr">483 </span>  Current_routine = <span class="Constant">NULL</span><span class="Delimiter">;</span>
-<span id="L484" class="LineNr">484 </span>  Sandbox_mode = <span class="Constant">true</span><span class="Delimiter">;</span>
-<span id="L485" class="LineNr">485 </span>  vector&lt;recipe_ordinal&gt; recipes_reloaded = load<span class="Delimiter">(</span>code<span class="Delimiter">);</span>
-<span id="L486" class="LineNr">486 </span>  <a href='012transform.cc.html#L46'>transform_all</a><span class="Delimiter">();</span>
-<span id="L487" class="LineNr">487 </span>  Trace_stream<span class="Delimiter">-&gt;</span><a href='003trace.cc.html#L137'>newline</a><span class="Delimiter">();</span>  <span class="Comment">// flush trace</span>
-<span id="L488" class="LineNr">488 </span>  Sandbox_mode = <span class="Constant">false</span><span class="Delimiter">;</span>
-<span id="L489" class="LineNr">489 </span>  Current_routine = save_current_routine<span class="Delimiter">;</span>
-<span id="L490" class="LineNr">490 </span>  products<span class="Delimiter">.</span>resize<span class="Delimiter">(</span><span class="Constant">1</span><span class="Delimiter">);</span>
-<span id="L491" class="LineNr">491 </span>  products<span class="Delimiter">.</span>at<span class="Delimiter">(</span><span class="Constant">0</span><span class="Delimiter">).</span>push_back<span class="Delimiter">(</span><a href='101run_sandboxed.cc.html#L421'>trace_error_contents</a><span class="Delimiter">());</span>
-<span id="L492" class="LineNr">492 </span>  <a href='101run_sandboxed.cc.html#L151'>run_code_end</a><span class="Delimiter">();</span>  <span class="Comment">// wait until we're done with the trace contents</span>
-<span id="L493" class="LineNr">493 </span>  <span class="Identifier">break</span><span class="Delimiter">;</span>
-<span id="L494" class="LineNr">494 </span><span class="Delimiter">}</span>
-<span id="L495" class="LineNr">495 </span>
-<span id="L496" class="LineNr">496 </span><span class="Delimiter">:(scenario reload_continues_past_error)</span>
-<span id="L497" class="LineNr">497 </span><span class="muRecipe">def</span> <a href='000organization.cc.html#L113'>main</a> [
-<span id="L498" class="LineNr">498 </span>  local-scope
-<span id="L499" class="LineNr">499 </span>  <span class="Normal">x</span>:text<span class="Special"> &lt;- </span><span class="Normal">new</span> [recipe foo [
-<span id="L500" class="LineNr">500 </span>  get <span class="Constant">1234</span>:num<span class="Delimiter">,</span> <span class="Constant">foo:offset</span>
-<span id="L501" class="LineNr">501 </span>]]
-<span id="L502" class="LineNr">502 </span>  reload x
-<span id="L503" class="LineNr">503 </span>  <span class="Constant">1</span>:num/<span class="Special">raw &lt;- </span>copy <span class="Constant">34</span>
-<span id="L504" class="LineNr">504 </span>]
-<span id="L505" class="LineNr">505 </span><span class="traceContains">+mem: storing 34 in location 1</span>
-<span id="L506" class="LineNr">506 </span>
-<span id="L507" class="LineNr">507 </span><span class="Delimiter">:(scenario reload_can_repeatedly_load_container_definitions)</span>
-<span id="L508" class="LineNr">508 </span><span class="Comment"># define a container and try to create it (merge requires knowing container size)</span>
-<span id="L509" class="LineNr">509 </span><span class="muRecipe">def</span> <a href='000organization.cc.html#L113'>main</a> [
-<span id="L510" class="LineNr">510 </span>  local-scope
-<span id="L511" class="LineNr">511 </span>  <span class="Normal">x</span>:text<span class="Special"> &lt;- </span><span class="Normal">new</span> [
-<span id="L512" class="LineNr">512 </span>    container foo [
-<span id="L513" class="LineNr">513 </span>      <span class="Normal">x</span>:num
-<span id="L514" class="LineNr">514 </span>      <span class="Normal">y</span>:num
-<span id="L515" class="LineNr">515 </span>    ]
-<span id="L516" class="LineNr">516 </span>    <a href='010vm.cc.html#L19'>recipe</a> bar [
-<span id="L517" class="LineNr">517 </span>      local-scope
-<span id="L518" class="LineNr">518 </span>      <span class="Normal">x</span>:foo<span class="Special"> &lt;- </span>merge <span class="Constant">34</span><span class="Delimiter">,</span> <span class="Constant">35</span>
-<span id="L519" class="LineNr">519 </span>    ]
-<span id="L520" class="LineNr">520 </span>  ]
-<span id="L521" class="LineNr">521 </span>  <span class="Comment"># save warning addresses in locations of type 'number' to avoid spurious changes to them due to 'abandon'</span>
-<span id="L522" class="LineNr">522 </span>  <span class="Constant">1</span>:num/<span class="Special">raw &lt;- </span>reload x
-<span id="L523" class="LineNr">523 </span>  <span class="Constant">2</span>:num/<span class="Special">raw &lt;- </span>reload x
-<span id="L524" class="LineNr">524 </span>]
-<span id="L525" class="LineNr">525 </span><span class="Comment"># no errors on either load</span>
-<span id="L526" class="LineNr">526 </span><span class="traceContains">+mem: storing 0 in location 1</span>
-<span id="L527" class="LineNr">527 </span><span class="traceContains">+mem: storing 0 in location 2</span>
+<span id="L138" class="LineNr">138 </span>vector&lt;scenario&gt; Scenarios_snapshot_stash<span class="Delimiter">;</span>
+<span id="L139" class="LineNr">139 </span>set&lt;string&gt; Scenario_names_snapshot_stash<span class="Delimiter">;</span>
+<span id="L140" class="LineNr">140 </span>
+<span id="L141" class="LineNr">141 </span><span class="Delimiter">:(code)</span>
+<span id="L142" class="LineNr">142 </span><span class="Normal">void</span> <a href='101run_sandboxed.cc.html#L142'>run_code_begin</a><span class="Delimiter">(</span><span class="Normal">bool</span> should_stash_snapshots<span class="Delimiter">)</span> <span class="Delimiter">{</span>
+<span id="L143" class="LineNr">143 </span>  <span class="Comment">// stuff to undo later, in run_code_end()</span>
+<span id="L144" class="LineNr">144 </span>  Hide_errors = <span class="Constant">true</span><span class="Delimiter">;</span>
+<span id="L145" class="LineNr">145 </span>  Disable_redefine_checks = <span class="Constant">true</span><span class="Delimiter">;</span>
+<span id="L146" class="LineNr">146 </span>  <span class="Normal">if</span> <span class="Delimiter">(</span>should_stash_snapshots<span class="Delimiter">)</span>
+<span id="L147" class="LineNr">147 </span>    <a href='101run_sandboxed.cc.html#L169'>stash_snapshots</a><span class="Delimiter">();</span>
+<span id="L148" class="LineNr">148 </span>  Save_trace_stream = Trace_stream<span class="Delimiter">;</span>
+<span id="L149" class="LineNr">149 </span>  Trace_stream = <span class="Normal">new</span> trace_stream<span class="Delimiter">;</span>
+<span id="L150" class="LineNr">150 </span>  Trace_stream<span class="Delimiter">-&gt;</span>collect_depth = App_depth<span class="Delimiter">;</span>
+<span id="L151" class="LineNr">151 </span><span class="Delimiter">}</span>
+<span id="L152" class="LineNr">152 </span>
+<span id="L153" class="LineNr">153 </span><span class="Normal">void</span> <a href='101run_sandboxed.cc.html#L153'>run_code_end</a><span class="Delimiter">()</span> <span class="Delimiter">{</span>
+<span id="L154" class="LineNr">154 </span>  Hide_errors = <span class="Constant">false</span><span class="Delimiter">;</span>
+<span id="L155" class="LineNr">155 </span>  Disable_redefine_checks = <span class="Constant">false</span><span class="Delimiter">;</span>
+<span id="L156" class="LineNr">156 </span><span class="CommentedCode">//?   ofstream fout(&quot;sandbox.log&quot;);</span>
+<span id="L157" class="LineNr">157 </span><span class="CommentedCode">//?   fout &lt;&lt; Trace_stream-&gt;readable_contents(&quot;&quot;);</span>
+<span id="L158" class="LineNr">158 </span><span class="CommentedCode">//?   fout.close();</span>
+<span id="L159" class="LineNr">159 </span>  <span class="Normal">delete</span> Trace_stream<span class="Delimiter">;</span>
+<span id="L160" class="LineNr">160 </span>  Trace_stream = Save_trace_stream<span class="Delimiter">;</span>
+<span id="L161" class="LineNr">161 </span>  Save_trace_stream = <span class="Constant">NULL</span><span class="Delimiter">;</span>
+<span id="L162" class="LineNr">162 </span>  Save_trace_file<span class="Delimiter">.</span><a href='050scenario.cc.html#L60'>clear</a><span class="Delimiter">();</span>
+<span id="L163" class="LineNr">163 </span>  Recipe<span class="Delimiter">.</span>erase<span class="Delimiter">(</span>get<span class="Delimiter">(</span>Recipe_ordinal<span class="Delimiter">,</span> <span class="Constant">&quot;interactive&quot;</span><span class="Delimiter">));</span>  <span class="Comment">// keep past sandboxes from inserting errors</span>
+<span id="L164" class="LineNr">164 </span>  <span class="Normal">if</span> <span class="Delimiter">(</span>!Recipe_snapshot_stash<span class="Delimiter">.</span>empty<span class="Delimiter">())</span>
+<span id="L165" class="LineNr">165 </span>    <a href='101run_sandboxed.cc.html#L190'>unstash_snapshots</a><span class="Delimiter">();</span>
+<span id="L166" class="LineNr">166 </span><span class="Delimiter">}</span>
+<span id="L167" class="LineNr">167 </span>
+<span id="L168" class="LineNr">168 </span><span class="Comment">// keep sync'd with save_snapshots and restore_snapshots</span>
+<span id="L169" class="LineNr">169 </span><span class="Normal">void</span> <a href='101run_sandboxed.cc.html#L169'>stash_snapshots</a><span class="Delimiter">()</span> <span class="Delimiter">{</span>
+<span id="L170" class="LineNr">170 </span>  assert<span class="Delimiter">(</span>Recipe_ordinal_snapshot_stash<span class="Delimiter">.</span>empty<span class="Delimiter">());</span>
+<span id="L171" class="LineNr">171 </span>  Recipe_ordinal_snapshot_stash = Recipe_ordinal_snapshot<span class="Delimiter">;</span>
+<span id="L172" class="LineNr">172 </span>  assert<span class="Delimiter">(</span>Recipe_snapshot_stash<span class="Delimiter">.</span>empty<span class="Delimiter">());</span>
+<span id="L173" class="LineNr">173 </span>  Recipe_snapshot_stash = Recipe_snapshot<span class="Delimiter">;</span>
+<span id="L174" class="LineNr">174 </span>  assert<span class="Delimiter">(</span>Type_ordinal_snapshot_stash<span class="Delimiter">.</span>empty<span class="Delimiter">());</span>
+<span id="L175" class="LineNr">175 </span>  Type_ordinal_snapshot_stash = Type_ordinal_snapshot<span class="Delimiter">;</span>
+<span id="L176" class="LineNr">176 </span>  assert<span class="Delimiter">(</span>Type_snapshot_stash<span class="Delimiter">.</span>empty<span class="Delimiter">());</span>
+<span id="L177" class="LineNr">177 </span>  Type_snapshot_stash = Type_snapshot<span class="Delimiter">;</span>
+<span id="L178" class="LineNr">178 </span>  assert<span class="Delimiter">(</span>Name_snapshot_stash<span class="Delimiter">.</span>empty<span class="Delimiter">());</span>
+<span id="L179" class="LineNr">179 </span>  Name_snapshot_stash = Name_snapshot<span class="Delimiter">;</span>
+<span id="L180" class="LineNr">180 </span>  assert<span class="Delimiter">(</span>Recipe_variants_snapshot_stash<span class="Delimiter">.</span>empty<span class="Delimiter">());</span>
+<span id="L181" class="LineNr">181 </span>  Recipe_variants_snapshot_stash = Recipe_variants_snapshot<span class="Delimiter">;</span>
+<span id="L182" class="LineNr">182 </span>  assert<span class="Delimiter">(</span>Type_abbreviations_snapshot_stash<span class="Delimiter">.</span>empty<span class="Delimiter">());</span>
+<span id="L183" class="LineNr">183 </span>  Type_abbreviations_snapshot_stash = Type_abbreviations_snapshot<span class="Delimiter">;</span>
+<span id="L184" class="LineNr">184 </span>  assert<span class="Delimiter">(</span>Scenarios_snapshot_stash<span class="Delimiter">.</span>empty<span class="Delimiter">());</span>
+<span id="L185" class="LineNr">185 </span>  Scenarios_snapshot_stash = Scenarios_snapshot<span class="Delimiter">;</span>
+<span id="L186" class="LineNr">186 </span>  assert<span class="Delimiter">(</span>Scenario_names_snapshot_stash<span class="Delimiter">.</span>empty<span class="Delimiter">());</span>
+<span id="L187" class="LineNr">187 </span>  Scenario_names_snapshot_stash = Scenario_names_snapshot<span class="Delimiter">;</span>
+<span id="L188" class="LineNr">188 </span>  save_snapshots<span class="Delimiter">();</span>
+<span id="L189" class="LineNr">189 </span><span class="Delimiter">}</span>
+<span id="L190" class="LineNr">190 </span><span class="Normal">void</span> <a href='101run_sandboxed.cc.html#L190'>unstash_snapshots</a><span class="Delimiter">()</span> <span class="Delimiter">{</span>
+<span id="L191" class="LineNr">191 </span>  restore_snapshots<span class="Delimiter">();</span>
+<span id="L192" class="LineNr">192 </span>  Recipe_ordinal_snapshot = Recipe_ordinal_snapshot_stash<span class="Delimiter">;</span>  Recipe_ordinal_snapshot_stash<span class="Delimiter">.</span><a href='050scenario.cc.html#L60'>clear</a><span class="Delimiter">();</span>
+<span id="L193" class="LineNr">193 </span>  Recipe_snapshot = Recipe_snapshot_stash<span class="Delimiter">;</span>  Recipe_snapshot_stash<span class="Delimiter">.</span><a href='050scenario.cc.html#L60'>clear</a><span class="Delimiter">();</span>
+<span id="L194" class="LineNr">194 </span>  Type_ordinal_snapshot = Type_ordinal_snapshot_stash<span class="Delimiter">;</span>  Type_ordinal_snapshot_stash<span class="Delimiter">.</span><a href='050scenario.cc.html#L60'>clear</a><span class="Delimiter">();</span>
+<span id="L195" class="LineNr">195 </span>  Type_snapshot = Type_snapshot_stash<span class="Delimiter">;</span>  Type_snapshot_stash<span class="Delimiter">.</span><a href='050scenario.cc.html#L60'>clear</a><span class="Delimiter">();</span>
+<span id="L196" class="LineNr">196 </span>  Name_snapshot = Name_snapshot_stash<span class="Delimiter">;</span>  Name_snapshot_stash<span class="Delimiter">.</span><a href='050scenario.cc.html#L60'>clear</a><span class="Delimiter">();</span>
+<span id="L197" class="LineNr">197 </span>  Recipe_variants_snapshot = Recipe_variants_snapshot_stash<span class="Delimiter">;</span>  Recipe_variants_snapshot_stash<span class="Delimiter">.</span><a href='050scenario.cc.html#L60'>clear</a><span class="Delimiter">();</span>
+<span id="L198" class="LineNr">198 </span>  Type_abbreviations_snapshot = Type_abbreviations_snapshot_stash<span class="Delimiter">;</span>  Type_abbreviations_snapshot_stash<span class="Delimiter">.</span><a href='050scenario.cc.html#L60'>clear</a><span class="Delimiter">();</span>
+<span id="L199" class="LineNr">199 </span>  Scenarios_snapshot = Scenarios_snapshot_stash<span class="Delimiter">;</span>  Scenarios_snapshot_stash<span class="Delimiter">.</span><a href='050scenario.cc.html#L60'>clear</a><span class="Delimiter">();</span>
+<span id="L200" class="LineNr">200 </span>  Scenario_names_snapshot = Scenario_names_snapshot_stash<span class="Delimiter">;</span>  Scenario_names_snapshot_stash<span class="Delimiter">.</span><a href='050scenario.cc.html#L60'>clear</a><span class="Delimiter">();</span>
+<span id="L201" class="LineNr">201 </span><span class="Delimiter">}</span>
+<span id="L202" class="LineNr">202 </span>
+<span id="L203" class="LineNr">203 </span><span class="Delimiter">:(before &quot;End Load Recipes&quot;)</span>
+<span id="L204" class="LineNr">204 </span>load<span class="Delimiter">(</span>string<span class="Delimiter">(</span>
+<span id="L205" class="LineNr">205 </span><span class="Constant">&quot;recipe interactive [</span><span class="cSpecial">\n</span><span class="Constant">&quot;</span><span class="Delimiter">)</span> +  <span class="Comment">// just a dummy version to initialize the Recipe_ordinal and so on</span>
+<span id="L206" class="LineNr">206 </span><span class="Constant">&quot;]</span><span class="cSpecial">\n</span><span class="Constant">&quot;</span> +
+<span id="L207" class="LineNr">207 </span><span class="Constant">&quot;recipe sandbox [</span><span class="cSpecial">\n</span><span class="Constant">&quot;</span> +
+<span id="L208" class="LineNr">208 </span>  <span class="Constant">&quot;local-scope</span><span class="cSpecial">\n</span><span class="Constant">&quot;</span> +
+<span id="L209" class="LineNr">209 </span>  <span class="Constant">&quot;screen:&amp;:screen &lt;- new-fake-screen 30, 5</span><span class="cSpecial">\n</span><span class="Constant">&quot;</span> +
+<span id="L210" class="LineNr">210 </span>  <span class="Constant">&quot;routine-id:num &lt;- start-running interactive, screen</span><span class="cSpecial">\n</span><span class="Constant">&quot;</span> +
+<span id="L211" class="LineNr">211 </span>  <span class="Constant">&quot;limit-time routine-id, 100000/instructions</span><span class="cSpecial">\n</span><span class="Constant">&quot;</span> +
+<span id="L212" class="LineNr">212 </span>  <span class="Constant">&quot;wait-for-routine routine-id</span><span class="cSpecial">\n</span><span class="Constant">&quot;</span> +
+<span id="L213" class="LineNr">213 </span>  <span class="Constant">&quot;instructions-run:num &lt;- number-of-instructions routine-id</span><span class="cSpecial">\n</span><span class="Constant">&quot;</span> +
+<span id="L214" class="LineNr">214 </span>  <span class="Constant">&quot;stash instructions-run [instructions run]</span><span class="cSpecial">\n</span><span class="Constant">&quot;</span> +
+<span id="L215" class="LineNr">215 </span>  <span class="Constant">&quot;sandbox-state:num &lt;- routine-state routine-id</span><span class="cSpecial">\n</span><span class="Constant">&quot;</span> +
+<span id="L216" class="LineNr">216 </span>  <span class="Constant">&quot;completed?:bool &lt;- equal sandbox-state, 1/completed</span><span class="cSpecial">\n</span><span class="Constant">&quot;</span> +
+<span id="L217" class="LineNr">217 </span>  <span class="Constant">&quot;output:text &lt;- $most-recent-products</span><span class="cSpecial">\n</span><span class="Constant">&quot;</span> +
+<span id="L218" class="LineNr">218 </span>  <span class="Constant">&quot;errors:text &lt;- save-errors</span><span class="cSpecial">\n</span><span class="Constant">&quot;</span> +
+<span id="L219" class="LineNr">219 </span>  <span class="Constant">&quot;stashes:text &lt;- save-app-trace</span><span class="cSpecial">\n</span><span class="Constant">&quot;</span> +
+<span id="L220" class="LineNr">220 </span>  <span class="Constant">&quot;$cleanup-run-sandboxed</span><span class="cSpecial">\n</span><span class="Constant">&quot;</span> +
+<span id="L221" class="LineNr">221 </span>  <span class="Constant">&quot;return output, errors, screen, stashes, completed?</span><span class="cSpecial">\n</span><span class="Constant">&quot;</span> +
+<span id="L222" class="LineNr">222 </span><span class="Constant">&quot;]</span><span class="cSpecial">\n</span><span class="Constant">&quot;</span><span class="Delimiter">);</span>
+<span id="L223" class="LineNr">223 </span>
+<span id="L224" class="LineNr">224 </span><span class="Comment">//: adjust errors in the sandbox</span>
+<span id="L225" class="LineNr">225 </span><span class="Delimiter">:(after &quot;string maybe(string s)&quot;)</span>
+<span id="L226" class="LineNr">226 </span>  <span class="Normal">if</span> <span class="Delimiter">(</span>s == <span class="Constant">&quot;interactive&quot;</span><span class="Delimiter">)</span> <span class="Identifier">return</span> <span class="Constant">&quot;&quot;</span><span class="Delimiter">;</span>
+<span id="L227" class="LineNr">227 </span>
+<span id="L228" class="LineNr">228 </span><span class="Delimiter">:(scenario run_interactive_comments)</span>
+<span id="L229" class="LineNr">229 </span><span class="muRecipe">def</span> <a href='000organization.cc.html#L113'>main</a> [
+<span id="L230" class="LineNr">230 </span>  <span class="Constant">1</span>:text<span class="Special"> &lt;- </span><span class="Normal">new</span> [<span class="Comment"># ab</span>
+<span id="L231" class="LineNr">231 </span>add <span class="Constant">2</span><span class="Delimiter">,</span> <span class="Constant">2</span>]
+<span id="L232" class="LineNr">232 </span>  <span class="Constant">2</span>:text<span class="Special"> &lt;- </span>run-sandboxed <span class="Constant">1</span>:text
+<span id="L233" class="LineNr">233 </span>  <span class="Constant">3</span>:@:<span class="Normal">char</span><span class="Special"> &lt;- </span>copy *<span class="Constant">2</span>:text
+<span id="L234" class="LineNr">234 </span>]
+<span id="L235" class="LineNr">235 </span><span class="traceContains">+mem: storing 52 in location 4</span>
+<span id="L236" class="LineNr">236 </span>
+<span id="L237" class="LineNr">237 </span><span class="Delimiter">:(before &quot;End Primitive Recipe Declarations&quot;)</span>
+<span id="L238" class="LineNr">238 </span>_START_TRACKING_PRODUCTS<span class="Delimiter">,</span>
+<span id="L239" class="LineNr">239 </span><span class="Delimiter">:(before &quot;End Primitive Recipe Numbers&quot;)</span>
+<span id="L240" class="LineNr">240 </span><a href='001help.cc.html#L218'>put</a><span class="Delimiter">(</span>Recipe_ordinal<span class="Delimiter">,</span> <span class="Constant">&quot;$start-tracking-products&quot;</span><span class="Delimiter">,</span> _START_TRACKING_PRODUCTS<span class="Delimiter">);</span>
+<span id="L241" class="LineNr">241 </span><span class="Delimiter">:(before &quot;End Primitive Recipe Checks&quot;)</span>
+<span id="L242" class="LineNr">242 </span><span class="Normal">case</span> _START_TRACKING_PRODUCTS: <span class="Delimiter">{</span>
+<span id="L243" class="LineNr">243 </span>  <span class="Identifier">break</span><span class="Delimiter">;</span>
+<span id="L244" class="LineNr">244 </span><span class="Delimiter">}</span>
+<span id="L245" class="LineNr">245 </span><span class="Delimiter">:(before &quot;End Primitive Recipe Implementations&quot;)</span>
+<span id="L246" class="LineNr">246 </span><span class="Normal">case</span> _START_TRACKING_PRODUCTS: <span class="Delimiter">{</span>
+<span id="L247" class="LineNr">247 </span>  Track_most_recent_products = <span class="Constant">true</span><span class="Delimiter">;</span>
+<span id="L248" class="LineNr">248 </span>  <span class="Identifier">break</span><span class="Delimiter">;</span>
+<span id="L249" class="LineNr">249 </span><span class="Delimiter">}</span>
+<span id="L250" class="LineNr">250 </span>
+<span id="L251" class="LineNr">251 </span><span class="Delimiter">:(before &quot;End Primitive Recipe Declarations&quot;)</span>
+<span id="L252" class="LineNr">252 </span>_STOP_TRACKING_PRODUCTS<span class="Delimiter">,</span>
+<span id="L253" class="LineNr">253 </span><span class="Delimiter">:(before &quot;End Primitive Recipe Numbers&quot;)</span>
+<span id="L254" class="LineNr">254 </span><a href='001help.cc.html#L218'>put</a><span class="Delimiter">(</span>Recipe_ordinal<span class="Delimiter">,</span> <span class="Constant">&quot;$stop-tracking-products&quot;</span><span class="Delimiter">,</span> _STOP_TRACKING_PRODUCTS<span class="Delimiter">);</span>
+<span id="L255" class="LineNr">255 </span><span class="Delimiter">:(before &quot;End Primitive Recipe Checks&quot;)</span>
+<span id="L256" class="LineNr">256 </span><span class="Normal">case</span> _STOP_TRACKING_PRODUCTS: <span class="Delimiter">{</span>
+<span id="L257" class="LineNr">257 </span>  <span class="Identifier">break</span><span class="Delimiter">;</span>
+<span id="L258" class="LineNr">258 </span><span class="Delimiter">}</span>
+<span id="L259" class="LineNr">259 </span><span class="Delimiter">:(before &quot;End Primitive Recipe Implementations&quot;)</span>
+<span id="L260" class="LineNr">260 </span><span class="Normal">case</span> _STOP_TRACKING_PRODUCTS: <span class="Delimiter">{</span>
+<span id="L261" class="LineNr">261 </span>  Track_most_recent_products = <span class="Constant">false</span><span class="Delimiter">;</span>
+<span id="L262" class="LineNr">262 </span>  <span class="Identifier">break</span><span class="Delimiter">;</span>
+<span id="L263" class="LineNr">263 </span><span class="Delimiter">}</span>
+<span id="L264" class="LineNr">264 </span>
+<span id="L265" class="LineNr">265 </span><span class="Delimiter">:(before &quot;End Primitive Recipe Declarations&quot;)</span>
+<span id="L266" class="LineNr">266 </span>_MOST_RECENT_PRODUCTS<span class="Delimiter">,</span>
+<span id="L267" class="LineNr">267 </span><span class="Delimiter">:(before &quot;End Primitive Recipe Numbers&quot;)</span>
+<span id="L268" class="LineNr">268 </span><a href='001help.cc.html#L218'>put</a><span class="Delimiter">(</span>Recipe_ordinal<span class="Delimiter">,</span> <span class="Constant">&quot;$most-recent-products&quot;</span><span class="Delimiter">,</span> _MOST_RECENT_PRODUCTS<span class="Delimiter">);</span>
+<span id="L269" class="LineNr">269 </span><span class="Delimiter">:(before &quot;End Primitive Recipe Checks&quot;)</span>
+<span id="L270" class="LineNr">270 </span><span class="Normal">case</span> _MOST_RECENT_PRODUCTS: <span class="Delimiter">{</span>
+<span id="L271" class="LineNr">271 </span>  <span class="Identifier">break</span><span class="Delimiter">;</span>
+<span id="L272" class="LineNr">272 </span><span class="Delimiter">}</span>
+<span id="L273" class="LineNr">273 </span><span class="Delimiter">:(before &quot;End Primitive Recipe Implementations&quot;)</span>
+<span id="L274" class="LineNr">274 </span><span class="Normal">case</span> _MOST_RECENT_PRODUCTS: <span class="Delimiter">{</span>
+<span id="L275" class="LineNr">275 </span>  products<span class="Delimiter">.</span>resize<span class="Delimiter">(</span><span class="Constant">1</span><span class="Delimiter">);</span>
+<span id="L276" class="LineNr">276 </span>  products<span class="Delimiter">.</span>at<span class="Delimiter">(</span><span class="Constant">0</span><span class="Delimiter">).</span>push_back<span class="Delimiter">(</span><a href='038new_text.cc.html#L38'>new_mu_text</a><span class="Delimiter">(</span>Most_recent_products<span class="Delimiter">));</span>
+<span id="L277" class="LineNr">277 </span>  <span class="Identifier">break</span><span class="Delimiter">;</span>
+<span id="L278" class="LineNr">278 </span><span class="Delimiter">}</span>
+<span id="L279" class="LineNr">279 </span>
+<span id="L280" class="LineNr">280 </span><span class="Delimiter">:(before &quot;End Primitive Recipe Declarations&quot;)</span>
+<span id="L281" class="LineNr">281 </span>SAVE_ERRORS<span class="Delimiter">,</span>
+<span id="L282" class="LineNr">282 </span><span class="Delimiter">:(before &quot;End Primitive Recipe Numbers&quot;)</span>
+<span id="L283" class="LineNr">283 </span><a href='001help.cc.html#L218'>put</a><span class="Delimiter">(</span>Recipe_ordinal<span class="Delimiter">,</span> <span class="Constant">&quot;save-errors&quot;</span><span class="Delimiter">,</span> SAVE_ERRORS<span class="Delimiter">);</span>
+<span id="L284" class="LineNr">284 </span><span class="Delimiter">:(before &quot;End Primitive Recipe Checks&quot;)</span>
+<span id="L285" class="LineNr">285 </span><span class="Normal">case</span> SAVE_ERRORS: <span class="Delimiter">{</span>
+<span id="L286" class="LineNr">286 </span>  <span class="Identifier">break</span><span class="Delimiter">;</span>
+<span id="L287" class="LineNr">287 </span><span class="Delimiter">}</span>
+<span id="L288" class="LineNr">288 </span><span class="Delimiter">:(before &quot;End Primitive Recipe Implementations&quot;)</span>
+<span id="L289" class="LineNr">289 </span><span class="Normal">case</span> SAVE_ERRORS: <span class="Delimiter">{</span>
+<span id="L290" class="LineNr">290 </span>  products<span class="Delimiter">.</span>resize<span class="Delimiter">(</span><span class="Constant">1</span><span class="Delimiter">);</span>
+<span id="L291" class="LineNr">291 </span>  products<span class="Delimiter">.</span>at<span class="Delimiter">(</span><span class="Constant">0</span><span class="Delimiter">).</span>push_back<span class="Delimiter">(</span><a href='101run_sandboxed.cc.html#L429'>trace_error_contents</a><span class="Delimiter">());</span>
+<span id="L292" class="LineNr">292 </span>  <span class="Identifier">break</span><span class="Delimiter">;</span>
+<span id="L293" class="LineNr">293 </span><span class="Delimiter">}</span>
+<span id="L294" class="LineNr">294 </span>
+<span id="L295" class="LineNr">295 </span><span class="Delimiter">:(before &quot;End Primitive Recipe Declarations&quot;)</span>
+<span id="L296" class="LineNr">296 </span>SAVE_APP_TRACE<span class="Delimiter">,</span>
+<span id="L297" class="LineNr">297 </span><span class="Delimiter">:(before &quot;End Primitive Recipe Numbers&quot;)</span>
+<span id="L298" class="LineNr">298 </span><a href='001help.cc.html#L218'>put</a><span class="Delimiter">(</span>Recipe_ordinal<span class="Delimiter">,</span> <span class="Constant">&quot;save-app-trace&quot;</span><span class="Delimiter">,</span> SAVE_APP_TRACE<span class="Delimiter">);</span>
+<span id="L299" class="LineNr">299 </span><span class="Delimiter">:(before &quot;End Primitive Recipe Checks&quot;)</span>
+<span id="L300" class="LineNr">300 </span><span class="Normal">case</span> SAVE_APP_TRACE: <span class="Delimiter">{</span>
+<span id="L301" class="LineNr">301 </span>  <span class="Identifier">break</span><span class="Delimiter">;</span>
+<span id="L302" class="LineNr">302 </span><span class="Delimiter">}</span>
+<span id="L303" class="LineNr">303 </span><span class="Delimiter">:(before &quot;End Primitive Recipe Implementations&quot;)</span>
+<span id="L304" class="LineNr">304 </span><span class="Normal">case</span> SAVE_APP_TRACE: <span class="Delimiter">{</span>
+<span id="L305" class="LineNr">305 </span>  products<span class="Delimiter">.</span>resize<span class="Delimiter">(</span><span class="Constant">1</span><span class="Delimiter">);</span>
+<span id="L306" class="LineNr">306 </span>  products<span class="Delimiter">.</span>at<span class="Delimiter">(</span><span class="Constant">0</span><span class="Delimiter">).</span>push_back<span class="Delimiter">(</span><a href='101run_sandboxed.cc.html#L443'>trace_app_contents</a><span class="Delimiter">());</span>
+<span id="L307" class="LineNr">307 </span>  <span class="Identifier">break</span><span class="Delimiter">;</span>
+<span id="L308" class="LineNr">308 </span><span class="Delimiter">}</span>
+<span id="L309" class="LineNr">309 </span>
+<span id="L310" class="LineNr">310 </span><span class="Delimiter">:(before &quot;End Primitive Recipe Declarations&quot;)</span>
+<span id="L311" class="LineNr">311 </span>_CLEANUP_RUN_SANDBOXED<span class="Delimiter">,</span>
+<span id="L312" class="LineNr">312 </span><span class="Delimiter">:(before &quot;End Primitive Recipe Numbers&quot;)</span>
+<span id="L313" class="LineNr">313 </span><a href='001help.cc.html#L218'>put</a><span class="Delimiter">(</span>Recipe_ordinal<span class="Delimiter">,</span> <span class="Constant">&quot;$cleanup-run-sandboxed&quot;</span><span class="Delimiter">,</span> _CLEANUP_RUN_SANDBOXED<span class="Delimiter">);</span>
+<span id="L314" class="LineNr">314 </span><span class="Delimiter">:(before &quot;End Primitive Recipe Checks&quot;)</span>
+<span id="L315" class="LineNr">315 </span><span class="Normal">case</span> _CLEANUP_RUN_SANDBOXED: <span class="Delimiter">{</span>
+<span id="L316" class="LineNr">316 </span>  <span class="Identifier">break</span><span class="Delimiter">;</span>
+<span id="L317" class="LineNr">317 </span><span class="Delimiter">}</span>
+<span id="L318" class="LineNr">318 </span><span class="Delimiter">:(before &quot;End Primitive Recipe Implementations&quot;)</span>
+<span id="L319" class="LineNr">319 </span><span class="Normal">case</span> _CLEANUP_RUN_SANDBOXED: <span class="Delimiter">{</span>
+<span id="L320" class="LineNr">320 </span>  <a href='101run_sandboxed.cc.html#L153'>run_code_end</a><span class="Delimiter">();</span>
+<span id="L321" class="LineNr">321 </span>  <span class="Identifier">break</span><span class="Delimiter">;</span>
+<span id="L322" class="LineNr">322 </span><span class="Delimiter">}</span>
+<span id="L323" class="LineNr">323 </span>
+<span id="L324" class="LineNr">324 </span><span class="Delimiter">:(scenario &quot;run_interactive_converts_result_to_text&quot;)</span>
+<span id="L325" class="LineNr">325 </span><span class="muRecipe">def</span> <a href='000organization.cc.html#L113'>main</a> [
+<span id="L326" class="LineNr">326 </span>  <span class="Comment"># try to interactively add 2 and 2</span>
+<span id="L327" class="LineNr">327 </span>  <span class="Constant">1</span>:text<span class="Special"> &lt;- </span><span class="Normal">new</span> [add <span class="Constant">2</span><span class="Delimiter">,</span> <span class="Constant">2</span>]
+<span id="L328" class="LineNr">328 </span>  <span class="Constant">2</span>:text<span class="Special"> &lt;- </span>run-sandboxed <span class="Constant">1</span>:text
+<span id="L329" class="LineNr">329 </span>  <span class="Constant">10</span>:@:<span class="Normal">char</span><span class="Special"> &lt;- </span>copy <span class="Constant">2</span>:text/lookup
+<span id="L330" class="LineNr">330 </span>]
+<span id="L331" class="LineNr">331 </span><span class="Comment"># first letter in the output should be '4' in unicode</span>
+<span id="L332" class="LineNr">332 </span><span class="traceContains">+mem: storing 52 in location 11</span>
+<span id="L333" class="LineNr">333 </span>
+<span id="L334" class="LineNr">334 </span><span class="Delimiter">:(scenario &quot;run_interactive_returns_text&quot;)</span>
+<span id="L335" class="LineNr">335 </span><span class="muRecipe">def</span> <a href='000organization.cc.html#L113'>main</a> [
+<span id="L336" class="LineNr">336 </span>  <span class="Comment"># try to interactively add 2 and 2</span>
+<span id="L337" class="LineNr">337 </span>  <span class="Constant">1</span>:text<span class="Special"> &lt;- </span><span class="Normal">new</span> [
+<span id="L338" class="LineNr">338 </span>    <span class="Normal">x</span>:text<span class="Special"> &lt;- </span><span class="Normal">new</span> [a]
+<span id="L339" class="LineNr">339 </span>    <span class="Normal">y</span>:text<span class="Special"> &lt;- </span><span class="Normal">new</span> [b]
+<span id="L340" class="LineNr">340 </span>    <span class="Normal">z</span>:text<span class="Special"> &lt;- </span>append x:text<span class="Delimiter">,</span> y:text
+<span id="L341" class="LineNr">341 </span>  ]
+<span id="L342" class="LineNr">342 </span>  <span class="Constant">2</span>:text<span class="Special"> &lt;- </span>run-sandboxed <span class="Constant">1</span>:text
+<span id="L343" class="LineNr">343 </span>  <span class="Constant">10</span>:@:<span class="Normal">char</span><span class="Special"> &lt;- </span>copy <span class="Constant">2</span>:text/lookup
+<span id="L344" class="LineNr">344 </span>]
+<span id="L345" class="LineNr">345 </span><span class="Comment"># output contains &quot;ab&quot;</span>
+<span id="L346" class="LineNr">346 </span><span class="traceContains">+mem: storing 97 in location 11</span>
+<span id="L347" class="LineNr">347 </span><span class="traceContains">+mem: storing 98 in location 12</span>
+<span id="L348" class="LineNr">348 </span>
+<span id="L349" class="LineNr">349 </span><span class="Delimiter">:(scenario &quot;run_interactive_returns_errors&quot;)</span>
+<span id="L350" class="LineNr">350 </span><span class="muRecipe">def</span> <a href='000organization.cc.html#L113'>main</a> [
+<span id="L351" class="LineNr">351 </span>  <span class="Comment"># run a command that generates an error</span>
+<span id="L352" class="LineNr">352 </span>  <span class="Constant">1</span>:text<span class="Special"> &lt;- </span><span class="Normal">new</span> [x:num<span class="Special"> &lt;- </span>copy <span class="Constant">34</span>
+<span id="L353" class="LineNr">353 </span>get x:num<span class="Delimiter">,</span> <span class="Constant">foo:offset</span>]
+<span id="L354" class="LineNr">354 </span>  <span class="Constant">2</span>:text<span class="Delimiter">,</span> <span class="Constant">3</span>:text<span class="Special"> &lt;- </span>run-sandboxed <span class="Constant">1</span>:text
+<span id="L355" class="LineNr">355 </span>  <span class="Constant">10</span>:@:<span class="Normal">char</span><span class="Special"> &lt;- </span>copy <span class="Constant">3</span>:text/lookup
+<span id="L356" class="LineNr">356 </span>]
+<span id="L357" class="LineNr">357 </span><span class="Comment"># error should be &quot;unknown element foo in container number&quot;</span>
+<span id="L358" class="LineNr">358 </span><span class="traceContains">+mem: storing 117 in location 11</span>
+<span id="L359" class="LineNr">359 </span><span class="traceContains">+mem: storing 110 in location 12</span>
+<span id="L360" class="LineNr">360 </span><span class="traceContains">+mem: storing 107 in location 13</span>
+<span id="L361" class="LineNr">361 </span><span class="traceContains">+mem: storing 110 in location 14</span>
+<span id="L362" class="LineNr">362 </span><span class="Comment"># ...</span>
+<span id="L363" class="LineNr">363 </span>
+<span id="L364" class="LineNr">364 </span><span class="Delimiter">:(scenario run_interactive_with_comment)</span>
+<span id="L365" class="LineNr">365 </span><span class="muRecipe">def</span> <a href='000organization.cc.html#L113'>main</a> [
+<span id="L366" class="LineNr">366 </span>  <span class="Comment"># 2 instructions, with a comment after the first</span>
+<span id="L367" class="LineNr">367 </span>  <span class="Constant">1</span>:&amp;:@:num<span class="Special"> &lt;- </span><span class="Normal">new</span> [a:num<span class="Special"> &lt;- </span>copy <span class="Constant">0</span>  <span class="Comment"># abc</span>
+<span id="L368" class="LineNr">368 </span><span class="Normal">b</span>:num<span class="Special"> &lt;- </span>copy <span class="Constant">0</span>
+<span id="L369" class="LineNr">369 </span>]
+<span id="L370" class="LineNr">370 </span>  <span class="Constant">2</span>:text<span class="Delimiter">,</span> <span class="Constant">3</span>:text<span class="Special"> &lt;- </span>run-sandboxed <span class="Constant">1</span>:text
+<span id="L371" class="LineNr">371 </span>]
+<span id="L372" class="LineNr">372 </span><span class="Comment"># no errors</span>
+<span id="L373" class="LineNr">373 </span><span class="traceContains">+mem: storing 0 in location 3</span>
+<span id="L374" class="LineNr">374 </span>
+<span id="L375" class="LineNr">375 </span><span class="Delimiter">:(before &quot;End Running One Instruction&quot;)</span>
+<span id="L376" class="LineNr">376 </span><span class="Normal">if</span> <span class="Delimiter">(</span>Track_most_recent_products<span class="Delimiter">)</span> <span class="Delimiter">{</span>
+<span id="L377" class="LineNr">377 </span>  <a href='101run_sandboxed.cc.html#L380'>track_most_recent_products</a><span class="Delimiter">(</span>current_instruction<span class="Delimiter">(),</span> products<span class="Delimiter">);</span>
+<span id="L378" class="LineNr">378 </span><span class="Delimiter">}</span>
+<span id="L379" class="LineNr">379 </span><span class="Delimiter">:(code)</span>
+<span id="L380" class="LineNr">380 </span><span class="Normal">void</span> <a href='101run_sandboxed.cc.html#L380'>track_most_recent_products</a><span class="Delimiter">(</span><span class="Normal">const</span> instruction&amp; <a href='010vm.cc.html#L32'>instruction</a><span class="Delimiter">,</span> <span class="Normal">const</span> vector&lt;vector&lt;<span class="Normal">double</span>&gt; &gt;&amp; products<span class="Delimiter">)</span> <span class="Delimiter">{</span>
+<span id="L381" class="LineNr">381 </span>  ostringstream out<span class="Delimiter">;</span>
+<span id="L382" class="LineNr">382 </span>  <span class="Normal">for</span> <span class="Delimiter">(</span><span class="Normal">int</span> i = <span class="Constant">0</span><span class="Delimiter">;</span> i &lt; <a href='001help.cc.html#L138'>SIZE</a><span class="Delimiter">(</span>products<span class="Delimiter">);</span> ++i<span class="Delimiter">)</span> <span class="Delimiter">{</span>
+<span id="L383" class="LineNr">383 </span>    <span class="Comment">// A sandbox can print a string result, but only if it is actually saved</span>
+<span id="L384" class="LineNr">384 </span>    <span class="Comment">// to a variable in the sandbox, because otherwise the results are</span>
+<span id="L385" class="LineNr">385 </span>    <span class="Comment">// reclaimed before the sandbox sees them. So you get these interactions</span>
+<span id="L386" class="LineNr">386 </span>    <span class="Comment">// in the sandbox:</span>
+<span id="L387" class="LineNr">387 </span>    <span class="Comment">//</span>
+<span id="L388" class="LineNr">388 </span>    <span class="Comment">//    new [abc]</span>
+<span id="L389" class="LineNr">389 </span>    <span class="Comment">//    =&gt; &lt;address&gt;</span>
+<span id="L390" class="LineNr">390 </span>    <span class="Comment">//</span>
+<span id="L391" class="LineNr">391 </span>    <span class="Comment">//    x:text &lt;- new [abc]</span>
+<span id="L392" class="LineNr">392 </span>    <span class="Comment">//    =&gt; abc</span>
+<span id="L393" class="LineNr">393 </span>    <span class="Normal">if</span> <span class="Delimiter">(</span>i &lt; <a href='001help.cc.html#L138'>SIZE</a><span class="Delimiter">(</span><a href='010vm.cc.html#L32'>instruction</a><span class="Delimiter">.</span>products<span class="Delimiter">))</span> <span class="Delimiter">{</span>
+<span id="L394" class="LineNr">394 </span>      <span class="Normal">if</span> <span class="Delimiter">(</span><a href='027call_ingredient.cc.html#L174'>is_mu_text</a><span class="Delimiter">(</span><a href='010vm.cc.html#L32'>instruction</a><span class="Delimiter">.</span>products<span class="Delimiter">.</span>at<span class="Delimiter">(</span>i<span class="Delimiter">)))</span> <span class="Delimiter">{</span>
+<span id="L395" class="LineNr">395 </span>        <span class="Normal">if</span> <span class="Delimiter">(</span>!scalar<span class="Delimiter">(</span>products<span class="Delimiter">.</span>at<span class="Delimiter">(</span>i<span class="Delimiter">)))</span> <span class="Identifier">continue</span><span class="Delimiter">;</span>  <span class="Comment">// error handled elsewhere</span>
+<span id="L396" class="LineNr">396 </span>        out &lt;&lt; <a href='038new_text.cc.html#L143'>read_mu_text</a><span class="Delimiter">(</span>products<span class="Delimiter">.</span>at<span class="Delimiter">(</span>i<span class="Delimiter">).</span>at<span class="Delimiter">(</span><span class="Constant">0</span><span class="Delimiter">))</span> &lt;&lt; <span class="cSpecial">'\n'</span><span class="Delimiter">;</span>
+<span id="L397" class="LineNr">397 </span>        <span class="Identifier">continue</span><span class="Delimiter">;</span>
+<span id="L398" class="LineNr">398 </span>      <span class="Delimiter">}</span>
+<span id="L399" class="LineNr">399 </span>    <span class="Delimiter">}</span>
+<span id="L400" class="LineNr">400 </span>    <span class="Normal">for</span> <span class="Delimiter">(</span><span class="Normal">int</span> j = <span class="Constant">0</span><span class="Delimiter">;</span> j &lt; <a href='001help.cc.html#L138'>SIZE</a><span class="Delimiter">(</span>products<span class="Delimiter">.</span>at<span class="Delimiter">(</span>i<span class="Delimiter">));</span> ++j<span class="Delimiter">)</span>
+<span id="L401" class="LineNr">401 </span>      out &lt;&lt; no_scientific<span class="Delimiter">(</span>products<span class="Delimiter">.</span>at<span class="Delimiter">(</span>i<span class="Delimiter">).</span>at<span class="Delimiter">(</span>j<span class="Delimiter">))</span> &lt;&lt; <span class="Constant">' '</span><span class="Delimiter">;</span>
+<span id="L402" class="LineNr">402 </span>    out &lt;&lt; <span class="cSpecial">'\n'</span><span class="Delimiter">;</span>
+<span id="L403" class="LineNr">403 </span>  <span class="Delimiter">}</span>
+<span id="L404" class="LineNr">404 </span>  Most_recent_products = out<span class="Delimiter">.</span>str<span class="Delimiter">();</span>
+<span id="L405" class="LineNr">405 </span><span class="Delimiter">}</span>
+<span id="L406" class="LineNr">406 </span>
+<span id="L407" class="LineNr">407 </span><span class="Delimiter">:(code)</span>
+<span id="L408" class="LineNr">408 </span>string <a href='101run_sandboxed.cc.html#L408'>strip_comments</a><span class="Delimiter">(</span>string in<span class="Delimiter">)</span> <span class="Delimiter">{</span>
+<span id="L409" class="LineNr">409 </span>  ostringstream result<span class="Delimiter">;</span>
+<span id="L410" class="LineNr">410 </span>  <span class="Normal">for</span> <span class="Delimiter">(</span><span class="Normal">int</span> i = <span class="Constant">0</span><span class="Delimiter">;</span> i &lt; <a href='001help.cc.html#L138'>SIZE</a><span class="Delimiter">(</span>in<span class="Delimiter">);</span> ++i<span class="Delimiter">)</span> <span class="Delimiter">{</span>
+<span id="L411" class="LineNr">411 </span>    <span class="Normal">if</span> <span class="Delimiter">(</span>in<span class="Delimiter">.</span>at<span class="Delimiter">(</span>i<span class="Delimiter">)</span> != <span class="Constant">'#'</span><span class="Delimiter">)</span> <span class="Delimiter">{</span>
+<span id="L412" class="LineNr">412 </span>      result &lt;&lt; in<span class="Delimiter">.</span>at<span class="Delimiter">(</span>i<span class="Delimiter">);</span>
+<span id="L413" class="LineNr">413 </span>    <span class="Delimiter">}</span>
+<span id="L414" class="LineNr">414 </span>    <span class="Normal">else</span> <span class="Delimiter">{</span>
+<span id="L415" class="LineNr">415 </span>      <span class="Normal">while</span> <span class="Delimiter">(</span>i+<span class="Constant">1</span> &lt; <a href='001help.cc.html#L138'>SIZE</a><span class="Delimiter">(</span>in<span class="Delimiter">)</span> &amp;&amp; in<span class="Delimiter">.</span>at<span class="Delimiter">(</span>i+<span class="Constant">1</span><span class="Delimiter">)</span> != <span class="cSpecial">'\n'</span><span class="Delimiter">)</span>
+<span id="L416" class="LineNr">416 </span>        ++i<span class="Delimiter">;</span>
+<span id="L417" class="LineNr">417 </span>    <span class="Delimiter">}</span>
+<span id="L418" class="LineNr">418 </span>  <span class="Delimiter">}</span>
+<span id="L419" class="LineNr">419 </span>  <span class="Identifier">return</span> result<span class="Delimiter">.</span>str<span class="Delimiter">();</span>
+<span id="L420" class="LineNr">420 </span><span class="Delimiter">}</span>
+<span id="L421" class="LineNr">421 </span>
+<span id="L422" class="LineNr">422 </span><span class="Normal">int</span> <a href='101run_sandboxed.cc.html#L422'>stringified_value_of_location</a><span class="Delimiter">(</span><span class="Normal">int</span> <a href='043space.cc.html#L76'>address</a><span class="Delimiter">)</span> <span class="Delimiter">{</span>
+<span id="L423" class="LineNr">423 </span>  <span class="Comment">// convert to string</span>
+<span id="L424" class="LineNr">424 </span>  ostringstream out<span class="Delimiter">;</span>
+<span id="L425" class="LineNr">425 </span>  out &lt;&lt; no_scientific<span class="Delimiter">(</span><a href='001help.cc.html#L225'>get_or_insert</a><span class="Delimiter">(</span>Memory<span class="Delimiter">,</span> <a href='043space.cc.html#L76'>address</a><span class="Delimiter">));</span>
+<span id="L426" class="LineNr">426 </span>  <span class="Identifier">return</span> <a href='038new_text.cc.html#L38'>new_mu_text</a><span class="Delimiter">(</span>out<span class="Delimiter">.</span>str<span class="Delimiter">());</span>
+<span id="L427" class="LineNr">427 </span><span class="Delimiter">}</span>
+<span id="L428" class="LineNr">428 </span>
+<span id="L429" class="LineNr">429 </span><span class="Normal">int</span> <a href='101run_sandboxed.cc.html#L429'>trace_error_contents</a><span class="Delimiter">()</span> <span class="Delimiter">{</span>
+<span id="L430" class="LineNr">430 </span>  <span class="Normal">if</span> <span class="Delimiter">(</span>!Trace_stream<span class="Delimiter">)</span> <span class="Identifier">return</span> <span class="Constant">0</span><span class="Delimiter">;</span>
+<span id="L431" class="LineNr">431 </span>  ostringstream out<span class="Delimiter">;</span>
+<span id="L432" class="LineNr">432 </span>  <span class="Normal">for</span> <span class="Delimiter">(</span>vector&lt;trace_line&gt;::iterator p = Trace_stream<span class="Delimiter">-&gt;</span>past_lines<span class="Delimiter">.</span>begin<span class="Delimiter">();</span> p != Trace_stream<span class="Delimiter">-&gt;</span>past_lines<span class="Delimiter">.</span><a href='003trace.cc.html#L195'>end</a><span class="Delimiter">();</span> ++p<span class="Delimiter">)</span> <span class="Delimiter">{</span>
+<span id="L433" class="LineNr">433 </span>    <span class="Normal">if</span> <span class="Delimiter">(</span>p<span class="Delimiter">-&gt;</span>label != <span class="Constant">&quot;error&quot;</span><span class="Delimiter">)</span> <span class="Identifier">continue</span><span class="Delimiter">;</span>
+<span id="L434" class="LineNr">434 </span>    out &lt;&lt; p<span class="Delimiter">-&gt;</span>contents<span class="Delimiter">;</span>
+<span id="L435" class="LineNr">435 </span>    <span class="Normal">if</span> <span class="Delimiter">(</span>*--p<span class="Delimiter">-&gt;</span>contents<span class="Delimiter">.</span><a href='003trace.cc.html#L195'>end</a><span class="Delimiter">()</span> != <span class="cSpecial">'\n'</span><span class="Delimiter">)</span> out &lt;&lt; <span class="cSpecial">'\n'</span><span class="Delimiter">;</span>
+<span id="L436" class="LineNr">436 </span>  <span class="Delimiter">}</span>
+<span id="L437" class="LineNr">437 </span>  string result = out<span class="Delimiter">.</span>str<span class="Delimiter">();</span>
+<span id="L438" class="LineNr">438 </span>  <a href='101run_sandboxed.cc.html#L457'>truncate</a><span class="Delimiter">(</span>result<span class="Delimiter">);</span>
+<span id="L439" class="LineNr">439 </span>  <span class="Normal">if</span> <span class="Delimiter">(</span>result<span class="Delimiter">.</span>empty<span class="Delimiter">())</span> <span class="Identifier">return</span> <span class="Constant">0</span><span class="Delimiter">;</span>
+<span id="L440" class="LineNr">440 </span>  <span class="Identifier">return</span> <a href='038new_text.cc.html#L38'>new_mu_text</a><span class="Delimiter">(</span>result<span class="Delimiter">);</span>
+<span id="L441" class="LineNr">441 </span><span class="Delimiter">}</span>
+<span id="L442" class="LineNr">442 </span>
+<span id="L443" class="LineNr">443 </span><span class="Normal">int</span> <a href='101run_sandboxed.cc.html#L443'>trace_app_contents</a><span class="Delimiter">()</span> <span class="Delimiter">{</span>
+<span id="L444" class="LineNr">444 </span>  <span class="Normal">if</span> <span class="Delimiter">(</span>!Trace_stream<span class="Delimiter">)</span> <span class="Identifier">return</span> <span class="Constant">0</span><span class="Delimiter">;</span>
+<span id="L445" class="LineNr">445 </span>  ostringstream out<span class="Delimiter">;</span>
+<span id="L446" class="LineNr">446 </span>  <span class="Normal">for</span> <span class="Delimiter">(</span>vector&lt;trace_line&gt;::iterator p = Trace_stream<span class="Delimiter">-&gt;</span>past_lines<span class="Delimiter">.</span>begin<span class="Delimiter">();</span> p != Trace_stream<span class="Delimiter">-&gt;</span>past_lines<span class="Delimiter">.</span><a href='003trace.cc.html#L195'>end</a><span class="Delimiter">();</span> ++p<span class="Delimiter">)</span> <span class="Delimiter">{</span>
+<span id="L447" class="LineNr">447 </span>    <span class="Normal">if</span> <span class="Delimiter">(</span>p<span class="Delimiter">-&gt;</span>depth != App_depth<span class="Delimiter">)</span> <span class="Identifier">continue</span><span class="Delimiter">;</span>
+<span id="L448" class="LineNr">448 </span>    out &lt;&lt; p<span class="Delimiter">-&gt;</span>contents<span class="Delimiter">;</span>
+<span id="L449" class="LineNr">449 </span>    <span class="Normal">if</span> <span class="Delimiter">(</span>*--p<span class="Delimiter">-&gt;</span>contents<span class="Delimiter">.</span><a href='003trace.cc.html#L195'>end</a><span class="Delimiter">()</span> != <span class="cSpecial">'\n'</span><span class="Delimiter">)</span> out &lt;&lt; <span class="cSpecial">'\n'</span><span class="Delimiter">;</span>
+<span id="L450" class="LineNr">450 </span>  <span class="Delimiter">}</span>
+<span id="L451" class="LineNr">451 </span>  string result = out<span class="Delimiter">.</span>str<span class="Delimiter">();</span>
+<span id="L452" class="LineNr">452 </span>  <span class="Normal">if</span> <span class="Delimiter">(</span>result<span class="Delimiter">.</span>empty<span class="Delimiter">())</span> <span class="Identifier">return</span> <span class="Constant">0</span><span class="Delimiter">;</span>
+<span id="L453" class="LineNr">453 </span>  <a href='101run_sandboxed.cc.html#L457'>truncate</a><span class="Delimiter">(</span>result<span class="Delimiter">);</span>
+<span id="L454" class="LineNr">454 </span>  <span class="Identifier">return</span> <a href='038new_text.cc.html#L38'>new_mu_text</a><span class="Delimiter">(</span>result<span class="Delimiter">);</span>
+<span id="L455" class="LineNr">455 </span><span class="Delimiter">}</span>
+<span id="L456" class="LineNr">456 </span>
+<span id="L457" class="LineNr">457 </span><span class="Normal">void</span> <a href='101run_sandboxed.cc.html#L457'>truncate</a><span class="Delimiter">(</span>string&amp; x<span class="Delimiter">)</span> <span class="Delimiter">{</span>
+<span id="L458" class="LineNr">458 </span>  <span class="Normal">if</span> <span class="Delimiter">(</span><a href='001help.cc.html#L138'>SIZE</a><span class="Delimiter">(</span>x<span class="Delimiter">)</span> &gt; <span class="Constant">1024</span><span class="Delimiter">)</span> <span class="Delimiter">{</span>
+<span id="L459" class="LineNr">459 </span>    x<span class="Delimiter">.</span>erase<span class="Delimiter">(</span><span class="Constant">1024</span><span class="Delimiter">);</span>
+<span id="L460" class="LineNr">460 </span>    *x<span class="Delimiter">.</span>rbegin<span class="Delimiter">()</span> = <span class="cSpecial">'\n'</span><span class="Delimiter">;</span>
+<span id="L461" class="LineNr">461 </span>    *++x<span class="Delimiter">.</span>rbegin<span class="Delimiter">()</span> = <span class="Constant">'.'</span><span class="Delimiter">;</span>
+<span id="L462" class="LineNr">462 </span>    *++++x<span class="Delimiter">.</span>rbegin<span class="Delimiter">()</span> = <span class="Constant">'.'</span><span class="Delimiter">;</span>
+<span id="L463" class="LineNr">463 </span>  <span class="Delimiter">}</span>
+<span id="L464" class="LineNr">464 </span><span class="Delimiter">}</span>
+<span id="L465" class="LineNr">465 </span>
+<span id="L466" class="LineNr">466 </span><span class="Comment">//: simpler version of run-sandboxed: doesn't do any running, just loads</span>
+<span id="L467" class="LineNr">467 </span><span class="Comment">//: recipes and reports errors.</span>
+<span id="L468" class="LineNr">468 </span>
+<span id="L469" class="LineNr">469 </span><span class="Delimiter">:(before &quot;End Primitive Recipe Declarations&quot;)</span>
+<span id="L470" class="LineNr">470 </span>RELOAD<span class="Delimiter">,</span>
+<span id="L471" class="LineNr">471 </span><span class="Delimiter">:(before &quot;End Primitive Recipe Numbers&quot;)</span>
+<span id="L472" class="LineNr">472 </span><a href='001help.cc.html#L218'>put</a><span class="Delimiter">(</span>Recipe_ordinal<span class="Delimiter">,</span> <span class="Constant">&quot;reload&quot;</span><span class="Delimiter">,</span> RELOAD<span class="Delimiter">);</span>
+<span id="L473" class="LineNr">473 </span><span class="Delimiter">:(before &quot;End Primitive Recipe Checks&quot;)</span>
+<span id="L474" class="LineNr">474 </span><span class="Normal">case</span> RELOAD: <span class="Delimiter">{</span>
+<span id="L475" class="LineNr">475 </span>  <span class="Normal">if</span> <span class="Delimiter">(</span><a href='001help.cc.html#L138'>SIZE</a><span class="Delimiter">(</span>inst<span class="Delimiter">.</span>ingredients<span class="Delimiter">)</span> != <span class="Constant">1</span><span class="Delimiter">)</span> <span class="Delimiter">{</span>
+<span id="L476" class="LineNr">476 </span>    <a href='003trace.cc.html#L178'>raise</a> &lt;&lt; <a href='013update_operation.cc.html#L25'>maybe</a><span class="Delimiter">(</span>get<span class="Delimiter">(</span>Recipe<span class="Delimiter">,</span> r<span class="Delimiter">).</span>name<span class="Delimiter">)</span> &lt;&lt; <span class="Constant">&quot;'reload' requires exactly one ingredient, but got '&quot;</span> &lt;&lt; inst<span class="Delimiter">.</span>original_string &lt;&lt; <span class="Constant">&quot;'</span><span class="cSpecial">\n</span><span class="Constant">&quot;</span> &lt;&lt; <a href='003trace.cc.html#L195'>end</a><span class="Delimiter">();</span>
+<span id="L477" class="LineNr">477 </span>    <span class="Identifier">break</span><span class="Delimiter">;</span>
+<span id="L478" class="LineNr">478 </span>  <span class="Delimiter">}</span>
+<span id="L479" class="LineNr">479 </span>  <span class="Normal">if</span> <span class="Delimiter">(</span>!is_mu_text<span class="Delimiter">(</span>inst<span class="Delimiter">.</span>ingredients<span class="Delimiter">.</span>at<span class="Delimiter">(</span><span class="Constant">0</span><span class="Delimiter">)))</span> <span class="Delimiter">{</span>
+<span id="L480" class="LineNr">480 </span>    <a href='003trace.cc.html#L178'>raise</a> &lt;&lt; <a href='013update_operation.cc.html#L25'>maybe</a><span class="Delimiter">(</span>get<span class="Delimiter">(</span>Recipe<span class="Delimiter">,</span> r<span class="Delimiter">).</span>name<span class="Delimiter">)</span> &lt;&lt; <span class="Constant">&quot;first ingredient of 'reload' should be a string, but got '&quot;</span> &lt;&lt; inst<span class="Delimiter">.</span>ingredients<span class="Delimiter">.</span>at<span class="Delimiter">(</span><span class="Constant">0</span><span class="Delimiter">).</span>original_string &lt;&lt; <span class="Constant">&quot;'</span><span class="cSpecial">\n</span><span class="Constant">&quot;</span> &lt;&lt; <a href='003trace.cc.html#L195'>end</a><span class="Delimiter">();</span>
+<span id="L481" class="LineNr">481 </span>    <span class="Identifier">break</span><span class="Delimiter">;</span>
+<span id="L482" class="LineNr">482 </span>  <span class="Delimiter">}</span>
+<span id="L483" class="LineNr">483 </span>  <span class="Identifier">break</span><span class="Delimiter">;</span>
+<span id="L484" class="LineNr">484 </span><span class="Delimiter">}</span>
+<span id="L485" class="LineNr">485 </span><span class="Delimiter">:(before &quot;End Primitive Recipe Implementations&quot;)</span>
+<span id="L486" class="LineNr">486 </span><span class="Normal">case</span> RELOAD: <span class="Delimiter">{</span>
+<span id="L487" class="LineNr">487 </span>  restore_non_recipe_snapshots<span class="Delimiter">();</span>
+<span id="L488" class="LineNr">488 </span>  string code = <a href='038new_text.cc.html#L143'>read_mu_text</a><span class="Delimiter">(</span>ingredients<span class="Delimiter">.</span>at<span class="Delimiter">(</span><span class="Constant">0</span><span class="Delimiter">).</span>at<span class="Delimiter">(</span><span class="Constant">0</span><span class="Delimiter">));</span>
+<span id="L489" class="LineNr">489 </span>  <a href='101run_sandboxed.cc.html#L142'>run_code_begin</a><span class="Delimiter">(</span><span class="Comment">/*</span><span class="Comment">should_stash_snapshots</span><span class="Comment">*/</span><span class="Constant">false</span><span class="Delimiter">);</span>
+<span id="L490" class="LineNr">490 </span>  routine* save_current_routine = Current_routine<span class="Delimiter">;</span>
+<span id="L491" class="LineNr">491 </span>  Current_routine = <span class="Constant">NULL</span><span class="Delimiter">;</span>
+<span id="L492" class="LineNr">492 </span>  Sandbox_mode = <span class="Constant">true</span><span class="Delimiter">;</span>
+<span id="L493" class="LineNr">493 </span>  vector&lt;recipe_ordinal&gt; recipes_reloaded = load<span class="Delimiter">(</span>code<span class="Delimiter">);</span>
+<span id="L494" class="LineNr">494 </span>  <a href='012transform.cc.html#L46'>transform_all</a><span class="Delimiter">();</span>
+<span id="L495" class="LineNr">495 </span>  Trace_stream<span class="Delimiter">-&gt;</span><a href='003trace.cc.html#L137'>newline</a><span class="Delimiter">();</span>  <span class="Comment">// flush trace</span>
+<span id="L496" class="LineNr">496 </span>  Sandbox_mode = <span class="Constant">false</span><span class="Delimiter">;</span>
+<span id="L497" class="LineNr">497 </span>  Current_routine = save_current_routine<span class="Delimiter">;</span>
+<span id="L498" class="LineNr">498 </span>  products<span class="Delimiter">.</span>resize<span class="Delimiter">(</span><span class="Constant">1</span><span class="Delimiter">);</span>
+<span id="L499" class="LineNr">499 </span>  products<span class="Delimiter">.</span>at<span class="Delimiter">(</span><span class="Constant">0</span><span class="Delimiter">).</span>push_back<span class="Delimiter">(</span><a href='101run_sandboxed.cc.html#L429'>trace_error_contents</a><span class="Delimiter">());</span>
+<span id="L500" class="LineNr">500 </span>  <a href='101run_sandboxed.cc.html#L153'>run_code_end</a><span class="Delimiter">();</span>  <span class="Comment">// wait until we're done with the trace contents</span>
+<span id="L501" class="LineNr">501 </span>  <span class="Identifier">break</span><span class="Delimiter">;</span>
+<span id="L502" class="LineNr">502 </span><span class="Delimiter">}</span>
+<span id="L503" class="LineNr">503 </span>
+<span id="L504" class="LineNr">504 </span><span class="Delimiter">:(scenario reload_continues_past_error)</span>
+<span id="L505" class="LineNr">505 </span><span class="muRecipe">def</span> <a href='000organization.cc.html#L113'>main</a> [
+<span id="L506" class="LineNr">506 </span>  local-scope
+<span id="L507" class="LineNr">507 </span>  <span class="Normal">x</span>:text<span class="Special"> &lt;- </span><span class="Normal">new</span> [recipe foo [
+<span id="L508" class="LineNr">508 </span>  get <span class="Constant">1234</span>:num<span class="Delimiter">,</span> <span class="Constant">foo:offset</span>
+<span id="L509" class="LineNr">509 </span>]]
+<span id="L510" class="LineNr">510 </span>  reload x
+<span id="L511" class="LineNr">511 </span>  <span class="Constant">1</span>:num/<span class="Special">raw &lt;- </span>copy <span class="Constant">34</span>
+<span id="L512" class="LineNr">512 </span>]
+<span id="L513" class="LineNr">513 </span><span class="traceContains">+mem: storing 34 in location 1</span>
+<span id="L514" class="LineNr">514 </span>
+<span id="L515" class="LineNr">515 </span><span class="Delimiter">:(scenario reload_can_repeatedly_load_container_definitions)</span>
+<span id="L516" class="LineNr">516 </span><span class="Comment"># define a container and try to create it (merge requires knowing container size)</span>
+<span id="L517" class="LineNr">517 </span><span class="muRecipe">def</span> <a href='000organization.cc.html#L113'>main</a> [
+<span id="L518" class="LineNr">518 </span>  local-scope
+<span id="L519" class="LineNr">519 </span>  <span class="Normal">x</span>:text<span class="Special"> &lt;- </span><span class="Normal">new</span> [
+<span id="L520" class="LineNr">520 </span>    container foo [
+<span id="L521" class="LineNr">521 </span>      <span class="Normal">x</span>:num
+<span id="L522" class="LineNr">522 </span>      <span class="Normal">y</span>:num
+<span id="L523" class="LineNr">523 </span>    ]
+<span id="L524" class="LineNr">524 </span>    <a href='010vm.cc.html#L19'>recipe</a> bar [
+<span id="L525" class="LineNr">525 </span>      local-scope
+<span id="L526" class="LineNr">526 </span>      <span class="Normal">x</span>:foo<span class="Special"> &lt;- </span>merge <span class="Constant">34</span><span class="Delimiter">,</span> <span class="Constant">35</span>
+<span id="L527" class="LineNr">527 </span>    ]
+<span id="L528" class="LineNr">528 </span>  ]
+<span id="L529" class="LineNr">529 </span>  <span class="Comment"># save warning addresses in locations of type 'number' to avoid spurious changes to them due to 'abandon'</span>
+<span id="L530" class="LineNr">530 </span>  <span class="Constant">1</span>:num/<span class="Special">raw &lt;- </span>reload x
+<span id="L531" class="LineNr">531 </span>  <span class="Constant">2</span>:num/<span class="Special">raw &lt;- </span>reload x
+<span id="L532" class="LineNr">532 </span>]
+<span id="L533" class="LineNr">533 </span><span class="Comment"># no errors on either load</span>
+<span id="L534" class="LineNr">534 </span><span class="traceContains">+mem: storing 0 in location 1</span>
+<span id="L535" class="LineNr">535 </span><span class="traceContains">+mem: storing 0 in location 2</span>
 </pre>
 </body>
 </html>
diff --git a/html/edit/001-editor.mu.html b/html/edit/001-editor.mu.html
index 525ab56f..55cb3a73 100644
--- a/html/edit/001-editor.mu.html
+++ b/html/edit/001-editor.mu.html
@@ -68,472 +68,473 @@ if ('onhashchange' in window) {
 <span id="L7" class="LineNr">  7 </span>  <span class="Constant">load-ingredients</span>
 <span id="L8" class="LineNr">  8 </span>  open-console
 <span id="L9" class="LineNr">  9 </span>  <a href='../081print.mu.html#L623'>hide-screen</a> <span class="Constant">0/screen</span>
-<span id="L10" class="LineNr"> 10 </span>  <a href='001-editor.mu.html#L51'>new-editor</a> text, <span class="Constant">0/left</span>, <span class="Constant">5/right</span>
-<span id="L11" class="LineNr"> 11 </span>  <a href='../081print.mu.html#L631'>show-screen</a> <span class="Constant">0/screen</span>
-<span id="L12" class="LineNr"> 12 </span>  <a href='../084console.mu.html#L88'>wait-for-event</a> <span class="Constant">0/console</span>
-<span id="L13" class="LineNr"> 13 </span>  close-console
-<span id="L14" class="LineNr"> 14 </span>]
-<span id="L15" class="LineNr"> 15 </span>
-<span id="L16" class="LineNr"> 16 </span><span class="muScenario">scenario</span> editor-renders-text-to-screen [
-<span id="L17" class="LineNr"> 17 </span>  <span class="Constant">local-scope</span>
-<span id="L18" class="LineNr"> 18 </span>  assume-screen <span class="Constant">10/width</span>, <span class="Constant">5/height</span>
-<span id="L19" class="LineNr"> 19 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L51'>new-editor</a> <span class="Constant">[abc]</span>, <span class="Constant">0/left</span>, <span class="Constant">10/right</span>
-<span id="L20" class="LineNr"> 20 </span>  run [
-<span id="L21" class="LineNr"> 21 </span>    <a href='001-editor.mu.html#L122'>render</a> <a href='../081print.mu.html#L4'>screen</a>, e
-<span id="L22" class="LineNr"> 22 </span>  ]
-<span id="L23" class="LineNr"> 23 </span>  screen-should-contain [
-<span id="L24" class="LineNr"> 24 </span>    <span class="Comment"># top line of screen reserved for menu</span>
-<span id="L25" class="LineNr"> 25 </span>   <span class="Constant"> .          .</span>
-<span id="L26" class="LineNr"> 26 </span>   <span class="Constant"> .abc       .</span>
-<span id="L27" class="LineNr"> 27 </span>   <span class="Constant"> .          .</span>
-<span id="L28" class="LineNr"> 28 </span>  ]
-<span id="L29" class="LineNr"> 29 </span>]
-<span id="L30" class="LineNr"> 30 </span>
-<span id="L31" class="LineNr"> 31 </span><span class="muData">container</span> editor [
-<span id="L32" class="LineNr"> 32 </span>  <span class="Comment"># editable text: doubly linked list of characters (head contains a special sentinel)</span>
-<span id="L33" class="LineNr"> 33 </span>  data:&amp;:duplex-list:char
-<span id="L34" class="LineNr"> 34 </span>  top-of-screen:&amp;:duplex-list:char
-<span id="L35" class="LineNr"> 35 </span>  bottom-of-screen:&amp;:duplex-list:char
-<span id="L36" class="LineNr"> 36 </span>  <span class="Comment"># location before cursor inside data</span>
-<span id="L37" class="LineNr"> 37 </span>  before-cursor:&amp;:duplex-list:char
-<span id="L38" class="LineNr"> 38 </span>
-<span id="L39" class="LineNr"> 39 </span>  <span class="Comment"># raw bounds of display area on screen</span>
-<span id="L40" class="LineNr"> 40 </span>  <span class="Comment"># always displays from row 1 (leaving row 0 for a menu) and at most until bottom of screen</span>
-<span id="L41" class="LineNr"> 41 </span>  left:num
-<span id="L42" class="LineNr"> 42 </span>  right:num
-<span id="L43" class="LineNr"> 43 </span>  bottom:num
-<span id="L44" class="LineNr"> 44 </span>  <span class="Comment"># raw screen coordinates of cursor</span>
-<span id="L45" class="LineNr"> 45 </span>  cursor-row:num
-<span id="L46" class="LineNr"> 46 </span>  cursor-column:num
-<span id="L47" class="LineNr"> 47 </span>]
-<span id="L48" class="LineNr"> 48 </span>
-<span id="L49" class="LineNr"> 49 </span><span class="Comment"># creates a new editor widget</span>
-<span id="L50" class="LineNr"> 50 </span><span class="Comment">#   right is exclusive</span>
-<span id="L51" class="LineNr"> 51 </span><span class="muRecipe">def</span> <a href='001-editor.mu.html#L51'>new-editor</a> s:text, left:num, right:num<span class="muRecipe"> -&gt; </span>result:&amp;:editor [
-<span id="L52" class="LineNr"> 52 </span>  <span class="Constant">local-scope</span>
-<span id="L53" class="LineNr"> 53 </span>  <span class="Constant">load-ingredients</span>
-<span id="L54" class="LineNr"> 54 </span>  <span class="Comment"># no clipping of bounds</span>
-<span id="L55" class="LineNr"> 55 </span>  right <span class="Special">&lt;-</span> subtract right,<span class="Constant"> 1</span>
-<span id="L56" class="LineNr"> 56 </span>  result <span class="Special">&lt;-</span> new <span class="Constant">editor:type</span>
-<span id="L57" class="LineNr"> 57 </span>  <span class="Comment"># initialize screen-related fields</span>
-<span id="L58" class="LineNr"> 58 </span>  *result <span class="Special">&lt;-</span> put *result, <span class="Constant">left:offset</span>, left
-<span id="L59" class="LineNr"> 59 </span>  *result <span class="Special">&lt;-</span> put *result, <span class="Constant">right:offset</span>, right
-<span id="L60" class="LineNr"> 60 </span>  <span class="Comment"># initialize cursor coordinates</span>
-<span id="L61" class="LineNr"> 61 </span>  *result <span class="Special">&lt;-</span> put *result, <span class="Constant">cursor-row:offset</span>, <span class="Constant">1/top</span>
-<span id="L62" class="LineNr"> 62 </span>  *result <span class="Special">&lt;-</span> put *result, <span class="Constant">cursor-column:offset</span>, left
-<span id="L63" class="LineNr"> 63 </span>  <span class="Comment"># initialize empty contents</span>
-<span id="L64" class="LineNr"> 64 </span>  init:&amp;:duplex-list:char <span class="Special">&lt;-</span> push <span class="Constant">167/§</span>, <span class="Constant">0/tail</span>
-<span id="L65" class="LineNr"> 65 </span>  *result <span class="Special">&lt;-</span> put *result, <span class="Constant">data:offset</span>, init
-<span id="L66" class="LineNr"> 66 </span>  *result <span class="Special">&lt;-</span> put *result, <span class="Constant">top-of-screen:offset</span>, init
-<span id="L67" class="LineNr"> 67 </span>  *result <span class="Special">&lt;-</span> put *result, <span class="Constant">before-cursor:offset</span>, init
-<span id="L68" class="LineNr"> 68 </span>  result <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L72'>insert-text</a> result, s
-<span id="L69" class="LineNr"> 69 </span><span class="Constant">  <a href='001-editor.mu.html#L69'>&lt;editor-initialization&gt;</a></span>
-<span id="L70" class="LineNr"> 70 </span>]
-<span id="L71" class="LineNr"> 71 </span>
-<span id="L72" class="LineNr"> 72 </span><span class="muRecipe">def</span> <a href='001-editor.mu.html#L72'>insert-text</a> editor:&amp;:editor, text:text<span class="muRecipe"> -&gt; </span>editor:&amp;:editor [
-<span id="L73" class="LineNr"> 73 </span>  <span class="Constant">local-scope</span>
-<span id="L74" class="LineNr"> 74 </span>  <span class="Constant">load-ingredients</span>
-<span id="L75" class="LineNr"> 75 </span>  <span class="Comment"># early exit if text is empty</span>
-<span id="L76" class="LineNr"> 76 </span>  <span class="muControl">return-unless</span> text
-<span id="L77" class="LineNr"> 77 </span>  len:num <span class="Special">&lt;-</span> length *text
-<span id="L78" class="LineNr"> 78 </span>  <span class="muControl">return-unless</span> len
-<span id="L79" class="LineNr"> 79 </span>  idx:num <span class="Special">&lt;-</span> copy<span class="Constant"> 0</span>
-<span id="L80" class="LineNr"> 80 </span>  <span class="Comment"># now we can start appending the rest, character by character</span>
-<span id="L81" class="LineNr"> 81 </span>  curr:&amp;:duplex-list:char <span class="Special">&lt;-</span> get *editor, <span class="Constant">data:offset</span>
-<span id="L82" class="LineNr"> 82 </span>  <span class="Delimiter">{</span>
-<span id="L83" class="LineNr"> 83 </span>    done?:bool <span class="Special">&lt;-</span> greater-or-equal idx, len
-<span id="L84" class="LineNr"> 84 </span>    <span class="muControl">break-if</span> done?
-<span id="L85" class="LineNr"> 85 </span>    c:char <span class="Special">&lt;-</span> index *text, idx
-<span id="L86" class="LineNr"> 86 </span>    insert c, curr
-<span id="L87" class="LineNr"> 87 </span>    <span class="Comment"># next iter</span>
-<span id="L88" class="LineNr"> 88 </span>    curr <span class="Special">&lt;-</span> <a href='../065duplex_list.mu.html#L29'>next</a> curr
-<span id="L89" class="LineNr"> 89 </span>    idx <span class="Special">&lt;-</span> add idx,<span class="Constant"> 1</span>
-<span id="L90" class="LineNr"> 90 </span>    <span class="muControl">loop</span>
-<span id="L91" class="LineNr"> 91 </span>  <span class="Delimiter">}</span>
-<span id="L92" class="LineNr"> 92 </span>]
-<span id="L93" class="LineNr"> 93 </span>
-<span id="L94" class="LineNr"> 94 </span><span class="muScenario">scenario</span> editor-initializes-without-data [
-<span id="L95" class="LineNr"> 95 </span>  <span class="Constant">local-scope</span>
-<span id="L96" class="LineNr"> 96 </span>  assume-screen <span class="Constant">5/width</span>, <span class="Constant">3/height</span>
-<span id="L97" class="LineNr"> 97 </span>  run [
-<span id="L98" class="LineNr"> 98 </span>    e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L51'>new-editor</a> <span class="Constant">0/data</span>, <span class="Constant">2/left</span>, <span class="Constant">5/right</span>
-<span id="L99" class="LineNr"> 99 </span>    2:editor/<span class="Special">raw</span> <span class="Special">&lt;-</span> copy *e
-<span id="L100" class="LineNr">100 </span>  ]
-<span id="L101" class="LineNr">101 </span>  memory-should-contain [
-<span id="L102" class="LineNr">102 </span>    <span class="Comment"># 2 (data) &lt;- just the § sentinel</span>
-<span id="L103" class="LineNr">103 </span>    <span class="Comment"># 3 (top of screen) &lt;- the § sentinel</span>
-<span id="L104" class="LineNr">104 </span>   <span class="Constant"> 4</span> <span class="Special">&lt;-</span><span class="Constant"> 0</span>  <span class="Comment"># bottom-of-screen; null since text fits on screen</span>
-<span id="L105" class="LineNr">105 </span>    <span class="Comment"># 5 (before cursor) &lt;- the § sentinel</span>
-<span id="L106" class="LineNr">106 </span>   <span class="Constant"> 6</span> <span class="Special">&lt;-</span><span class="Constant"> 2</span>  <span class="Comment"># left</span>
-<span id="L107" class="LineNr">107 </span>   <span class="Constant"> 7</span> <span class="Special">&lt;-</span><span class="Constant"> 4</span>  <span class="Comment"># right  (inclusive)</span>
-<span id="L108" class="LineNr">108 </span>   <span class="Constant"> 8</span> <span class="Special">&lt;-</span><span class="Constant"> 0</span>  <span class="Comment"># bottom (not set until render)</span>
-<span id="L109" class="LineNr">109 </span>   <span class="Constant"> 9</span> <span class="Special">&lt;-</span><span class="Constant"> 1</span>  <span class="Comment"># cursor row</span>
-<span id="L110" class="LineNr">110 </span>   <span class="Constant"> 10</span> <span class="Special">&lt;-</span><span class="Constant"> 2</span>  <span class="Comment"># cursor column</span>
-<span id="L111" class="LineNr">111 </span>  ]
-<span id="L112" class="LineNr">112 </span>  screen-should-contain [
-<span id="L113" class="LineNr">113 </span>   <span class="Constant"> .     .</span>
+<span id="L10" class="LineNr"> 10 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L52'>new-editor</a> text, <span class="Constant">0/left</span>, <span class="Constant">5/right</span>
+<span id="L11" class="LineNr"> 11 </span>  <a href='001-editor.mu.html#L123'>render</a> <span class="Constant">0/screen</span>, e
+<span id="L12" class="LineNr"> 12 </span>  <a href='../081print.mu.html#L631'>show-screen</a> <span class="Constant">0/screen</span>
+<span id="L13" class="LineNr"> 13 </span>  <a href='../084console.mu.html#L88'>wait-for-event</a> <span class="Constant">0/console</span>
+<span id="L14" class="LineNr"> 14 </span>  close-console
+<span id="L15" class="LineNr"> 15 </span>]
+<span id="L16" class="LineNr"> 16 </span>
+<span id="L17" class="LineNr"> 17 </span><span class="muScenario">scenario</span> editor-renders-text-to-screen [
+<span id="L18" class="LineNr"> 18 </span>  <span class="Constant">local-scope</span>
+<span id="L19" class="LineNr"> 19 </span>  assume-screen <span class="Constant">10/width</span>, <span class="Constant">5/height</span>
+<span id="L20" class="LineNr"> 20 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L52'>new-editor</a> <span class="Constant">[abc]</span>, <span class="Constant">0/left</span>, <span class="Constant">10/right</span>
+<span id="L21" class="LineNr"> 21 </span>  run [
+<span id="L22" class="LineNr"> 22 </span>    <a href='001-editor.mu.html#L123'>render</a> <a href='../081print.mu.html#L4'>screen</a>, e
+<span id="L23" class="LineNr"> 23 </span>  ]
+<span id="L24" class="LineNr"> 24 </span>  screen-should-contain [
+<span id="L25" class="LineNr"> 25 </span>    <span class="Comment"># top line of screen reserved for menu</span>
+<span id="L26" class="LineNr"> 26 </span>   <span class="Constant"> .          .</span>
+<span id="L27" class="LineNr"> 27 </span>   <span class="Constant"> .abc       .</span>
+<span id="L28" class="LineNr"> 28 </span>   <span class="Constant"> .          .</span>
+<span id="L29" class="LineNr"> 29 </span>  ]
+<span id="L30" class="LineNr"> 30 </span>]
+<span id="L31" class="LineNr"> 31 </span>
+<span id="L32" class="LineNr"> 32 </span><span class="muData">container</span> editor [
+<span id="L33" class="LineNr"> 33 </span>  <span class="Comment"># editable text: doubly linked list of characters (head contains a special sentinel)</span>
+<span id="L34" class="LineNr"> 34 </span>  data:&amp;:duplex-list:char
+<span id="L35" class="LineNr"> 35 </span>  top-of-screen:&amp;:duplex-list:char
+<span id="L36" class="LineNr"> 36 </span>  bottom-of-screen:&amp;:duplex-list:char
+<span id="L37" class="LineNr"> 37 </span>  <span class="Comment"># location before cursor inside data</span>
+<span id="L38" class="LineNr"> 38 </span>  before-cursor:&amp;:duplex-list:char
+<span id="L39" class="LineNr"> 39 </span>
+<span id="L40" class="LineNr"> 40 </span>  <span class="Comment"># raw bounds of display area on screen</span>
+<span id="L41" class="LineNr"> 41 </span>  <span class="Comment"># always displays from row 1 (leaving row 0 for a menu) and at most until bottom of screen</span>
+<span id="L42" class="LineNr"> 42 </span>  left:num
+<span id="L43" class="LineNr"> 43 </span>  right:num
+<span id="L44" class="LineNr"> 44 </span>  bottom:num
+<span id="L45" class="LineNr"> 45 </span>  <span class="Comment"># raw screen coordinates of cursor</span>
+<span id="L46" class="LineNr"> 46 </span>  cursor-row:num
+<span id="L47" class="LineNr"> 47 </span>  cursor-column:num
+<span id="L48" class="LineNr"> 48 </span>]
+<span id="L49" class="LineNr"> 49 </span>
+<span id="L50" class="LineNr"> 50 </span><span class="Comment"># creates a new editor widget</span>
+<span id="L51" class="LineNr"> 51 </span><span class="Comment">#   right is exclusive</span>
+<span id="L52" class="LineNr"> 52 </span><span class="muRecipe">def</span> <a href='001-editor.mu.html#L52'>new-editor</a> s:text, left:num, right:num<span class="muRecipe"> -&gt; </span>result:&amp;:editor [
+<span id="L53" class="LineNr"> 53 </span>  <span class="Constant">local-scope</span>
+<span id="L54" class="LineNr"> 54 </span>  <span class="Constant">load-ingredients</span>
+<span id="L55" class="LineNr"> 55 </span>  <span class="Comment"># no clipping of bounds</span>
+<span id="L56" class="LineNr"> 56 </span>  right <span class="Special">&lt;-</span> subtract right,<span class="Constant"> 1</span>
+<span id="L57" class="LineNr"> 57 </span>  result <span class="Special">&lt;-</span> new <span class="Constant">editor:type</span>
+<span id="L58" class="LineNr"> 58 </span>  <span class="Comment"># initialize screen-related fields</span>
+<span id="L59" class="LineNr"> 59 </span>  *result <span class="Special">&lt;-</span> put *result, <span class="Constant">left:offset</span>, left
+<span id="L60" class="LineNr"> 60 </span>  *result <span class="Special">&lt;-</span> put *result, <span class="Constant">right:offset</span>, right
+<span id="L61" class="LineNr"> 61 </span>  <span class="Comment"># initialize cursor coordinates</span>
+<span id="L62" class="LineNr"> 62 </span>  *result <span class="Special">&lt;-</span> put *result, <span class="Constant">cursor-row:offset</span>, <span class="Constant">1/top</span>
+<span id="L63" class="LineNr"> 63 </span>  *result <span class="Special">&lt;-</span> put *result, <span class="Constant">cursor-column:offset</span>, left
+<span id="L64" class="LineNr"> 64 </span>  <span class="Comment"># initialize empty contents</span>
+<span id="L65" class="LineNr"> 65 </span>  init:&amp;:duplex-list:char <span class="Special">&lt;-</span> push <span class="Constant">167/§</span>, <span class="Constant">0/tail</span>
+<span id="L66" class="LineNr"> 66 </span>  *result <span class="Special">&lt;-</span> put *result, <span class="Constant">data:offset</span>, init
+<span id="L67" class="LineNr"> 67 </span>  *result <span class="Special">&lt;-</span> put *result, <span class="Constant">top-of-screen:offset</span>, init
+<span id="L68" class="LineNr"> 68 </span>  *result <span class="Special">&lt;-</span> put *result, <span class="Constant">before-cursor:offset</span>, init
+<span id="L69" class="LineNr"> 69 </span>  result <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L73'>insert-text</a> result, s
+<span id="L70" class="LineNr"> 70 </span><span class="Constant">  <a href='001-editor.mu.html#L70'>&lt;editor-initialization&gt;</a></span>
+<span id="L71" class="LineNr"> 71 </span>]
+<span id="L72" class="LineNr"> 72 </span>
+<span id="L73" class="LineNr"> 73 </span><span class="muRecipe">def</span> <a href='001-editor.mu.html#L73'>insert-text</a> editor:&amp;:editor, text:text<span class="muRecipe"> -&gt; </span>editor:&amp;:editor [
+<span id="L74" class="LineNr"> 74 </span>  <span class="Constant">local-scope</span>
+<span id="L75" class="LineNr"> 75 </span>  <span class="Constant">load-ingredients</span>
+<span id="L76" class="LineNr"> 76 </span>  <span class="Comment"># early exit if text is empty</span>
+<span id="L77" class="LineNr"> 77 </span>  <span class="muControl">return-unless</span> text
+<span id="L78" class="LineNr"> 78 </span>  len:num <span class="Special">&lt;-</span> length *text
+<span id="L79" class="LineNr"> 79 </span>  <span class="muControl">return-unless</span> len
+<span id="L80" class="LineNr"> 80 </span>  idx:num <span class="Special">&lt;-</span> copy<span class="Constant"> 0</span>
+<span id="L81" class="LineNr"> 81 </span>  <span class="Comment"># now we can start appending the rest, character by character</span>
+<span id="L82" class="LineNr"> 82 </span>  curr:&amp;:duplex-list:char <span class="Special">&lt;-</span> get *editor, <span class="Constant">data:offset</span>
+<span id="L83" class="LineNr"> 83 </span>  <span class="Delimiter">{</span>
+<span id="L84" class="LineNr"> 84 </span>    done?:bool <span class="Special">&lt;-</span> greater-or-equal idx, len
+<span id="L85" class="LineNr"> 85 </span>    <span class="muControl">break-if</span> done?
+<span id="L86" class="LineNr"> 86 </span>    c:char <span class="Special">&lt;-</span> index *text, idx
+<span id="L87" class="LineNr"> 87 </span>    insert c, curr
+<span id="L88" class="LineNr"> 88 </span>    <span class="Comment"># next iter</span>
+<span id="L89" class="LineNr"> 89 </span>    curr <span class="Special">&lt;-</span> <a href='../065duplex_list.mu.html#L29'>next</a> curr
+<span id="L90" class="LineNr"> 90 </span>    idx <span class="Special">&lt;-</span> add idx,<span class="Constant"> 1</span>
+<span id="L91" class="LineNr"> 91 </span>    <span class="muControl">loop</span>
+<span id="L92" class="LineNr"> 92 </span>  <span class="Delimiter">}</span>
+<span id="L93" class="LineNr"> 93 </span>]
+<span id="L94" class="LineNr"> 94 </span>
+<span id="L95" class="LineNr"> 95 </span><span class="muScenario">scenario</span> editor-initializes-without-data [
+<span id="L96" class="LineNr"> 96 </span>  <span class="Constant">local-scope</span>
+<span id="L97" class="LineNr"> 97 </span>  assume-screen <span class="Constant">5/width</span>, <span class="Constant">3/height</span>
+<span id="L98" class="LineNr"> 98 </span>  run [
+<span id="L99" class="LineNr"> 99 </span>    e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L52'>new-editor</a> <span class="Constant">0/data</span>, <span class="Constant">2/left</span>, <span class="Constant">5/right</span>
+<span id="L100" class="LineNr">100 </span>    2:editor/<span class="Special">raw</span> <span class="Special">&lt;-</span> copy *e
+<span id="L101" class="LineNr">101 </span>  ]
+<span id="L102" class="LineNr">102 </span>  memory-should-contain [
+<span id="L103" class="LineNr">103 </span>    <span class="Comment"># 2 (data) &lt;- just the § sentinel</span>
+<span id="L104" class="LineNr">104 </span>    <span class="Comment"># 3 (top of screen) &lt;- the § sentinel</span>
+<span id="L105" class="LineNr">105 </span>   <span class="Constant"> 4</span> <span class="Special">&lt;-</span><span class="Constant"> 0</span>  <span class="Comment"># bottom-of-screen; null since text fits on screen</span>
+<span id="L106" class="LineNr">106 </span>    <span class="Comment"># 5 (before cursor) &lt;- the § sentinel</span>
+<span id="L107" class="LineNr">107 </span>   <span class="Constant"> 6</span> <span class="Special">&lt;-</span><span class="Constant"> 2</span>  <span class="Comment"># left</span>
+<span id="L108" class="LineNr">108 </span>   <span class="Constant"> 7</span> <span class="Special">&lt;-</span><span class="Constant"> 4</span>  <span class="Comment"># right  (inclusive)</span>
+<span id="L109" class="LineNr">109 </span>   <span class="Constant"> 8</span> <span class="Special">&lt;-</span><span class="Constant"> 0</span>  <span class="Comment"># bottom (not set until render)</span>
+<span id="L110" class="LineNr">110 </span>   <span class="Constant"> 9</span> <span class="Special">&lt;-</span><span class="Constant"> 1</span>  <span class="Comment"># cursor row</span>
+<span id="L111" class="LineNr">111 </span>   <span class="Constant"> 10</span> <span class="Special">&lt;-</span><span class="Constant"> 2</span>  <span class="Comment"># cursor column</span>
+<span id="L112" class="LineNr">112 </span>  ]
+<span id="L113" class="LineNr">113 </span>  screen-should-contain [
 <span id="L114" class="LineNr">114 </span>   <span class="Constant"> .     .</span>
 <span id="L115" class="LineNr">115 </span>   <span class="Constant"> .     .</span>
-<span id="L116" class="LineNr">116 </span>  ]
-<span id="L117" class="LineNr">117 </span>]
-<span id="L118" class="LineNr">118 </span>
-<span id="L119" class="LineNr">119 </span><span class="Comment"># Assumes cursor should be at coordinates (cursor-row, cursor-column) and</span>
-<span id="L120" class="LineNr">120 </span><span class="Comment"># updates before-cursor to match. Might also move coordinates if they're</span>
-<span id="L121" class="LineNr">121 </span><span class="Comment"># outside text.</span>
-<span id="L122" class="LineNr">122 </span><span class="muRecipe">def</span> <a href='001-editor.mu.html#L122'>render</a> <a href='../081print.mu.html#L4'>screen</a>:&amp;:<a href='../081print.mu.html#L4'>screen</a>, editor:&amp;:editor<span class="muRecipe"> -&gt; </span>last-row:num, last-column:num, <a href='../081print.mu.html#L4'>screen</a>:&amp;:<a href='../081print.mu.html#L4'>screen</a>, editor:&amp;:editor [
-<span id="L123" class="LineNr">123 </span>  <span class="Constant">local-scope</span>
-<span id="L124" class="LineNr">124 </span>  <span class="Constant">load-ingredients</span>
-<span id="L125" class="LineNr">125 </span>  <span class="muControl">return-unless</span> editor, <span class="Constant">1/top</span>, <span class="Constant">0/left</span>
-<span id="L126" class="LineNr">126 </span>  left:num <span class="Special">&lt;-</span> get *editor, <span class="Constant">left:offset</span>
-<span id="L127" class="LineNr">127 </span>  <a href='../081print.mu.html#L594'>screen-height</a>:num <span class="Special">&lt;-</span> <a href='../081print.mu.html#L594'>screen-height</a> <a href='../081print.mu.html#L4'>screen</a>
-<span id="L128" class="LineNr">128 </span>  right:num <span class="Special">&lt;-</span> get *editor, <span class="Constant">right:offset</span>
-<span id="L129" class="LineNr">129 </span>  <span class="Comment"># traversing editor</span>
-<span id="L130" class="LineNr">130 </span>  curr:&amp;:duplex-list:char <span class="Special">&lt;-</span> get *editor, <span class="Constant">top-of-screen:offset</span>
-<span id="L131" class="LineNr">131 </span>  <a href='../065duplex_list.mu.html#L36'>prev</a>:&amp;:duplex-list:char <span class="Special">&lt;-</span> copy curr  <span class="Comment"># just in case curr becomes null and we can't compute prev</span>
-<span id="L132" class="LineNr">132 </span>  curr <span class="Special">&lt;-</span> <a href='../065duplex_list.mu.html#L29'>next</a> curr
-<span id="L133" class="LineNr">133 </span>  <span class="Comment"># traversing screen</span>
-<span id="L134" class="LineNr">134 </span><span class="Constant">  +render-loop-initialization</span>
-<span id="L135" class="LineNr">135 </span>  color:num <span class="Special">&lt;-</span> copy <span class="Constant">7/white</span>
-<span id="L136" class="LineNr">136 </span>  row:num <span class="Special">&lt;-</span> copy <span class="Constant">1/top</span>
-<span id="L137" class="LineNr">137 </span>  column:num <span class="Special">&lt;-</span> copy left
-<span id="L138" class="LineNr">138 </span>  cursor-row:num <span class="Special">&lt;-</span> get *editor, <span class="Constant">cursor-row:offset</span>
-<span id="L139" class="LineNr">139 </span>  cursor-column:num <span class="Special">&lt;-</span> get *editor, <span class="Constant">cursor-column:offset</span>
-<span id="L140" class="LineNr">140 </span>  before-cursor:&amp;:duplex-list:char <span class="Special">&lt;-</span> get *editor, <span class="Constant">before-cursor:offset</span>
-<span id="L141" class="LineNr">141 </span>  <a href='../081print.mu.html#L4'>screen</a> <span class="Special">&lt;-</span> <a href='../081print.mu.html#L442'>move-cursor</a> <a href='../081print.mu.html#L4'>screen</a>, row, column
-<span id="L142" class="LineNr">142 </span>  <span class="Delimiter">{</span>
-<span id="L143" class="LineNr">143 </span><span class="Constant">    +next-character</span>
-<span id="L144" class="LineNr">144 </span>    <span class="muControl">break-unless</span> curr
-<span id="L145" class="LineNr">145 </span>    off-screen?:bool <span class="Special">&lt;-</span> greater-or-equal row, <a href='../081print.mu.html#L594'>screen-height</a>
-<span id="L146" class="LineNr">146 </span>    <span class="muControl">break-if</span> off-screen?
-<span id="L147" class="LineNr">147 </span>    <span class="Comment"># update editor.before-cursor</span>
-<span id="L148" class="LineNr">148 </span>    <span class="Comment"># Doing so at the start of each iteration ensures it stays one step behind</span>
-<span id="L149" class="LineNr">149 </span>    <span class="Comment"># the current character.</span>
-<span id="L150" class="LineNr">150 </span>    <span class="Delimiter">{</span>
-<span id="L151" class="LineNr">151 </span>      at-cursor-row?:bool <span class="Special">&lt;-</span> equal row, cursor-row
-<span id="L152" class="LineNr">152 </span>      <span class="muControl">break-unless</span> at-cursor-row?
-<span id="L153" class="LineNr">153 </span>      at-cursor?:bool <span class="Special">&lt;-</span> equal column, cursor-column
-<span id="L154" class="LineNr">154 </span>      <span class="muControl">break-unless</span> at-cursor?
-<span id="L155" class="LineNr">155 </span>      before-cursor <span class="Special">&lt;-</span> copy <a href='../065duplex_list.mu.html#L36'>prev</a>
-<span id="L156" class="LineNr">156 </span>    <span class="Delimiter">}</span>
-<span id="L157" class="LineNr">157 </span>    c:char <span class="Special">&lt;-</span> get *curr, <span class="Constant">value:offset</span>
-<span id="L158" class="LineNr">158 </span><span class="Constant">    &lt;character-c-received&gt;</span>
-<span id="L159" class="LineNr">159 </span>    <span class="Delimiter">{</span>
-<span id="L160" class="LineNr">160 </span>      <span class="Comment"># newline? move to left rather than 0</span>
-<span id="L161" class="LineNr">161 </span>      newline?:bool <span class="Special">&lt;-</span> equal c, <span class="Constant">10/newline</span>
-<span id="L162" class="LineNr">162 </span>      <span class="muControl">break-unless</span> newline?
-<span id="L163" class="LineNr">163 </span>      <span class="Comment"># adjust cursor if necessary</span>
-<span id="L164" class="LineNr">164 </span>      <span class="Delimiter">{</span>
-<span id="L165" class="LineNr">165 </span>        at-cursor-row?:bool <span class="Special">&lt;-</span> equal row, cursor-row
-<span id="L166" class="LineNr">166 </span>        <span class="muControl">break-unless</span> at-cursor-row?
-<span id="L167" class="LineNr">167 </span>        left-of-cursor?:bool <span class="Special">&lt;-</span> lesser-than column, cursor-column
-<span id="L168" class="LineNr">168 </span>        <span class="muControl">break-unless</span> left-of-cursor?
-<span id="L169" class="LineNr">169 </span>        cursor-column <span class="Special">&lt;-</span> copy column
-<span id="L170" class="LineNr">170 </span>        before-cursor <span class="Special">&lt;-</span> <a href='../065duplex_list.mu.html#L36'>prev</a> curr
-<span id="L171" class="LineNr">171 </span>      <span class="Delimiter">}</span>
-<span id="L172" class="LineNr">172 </span>      <span class="Comment"># clear rest of line in this window</span>
-<span id="L173" class="LineNr">173 </span>      <a href='../081print.mu.html#L408'>clear-line-until</a> <a href='../081print.mu.html#L4'>screen</a>, right
-<span id="L174" class="LineNr">174 </span>      <span class="Comment"># skip to next line</span>
-<span id="L175" class="LineNr">175 </span>      row <span class="Special">&lt;-</span> add row,<span class="Constant"> 1</span>
-<span id="L176" class="LineNr">176 </span>      column <span class="Special">&lt;-</span> copy left
-<span id="L177" class="LineNr">177 </span>      <a href='../081print.mu.html#L4'>screen</a> <span class="Special">&lt;-</span> <a href='../081print.mu.html#L442'>move-cursor</a> <a href='../081print.mu.html#L4'>screen</a>, row, column
-<span id="L178" class="LineNr">178 </span>      curr <span class="Special">&lt;-</span> <a href='../065duplex_list.mu.html#L29'>next</a> curr
-<span id="L179" class="LineNr">179 </span>      <a href='../065duplex_list.mu.html#L36'>prev</a> <span class="Special">&lt;-</span> <a href='../065duplex_list.mu.html#L29'>next</a> <a href='../065duplex_list.mu.html#L36'>prev</a>
-<span id="L180" class="LineNr">180 </span>      <span class="muControl">loop</span> <span class="Constant">+next-character</span>
-<span id="L181" class="LineNr">181 </span>    <span class="Delimiter">}</span>
-<span id="L182" class="LineNr">182 </span>    <span class="Delimiter">{</span>
-<span id="L183" class="LineNr">183 </span>      <span class="Comment"># at right? wrap. even if there's only one more letter left; we need</span>
-<span id="L184" class="LineNr">184 </span>      <span class="Comment"># room for clicking on the cursor after it.</span>
-<span id="L185" class="LineNr">185 </span>      at-right?:bool <span class="Special">&lt;-</span> equal column, right
-<span id="L186" class="LineNr">186 </span>      <span class="muControl">break-unless</span> at-right?
-<span id="L187" class="LineNr">187 </span>      <span class="Comment"># print wrap icon</span>
-<span id="L188" class="LineNr">188 </span>      wrap-icon:char <span class="Special">&lt;-</span> copy <span class="Constant">8617/loop-back-to-left</span>
-<span id="L189" class="LineNr">189 </span>      print <a href='../081print.mu.html#L4'>screen</a>, wrap-icon, <span class="Constant">245/grey</span>
-<span id="L190" class="LineNr">190 </span>      column <span class="Special">&lt;-</span> copy left
-<span id="L191" class="LineNr">191 </span>      row <span class="Special">&lt;-</span> add row,<span class="Constant"> 1</span>
-<span id="L192" class="LineNr">192 </span>      <a href='../081print.mu.html#L4'>screen</a> <span class="Special">&lt;-</span> <a href='../081print.mu.html#L442'>move-cursor</a> <a href='../081print.mu.html#L4'>screen</a>, row, column
-<span id="L193" class="LineNr">193 </span>      <span class="Comment"># don't increment curr</span>
-<span id="L194" class="LineNr">194 </span>      <span class="muControl">loop</span> <span class="Constant">+next-character</span>
-<span id="L195" class="LineNr">195 </span>    <span class="Delimiter">}</span>
-<span id="L196" class="LineNr">196 </span>    print <a href='../081print.mu.html#L4'>screen</a>, c, color
-<span id="L197" class="LineNr">197 </span>    curr <span class="Special">&lt;-</span> <a href='../065duplex_list.mu.html#L29'>next</a> curr
-<span id="L198" class="LineNr">198 </span>    <a href='../065duplex_list.mu.html#L36'>prev</a> <span class="Special">&lt;-</span> <a href='../065duplex_list.mu.html#L29'>next</a> <a href='../065duplex_list.mu.html#L36'>prev</a>
-<span id="L199" class="LineNr">199 </span>    column <span class="Special">&lt;-</span> add column,<span class="Constant"> 1</span>
-<span id="L200" class="LineNr">200 </span>    <span class="muControl">loop</span>
-<span id="L201" class="LineNr">201 </span>  <span class="Delimiter">}</span>
-<span id="L202" class="LineNr">202 </span>  <span class="Comment"># save first character off-screen</span>
-<span id="L203" class="LineNr">203 </span>  *editor <span class="Special">&lt;-</span> put *editor, <span class="Constant">bottom-of-screen:offset</span>, curr
-<span id="L204" class="LineNr">204 </span>  <span class="Comment"># is cursor to the right of the last line? move to end</span>
-<span id="L205" class="LineNr">205 </span>  <span class="Delimiter">{</span>
-<span id="L206" class="LineNr">206 </span>    at-cursor-row?:bool <span class="Special">&lt;-</span> equal row, cursor-row
-<span id="L207" class="LineNr">207 </span>    cursor-outside-line?:bool <span class="Special">&lt;-</span> lesser-or-equal column, cursor-column
-<span id="L208" class="LineNr">208 </span>    before-cursor-on-same-line?:bool <span class="Special">&lt;-</span> and at-cursor-row?, cursor-outside-line?
-<span id="L209" class="LineNr">209 </span>    above-cursor-row?:bool <span class="Special">&lt;-</span> lesser-than row, cursor-row
-<span id="L210" class="LineNr">210 </span>    before-cursor?:bool <span class="Special">&lt;-</span> or before-cursor-on-same-line?, above-cursor-row?
-<span id="L211" class="LineNr">211 </span>    <span class="muControl">break-unless</span> before-cursor?
-<span id="L212" class="LineNr">212 </span>    cursor-row <span class="Special">&lt;-</span> copy row
-<span id="L213" class="LineNr">213 </span>    cursor-column <span class="Special">&lt;-</span> copy column
-<span id="L214" class="LineNr">214 </span>    before-cursor <span class="Special">&lt;-</span> copy <a href='../065duplex_list.mu.html#L36'>prev</a>
-<span id="L215" class="LineNr">215 </span>  <span class="Delimiter">}</span>
-<span id="L216" class="LineNr">216 </span>  *editor <span class="Special">&lt;-</span> put *editor, <span class="Constant">bottom:offset</span>, row
-<span id="L217" class="LineNr">217 </span>  *editor <span class="Special">&lt;-</span> put *editor, <span class="Constant">cursor-row:offset</span>, cursor-row
-<span id="L218" class="LineNr">218 </span>  *editor <span class="Special">&lt;-</span> put *editor, <span class="Constant">cursor-column:offset</span>, cursor-column
-<span id="L219" class="LineNr">219 </span>  *editor <span class="Special">&lt;-</span> put *editor, <span class="Constant">before-cursor:offset</span>, before-cursor
-<span id="L220" class="LineNr">220 </span>  <span class="muControl">return</span> row, column
-<span id="L221" class="LineNr">221 </span>]
-<span id="L222" class="LineNr">222 </span>
-<span id="L223" class="LineNr">223 </span><span class="muRecipe">def</span> <a href='001-editor.mu.html#L223'>clear-screen-from</a> <a href='../081print.mu.html#L4'>screen</a>:&amp;:<a href='../081print.mu.html#L4'>screen</a>, row:num, column:num, left:num, right:num<span class="muRecipe"> -&gt; </span><a href='../081print.mu.html#L4'>screen</a>:&amp;:<a href='../081print.mu.html#L4'>screen</a> [
-<span id="L224" class="LineNr">224 </span>  <span class="Constant">local-scope</span>
-<span id="L225" class="LineNr">225 </span>  <span class="Constant">load-ingredients</span>
-<span id="L226" class="LineNr">226 </span>  <span class="Comment"># if it's the real screen, use the optimized primitive</span>
-<span id="L227" class="LineNr">227 </span>  <span class="Delimiter">{</span>
-<span id="L228" class="LineNr">228 </span>    <span class="muControl">break-if</span> <a href='../081print.mu.html#L4'>screen</a>
-<span id="L229" class="LineNr">229 </span>    clear-display-from row, column, left, right
-<span id="L230" class="LineNr">230 </span>    <span class="muControl">return</span>
-<span id="L231" class="LineNr">231 </span>  <span class="Delimiter">}</span>
-<span id="L232" class="LineNr">232 </span>  <span class="Comment"># if not, go the slower route</span>
-<span id="L233" class="LineNr">233 </span>  <a href='../081print.mu.html#L4'>screen</a> <span class="Special">&lt;-</span> <a href='../081print.mu.html#L442'>move-cursor</a> <a href='../081print.mu.html#L4'>screen</a>, row, column
-<span id="L234" class="LineNr">234 </span>  <a href='../081print.mu.html#L408'>clear-line-until</a> <a href='../081print.mu.html#L4'>screen</a>, right
-<span id="L235" class="LineNr">235 </span>  <a href='001-editor.mu.html#L238'>clear-rest-of-screen</a> <a href='../081print.mu.html#L4'>screen</a>, row, left, right
-<span id="L236" class="LineNr">236 </span>]
-<span id="L237" class="LineNr">237 </span>
-<span id="L238" class="LineNr">238 </span><span class="muRecipe">def</span> <a href='001-editor.mu.html#L238'>clear-rest-of-screen</a> <a href='../081print.mu.html#L4'>screen</a>:&amp;:<a href='../081print.mu.html#L4'>screen</a>, row:num, left:num, right:num<span class="muRecipe"> -&gt; </span><a href='../081print.mu.html#L4'>screen</a>:&amp;:<a href='../081print.mu.html#L4'>screen</a> [
-<span id="L239" class="LineNr">239 </span>  <span class="Constant">local-scope</span>
-<span id="L240" class="LineNr">240 </span>  <span class="Constant">load-ingredients</span>
-<span id="L241" class="LineNr">241 </span>  row <span class="Special">&lt;-</span> add row,<span class="Constant"> 1</span>
-<span id="L242" class="LineNr">242 </span>  <a href='../081print.mu.html#L4'>screen</a> <span class="Special">&lt;-</span> <a href='../081print.mu.html#L442'>move-cursor</a> <a href='../081print.mu.html#L4'>screen</a>, row, left
-<span id="L243" class="LineNr">243 </span>  <a href='../081print.mu.html#L594'>screen-height</a>:num <span class="Special">&lt;-</span> <a href='../081print.mu.html#L594'>screen-height</a> <a href='../081print.mu.html#L4'>screen</a>
-<span id="L244" class="LineNr">244 </span>  <span class="Delimiter">{</span>
-<span id="L245" class="LineNr">245 </span>    at-bottom-of-screen?:bool <span class="Special">&lt;-</span> greater-or-equal row, <a href='../081print.mu.html#L594'>screen-height</a>
-<span id="L246" class="LineNr">246 </span>    <span class="muControl">break-if</span> at-bottom-of-screen?
-<span id="L247" class="LineNr">247 </span>    <a href='../081print.mu.html#L4'>screen</a> <span class="Special">&lt;-</span> <a href='../081print.mu.html#L442'>move-cursor</a> <a href='../081print.mu.html#L4'>screen</a>, row, left
-<span id="L248" class="LineNr">248 </span>    <a href='../081print.mu.html#L408'>clear-line-until</a> <a href='../081print.mu.html#L4'>screen</a>, right
-<span id="L249" class="LineNr">249 </span>    row <span class="Special">&lt;-</span> add row,<span class="Constant"> 1</span>
-<span id="L250" class="LineNr">250 </span>    <span class="muControl">loop</span>
-<span id="L251" class="LineNr">251 </span>  <span class="Delimiter">}</span>
-<span id="L252" class="LineNr">252 </span>]
-<span id="L253" class="LineNr">253 </span>
-<span id="L254" class="LineNr">254 </span><span class="muScenario">scenario</span> editor-prints-multiple-lines [
-<span id="L255" class="LineNr">255 </span>  <span class="Constant">local-scope</span>
-<span id="L256" class="LineNr">256 </span>  assume-screen <span class="Constant">5/width</span>, <span class="Constant">5/height</span>
-<span id="L257" class="LineNr">257 </span>  s:text <span class="Special">&lt;-</span> new <span class="Constant">[abc</span>
-<span id="L258" class="LineNr">258 </span><span class="Constant">def]</span>
-<span id="L259" class="LineNr">259 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L51'>new-editor</a> s, <span class="Constant">0/left</span>, <span class="Constant">5/right</span>
-<span id="L260" class="LineNr">260 </span>  run [
-<span id="L261" class="LineNr">261 </span>    <a href='001-editor.mu.html#L122'>render</a> <a href='../081print.mu.html#L4'>screen</a>, e
-<span id="L262" class="LineNr">262 </span>  ]
-<span id="L263" class="LineNr">263 </span>  screen-should-contain [
-<span id="L264" class="LineNr">264 </span>   <span class="Constant"> .     .</span>
-<span id="L265" class="LineNr">265 </span>   <span class="Constant"> .abc  .</span>
-<span id="L266" class="LineNr">266 </span>   <span class="Constant"> .def  .</span>
-<span id="L267" class="LineNr">267 </span>   <span class="Constant"> .     .</span>
-<span id="L268" class="LineNr">268 </span>  ]
-<span id="L269" class="LineNr">269 </span>]
-<span id="L270" class="LineNr">270 </span>
-<span id="L271" class="LineNr">271 </span><span class="muScenario">scenario</span> editor-handles-offsets [
-<span id="L272" class="LineNr">272 </span>  <span class="Constant">local-scope</span>
-<span id="L273" class="LineNr">273 </span>  assume-screen <span class="Constant">5/width</span>, <span class="Constant">5/height</span>
-<span id="L274" class="LineNr">274 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L51'>new-editor</a> <span class="Constant">[abc]</span>, <span class="Constant">1/left</span>, <span class="Constant">5/right</span>
-<span id="L275" class="LineNr">275 </span>  run [
-<span id="L276" class="LineNr">276 </span>    <a href='001-editor.mu.html#L122'>render</a> <a href='../081print.mu.html#L4'>screen</a>, e
-<span id="L277" class="LineNr">277 </span>  ]
-<span id="L278" class="LineNr">278 </span>  screen-should-contain [
-<span id="L279" class="LineNr">279 </span>   <span class="Constant"> .     .</span>
-<span id="L280" class="LineNr">280 </span>   <span class="Constant"> . abc .</span>
-<span id="L281" class="LineNr">281 </span>   <span class="Constant"> .     .</span>
-<span id="L282" class="LineNr">282 </span>  ]
-<span id="L283" class="LineNr">283 </span>]
-<span id="L284" class="LineNr">284 </span>
-<span id="L285" class="LineNr">285 </span><span class="muScenario">scenario</span> editor-prints-multiple-lines-at-offset [
-<span id="L286" class="LineNr">286 </span>  <span class="Constant">local-scope</span>
-<span id="L287" class="LineNr">287 </span>  assume-screen <span class="Constant">5/width</span>, <span class="Constant">5/height</span>
-<span id="L288" class="LineNr">288 </span>  s:text <span class="Special">&lt;-</span> new <span class="Constant">[abc</span>
-<span id="L289" class="LineNr">289 </span><span class="Constant">def]</span>
-<span id="L290" class="LineNr">290 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L51'>new-editor</a> s, <span class="Constant">1/left</span>, <span class="Constant">5/right</span>
-<span id="L291" class="LineNr">291 </span>  run [
-<span id="L292" class="LineNr">292 </span>    <a href='001-editor.mu.html#L122'>render</a> <a href='../081print.mu.html#L4'>screen</a>, e
-<span id="L293" class="LineNr">293 </span>  ]
-<span id="L294" class="LineNr">294 </span>  screen-should-contain [
-<span id="L295" class="LineNr">295 </span>   <span class="Constant"> .     .</span>
-<span id="L296" class="LineNr">296 </span>   <span class="Constant"> . abc .</span>
-<span id="L297" class="LineNr">297 </span>   <span class="Constant"> . def .</span>
-<span id="L298" class="LineNr">298 </span>   <span class="Constant"> .     .</span>
-<span id="L299" class="LineNr">299 </span>  ]
-<span id="L300" class="LineNr">300 </span>]
-<span id="L301" class="LineNr">301 </span>
-<span id="L302" class="LineNr">302 </span><span class="muScenario">scenario</span> editor-wraps-long-lines [
-<span id="L303" class="LineNr">303 </span>  <span class="Constant">local-scope</span>
-<span id="L304" class="LineNr">304 </span>  assume-screen <span class="Constant">5/width</span>, <span class="Constant">5/height</span>
-<span id="L305" class="LineNr">305 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L51'>new-editor</a> <span class="Constant">[abc def]</span>, <span class="Constant">0/left</span>, <span class="Constant">5/right</span>
-<span id="L306" class="LineNr">306 </span>  run [
-<span id="L307" class="LineNr">307 </span>    <a href='001-editor.mu.html#L122'>render</a> <a href='../081print.mu.html#L4'>screen</a>, e
-<span id="L308" class="LineNr">308 </span>  ]
-<span id="L309" class="LineNr">309 </span>  screen-should-contain [
-<span id="L310" class="LineNr">310 </span>   <span class="Constant"> .     .</span>
-<span id="L311" class="LineNr">311 </span>   <span class="Constant"> .abc ↩.</span>
-<span id="L312" class="LineNr">312 </span>   <span class="Constant"> .def  .</span>
-<span id="L313" class="LineNr">313 </span>   <span class="Constant"> .     .</span>
-<span id="L314" class="LineNr">314 </span>  ]
-<span id="L315" class="LineNr">315 </span>  screen-should-contain-in-color <span class="Constant">245/grey</span> [
-<span id="L316" class="LineNr">316 </span>   <span class="Constant"> .     .</span>
-<span id="L317" class="LineNr">317 </span>   <span class="Constant"> .    ↩.</span>
-<span id="L318" class="LineNr">318 </span>   <span class="Constant"> .     .</span>
+<span id="L116" class="LineNr">116 </span>   <span class="Constant"> .     .</span>
+<span id="L117" class="LineNr">117 </span>  ]
+<span id="L118" class="LineNr">118 </span>]
+<span id="L119" class="LineNr">119 </span>
+<span id="L120" class="LineNr">120 </span><span class="Comment"># Assumes cursor should be at coordinates (cursor-row, cursor-column) and</span>
+<span id="L121" class="LineNr">121 </span><span class="Comment"># updates before-cursor to match. Might also move coordinates if they're</span>
+<span id="L122" class="LineNr">122 </span><span class="Comment"># outside text.</span>
+<span id="L123" class="LineNr">123 </span><span class="muRecipe">def</span> <a href='001-editor.mu.html#L123'>render</a> <a href='../081print.mu.html#L4'>screen</a>:&amp;:<a href='../081print.mu.html#L4'>screen</a>, editor:&amp;:editor<span class="muRecipe"> -&gt; </span>last-row:num, last-column:num, <a href='../081print.mu.html#L4'>screen</a>:&amp;:<a href='../081print.mu.html#L4'>screen</a>, editor:&amp;:editor [
+<span id="L124" class="LineNr">124 </span>  <span class="Constant">local-scope</span>
+<span id="L125" class="LineNr">125 </span>  <span class="Constant">load-ingredients</span>
+<span id="L126" class="LineNr">126 </span>  <span class="muControl">return-unless</span> editor, <span class="Constant">1/top</span>, <span class="Constant">0/left</span>
+<span id="L127" class="LineNr">127 </span>  left:num <span class="Special">&lt;-</span> get *editor, <span class="Constant">left:offset</span>
+<span id="L128" class="LineNr">128 </span>  <a href='../081print.mu.html#L594'>screen-height</a>:num <span class="Special">&lt;-</span> <a href='../081print.mu.html#L594'>screen-height</a> <a href='../081print.mu.html#L4'>screen</a>
+<span id="L129" class="LineNr">129 </span>  right:num <span class="Special">&lt;-</span> get *editor, <span class="Constant">right:offset</span>
+<span id="L130" class="LineNr">130 </span>  <span class="Comment"># traversing editor</span>
+<span id="L131" class="LineNr">131 </span>  curr:&amp;:duplex-list:char <span class="Special">&lt;-</span> get *editor, <span class="Constant">top-of-screen:offset</span>
+<span id="L132" class="LineNr">132 </span>  <a href='../065duplex_list.mu.html#L36'>prev</a>:&amp;:duplex-list:char <span class="Special">&lt;-</span> copy curr  <span class="Comment"># just in case curr becomes null and we can't compute prev</span>
+<span id="L133" class="LineNr">133 </span>  curr <span class="Special">&lt;-</span> <a href='../065duplex_list.mu.html#L29'>next</a> curr
+<span id="L134" class="LineNr">134 </span>  <span class="Comment"># traversing screen</span>
+<span id="L135" class="LineNr">135 </span><span class="Constant">  +render-loop-initialization</span>
+<span id="L136" class="LineNr">136 </span>  color:num <span class="Special">&lt;-</span> copy <span class="Constant">7/white</span>
+<span id="L137" class="LineNr">137 </span>  row:num <span class="Special">&lt;-</span> copy <span class="Constant">1/top</span>
+<span id="L138" class="LineNr">138 </span>  column:num <span class="Special">&lt;-</span> copy left
+<span id="L139" class="LineNr">139 </span>  cursor-row:num <span class="Special">&lt;-</span> get *editor, <span class="Constant">cursor-row:offset</span>
+<span id="L140" class="LineNr">140 </span>  cursor-column:num <span class="Special">&lt;-</span> get *editor, <span class="Constant">cursor-column:offset</span>
+<span id="L141" class="LineNr">141 </span>  before-cursor:&amp;:duplex-list:char <span class="Special">&lt;-</span> get *editor, <span class="Constant">before-cursor:offset</span>
+<span id="L142" class="LineNr">142 </span>  <a href='../081print.mu.html#L4'>screen</a> <span class="Special">&lt;-</span> <a href='../081print.mu.html#L442'>move-cursor</a> <a href='../081print.mu.html#L4'>screen</a>, row, column
+<span id="L143" class="LineNr">143 </span>  <span class="Delimiter">{</span>
+<span id="L144" class="LineNr">144 </span><span class="Constant">    +next-character</span>
+<span id="L145" class="LineNr">145 </span>    <span class="muControl">break-unless</span> curr
+<span id="L146" class="LineNr">146 </span>    off-screen?:bool <span class="Special">&lt;-</span> greater-or-equal row, <a href='../081print.mu.html#L594'>screen-height</a>
+<span id="L147" class="LineNr">147 </span>    <span class="muControl">break-if</span> off-screen?
+<span id="L148" class="LineNr">148 </span>    <span class="Comment"># update editor.before-cursor</span>
+<span id="L149" class="LineNr">149 </span>    <span class="Comment"># Doing so at the start of each iteration ensures it stays one step behind</span>
+<span id="L150" class="LineNr">150 </span>    <span class="Comment"># the current character.</span>
+<span id="L151" class="LineNr">151 </span>    <span class="Delimiter">{</span>
+<span id="L152" class="LineNr">152 </span>      at-cursor-row?:bool <span class="Special">&lt;-</span> equal row, cursor-row
+<span id="L153" class="LineNr">153 </span>      <span class="muControl">break-unless</span> at-cursor-row?
+<span id="L154" class="LineNr">154 </span>      at-cursor?:bool <span class="Special">&lt;-</span> equal column, cursor-column
+<span id="L155" class="LineNr">155 </span>      <span class="muControl">break-unless</span> at-cursor?
+<span id="L156" class="LineNr">156 </span>      before-cursor <span class="Special">&lt;-</span> copy <a href='../065duplex_list.mu.html#L36'>prev</a>
+<span id="L157" class="LineNr">157 </span>    <span class="Delimiter">}</span>
+<span id="L158" class="LineNr">158 </span>    c:char <span class="Special">&lt;-</span> get *curr, <span class="Constant">value:offset</span>
+<span id="L159" class="LineNr">159 </span><span class="Constant">    &lt;character-c-received&gt;</span>
+<span id="L160" class="LineNr">160 </span>    <span class="Delimiter">{</span>
+<span id="L161" class="LineNr">161 </span>      <span class="Comment"># newline? move to left rather than 0</span>
+<span id="L162" class="LineNr">162 </span>      newline?:bool <span class="Special">&lt;-</span> equal c, <span class="Constant">10/newline</span>
+<span id="L163" class="LineNr">163 </span>      <span class="muControl">break-unless</span> newline?
+<span id="L164" class="LineNr">164 </span>      <span class="Comment"># adjust cursor if necessary</span>
+<span id="L165" class="LineNr">165 </span>      <span class="Delimiter">{</span>
+<span id="L166" class="LineNr">166 </span>        at-cursor-row?:bool <span class="Special">&lt;-</span> equal row, cursor-row
+<span id="L167" class="LineNr">167 </span>        <span class="muControl">break-unless</span> at-cursor-row?
+<span id="L168" class="LineNr">168 </span>        left-of-cursor?:bool <span class="Special">&lt;-</span> lesser-than column, cursor-column
+<span id="L169" class="LineNr">169 </span>        <span class="muControl">break-unless</span> left-of-cursor?
+<span id="L170" class="LineNr">170 </span>        cursor-column <span class="Special">&lt;-</span> copy column
+<span id="L171" class="LineNr">171 </span>        before-cursor <span class="Special">&lt;-</span> <a href='../065duplex_list.mu.html#L36'>prev</a> curr
+<span id="L172" class="LineNr">172 </span>      <span class="Delimiter">}</span>
+<span id="L173" class="LineNr">173 </span>      <span class="Comment"># clear rest of line in this window</span>
+<span id="L174" class="LineNr">174 </span>      <a href='../081print.mu.html#L408'>clear-line-until</a> <a href='../081print.mu.html#L4'>screen</a>, right
+<span id="L175" class="LineNr">175 </span>      <span class="Comment"># skip to next line</span>
+<span id="L176" class="LineNr">176 </span>      row <span class="Special">&lt;-</span> add row,<span class="Constant"> 1</span>
+<span id="L177" class="LineNr">177 </span>      column <span class="Special">&lt;-</span> copy left
+<span id="L178" class="LineNr">178 </span>      <a href='../081print.mu.html#L4'>screen</a> <span class="Special">&lt;-</span> <a href='../081print.mu.html#L442'>move-cursor</a> <a href='../081print.mu.html#L4'>screen</a>, row, column
+<span id="L179" class="LineNr">179 </span>      curr <span class="Special">&lt;-</span> <a href='../065duplex_list.mu.html#L29'>next</a> curr
+<span id="L180" class="LineNr">180 </span>      <a href='../065duplex_list.mu.html#L36'>prev</a> <span class="Special">&lt;-</span> <a href='../065duplex_list.mu.html#L29'>next</a> <a href='../065duplex_list.mu.html#L36'>prev</a>
+<span id="L181" class="LineNr">181 </span>      <span class="muControl">loop</span> <span class="Constant">+next-character</span>
+<span id="L182" class="LineNr">182 </span>    <span class="Delimiter">}</span>
+<span id="L183" class="LineNr">183 </span>    <span class="Delimiter">{</span>
+<span id="L184" class="LineNr">184 </span>      <span class="Comment"># at right? wrap. even if there's only one more letter left; we need</span>
+<span id="L185" class="LineNr">185 </span>      <span class="Comment"># room for clicking on the cursor after it.</span>
+<span id="L186" class="LineNr">186 </span>      at-right?:bool <span class="Special">&lt;-</span> equal column, right
+<span id="L187" class="LineNr">187 </span>      <span class="muControl">break-unless</span> at-right?
+<span id="L188" class="LineNr">188 </span>      <span class="Comment"># print wrap icon</span>
+<span id="L189" class="LineNr">189 </span>      wrap-icon:char <span class="Special">&lt;-</span> copy <span class="Constant">8617/loop-back-to-left</span>
+<span id="L190" class="LineNr">190 </span>      print <a href='../081print.mu.html#L4'>screen</a>, wrap-icon, <span class="Constant">245/grey</span>
+<span id="L191" class="LineNr">191 </span>      column <span class="Special">&lt;-</span> copy left
+<span id="L192" class="LineNr">192 </span>      row <span class="Special">&lt;-</span> add row,<span class="Constant"> 1</span>
+<span id="L193" class="LineNr">193 </span>      <a href='../081print.mu.html#L4'>screen</a> <span class="Special">&lt;-</span> <a href='../081print.mu.html#L442'>move-cursor</a> <a href='../081print.mu.html#L4'>screen</a>, row, column
+<span id="L194" class="LineNr">194 </span>      <span class="Comment"># don't increment curr</span>
+<span id="L195" class="LineNr">195 </span>      <span class="muControl">loop</span> <span class="Constant">+next-character</span>
+<span id="L196" class="LineNr">196 </span>    <span class="Delimiter">}</span>
+<span id="L197" class="LineNr">197 </span>    print <a href='../081print.mu.html#L4'>screen</a>, c, color
+<span id="L198" class="LineNr">198 </span>    curr <span class="Special">&lt;-</span> <a href='../065duplex_list.mu.html#L29'>next</a> curr
+<span id="L199" class="LineNr">199 </span>    <a href='../065duplex_list.mu.html#L36'>prev</a> <span class="Special">&lt;-</span> <a href='../065duplex_list.mu.html#L29'>next</a> <a href='../065duplex_list.mu.html#L36'>prev</a>
+<span id="L200" class="LineNr">200 </span>    column <span class="Special">&lt;-</span> add column,<span class="Constant"> 1</span>
+<span id="L201" class="LineNr">201 </span>    <span class="muControl">loop</span>
+<span id="L202" class="LineNr">202 </span>  <span class="Delimiter">}</span>
+<span id="L203" class="LineNr">203 </span>  <span class="Comment"># save first character off-screen</span>
+<span id="L204" class="LineNr">204 </span>  *editor <span class="Special">&lt;-</span> put *editor, <span class="Constant">bottom-of-screen:offset</span>, curr
+<span id="L205" class="LineNr">205 </span>  <span class="Comment"># is cursor to the right of the last line? move to end</span>
+<span id="L206" class="LineNr">206 </span>  <span class="Delimiter">{</span>
+<span id="L207" class="LineNr">207 </span>    at-cursor-row?:bool <span class="Special">&lt;-</span> equal row, cursor-row
+<span id="L208" class="LineNr">208 </span>    cursor-outside-line?:bool <span class="Special">&lt;-</span> lesser-or-equal column, cursor-column
+<span id="L209" class="LineNr">209 </span>    before-cursor-on-same-line?:bool <span class="Special">&lt;-</span> and at-cursor-row?, cursor-outside-line?
+<span id="L210" class="LineNr">210 </span>    above-cursor-row?:bool <span class="Special">&lt;-</span> lesser-than row, cursor-row
+<span id="L211" class="LineNr">211 </span>    before-cursor?:bool <span class="Special">&lt;-</span> or before-cursor-on-same-line?, above-cursor-row?
+<span id="L212" class="LineNr">212 </span>    <span class="muControl">break-unless</span> before-cursor?
+<span id="L213" class="LineNr">213 </span>    cursor-row <span class="Special">&lt;-</span> copy row
+<span id="L214" class="LineNr">214 </span>    cursor-column <span class="Special">&lt;-</span> copy column
+<span id="L215" class="LineNr">215 </span>    before-cursor <span class="Special">&lt;-</span> copy <a href='../065duplex_list.mu.html#L36'>prev</a>
+<span id="L216" class="LineNr">216 </span>  <span class="Delimiter">}</span>
+<span id="L217" class="LineNr">217 </span>  *editor <span class="Special">&lt;-</span> put *editor, <span class="Constant">bottom:offset</span>, row
+<span id="L218" class="LineNr">218 </span>  *editor <span class="Special">&lt;-</span> put *editor, <span class="Constant">cursor-row:offset</span>, cursor-row
+<span id="L219" class="LineNr">219 </span>  *editor <span class="Special">&lt;-</span> put *editor, <span class="Constant">cursor-column:offset</span>, cursor-column
+<span id="L220" class="LineNr">220 </span>  *editor <span class="Special">&lt;-</span> put *editor, <span class="Constant">before-cursor:offset</span>, before-cursor
+<span id="L221" class="LineNr">221 </span>  <span class="muControl">return</span> row, column
+<span id="L222" class="LineNr">222 </span>]
+<span id="L223" class="LineNr">223 </span>
+<span id="L224" class="LineNr">224 </span><span class="muRecipe">def</span> <a href='001-editor.mu.html#L224'>clear-screen-from</a> <a href='../081print.mu.html#L4'>screen</a>:&amp;:<a href='../081print.mu.html#L4'>screen</a>, row:num, column:num, left:num, right:num<span class="muRecipe"> -&gt; </span><a href='../081print.mu.html#L4'>screen</a>:&amp;:<a href='../081print.mu.html#L4'>screen</a> [
+<span id="L225" class="LineNr">225 </span>  <span class="Constant">local-scope</span>
+<span id="L226" class="LineNr">226 </span>  <span class="Constant">load-ingredients</span>
+<span id="L227" class="LineNr">227 </span>  <span class="Comment"># if it's the real screen, use the optimized primitive</span>
+<span id="L228" class="LineNr">228 </span>  <span class="Delimiter">{</span>
+<span id="L229" class="LineNr">229 </span>    <span class="muControl">break-if</span> <a href='../081print.mu.html#L4'>screen</a>
+<span id="L230" class="LineNr">230 </span>    clear-display-from row, column, left, right
+<span id="L231" class="LineNr">231 </span>    <span class="muControl">return</span>
+<span id="L232" class="LineNr">232 </span>  <span class="Delimiter">}</span>
+<span id="L233" class="LineNr">233 </span>  <span class="Comment"># if not, go the slower route</span>
+<span id="L234" class="LineNr">234 </span>  <a href='../081print.mu.html#L4'>screen</a> <span class="Special">&lt;-</span> <a href='../081print.mu.html#L442'>move-cursor</a> <a href='../081print.mu.html#L4'>screen</a>, row, column
+<span id="L235" class="LineNr">235 </span>  <a href='../081print.mu.html#L408'>clear-line-until</a> <a href='../081print.mu.html#L4'>screen</a>, right
+<span id="L236" class="LineNr">236 </span>  <a href='001-editor.mu.html#L239'>clear-rest-of-screen</a> <a href='../081print.mu.html#L4'>screen</a>, row, left, right
+<span id="L237" class="LineNr">237 </span>]
+<span id="L238" class="LineNr">238 </span>
+<span id="L239" class="LineNr">239 </span><span class="muRecipe">def</span> <a href='001-editor.mu.html#L239'>clear-rest-of-screen</a> <a href='../081print.mu.html#L4'>screen</a>:&amp;:<a href='../081print.mu.html#L4'>screen</a>, row:num, left:num, right:num<span class="muRecipe"> -&gt; </span><a href='../081print.mu.html#L4'>screen</a>:&amp;:<a href='../081print.mu.html#L4'>screen</a> [
+<span id="L240" class="LineNr">240 </span>  <span class="Constant">local-scope</span>
+<span id="L241" class="LineNr">241 </span>  <span class="Constant">load-ingredients</span>
+<span id="L242" class="LineNr">242 </span>  row <span class="Special">&lt;-</span> add row,<span class="Constant"> 1</span>
+<span id="L243" class="LineNr">243 </span>  <a href='../081print.mu.html#L4'>screen</a> <span class="Special">&lt;-</span> <a href='../081print.mu.html#L442'>move-cursor</a> <a href='../081print.mu.html#L4'>screen</a>, row, left
+<span id="L244" class="LineNr">244 </span>  <a href='../081print.mu.html#L594'>screen-height</a>:num <span class="Special">&lt;-</span> <a href='../081print.mu.html#L594'>screen-height</a> <a href='../081print.mu.html#L4'>screen</a>
+<span id="L245" class="LineNr">245 </span>  <span class="Delimiter">{</span>
+<span id="L246" class="LineNr">246 </span>    at-bottom-of-screen?:bool <span class="Special">&lt;-</span> greater-or-equal row, <a href='../081print.mu.html#L594'>screen-height</a>
+<span id="L247" class="LineNr">247 </span>    <span class="muControl">break-if</span> at-bottom-of-screen?
+<span id="L248" class="LineNr">248 </span>    <a href='../081print.mu.html#L4'>screen</a> <span class="Special">&lt;-</span> <a href='../081print.mu.html#L442'>move-cursor</a> <a href='../081print.mu.html#L4'>screen</a>, row, left
+<span id="L249" class="LineNr">249 </span>    <a href='../081print.mu.html#L408'>clear-line-until</a> <a href='../081print.mu.html#L4'>screen</a>, right
+<span id="L250" class="LineNr">250 </span>    row <span class="Special">&lt;-</span> add row,<span class="Constant"> 1</span>
+<span id="L251" class="LineNr">251 </span>    <span class="muControl">loop</span>
+<span id="L252" class="LineNr">252 </span>  <span class="Delimiter">}</span>
+<span id="L253" class="LineNr">253 </span>]
+<span id="L254" class="LineNr">254 </span>
+<span id="L255" class="LineNr">255 </span><span class="muScenario">scenario</span> editor-prints-multiple-lines [
+<span id="L256" class="LineNr">256 </span>  <span class="Constant">local-scope</span>
+<span id="L257" class="LineNr">257 </span>  assume-screen <span class="Constant">5/width</span>, <span class="Constant">5/height</span>
+<span id="L258" class="LineNr">258 </span>  s:text <span class="Special">&lt;-</span> new <span class="Constant">[abc</span>
+<span id="L259" class="LineNr">259 </span><span class="Constant">def]</span>
+<span id="L260" class="LineNr">260 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L52'>new-editor</a> s, <span class="Constant">0/left</span>, <span class="Constant">5/right</span>
+<span id="L261" class="LineNr">261 </span>  run [
+<span id="L262" class="LineNr">262 </span>    <a href='001-editor.mu.html#L123'>render</a> <a href='../081print.mu.html#L4'>screen</a>, e
+<span id="L263" class="LineNr">263 </span>  ]
+<span id="L264" class="LineNr">264 </span>  screen-should-contain [
+<span id="L265" class="LineNr">265 </span>   <span class="Constant"> .     .</span>
+<span id="L266" class="LineNr">266 </span>   <span class="Constant"> .abc  .</span>
+<span id="L267" class="LineNr">267 </span>   <span class="Constant"> .def  .</span>
+<span id="L268" class="LineNr">268 </span>   <span class="Constant"> .     .</span>
+<span id="L269" class="LineNr">269 </span>  ]
+<span id="L270" class="LineNr">270 </span>]
+<span id="L271" class="LineNr">271 </span>
+<span id="L272" class="LineNr">272 </span><span class="muScenario">scenario</span> editor-handles-offsets [
+<span id="L273" class="LineNr">273 </span>  <span class="Constant">local-scope</span>
+<span id="L274" class="LineNr">274 </span>  assume-screen <span class="Constant">5/width</span>, <span class="Constant">5/height</span>
+<span id="L275" class="LineNr">275 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L52'>new-editor</a> <span class="Constant">[abc]</span>, <span class="Constant">1/left</span>, <span class="Constant">5/right</span>
+<span id="L276" class="LineNr">276 </span>  run [
+<span id="L277" class="LineNr">277 </span>    <a href='001-editor.mu.html#L123'>render</a> <a href='../081print.mu.html#L4'>screen</a>, e
+<span id="L278" class="LineNr">278 </span>  ]
+<span id="L279" class="LineNr">279 </span>  screen-should-contain [
+<span id="L280" class="LineNr">280 </span>   <span class="Constant"> .     .</span>
+<span id="L281" class="LineNr">281 </span>   <span class="Constant"> . abc .</span>
+<span id="L282" class="LineNr">282 </span>   <span class="Constant"> .     .</span>
+<span id="L283" class="LineNr">283 </span>  ]
+<span id="L284" class="LineNr">284 </span>]
+<span id="L285" class="LineNr">285 </span>
+<span id="L286" class="LineNr">286 </span><span class="muScenario">scenario</span> editor-prints-multiple-lines-at-offset [
+<span id="L287" class="LineNr">287 </span>  <span class="Constant">local-scope</span>
+<span id="L288" class="LineNr">288 </span>  assume-screen <span class="Constant">5/width</span>, <span class="Constant">5/height</span>
+<span id="L289" class="LineNr">289 </span>  s:text <span class="Special">&lt;-</span> new <span class="Constant">[abc</span>
+<span id="L290" class="LineNr">290 </span><span class="Constant">def]</span>
+<span id="L291" class="LineNr">291 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L52'>new-editor</a> s, <span class="Constant">1/left</span>, <span class="Constant">5/right</span>
+<span id="L292" class="LineNr">292 </span>  run [
+<span id="L293" class="LineNr">293 </span>    <a href='001-editor.mu.html#L123'>render</a> <a href='../081print.mu.html#L4'>screen</a>, e
+<span id="L294" class="LineNr">294 </span>  ]
+<span id="L295" class="LineNr">295 </span>  screen-should-contain [
+<span id="L296" class="LineNr">296 </span>   <span class="Constant"> .     .</span>
+<span id="L297" class="LineNr">297 </span>   <span class="Constant"> . abc .</span>
+<span id="L298" class="LineNr">298 </span>   <span class="Constant"> . def .</span>
+<span id="L299" class="LineNr">299 </span>   <span class="Constant"> .     .</span>
+<span id="L300" class="LineNr">300 </span>  ]
+<span id="L301" class="LineNr">301 </span>]
+<span id="L302" class="LineNr">302 </span>
+<span id="L303" class="LineNr">303 </span><span class="muScenario">scenario</span> editor-wraps-long-lines [
+<span id="L304" class="LineNr">304 </span>  <span class="Constant">local-scope</span>
+<span id="L305" class="LineNr">305 </span>  assume-screen <span class="Constant">5/width</span>, <span class="Constant">5/height</span>
+<span id="L306" class="LineNr">306 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L52'>new-editor</a> <span class="Constant">[abc def]</span>, <span class="Constant">0/left</span>, <span class="Constant">5/right</span>
+<span id="L307" class="LineNr">307 </span>  run [
+<span id="L308" class="LineNr">308 </span>    <a href='001-editor.mu.html#L123'>render</a> <a href='../081print.mu.html#L4'>screen</a>, e
+<span id="L309" class="LineNr">309 </span>  ]
+<span id="L310" class="LineNr">310 </span>  screen-should-contain [
+<span id="L311" class="LineNr">311 </span>   <span class="Constant"> .     .</span>
+<span id="L312" class="LineNr">312 </span>   <span class="Constant"> .abc ↩.</span>
+<span id="L313" class="LineNr">313 </span>   <span class="Constant"> .def  .</span>
+<span id="L314" class="LineNr">314 </span>   <span class="Constant"> .     .</span>
+<span id="L315" class="LineNr">315 </span>  ]
+<span id="L316" class="LineNr">316 </span>  screen-should-contain-in-color <span class="Constant">245/grey</span> [
+<span id="L317" class="LineNr">317 </span>   <span class="Constant"> .     .</span>
+<span id="L318" class="LineNr">318 </span>   <span class="Constant"> .    ↩.</span>
 <span id="L319" class="LineNr">319 </span>   <span class="Constant"> .     .</span>
-<span id="L320" class="LineNr">320 </span>  ]
-<span id="L321" class="LineNr">321 </span>]
-<span id="L322" class="LineNr">322 </span>
-<span id="L323" class="LineNr">323 </span><span class="muScenario">scenario</span> editor-wraps-barely-long-lines [
-<span id="L324" class="LineNr">324 </span>  <span class="Constant">local-scope</span>
-<span id="L325" class="LineNr">325 </span>  assume-screen <span class="Constant">5/width</span>, <span class="Constant">5/height</span>
-<span id="L326" class="LineNr">326 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L51'>new-editor</a> <span class="Constant">[abcde]</span>, <span class="Constant">0/left</span>, <span class="Constant">5/right</span>
-<span id="L327" class="LineNr">327 </span>  run [
-<span id="L328" class="LineNr">328 </span>    <a href='001-editor.mu.html#L122'>render</a> <a href='../081print.mu.html#L4'>screen</a>, e
-<span id="L329" class="LineNr">329 </span>  ]
-<span id="L330" class="LineNr">330 </span>  <span class="Comment"># still wrap, even though the line would fit. We need room to click on the</span>
-<span id="L331" class="LineNr">331 </span>  <span class="Comment"># end of the line</span>
-<span id="L332" class="LineNr">332 </span>  screen-should-contain [
-<span id="L333" class="LineNr">333 </span>   <span class="Constant"> .     .</span>
-<span id="L334" class="LineNr">334 </span><span class="Constant">    .abcd↩.</span>
-<span id="L335" class="LineNr">335 </span>   <span class="Constant"> .e    .</span>
-<span id="L336" class="LineNr">336 </span>   <span class="Constant"> .     .</span>
-<span id="L337" class="LineNr">337 </span>  ]
-<span id="L338" class="LineNr">338 </span>  screen-should-contain-in-color <span class="Constant">245/grey</span> [
-<span id="L339" class="LineNr">339 </span>   <span class="Constant"> .     .</span>
-<span id="L340" class="LineNr">340 </span>   <span class="Constant"> .    ↩.</span>
-<span id="L341" class="LineNr">341 </span>   <span class="Constant"> .     .</span>
+<span id="L320" class="LineNr">320 </span>   <span class="Constant"> .     .</span>
+<span id="L321" class="LineNr">321 </span>  ]
+<span id="L322" class="LineNr">322 </span>]
+<span id="L323" class="LineNr">323 </span>
+<span id="L324" class="LineNr">324 </span><span class="muScenario">scenario</span> editor-wraps-barely-long-lines [
+<span id="L325" class="LineNr">325 </span>  <span class="Constant">local-scope</span>
+<span id="L326" class="LineNr">326 </span>  assume-screen <span class="Constant">5/width</span>, <span class="Constant">5/height</span>
+<span id="L327" class="LineNr">327 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L52'>new-editor</a> <span class="Constant">[abcde]</span>, <span class="Constant">0/left</span>, <span class="Constant">5/right</span>
+<span id="L328" class="LineNr">328 </span>  run [
+<span id="L329" class="LineNr">329 </span>    <a href='001-editor.mu.html#L123'>render</a> <a href='../081print.mu.html#L4'>screen</a>, e
+<span id="L330" class="LineNr">330 </span>  ]
+<span id="L331" class="LineNr">331 </span>  <span class="Comment"># still wrap, even though the line would fit. We need room to click on the</span>
+<span id="L332" class="LineNr">332 </span>  <span class="Comment"># end of the line</span>
+<span id="L333" class="LineNr">333 </span>  screen-should-contain [
+<span id="L334" class="LineNr">334 </span>   <span class="Constant"> .     .</span>
+<span id="L335" class="LineNr">335 </span><span class="Constant">    .abcd↩.</span>
+<span id="L336" class="LineNr">336 </span>   <span class="Constant"> .e    .</span>
+<span id="L337" class="LineNr">337 </span>   <span class="Constant"> .     .</span>
+<span id="L338" class="LineNr">338 </span>  ]
+<span id="L339" class="LineNr">339 </span>  screen-should-contain-in-color <span class="Constant">245/grey</span> [
+<span id="L340" class="LineNr">340 </span>   <span class="Constant"> .     .</span>
+<span id="L341" class="LineNr">341 </span>   <span class="Constant"> .    ↩.</span>
 <span id="L342" class="LineNr">342 </span>   <span class="Constant"> .     .</span>
-<span id="L343" class="LineNr">343 </span>  ]
-<span id="L344" class="LineNr">344 </span>]
-<span id="L345" class="LineNr">345 </span>
-<span id="L346" class="LineNr">346 </span><span class="muScenario">scenario</span> editor-with-empty-text [
-<span id="L347" class="LineNr">347 </span>  <span class="Constant">local-scope</span>
-<span id="L348" class="LineNr">348 </span>  assume-screen <span class="Constant">5/width</span>, <span class="Constant">5/height</span>
-<span id="L349" class="LineNr">349 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L51'>new-editor</a> <span class="Constant">[]</span>, <span class="Constant">0/left</span>, <span class="Constant">5/right</span>
-<span id="L350" class="LineNr">350 </span>  run [
-<span id="L351" class="LineNr">351 </span>    <a href='001-editor.mu.html#L122'>render</a> <a href='../081print.mu.html#L4'>screen</a>, e
-<span id="L352" class="LineNr">352 </span>    3:num/<span class="Special">raw</span> <span class="Special">&lt;-</span> get *e, <span class="Constant">cursor-row:offset</span>
-<span id="L353" class="LineNr">353 </span>    4:num/<span class="Special">raw</span> <span class="Special">&lt;-</span> get *e, <span class="Constant">cursor-column:offset</span>
-<span id="L354" class="LineNr">354 </span>  ]
-<span id="L355" class="LineNr">355 </span>  screen-should-contain [
-<span id="L356" class="LineNr">356 </span>   <span class="Constant"> .     .</span>
+<span id="L343" class="LineNr">343 </span>   <span class="Constant"> .     .</span>
+<span id="L344" class="LineNr">344 </span>  ]
+<span id="L345" class="LineNr">345 </span>]
+<span id="L346" class="LineNr">346 </span>
+<span id="L347" class="LineNr">347 </span><span class="muScenario">scenario</span> editor-with-empty-text [
+<span id="L348" class="LineNr">348 </span>  <span class="Constant">local-scope</span>
+<span id="L349" class="LineNr">349 </span>  assume-screen <span class="Constant">5/width</span>, <span class="Constant">5/height</span>
+<span id="L350" class="LineNr">350 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L52'>new-editor</a> <span class="Constant">[]</span>, <span class="Constant">0/left</span>, <span class="Constant">5/right</span>
+<span id="L351" class="LineNr">351 </span>  run [
+<span id="L352" class="LineNr">352 </span>    <a href='001-editor.mu.html#L123'>render</a> <a href='../081print.mu.html#L4'>screen</a>, e
+<span id="L353" class="LineNr">353 </span>    3:num/<span class="Special">raw</span> <span class="Special">&lt;-</span> get *e, <span class="Constant">cursor-row:offset</span>
+<span id="L354" class="LineNr">354 </span>    4:num/<span class="Special">raw</span> <span class="Special">&lt;-</span> get *e, <span class="Constant">cursor-column:offset</span>
+<span id="L355" class="LineNr">355 </span>  ]
+<span id="L356" class="LineNr">356 </span>  screen-should-contain [
 <span id="L357" class="LineNr">357 </span>   <span class="Constant"> .     .</span>
 <span id="L358" class="LineNr">358 </span>   <span class="Constant"> .     .</span>
-<span id="L359" class="LineNr">359 </span>  ]
-<span id="L360" class="LineNr">360 </span>  memory-should-contain [
-<span id="L361" class="LineNr">361 </span>   <span class="Constant"> 3</span> <span class="Special">&lt;-</span><span class="Constant"> 1</span>  <span class="Comment"># cursor row</span>
-<span id="L362" class="LineNr">362 </span>   <span class="Constant"> 4</span> <span class="Special">&lt;-</span><span class="Constant"> 0</span>  <span class="Comment"># cursor column</span>
-<span id="L363" class="LineNr">363 </span>  ]
-<span id="L364" class="LineNr">364 </span>]
-<span id="L365" class="LineNr">365 </span>
-<span id="L366" class="LineNr">366 </span><span class="Comment"># just a little color for Mu code</span>
-<span id="L367" class="LineNr">367 </span>
-<span id="L368" class="LineNr">368 </span><span class="muScenario">scenario</span> render-colors-comments [
-<span id="L369" class="LineNr">369 </span>  <span class="Constant">local-scope</span>
-<span id="L370" class="LineNr">370 </span>  assume-screen <span class="Constant">5/width</span>, <span class="Constant">5/height</span>
-<span id="L371" class="LineNr">371 </span>  s:text <span class="Special">&lt;-</span> new <span class="Constant">[abc</span>
-<span id="L372" class="LineNr">372 </span><span class="Constant"># de</span>
-<span id="L373" class="LineNr">373 </span><span class="Constant">f]</span>
-<span id="L374" class="LineNr">374 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L51'>new-editor</a> s, <span class="Constant">0/left</span>, <span class="Constant">5/right</span>
-<span id="L375" class="LineNr">375 </span>  run [
-<span id="L376" class="LineNr">376 </span>    <a href='001-editor.mu.html#L122'>render</a> <a href='../081print.mu.html#L4'>screen</a>, e
-<span id="L377" class="LineNr">377 </span>  ]
-<span id="L378" class="LineNr">378 </span>  screen-should-contain [
-<span id="L379" class="LineNr">379 </span>   <span class="Constant"> .     .</span>
-<span id="L380" class="LineNr">380 </span>   <span class="Constant"> .abc  .</span>
-<span id="L381" class="LineNr">381 </span>   <span class="Constant"> .# de .</span>
-<span id="L382" class="LineNr">382 </span>   <span class="Constant"> .f    .</span>
-<span id="L383" class="LineNr">383 </span>   <span class="Constant"> .     .</span>
-<span id="L384" class="LineNr">384 </span>  ]
-<span id="L385" class="LineNr">385 </span>  screen-should-contain-in-color <span class="Constant">12/lightblue</span>, [
-<span id="L386" class="LineNr">386 </span>   <span class="Constant"> .     .</span>
+<span id="L359" class="LineNr">359 </span>   <span class="Constant"> .     .</span>
+<span id="L360" class="LineNr">360 </span>  ]
+<span id="L361" class="LineNr">361 </span>  memory-should-contain [
+<span id="L362" class="LineNr">362 </span>   <span class="Constant"> 3</span> <span class="Special">&lt;-</span><span class="Constant"> 1</span>  <span class="Comment"># cursor row</span>
+<span id="L363" class="LineNr">363 </span>   <span class="Constant"> 4</span> <span class="Special">&lt;-</span><span class="Constant"> 0</span>  <span class="Comment"># cursor column</span>
+<span id="L364" class="LineNr">364 </span>  ]
+<span id="L365" class="LineNr">365 </span>]
+<span id="L366" class="LineNr">366 </span>
+<span id="L367" class="LineNr">367 </span><span class="Comment"># just a little color for Mu code</span>
+<span id="L368" class="LineNr">368 </span>
+<span id="L369" class="LineNr">369 </span><span class="muScenario">scenario</span> render-colors-comments [
+<span id="L370" class="LineNr">370 </span>  <span class="Constant">local-scope</span>
+<span id="L371" class="LineNr">371 </span>  assume-screen <span class="Constant">5/width</span>, <span class="Constant">5/height</span>
+<span id="L372" class="LineNr">372 </span>  s:text <span class="Special">&lt;-</span> new <span class="Constant">[abc</span>
+<span id="L373" class="LineNr">373 </span><span class="Constant"># de</span>
+<span id="L374" class="LineNr">374 </span><span class="Constant">f]</span>
+<span id="L375" class="LineNr">375 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L52'>new-editor</a> s, <span class="Constant">0/left</span>, <span class="Constant">5/right</span>
+<span id="L376" class="LineNr">376 </span>  run [
+<span id="L377" class="LineNr">377 </span>    <a href='001-editor.mu.html#L123'>render</a> <a href='../081print.mu.html#L4'>screen</a>, e
+<span id="L378" class="LineNr">378 </span>  ]
+<span id="L379" class="LineNr">379 </span>  screen-should-contain [
+<span id="L380" class="LineNr">380 </span>   <span class="Constant"> .     .</span>
+<span id="L381" class="LineNr">381 </span>   <span class="Constant"> .abc  .</span>
+<span id="L382" class="LineNr">382 </span>   <span class="Constant"> .# de .</span>
+<span id="L383" class="LineNr">383 </span>   <span class="Constant"> .f    .</span>
+<span id="L384" class="LineNr">384 </span>   <span class="Constant"> .     .</span>
+<span id="L385" class="LineNr">385 </span>  ]
+<span id="L386" class="LineNr">386 </span>  screen-should-contain-in-color <span class="Constant">12/lightblue</span>, [
 <span id="L387" class="LineNr">387 </span>   <span class="Constant"> .     .</span>
-<span id="L388" class="LineNr">388 </span>   <span class="Constant"> .# de .</span>
-<span id="L389" class="LineNr">389 </span>   <span class="Constant"> .     .</span>
+<span id="L388" class="LineNr">388 </span>   <span class="Constant"> .     .</span>
+<span id="L389" class="LineNr">389 </span>   <span class="Constant"> .# de .</span>
 <span id="L390" class="LineNr">390 </span>   <span class="Constant"> .     .</span>
-<span id="L391" class="LineNr">391 </span>  ]
-<span id="L392" class="LineNr">392 </span>  screen-should-contain-in-color <span class="Constant">7/white</span>, [
-<span id="L393" class="LineNr">393 </span>   <span class="Constant"> .     .</span>
-<span id="L394" class="LineNr">394 </span>   <span class="Constant"> .abc  .</span>
-<span id="L395" class="LineNr">395 </span>   <span class="Constant"> .     .</span>
-<span id="L396" class="LineNr">396 </span>   <span class="Constant"> .f    .</span>
-<span id="L397" class="LineNr">397 </span>   <span class="Constant"> .     .</span>
-<span id="L398" class="LineNr">398 </span>  ]
-<span id="L399" class="LineNr">399 </span>]
-<span id="L400" class="LineNr">400 </span>
-<span id="L401" class="LineNr">401 </span><span class="muRecipe">after</span> <span class="Constant">&lt;character-c-received&gt;</span> [
-<span id="L402" class="LineNr">402 </span>  color <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L406'>get-color</a> color, c
-<span id="L403" class="LineNr">403 </span>]
-<span id="L404" class="LineNr">404 </span>
-<span id="L405" class="LineNr">405 </span><span class="Comment"># so far the previous color is all the information we need; that may change</span>
-<span id="L406" class="LineNr">406 </span><span class="muRecipe">def</span> <a href='001-editor.mu.html#L406'>get-color</a> color:num, c:char<span class="muRecipe"> -&gt; </span>color:num [
-<span id="L407" class="LineNr">407 </span>  <span class="Constant">local-scope</span>
-<span id="L408" class="LineNr">408 </span>  <span class="Constant">load-ingredients</span>
-<span id="L409" class="LineNr">409 </span>  color-is-white?:bool <span class="Special">&lt;-</span> equal color, <span class="Constant">7/white</span>
-<span id="L410" class="LineNr">410 </span>  <span class="Comment"># if color is white and next character is '#', switch color to blue</span>
-<span id="L411" class="LineNr">411 </span>  <span class="Delimiter">{</span>
-<span id="L412" class="LineNr">412 </span>    <span class="muControl">break-unless</span> color-is-white?
-<span id="L413" class="LineNr">413 </span>    starting-comment?:bool <span class="Special">&lt;-</span> equal c, <span class="Constant">35/#</span>
-<span id="L414" class="LineNr">414 </span>    <span class="muControl">break-unless</span> starting-comment?
-<span id="L415" class="LineNr">415 </span>    trace<span class="Constant"> 90</span>, <span class="Constant">[app]</span>, <span class="Constant">[switch color back to blue]</span>
-<span id="L416" class="LineNr">416 </span>    color <span class="Special">&lt;-</span> copy <span class="Constant">12/lightblue</span>
-<span id="L417" class="LineNr">417 </span>    <span class="muControl">jump</span> <span class="Constant">+exit</span>
-<span id="L418" class="LineNr">418 </span>  <span class="Delimiter">}</span>
-<span id="L419" class="LineNr">419 </span>  <span class="Comment"># if color is blue and next character is newline, switch color to white</span>
-<span id="L420" class="LineNr">420 </span>  <span class="Delimiter">{</span>
-<span id="L421" class="LineNr">421 </span>    color-is-blue?:bool <span class="Special">&lt;-</span> equal color, <span class="Constant">12/lightblue</span>
-<span id="L422" class="LineNr">422 </span>    <span class="muControl">break-unless</span> color-is-blue?
-<span id="L423" class="LineNr">423 </span>    ending-comment?:bool <span class="Special">&lt;-</span> equal c, <span class="Constant">10/newline</span>
-<span id="L424" class="LineNr">424 </span>    <span class="muControl">break-unless</span> ending-comment?
-<span id="L425" class="LineNr">425 </span>    trace<span class="Constant"> 90</span>, <span class="Constant">[app]</span>, <span class="Constant">[switch color back to white]</span>
-<span id="L426" class="LineNr">426 </span>    color <span class="Special">&lt;-</span> copy <span class="Constant">7/white</span>
-<span id="L427" class="LineNr">427 </span>    <span class="muControl">jump</span> <span class="Constant">+exit</span>
-<span id="L428" class="LineNr">428 </span>  <span class="Delimiter">}</span>
-<span id="L429" class="LineNr">429 </span>  <span class="Comment"># if color is white (no comments) and next character is '&lt;', switch color to red</span>
-<span id="L430" class="LineNr">430 </span>  <span class="Delimiter">{</span>
-<span id="L431" class="LineNr">431 </span>    <span class="muControl">break-unless</span> color-is-white?
-<span id="L432" class="LineNr">432 </span>    starting-assignment?:bool <span class="Special">&lt;-</span> equal c, <span class="Constant">60/&lt;</span>
-<span id="L433" class="LineNr">433 </span>    <span class="muControl">break-unless</span> starting-assignment?
-<span id="L434" class="LineNr">434 </span>    color <span class="Special">&lt;-</span> copy <span class="Constant">1/red</span>
-<span id="L435" class="LineNr">435 </span>    <span class="muControl">jump</span> <span class="Constant">+exit</span>
-<span id="L436" class="LineNr">436 </span>  <span class="Delimiter">}</span>
-<span id="L437" class="LineNr">437 </span>  <span class="Comment"># if color is red and next character is space, switch color to white</span>
-<span id="L438" class="LineNr">438 </span>  <span class="Delimiter">{</span>
-<span id="L439" class="LineNr">439 </span>    color-is-red?:bool <span class="Special">&lt;-</span> equal color, <span class="Constant">1/red</span>
-<span id="L440" class="LineNr">440 </span>    <span class="muControl">break-unless</span> color-is-red?
-<span id="L441" class="LineNr">441 </span>    ending-assignment?:bool <span class="Special">&lt;-</span> equal c, <span class="Constant">32/space</span>
-<span id="L442" class="LineNr">442 </span>    <span class="muControl">break-unless</span> ending-assignment?
-<span id="L443" class="LineNr">443 </span>    color <span class="Special">&lt;-</span> copy <span class="Constant">7/white</span>
-<span id="L444" class="LineNr">444 </span>    <span class="muControl">jump</span> <span class="Constant">+exit</span>
-<span id="L445" class="LineNr">445 </span>  <span class="Delimiter">}</span>
-<span id="L446" class="LineNr">446 </span>  <span class="Comment"># otherwise no change</span>
-<span id="L447" class="LineNr">447 </span><span class="Constant">  +exit</span>
-<span id="L448" class="LineNr">448 </span>  <span class="muControl">return</span> color
-<span id="L449" class="LineNr">449 </span>]
-<span id="L450" class="LineNr">450 </span>
-<span id="L451" class="LineNr">451 </span><span class="muScenario">scenario</span> render-colors-assignment [
-<span id="L452" class="LineNr">452 </span>  <span class="Constant">local-scope</span>
-<span id="L453" class="LineNr">453 </span>  assume-screen <span class="Constant">8/width</span>, <span class="Constant">5/height</span>
-<span id="L454" class="LineNr">454 </span>  s:text <span class="Special">&lt;-</span> new <span class="Constant">[abc</span>
-<span id="L455" class="LineNr">455 </span><span class="Constant">d &lt;- e</span>
-<span id="L456" class="LineNr">456 </span><span class="Constant">f]</span>
-<span id="L457" class="LineNr">457 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L51'>new-editor</a> s, <span class="Constant">0/left</span>, <span class="Constant">8/right</span>
-<span id="L458" class="LineNr">458 </span>  run [
-<span id="L459" class="LineNr">459 </span>    <a href='001-editor.mu.html#L122'>render</a> <a href='../081print.mu.html#L4'>screen</a>, e
-<span id="L460" class="LineNr">460 </span>  ]
-<span id="L461" class="LineNr">461 </span>  screen-should-contain [
-<span id="L462" class="LineNr">462 </span>   <span class="Constant"> .        .</span>
-<span id="L463" class="LineNr">463 </span>   <span class="Constant"> .abc     .</span>
-<span id="L464" class="LineNr">464 </span>   <span class="Constant"> .d &lt;- e  .</span>
-<span id="L465" class="LineNr">465 </span>   <span class="Constant"> .f       .</span>
-<span id="L466" class="LineNr">466 </span>   <span class="Constant"> .        .</span>
-<span id="L467" class="LineNr">467 </span>  ]
-<span id="L468" class="LineNr">468 </span>  screen-should-contain-in-color <span class="Constant">1/red</span>, [
-<span id="L469" class="LineNr">469 </span>   <span class="Constant"> .        .</span>
+<span id="L391" class="LineNr">391 </span>   <span class="Constant"> .     .</span>
+<span id="L392" class="LineNr">392 </span>  ]
+<span id="L393" class="LineNr">393 </span>  screen-should-contain-in-color <span class="Constant">7/white</span>, [
+<span id="L394" class="LineNr">394 </span>   <span class="Constant"> .     .</span>
+<span id="L395" class="LineNr">395 </span>   <span class="Constant"> .abc  .</span>
+<span id="L396" class="LineNr">396 </span>   <span class="Constant"> .     .</span>
+<span id="L397" class="LineNr">397 </span>   <span class="Constant"> .f    .</span>
+<span id="L398" class="LineNr">398 </span>   <span class="Constant"> .     .</span>
+<span id="L399" class="LineNr">399 </span>  ]
+<span id="L400" class="LineNr">400 </span>]
+<span id="L401" class="LineNr">401 </span>
+<span id="L402" class="LineNr">402 </span><span class="muRecipe">after</span> <span class="Constant">&lt;character-c-received&gt;</span> [
+<span id="L403" class="LineNr">403 </span>  color <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L407'>get-color</a> color, c
+<span id="L404" class="LineNr">404 </span>]
+<span id="L405" class="LineNr">405 </span>
+<span id="L406" class="LineNr">406 </span><span class="Comment"># so far the previous color is all the information we need; that may change</span>
+<span id="L407" class="LineNr">407 </span><span class="muRecipe">def</span> <a href='001-editor.mu.html#L407'>get-color</a> color:num, c:char<span class="muRecipe"> -&gt; </span>color:num [
+<span id="L408" class="LineNr">408 </span>  <span class="Constant">local-scope</span>
+<span id="L409" class="LineNr">409 </span>  <span class="Constant">load-ingredients</span>
+<span id="L410" class="LineNr">410 </span>  color-is-white?:bool <span class="Special">&lt;-</span> equal color, <span class="Constant">7/white</span>
+<span id="L411" class="LineNr">411 </span>  <span class="Comment"># if color is white and next character is '#', switch color to blue</span>
+<span id="L412" class="LineNr">412 </span>  <span class="Delimiter">{</span>
+<span id="L413" class="LineNr">413 </span>    <span class="muControl">break-unless</span> color-is-white?
+<span id="L414" class="LineNr">414 </span>    starting-comment?:bool <span class="Special">&lt;-</span> equal c, <span class="Constant">35/#</span>
+<span id="L415" class="LineNr">415 </span>    <span class="muControl">break-unless</span> starting-comment?
+<span id="L416" class="LineNr">416 </span>    trace<span class="Constant"> 90</span>, <span class="Constant">[app]</span>, <span class="Constant">[switch color back to blue]</span>
+<span id="L417" class="LineNr">417 </span>    color <span class="Special">&lt;-</span> copy <span class="Constant">12/lightblue</span>
+<span id="L418" class="LineNr">418 </span>    <span class="muControl">jump</span> <span class="Constant">+exit</span>
+<span id="L419" class="LineNr">419 </span>  <span class="Delimiter">}</span>
+<span id="L420" class="LineNr">420 </span>  <span class="Comment"># if color is blue and next character is newline, switch color to white</span>
+<span id="L421" class="LineNr">421 </span>  <span class="Delimiter">{</span>
+<span id="L422" class="LineNr">422 </span>    color-is-blue?:bool <span class="Special">&lt;-</span> equal color, <span class="Constant">12/lightblue</span>
+<span id="L423" class="LineNr">423 </span>    <span class="muControl">break-unless</span> color-is-blue?
+<span id="L424" class="LineNr">424 </span>    ending-comment?:bool <span class="Special">&lt;-</span> equal c, <span class="Constant">10/newline</span>
+<span id="L425" class="LineNr">425 </span>    <span class="muControl">break-unless</span> ending-comment?
+<span id="L426" class="LineNr">426 </span>    trace<span class="Constant"> 90</span>, <span class="Constant">[app]</span>, <span class="Constant">[switch color back to white]</span>
+<span id="L427" class="LineNr">427 </span>    color <span class="Special">&lt;-</span> copy <span class="Constant">7/white</span>
+<span id="L428" class="LineNr">428 </span>    <span class="muControl">jump</span> <span class="Constant">+exit</span>
+<span id="L429" class="LineNr">429 </span>  <span class="Delimiter">}</span>
+<span id="L430" class="LineNr">430 </span>  <span class="Comment"># if color is white (no comments) and next character is '&lt;', switch color to red</span>
+<span id="L431" class="LineNr">431 </span>  <span class="Delimiter">{</span>
+<span id="L432" class="LineNr">432 </span>    <span class="muControl">break-unless</span> color-is-white?
+<span id="L433" class="LineNr">433 </span>    starting-assignment?:bool <span class="Special">&lt;-</span> equal c, <span class="Constant">60/&lt;</span>
+<span id="L434" class="LineNr">434 </span>    <span class="muControl">break-unless</span> starting-assignment?
+<span id="L435" class="LineNr">435 </span>    color <span class="Special">&lt;-</span> copy <span class="Constant">1/red</span>
+<span id="L436" class="LineNr">436 </span>    <span class="muControl">jump</span> <span class="Constant">+exit</span>
+<span id="L437" class="LineNr">437 </span>  <span class="Delimiter">}</span>
+<span id="L438" class="LineNr">438 </span>  <span class="Comment"># if color is red and next character is space, switch color to white</span>
+<span id="L439" class="LineNr">439 </span>  <span class="Delimiter">{</span>
+<span id="L440" class="LineNr">440 </span>    color-is-red?:bool <span class="Special">&lt;-</span> equal color, <span class="Constant">1/red</span>
+<span id="L441" class="LineNr">441 </span>    <span class="muControl">break-unless</span> color-is-red?
+<span id="L442" class="LineNr">442 </span>    ending-assignment?:bool <span class="Special">&lt;-</span> equal c, <span class="Constant">32/space</span>
+<span id="L443" class="LineNr">443 </span>    <span class="muControl">break-unless</span> ending-assignment?
+<span id="L444" class="LineNr">444 </span>    color <span class="Special">&lt;-</span> copy <span class="Constant">7/white</span>
+<span id="L445" class="LineNr">445 </span>    <span class="muControl">jump</span> <span class="Constant">+exit</span>
+<span id="L446" class="LineNr">446 </span>  <span class="Delimiter">}</span>
+<span id="L447" class="LineNr">447 </span>  <span class="Comment"># otherwise no change</span>
+<span id="L448" class="LineNr">448 </span><span class="Constant">  +exit</span>
+<span id="L449" class="LineNr">449 </span>  <span class="muControl">return</span> color
+<span id="L450" class="LineNr">450 </span>]
+<span id="L451" class="LineNr">451 </span>
+<span id="L452" class="LineNr">452 </span><span class="muScenario">scenario</span> render-colors-assignment [
+<span id="L453" class="LineNr">453 </span>  <span class="Constant">local-scope</span>
+<span id="L454" class="LineNr">454 </span>  assume-screen <span class="Constant">8/width</span>, <span class="Constant">5/height</span>
+<span id="L455" class="LineNr">455 </span>  s:text <span class="Special">&lt;-</span> new <span class="Constant">[abc</span>
+<span id="L456" class="LineNr">456 </span><span class="Constant">d &lt;- e</span>
+<span id="L457" class="LineNr">457 </span><span class="Constant">f]</span>
+<span id="L458" class="LineNr">458 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L52'>new-editor</a> s, <span class="Constant">0/left</span>, <span class="Constant">8/right</span>
+<span id="L459" class="LineNr">459 </span>  run [
+<span id="L460" class="LineNr">460 </span>    <a href='001-editor.mu.html#L123'>render</a> <a href='../081print.mu.html#L4'>screen</a>, e
+<span id="L461" class="LineNr">461 </span>  ]
+<span id="L462" class="LineNr">462 </span>  screen-should-contain [
+<span id="L463" class="LineNr">463 </span>   <span class="Constant"> .        .</span>
+<span id="L464" class="LineNr">464 </span>   <span class="Constant"> .abc     .</span>
+<span id="L465" class="LineNr">465 </span>   <span class="Constant"> .d &lt;- e  .</span>
+<span id="L466" class="LineNr">466 </span>   <span class="Constant"> .f       .</span>
+<span id="L467" class="LineNr">467 </span>   <span class="Constant"> .        .</span>
+<span id="L468" class="LineNr">468 </span>  ]
+<span id="L469" class="LineNr">469 </span>  screen-should-contain-in-color <span class="Constant">1/red</span>, [
 <span id="L470" class="LineNr">470 </span>   <span class="Constant"> .        .</span>
-<span id="L471" class="LineNr">471 </span>   <span class="Constant"> .  &lt;-    .</span>
-<span id="L472" class="LineNr">472 </span>   <span class="Constant"> .        .</span>
+<span id="L471" class="LineNr">471 </span>   <span class="Constant"> .        .</span>
+<span id="L472" class="LineNr">472 </span>   <span class="Constant"> .  &lt;-    .</span>
 <span id="L473" class="LineNr">473 </span>   <span class="Constant"> .        .</span>
-<span id="L474" class="LineNr">474 </span>  ]
-<span id="L475" class="LineNr">475 </span>]
+<span id="L474" class="LineNr">474 </span>   <span class="Constant"> .        .</span>
+<span id="L475" class="LineNr">475 </span>  ]
+<span id="L476" class="LineNr">476 </span>]
 </pre>
 </body>
 </html>
diff --git a/html/edit/002-typing.mu.html b/html/edit/002-typing.mu.html
index d3f59451..71244ddb 100644
--- a/html/edit/002-typing.mu.html
+++ b/html/edit/002-typing.mu.html
@@ -67,7 +67,7 @@ if ('onhashchange' in window) {
 <span id="L6" class="LineNr">   6 </span>  <span class="Constant">local-scope</span>
 <span id="L7" class="LineNr">   7 </span>  <span class="Constant">load-ingredients</span>
 <span id="L8" class="LineNr">   8 </span>  open-console
-<span id="L9" class="LineNr">   9 </span>  editor:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L51'>new-editor</a> text, <span class="Constant">5/left</span>, <span class="Constant">45/right</span>
+<span id="L9" class="LineNr">   9 </span>  editor:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L52'>new-editor</a> text, <span class="Constant">5/left</span>, <span class="Constant">45/right</span>
 <span id="L10" class="LineNr">  10 </span>  <a href='002-typing.mu.html#L14'>editor-event-loop</a> <span class="Constant">0/screen</span>, <span class="Constant">0/console</span>, editor
 <span id="L11" class="LineNr">  11 </span>  close-console
 <span id="L12" class="LineNr">  12 </span>]
@@ -326,18 +326,18 @@ if ('onhashchange' in window) {
 <span id="L265" class="LineNr"> 265 </span>  <span class="Constant">load-ingredients</span>
 <span id="L266" class="LineNr"> 266 </span>  left:num <span class="Special">&lt;-</span> get *editor, <span class="Constant">left:offset</span>
 <span id="L267" class="LineNr"> 267 </span>  right:num <span class="Special">&lt;-</span> get *editor, <span class="Constant">right:offset</span>
-<span id="L268" class="LineNr"> 268 </span>  row:num, column:num <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L122'>render</a> <a href='../081print.mu.html#L4'>screen</a>, editor
+<span id="L268" class="LineNr"> 268 </span>  row:num, column:num <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L123'>render</a> <a href='../081print.mu.html#L4'>screen</a>, editor
 <span id="L269" class="LineNr"> 269 </span>  <a href='../081print.mu.html#L408'>clear-line-until</a> <a href='../081print.mu.html#L4'>screen</a>, right
 <span id="L270" class="LineNr"> 270 </span>  row <span class="Special">&lt;-</span> add row,<span class="Constant"> 1</span>
 <span id="L271" class="LineNr"> 271 </span>  <a href='002-typing.mu.html#L1056'>draw-horizontal</a> <a href='../081print.mu.html#L4'>screen</a>, row, left, right, <span class="Constant">9480/horizontal-dotted</span>
 <span id="L272" class="LineNr"> 272 </span>  row <span class="Special">&lt;-</span> add row,<span class="Constant"> 1</span>
-<span id="L273" class="LineNr"> 273 </span>  <a href='001-editor.mu.html#L223'>clear-screen-from</a> <a href='../081print.mu.html#L4'>screen</a>, row, left, left, right
+<span id="L273" class="LineNr"> 273 </span>  <a href='001-editor.mu.html#L224'>clear-screen-from</a> <a href='../081print.mu.html#L4'>screen</a>, row, left, left, right
 <span id="L274" class="LineNr"> 274 </span>]
 <span id="L275" class="LineNr"> 275 </span>
 <span id="L276" class="LineNr"> 276 </span><span class="muScenario">scenario</span> editor-handles-empty-event-queue [
 <span id="L277" class="LineNr"> 277 </span>  <span class="Constant">local-scope</span>
 <span id="L278" class="LineNr"> 278 </span>  assume-screen <span class="Constant">10/width</span>, <span class="Constant">5/height</span>
-<span id="L279" class="LineNr"> 279 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L51'>new-editor</a> <span class="Constant">[abc]</span>, <span class="Constant">0/left</span>, <span class="Constant">10/right</span>
+<span id="L279" class="LineNr"> 279 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L52'>new-editor</a> <span class="Constant">[abc]</span>, <span class="Constant">0/left</span>, <span class="Constant">10/right</span>
 <span id="L280" class="LineNr"> 280 </span>  <a href='002-typing.mu.html#L263'>editor-render</a> <a href='../081print.mu.html#L4'>screen</a>, e
 <span id="L281" class="LineNr"> 281 </span>  assume-console <span class="Constant">[]</span>
 <span id="L282" class="LineNr"> 282 </span>  run [
@@ -354,7 +354,7 @@ if ('onhashchange' in window) {
 <span id="L293" class="LineNr"> 293 </span><span class="muScenario">scenario</span> editor-handles-mouse-clicks [
 <span id="L294" class="LineNr"> 294 </span>  <span class="Constant">local-scope</span>
 <span id="L295" class="LineNr"> 295 </span>  assume-screen <span class="Constant">10/width</span>, <span class="Constant">5/height</span>
-<span id="L296" class="LineNr"> 296 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L51'>new-editor</a> <span class="Constant">[abc]</span>, <span class="Constant">0/left</span>, <span class="Constant">10/right</span>
+<span id="L296" class="LineNr"> 296 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L52'>new-editor</a> <span class="Constant">[abc]</span>, <span class="Constant">0/left</span>, <span class="Constant">10/right</span>
 <span id="L297" class="LineNr"> 297 </span>  <a href='002-typing.mu.html#L263'>editor-render</a> <a href='../081print.mu.html#L4'>screen</a>, e
 <span id="L298" class="LineNr"> 298 </span>  $clear-trace
 <span id="L299" class="LineNr"> 299 </span>  assume-console [
@@ -381,7 +381,7 @@ if ('onhashchange' in window) {
 <span id="L320" class="LineNr"> 320 </span><span class="muScenario">scenario</span> editor-handles-mouse-clicks-outside-text [
 <span id="L321" class="LineNr"> 321 </span>  <span class="Constant">local-scope</span>
 <span id="L322" class="LineNr"> 322 </span>  assume-screen <span class="Constant">10/width</span>, <span class="Constant">5/height</span>
-<span id="L323" class="LineNr"> 323 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L51'>new-editor</a> <span class="Constant">[abc]</span>, <span class="Constant">0/left</span>, <span class="Constant">10/right</span>
+<span id="L323" class="LineNr"> 323 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L52'>new-editor</a> <span class="Constant">[abc]</span>, <span class="Constant">0/left</span>, <span class="Constant">10/right</span>
 <span id="L324" class="LineNr"> 324 </span>  $clear-trace
 <span id="L325" class="LineNr"> 325 </span>  assume-console [
 <span id="L326" class="LineNr"> 326 </span>    left-click<span class="Constant"> 1</span>,<span class="Constant"> 7</span>  <span class="Comment"># last line, to the right of text</span>
@@ -403,7 +403,7 @@ if ('onhashchange' in window) {
 <span id="L342" class="LineNr"> 342 </span>  assume-screen <span class="Constant">10/width</span>, <span class="Constant">5/height</span>
 <span id="L343" class="LineNr"> 343 </span>  s:text <span class="Special">&lt;-</span> new <span class="Constant">[abc</span>
 <span id="L344" class="LineNr"> 344 </span><span class="Constant">def]</span>
-<span id="L345" class="LineNr"> 345 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L51'>new-editor</a> s, <span class="Constant">0/left</span>, <span class="Constant">10/right</span>
+<span id="L345" class="LineNr"> 345 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L52'>new-editor</a> s, <span class="Constant">0/left</span>, <span class="Constant">10/right</span>
 <span id="L346" class="LineNr"> 346 </span>  $clear-trace
 <span id="L347" class="LineNr"> 347 </span>  assume-console [
 <span id="L348" class="LineNr"> 348 </span>    left-click<span class="Constant"> 1</span>,<span class="Constant"> 7</span>  <span class="Comment"># interior line, to the right of text</span>
@@ -425,7 +425,7 @@ if ('onhashchange' in window) {
 <span id="L364" class="LineNr"> 364 </span>  assume-screen <span class="Constant">10/width</span>, <span class="Constant">5/height</span>
 <span id="L365" class="LineNr"> 365 </span>  s:text <span class="Special">&lt;-</span> new <span class="Constant">[abc</span>
 <span id="L366" class="LineNr"> 366 </span><span class="Constant">def]</span>
-<span id="L367" class="LineNr"> 367 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L51'>new-editor</a> s, <span class="Constant">0/left</span>, <span class="Constant">10/right</span>
+<span id="L367" class="LineNr"> 367 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L52'>new-editor</a> s, <span class="Constant">0/left</span>, <span class="Constant">10/right</span>
 <span id="L368" class="LineNr"> 368 </span>  $clear-trace
 <span id="L369" class="LineNr"> 369 </span>  assume-console [
 <span id="L370" class="LineNr"> 370 </span>    left-click<span class="Constant"> 3</span>,<span class="Constant"> 7</span>  <span class="Comment"># below text</span>
@@ -446,7 +446,7 @@ if ('onhashchange' in window) {
 <span id="L385" class="LineNr"> 385 </span>  <span class="Constant">local-scope</span>
 <span id="L386" class="LineNr"> 386 </span>  assume-screen <span class="Constant">10/width</span>, <span class="Constant">5/height</span>
 <span id="L387" class="LineNr"> 387 </span>  <span class="Comment"># editor occupies only left half of screen</span>
-<span id="L388" class="LineNr"> 388 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L51'>new-editor</a> <span class="Constant">[abc]</span>, <span class="Constant">0/left</span>, <span class="Constant">5/right</span>
+<span id="L388" class="LineNr"> 388 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L52'>new-editor</a> <span class="Constant">[abc]</span>, <span class="Constant">0/left</span>, <span class="Constant">5/right</span>
 <span id="L389" class="LineNr"> 389 </span>  <a href='002-typing.mu.html#L263'>editor-render</a> <a href='../081print.mu.html#L4'>screen</a>, e
 <span id="L390" class="LineNr"> 390 </span>  $clear-trace
 <span id="L391" class="LineNr"> 391 </span>  assume-console [
@@ -474,7 +474,7 @@ if ('onhashchange' in window) {
 <span id="L413" class="LineNr"> 413 </span><span class="muScenario">scenario</span> editor-handles-mouse-clicks-in-menu-area [
 <span id="L414" class="LineNr"> 414 </span>  <span class="Constant">local-scope</span>
 <span id="L415" class="LineNr"> 415 </span>  assume-screen <span class="Constant">10/width</span>, <span class="Constant">5/height</span>
-<span id="L416" class="LineNr"> 416 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L51'>new-editor</a> <span class="Constant">[abc]</span>, <span class="Constant">0/left</span>, <span class="Constant">5/right</span>
+<span id="L416" class="LineNr"> 416 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L52'>new-editor</a> <span class="Constant">[abc]</span>, <span class="Constant">0/left</span>, <span class="Constant">5/right</span>
 <span id="L417" class="LineNr"> 417 </span>  <a href='002-typing.mu.html#L263'>editor-render</a> <a href='../081print.mu.html#L4'>screen</a>, e
 <span id="L418" class="LineNr"> 418 </span>  $clear-trace
 <span id="L419" class="LineNr"> 419 </span>  assume-console [
@@ -496,7 +496,7 @@ if ('onhashchange' in window) {
 <span id="L435" class="LineNr"> 435 </span><span class="muScenario">scenario</span> editor-inserts-characters-into-empty-editor [
 <span id="L436" class="LineNr"> 436 </span>  <span class="Constant">local-scope</span>
 <span id="L437" class="LineNr"> 437 </span>  assume-screen <span class="Constant">10/width</span>, <span class="Constant">5/height</span>
-<span id="L438" class="LineNr"> 438 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L51'>new-editor</a> <span class="Constant">[]</span>, <span class="Constant">0/left</span>, <span class="Constant">5/right</span>
+<span id="L438" class="LineNr"> 438 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L52'>new-editor</a> <span class="Constant">[]</span>, <span class="Constant">0/left</span>, <span class="Constant">5/right</span>
 <span id="L439" class="LineNr"> 439 </span>  <a href='002-typing.mu.html#L263'>editor-render</a> <a href='../081print.mu.html#L4'>screen</a>, e
 <span id="L440" class="LineNr"> 440 </span>  $clear-trace
 <span id="L441" class="LineNr"> 441 </span>  assume-console [
@@ -517,7 +517,7 @@ if ('onhashchange' in window) {
 <span id="L456" class="LineNr"> 456 </span><span class="muScenario">scenario</span> editor-inserts-characters-at-cursor [
 <span id="L457" class="LineNr"> 457 </span>  <span class="Constant">local-scope</span>
 <span id="L458" class="LineNr"> 458 </span>  assume-screen <span class="Constant">10/width</span>, <span class="Constant">5/height</span>
-<span id="L459" class="LineNr"> 459 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L51'>new-editor</a> <span class="Constant">[abc]</span>, <span class="Constant">0/left</span>, <span class="Constant">10/right</span>
+<span id="L459" class="LineNr"> 459 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L52'>new-editor</a> <span class="Constant">[abc]</span>, <span class="Constant">0/left</span>, <span class="Constant">10/right</span>
 <span id="L460" class="LineNr"> 460 </span>  <a href='002-typing.mu.html#L263'>editor-render</a> <a href='../081print.mu.html#L4'>screen</a>, e
 <span id="L461" class="LineNr"> 461 </span>  $clear-trace
 <span id="L462" class="LineNr"> 462 </span>  <span class="Comment"># type two letters at different places</span>
@@ -541,7 +541,7 @@ if ('onhashchange' in window) {
 <span id="L480" class="LineNr"> 480 </span><span class="muScenario">scenario</span> editor-inserts-characters-at-cursor-2 [
 <span id="L481" class="LineNr"> 481 </span>  <span class="Constant">local-scope</span>
 <span id="L482" class="LineNr"> 482 </span>  assume-screen <span class="Constant">10/width</span>, <span class="Constant">5/height</span>
-<span id="L483" class="LineNr"> 483 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L51'>new-editor</a> <span class="Constant">[abc]</span>, <span class="Constant">0/left</span>, <span class="Constant">10/right</span>
+<span id="L483" class="LineNr"> 483 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L52'>new-editor</a> <span class="Constant">[abc]</span>, <span class="Constant">0/left</span>, <span class="Constant">10/right</span>
 <span id="L484" class="LineNr"> 484 </span>  <a href='002-typing.mu.html#L263'>editor-render</a> <a href='../081print.mu.html#L4'>screen</a>, e
 <span id="L485" class="LineNr"> 485 </span>  $clear-trace
 <span id="L486" class="LineNr"> 486 </span>  assume-console [
@@ -565,7 +565,7 @@ if ('onhashchange' in window) {
 <span id="L504" class="LineNr"> 504 </span>  assume-screen <span class="Constant">10/width</span>, <span class="Constant">5/height</span>
 <span id="L505" class="LineNr"> 505 </span>  s:text <span class="Special">&lt;-</span> new <span class="Constant">[abc</span>
 <span id="L506" class="LineNr"> 506 </span><span class="Constant">d]</span>
-<span id="L507" class="LineNr"> 507 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L51'>new-editor</a> s, <span class="Constant">0/left</span>, <span class="Constant">10/right</span>
+<span id="L507" class="LineNr"> 507 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L52'>new-editor</a> s, <span class="Constant">0/left</span>, <span class="Constant">10/right</span>
 <span id="L508" class="LineNr"> 508 </span>  <a href='002-typing.mu.html#L263'>editor-render</a> <a href='../081print.mu.html#L4'>screen</a>, e
 <span id="L509" class="LineNr"> 509 </span>  $clear-trace
 <span id="L510" class="LineNr"> 510 </span>  assume-console [
@@ -588,7 +588,7 @@ if ('onhashchange' in window) {
 <span id="L527" class="LineNr"> 527 </span><span class="muScenario">scenario</span> editor-inserts-characters-at-cursor-3 [
 <span id="L528" class="LineNr"> 528 </span>  <span class="Constant">local-scope</span>
 <span id="L529" class="LineNr"> 529 </span>  assume-screen <span class="Constant">10/width</span>, <span class="Constant">5/height</span>
-<span id="L530" class="LineNr"> 530 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L51'>new-editor</a> <span class="Constant">[abc]</span>, <span class="Constant">0/left</span>, <span class="Constant">10/right</span>
+<span id="L530" class="LineNr"> 530 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L52'>new-editor</a> <span class="Constant">[abc]</span>, <span class="Constant">0/left</span>, <span class="Constant">10/right</span>
 <span id="L531" class="LineNr"> 531 </span>  <a href='002-typing.mu.html#L263'>editor-render</a> <a href='../081print.mu.html#L4'>screen</a>, e
 <span id="L532" class="LineNr"> 532 </span>  $clear-trace
 <span id="L533" class="LineNr"> 533 </span>  assume-console [
@@ -612,7 +612,7 @@ if ('onhashchange' in window) {
 <span id="L551" class="LineNr"> 551 </span>  assume-screen <span class="Constant">10/width</span>, <span class="Constant">5/height</span>
 <span id="L552" class="LineNr"> 552 </span>  s:text <span class="Special">&lt;-</span> new <span class="Constant">[abc</span>
 <span id="L553" class="LineNr"> 553 </span><span class="Constant">d]</span>
-<span id="L554" class="LineNr"> 554 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L51'>new-editor</a> s, <span class="Constant">0/left</span>, <span class="Constant">10/right</span>
+<span id="L554" class="LineNr"> 554 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L52'>new-editor</a> s, <span class="Constant">0/left</span>, <span class="Constant">10/right</span>
 <span id="L555" class="LineNr"> 555 </span>  <a href='002-typing.mu.html#L263'>editor-render</a> <a href='../081print.mu.html#L4'>screen</a>, e
 <span id="L556" class="LineNr"> 556 </span>  $clear-trace
 <span id="L557" class="LineNr"> 557 </span>  assume-console [
@@ -637,7 +637,7 @@ if ('onhashchange' in window) {
 <span id="L576" class="LineNr"> 576 </span>  assume-screen <span class="Constant">10/width</span>, <span class="Constant">5/height</span>
 <span id="L577" class="LineNr"> 577 </span>  s:text <span class="Special">&lt;-</span> new <span class="Constant">[abc</span>
 <span id="L578" class="LineNr"> 578 </span><span class="Constant">d]</span>
-<span id="L579" class="LineNr"> 579 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L51'>new-editor</a> s, <span class="Constant">0/left</span>, <span class="Constant">10/right</span>
+<span id="L579" class="LineNr"> 579 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L52'>new-editor</a> s, <span class="Constant">0/left</span>, <span class="Constant">10/right</span>
 <span id="L580" class="LineNr"> 580 </span>  <a href='002-typing.mu.html#L263'>editor-render</a> <a href='../081print.mu.html#L4'>screen</a>, e
 <span id="L581" class="LineNr"> 581 </span>  $clear-trace
 <span id="L582" class="LineNr"> 582 </span>  assume-console [
@@ -660,7 +660,7 @@ if ('onhashchange' in window) {
 <span id="L599" class="LineNr"> 599 </span><span class="muScenario">scenario</span> editor-moves-cursor-after-inserting-characters [
 <span id="L600" class="LineNr"> 600 </span>  <span class="Constant">local-scope</span>
 <span id="L601" class="LineNr"> 601 </span>  assume-screen <span class="Constant">10/width</span>, <span class="Constant">5/height</span>
-<span id="L602" class="LineNr"> 602 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L51'>new-editor</a> <span class="Constant">[ab]</span>, <span class="Constant">0/left</span>, <span class="Constant">5/right</span>
+<span id="L602" class="LineNr"> 602 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L52'>new-editor</a> <span class="Constant">[ab]</span>, <span class="Constant">0/left</span>, <span class="Constant">5/right</span>
 <span id="L603" class="LineNr"> 603 </span>  <a href='002-typing.mu.html#L263'>editor-render</a> <a href='../081print.mu.html#L4'>screen</a>, e
 <span id="L604" class="LineNr"> 604 </span>  assume-console [
 <span id="L605" class="LineNr"> 605 </span>    type <span class="Constant">[01]</span>
@@ -681,7 +681,7 @@ if ('onhashchange' in window) {
 <span id="L620" class="LineNr"> 620 </span><span class="muScenario">scenario</span> editor-wraps-line-on-insert [
 <span id="L621" class="LineNr"> 621 </span>  <span class="Constant">local-scope</span>
 <span id="L622" class="LineNr"> 622 </span>  assume-screen <span class="Constant">5/width</span>, <span class="Constant">5/height</span>
-<span id="L623" class="LineNr"> 623 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L51'>new-editor</a> <span class="Constant">[abc]</span>, <span class="Constant">0/left</span>, <span class="Constant">5/right</span>
+<span id="L623" class="LineNr"> 623 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L52'>new-editor</a> <span class="Constant">[abc]</span>, <span class="Constant">0/left</span>, <span class="Constant">5/right</span>
 <span id="L624" class="LineNr"> 624 </span>  <a href='002-typing.mu.html#L263'>editor-render</a> <a href='../081print.mu.html#L4'>screen</a>, e
 <span id="L625" class="LineNr"> 625 </span>  <span class="Comment"># type a letter</span>
 <span id="L626" class="LineNr"> 626 </span>  assume-console [
@@ -721,7 +721,7 @@ if ('onhashchange' in window) {
 <span id="L660" class="LineNr"> 660 </span>  assume-screen <span class="Constant">10/width</span>, <span class="Constant">5/height</span>
 <span id="L661" class="LineNr"> 661 </span>  s:text <span class="Special">&lt;-</span> new <span class="Constant">[abcdefg</span>
 <span id="L662" class="LineNr"> 662 </span><span class="Constant">defg]</span>
-<span id="L663" class="LineNr"> 663 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L51'>new-editor</a> s, <span class="Constant">0/left</span>, <span class="Constant">5/right</span>
+<span id="L663" class="LineNr"> 663 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L52'>new-editor</a> s, <span class="Constant">0/left</span>, <span class="Constant">5/right</span>
 <span id="L664" class="LineNr"> 664 </span>  <a href='002-typing.mu.html#L263'>editor-render</a> <a href='../081print.mu.html#L4'>screen</a>, e
 <span id="L665" class="LineNr"> 665 </span>  <span class="Comment"># type more text at the start</span>
 <span id="L666" class="LineNr"> 666 </span>  assume-console [
@@ -801,7 +801,7 @@ if ('onhashchange' in window) {
 <span id="L740" class="LineNr"> 740 </span><span class="muScenario">scenario</span> editor-wraps-cursor-after-inserting-characters-in-middle-of-line [
 <span id="L741" class="LineNr"> 741 </span>  <span class="Constant">local-scope</span>
 <span id="L742" class="LineNr"> 742 </span>  assume-screen <span class="Constant">10/width</span>, <span class="Constant">5/height</span>
-<span id="L743" class="LineNr"> 743 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L51'>new-editor</a> <span class="Constant">[abcde]</span>, <span class="Constant">0/left</span>, <span class="Constant">5/right</span>
+<span id="L743" class="LineNr"> 743 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L52'>new-editor</a> <span class="Constant">[abcde]</span>, <span class="Constant">0/left</span>, <span class="Constant">5/right</span>
 <span id="L744" class="LineNr"> 744 </span>  assume-console [
 <span id="L745" class="LineNr"> 745 </span>    left-click<span class="Constant"> 1</span>,<span class="Constant"> 3</span>  <span class="Comment"># right before the wrap icon</span>
 <span id="L746" class="LineNr"> 746 </span>    type <span class="Constant">[f]</span>
@@ -830,7 +830,7 @@ if ('onhashchange' in window) {
 <span id="L769" class="LineNr"> 769 </span>  <span class="Comment"># create an editor containing two lines</span>
 <span id="L770" class="LineNr"> 770 </span>  s:text <span class="Special">&lt;-</span> new <span class="Constant">[abc</span>
 <span id="L771" class="LineNr"> 771 </span><span class="Constant">xyz]</span>
-<span id="L772" class="LineNr"> 772 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L51'>new-editor</a> s, <span class="Constant">0/left</span>, <span class="Constant">5/right</span>
+<span id="L772" class="LineNr"> 772 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L52'>new-editor</a> s, <span class="Constant">0/left</span>, <span class="Constant">5/right</span>
 <span id="L773" class="LineNr"> 773 </span>  <a href='002-typing.mu.html#L263'>editor-render</a> <a href='../081print.mu.html#L4'>screen</a>, e
 <span id="L774" class="LineNr"> 774 </span>  screen-should-contain [
 <span id="L775" class="LineNr"> 775 </span>   <span class="Constant"> .          .</span>
@@ -858,7 +858,7 @@ if ('onhashchange' in window) {
 <span id="L797" class="LineNr"> 797 </span><span class="muScenario">scenario</span> editor-wraps-cursor-to-left-margin [
 <span id="L798" class="LineNr"> 798 </span>  <span class="Constant">local-scope</span>
 <span id="L799" class="LineNr"> 799 </span>  assume-screen <span class="Constant">10/width</span>, <span class="Constant">5/height</span>
-<span id="L800" class="LineNr"> 800 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L51'>new-editor</a> <span class="Constant">[abcde]</span>, <span class="Constant">2/left</span>, <span class="Constant">7/right</span>
+<span id="L800" class="LineNr"> 800 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L52'>new-editor</a> <span class="Constant">[abcde]</span>, <span class="Constant">2/left</span>, <span class="Constant">7/right</span>
 <span id="L801" class="LineNr"> 801 </span>  assume-console [
 <span id="L802" class="LineNr"> 802 </span>    left-click<span class="Constant"> 1</span>,<span class="Constant"> 5</span>  <span class="Comment"># line is full; no wrap icon yet</span>
 <span id="L803" class="LineNr"> 803 </span>    type <span class="Constant">[01]</span>
@@ -887,14 +887,14 @@ if ('onhashchange' in window) {
 <span id="L826" class="LineNr"> 826 </span>  indent?:bool
 <span id="L827" class="LineNr"> 827 </span>]
 <span id="L828" class="LineNr"> 828 </span>
-<span id="L829" class="LineNr"> 829 </span><span class="muRecipe">after</span> <span class="Constant"><a href='001-editor.mu.html#L69'>&lt;editor-initialization&gt;</a></span> [
+<span id="L829" class="LineNr"> 829 </span><span class="muRecipe">after</span> <span class="Constant"><a href='001-editor.mu.html#L70'>&lt;editor-initialization&gt;</a></span> [
 <span id="L830" class="LineNr"> 830 </span>  *result <span class="Special">&lt;-</span> put *result, <span class="Constant">indent?:offset</span>, <span class="Constant">1/true</span>
 <span id="L831" class="LineNr"> 831 </span>]
 <span id="L832" class="LineNr"> 832 </span>
 <span id="L833" class="LineNr"> 833 </span><span class="muScenario">scenario</span> editor-moves-cursor-down-after-inserting-newline [
 <span id="L834" class="LineNr"> 834 </span>  <span class="Constant">local-scope</span>
 <span id="L835" class="LineNr"> 835 </span>  assume-screen <span class="Constant">10/width</span>, <span class="Constant">5/height</span>
-<span id="L836" class="LineNr"> 836 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L51'>new-editor</a> <span class="Constant">[abc]</span>, <span class="Constant">0/left</span>, <span class="Constant">10/right</span>
+<span id="L836" class="LineNr"> 836 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L52'>new-editor</a> <span class="Constant">[abc]</span>, <span class="Constant">0/left</span>, <span class="Constant">10/right</span>
 <span id="L837" class="LineNr"> 837 </span>  assume-console [
 <span id="L838" class="LineNr"> 838 </span>    type <span class="Constant">[0</span>
 <span id="L839" class="LineNr"> 839 </span><span class="Constant">1]</span>
@@ -998,7 +998,7 @@ if ('onhashchange' in window) {
 <span id="L937" class="LineNr"> 937 </span><span class="muScenario">scenario</span> editor-moves-cursor-down-after-inserting-newline-2 [
 <span id="L938" class="LineNr"> 938 </span>  <span class="Constant">local-scope</span>
 <span id="L939" class="LineNr"> 939 </span>  assume-screen <span class="Constant">10/width</span>, <span class="Constant">5/height</span>
-<span id="L940" class="LineNr"> 940 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L51'>new-editor</a> <span class="Constant">[abc]</span>, <span class="Constant">1/left</span>, <span class="Constant">10/right</span>
+<span id="L940" class="LineNr"> 940 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L52'>new-editor</a> <span class="Constant">[abc]</span>, <span class="Constant">1/left</span>, <span class="Constant">10/right</span>
 <span id="L941" class="LineNr"> 941 </span>  assume-console [
 <span id="L942" class="LineNr"> 942 </span>    type <span class="Constant">[0</span>
 <span id="L943" class="LineNr"> 943 </span><span class="Constant">1]</span>
@@ -1018,7 +1018,7 @@ if ('onhashchange' in window) {
 <span id="L957" class="LineNr"> 957 </span><span class="muScenario">scenario</span> editor-clears-previous-line-completely-after-inserting-newline [
 <span id="L958" class="LineNr"> 958 </span>  <span class="Constant">local-scope</span>
 <span id="L959" class="LineNr"> 959 </span>  assume-screen <span class="Constant">10/width</span>, <span class="Constant">5/height</span>
-<span id="L960" class="LineNr"> 960 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L51'>new-editor</a> <span class="Constant">[abcde]</span>, <span class="Constant">0/left</span>, <span class="Constant">5/right</span>
+<span id="L960" class="LineNr"> 960 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L52'>new-editor</a> <span class="Constant">[abcde]</span>, <span class="Constant">0/left</span>, <span class="Constant">5/right</span>
 <span id="L961" class="LineNr"> 961 </span>  <a href='002-typing.mu.html#L263'>editor-render</a> <a href='../081print.mu.html#L4'>screen</a>, e
 <span id="L962" class="LineNr"> 962 </span>  screen-should-contain [
 <span id="L963" class="LineNr"> 963 </span>   <span class="Constant"> .          .</span>
@@ -1049,7 +1049,7 @@ if ('onhashchange' in window) {
 <span id="L988" class="LineNr"> 988 </span>  s:text <span class="Special">&lt;-</span> new <span class="Constant">[ab</span>
 <span id="L989" class="LineNr"> 989 </span><span class="Constant">  cd</span>
 <span id="L990" class="LineNr"> 990 </span><span class="Constant">ef]</span>
-<span id="L991" class="LineNr"> 991 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L51'>new-editor</a> s, <span class="Constant">0/left</span>, <span class="Constant">10/right</span>
+<span id="L991" class="LineNr"> 991 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L52'>new-editor</a> s, <span class="Constant">0/left</span>, <span class="Constant">10/right</span>
 <span id="L992" class="LineNr"> 992 </span>  <span class="Comment"># position cursor after 'cd' and hit 'newline'</span>
 <span id="L993" class="LineNr"> 993 </span>  assume-console [
 <span id="L994" class="LineNr"> 994 </span>    left-click<span class="Constant"> 2</span>,<span class="Constant"> 8</span>
@@ -1074,7 +1074,7 @@ if ('onhashchange' in window) {
 <span id="L1013" class="LineNr">1013 </span>  s:text <span class="Special">&lt;-</span> new <span class="Constant">[ab</span>
 <span id="L1014" class="LineNr">1014 </span><span class="Constant">  cd</span>
 <span id="L1015" class="LineNr">1015 </span><span class="Constant">ef]</span>
-<span id="L1016" class="LineNr">1016 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L51'>new-editor</a> s, <span class="Constant">0/left</span>, <span class="Constant">10/right</span>
+<span id="L1016" class="LineNr">1016 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L52'>new-editor</a> s, <span class="Constant">0/left</span>, <span class="Constant">10/right</span>
 <span id="L1017" class="LineNr">1017 </span>  <span class="Comment"># position cursor after 'cd' and hit 'newline' surrounded by paste markers</span>
 <span id="L1018" class="LineNr">1018 </span>  assume-console [
 <span id="L1019" class="LineNr">1019 </span>    left-click<span class="Constant"> 2</span>,<span class="Constant"> 8</span>
diff --git a/html/edit/003-shortcuts.mu.html b/html/edit/003-shortcuts.mu.html
index 078af9cb..0881417f 100644
--- a/html/edit/003-shortcuts.mu.html
+++ b/html/edit/003-shortcuts.mu.html
@@ -70,7 +70,7 @@ if ('onhashchange' in window) {
 <span id="L10" class="LineNr">  10 </span>  <span class="Comment"># just one character in final line</span>
 <span id="L11" class="LineNr">  11 </span>  s:text <span class="Special">&lt;-</span> new <span class="Constant">[ab</span>
 <span id="L12" class="LineNr">  12 </span><span class="Constant">cd]</span>
-<span id="L13" class="LineNr">  13 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L51'>new-editor</a> s, <span class="Constant">0/left</span>, <span class="Constant">5/right</span>
+<span id="L13" class="LineNr">  13 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L52'>new-editor</a> s, <span class="Constant">0/left</span>, <span class="Constant">5/right</span>
 <span id="L14" class="LineNr">  14 </span>  assume-console [
 <span id="L15" class="LineNr">  15 </span>    press tab
 <span id="L16" class="LineNr">  16 </span>  ]
@@ -101,7 +101,7 @@ if ('onhashchange' in window) {
 <span id="L41" class="LineNr">  41 </span><span class="muScenario">scenario</span> editor-handles-backspace-key [
 <span id="L42" class="LineNr">  42 </span>  <span class="Constant">local-scope</span>
 <span id="L43" class="LineNr">  43 </span>  assume-screen <span class="Constant">10/width</span>, <span class="Constant">5/height</span>
-<span id="L44" class="LineNr">  44 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L51'>new-editor</a> <span class="Constant">[abc]</span>, <span class="Constant">0/left</span>, <span class="Constant">10/right</span>
+<span id="L44" class="LineNr">  44 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L52'>new-editor</a> <span class="Constant">[abc]</span>, <span class="Constant">0/left</span>, <span class="Constant">10/right</span>
 <span id="L45" class="LineNr">  45 </span>  <a href='002-typing.mu.html#L263'>editor-render</a> <a href='../081print.mu.html#L4'>screen</a>, e
 <span id="L46" class="LineNr">  46 </span>  $clear-trace
 <span id="L47" class="LineNr">  47 </span>  assume-console [
@@ -276,7 +276,7 @@ if ('onhashchange' in window) {
 <span id="L216" class="LineNr"> 216 </span>  <span class="Comment"># just one character in final line</span>
 <span id="L217" class="LineNr"> 217 </span>  s:text <span class="Special">&lt;-</span> new <span class="Constant">[ab</span>
 <span id="L218" class="LineNr"> 218 </span><span class="Constant">cd]</span>
-<span id="L219" class="LineNr"> 219 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L51'>new-editor</a> s, <span class="Constant">0/left</span>, <span class="Constant">10/right</span>
+<span id="L219" class="LineNr"> 219 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L52'>new-editor</a> s, <span class="Constant">0/left</span>, <span class="Constant">10/right</span>
 <span id="L220" class="LineNr"> 220 </span>  assume-console [
 <span id="L221" class="LineNr"> 221 </span>    left-click<span class="Constant"> 2</span>,<span class="Constant"> 0</span>  <span class="Comment"># cursor at only character in final line</span>
 <span id="L222" class="LineNr"> 222 </span>    press backspace
@@ -304,7 +304,7 @@ if ('onhashchange' in window) {
 <span id="L244" class="LineNr"> 244 </span>  <span class="Comment"># initialize editor with two long-ish but non-wrapping lines</span>
 <span id="L245" class="LineNr"> 245 </span>  s:text <span class="Special">&lt;-</span> new <span class="Constant">[abc def</span>
 <span id="L246" class="LineNr"> 246 </span><span class="Constant">ghi jkl]</span>
-<span id="L247" class="LineNr"> 247 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L51'>new-editor</a> s, <span class="Constant">0/left</span>, <span class="Constant">10/right</span>
+<span id="L247" class="LineNr"> 247 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L52'>new-editor</a> s, <span class="Constant">0/left</span>, <span class="Constant">10/right</span>
 <span id="L248" class="LineNr"> 248 </span>  <a href='002-typing.mu.html#L263'>editor-render</a> <a href='../081print.mu.html#L4'>screen</a>, e
 <span id="L249" class="LineNr"> 249 </span>  $clear-trace
 <span id="L250" class="LineNr"> 250 </span>  <span class="Comment"># position the cursor at the start of the second and hit backspace</span>
@@ -329,7 +329,7 @@ if ('onhashchange' in window) {
 <span id="L269" class="LineNr"> 269 </span>  <span class="Constant">local-scope</span>
 <span id="L270" class="LineNr"> 270 </span>  assume-screen <span class="Constant">10/width</span>, <span class="Constant">5/height</span>
 <span id="L271" class="LineNr"> 271 </span>  <span class="Comment"># initialize editor in part of the screen with a long line</span>
-<span id="L272" class="LineNr"> 272 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L51'>new-editor</a> <span class="Constant">[abc def ghij]</span>, <span class="Constant">0/left</span>, <span class="Constant">8/right</span>
+<span id="L272" class="LineNr"> 272 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L52'>new-editor</a> <span class="Constant">[abc def ghij]</span>, <span class="Constant">0/left</span>, <span class="Constant">8/right</span>
 <span id="L273" class="LineNr"> 273 </span>  <a href='002-typing.mu.html#L263'>editor-render</a> <a href='../081print.mu.html#L4'>screen</a>, e
 <span id="L274" class="LineNr"> 274 </span>  <span class="Comment"># confirm that it wraps</span>
 <span id="L275" class="LineNr"> 275 </span>  screen-should-contain [
@@ -362,7 +362,7 @@ if ('onhashchange' in window) {
 <span id="L302" class="LineNr"> 302 </span><span class="muScenario">scenario</span> editor-handles-delete-key [
 <span id="L303" class="LineNr"> 303 </span>  <span class="Constant">local-scope</span>
 <span id="L304" class="LineNr"> 304 </span>  assume-screen <span class="Constant">10/width</span>, <span class="Constant">5/height</span>
-<span id="L305" class="LineNr"> 305 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L51'>new-editor</a> <span class="Constant">[abc]</span>, <span class="Constant">0/left</span>, <span class="Constant">10/right</span>
+<span id="L305" class="LineNr"> 305 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L52'>new-editor</a> <span class="Constant">[abc]</span>, <span class="Constant">0/left</span>, <span class="Constant">10/right</span>
 <span id="L306" class="LineNr"> 306 </span>  <a href='002-typing.mu.html#L263'>editor-render</a> <a href='../081print.mu.html#L4'>screen</a>, e
 <span id="L307" class="LineNr"> 307 </span>  $clear-trace
 <span id="L308" class="LineNr"> 308 </span>  assume-console [
@@ -448,7 +448,7 @@ if ('onhashchange' in window) {
 <span id="L388" class="LineNr"> 388 </span><span class="muScenario">scenario</span> editor-moves-cursor-right-with-key [
 <span id="L389" class="LineNr"> 389 </span>  <span class="Constant">local-scope</span>
 <span id="L390" class="LineNr"> 390 </span>  assume-screen <span class="Constant">10/width</span>, <span class="Constant">5/height</span>
-<span id="L391" class="LineNr"> 391 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L51'>new-editor</a> <span class="Constant">[abc]</span>, <span class="Constant">0/left</span>, <span class="Constant">10/right</span>
+<span id="L391" class="LineNr"> 391 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L52'>new-editor</a> <span class="Constant">[abc]</span>, <span class="Constant">0/left</span>, <span class="Constant">10/right</span>
 <span id="L392" class="LineNr"> 392 </span>  <a href='002-typing.mu.html#L263'>editor-render</a> <a href='../081print.mu.html#L4'>screen</a>, e
 <span id="L393" class="LineNr"> 393 </span>  $clear-trace
 <span id="L394" class="LineNr"> 394 </span>  assume-console [
@@ -544,7 +544,7 @@ if ('onhashchange' in window) {
 <span id="L484" class="LineNr"> 484 </span>  assume-screen <span class="Constant">10/width</span>, <span class="Constant">5/height</span>
 <span id="L485" class="LineNr"> 485 </span>  s:text <span class="Special">&lt;-</span> new <span class="Constant">[abc</span>
 <span id="L486" class="LineNr"> 486 </span><span class="Constant">d]</span>
-<span id="L487" class="LineNr"> 487 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L51'>new-editor</a> s, <span class="Constant">0/left</span>, <span class="Constant">10/right</span>
+<span id="L487" class="LineNr"> 487 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L52'>new-editor</a> s, <span class="Constant">0/left</span>, <span class="Constant">10/right</span>
 <span id="L488" class="LineNr"> 488 </span>  <a href='002-typing.mu.html#L263'>editor-render</a> <a href='../081print.mu.html#L4'>screen</a>, e
 <span id="L489" class="LineNr"> 489 </span>  $clear-trace
 <span id="L490" class="LineNr"> 490 </span>  <span class="Comment"># type right-arrow a few times to get to start of second line</span>
@@ -580,7 +580,7 @@ if ('onhashchange' in window) {
 <span id="L520" class="LineNr"> 520 </span>  assume-screen <span class="Constant">10/width</span>, <span class="Constant">5/height</span>
 <span id="L521" class="LineNr"> 521 </span>  s:text <span class="Special">&lt;-</span> new <span class="Constant">[abc</span>
 <span id="L522" class="LineNr"> 522 </span><span class="Constant">d]</span>
-<span id="L523" class="LineNr"> 523 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L51'>new-editor</a> s, <span class="Constant">1/left</span>, <span class="Constant">10/right</span>
+<span id="L523" class="LineNr"> 523 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L52'>new-editor</a> s, <span class="Constant">1/left</span>, <span class="Constant">10/right</span>
 <span id="L524" class="LineNr"> 524 </span>  <a href='002-typing.mu.html#L263'>editor-render</a> <a href='../081print.mu.html#L4'>screen</a>, e
 <span id="L525" class="LineNr"> 525 </span>  assume-console [
 <span id="L526" class="LineNr"> 526 </span>    press right-arrow
@@ -604,7 +604,7 @@ if ('onhashchange' in window) {
 <span id="L544" class="LineNr"> 544 </span><span class="muScenario">scenario</span> editor-moves-cursor-to-next-wrapped-line-with-right-arrow [
 <span id="L545" class="LineNr"> 545 </span>  <span class="Constant">local-scope</span>
 <span id="L546" class="LineNr"> 546 </span>  assume-screen <span class="Constant">10/width</span>, <span class="Constant">5/height</span>
-<span id="L547" class="LineNr"> 547 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L51'>new-editor</a> <span class="Constant">[abcdef]</span>, <span class="Constant">0/left</span>, <span class="Constant">5/right</span>
+<span id="L547" class="LineNr"> 547 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L52'>new-editor</a> <span class="Constant">[abcdef]</span>, <span class="Constant">0/left</span>, <span class="Constant">5/right</span>
 <span id="L548" class="LineNr"> 548 </span>  <a href='002-typing.mu.html#L263'>editor-render</a> <a href='../081print.mu.html#L4'>screen</a>, e
 <span id="L549" class="LineNr"> 549 </span>  $clear-trace
 <span id="L550" class="LineNr"> 550 </span>  assume-console [
@@ -634,7 +634,7 @@ if ('onhashchange' in window) {
 <span id="L574" class="LineNr"> 574 </span>  <span class="Constant">local-scope</span>
 <span id="L575" class="LineNr"> 575 </span>  assume-screen <span class="Constant">10/width</span>, <span class="Constant">5/height</span>
 <span id="L576" class="LineNr"> 576 </span>  <span class="Comment"># line just barely wrapping</span>
-<span id="L577" class="LineNr"> 577 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L51'>new-editor</a> <span class="Constant">[abcde]</span>, <span class="Constant">0/left</span>, <span class="Constant">5/right</span>
+<span id="L577" class="LineNr"> 577 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L52'>new-editor</a> <span class="Constant">[abcde]</span>, <span class="Constant">0/left</span>, <span class="Constant">5/right</span>
 <span id="L578" class="LineNr"> 578 </span>  <a href='002-typing.mu.html#L263'>editor-render</a> <a href='../081print.mu.html#L4'>screen</a>, e
 <span id="L579" class="LineNr"> 579 </span>  $clear-trace
 <span id="L580" class="LineNr"> 580 </span>  <span class="Comment"># position cursor at last character before wrap and hit right-arrow</span>
@@ -670,7 +670,7 @@ if ('onhashchange' in window) {
 <span id="L610" class="LineNr"> 610 </span><span class="muScenario">scenario</span> editor-moves-cursor-to-next-wrapped-line-with-right-arrow-3 [
 <span id="L611" class="LineNr"> 611 </span>  <span class="Constant">local-scope</span>
 <span id="L612" class="LineNr"> 612 </span>  assume-screen <span class="Constant">10/width</span>, <span class="Constant">5/height</span>
-<span id="L613" class="LineNr"> 613 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L51'>new-editor</a> <span class="Constant">[abcdef]</span>, <span class="Constant">1/left</span>, <span class="Constant">6/right</span>
+<span id="L613" class="LineNr"> 613 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L52'>new-editor</a> <span class="Constant">[abcdef]</span>, <span class="Constant">1/left</span>, <span class="Constant">6/right</span>
 <span id="L614" class="LineNr"> 614 </span>  <a href='002-typing.mu.html#L263'>editor-render</a> <a href='../081print.mu.html#L4'>screen</a>, e
 <span id="L615" class="LineNr"> 615 </span>  $clear-trace
 <span id="L616" class="LineNr"> 616 </span>  assume-console [
@@ -701,7 +701,7 @@ if ('onhashchange' in window) {
 <span id="L641" class="LineNr"> 641 </span>  assume-screen <span class="Constant">10/width</span>, <span class="Constant">5/height</span>
 <span id="L642" class="LineNr"> 642 </span>  s:text <span class="Special">&lt;-</span> new <span class="Constant">[abc</span>
 <span id="L643" class="LineNr"> 643 </span><span class="Constant">d]</span>
-<span id="L644" class="LineNr"> 644 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L51'>new-editor</a> s, <span class="Constant">0/left</span>, <span class="Constant">10/right</span>
+<span id="L644" class="LineNr"> 644 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L52'>new-editor</a> s, <span class="Constant">0/left</span>, <span class="Constant">10/right</span>
 <span id="L645" class="LineNr"> 645 </span>  <a href='002-typing.mu.html#L263'>editor-render</a> <a href='../081print.mu.html#L4'>screen</a>, e
 <span id="L646" class="LineNr"> 646 </span>  $clear-trace
 <span id="L647" class="LineNr"> 647 </span>  <span class="Comment"># move to end of line, press right-arrow, type a character</span>
@@ -731,7 +731,7 @@ if ('onhashchange' in window) {
 <span id="L671" class="LineNr"> 671 </span><span class="muScenario">scenario</span> editor-moves-cursor-left-with-key [
 <span id="L672" class="LineNr"> 672 </span>  <span class="Constant">local-scope</span>
 <span id="L673" class="LineNr"> 673 </span>  assume-screen <span class="Constant">10/width</span>, <span class="Constant">5/height</span>
-<span id="L674" class="LineNr"> 674 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L51'>new-editor</a> <span class="Constant">[abc]</span>, <span class="Constant">0/left</span>, <span class="Constant">10/right</span>
+<span id="L674" class="LineNr"> 674 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L52'>new-editor</a> <span class="Constant">[abc]</span>, <span class="Constant">0/left</span>, <span class="Constant">10/right</span>
 <span id="L675" class="LineNr"> 675 </span>  <a href='002-typing.mu.html#L263'>editor-render</a> <a href='../081print.mu.html#L4'>screen</a>, e
 <span id="L676" class="LineNr"> 676 </span>  $clear-trace
 <span id="L677" class="LineNr"> 677 </span>  assume-console [
@@ -775,7 +775,7 @@ if ('onhashchange' in window) {
 <span id="L715" class="LineNr"> 715 </span>  <span class="Comment"># initialize editor with two lines</span>
 <span id="L716" class="LineNr"> 716 </span>  s:text <span class="Special">&lt;-</span> new <span class="Constant">[abc</span>
 <span id="L717" class="LineNr"> 717 </span><span class="Constant">d]</span>
-<span id="L718" class="LineNr"> 718 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L51'>new-editor</a> s, <span class="Constant">0/left</span>, <span class="Constant">10/right</span>
+<span id="L718" class="LineNr"> 718 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L52'>new-editor</a> s, <span class="Constant">0/left</span>, <span class="Constant">10/right</span>
 <span id="L719" class="LineNr"> 719 </span>  <a href='002-typing.mu.html#L263'>editor-render</a> <a href='../081print.mu.html#L4'>screen</a>, e
 <span id="L720" class="LineNr"> 720 </span>  $clear-trace
 <span id="L721" class="LineNr"> 721 </span>  <span class="Comment"># position cursor at start of second line (so there's no previous newline)</span>
@@ -802,7 +802,7 @@ if ('onhashchange' in window) {
 <span id="L742" class="LineNr"> 742 </span>  s:text <span class="Special">&lt;-</span> new <span class="Constant">[abc</span>
 <span id="L743" class="LineNr"> 743 </span><span class="Constant">def</span>
 <span id="L744" class="LineNr"> 744 </span><span class="Constant">g]</span>
-<span id="L745" class="LineNr"> 745 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L51'>new-editor</a> s:text, <span class="Constant">0/left</span>, <span class="Constant">10/right</span>
+<span id="L745" class="LineNr"> 745 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L52'>new-editor</a> s:text, <span class="Constant">0/left</span>, <span class="Constant">10/right</span>
 <span id="L746" class="LineNr"> 746 </span>  <a href='002-typing.mu.html#L263'>editor-render</a> <a href='../081print.mu.html#L4'>screen</a>, e
 <span id="L747" class="LineNr"> 747 </span>  $clear-trace
 <span id="L748" class="LineNr"> 748 </span>  <span class="Comment"># position cursor further down (so there's a newline before the character at</span>
@@ -831,7 +831,7 @@ if ('onhashchange' in window) {
 <span id="L771" class="LineNr"> 771 </span>  s:text <span class="Special">&lt;-</span> new <span class="Constant">[abc</span>
 <span id="L772" class="LineNr"> 772 </span><span class="Constant">def</span>
 <span id="L773" class="LineNr"> 773 </span><span class="Constant">g]</span>
-<span id="L774" class="LineNr"> 774 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L51'>new-editor</a> s, <span class="Constant">0/left</span>, <span class="Constant">10/right</span>
+<span id="L774" class="LineNr"> 774 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L52'>new-editor</a> s, <span class="Constant">0/left</span>, <span class="Constant">10/right</span>
 <span id="L775" class="LineNr"> 775 </span>  <a href='002-typing.mu.html#L263'>editor-render</a> <a href='../081print.mu.html#L4'>screen</a>, e
 <span id="L776" class="LineNr"> 776 </span>  $clear-trace
 <span id="L777" class="LineNr"> 777 </span>  <span class="Comment"># position cursor at start of text, press left-arrow, then type a character</span>
@@ -861,7 +861,7 @@ if ('onhashchange' in window) {
 <span id="L801" class="LineNr"> 801 </span>  s:text <span class="Special">&lt;-</span> new <span class="Constant">[abc</span>
 <span id="L802" class="LineNr"> 802 </span>
 <span id="L803" class="LineNr"> 803 </span>d]
-<span id="L804" class="LineNr"> 804 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L51'>new-editor</a> s, <span class="Constant">0/left</span>, <span class="Constant">10/right</span>
+<span id="L804" class="LineNr"> 804 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L52'>new-editor</a> s, <span class="Constant">0/left</span>, <span class="Constant">10/right</span>
 <span id="L805" class="LineNr"> 805 </span>  <a href='002-typing.mu.html#L263'>editor-render</a> <a href='../081print.mu.html#L4'>screen</a>, e:&amp;:editor
 <span id="L806" class="LineNr"> 806 </span>  $clear-trace
 <span id="L807" class="LineNr"> 807 </span>  <span class="Comment"># position cursor right after empty line</span>
@@ -887,7 +887,7 @@ if ('onhashchange' in window) {
 <span id="L827" class="LineNr"> 827 </span>  <span class="Constant">local-scope</span>
 <span id="L828" class="LineNr"> 828 </span>  assume-screen <span class="Constant">10/width</span>, <span class="Constant">5/height</span>
 <span id="L829" class="LineNr"> 829 </span>  <span class="Comment"># initialize editor with a wrapping line</span>
-<span id="L830" class="LineNr"> 830 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L51'>new-editor</a> <span class="Constant">[abcdef]</span>, <span class="Constant">0/left</span>, <span class="Constant">5/right</span>
+<span id="L830" class="LineNr"> 830 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L52'>new-editor</a> <span class="Constant">[abcdef]</span>, <span class="Constant">0/left</span>, <span class="Constant">5/right</span>
 <span id="L831" class="LineNr"> 831 </span>  <a href='002-typing.mu.html#L263'>editor-render</a> <a href='../081print.mu.html#L4'>screen</a>, e
 <span id="L832" class="LineNr"> 832 </span>  $clear-trace
 <span id="L833" class="LineNr"> 833 </span>  screen-should-contain [
@@ -920,7 +920,7 @@ if ('onhashchange' in window) {
 <span id="L860" class="LineNr"> 860 </span>  <span class="Comment"># initialize editor with a wrapping line followed by a second line</span>
 <span id="L861" class="LineNr"> 861 </span>  s:text <span class="Special">&lt;-</span> new <span class="Constant">[abcdef</span>
 <span id="L862" class="LineNr"> 862 </span><span class="Constant">g]</span>
-<span id="L863" class="LineNr"> 863 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L51'>new-editor</a> s, <span class="Constant">0/left</span>, <span class="Constant">5/right</span>
+<span id="L863" class="LineNr"> 863 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L52'>new-editor</a> s, <span class="Constant">0/left</span>, <span class="Constant">5/right</span>
 <span id="L864" class="LineNr"> 864 </span>  <a href='002-typing.mu.html#L263'>editor-render</a> <a href='../081print.mu.html#L4'>screen</a>, e
 <span id="L865" class="LineNr"> 865 </span>  $clear-trace
 <span id="L866" class="LineNr"> 866 </span>  screen-should-contain [
@@ -953,7 +953,7 @@ if ('onhashchange' in window) {
 <span id="L893" class="LineNr"> 893 </span>  <span class="Comment"># initialize editor with a line on the verge of wrapping, followed by a second line</span>
 <span id="L894" class="LineNr"> 894 </span>  s:text <span class="Special">&lt;-</span> new <span class="Constant">[abcd</span>
 <span id="L895" class="LineNr"> 895 </span><span class="Constant">e]</span>
-<span id="L896" class="LineNr"> 896 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L51'>new-editor</a> s, <span class="Constant">0/left</span>, <span class="Constant">5/right</span>
+<span id="L896" class="LineNr"> 896 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L52'>new-editor</a> s, <span class="Constant">0/left</span>, <span class="Constant">5/right</span>
 <span id="L897" class="LineNr"> 897 </span>  <a href='002-typing.mu.html#L263'>editor-render</a> <a href='../081print.mu.html#L4'>screen</a>, e
 <span id="L898" class="LineNr"> 898 </span>  $clear-trace
 <span id="L899" class="LineNr"> 899 </span>  screen-should-contain [
@@ -989,7 +989,7 @@ if ('onhashchange' in window) {
 <span id="L929" class="LineNr"> 929 </span>  assume-screen <span class="Constant">10/width</span>, <span class="Constant">5/height</span>
 <span id="L930" class="LineNr"> 930 </span>  s:text <span class="Special">&lt;-</span> new <span class="Constant">[abc</span>
 <span id="L931" class="LineNr"> 931 </span><span class="Constant">def]</span>
-<span id="L932" class="LineNr"> 932 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L51'>new-editor</a> s, <span class="Constant">0/left</span>, <span class="Constant">10/right</span>
+<span id="L932" class="LineNr"> 932 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L52'>new-editor</a> s, <span class="Constant">0/left</span>, <span class="Constant">10/right</span>
 <span id="L933" class="LineNr"> 933 </span>  <a href='002-typing.mu.html#L263'>editor-render</a> <a href='../081print.mu.html#L4'>screen</a>, e
 <span id="L934" class="LineNr"> 934 </span>  $clear-trace
 <span id="L935" class="LineNr"> 935 </span>  assume-console [
@@ -1103,7 +1103,7 @@ if ('onhashchange' in window) {
 <span id="L1043" class="LineNr">1043 </span>  assume-screen <span class="Constant">10/width</span>, <span class="Constant">5/height</span>
 <span id="L1044" class="LineNr">1044 </span>  s:text <span class="Special">&lt;-</span> new <span class="Constant">[ab</span>
 <span id="L1045" class="LineNr">1045 </span><span class="Constant">def]</span>
-<span id="L1046" class="LineNr">1046 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L51'>new-editor</a> s, <span class="Constant">0/left</span>, <span class="Constant">10/right</span>
+<span id="L1046" class="LineNr">1046 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L52'>new-editor</a> s, <span class="Constant">0/left</span>, <span class="Constant">10/right</span>
 <span id="L1047" class="LineNr">1047 </span>  <a href='002-typing.mu.html#L263'>editor-render</a> <a href='../081print.mu.html#L4'>screen</a>, e
 <span id="L1048" class="LineNr">1048 </span>  $clear-trace
 <span id="L1049" class="LineNr">1049 </span>  assume-console [
@@ -1140,7 +1140,7 @@ if ('onhashchange' in window) {
 <span id="L1080" class="LineNr">1080 </span>  assume-screen <span class="Constant">10/width</span>, <span class="Constant">5/height</span>
 <span id="L1081" class="LineNr">1081 </span>  s:text <span class="Special">&lt;-</span> new [
 <span id="L1082" class="LineNr">1082 </span><span class="muRecipe">def</span>]
-<span id="L1083" class="LineNr">1083 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L51'>new-editor</a> s, <span class="Constant">0/left</span>, <span class="Constant">10/right</span>
+<span id="L1083" class="LineNr">1083 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L52'>new-editor</a> s, <span class="Constant">0/left</span>, <span class="Constant">10/right</span>
 <span id="L1084" class="LineNr">1084 </span>  <a href='002-typing.mu.html#L263'>editor-render</a> <a href='../081print.mu.html#L4'>screen</a>, e
 <span id="L1085" class="LineNr">1085 </span>  $clear-trace
 <span id="L1086" class="LineNr">1086 </span>  assume-console [
@@ -1179,7 +1179,7 @@ if ('onhashchange' in window) {
 <span id="L1119" class="LineNr">1119 </span>  s:text <span class="Special">&lt;-</span> new <span class="Constant">[abc</span>
 <span id="L1120" class="LineNr">1120 </span><span class="Constant">def</span>
 <span id="L1121" class="LineNr">1121 </span><span class="Constant">ghi]</span>
-<span id="L1122" class="LineNr">1122 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L51'>new-editor</a> s, <span class="Constant">0/left</span>, <span class="Constant">10/right</span>
+<span id="L1122" class="LineNr">1122 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L52'>new-editor</a> s, <span class="Constant">0/left</span>, <span class="Constant">10/right</span>
 <span id="L1123" class="LineNr">1123 </span>  <a href='002-typing.mu.html#L263'>editor-render</a> <a href='../081print.mu.html#L4'>screen</a>, e
 <span id="L1124" class="LineNr">1124 </span>  $clear-trace
 <span id="L1125" class="LineNr">1125 </span>  <span class="Comment"># click on the third line and hit up-arrow, so you end up just after a newline</span>
@@ -1219,7 +1219,7 @@ if ('onhashchange' in window) {
 <span id="L1159" class="LineNr">1159 </span>  assume-screen <span class="Constant">10/width</span>, <span class="Constant">5/height</span>
 <span id="L1160" class="LineNr">1160 </span>  s:text <span class="Special">&lt;-</span> new <span class="Constant">[abc</span>
 <span id="L1161" class="LineNr">1161 </span><span class="Constant">def]</span>
-<span id="L1162" class="LineNr">1162 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L51'>new-editor</a> s, <span class="Constant">0/left</span>, <span class="Constant">10/right</span>
+<span id="L1162" class="LineNr">1162 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L52'>new-editor</a> s, <span class="Constant">0/left</span>, <span class="Constant">10/right</span>
 <span id="L1163" class="LineNr">1163 </span>  <a href='002-typing.mu.html#L263'>editor-render</a> <a href='../081print.mu.html#L4'>screen</a>, e
 <span id="L1164" class="LineNr">1164 </span>  $clear-trace
 <span id="L1165" class="LineNr">1165 </span>  <span class="Comment"># cursor starts out at (1, 0)</span>
@@ -1323,7 +1323,7 @@ if ('onhashchange' in window) {
 <span id="L1263" class="LineNr">1263 </span>  assume-screen <span class="Constant">10/width</span>, <span class="Constant">5/height</span>
 <span id="L1264" class="LineNr">1264 </span>  s:text <span class="Special">&lt;-</span> new <span class="Constant">[abc</span>
 <span id="L1265" class="LineNr">1265 </span><span class="Constant">de]</span>
-<span id="L1266" class="LineNr">1266 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L51'>new-editor</a> s, <span class="Constant">0/left</span>, <span class="Constant">10/right</span>
+<span id="L1266" class="LineNr">1266 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L52'>new-editor</a> s, <span class="Constant">0/left</span>, <span class="Constant">10/right</span>
 <span id="L1267" class="LineNr">1267 </span>  <a href='002-typing.mu.html#L263'>editor-render</a> <a href='../081print.mu.html#L4'>screen</a>, e
 <span id="L1268" class="LineNr">1268 </span>  $clear-trace
 <span id="L1269" class="LineNr">1269 </span>  assume-console [
@@ -1362,7 +1362,7 @@ if ('onhashchange' in window) {
 <span id="L1302" class="LineNr">1302 </span>  assume-screen <span class="Constant">10/width</span>, <span class="Constant">5/height</span>
 <span id="L1303" class="LineNr">1303 </span>  s:text <span class="Special">&lt;-</span> new <span class="Constant">[123</span>
 <span id="L1304" class="LineNr">1304 </span><span class="Constant">456]</span>
-<span id="L1305" class="LineNr">1305 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L51'>new-editor</a> s, <span class="Constant">0/left</span>, <span class="Constant">10/right</span>
+<span id="L1305" class="LineNr">1305 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L52'>new-editor</a> s, <span class="Constant">0/left</span>, <span class="Constant">10/right</span>
 <span id="L1306" class="LineNr">1306 </span>  <a href='002-typing.mu.html#L263'>editor-render</a> <a href='../081print.mu.html#L4'>screen</a>, e
 <span id="L1307" class="LineNr">1307 </span>  $clear-trace
 <span id="L1308" class="LineNr">1308 </span>  <span class="Comment"># start on second line, press ctrl-a</span>
@@ -1436,7 +1436,7 @@ if ('onhashchange' in window) {
 <span id="L1376" class="LineNr">1376 </span>  assume-screen <span class="Constant">10/width</span>, <span class="Constant">5/height</span>
 <span id="L1377" class="LineNr">1377 </span>  s:text <span class="Special">&lt;-</span> new <span class="Constant">[123</span>
 <span id="L1378" class="LineNr">1378 </span><span class="Constant">456]</span>
-<span id="L1379" class="LineNr">1379 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L51'>new-editor</a> s, <span class="Constant">0/left</span>, <span class="Constant">10/right</span>
+<span id="L1379" class="LineNr">1379 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L52'>new-editor</a> s, <span class="Constant">0/left</span>, <span class="Constant">10/right</span>
 <span id="L1380" class="LineNr">1380 </span>  <a href='002-typing.mu.html#L263'>editor-render</a> <a href='../081print.mu.html#L4'>screen</a>, e
 <span id="L1381" class="LineNr">1381 </span>  $clear-trace
 <span id="L1382" class="LineNr">1382 </span>  <span class="Comment"># start on first line (no newline before), press ctrl-a</span>
@@ -1462,7 +1462,7 @@ if ('onhashchange' in window) {
 <span id="L1402" class="LineNr">1402 </span>  assume-screen <span class="Constant">10/width</span>, <span class="Constant">5/height</span>
 <span id="L1403" class="LineNr">1403 </span>  s:text <span class="Special">&lt;-</span> new <span class="Constant">[123</span>
 <span id="L1404" class="LineNr">1404 </span><span class="Constant">456]</span>
-<span id="L1405" class="LineNr">1405 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L51'>new-editor</a> s, <span class="Constant">0/left</span>, <span class="Constant">10/right</span>
+<span id="L1405" class="LineNr">1405 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L52'>new-editor</a> s, <span class="Constant">0/left</span>, <span class="Constant">10/right</span>
 <span id="L1406" class="LineNr">1406 </span>  $clear-trace
 <span id="L1407" class="LineNr">1407 </span>  <span class="Comment"># start on second line, press 'home'</span>
 <span id="L1408" class="LineNr">1408 </span>  assume-console [
@@ -1487,7 +1487,7 @@ if ('onhashchange' in window) {
 <span id="L1427" class="LineNr">1427 </span>  assume-screen <span class="Constant">10/width</span>, <span class="Constant">5/height</span>
 <span id="L1428" class="LineNr">1428 </span>  s:text <span class="Special">&lt;-</span> new <span class="Constant">[123</span>
 <span id="L1429" class="LineNr">1429 </span><span class="Constant">456]</span>
-<span id="L1430" class="LineNr">1430 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L51'>new-editor</a> s, <span class="Constant">0/left</span>, <span class="Constant">10/right</span>
+<span id="L1430" class="LineNr">1430 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L52'>new-editor</a> s, <span class="Constant">0/left</span>, <span class="Constant">10/right</span>
 <span id="L1431" class="LineNr">1431 </span>  <a href='002-typing.mu.html#L263'>editor-render</a> <a href='../081print.mu.html#L4'>screen</a>, e
 <span id="L1432" class="LineNr">1432 </span>  $clear-trace
 <span id="L1433" class="LineNr">1433 </span>  <span class="Comment"># start on first line (no newline before), press 'home'</span>
@@ -1515,7 +1515,7 @@ if ('onhashchange' in window) {
 <span id="L1455" class="LineNr">1455 </span>  assume-screen <span class="Constant">10/width</span>, <span class="Constant">5/height</span>
 <span id="L1456" class="LineNr">1456 </span>  s:text <span class="Special">&lt;-</span> new <span class="Constant">[123</span>
 <span id="L1457" class="LineNr">1457 </span><span class="Constant">456]</span>
-<span id="L1458" class="LineNr">1458 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L51'>new-editor</a> s, <span class="Constant">0/left</span>, <span class="Constant">10/right</span>
+<span id="L1458" class="LineNr">1458 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L52'>new-editor</a> s, <span class="Constant">0/left</span>, <span class="Constant">10/right</span>
 <span id="L1459" class="LineNr">1459 </span>  <a href='002-typing.mu.html#L263'>editor-render</a> <a href='../081print.mu.html#L4'>screen</a>, e
 <span id="L1460" class="LineNr">1460 </span>  $clear-trace
 <span id="L1461" class="LineNr">1461 </span>  <span class="Comment"># start on first line, press ctrl-e</span>
@@ -1606,7 +1606,7 @@ if ('onhashchange' in window) {
 <span id="L1546" class="LineNr">1546 </span>  assume-screen <span class="Constant">10/width</span>, <span class="Constant">5/height</span>
 <span id="L1547" class="LineNr">1547 </span>  s:text <span class="Special">&lt;-</span> new <span class="Constant">[123</span>
 <span id="L1548" class="LineNr">1548 </span><span class="Constant">456]</span>
-<span id="L1549" class="LineNr">1549 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L51'>new-editor</a> s, <span class="Constant">0/left</span>, <span class="Constant">10/right</span>
+<span id="L1549" class="LineNr">1549 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L52'>new-editor</a> s, <span class="Constant">0/left</span>, <span class="Constant">10/right</span>
 <span id="L1550" class="LineNr">1550 </span>  <a href='002-typing.mu.html#L263'>editor-render</a> <a href='../081print.mu.html#L4'>screen</a>, e
 <span id="L1551" class="LineNr">1551 </span>  $clear-trace
 <span id="L1552" class="LineNr">1552 </span>  <span class="Comment"># start on second line (no newline after), press ctrl-e</span>
@@ -1632,7 +1632,7 @@ if ('onhashchange' in window) {
 <span id="L1572" class="LineNr">1572 </span>  assume-screen <span class="Constant">10/width</span>, <span class="Constant">5/height</span>
 <span id="L1573" class="LineNr">1573 </span>  s:text <span class="Special">&lt;-</span> new <span class="Constant">[123</span>
 <span id="L1574" class="LineNr">1574 </span><span class="Constant">456]</span>
-<span id="L1575" class="LineNr">1575 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L51'>new-editor</a> s, <span class="Constant">0/left</span>, <span class="Constant">10/right</span>
+<span id="L1575" class="LineNr">1575 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L52'>new-editor</a> s, <span class="Constant">0/left</span>, <span class="Constant">10/right</span>
 <span id="L1576" class="LineNr">1576 </span>  <a href='002-typing.mu.html#L263'>editor-render</a> <a href='../081print.mu.html#L4'>screen</a>, e
 <span id="L1577" class="LineNr">1577 </span>  $clear-trace
 <span id="L1578" class="LineNr">1578 </span>  <span class="Comment"># start on first line, press 'end'</span>
@@ -1658,7 +1658,7 @@ if ('onhashchange' in window) {
 <span id="L1598" class="LineNr">1598 </span>  assume-screen <span class="Constant">10/width</span>, <span class="Constant">5/height</span>
 <span id="L1599" class="LineNr">1599 </span>  s:text <span class="Special">&lt;-</span> new <span class="Constant">[123</span>
 <span id="L1600" class="LineNr">1600 </span><span class="Constant">456]</span>
-<span id="L1601" class="LineNr">1601 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L51'>new-editor</a> s, <span class="Constant">0/left</span>, <span class="Constant">10/right</span>
+<span id="L1601" class="LineNr">1601 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L52'>new-editor</a> s, <span class="Constant">0/left</span>, <span class="Constant">10/right</span>
 <span id="L1602" class="LineNr">1602 </span>  <a href='002-typing.mu.html#L263'>editor-render</a> <a href='../081print.mu.html#L4'>screen</a>, e
 <span id="L1603" class="LineNr">1603 </span>  $clear-trace
 <span id="L1604" class="LineNr">1604 </span>  <span class="Comment"># start on second line (no newline after), press 'end'</span>
@@ -1686,7 +1686,7 @@ if ('onhashchange' in window) {
 <span id="L1626" class="LineNr">1626 </span>  assume-screen <span class="Constant">10/width</span>, <span class="Constant">5/height</span>
 <span id="L1627" class="LineNr">1627 </span>  s:text <span class="Special">&lt;-</span> new <span class="Constant">[123</span>
 <span id="L1628" class="LineNr">1628 </span><span class="Constant">456]</span>
-<span id="L1629" class="LineNr">1629 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L51'>new-editor</a> s, <span class="Constant">0/left</span>, <span class="Constant">10/right</span>
+<span id="L1629" class="LineNr">1629 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L52'>new-editor</a> s, <span class="Constant">0/left</span>, <span class="Constant">10/right</span>
 <span id="L1630" class="LineNr">1630 </span>  <span class="Comment"># start on second line, press ctrl-u</span>
 <span id="L1631" class="LineNr">1631 </span>  assume-console [
 <span id="L1632" class="LineNr">1632 </span>    left-click<span class="Constant"> 2</span>,<span class="Constant"> 2</span>
@@ -1749,7 +1749,7 @@ if ('onhashchange' in window) {
 <span id="L1689" class="LineNr">1689 </span>  assume-screen <span class="Constant">10/width</span>, <span class="Constant">5/height</span>
 <span id="L1690" class="LineNr">1690 </span>  s:text <span class="Special">&lt;-</span> new <span class="Constant">[123</span>
 <span id="L1691" class="LineNr">1691 </span><span class="Constant">456]</span>
-<span id="L1692" class="LineNr">1692 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L51'>new-editor</a> s, <span class="Constant">0/left</span>, <span class="Constant">10/right</span>
+<span id="L1692" class="LineNr">1692 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L52'>new-editor</a> s, <span class="Constant">0/left</span>, <span class="Constant">10/right</span>
 <span id="L1693" class="LineNr">1693 </span>  <span class="Comment"># start on first line (no newline before), press ctrl-u</span>
 <span id="L1694" class="LineNr">1694 </span>  assume-console [
 <span id="L1695" class="LineNr">1695 </span>    left-click<span class="Constant"> 1</span>,<span class="Constant"> 2</span>
@@ -1773,7 +1773,7 @@ if ('onhashchange' in window) {
 <span id="L1713" class="LineNr">1713 </span>  assume-screen <span class="Constant">10/width</span>, <span class="Constant">5/height</span>
 <span id="L1714" class="LineNr">1714 </span>  s:text <span class="Special">&lt;-</span> new <span class="Constant">[123</span>
 <span id="L1715" class="LineNr">1715 </span><span class="Constant">456]</span>
-<span id="L1716" class="LineNr">1716 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L51'>new-editor</a> s, <span class="Constant">0/left</span>, <span class="Constant">10/right</span>
+<span id="L1716" class="LineNr">1716 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L52'>new-editor</a> s, <span class="Constant">0/left</span>, <span class="Constant">10/right</span>
 <span id="L1717" class="LineNr">1717 </span>  <span class="Comment"># start past end of line, press ctrl-u</span>
 <span id="L1718" class="LineNr">1718 </span>  assume-console [
 <span id="L1719" class="LineNr">1719 </span>    left-click<span class="Constant"> 1</span>,<span class="Constant"> 3</span>
@@ -1797,7 +1797,7 @@ if ('onhashchange' in window) {
 <span id="L1737" class="LineNr">1737 </span>  assume-screen <span class="Constant">10/width</span>, <span class="Constant">5/height</span>
 <span id="L1738" class="LineNr">1738 </span>  s:text <span class="Special">&lt;-</span> new <span class="Constant">[123</span>
 <span id="L1739" class="LineNr">1739 </span><span class="Constant">456]</span>
-<span id="L1740" class="LineNr">1740 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L51'>new-editor</a> s, <span class="Constant">0/left</span>, <span class="Constant">10/right</span>
+<span id="L1740" class="LineNr">1740 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L52'>new-editor</a> s, <span class="Constant">0/left</span>, <span class="Constant">10/right</span>
 <span id="L1741" class="LineNr">1741 </span>  <span class="Comment"># start past end of final line, press ctrl-u</span>
 <span id="L1742" class="LineNr">1742 </span>  assume-console [
 <span id="L1743" class="LineNr">1743 </span>    left-click<span class="Constant"> 2</span>,<span class="Constant"> 3</span>
@@ -1823,7 +1823,7 @@ if ('onhashchange' in window) {
 <span id="L1763" class="LineNr">1763 </span>  assume-screen <span class="Constant">10/width</span>, <span class="Constant">5/height</span>
 <span id="L1764" class="LineNr">1764 </span>  s:text <span class="Special">&lt;-</span> new <span class="Constant">[123</span>
 <span id="L1765" class="LineNr">1765 </span><span class="Constant">456]</span>
-<span id="L1766" class="LineNr">1766 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L51'>new-editor</a> s, <span class="Constant">0/left</span>, <span class="Constant">10/right</span>
+<span id="L1766" class="LineNr">1766 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L52'>new-editor</a> s, <span class="Constant">0/left</span>, <span class="Constant">10/right</span>
 <span id="L1767" class="LineNr">1767 </span>  <span class="Comment"># start on first line, press ctrl-k</span>
 <span id="L1768" class="LineNr">1768 </span>  assume-console [
 <span id="L1769" class="LineNr">1769 </span>    left-click<span class="Constant"> 1</span>,<span class="Constant"> 1</span>
@@ -1878,7 +1878,7 @@ if ('onhashchange' in window) {
 <span id="L1818" class="LineNr">1818 </span>  assume-screen <span class="Constant">10/width</span>, <span class="Constant">5/height</span>
 <span id="L1819" class="LineNr">1819 </span>  s:text <span class="Special">&lt;-</span> new <span class="Constant">[123</span>
 <span id="L1820" class="LineNr">1820 </span><span class="Constant">456]</span>
-<span id="L1821" class="LineNr">1821 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L51'>new-editor</a> s, <span class="Constant">0/left</span>, <span class="Constant">10/right</span>
+<span id="L1821" class="LineNr">1821 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L52'>new-editor</a> s, <span class="Constant">0/left</span>, <span class="Constant">10/right</span>
 <span id="L1822" class="LineNr">1822 </span>  <span class="Comment"># start on second line (no newline after), press ctrl-k</span>
 <span id="L1823" class="LineNr">1823 </span>  assume-console [
 <span id="L1824" class="LineNr">1824 </span>    left-click<span class="Constant"> 2</span>,<span class="Constant"> 1</span>
@@ -1902,7 +1902,7 @@ if ('onhashchange' in window) {
 <span id="L1842" class="LineNr">1842 </span>  assume-screen <span class="Constant">10/width</span>, <span class="Constant">5/height</span>
 <span id="L1843" class="LineNr">1843 </span>  s:text <span class="Special">&lt;-</span> new <span class="Constant">[123</span>
 <span id="L1844" class="LineNr">1844 </span><span class="Constant">456]</span>
-<span id="L1845" class="LineNr">1845 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L51'>new-editor</a> s, <span class="Constant">0/left</span>, <span class="Constant">10/right</span>
+<span id="L1845" class="LineNr">1845 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L52'>new-editor</a> s, <span class="Constant">0/left</span>, <span class="Constant">10/right</span>
 <span id="L1846" class="LineNr">1846 </span>  <span class="Comment"># start at end of line</span>
 <span id="L1847" class="LineNr">1847 </span>  assume-console [
 <span id="L1848" class="LineNr">1848 </span>    left-click<span class="Constant"> 1</span>,<span class="Constant"> 2</span>
@@ -1926,7 +1926,7 @@ if ('onhashchange' in window) {
 <span id="L1866" class="LineNr">1866 </span>  assume-screen <span class="Constant">10/width</span>, <span class="Constant">5/height</span>
 <span id="L1867" class="LineNr">1867 </span>  s:text <span class="Special">&lt;-</span> new <span class="Constant">[123</span>
 <span id="L1868" class="LineNr">1868 </span><span class="Constant">456]</span>
-<span id="L1869" class="LineNr">1869 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L51'>new-editor</a> s, <span class="Constant">0/left</span>, <span class="Constant">10/right</span>
+<span id="L1869" class="LineNr">1869 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L52'>new-editor</a> s, <span class="Constant">0/left</span>, <span class="Constant">10/right</span>
 <span id="L1870" class="LineNr">1870 </span>  <span class="Comment"># start past end of line</span>
 <span id="L1871" class="LineNr">1871 </span>  assume-console [
 <span id="L1872" class="LineNr">1872 </span>    left-click<span class="Constant"> 1</span>,<span class="Constant"> 3</span>
@@ -1950,7 +1950,7 @@ if ('onhashchange' in window) {
 <span id="L1890" class="LineNr">1890 </span>  assume-screen <span class="Constant">10/width</span>, <span class="Constant">5/height</span>
 <span id="L1891" class="LineNr">1891 </span>  s:text <span class="Special">&lt;-</span> new <span class="Constant">[123</span>
 <span id="L1892" class="LineNr">1892 </span><span class="Constant">456]</span>
-<span id="L1893" class="LineNr">1893 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L51'>new-editor</a> s, <span class="Constant">0/left</span>, <span class="Constant">10/right</span>
+<span id="L1893" class="LineNr">1893 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L52'>new-editor</a> s, <span class="Constant">0/left</span>, <span class="Constant">10/right</span>
 <span id="L1894" class="LineNr">1894 </span>  <span class="Comment"># start at end of text</span>
 <span id="L1895" class="LineNr">1895 </span>  assume-console [
 <span id="L1896" class="LineNr">1896 </span>    left-click<span class="Constant"> 2</span>,<span class="Constant"> 2</span>
@@ -1974,7 +1974,7 @@ if ('onhashchange' in window) {
 <span id="L1914" class="LineNr">1914 </span>  assume-screen <span class="Constant">10/width</span>, <span class="Constant">5/height</span>
 <span id="L1915" class="LineNr">1915 </span>  s:text <span class="Special">&lt;-</span> new <span class="Constant">[123</span>
 <span id="L1916" class="LineNr">1916 </span><span class="Constant">456]</span>
-<span id="L1917" class="LineNr">1917 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L51'>new-editor</a> s, <span class="Constant">0/left</span>, <span class="Constant">10/right</span>
+<span id="L1917" class="LineNr">1917 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L52'>new-editor</a> s, <span class="Constant">0/left</span>, <span class="Constant">10/right</span>
 <span id="L1918" class="LineNr">1918 </span>  <span class="Comment"># start past end of text</span>
 <span id="L1919" class="LineNr">1919 </span>  assume-console [
 <span id="L1920" class="LineNr">1920 </span>    left-click<span class="Constant"> 2</span>,<span class="Constant"> 3</span>
@@ -2004,7 +2004,7 @@ if ('onhashchange' in window) {
 <span id="L1944" class="LineNr">1944 </span><span class="Constant">b</span>
 <span id="L1945" class="LineNr">1945 </span><span class="Constant">c</span>
 <span id="L1946" class="LineNr">1946 </span><span class="Constant">d]</span>
-<span id="L1947" class="LineNr">1947 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L51'>new-editor</a> s, <span class="Constant">0/left</span>, <span class="Constant">10/right</span>
+<span id="L1947" class="LineNr">1947 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L52'>new-editor</a> s, <span class="Constant">0/left</span>, <span class="Constant">10/right</span>
 <span id="L1948" class="LineNr">1948 </span>  <a href='002-typing.mu.html#L263'>editor-render</a> <a href='../081print.mu.html#L4'>screen</a>, e
 <span id="L1949" class="LineNr">1949 </span>  screen-should-contain [
 <span id="L1950" class="LineNr">1950 </span>   <span class="Constant"> .          .</span>
@@ -2083,7 +2083,7 @@ if ('onhashchange' in window) {
 <span id="L2023" class="LineNr">2023 </span><span class="Constant">g</span>
 <span id="L2024" class="LineNr">2024 </span><span class="Constant">h</span>
 <span id="L2025" class="LineNr">2025 </span><span class="Constant">i]</span>
-<span id="L2026" class="LineNr">2026 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L51'>new-editor</a> s, <span class="Constant">0/left</span>, <span class="Constant">5/right</span>
+<span id="L2026" class="LineNr">2026 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L52'>new-editor</a> s, <span class="Constant">0/left</span>, <span class="Constant">5/right</span>
 <span id="L2027" class="LineNr">2027 </span>  <a href='002-typing.mu.html#L263'>editor-render</a> <a href='../081print.mu.html#L4'>screen</a>, e
 <span id="L2028" class="LineNr">2028 </span>  screen-should-contain [
 <span id="L2029" class="LineNr">2029 </span>   <span class="Constant"> .          .</span>
@@ -2117,7 +2117,7 @@ if ('onhashchange' in window) {
 <span id="L2057" class="LineNr">2057 </span><span class="Constant">k</span>
 <span id="L2058" class="LineNr">2058 </span><span class="Constant">l</span>
 <span id="L2059" class="LineNr">2059 </span><span class="Constant">m]</span>
-<span id="L2060" class="LineNr">2060 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L51'>new-editor</a> s, <span class="Constant">0/left</span>, <span class="Constant">5/right</span>
+<span id="L2060" class="LineNr">2060 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L52'>new-editor</a> s, <span class="Constant">0/left</span>, <span class="Constant">5/right</span>
 <span id="L2061" class="LineNr">2061 </span>  <span class="Comment"># position cursor at last line, then try to move further down</span>
 <span id="L2062" class="LineNr">2062 </span>  assume-console [
 <span id="L2063" class="LineNr">2063 </span>    left-click<span class="Constant"> 3</span>,<span class="Constant"> 0</span>
@@ -2157,7 +2157,7 @@ if ('onhashchange' in window) {
 <span id="L2097" class="LineNr">2097 </span>  s:text <span class="Special">&lt;-</span> new <span class="Constant">[a</span>
 <span id="L2098" class="LineNr">2098 </span><span class="Constant">b</span>
 <span id="L2099" class="LineNr">2099 </span><span class="Constant">cdef]</span>
-<span id="L2100" class="LineNr">2100 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L51'>new-editor</a> s, <span class="Constant">0/left</span>, <span class="Constant">5/right</span>
+<span id="L2100" class="LineNr">2100 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L52'>new-editor</a> s, <span class="Constant">0/left</span>, <span class="Constant">5/right</span>
 <span id="L2101" class="LineNr">2101 </span>  <span class="Comment"># position cursor at end, type a character</span>
 <span id="L2102" class="LineNr">2102 </span>  assume-console [
 <span id="L2103" class="LineNr">2103 </span>    left-click<span class="Constant"> 3</span>,<span class="Constant"> 4</span>
@@ -2188,7 +2188,7 @@ if ('onhashchange' in window) {
 <span id="L2128" class="LineNr">2128 </span>  s:text <span class="Special">&lt;-</span> new <span class="Constant">[a</span>
 <span id="L2129" class="LineNr">2129 </span><span class="Constant">b</span>
 <span id="L2130" class="LineNr">2130 </span><span class="Constant">c]</span>
-<span id="L2131" class="LineNr">2131 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L51'>new-editor</a> s, <span class="Constant">0/left</span>, <span class="Constant">5/right</span>
+<span id="L2131" class="LineNr">2131 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L52'>new-editor</a> s, <span class="Constant">0/left</span>, <span class="Constant">5/right</span>
 <span id="L2132" class="LineNr">2132 </span>  assume-console [
 <span id="L2133" class="LineNr">2133 </span>    left-click<span class="Constant"> 3</span>,<span class="Constant"> 4</span>
 <span id="L2134" class="LineNr">2134 </span>    type [
@@ -2220,7 +2220,7 @@ if ('onhashchange' in window) {
 <span id="L2160" class="LineNr">2160 </span>  s:text <span class="Special">&lt;-</span> new <span class="Constant">[a</span>
 <span id="L2161" class="LineNr">2161 </span><span class="Constant">b</span>
 <span id="L2162" class="LineNr">2162 </span><span class="Constant">cdefgh]</span>
-<span id="L2163" class="LineNr">2163 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L51'>new-editor</a> s, <span class="Constant">0/left</span>, <span class="Constant">5/right</span>
+<span id="L2163" class="LineNr">2163 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L52'>new-editor</a> s, <span class="Constant">0/left</span>, <span class="Constant">5/right</span>
 <span id="L2164" class="LineNr">2164 </span>  <span class="Comment"># position cursor at end of screen and try to move right</span>
 <span id="L2165" class="LineNr">2165 </span>  assume-console [
 <span id="L2166" class="LineNr">2166 </span>    left-click<span class="Constant"> 3</span>,<span class="Constant"> 3</span>
@@ -2253,7 +2253,7 @@ if ('onhashchange' in window) {
 <span id="L2193" class="LineNr">2193 </span><span class="Constant">b</span>
 <span id="L2194" class="LineNr">2194 </span><span class="Constant">c</span>
 <span id="L2195" class="LineNr">2195 </span><span class="Constant">d]</span>
-<span id="L2196" class="LineNr">2196 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L51'>new-editor</a> s, <span class="Constant">0/left</span>, <span class="Constant">5/right</span>
+<span id="L2196" class="LineNr">2196 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L52'>new-editor</a> s, <span class="Constant">0/left</span>, <span class="Constant">5/right</span>
 <span id="L2197" class="LineNr">2197 </span>  <span class="Comment"># position cursor at end of screen and try to move right</span>
 <span id="L2198" class="LineNr">2198 </span>  assume-console [
 <span id="L2199" class="LineNr">2199 </span>    left-click<span class="Constant"> 3</span>,<span class="Constant"> 3</span>
@@ -2282,7 +2282,7 @@ if ('onhashchange' in window) {
 <span id="L2222" class="LineNr">2222 </span>  assume-screen <span class="Constant">10/width</span>, <span class="Constant">5/height</span>
 <span id="L2223" class="LineNr">2223 </span>  s:text <span class="Special">&lt;-</span> new <span class="Constant">[abc</span>
 <span id="L2224" class="LineNr">2224 </span><span class="Constant">de]</span>
-<span id="L2225" class="LineNr">2225 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L51'>new-editor</a> s, <span class="Constant">0/left</span>, <span class="Constant">10/right</span>
+<span id="L2225" class="LineNr">2225 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L52'>new-editor</a> s, <span class="Constant">0/left</span>, <span class="Constant">10/right</span>
 <span id="L2226" class="LineNr">2226 </span>  <a href='002-typing.mu.html#L263'>editor-render</a> <a href='../081print.mu.html#L4'>screen</a>, e
 <span id="L2227" class="LineNr">2227 </span>  $clear-trace
 <span id="L2228" class="LineNr">2228 </span>  <span class="Comment"># try to move down past end of text</span>
@@ -2355,7 +2355,7 @@ if ('onhashchange' in window) {
 <span id="L2295" class="LineNr">2295 </span><span class="Constant">e</span>
 <span id="L2296" class="LineNr">2296 </span><span class="Constant">f</span>
 <span id="L2297" class="LineNr">2297 </span><span class="Constant">g]</span>
-<span id="L2298" class="LineNr">2298 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L51'>new-editor</a> s, <span class="Constant">0/left</span>, <span class="Constant">5/right</span>
+<span id="L2298" class="LineNr">2298 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L52'>new-editor</a> s, <span class="Constant">0/left</span>, <span class="Constant">5/right</span>
 <span id="L2299" class="LineNr">2299 </span>  <a href='002-typing.mu.html#L263'>editor-render</a> <a href='../081print.mu.html#L4'>screen</a>, e
 <span id="L2300" class="LineNr">2300 </span>  <span class="Comment"># scroll down one page and one line</span>
 <span id="L2301" class="LineNr">2301 </span>  assume-console [
@@ -2386,7 +2386,7 @@ if ('onhashchange' in window) {
 <span id="L2326" class="LineNr">2326 </span><span class="Constant">b</span>
 <span id="L2327" class="LineNr">2327 </span><span class="Constant">c</span>
 <span id="L2328" class="LineNr">2328 </span><span class="Constant">d]</span>
-<span id="L2329" class="LineNr">2329 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L51'>new-editor</a> s, <span class="Constant">0/left</span>, <span class="Constant">10/right</span>
+<span id="L2329" class="LineNr">2329 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L52'>new-editor</a> s, <span class="Constant">0/left</span>, <span class="Constant">10/right</span>
 <span id="L2330" class="LineNr">2330 </span>  <a href='002-typing.mu.html#L263'>editor-render</a> <a href='../081print.mu.html#L4'>screen</a>, e
 <span id="L2331" class="LineNr">2331 </span>  screen-should-contain [
 <span id="L2332" class="LineNr">2332 </span>   <span class="Constant"> .          .</span>
@@ -2475,7 +2475,7 @@ if ('onhashchange' in window) {
 <span id="L2415" class="LineNr">2415 </span><span class="Constant">g</span>
 <span id="L2416" class="LineNr">2416 </span><span class="Constant">h</span>
 <span id="L2417" class="LineNr">2417 </span><span class="Constant">i]</span>
-<span id="L2418" class="LineNr">2418 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L51'>new-editor</a> s, <span class="Constant">0/left</span>, <span class="Constant">5/right</span>
+<span id="L2418" class="LineNr">2418 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L52'>new-editor</a> s, <span class="Constant">0/left</span>, <span class="Constant">5/right</span>
 <span id="L2419" class="LineNr">2419 </span>  <a href='002-typing.mu.html#L263'>editor-render</a> <a href='../081print.mu.html#L4'>screen</a>, e
 <span id="L2420" class="LineNr">2420 </span>  screen-should-contain [
 <span id="L2421" class="LineNr">2421 </span>   <span class="Constant"> .          .</span>
@@ -2521,7 +2521,7 @@ if ('onhashchange' in window) {
 <span id="L2461" class="LineNr">2461 </span><span class="Constant">k</span>
 <span id="L2462" class="LineNr">2462 </span><span class="Constant">l</span>
 <span id="L2463" class="LineNr">2463 </span><span class="Constant">m]</span>
-<span id="L2464" class="LineNr">2464 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L51'>new-editor</a> s, <span class="Constant">0/left</span>, <span class="Constant">5/right</span>
+<span id="L2464" class="LineNr">2464 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L52'>new-editor</a> s, <span class="Constant">0/left</span>, <span class="Constant">5/right</span>
 <span id="L2465" class="LineNr">2465 </span>  <a href='002-typing.mu.html#L263'>editor-render</a> <a href='../081print.mu.html#L4'>screen</a>, e
 <span id="L2466" class="LineNr">2466 </span>  <span class="Comment"># position cursor at top of second page</span>
 <span id="L2467" class="LineNr">2467 </span>  assume-console [
@@ -2596,7 +2596,7 @@ if ('onhashchange' in window) {
 <span id="L2536" class="LineNr">2536 </span><span class="Constant">g</span>
 <span id="L2537" class="LineNr">2537 </span><span class="Constant">h</span>
 <span id="L2538" class="LineNr">2538 </span><span class="Constant">i]</span>
-<span id="L2539" class="LineNr">2539 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L51'>new-editor</a> s, <span class="Constant">0/left</span>, <span class="Constant">6/right</span>
+<span id="L2539" class="LineNr">2539 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L52'>new-editor</a> s, <span class="Constant">0/left</span>, <span class="Constant">6/right</span>
 <span id="L2540" class="LineNr">2540 </span>  <a href='002-typing.mu.html#L263'>editor-render</a> <a href='../081print.mu.html#L4'>screen</a>, e
 <span id="L2541" class="LineNr">2541 </span>  screen-should-contain [
 <span id="L2542" class="LineNr">2542 </span>   <span class="Constant"> .          .</span>
@@ -2644,7 +2644,7 @@ if ('onhashchange' in window) {
 <span id="L2584" class="LineNr">2584 </span>c
 <span id="L2585" class="LineNr">2585 </span>d
 <span id="L2586" class="LineNr">2586 </span>e]
-<span id="L2587" class="LineNr">2587 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L51'>new-editor</a> s, <span class="Constant">0/left</span>, <span class="Constant">6/right</span>
+<span id="L2587" class="LineNr">2587 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L52'>new-editor</a> s, <span class="Constant">0/left</span>, <span class="Constant">6/right</span>
 <span id="L2588" class="LineNr">2588 </span>  <a href='002-typing.mu.html#L263'>editor-render</a> <a href='../081print.mu.html#L4'>screen</a>, e
 <span id="L2589" class="LineNr">2589 </span>  assume-console [
 <span id="L2590" class="LineNr">2590 </span>    press <a href='003-shortcuts.mu.html#L2789'>page-down</a>
@@ -2694,7 +2694,7 @@ if ('onhashchange' in window) {
 <span id="L2634" class="LineNr">2634 </span><span class="Constant">c</span>
 <span id="L2635" class="LineNr">2635 </span><span class="Constant">d</span>
 <span id="L2636" class="LineNr">2636 </span><span class="Constant">e]</span>
-<span id="L2637" class="LineNr">2637 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L51'>new-editor</a> s, <span class="Constant">0/left</span>, <span class="Constant">5/right</span>
+<span id="L2637" class="LineNr">2637 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L52'>new-editor</a> s, <span class="Constant">0/left</span>, <span class="Constant">5/right</span>
 <span id="L2638" class="LineNr">2638 </span>  <a href='002-typing.mu.html#L263'>editor-render</a> <a href='../081print.mu.html#L4'>screen</a>, e
 <span id="L2639" class="LineNr">2639 </span>  <span class="Comment"># position cursor at top of second page</span>
 <span id="L2640" class="LineNr">2640 </span>  assume-console [
@@ -2740,7 +2740,7 @@ if ('onhashchange' in window) {
 <span id="L2680" class="LineNr">2680 </span><span class="Constant">b</span>
 <span id="L2681" class="LineNr">2681 </span><span class="Constant">c</span>
 <span id="L2682" class="LineNr">2682 </span><span class="Constant">d]</span>
-<span id="L2683" class="LineNr">2683 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L51'>new-editor</a> s, <span class="Constant">0/left</span>, <span class="Constant">10/right</span>
+<span id="L2683" class="LineNr">2683 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L52'>new-editor</a> s, <span class="Constant">0/left</span>, <span class="Constant">10/right</span>
 <span id="L2684" class="LineNr">2684 </span>  <a href='002-typing.mu.html#L263'>editor-render</a> <a href='../081print.mu.html#L4'>screen</a>, e
 <span id="L2685" class="LineNr">2685 </span>  screen-should-contain [
 <span id="L2686" class="LineNr">2686 </span>   <span class="Constant"> .          .</span>
@@ -2790,7 +2790,7 @@ if ('onhashchange' in window) {
 <span id="L2730" class="LineNr">2730 </span><span class="Constant">b</span>
 <span id="L2731" class="LineNr">2731 </span><span class="Constant">c</span>
 <span id="L2732" class="LineNr">2732 </span><span class="Constant">d]</span>
-<span id="L2733" class="LineNr">2733 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L51'>new-editor</a> s, <span class="Constant">0/left</span>, <span class="Constant">10/right</span>
+<span id="L2733" class="LineNr">2733 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L52'>new-editor</a> s, <span class="Constant">0/left</span>, <span class="Constant">10/right</span>
 <span id="L2734" class="LineNr">2734 </span>  <a href='002-typing.mu.html#L263'>editor-render</a> <a href='../081print.mu.html#L4'>screen</a>, e
 <span id="L2735" class="LineNr">2735 </span>  screen-should-contain [
 <span id="L2736" class="LineNr">2736 </span>   <span class="Constant"> .          .</span>
@@ -2875,7 +2875,7 @@ if ('onhashchange' in window) {
 <span id="L2815" class="LineNr">2815 </span>  assume-screen <span class="Constant">10/width</span>, <span class="Constant">4/height</span>
 <span id="L2816" class="LineNr">2816 </span>  s:text <span class="Special">&lt;-</span> new <span class="Constant">[a</span>
 <span id="L2817" class="LineNr">2817 </span><span class="Constant">b]</span>
-<span id="L2818" class="LineNr">2818 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L51'>new-editor</a> s, <span class="Constant">0/left</span>, <span class="Constant">10/right</span>
+<span id="L2818" class="LineNr">2818 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L52'>new-editor</a> s, <span class="Constant">0/left</span>, <span class="Constant">10/right</span>
 <span id="L2819" class="LineNr">2819 </span>  <a href='002-typing.mu.html#L263'>editor-render</a> <a href='../081print.mu.html#L4'>screen</a>, e
 <span id="L2820" class="LineNr">2820 </span>  screen-should-contain [
 <span id="L2821" class="LineNr">2821 </span>   <span class="Constant"> .          .</span>
@@ -2908,7 +2908,7 @@ if ('onhashchange' in window) {
 <span id="L2848" class="LineNr">2848 </span><span class="Constant">b</span>
 <span id="L2849" class="LineNr">2849 </span><span class="Constant">cdefgh]</span>
 <span id="L2850" class="LineNr">2850 </span>  <span class="Comment"># editor screen triggers wrap of last line</span>
-<span id="L2851" class="LineNr">2851 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L51'>new-editor</a> s, <span class="Constant">0/left</span>, <span class="Constant">4/right</span>
+<span id="L2851" class="LineNr">2851 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L52'>new-editor</a> s, <span class="Constant">0/left</span>, <span class="Constant">4/right</span>
 <span id="L2852" class="LineNr">2852 </span>  <a href='002-typing.mu.html#L263'>editor-render</a> <a href='../081print.mu.html#L4'>screen</a>, e
 <span id="L2853" class="LineNr">2853 </span>  <span class="Comment"># some part of last line is not displayed</span>
 <span id="L2854" class="LineNr">2854 </span>  screen-should-contain [
@@ -2941,7 +2941,7 @@ if ('onhashchange' in window) {
 <span id="L2881" class="LineNr">2881 </span>  <span class="Comment"># and still has something left over</span>
 <span id="L2882" class="LineNr">2882 </span>  s:text <span class="Special">&lt;-</span> new <span class="Constant">[a</span>
 <span id="L2883" class="LineNr">2883 </span><span class="Constant">bcdefgh]</span>
-<span id="L2884" class="LineNr">2884 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L51'>new-editor</a> s, <span class="Constant">0/left</span>, <span class="Constant">4/right</span>
+<span id="L2884" class="LineNr">2884 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L52'>new-editor</a> s, <span class="Constant">0/left</span>, <span class="Constant">4/right</span>
 <span id="L2885" class="LineNr">2885 </span>  <a href='002-typing.mu.html#L263'>editor-render</a> <a href='../081print.mu.html#L4'>screen</a>, e
 <span id="L2886" class="LineNr">2886 </span>  <span class="Comment"># some part of last line is not displayed</span>
 <span id="L2887" class="LineNr">2887 </span>  screen-should-contain [
@@ -2975,7 +2975,7 @@ if ('onhashchange' in window) {
 <span id="L2915" class="LineNr">2915 </span><span class="Constant">b</span>
 <span id="L2916" class="LineNr">2916 </span><span class="Constant">c</span>
 <span id="L2917" class="LineNr">2917 </span><span class="Constant">d]</span>
-<span id="L2918" class="LineNr">2918 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L51'>new-editor</a> s, <span class="Constant">0/left</span>, <span class="Constant">10/right</span>
+<span id="L2918" class="LineNr">2918 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L52'>new-editor</a> s, <span class="Constant">0/left</span>, <span class="Constant">10/right</span>
 <span id="L2919" class="LineNr">2919 </span>  <a href='002-typing.mu.html#L263'>editor-render</a> <a href='../081print.mu.html#L4'>screen</a>, e
 <span id="L2920" class="LineNr">2920 </span>  screen-should-contain [
 <span id="L2921" class="LineNr">2921 </span>   <span class="Constant"> .          .</span>
@@ -3075,7 +3075,7 @@ if ('onhashchange' in window) {
 <span id="L3015" class="LineNr">3015 </span><span class="Constant">f</span>
 <span id="L3016" class="LineNr">3016 </span><span class="Constant">g</span>
 <span id="L3017" class="LineNr">3017 </span><span class="Constant">h]</span>
-<span id="L3018" class="LineNr">3018 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L51'>new-editor</a> s, <span class="Constant">0/left</span>, <span class="Constant">10/right</span>
+<span id="L3018" class="LineNr">3018 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L52'>new-editor</a> s, <span class="Constant">0/left</span>, <span class="Constant">10/right</span>
 <span id="L3019" class="LineNr">3019 </span>  <a href='002-typing.mu.html#L263'>editor-render</a> <a href='../081print.mu.html#L4'>screen</a>, e
 <span id="L3020" class="LineNr">3020 </span>  screen-should-contain [
 <span id="L3021" class="LineNr">3021 </span>   <span class="Constant"> .          .</span>
@@ -3144,7 +3144,7 @@ if ('onhashchange' in window) {
 <span id="L3084" class="LineNr">3084 </span><span class="Constant">n</span>
 <span id="L3085" class="LineNr">3085 </span><span class="Constant">o]</span>
 <span id="L3086" class="LineNr">3086 </span>  <span class="Comment"># editor screen triggers wrap of last line</span>
-<span id="L3087" class="LineNr">3087 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L51'>new-editor</a> s, <span class="Constant">0/left</span>, <span class="Constant">4/right</span>
+<span id="L3087" class="LineNr">3087 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L52'>new-editor</a> s, <span class="Constant">0/left</span>, <span class="Constant">4/right</span>
 <span id="L3088" class="LineNr">3088 </span>  <a href='002-typing.mu.html#L263'>editor-render</a> <a href='../081print.mu.html#L4'>screen</a>, e
 <span id="L3089" class="LineNr">3089 </span>  <span class="Comment"># some part of last line is not displayed</span>
 <span id="L3090" class="LineNr">3090 </span>  screen-should-contain [
@@ -3199,7 +3199,7 @@ if ('onhashchange' in window) {
 <span id="L3139" class="LineNr">3139 </span>  <span class="Comment"># and still has something left over</span>
 <span id="L3140" class="LineNr">3140 </span>  s:text <span class="Special">&lt;-</span> new <span class="Constant">[a</span>
 <span id="L3141" class="LineNr">3141 </span><span class="Constant">bcdefgh]</span>
-<span id="L3142" class="LineNr">3142 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L51'>new-editor</a> s, <span class="Constant">0/left</span>, <span class="Constant">4/right</span>
+<span id="L3142" class="LineNr">3142 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L52'>new-editor</a> s, <span class="Constant">0/left</span>, <span class="Constant">4/right</span>
 <span id="L3143" class="LineNr">3143 </span>  <a href='002-typing.mu.html#L263'>editor-render</a> <a href='../081print.mu.html#L4'>screen</a>, e
 <span id="L3144" class="LineNr">3144 </span>  <span class="Comment"># some part of last line is not displayed</span>
 <span id="L3145" class="LineNr">3145 </span>  screen-should-contain [
@@ -3251,7 +3251,7 @@ if ('onhashchange' in window) {
 <span id="L3191" class="LineNr">3191 </span><span class="Constant">gxx</span>
 <span id="L3192" class="LineNr">3192 </span><span class="Constant">hxx</span>
 <span id="L3193" class="LineNr">3193 </span><span class="Constant">]</span>
-<span id="L3194" class="LineNr">3194 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L51'>new-editor</a> s, <span class="Constant">0/left</span>, <span class="Constant">4/right</span>
+<span id="L3194" class="LineNr">3194 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L52'>new-editor</a> s, <span class="Constant">0/left</span>, <span class="Constant">4/right</span>
 <span id="L3195" class="LineNr">3195 </span>  <a href='002-typing.mu.html#L263'>editor-render</a> <a href='../081print.mu.html#L4'>screen</a>, e
 <span id="L3196" class="LineNr">3196 </span>  screen-should-contain [
 <span id="L3197" class="LineNr">3197 </span>   <span class="Constant"> .          .</span>
@@ -3311,7 +3311,7 @@ if ('onhashchange' in window) {
 <span id="L3251" class="LineNr">3251 </span>fxy
 <span id="L3252" class="LineNr">3252 </span>gxy
 <span id="L3253" class="LineNr">3253 </span>]
-<span id="L3254" class="LineNr">3254 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L51'>new-editor</a> s, <span class="Constant">0/left</span>, <span class="Constant">4/right</span>
+<span id="L3254" class="LineNr">3254 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L52'>new-editor</a> s, <span class="Constant">0/left</span>, <span class="Constant">4/right</span>
 <span id="L3255" class="LineNr">3255 </span>  <a href='002-typing.mu.html#L263'>editor-render</a> <a href='../081print.mu.html#L4'>screen</a>, e
 <span id="L3256" class="LineNr">3256 </span>  screen-should-contain [
 <span id="L3257" class="LineNr">3257 </span>   <span class="Constant"> .          .</span>
diff --git a/html/edit/004-programming-environment.mu.html b/html/edit/004-programming-environment.mu.html
index 31bf0534..e543a1f1 100644
--- a/html/edit/004-programming-environment.mu.html
+++ b/html/edit/004-programming-environment.mu.html
@@ -68,7 +68,7 @@ if ('onhashchange' in window) {
 <span id="L7" class="LineNr">  7 </span>  <span class="Constant">local-scope</span>
 <span id="L8" class="LineNr">  8 </span>  open-console
 <span id="L9" class="LineNr">  9 </span>  env:&amp;:environment <span class="Special">&lt;-</span> <a href='004-programming-environment.mu.html#L21'>new-programming-environment</a> <span class="Constant">0/filesystem</span>, <span class="Constant">0/screen</span>
-<span id="L10" class="LineNr"> 10 </span>  <a href='004-programming-environment.mu.html#L445'>render-all</a> <span class="Constant">0/screen</span>, env, <a href='001-editor.mu.html#L122'>render</a>
+<span id="L10" class="LineNr"> 10 </span>  <a href='004-programming-environment.mu.html#L445'>render-all</a> <span class="Constant">0/screen</span>, env, <a href='001-editor.mu.html#L123'>render</a>
 <span id="L11" class="LineNr"> 11 </span>  <a href='004-programming-environment.mu.html#L39'>event-loop</a> <span class="Constant">0/screen</span>, <span class="Constant">0/console</span>, env, <span class="Constant">0/filesystem</span>
 <span id="L12" class="LineNr"> 12 </span>  <span class="Comment"># never gets here</span>
 <span id="L13" class="LineNr"> 13 </span>]
@@ -87,10 +87,10 @@ if ('onhashchange' in window) {
 <span id="L26" class="LineNr"> 26 </span>  <span class="Comment"># recipe editor on the left</span>
 <span id="L27" class="LineNr"> 27 </span>  initial-recipe-contents:text <span class="Special">&lt;-</span> <a href='../088file.mu.html#L38'>slurp</a> <a href='../088file.mu.html#L11'>resources</a>, <span class="Constant">[lesson/recipes.mu]</span>  <span class="Comment"># ignore errors</span>
 <span id="L28" class="LineNr"> 28 </span>  divider:num, _ <span class="Special">&lt;-</span> divide-with-remainder width,<span class="Constant"> 2</span>
-<span id="L29" class="LineNr"> 29 </span>  recipes:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L51'>new-editor</a> initial-recipe-contents, <span class="Constant">0/left</span>, divider/right
+<span id="L29" class="LineNr"> 29 </span>  recipes:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L52'>new-editor</a> initial-recipe-contents, <span class="Constant">0/left</span>, divider/right
 <span id="L30" class="LineNr"> 30 </span>  <span class="Comment"># sandbox editor on the right</span>
 <span id="L31" class="LineNr"> 31 </span>  sandbox-left:num <span class="Special">&lt;-</span> add divider,<span class="Constant"> 1</span>
-<span id="L32" class="LineNr"> 32 </span>  current-sandbox:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L51'>new-editor</a> test-sandbox-editor-contents, sandbox-left, width/right
+<span id="L32" class="LineNr"> 32 </span>  current-sandbox:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L52'>new-editor</a> test-sandbox-editor-contents, sandbox-left, width/right
 <span id="L33" class="LineNr"> 33 </span>  *result <span class="Special">&lt;-</span> put *result, <span class="Constant">recipes:offset</span>, recipes
 <span id="L34" class="LineNr"> 34 </span>  *result <span class="Special">&lt;-</span> put *result, <span class="Constant">current-sandbox:offset</span>, current-sandbox
 <span id="L35" class="LineNr"> 35 </span>  *result <span class="Special">&lt;-</span> put *result, <span class="Constant">sandbox-in-focus?:offset</span>, <span class="Constant">0/false</span>
@@ -185,14 +185,14 @@ if ('onhashchange' in window) {
 <span id="L124" class="LineNr">124 </span>          <span class="Delimiter">{</span>
 <span id="L125" class="LineNr">125 </span>            <span class="muControl">break-unless</span> render-all-on-no-more-events?
 <span id="L126" class="LineNr">126 </span>            <span class="Comment"># no more events, and we have to force render</span>
-<span id="L127" class="LineNr">127 </span>            <a href='../081print.mu.html#L4'>screen</a> <span class="Special">&lt;-</span> <a href='004-programming-environment.mu.html#L445'>render-all</a> <a href='../081print.mu.html#L4'>screen</a>, env, <a href='001-editor.mu.html#L122'>render</a>
+<span id="L127" class="LineNr">127 </span>            <a href='../081print.mu.html#L4'>screen</a> <span class="Special">&lt;-</span> <a href='004-programming-environment.mu.html#L445'>render-all</a> <a href='../081print.mu.html#L4'>screen</a>, env, <a href='001-editor.mu.html#L123'>render</a>
 <span id="L128" class="LineNr">128 </span>            render-all-on-no-more-events? <span class="Special">&lt;-</span> copy <span class="Constant">0/false</span>
 <span id="L129" class="LineNr">129 </span>            <span class="muControl">jump</span> <span class="Constant">+finish-event</span>
 <span id="L130" class="LineNr">130 </span>          <span class="Delimiter">}</span>
 <span id="L131" class="LineNr">131 </span>          <span class="Comment"># no more events, no force render</span>
 <span id="L132" class="LineNr">132 </span>          <span class="Delimiter">{</span>
 <span id="L133" class="LineNr">133 </span>            <span class="muControl">break-unless</span> render?
-<span id="L134" class="LineNr">134 </span>            <a href='../081print.mu.html#L4'>screen</a> <span class="Special">&lt;-</span> <a href='004-programming-environment.mu.html#L477'>render-recipes</a> <a href='../081print.mu.html#L4'>screen</a>, env, <a href='001-editor.mu.html#L122'>render</a>
+<span id="L134" class="LineNr">134 </span>            <a href='../081print.mu.html#L4'>screen</a> <span class="Special">&lt;-</span> <a href='004-programming-environment.mu.html#L477'>render-recipes</a> <a href='../081print.mu.html#L4'>screen</a>, env, <a href='001-editor.mu.html#L123'>render</a>
 <span id="L135" class="LineNr">135 </span>            <span class="muControl">jump</span> <span class="Constant">+finish-event</span>
 <span id="L136" class="LineNr">136 </span>          <span class="Delimiter">}</span>
 <span id="L137" class="LineNr">137 </span>        <span class="Delimiter">}</span>
@@ -213,14 +213,14 @@ if ('onhashchange' in window) {
 <span id="L152" class="LineNr">152 </span>          <span class="Delimiter">{</span>
 <span id="L153" class="LineNr">153 </span>            <span class="muControl">break-unless</span> render-all-on-no-more-events?
 <span id="L154" class="LineNr">154 </span>            <span class="Comment"># no more events, and we have to force render</span>
-<span id="L155" class="LineNr">155 </span>            <a href='../081print.mu.html#L4'>screen</a> <span class="Special">&lt;-</span> <a href='004-programming-environment.mu.html#L445'>render-all</a> <a href='../081print.mu.html#L4'>screen</a>, env, <a href='001-editor.mu.html#L122'>render</a>
+<span id="L155" class="LineNr">155 </span>            <a href='../081print.mu.html#L4'>screen</a> <span class="Special">&lt;-</span> <a href='004-programming-environment.mu.html#L445'>render-all</a> <a href='../081print.mu.html#L4'>screen</a>, env, <a href='001-editor.mu.html#L123'>render</a>
 <span id="L156" class="LineNr">156 </span>            render-all-on-no-more-events? <span class="Special">&lt;-</span> copy <span class="Constant">0/false</span>
 <span id="L157" class="LineNr">157 </span>            <span class="muControl">jump</span> <span class="Constant">+finish-event</span>
 <span id="L158" class="LineNr">158 </span>          <span class="Delimiter">}</span>
 <span id="L159" class="LineNr">159 </span>          <span class="Comment"># no more events, no force render</span>
 <span id="L160" class="LineNr">160 </span>          <span class="Delimiter">{</span>
 <span id="L161" class="LineNr">161 </span>            <span class="muControl">break-unless</span> render?
-<span id="L162" class="LineNr">162 </span>            <a href='../081print.mu.html#L4'>screen</a> <span class="Special">&lt;-</span> <a href='004-programming-environment.mu.html#L496'>render-sandbox-side</a> <a href='../081print.mu.html#L4'>screen</a>, env, <a href='001-editor.mu.html#L122'>render</a>
+<span id="L162" class="LineNr">162 </span>            <a href='../081print.mu.html#L4'>screen</a> <span class="Special">&lt;-</span> <a href='004-programming-environment.mu.html#L496'>render-sandbox-side</a> <a href='../081print.mu.html#L4'>screen</a>, env, <a href='001-editor.mu.html#L123'>render</a>
 <span id="L163" class="LineNr">163 </span>            <span class="muControl">jump</span> <span class="Constant">+finish-event</span>
 <span id="L164" class="LineNr">164 </span>          <span class="Delimiter">}</span>
 <span id="L165" class="LineNr">165 </span>        <span class="Delimiter">}</span>
@@ -381,7 +381,7 @@ if ('onhashchange' in window) {
 <span id="L320" class="LineNr">320 </span>    ]
 <span id="L321" class="LineNr">321 </span>  ]
 <span id="L322" class="LineNr">322 </span>  env:&amp;:environment <span class="Special">&lt;-</span> <a href='004-programming-environment.mu.html#L21'>new-programming-environment</a> <a href='../088file.mu.html#L11'>resources</a>, <a href='../081print.mu.html#L4'>screen</a>, <span class="Constant">[def]</span>  <span class="Comment"># contents of sandbox</span>
-<span id="L323" class="LineNr">323 </span>  <a href='004-programming-environment.mu.html#L445'>render-all</a> <a href='../081print.mu.html#L4'>screen</a>, env, <a href='001-editor.mu.html#L122'>render</a>
+<span id="L323" class="LineNr">323 </span>  <a href='004-programming-environment.mu.html#L445'>render-all</a> <a href='../081print.mu.html#L4'>screen</a>, env, <a href='001-editor.mu.html#L123'>render</a>
 <span id="L324" class="LineNr">324 </span>  <span class="Comment"># type one letter in each of them</span>
 <span id="L325" class="LineNr">325 </span>  assume-console [
 <span id="L326" class="LineNr">326 </span>    left-click<span class="Constant"> 1</span>,<span class="Constant"> 1</span>
@@ -431,7 +431,7 @@ if ('onhashchange' in window) {
 <span id="L370" class="LineNr">370 </span>    ]
 <span id="L371" class="LineNr">371 </span>  ]
 <span id="L372" class="LineNr">372 </span>  env:&amp;:environment <span class="Special">&lt;-</span> <a href='004-programming-environment.mu.html#L21'>new-programming-environment</a> <a href='../088file.mu.html#L11'>resources</a>, <a href='../081print.mu.html#L4'>screen</a>, <span class="Constant">[def]</span>
-<span id="L373" class="LineNr">373 </span>  <a href='004-programming-environment.mu.html#L445'>render-all</a> <a href='../081print.mu.html#L4'>screen</a>, env, <a href='001-editor.mu.html#L122'>render</a>
+<span id="L373" class="LineNr">373 </span>  <a href='004-programming-environment.mu.html#L445'>render-all</a> <a href='../081print.mu.html#L4'>screen</a>, env, <a href='001-editor.mu.html#L123'>render</a>
 <span id="L374" class="LineNr">374 </span>  <span class="Comment"># initialize programming environment and highlight cursor</span>
 <span id="L375" class="LineNr">375 </span>  assume-console <span class="Constant">[]</span>
 <span id="L376" class="LineNr">376 </span>  run [
@@ -476,7 +476,7 @@ if ('onhashchange' in window) {
 <span id="L415" class="LineNr">415 </span>  test-sandbox-editor-contents:text <span class="Special">&lt;-</span> new <span class="Constant">[abc</span>
 <span id="L416" class="LineNr">416 </span><span class="Constant">def]</span>
 <span id="L417" class="LineNr">417 </span>  env:&amp;:environment <span class="Special">&lt;-</span> <a href='004-programming-environment.mu.html#L21'>new-programming-environment</a> <a href='../088file.mu.html#L11'>resources</a>, <a href='../081print.mu.html#L4'>screen</a>, test-sandbox-editor-contents
-<span id="L418" class="LineNr">418 </span>  <a href='004-programming-environment.mu.html#L445'>render-all</a> <a href='../081print.mu.html#L4'>screen</a>, env, <a href='001-editor.mu.html#L122'>render</a>
+<span id="L418" class="LineNr">418 </span>  <a href='004-programming-environment.mu.html#L445'>render-all</a> <a href='../081print.mu.html#L4'>screen</a>, env, <a href='001-editor.mu.html#L123'>render</a>
 <span id="L419" class="LineNr">419 </span>  screen-should-contain [
 <span id="L420" class="LineNr">420 </span>   <span class="Constant"> .           run (F4)           .</span>
 <span id="L421" class="LineNr">421 </span>   <span class="Constant"> .               ╎abc           .</span>
@@ -550,7 +550,7 @@ if ('onhashchange' in window) {
 <span id="L489" class="LineNr">489 </span>  <span class="Comment"># draw dotted line after recipes</span>
 <span id="L490" class="LineNr">490 </span>  <a href='002-typing.mu.html#L1056'>draw-horizontal</a> <a href='../081print.mu.html#L4'>screen</a>, row, left, right, <span class="Constant">9480/horizontal-dotted</span>
 <span id="L491" class="LineNr">491 </span>  row <span class="Special">&lt;-</span> add row,<span class="Constant"> 1</span>
-<span id="L492" class="LineNr">492 </span>  <a href='001-editor.mu.html#L223'>clear-screen-from</a> <a href='../081print.mu.html#L4'>screen</a>, row, left, left, right
+<span id="L492" class="LineNr">492 </span>  <a href='001-editor.mu.html#L224'>clear-screen-from</a> <a href='../081print.mu.html#L4'>screen</a>, row, left, left, right
 <span id="L493" class="LineNr">493 </span>]
 <span id="L494" class="LineNr">494 </span>
 <span id="L495" class="LineNr">495 </span><span class="Comment"># replaced in a later layer</span>
@@ -566,7 +566,7 @@ if ('onhashchange' in window) {
 <span id="L505" class="LineNr">505 </span>  <span class="Comment"># draw solid line after code (you'll see why in later layers)</span>
 <span id="L506" class="LineNr">506 </span>  <a href='002-typing.mu.html#L1056'>draw-horizontal</a> <a href='../081print.mu.html#L4'>screen</a>, row, left, right
 <span id="L507" class="LineNr">507 </span>  row <span class="Special">&lt;-</span> add row,<span class="Constant"> 1</span>
-<span id="L508" class="LineNr">508 </span>  <a href='001-editor.mu.html#L223'>clear-screen-from</a> <a href='../081print.mu.html#L4'>screen</a>, row, left, left, right
+<span id="L508" class="LineNr">508 </span>  <a href='001-editor.mu.html#L224'>clear-screen-from</a> <a href='../081print.mu.html#L4'>screen</a>, row, left, left, right
 <span id="L509" class="LineNr">509 </span>]
 <span id="L510" class="LineNr">510 </span>
 <span id="L511" class="LineNr">511 </span><span class="muRecipe">def</span> <a href='004-programming-environment.mu.html#L511'>update-cursor</a> <a href='../081print.mu.html#L4'>screen</a>:&amp;:<a href='../081print.mu.html#L4'>screen</a>, recipes:&amp;:editor, current-sandbox:&amp;:editor, sandbox-in-focus?:bool, env:&amp;:environment<span class="muRecipe"> -&gt; </span><a href='../081print.mu.html#L4'>screen</a>:&amp;:<a href='../081print.mu.html#L4'>screen</a> [
@@ -655,7 +655,7 @@ if ('onhashchange' in window) {
 <span id="L594" class="LineNr">594 </span>  <span class="Delimiter">{</span>
 <span id="L595" class="LineNr">595 </span>    redraw-screen?:bool <span class="Special">&lt;-</span> equal c, <span class="Constant">12/ctrl-l</span>
 <span id="L596" class="LineNr">596 </span>    <span class="muControl">break-unless</span> redraw-screen?
-<span id="L597" class="LineNr">597 </span>    <a href='../081print.mu.html#L4'>screen</a> <span class="Special">&lt;-</span> <a href='004-programming-environment.mu.html#L445'>render-all</a> <a href='../081print.mu.html#L4'>screen</a>, env:&amp;:environment, <a href='001-editor.mu.html#L122'>render</a>
+<span id="L597" class="LineNr">597 </span>    <a href='../081print.mu.html#L4'>screen</a> <span class="Special">&lt;-</span> <a href='004-programming-environment.mu.html#L445'>render-all</a> <a href='../081print.mu.html#L4'>screen</a>, env:&amp;:environment, <a href='001-editor.mu.html#L123'>render</a>
 <span id="L598" class="LineNr">598 </span>    <a href='../081print.mu.html#L53'>sync-screen</a> <a href='../081print.mu.html#L4'>screen</a>
 <span id="L599" class="LineNr">599 </span>    <span class="muControl">loop</span> <span class="Constant">+next-event</span>
 <span id="L600" class="LineNr">600 </span>  <span class="Delimiter">}</span>
diff --git a/html/edit/005-sandbox.mu.html b/html/edit/005-sandbox.mu.html
index 5c940763..7f27f164 100644
--- a/html/edit/005-sandbox.mu.html
+++ b/html/edit/005-sandbox.mu.html
@@ -73,7 +73,7 @@ if ('onhashchange' in window) {
 <span id="L12" class="LineNr">  12 </span>  open-console
 <span id="L13" class="LineNr">  13 </span>  env:&amp;:environment <span class="Special">&lt;-</span> <a href='004-programming-environment.mu.html#L21'>new-programming-environment</a> <span class="Constant">0/filesystem</span>, <span class="Constant">0/screen</span>
 <span id="L14" class="LineNr">  14 </span>  env <span class="Special">&lt;-</span> <a href='005-sandbox.mu.html#L417'>restore-sandboxes</a> env
-<span id="L15" class="LineNr">  15 </span>  <a href='004-programming-environment.mu.html#L445'>render-all</a> <span class="Constant">0/screen</span>, env, <a href='001-editor.mu.html#L122'>render</a>
+<span id="L15" class="LineNr">  15 </span>  <a href='004-programming-environment.mu.html#L445'>render-all</a> <span class="Constant">0/screen</span>, env, <a href='001-editor.mu.html#L123'>render</a>
 <span id="L16" class="LineNr">  16 </span>  <a href='004-programming-environment.mu.html#L39'>event-loop</a> <span class="Constant">0/screen</span>, <span class="Constant">0/console</span>, env, <span class="Constant">0/filesystem</span>
 <span id="L17" class="LineNr">  17 </span>  <span class="Comment"># never gets here</span>
 <span id="L18" class="LineNr">  18 </span>]
@@ -191,7 +191,7 @@ if ('onhashchange' in window) {
 <span id="L130" class="LineNr"> 130 </span>    <a href='../081print.mu.html#L4'>screen</a> <span class="Special">&lt;-</span> <a href='005-sandbox.mu.html#L208'>update-status</a> <a href='../081print.mu.html#L4'>screen</a>, <span class="Constant">[running...       ]</span>, <span class="Constant">245/grey</span>
 <span id="L131" class="LineNr"> 131 </span>    error?:bool <span class="Special">&lt;-</span> <a href='005-sandbox.mu.html#L143'>run-sandboxes</a> env, <a href='../088file.mu.html#L11'>resources</a>, <a href='../081print.mu.html#L4'>screen</a>
 <span id="L132" class="LineNr"> 132 </span>    <span class="Comment"># F4 might update warnings and results on both sides</span>
-<span id="L133" class="LineNr"> 133 </span>    <a href='../081print.mu.html#L4'>screen</a> <span class="Special">&lt;-</span> <a href='004-programming-environment.mu.html#L445'>render-all</a> <a href='../081print.mu.html#L4'>screen</a>, env, <a href='001-editor.mu.html#L122'>render</a>
+<span id="L133" class="LineNr"> 133 </span>    <a href='../081print.mu.html#L4'>screen</a> <span class="Special">&lt;-</span> <a href='004-programming-environment.mu.html#L445'>render-all</a> <a href='../081print.mu.html#L4'>screen</a>, env, <a href='001-editor.mu.html#L123'>render</a>
 <span id="L134" class="LineNr"> 134 </span>    <span class="Delimiter">{</span>
 <span id="L135" class="LineNr"> 135 </span>      <span class="muControl">break-if</span> error?
 <span id="L136" class="LineNr"> 136 </span>      <a href='../081print.mu.html#L4'>screen</a> <span class="Special">&lt;-</span> <a href='005-sandbox.mu.html#L208'>update-status</a> <a href='../081print.mu.html#L4'>screen</a>, <span class="Constant">[                 ]</span>, <span class="Constant">245/grey</span>
@@ -307,14 +307,14 @@ if ('onhashchange' in window) {
 <span id="L246" class="LineNr"> 246 </span>    render-current-sandbox?:bool <span class="Special">&lt;-</span> equal render-from,<span class="Constant"> -1</span>
 <span id="L247" class="LineNr"> 247 </span>    <span class="muControl">break-unless</span> render-current-sandbox?
 <span id="L248" class="LineNr"> 248 </span>    row, column, <a href='../081print.mu.html#L4'>screen</a>, current-sandbox <span class="Special">&lt;-</span> call render-editor, <a href='../081print.mu.html#L4'>screen</a>, current-sandbox
-<span id="L249" class="LineNr"> 249 </span>    <a href='001-editor.mu.html#L223'>clear-screen-from</a> <a href='../081print.mu.html#L4'>screen</a>, row, column, left, right
+<span id="L249" class="LineNr"> 249 </span>    <a href='001-editor.mu.html#L224'>clear-screen-from</a> <a href='../081print.mu.html#L4'>screen</a>, row, column, left, right
 <span id="L250" class="LineNr"> 250 </span>    row <span class="Special">&lt;-</span> add row,<span class="Constant"> 1</span>
 <span id="L251" class="LineNr"> 251 </span>  <span class="Delimiter">}</span>
 <span id="L252" class="LineNr"> 252 </span>  <span class="Comment"># render sandboxes</span>
 <span id="L253" class="LineNr"> 253 </span>  <a href='002-typing.mu.html#L1056'>draw-horizontal</a> <a href='../081print.mu.html#L4'>screen</a>, row, left, right
 <span id="L254" class="LineNr"> 254 </span>  sandbox:&amp;:sandbox <span class="Special">&lt;-</span> get *env, <span class="Constant">sandbox:offset</span>
 <span id="L255" class="LineNr"> 255 </span>  row, <a href='../081print.mu.html#L4'>screen</a> <span class="Special">&lt;-</span> <a href='005-sandbox.mu.html#L259'>render-sandboxes</a> <a href='../081print.mu.html#L4'>screen</a>, sandbox, left, right, row, render-from
-<span id="L256" class="LineNr"> 256 </span>  <a href='001-editor.mu.html#L238'>clear-rest-of-screen</a> <a href='../081print.mu.html#L4'>screen</a>, row, left, right
+<span id="L256" class="LineNr"> 256 </span>  <a href='001-editor.mu.html#L239'>clear-rest-of-screen</a> <a href='../081print.mu.html#L4'>screen</a>, row, left, right
 <span id="L257" class="LineNr"> 257 </span>]
 <span id="L258" class="LineNr"> 258 </span>
 <span id="L259" class="LineNr"> 259 </span><span class="muRecipe">def</span> <a href='005-sandbox.mu.html#L259'>render-sandboxes</a> <a href='../081print.mu.html#L4'>screen</a>:&amp;:<a href='../081print.mu.html#L4'>screen</a>, sandbox:&amp;:sandbox, left:num, right:num, row:num, render-from:num, idx:num<span class="muRecipe"> -&gt; </span>row:num, <a href='../081print.mu.html#L4'>screen</a>:&amp;:<a href='../081print.mu.html#L4'>screen</a>, sandbox:&amp;:sandbox [
@@ -689,7 +689,7 @@ if ('onhashchange' in window) {
 <span id="L628" class="LineNr"> 628 </span><span class="muScenario">scenario</span> editor-provides-edited-contents [
 <span id="L629" class="LineNr"> 629 </span>  <span class="Constant">local-scope</span>
 <span id="L630" class="LineNr"> 630 </span>  assume-screen <span class="Constant">10/width</span>, <span class="Constant">5/height</span>
-<span id="L631" class="LineNr"> 631 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L51'>new-editor</a> <span class="Constant">[abc]</span>, <span class="Constant">0/left</span>, <span class="Constant">10/right</span>
+<span id="L631" class="LineNr"> 631 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L52'>new-editor</a> <span class="Constant">[abc]</span>, <span class="Constant">0/left</span>, <span class="Constant">10/right</span>
 <span id="L632" class="LineNr"> 632 </span>  assume-console [
 <span id="L633" class="LineNr"> 633 </span>    left-click<span class="Constant"> 1</span>,<span class="Constant"> 2</span>
 <span id="L634" class="LineNr"> 634 </span>    type <span class="Constant">[def]</span>
@@ -713,7 +713,7 @@ if ('onhashchange' in window) {
 <span id="L652" class="LineNr"> 652 </span>  assume-resources [
 <span id="L653" class="LineNr"> 653 </span>  ]
 <span id="L654" class="LineNr"> 654 </span>  env:&amp;:environment <span class="Special">&lt;-</span> <a href='004-programming-environment.mu.html#L21'>new-programming-environment</a> <a href='../088file.mu.html#L11'>resources</a>, <a href='../081print.mu.html#L4'>screen</a>, <span class="Constant">[]</span>
-<span id="L655" class="LineNr"> 655 </span>  <a href='004-programming-environment.mu.html#L445'>render-all</a> <a href='../081print.mu.html#L4'>screen</a>, env, <a href='001-editor.mu.html#L122'>render</a>
+<span id="L655" class="LineNr"> 655 </span>  <a href='004-programming-environment.mu.html#L445'>render-all</a> <a href='../081print.mu.html#L4'>screen</a>, env, <a href='001-editor.mu.html#L123'>render</a>
 <span id="L656" class="LineNr"> 656 </span>  assume-console [
 <span id="L657" class="LineNr"> 657 </span>    press enter
 <span id="L658" class="LineNr"> 658 </span>    press down-arrow
@@ -736,7 +736,7 @@ if ('onhashchange' in window) {
 <span id="L675" class="LineNr"> 675 </span>  assume-resources [
 <span id="L676" class="LineNr"> 676 </span>  ]
 <span id="L677" class="LineNr"> 677 </span>  env:&amp;:environment <span class="Special">&lt;-</span> <a href='004-programming-environment.mu.html#L21'>new-programming-environment</a> <a href='../088file.mu.html#L11'>resources</a>, <a href='../081print.mu.html#L4'>screen</a>, <span class="Constant">[]</span>
-<span id="L678" class="LineNr"> 678 </span>  <a href='004-programming-environment.mu.html#L445'>render-all</a> <a href='../081print.mu.html#L4'>screen</a>, env, <a href='001-editor.mu.html#L122'>render</a>
+<span id="L678" class="LineNr"> 678 </span>  <a href='004-programming-environment.mu.html#L445'>render-all</a> <a href='../081print.mu.html#L4'>screen</a>, env, <a href='001-editor.mu.html#L123'>render</a>
 <span id="L679" class="LineNr"> 679 </span>  assume-console [
 <span id="L680" class="LineNr"> 680 </span>    press enter
 <span id="L681" class="LineNr"> 681 </span>    press up-arrow
@@ -816,7 +816,7 @@ if ('onhashchange' in window) {
 <span id="L755" class="LineNr"> 755 </span>  assume-resources [
 <span id="L756" class="LineNr"> 756 </span>  ]
 <span id="L757" class="LineNr"> 757 </span>  env:&amp;:environment <span class="Special">&lt;-</span> <a href='004-programming-environment.mu.html#L21'>new-programming-environment</a> <a href='../088file.mu.html#L11'>resources</a>, <a href='../081print.mu.html#L4'>screen</a>, <span class="Constant">[]</span>
-<span id="L758" class="LineNr"> 758 </span>  <a href='004-programming-environment.mu.html#L445'>render-all</a> <a href='../081print.mu.html#L4'>screen</a>, env, <a href='001-editor.mu.html#L122'>render</a>
+<span id="L758" class="LineNr"> 758 </span>  <a href='004-programming-environment.mu.html#L445'>render-all</a> <a href='../081print.mu.html#L4'>screen</a>, env, <a href='001-editor.mu.html#L123'>render</a>
 <span id="L759" class="LineNr"> 759 </span>  assume-console [
 <span id="L760" class="LineNr"> 760 </span>    <span class="Comment"># add a line</span>
 <span id="L761" class="LineNr"> 761 </span>    press enter
@@ -844,7 +844,7 @@ if ('onhashchange' in window) {
 <span id="L783" class="LineNr"> 783 </span>  ]
 <span id="L784" class="LineNr"> 784 </span>  env:&amp;:environment <span class="Special">&lt;-</span> <a href='004-programming-environment.mu.html#L21'>new-programming-environment</a> <a href='../088file.mu.html#L11'>resources</a>, <a href='../081print.mu.html#L4'>screen</a>, <span class="Constant">[ab</span>
 <span id="L785" class="LineNr"> 785 </span><span class="Constant">cd]</span>
-<span id="L786" class="LineNr"> 786 </span>  <a href='004-programming-environment.mu.html#L445'>render-all</a> <a href='../081print.mu.html#L4'>screen</a>, env, <a href='001-editor.mu.html#L122'>render</a>
+<span id="L786" class="LineNr"> 786 </span>  <a href='004-programming-environment.mu.html#L445'>render-all</a> <a href='../081print.mu.html#L4'>screen</a>, env, <a href='001-editor.mu.html#L123'>render</a>
 <span id="L787" class="LineNr"> 787 </span>  assume-console [
 <span id="L788" class="LineNr"> 788 </span>    <span class="Comment"># add a line</span>
 <span id="L789" class="LineNr"> 789 </span>    press enter
@@ -876,7 +876,7 @@ if ('onhashchange' in window) {
 <span id="L815" class="LineNr"> 815 </span>  assume-resources [
 <span id="L816" class="LineNr"> 816 </span>  ]
 <span id="L817" class="LineNr"> 817 </span>  env:&amp;:environment <span class="Special">&lt;-</span> <a href='004-programming-environment.mu.html#L21'>new-programming-environment</a> <a href='../088file.mu.html#L11'>resources</a>, <a href='../081print.mu.html#L4'>screen</a>, <span class="Constant">[add 2, 2]</span>
-<span id="L818" class="LineNr"> 818 </span>  <a href='004-programming-environment.mu.html#L445'>render-all</a> <a href='../081print.mu.html#L4'>screen</a>, env, <a href='001-editor.mu.html#L122'>render</a>
+<span id="L818" class="LineNr"> 818 </span>  <a href='004-programming-environment.mu.html#L445'>render-all</a> <a href='../081print.mu.html#L4'>screen</a>, env, <a href='001-editor.mu.html#L123'>render</a>
 <span id="L819" class="LineNr"> 819 </span>  assume-console [
 <span id="L820" class="LineNr"> 820 </span>    <span class="Comment"># create a sandbox</span>
 <span id="L821" class="LineNr"> 821 </span>    press F4
@@ -946,7 +946,7 @@ if ('onhashchange' in window) {
 <span id="L885" class="LineNr"> 885 </span>      *env <span class="Special">&lt;-</span> put *env, <span class="Constant">render-from:offset</span>, render-from
 <span id="L886" class="LineNr"> 886 </span>    <span class="Delimiter">}</span>
 <span id="L887" class="LineNr"> 887 </span>    <a href='../081print.mu.html#L623'>hide-screen</a> <a href='../081print.mu.html#L4'>screen</a>
-<span id="L888" class="LineNr"> 888 </span>    <a href='../081print.mu.html#L4'>screen</a> <span class="Special">&lt;-</span> <a href='004-programming-environment.mu.html#L496'>render-sandbox-side</a> <a href='../081print.mu.html#L4'>screen</a>, env, <a href='001-editor.mu.html#L122'>render</a>
+<span id="L888" class="LineNr"> 888 </span>    <a href='../081print.mu.html#L4'>screen</a> <span class="Special">&lt;-</span> <a href='004-programming-environment.mu.html#L496'>render-sandbox-side</a> <a href='../081print.mu.html#L4'>screen</a>, env, <a href='001-editor.mu.html#L123'>render</a>
 <span id="L889" class="LineNr"> 889 </span>    <a href='../081print.mu.html#L631'>show-screen</a> <a href='../081print.mu.html#L4'>screen</a>
 <span id="L890" class="LineNr"> 890 </span>    <span class="muControl">jump</span> <span class="Constant">+finish-event</span>
 <span id="L891" class="LineNr"> 891 </span>  <span class="Delimiter">}</span>
@@ -977,7 +977,7 @@ if ('onhashchange' in window) {
 <span id="L916" class="LineNr"> 916 </span>    render-from <span class="Special">&lt;-</span> subtract render-from,<span class="Constant"> 1</span>
 <span id="L917" class="LineNr"> 917 </span>    *env <span class="Special">&lt;-</span> put *env, <span class="Constant">render-from:offset</span>, render-from
 <span id="L918" class="LineNr"> 918 </span>    <a href='../081print.mu.html#L623'>hide-screen</a> <a href='../081print.mu.html#L4'>screen</a>
-<span id="L919" class="LineNr"> 919 </span>    <a href='../081print.mu.html#L4'>screen</a> <span class="Special">&lt;-</span> <a href='004-programming-environment.mu.html#L496'>render-sandbox-side</a> <a href='../081print.mu.html#L4'>screen</a>, env, <a href='001-editor.mu.html#L122'>render</a>
+<span id="L919" class="LineNr"> 919 </span>    <a href='../081print.mu.html#L4'>screen</a> <span class="Special">&lt;-</span> <a href='004-programming-environment.mu.html#L496'>render-sandbox-side</a> <a href='../081print.mu.html#L4'>screen</a>, env, <a href='001-editor.mu.html#L123'>render</a>
 <span id="L920" class="LineNr"> 920 </span>    <a href='../081print.mu.html#L631'>show-screen</a> <a href='../081print.mu.html#L4'>screen</a>
 <span id="L921" class="LineNr"> 921 </span>    <span class="muControl">jump</span> <span class="Constant">+finish-event</span>
 <span id="L922" class="LineNr"> 922 </span>  <span class="Delimiter">}</span>
@@ -1014,7 +1014,7 @@ if ('onhashchange' in window) {
 <span id="L953" class="LineNr"> 953 </span>  ]
 <span id="L954" class="LineNr"> 954 </span>  <span class="Comment"># create a sandbox</span>
 <span id="L955" class="LineNr"> 955 </span>  env:&amp;:environment <span class="Special">&lt;-</span> <a href='004-programming-environment.mu.html#L21'>new-programming-environment</a> <a href='../088file.mu.html#L11'>resources</a>, <a href='../081print.mu.html#L4'>screen</a>, <span class="Constant">[add 2, 2]</span>
-<span id="L956" class="LineNr"> 956 </span>  <a href='004-programming-environment.mu.html#L445'>render-all</a> <a href='../081print.mu.html#L4'>screen</a>, env, <a href='001-editor.mu.html#L122'>render</a>
+<span id="L956" class="LineNr"> 956 </span>  <a href='004-programming-environment.mu.html#L445'>render-all</a> <a href='../081print.mu.html#L4'>screen</a>, env, <a href='001-editor.mu.html#L123'>render</a>
 <span id="L957" class="LineNr"> 957 </span>  assume-console [
 <span id="L958" class="LineNr"> 958 </span>    press F4
 <span id="L959" class="LineNr"> 959 </span>  ]
@@ -1046,7 +1046,7 @@ if ('onhashchange' in window) {
 <span id="L985" class="LineNr"> 985 </span>  assume-resources [
 <span id="L986" class="LineNr"> 986 </span>  ]
 <span id="L987" class="LineNr"> 987 </span>  env:&amp;:environment <span class="Special">&lt;-</span> <a href='004-programming-environment.mu.html#L21'>new-programming-environment</a> <a href='../088file.mu.html#L11'>resources</a>, <a href='../081print.mu.html#L4'>screen</a>, <span class="Constant">[]</span>
-<span id="L988" class="LineNr"> 988 </span>  <a href='004-programming-environment.mu.html#L445'>render-all</a> <a href='../081print.mu.html#L4'>screen</a>, env, <a href='001-editor.mu.html#L122'>render</a>
+<span id="L988" class="LineNr"> 988 </span>  <a href='004-programming-environment.mu.html#L445'>render-all</a> <a href='../081print.mu.html#L4'>screen</a>, env, <a href='001-editor.mu.html#L123'>render</a>
 <span id="L989" class="LineNr"> 989 </span>  <span class="Comment"># create 2 sandboxes</span>
 <span id="L990" class="LineNr"> 990 </span>  assume-console [
 <span id="L991" class="LineNr"> 991 </span>    press ctrl-n
@@ -1199,7 +1199,7 @@ if ('onhashchange' in window) {
 <span id="L1138" class="LineNr">1138 </span>  assume-resources [
 <span id="L1139" class="LineNr">1139 </span>  ]
 <span id="L1140" class="LineNr">1140 </span>  env:&amp;:environment <span class="Special">&lt;-</span> <a href='004-programming-environment.mu.html#L21'>new-programming-environment</a> <a href='../088file.mu.html#L11'>resources</a>, <a href='../081print.mu.html#L4'>screen</a>, <span class="Constant">[]</span>
-<span id="L1141" class="LineNr">1141 </span>  <a href='004-programming-environment.mu.html#L445'>render-all</a> <a href='../081print.mu.html#L4'>screen</a>, env, <a href='001-editor.mu.html#L122'>render</a>
+<span id="L1141" class="LineNr">1141 </span>  <a href='004-programming-environment.mu.html#L445'>render-all</a> <a href='../081print.mu.html#L4'>screen</a>, env, <a href='001-editor.mu.html#L123'>render</a>
 <span id="L1142" class="LineNr">1142 </span>  <span class="Comment"># create a sandbox</span>
 <span id="L1143" class="LineNr">1143 </span>  assume-console [
 <span id="L1144" class="LineNr">1144 </span>    press ctrl-n
diff --git a/html/edit/006-sandbox-copy.mu.html b/html/edit/006-sandbox-copy.mu.html
index 7810c2b3..3e828969 100644
--- a/html/edit/006-sandbox-copy.mu.html
+++ b/html/edit/006-sandbox-copy.mu.html
@@ -189,7 +189,7 @@ if ('onhashchange' in window) {
 <span id="L129" class="LineNr">129 </span>    copy?, env <span class="Special">&lt;-</span> <a href='006-sandbox-copy.mu.html#L159'>try-copy-sandbox</a> click-row, env
 <span id="L130" class="LineNr">130 </span>    <span class="muControl">break-unless</span> copy?
 <span id="L131" class="LineNr">131 </span>    <a href='../081print.mu.html#L623'>hide-screen</a> <a href='../081print.mu.html#L4'>screen</a>
-<span id="L132" class="LineNr">132 </span>    <a href='../081print.mu.html#L4'>screen</a> <span class="Special">&lt;-</span> <a href='004-programming-environment.mu.html#L496'>render-sandbox-side</a> <a href='../081print.mu.html#L4'>screen</a>, env, <a href='001-editor.mu.html#L122'>render</a>
+<span id="L132" class="LineNr">132 </span>    <a href='../081print.mu.html#L4'>screen</a> <span class="Special">&lt;-</span> <a href='004-programming-environment.mu.html#L496'>render-sandbox-side</a> <a href='../081print.mu.html#L4'>screen</a>, env, <a href='001-editor.mu.html#L123'>render</a>
 <span id="L133" class="LineNr">133 </span>    <a href='../081print.mu.html#L4'>screen</a> <span class="Special">&lt;-</span> <a href='004-programming-environment.mu.html#L511'>update-cursor</a> <a href='../081print.mu.html#L4'>screen</a>, recipes, current-sandbox, sandbox-in-focus?, env
 <span id="L134" class="LineNr">134 </span>    <a href='../081print.mu.html#L631'>show-screen</a> <a href='../081print.mu.html#L4'>screen</a>
 <span id="L135" class="LineNr">135 </span>    <span class="muControl">loop</span> <span class="Constant">+next-event</span>
@@ -225,7 +225,7 @@ if ('onhashchange' in window) {
 <span id="L165" class="LineNr">165 </span>  clicked-on-copy-button? <span class="Special">&lt;-</span> copy <span class="Constant">1/true</span>
 <span id="L166" class="LineNr">166 </span>  text:text <span class="Special">&lt;-</span> get *sandbox, <span class="Constant">data:offset</span>
 <span id="L167" class="LineNr">167 </span>  current-sandbox:&amp;:editor <span class="Special">&lt;-</span> get *env, <span class="Constant">current-sandbox:offset</span>
-<span id="L168" class="LineNr">168 </span>  current-sandbox <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L72'>insert-text</a> current-sandbox, text
+<span id="L168" class="LineNr">168 </span>  current-sandbox <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L73'>insert-text</a> current-sandbox, text
 <span id="L169" class="LineNr">169 </span>  <span class="Comment"># reset scroll</span>
 <span id="L170" class="LineNr">170 </span>  *env <span class="Special">&lt;-</span> put *env, <span class="Constant">render-from:offset</span>,<span class="Constant"> -1</span>
 <span id="L171" class="LineNr">171 </span>  <span class="Comment"># position cursor in sandbox editor</span>
diff --git a/html/edit/007-sandbox-delete.mu.html b/html/edit/007-sandbox-delete.mu.html
index ab5dac63..496d7a94 100644
--- a/html/edit/007-sandbox-delete.mu.html
+++ b/html/edit/007-sandbox-delete.mu.html
@@ -133,7 +133,7 @@ if ('onhashchange' in window) {
 <span id="L73" class="LineNr"> 73 </span>    delete?, env <span class="Special">&lt;-</span> <a href='007-sandbox-delete.mu.html#L99'>try-delete-sandbox</a> click-row, env
 <span id="L74" class="LineNr"> 74 </span>    <span class="muControl">break-unless</span> delete?
 <span id="L75" class="LineNr"> 75 </span>    <a href='../081print.mu.html#L623'>hide-screen</a> <a href='../081print.mu.html#L4'>screen</a>
-<span id="L76" class="LineNr"> 76 </span>    <a href='../081print.mu.html#L4'>screen</a> <span class="Special">&lt;-</span> <a href='004-programming-environment.mu.html#L496'>render-sandbox-side</a> <a href='../081print.mu.html#L4'>screen</a>, env, <a href='001-editor.mu.html#L122'>render</a>
+<span id="L76" class="LineNr"> 76 </span>    <a href='../081print.mu.html#L4'>screen</a> <span class="Special">&lt;-</span> <a href='004-programming-environment.mu.html#L496'>render-sandbox-side</a> <a href='../081print.mu.html#L4'>screen</a>, env, <a href='001-editor.mu.html#L123'>render</a>
 <span id="L77" class="LineNr"> 77 </span>    <a href='../081print.mu.html#L4'>screen</a> <span class="Special">&lt;-</span> <a href='004-programming-environment.mu.html#L511'>update-cursor</a> <a href='../081print.mu.html#L4'>screen</a>, recipes, current-sandbox, sandbox-in-focus?, env
 <span id="L78" class="LineNr"> 78 </span>    <a href='../081print.mu.html#L631'>show-screen</a> <a href='../081print.mu.html#L4'>screen</a>
 <span id="L79" class="LineNr"> 79 </span>    <span class="muControl">loop</span> <span class="Constant">+next-event</span>
@@ -216,7 +216,7 @@ if ('onhashchange' in window) {
 <span id="L156" class="LineNr">156 </span>  assume-resources [
 <span id="L157" class="LineNr">157 </span>  ]
 <span id="L158" class="LineNr">158 </span>  env:&amp;:environment <span class="Special">&lt;-</span> <a href='004-programming-environment.mu.html#L21'>new-programming-environment</a> <a href='../088file.mu.html#L11'>resources</a>, <a href='../081print.mu.html#L4'>screen</a>, <span class="Constant">[]</span>
-<span id="L159" class="LineNr">159 </span>  <a href='004-programming-environment.mu.html#L445'>render-all</a> <a href='../081print.mu.html#L4'>screen</a>, env, <a href='001-editor.mu.html#L122'>render</a>
+<span id="L159" class="LineNr">159 </span>  <a href='004-programming-environment.mu.html#L445'>render-all</a> <a href='../081print.mu.html#L4'>screen</a>, env, <a href='001-editor.mu.html#L123'>render</a>
 <span id="L160" class="LineNr">160 </span>  <span class="Comment"># create 2 sandboxes and scroll to second</span>
 <span id="L161" class="LineNr">161 </span>  assume-console [
 <span id="L162" class="LineNr">162 </span>    press ctrl-n
@@ -263,7 +263,7 @@ if ('onhashchange' in window) {
 <span id="L203" class="LineNr">203 </span>  assume-resources [
 <span id="L204" class="LineNr">204 </span>  ]
 <span id="L205" class="LineNr">205 </span>  env:&amp;:environment <span class="Special">&lt;-</span> <a href='004-programming-environment.mu.html#L21'>new-programming-environment</a> <a href='../088file.mu.html#L11'>resources</a>, <a href='../081print.mu.html#L4'>screen</a>, <span class="Constant">[]</span>
-<span id="L206" class="LineNr">206 </span>  <a href='004-programming-environment.mu.html#L445'>render-all</a> <a href='../081print.mu.html#L4'>screen</a>, env, <a href='001-editor.mu.html#L122'>render</a>
+<span id="L206" class="LineNr">206 </span>  <a href='004-programming-environment.mu.html#L445'>render-all</a> <a href='../081print.mu.html#L4'>screen</a>, env, <a href='001-editor.mu.html#L123'>render</a>
 <span id="L207" class="LineNr">207 </span>  <span class="Comment"># create 2 sandboxes and scroll to second</span>
 <span id="L208" class="LineNr">208 </span>  assume-console [
 <span id="L209" class="LineNr">209 </span>    press ctrl-n
@@ -310,7 +310,7 @@ if ('onhashchange' in window) {
 <span id="L250" class="LineNr">250 </span>  assume-resources [
 <span id="L251" class="LineNr">251 </span>  ]
 <span id="L252" class="LineNr">252 </span>  env:&amp;:environment <span class="Special">&lt;-</span> <a href='004-programming-environment.mu.html#L21'>new-programming-environment</a> <a href='../088file.mu.html#L11'>resources</a>, <a href='../081print.mu.html#L4'>screen</a>, <span class="Constant">[]</span>
-<span id="L253" class="LineNr">253 </span>  <a href='004-programming-environment.mu.html#L445'>render-all</a> <a href='../081print.mu.html#L4'>screen</a>, env, <a href='001-editor.mu.html#L122'>render</a>
+<span id="L253" class="LineNr">253 </span>  <a href='004-programming-environment.mu.html#L445'>render-all</a> <a href='../081print.mu.html#L4'>screen</a>, env, <a href='001-editor.mu.html#L123'>render</a>
 <span id="L254" class="LineNr">254 </span>  <span class="Comment"># create 2 sandboxes and scroll to second</span>
 <span id="L255" class="LineNr">255 </span>  assume-console [
 <span id="L256" class="LineNr">256 </span>    press ctrl-n
@@ -359,7 +359,7 @@ if ('onhashchange' in window) {
 <span id="L299" class="LineNr">299 </span>  assume-resources [
 <span id="L300" class="LineNr">300 </span>  ]
 <span id="L301" class="LineNr">301 </span>  env:&amp;:environment <span class="Special">&lt;-</span> <a href='004-programming-environment.mu.html#L21'>new-programming-environment</a> <a href='../088file.mu.html#L11'>resources</a>, <a href='../081print.mu.html#L4'>screen</a>, <span class="Constant">[]</span>
-<span id="L302" class="LineNr">302 </span>  <a href='004-programming-environment.mu.html#L445'>render-all</a> <a href='../081print.mu.html#L4'>screen</a>, env, <a href='001-editor.mu.html#L122'>render</a>
+<span id="L302" class="LineNr">302 </span>  <a href='004-programming-environment.mu.html#L445'>render-all</a> <a href='../081print.mu.html#L4'>screen</a>, env, <a href='001-editor.mu.html#L123'>render</a>
 <span id="L303" class="LineNr">303 </span>  <span class="Comment"># create 2 sandboxes</span>
 <span id="L304" class="LineNr">304 </span>  assume-console [
 <span id="L305" class="LineNr">305 </span>    press ctrl-n
diff --git a/html/edit/008-sandbox-edit.mu.html b/html/edit/008-sandbox-edit.mu.html
index 70f0141f..a7482e8a 100644
--- a/html/edit/008-sandbox-edit.mu.html
+++ b/html/edit/008-sandbox-edit.mu.html
@@ -172,7 +172,7 @@ if ('onhashchange' in window) {
 <span id="L112" class="LineNr">112 </span>    edit?, env <span class="Special">&lt;-</span> <a href='008-sandbox-edit.mu.html#L142'>try-edit-sandbox</a> click-row, env
 <span id="L113" class="LineNr">113 </span>    <span class="muControl">break-unless</span> edit?
 <span id="L114" class="LineNr">114 </span>    <a href='../081print.mu.html#L623'>hide-screen</a> <a href='../081print.mu.html#L4'>screen</a>
-<span id="L115" class="LineNr">115 </span>    <a href='../081print.mu.html#L4'>screen</a> <span class="Special">&lt;-</span> <a href='004-programming-environment.mu.html#L496'>render-sandbox-side</a> <a href='../081print.mu.html#L4'>screen</a>, env, <a href='001-editor.mu.html#L122'>render</a>
+<span id="L115" class="LineNr">115 </span>    <a href='../081print.mu.html#L4'>screen</a> <span class="Special">&lt;-</span> <a href='004-programming-environment.mu.html#L496'>render-sandbox-side</a> <a href='../081print.mu.html#L4'>screen</a>, env, <a href='001-editor.mu.html#L123'>render</a>
 <span id="L116" class="LineNr">116 </span>    <a href='../081print.mu.html#L4'>screen</a> <span class="Special">&lt;-</span> <a href='004-programming-environment.mu.html#L511'>update-cursor</a> <a href='../081print.mu.html#L4'>screen</a>, recipes, current-sandbox, sandbox-in-focus?, env
 <span id="L117" class="LineNr">117 </span>    <a href='../081print.mu.html#L631'>show-screen</a> <a href='../081print.mu.html#L4'>screen</a>
 <span id="L118" class="LineNr">118 </span>    <span class="muControl">loop</span> <span class="Constant">+next-event</span>
@@ -209,7 +209,7 @@ if ('onhashchange' in window) {
 <span id="L149" class="LineNr">149 </span>  <span class="Comment"># 'edit' button = 'copy' button + 'delete' button</span>
 <span id="L150" class="LineNr">150 </span>  text:text <span class="Special">&lt;-</span> get *sandbox, <span class="Constant">data:offset</span>
 <span id="L151" class="LineNr">151 </span>  current-sandbox:&amp;:editor <span class="Special">&lt;-</span> get *env, <span class="Constant">current-sandbox:offset</span>
-<span id="L152" class="LineNr">152 </span>  current-sandbox <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L72'>insert-text</a> current-sandbox, text
+<span id="L152" class="LineNr">152 </span>  current-sandbox <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L73'>insert-text</a> current-sandbox, text
 <span id="L153" class="LineNr">153 </span>  env <span class="Special">&lt;-</span> <a href='007-sandbox-delete.mu.html#L109'>delete-sandbox</a> env, sandbox
 <span id="L154" class="LineNr">154 </span>  <span class="Comment"># reset scroll</span>
 <span id="L155" class="LineNr">155 </span>  *env <span class="Special">&lt;-</span> put *env, <span class="Constant">render-from:offset</span>,<span class="Constant"> -1</span>
@@ -270,7 +270,7 @@ if ('onhashchange' in window) {
 <span id="L210" class="LineNr">210 </span>  assume-resources [
 <span id="L211" class="LineNr">211 </span>  ]
 <span id="L212" class="LineNr">212 </span>  env:&amp;:environment <span class="Special">&lt;-</span> <a href='004-programming-environment.mu.html#L21'>new-programming-environment</a> <a href='../088file.mu.html#L11'>resources</a>, <a href='../081print.mu.html#L4'>screen</a>, <span class="Constant">[]</span>
-<span id="L213" class="LineNr">213 </span>  <a href='004-programming-environment.mu.html#L445'>render-all</a> <a href='../081print.mu.html#L4'>screen</a>, env, <a href='001-editor.mu.html#L122'>render</a>
+<span id="L213" class="LineNr">213 </span>  <a href='004-programming-environment.mu.html#L445'>render-all</a> <a href='../081print.mu.html#L4'>screen</a>, env, <a href='001-editor.mu.html#L123'>render</a>
 <span id="L214" class="LineNr">214 </span>  <span class="Comment"># create 2 sandboxes and scroll to second</span>
 <span id="L215" class="LineNr">215 </span>  assume-console [
 <span id="L216" class="LineNr">216 </span>    press ctrl-n
@@ -319,7 +319,7 @@ if ('onhashchange' in window) {
 <span id="L259" class="LineNr">259 </span>  assume-resources [
 <span id="L260" class="LineNr">260 </span>  ]
 <span id="L261" class="LineNr">261 </span>  env:&amp;:environment <span class="Special">&lt;-</span> <a href='004-programming-environment.mu.html#L21'>new-programming-environment</a> <a href='../088file.mu.html#L11'>resources</a>, <a href='../081print.mu.html#L4'>screen</a>, <span class="Constant">[]</span>
-<span id="L262" class="LineNr">262 </span>  <a href='004-programming-environment.mu.html#L445'>render-all</a> <a href='../081print.mu.html#L4'>screen</a>, env, <a href='001-editor.mu.html#L122'>render</a>
+<span id="L262" class="LineNr">262 </span>  <a href='004-programming-environment.mu.html#L445'>render-all</a> <a href='../081print.mu.html#L4'>screen</a>, env, <a href='001-editor.mu.html#L123'>render</a>
 <span id="L263" class="LineNr">263 </span>  <span class="Comment"># create 2 sandboxes</span>
 <span id="L264" class="LineNr">264 </span>  assume-console [
 <span id="L265" class="LineNr">265 </span>    press ctrl-n
diff --git a/html/edit/009-sandbox-test.mu.html b/html/edit/009-sandbox-test.mu.html
index c2774b98..7a0f1a16 100644
--- a/html/edit/009-sandbox-test.mu.html
+++ b/html/edit/009-sandbox-test.mu.html
@@ -192,7 +192,7 @@ if ('onhashchange' in window) {
 <span id="L131" class="LineNr">131 </span>    sandbox <span class="Special">&lt;-</span> <a href='009-sandbox-test.mu.html#L168'>toggle-expected-response</a> sandbox
 <span id="L132" class="LineNr">132 </span>    <a href='005-sandbox.mu.html#L215'>save-sandboxes</a> env, <a href='../088file.mu.html#L11'>resources</a>
 <span id="L133" class="LineNr">133 </span>    <a href='../081print.mu.html#L623'>hide-screen</a> <a href='../081print.mu.html#L4'>screen</a>
-<span id="L134" class="LineNr">134 </span>    <a href='../081print.mu.html#L4'>screen</a> <span class="Special">&lt;-</span> <a href='004-programming-environment.mu.html#L496'>render-sandbox-side</a> <a href='../081print.mu.html#L4'>screen</a>, env, <a href='001-editor.mu.html#L122'>render</a>
+<span id="L134" class="LineNr">134 </span>    <a href='../081print.mu.html#L4'>screen</a> <span class="Special">&lt;-</span> <a href='004-programming-environment.mu.html#L496'>render-sandbox-side</a> <a href='../081print.mu.html#L4'>screen</a>, env, <a href='001-editor.mu.html#L123'>render</a>
 <span id="L135" class="LineNr">135 </span>    <a href='../081print.mu.html#L4'>screen</a> <span class="Special">&lt;-</span> <a href='004-programming-environment.mu.html#L511'>update-cursor</a> <a href='../081print.mu.html#L4'>screen</a>, recipes, current-sandbox, sandbox-in-focus?, env
 <span id="L136" class="LineNr">136 </span>    <span class="Comment"># no change in cursor</span>
 <span id="L137" class="LineNr">137 </span>    <a href='../081print.mu.html#L631'>show-screen</a> <a href='../081print.mu.html#L4'>screen</a>
diff --git a/html/edit/010-sandbox-trace.mu.html b/html/edit/010-sandbox-trace.mu.html
index 1d33d9a5..472a7698 100644
--- a/html/edit/010-sandbox-trace.mu.html
+++ b/html/edit/010-sandbox-trace.mu.html
@@ -262,7 +262,7 @@ if ('onhashchange' in window) {
 <span id="L201" class="LineNr">201 </span>    x <span class="Special">&lt;-</span> not x
 <span id="L202" class="LineNr">202 </span>    *sandbox <span class="Special">&lt;-</span> put *sandbox, <span class="Constant">display-trace?:offset</span>, x
 <span id="L203" class="LineNr">203 </span>    <a href='../081print.mu.html#L623'>hide-screen</a> <a href='../081print.mu.html#L4'>screen</a>
-<span id="L204" class="LineNr">204 </span>    <a href='../081print.mu.html#L4'>screen</a> <span class="Special">&lt;-</span> <a href='004-programming-environment.mu.html#L496'>render-sandbox-side</a> <a href='../081print.mu.html#L4'>screen</a>, env, <a href='001-editor.mu.html#L122'>render</a>
+<span id="L204" class="LineNr">204 </span>    <a href='../081print.mu.html#L4'>screen</a> <span class="Special">&lt;-</span> <a href='004-programming-environment.mu.html#L496'>render-sandbox-side</a> <a href='../081print.mu.html#L4'>screen</a>, env, <a href='001-editor.mu.html#L123'>render</a>
 <span id="L205" class="LineNr">205 </span>    <a href='../081print.mu.html#L4'>screen</a> <span class="Special">&lt;-</span> <a href='004-programming-environment.mu.html#L511'>update-cursor</a> <a href='../081print.mu.html#L4'>screen</a>, recipes, current-sandbox, sandbox-in-focus?, env
 <span id="L206" class="LineNr">206 </span>    <span class="Comment"># no change in cursor</span>
 <span id="L207" class="LineNr">207 </span>    <a href='../081print.mu.html#L631'>show-screen</a> <a href='../081print.mu.html#L4'>screen</a>
diff --git a/html/edit/011-errors.mu.html b/html/edit/011-errors.mu.html
index ee653626..1bd96e45 100644
--- a/html/edit/011-errors.mu.html
+++ b/html/edit/011-errors.mu.html
@@ -187,7 +187,7 @@ if ('onhashchange' in window) {
 <span id="L126" class="LineNr">126 </span>    ]
 <span id="L127" class="LineNr">127 </span>  ]
 <span id="L128" class="LineNr">128 </span>  env:&amp;:environment <span class="Special">&lt;-</span> <a href='004-programming-environment.mu.html#L21'>new-programming-environment</a> <a href='../088file.mu.html#L11'>resources</a>, <a href='../081print.mu.html#L4'>screen</a>, <span class="Constant">[foo]</span>
-<span id="L129" class="LineNr">129 </span>  <a href='004-programming-environment.mu.html#L445'>render-all</a> <a href='../081print.mu.html#L4'>screen</a>, env, <a href='001-editor.mu.html#L122'>render</a>
+<span id="L129" class="LineNr">129 </span>  <a href='004-programming-environment.mu.html#L445'>render-all</a> <a href='../081print.mu.html#L4'>screen</a>, env, <a href='001-editor.mu.html#L123'>render</a>
 <span id="L130" class="LineNr">130 </span>  screen-should-contain [
 <span id="L131" class="LineNr">131 </span>   <span class="Constant"> .                                                                                 run (F4)           .</span>
 <span id="L132" class="LineNr">132 </span>   <span class="Constant"> .recipe foo [                                      ╎foo                                              .</span>
diff --git a/html/edit/012-editor-undo.mu.html b/html/edit/012-editor-undo.mu.html
index aa6ef95e..023ecc94 100644
--- a/html/edit/012-editor-undo.mu.html
+++ b/html/edit/012-editor-undo.mu.html
@@ -163,7 +163,7 @@ if ('onhashchange' in window) {
 <span id="L102" class="LineNr"> 102 </span>  <span class="Constant">local-scope</span>
 <span id="L103" class="LineNr"> 103 </span>  <span class="Comment"># create an editor and type a character</span>
 <span id="L104" class="LineNr"> 104 </span>  assume-screen <span class="Constant">10/width</span>, <span class="Constant">5/height</span>
-<span id="L105" class="LineNr"> 105 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L51'>new-editor</a> <span class="Constant">[]</span>, <span class="Constant">0/left</span>, <span class="Constant">10/right</span>
+<span id="L105" class="LineNr"> 105 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L52'>new-editor</a> <span class="Constant">[]</span>, <span class="Constant">0/left</span>, <span class="Constant">10/right</span>
 <span id="L106" class="LineNr"> 106 </span>  <a href='002-typing.mu.html#L263'>editor-render</a> <a href='../081print.mu.html#L4'>screen</a>, e
 <span id="L107" class="LineNr"> 107 </span>  assume-console [
 <span id="L108" class="LineNr"> 108 </span>    type <span class="Constant">[0]</span>
@@ -292,7 +292,7 @@ if ('onhashchange' in window) {
 <span id="L231" class="LineNr"> 231 </span>  <span class="Constant">local-scope</span>
 <span id="L232" class="LineNr"> 232 </span>  <span class="Comment"># create an editor and type multiple characters</span>
 <span id="L233" class="LineNr"> 233 </span>  assume-screen <span class="Constant">10/width</span>, <span class="Constant">5/height</span>
-<span id="L234" class="LineNr"> 234 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L51'>new-editor</a> <span class="Constant">[]</span>, <span class="Constant">0/left</span>, <span class="Constant">10/right</span>
+<span id="L234" class="LineNr"> 234 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L52'>new-editor</a> <span class="Constant">[]</span>, <span class="Constant">0/left</span>, <span class="Constant">10/right</span>
 <span id="L235" class="LineNr"> 235 </span>  <a href='002-typing.mu.html#L263'>editor-render</a> <a href='../081print.mu.html#L4'>screen</a>, e
 <span id="L236" class="LineNr"> 236 </span>  assume-console [
 <span id="L237" class="LineNr"> 237 </span>    type <span class="Constant">[012]</span>
@@ -318,7 +318,7 @@ if ('onhashchange' in window) {
 <span id="L257" class="LineNr"> 257 </span>  <span class="Constant">local-scope</span>
 <span id="L258" class="LineNr"> 258 </span>  <span class="Comment"># create an editor with some text</span>
 <span id="L259" class="LineNr"> 259 </span>  assume-screen <span class="Constant">10/width</span>, <span class="Constant">5/height</span>
-<span id="L260" class="LineNr"> 260 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L51'>new-editor</a> <span class="Constant">[a]</span>, <span class="Constant">0/left</span>, <span class="Constant">10/right</span>
+<span id="L260" class="LineNr"> 260 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L52'>new-editor</a> <span class="Constant">[a]</span>, <span class="Constant">0/left</span>, <span class="Constant">10/right</span>
 <span id="L261" class="LineNr"> 261 </span>  <a href='002-typing.mu.html#L263'>editor-render</a> <a href='../081print.mu.html#L4'>screen</a>, e
 <span id="L262" class="LineNr"> 262 </span>  <span class="Comment"># type some characters</span>
 <span id="L263" class="LineNr"> 263 </span>  assume-console [
@@ -364,7 +364,7 @@ if ('onhashchange' in window) {
 <span id="L303" class="LineNr"> 303 </span>  <span class="Constant">local-scope</span>
 <span id="L304" class="LineNr"> 304 </span>  <span class="Comment"># create an editor with some text</span>
 <span id="L305" class="LineNr"> 305 </span>  assume-screen <span class="Constant">10/width</span>, <span class="Constant">5/height</span>
-<span id="L306" class="LineNr"> 306 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L51'>new-editor</a> <span class="Constant">[  abc]</span>, <span class="Constant">0/left</span>, <span class="Constant">10/right</span>
+<span id="L306" class="LineNr"> 306 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L52'>new-editor</a> <span class="Constant">[  abc]</span>, <span class="Constant">0/left</span>, <span class="Constant">10/right</span>
 <span id="L307" class="LineNr"> 307 </span>  <a href='002-typing.mu.html#L263'>editor-render</a> <a href='../081print.mu.html#L4'>screen</a>, e
 <span id="L308" class="LineNr"> 308 </span>  <span class="Comment"># new line</span>
 <span id="L309" class="LineNr"> 309 </span>  assume-console [
@@ -427,7 +427,7 @@ if ('onhashchange' in window) {
 <span id="L366" class="LineNr"> 366 </span>  <span class="Constant">local-scope</span>
 <span id="L367" class="LineNr"> 367 </span>  <span class="Comment"># create an editor, type something, undo</span>
 <span id="L368" class="LineNr"> 368 </span>  assume-screen <span class="Constant">10/width</span>, <span class="Constant">5/height</span>
-<span id="L369" class="LineNr"> 369 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L51'>new-editor</a> <span class="Constant">[a]</span>, <span class="Constant">0/left</span>, <span class="Constant">10/right</span>
+<span id="L369" class="LineNr"> 369 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L52'>new-editor</a> <span class="Constant">[a]</span>, <span class="Constant">0/left</span>, <span class="Constant">10/right</span>
 <span id="L370" class="LineNr"> 370 </span>  <a href='002-typing.mu.html#L263'>editor-render</a> <a href='../081print.mu.html#L4'>screen</a>, e
 <span id="L371" class="LineNr"> 371 </span>  assume-console [
 <span id="L372" class="LineNr"> 372 </span>    type <span class="Constant">[012]</span>
@@ -491,7 +491,7 @@ if ('onhashchange' in window) {
 <span id="L430" class="LineNr"> 430 </span>  <span class="Constant">local-scope</span>
 <span id="L431" class="LineNr"> 431 </span>  <span class="Comment"># create an editor, type something, undo</span>
 <span id="L432" class="LineNr"> 432 </span>  assume-screen <span class="Constant">10/width</span>, <span class="Constant">5/height</span>
-<span id="L433" class="LineNr"> 433 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L51'>new-editor</a> <span class="Constant">[]</span>, <span class="Constant">0/left</span>, <span class="Constant">10/right</span>
+<span id="L433" class="LineNr"> 433 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L52'>new-editor</a> <span class="Constant">[]</span>, <span class="Constant">0/left</span>, <span class="Constant">10/right</span>
 <span id="L434" class="LineNr"> 434 </span>  <a href='002-typing.mu.html#L263'>editor-render</a> <a href='../081print.mu.html#L4'>screen</a>, e
 <span id="L435" class="LineNr"> 435 </span>  assume-console [
 <span id="L436" class="LineNr"> 436 </span>    type <span class="Constant">[012]</span>
@@ -540,7 +540,7 @@ if ('onhashchange' in window) {
 <span id="L479" class="LineNr"> 479 </span>  contents:text <span class="Special">&lt;-</span> new <span class="Constant">[abc</span>
 <span id="L480" class="LineNr"> 480 </span><span class="Constant">def</span>
 <span id="L481" class="LineNr"> 481 </span><span class="Constant">ghi]</span>
-<span id="L482" class="LineNr"> 482 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L51'>new-editor</a> contents, <span class="Constant">0/left</span>, <span class="Constant">10/right</span>
+<span id="L482" class="LineNr"> 482 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L52'>new-editor</a> contents, <span class="Constant">0/left</span>, <span class="Constant">10/right</span>
 <span id="L483" class="LineNr"> 483 </span>  <a href='002-typing.mu.html#L263'>editor-render</a> <a href='../081print.mu.html#L4'>screen</a>, e
 <span id="L484" class="LineNr"> 484 </span>  assume-console [
 <span id="L485" class="LineNr"> 485 </span>    type <span class="Constant">[1]</span>
@@ -580,7 +580,7 @@ if ('onhashchange' in window) {
 <span id="L519" class="LineNr"> 519 </span>  <span class="Constant">local-scope</span>
 <span id="L520" class="LineNr"> 520 </span>  <span class="Comment"># create an editor</span>
 <span id="L521" class="LineNr"> 521 </span>  assume-screen <span class="Constant">10/width</span>, <span class="Constant">5/height</span>
-<span id="L522" class="LineNr"> 522 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L51'>new-editor</a> <span class="Constant">[]</span>, <span class="Constant">0/left</span>, <span class="Constant">10/right</span>
+<span id="L522" class="LineNr"> 522 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L52'>new-editor</a> <span class="Constant">[]</span>, <span class="Constant">0/left</span>, <span class="Constant">10/right</span>
 <span id="L523" class="LineNr"> 523 </span>  <a href='002-typing.mu.html#L263'>editor-render</a> <a href='../081print.mu.html#L4'>screen</a>, e
 <span id="L524" class="LineNr"> 524 </span>  <span class="Comment"># insert some text and tabs, hit enter, some more text and tabs</span>
 <span id="L525" class="LineNr"> 525 </span>  assume-console [
@@ -740,7 +740,7 @@ if ('onhashchange' in window) {
 <span id="L679" class="LineNr"> 679 </span>  contents:text <span class="Special">&lt;-</span> new <span class="Constant">[abc</span>
 <span id="L680" class="LineNr"> 680 </span><span class="Constant">def</span>
 <span id="L681" class="LineNr"> 681 </span><span class="Constant">ghi]</span>
-<span id="L682" class="LineNr"> 682 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L51'>new-editor</a> contents, <span class="Constant">0/left</span>, <span class="Constant">10/right</span>
+<span id="L682" class="LineNr"> 682 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L52'>new-editor</a> contents, <span class="Constant">0/left</span>, <span class="Constant">10/right</span>
 <span id="L683" class="LineNr"> 683 </span>  <a href='002-typing.mu.html#L263'>editor-render</a> <a href='../081print.mu.html#L4'>screen</a>, e
 <span id="L684" class="LineNr"> 684 </span>  <span class="Comment"># move the cursor</span>
 <span id="L685" class="LineNr"> 685 </span>  assume-console [
@@ -832,7 +832,7 @@ if ('onhashchange' in window) {
 <span id="L771" class="LineNr"> 771 </span>  contents:text <span class="Special">&lt;-</span> new <span class="Constant">[a</span>
 <span id="L772" class="LineNr"> 772 </span><span class="Constant">b</span>
 <span id="L773" class="LineNr"> 773 </span><span class="Constant">cdefgh]</span>
-<span id="L774" class="LineNr"> 774 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L51'>new-editor</a> contents, <span class="Constant">0/left</span>, <span class="Constant">5/right</span>
+<span id="L774" class="LineNr"> 774 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L52'>new-editor</a> contents, <span class="Constant">0/left</span>, <span class="Constant">5/right</span>
 <span id="L775" class="LineNr"> 775 </span>  <span class="Comment"># position cursor at end of screen and try to move right</span>
 <span id="L776" class="LineNr"> 776 </span>  assume-console [
 <span id="L777" class="LineNr"> 777 </span>    left-click<span class="Constant"> 3</span>,<span class="Constant"> 3</span>
@@ -895,7 +895,7 @@ if ('onhashchange' in window) {
 <span id="L834" class="LineNr"> 834 </span>  contents:text <span class="Special">&lt;-</span> new <span class="Constant">[abc</span>
 <span id="L835" class="LineNr"> 835 </span><span class="Constant">def</span>
 <span id="L836" class="LineNr"> 836 </span><span class="Constant">ghi]</span>
-<span id="L837" class="LineNr"> 837 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L51'>new-editor</a> contents, <span class="Constant">0/left</span>, <span class="Constant">10/right</span>
+<span id="L837" class="LineNr"> 837 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L52'>new-editor</a> contents, <span class="Constant">0/left</span>, <span class="Constant">10/right</span>
 <span id="L838" class="LineNr"> 838 </span>  <a href='002-typing.mu.html#L263'>editor-render</a> <a href='../081print.mu.html#L4'>screen</a>, e
 <span id="L839" class="LineNr"> 839 </span>  <span class="Comment"># move the cursor</span>
 <span id="L840" class="LineNr"> 840 </span>  assume-console [
@@ -940,7 +940,7 @@ if ('onhashchange' in window) {
 <span id="L879" class="LineNr"> 879 </span>  contents:text <span class="Special">&lt;-</span> new <span class="Constant">[abc</span>
 <span id="L880" class="LineNr"> 880 </span><span class="Constant">def</span>
 <span id="L881" class="LineNr"> 881 </span><span class="Constant">ghi]</span>
-<span id="L882" class="LineNr"> 882 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L51'>new-editor</a> contents, <span class="Constant">0/left</span>, <span class="Constant">10/right</span>
+<span id="L882" class="LineNr"> 882 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L52'>new-editor</a> contents, <span class="Constant">0/left</span>, <span class="Constant">10/right</span>
 <span id="L883" class="LineNr"> 883 </span>  <a href='002-typing.mu.html#L263'>editor-render</a> <a href='../081print.mu.html#L4'>screen</a>, e
 <span id="L884" class="LineNr"> 884 </span>  <span class="Comment"># move the cursor</span>
 <span id="L885" class="LineNr"> 885 </span>  assume-console [
@@ -991,7 +991,7 @@ if ('onhashchange' in window) {
 <span id="L930" class="LineNr"> 930 </span>  contents:text <span class="Special">&lt;-</span> new <span class="Constant">[abc</span>
 <span id="L931" class="LineNr"> 931 </span><span class="Constant">def</span>
 <span id="L932" class="LineNr"> 932 </span><span class="Constant">ghi]</span>
-<span id="L933" class="LineNr"> 933 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L51'>new-editor</a> contents, <span class="Constant">0/left</span>, <span class="Constant">10/right</span>
+<span id="L933" class="LineNr"> 933 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L52'>new-editor</a> contents, <span class="Constant">0/left</span>, <span class="Constant">10/right</span>
 <span id="L934" class="LineNr"> 934 </span>  <a href='002-typing.mu.html#L263'>editor-render</a> <a href='../081print.mu.html#L4'>screen</a>, e
 <span id="L935" class="LineNr"> 935 </span>  <span class="Comment"># move the cursor</span>
 <span id="L936" class="LineNr"> 936 </span>  assume-console [
@@ -1039,7 +1039,7 @@ if ('onhashchange' in window) {
 <span id="L978" class="LineNr"> 978 </span><span class="Constant">d</span>
 <span id="L979" class="LineNr"> 979 </span><span class="Constant">e</span>
 <span id="L980" class="LineNr"> 980 </span><span class="Constant">f]</span>
-<span id="L981" class="LineNr"> 981 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L51'>new-editor</a> contents, <span class="Constant">0/left</span>, <span class="Constant">10/right</span>
+<span id="L981" class="LineNr"> 981 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L52'>new-editor</a> contents, <span class="Constant">0/left</span>, <span class="Constant">10/right</span>
 <span id="L982" class="LineNr"> 982 </span>  <a href='002-typing.mu.html#L263'>editor-render</a> <a href='../081print.mu.html#L4'>screen</a>, e
 <span id="L983" class="LineNr"> 983 </span>  <span class="Comment"># scroll the page</span>
 <span id="L984" class="LineNr"> 984 </span>  assume-console [
@@ -1073,7 +1073,7 @@ if ('onhashchange' in window) {
 <span id="L1012" class="LineNr">1012 </span><span class="Constant">d</span>
 <span id="L1013" class="LineNr">1013 </span><span class="Constant">e</span>
 <span id="L1014" class="LineNr">1014 </span><span class="Constant">f]</span>
-<span id="L1015" class="LineNr">1015 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L51'>new-editor</a> contents, <span class="Constant">0/left</span>, <span class="Constant">10/right</span>
+<span id="L1015" class="LineNr">1015 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L52'>new-editor</a> contents, <span class="Constant">0/left</span>, <span class="Constant">10/right</span>
 <span id="L1016" class="LineNr">1016 </span>  <a href='002-typing.mu.html#L263'>editor-render</a> <a href='../081print.mu.html#L4'>screen</a>, e
 <span id="L1017" class="LineNr">1017 </span>  <span class="Comment"># scroll the page</span>
 <span id="L1018" class="LineNr">1018 </span>  assume-console [
@@ -1107,7 +1107,7 @@ if ('onhashchange' in window) {
 <span id="L1046" class="LineNr">1046 </span><span class="Constant">d</span>
 <span id="L1047" class="LineNr">1047 </span><span class="Constant">e</span>
 <span id="L1048" class="LineNr">1048 </span><span class="Constant">f]</span>
-<span id="L1049" class="LineNr">1049 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L51'>new-editor</a> contents, <span class="Constant">0/left</span>, <span class="Constant">10/right</span>
+<span id="L1049" class="LineNr">1049 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L52'>new-editor</a> contents, <span class="Constant">0/left</span>, <span class="Constant">10/right</span>
 <span id="L1050" class="LineNr">1050 </span>  <a href='002-typing.mu.html#L263'>editor-render</a> <a href='../081print.mu.html#L4'>screen</a>, e
 <span id="L1051" class="LineNr">1051 </span>  <span class="Comment"># scroll the page down and up</span>
 <span id="L1052" class="LineNr">1052 </span>  assume-console [
@@ -1142,7 +1142,7 @@ if ('onhashchange' in window) {
 <span id="L1081" class="LineNr">1081 </span><span class="Constant">d</span>
 <span id="L1082" class="LineNr">1082 </span><span class="Constant">e</span>
 <span id="L1083" class="LineNr">1083 </span><span class="Constant">f]</span>
-<span id="L1084" class="LineNr">1084 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L51'>new-editor</a> contents, <span class="Constant">0/left</span>, <span class="Constant">10/right</span>
+<span id="L1084" class="LineNr">1084 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L52'>new-editor</a> contents, <span class="Constant">0/left</span>, <span class="Constant">10/right</span>
 <span id="L1085" class="LineNr">1085 </span>  <a href='002-typing.mu.html#L263'>editor-render</a> <a href='../081print.mu.html#L4'>screen</a>, e
 <span id="L1086" class="LineNr">1086 </span>  <span class="Comment"># scroll the page down and up</span>
 <span id="L1087" class="LineNr">1087 </span>  assume-console [
@@ -1174,7 +1174,7 @@ if ('onhashchange' in window) {
 <span id="L1113" class="LineNr">1113 </span>  contents:text <span class="Special">&lt;-</span> new <span class="Constant">[abc</span>
 <span id="L1114" class="LineNr">1114 </span><span class="Constant">def</span>
 <span id="L1115" class="LineNr">1115 </span><span class="Constant">ghi]</span>
-<span id="L1116" class="LineNr">1116 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L51'>new-editor</a> contents, <span class="Constant">0/left</span>, <span class="Constant">10/right</span>
+<span id="L1116" class="LineNr">1116 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L52'>new-editor</a> contents, <span class="Constant">0/left</span>, <span class="Constant">10/right</span>
 <span id="L1117" class="LineNr">1117 </span>  <a href='002-typing.mu.html#L263'>editor-render</a> <a href='../081print.mu.html#L4'>screen</a>, e
 <span id="L1118" class="LineNr">1118 </span>  <span class="Comment"># move the cursor, then to start of line</span>
 <span id="L1119" class="LineNr">1119 </span>  assume-console [
@@ -1219,7 +1219,7 @@ if ('onhashchange' in window) {
 <span id="L1158" class="LineNr">1158 </span>  contents:text <span class="Special">&lt;-</span> new <span class="Constant">[abc</span>
 <span id="L1159" class="LineNr">1159 </span><span class="Constant">def</span>
 <span id="L1160" class="LineNr">1160 </span><span class="Constant">ghi]</span>
-<span id="L1161" class="LineNr">1161 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L51'>new-editor</a> contents, <span class="Constant">0/left</span>, <span class="Constant">10/right</span>
+<span id="L1161" class="LineNr">1161 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L52'>new-editor</a> contents, <span class="Constant">0/left</span>, <span class="Constant">10/right</span>
 <span id="L1162" class="LineNr">1162 </span>  <a href='002-typing.mu.html#L263'>editor-render</a> <a href='../081print.mu.html#L4'>screen</a>, e
 <span id="L1163" class="LineNr">1163 </span>  <span class="Comment"># move the cursor, then to start of line</span>
 <span id="L1164" class="LineNr">1164 </span>  assume-console [
@@ -1264,7 +1264,7 @@ if ('onhashchange' in window) {
 <span id="L1203" class="LineNr">1203 </span>  contents:text <span class="Special">&lt;-</span> new <span class="Constant">[abc</span>
 <span id="L1204" class="LineNr">1204 </span><span class="Constant">def</span>
 <span id="L1205" class="LineNr">1205 </span><span class="Constant">ghi]</span>
-<span id="L1206" class="LineNr">1206 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L51'>new-editor</a> contents, <span class="Constant">0/left</span>, <span class="Constant">10/right</span>
+<span id="L1206" class="LineNr">1206 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L52'>new-editor</a> contents, <span class="Constant">0/left</span>, <span class="Constant">10/right</span>
 <span id="L1207" class="LineNr">1207 </span>  <a href='002-typing.mu.html#L263'>editor-render</a> <a href='../081print.mu.html#L4'>screen</a>, e
 <span id="L1208" class="LineNr">1208 </span>  <span class="Comment"># move the cursor, then to start of line</span>
 <span id="L1209" class="LineNr">1209 </span>  assume-console [
@@ -1309,7 +1309,7 @@ if ('onhashchange' in window) {
 <span id="L1248" class="LineNr">1248 </span>  contents:text <span class="Special">&lt;-</span> new <span class="Constant">[abc</span>
 <span id="L1249" class="LineNr">1249 </span><span class="Constant">def</span>
 <span id="L1250" class="LineNr">1250 </span><span class="Constant">ghi]</span>
-<span id="L1251" class="LineNr">1251 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L51'>new-editor</a> contents, <span class="Constant">0/left</span>, <span class="Constant">10/right</span>
+<span id="L1251" class="LineNr">1251 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L52'>new-editor</a> contents, <span class="Constant">0/left</span>, <span class="Constant">10/right</span>
 <span id="L1252" class="LineNr">1252 </span>  <a href='002-typing.mu.html#L263'>editor-render</a> <a href='../081print.mu.html#L4'>screen</a>, e
 <span id="L1253" class="LineNr">1253 </span>  <span class="Comment"># move the cursor, then to start of line</span>
 <span id="L1254" class="LineNr">1254 </span>  assume-console [
@@ -1354,7 +1354,7 @@ if ('onhashchange' in window) {
 <span id="L1293" class="LineNr">1293 </span>  contents:text <span class="Special">&lt;-</span> new <span class="Constant">[abc</span>
 <span id="L1294" class="LineNr">1294 </span><span class="Constant">def</span>
 <span id="L1295" class="LineNr">1295 </span><span class="Constant">ghi]</span>
-<span id="L1296" class="LineNr">1296 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L51'>new-editor</a> contents, <span class="Constant">0/left</span>, <span class="Constant">10/right</span>
+<span id="L1296" class="LineNr">1296 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L52'>new-editor</a> contents, <span class="Constant">0/left</span>, <span class="Constant">10/right</span>
 <span id="L1297" class="LineNr">1297 </span>  <a href='002-typing.mu.html#L263'>editor-render</a> <a href='../081print.mu.html#L4'>screen</a>, e
 <span id="L1298" class="LineNr">1298 </span>  <span class="Comment"># move the cursor</span>
 <span id="L1299" class="LineNr">1299 </span>  assume-console [
@@ -1409,7 +1409,7 @@ if ('onhashchange' in window) {
 <span id="L1348" class="LineNr">1348 </span>  contents:text <span class="Special">&lt;-</span> new <span class="Constant">[abc</span>
 <span id="L1349" class="LineNr">1349 </span><span class="Constant">def</span>
 <span id="L1350" class="LineNr">1350 </span><span class="Constant">ghi]</span>
-<span id="L1351" class="LineNr">1351 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L51'>new-editor</a> contents, <span class="Constant">0/left</span>, <span class="Constant">10/right</span>
+<span id="L1351" class="LineNr">1351 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L52'>new-editor</a> contents, <span class="Constant">0/left</span>, <span class="Constant">10/right</span>
 <span id="L1352" class="LineNr">1352 </span>  <a href='002-typing.mu.html#L263'>editor-render</a> <a href='../081print.mu.html#L4'>screen</a>, e
 <span id="L1353" class="LineNr">1353 </span>  assume-console [
 <span id="L1354" class="LineNr">1354 </span>    left-click<span class="Constant"> 3</span>,<span class="Constant"> 1</span>
@@ -1464,7 +1464,7 @@ if ('onhashchange' in window) {
 <span id="L1403" class="LineNr">1403 </span>  <span class="Constant">local-scope</span>
 <span id="L1404" class="LineNr">1404 </span>  <span class="Comment"># create an editor, type some text, move the cursor, type some more text</span>
 <span id="L1405" class="LineNr">1405 </span>  assume-screen <span class="Constant">10/width</span>, <span class="Constant">5/height</span>
-<span id="L1406" class="LineNr">1406 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L51'>new-editor</a> <span class="Constant">[]</span>, <span class="Constant">0/left</span>, <span class="Constant">10/right</span>
+<span id="L1406" class="LineNr">1406 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L52'>new-editor</a> <span class="Constant">[]</span>, <span class="Constant">0/left</span>, <span class="Constant">10/right</span>
 <span id="L1407" class="LineNr">1407 </span>  <a href='002-typing.mu.html#L263'>editor-render</a> <a href='../081print.mu.html#L4'>screen</a>, e
 <span id="L1408" class="LineNr">1408 </span>  assume-console [
 <span id="L1409" class="LineNr">1409 </span>    type <span class="Constant">[abc]</span>
@@ -1613,7 +1613,7 @@ if ('onhashchange' in window) {
 <span id="L1552" class="LineNr">1552 </span>  <span class="Constant">local-scope</span>
 <span id="L1553" class="LineNr">1553 </span>  <span class="Comment"># create an editor</span>
 <span id="L1554" class="LineNr">1554 </span>  assume-screen <span class="Constant">10/width</span>, <span class="Constant">5/height</span>
-<span id="L1555" class="LineNr">1555 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L51'>new-editor</a> <span class="Constant">[]</span>, <span class="Constant">0/left</span>, <span class="Constant">10/right</span>
+<span id="L1555" class="LineNr">1555 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L52'>new-editor</a> <span class="Constant">[]</span>, <span class="Constant">0/left</span>, <span class="Constant">10/right</span>
 <span id="L1556" class="LineNr">1556 </span>  <a href='002-typing.mu.html#L263'>editor-render</a> <a href='../081print.mu.html#L4'>screen</a>, e
 <span id="L1557" class="LineNr">1557 </span>  <span class="Comment"># insert some text and hit backspace</span>
 <span id="L1558" class="LineNr">1558 </span>  assume-console [
@@ -1758,7 +1758,7 @@ if ('onhashchange' in window) {
 <span id="L1697" class="LineNr">1697 </span>  <span class="Constant">local-scope</span>
 <span id="L1698" class="LineNr">1698 </span>  <span class="Comment"># create an editor</span>
 <span id="L1699" class="LineNr">1699 </span>  assume-screen <span class="Constant">10/width</span>, <span class="Constant">5/height</span>
-<span id="L1700" class="LineNr">1700 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L51'>new-editor</a> <span class="Constant">[]</span>, <span class="Constant">0/left</span>, <span class="Constant">10/right</span>
+<span id="L1700" class="LineNr">1700 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L52'>new-editor</a> <span class="Constant">[]</span>, <span class="Constant">0/left</span>, <span class="Constant">10/right</span>
 <span id="L1701" class="LineNr">1701 </span>  <a href='002-typing.mu.html#L263'>editor-render</a> <a href='../081print.mu.html#L4'>screen</a>, e
 <span id="L1702" class="LineNr">1702 </span>  <span class="Comment"># insert some text and hit delete and backspace a few times</span>
 <span id="L1703" class="LineNr">1703 </span>  assume-console [
@@ -1949,7 +1949,7 @@ if ('onhashchange' in window) {
 <span id="L1888" class="LineNr">1888 </span>  assume-screen <span class="Constant">10/width</span>, <span class="Constant">5/height</span>
 <span id="L1889" class="LineNr">1889 </span>  contents:text <span class="Special">&lt;-</span> new <span class="Constant">[abc</span>
 <span id="L1890" class="LineNr">1890 </span><span class="Constant">def]</span>
-<span id="L1891" class="LineNr">1891 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L51'>new-editor</a> contents, <span class="Constant">0/left</span>, <span class="Constant">10/right</span>
+<span id="L1891" class="LineNr">1891 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L52'>new-editor</a> contents, <span class="Constant">0/left</span>, <span class="Constant">10/right</span>
 <span id="L1892" class="LineNr">1892 </span>  <a href='002-typing.mu.html#L263'>editor-render</a> <a href='../081print.mu.html#L4'>screen</a>, e
 <span id="L1893" class="LineNr">1893 </span>  <span class="Comment"># insert some text and hit delete and backspace a few times</span>
 <span id="L1894" class="LineNr">1894 </span>  assume-console [
@@ -2052,7 +2052,7 @@ if ('onhashchange' in window) {
 <span id="L1991" class="LineNr">1991 </span>  assume-screen <span class="Constant">10/width</span>, <span class="Constant">5/height</span>
 <span id="L1992" class="LineNr">1992 </span>  contents:text <span class="Special">&lt;-</span> new <span class="Constant">[abc</span>
 <span id="L1993" class="LineNr">1993 </span><span class="Constant">def]</span>
-<span id="L1994" class="LineNr">1994 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L51'>new-editor</a> contents, <span class="Constant">0/left</span>, <span class="Constant">10/right</span>
+<span id="L1994" class="LineNr">1994 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L52'>new-editor</a> contents, <span class="Constant">0/left</span>, <span class="Constant">10/right</span>
 <span id="L1995" class="LineNr">1995 </span>  <a href='002-typing.mu.html#L263'>editor-render</a> <a href='../081print.mu.html#L4'>screen</a>, e
 <span id="L1996" class="LineNr">1996 </span>  <span class="Comment"># insert some text and hit delete and backspace a few times</span>
 <span id="L1997" class="LineNr">1997 </span>  assume-console [
@@ -2152,7 +2152,7 @@ if ('onhashchange' in window) {
 <span id="L2091" class="LineNr">2091 </span>  <span class="Constant">local-scope</span>
 <span id="L2092" class="LineNr">2092 </span>  <span class="Comment"># create an editor</span>
 <span id="L2093" class="LineNr">2093 </span>  assume-screen <span class="Constant">10/width</span>, <span class="Constant">5/height</span>
-<span id="L2094" class="LineNr">2094 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L51'>new-editor</a> <span class="Constant">[]</span>, <span class="Constant">0/left</span>, <span class="Constant">10/right</span>
+<span id="L2094" class="LineNr">2094 </span>  e:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L52'>new-editor</a> <span class="Constant">[]</span>, <span class="Constant">0/left</span>, <span class="Constant">10/right</span>
 <span id="L2095" class="LineNr">2095 </span>  <a href='002-typing.mu.html#L263'>editor-render</a> <a href='../081print.mu.html#L4'>screen</a>, e
 <span id="L2096" class="LineNr">2096 </span>  <span class="Comment"># insert some text and hit delete and backspace a few times</span>
 <span id="L2097" class="LineNr">2097 </span>  assume-console [