about summary refs log tree commit diff stats
path: root/html/edit/002-typing.mu.html
diff options
context:
space:
mode:
Diffstat (limited to 'html/edit/002-typing.mu.html')
-rw-r--r--html/edit/002-typing.mu.html24
1 files changed, 12 insertions, 12 deletions
diff --git a/html/edit/002-typing.mu.html b/html/edit/002-typing.mu.html
index 3b48c3cc..ad249e5c 100644
--- a/html/edit/002-typing.mu.html
+++ b/html/edit/002-typing.mu.html
@@ -141,8 +141,8 @@ if ('onhashchange' in window) {
 <span id="L78" class="LineNr">  78 </span>  right:num <span class="Special">&lt;-</span> get *editor, <span class="Constant">right:offset</span>
 <span id="L79" class="LineNr">  79 </span>  <a href='../081print.mu.html#L587'>screen-height</a>:num <span class="Special">&lt;-</span> <a href='../081print.mu.html#L587'>screen-height</a> <a href='../081print.mu.html#L4'>screen</a>
 <span id="L80" class="LineNr">  80 </span>  <span class="Comment"># count newlines until screen row</span>
-<span id="L81" class="LineNr">  81 </span>  curr:&amp;:duplex-list:char <span class="Special">&lt;-</span> get *editor, <span class="Constant">top-of-screen:offset</span>
-<span id="L82" class="LineNr">  82 </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="L81" class="LineNr">  81 </span>  curr:&amp;:<a href='../065duplex_list.mu.html#L3'>duplex-list</a>:char <span class="Special">&lt;-</span> get *editor, <span class="Constant">top-of-screen:offset</span>
+<span id="L82" class="LineNr">  82 </span>  <a href='../065duplex_list.mu.html#L36'>prev</a>:&amp;:<a href='../065duplex_list.mu.html#L3'>duplex-list</a>: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="L83" class="LineNr">  83 </span>  curr <span class="Special">&lt;-</span> <a href='../065duplex_list.mu.html#L29'>next</a> curr
 <span id="L84" class="LineNr">  84 </span>  row:num <span class="Special">&lt;-</span> copy <span class="Constant">1/top</span>
 <span id="L85" class="LineNr">  85 </span>  column:num <span class="Special">&lt;-</span> copy left
@@ -150,7 +150,7 @@ if ('onhashchange' in window) {
 <span id="L87" class="LineNr">  87 </span>  cursor-row:num <span class="Special">&lt;-</span> copy target-row
 <span id="L88" class="LineNr">  88 </span>  *editor <span class="Special">&lt;-</span> put *editor, <span class="Constant">cursor-column:offset</span>, target-column
 <span id="L89" class="LineNr">  89 </span>  cursor-column:num <span class="Special">&lt;-</span> copy target-column
-<span id="L90" class="LineNr">  90 </span>  before-cursor:&amp;:duplex-list:char <span class="Special">&lt;-</span> get *editor, <span class="Constant">before-cursor:offset</span>
+<span id="L90" class="LineNr">  90 </span>  before-cursor:&amp;:<a href='../065duplex_list.mu.html#L3'>duplex-list</a>:char <span class="Special">&lt;-</span> get *editor, <span class="Constant">before-cursor:offset</span>
 <span id="L91" class="LineNr">  91 </span>  <span class="Delimiter">{</span>
 <span id="L92" class="LineNr">  92 </span><span class="Constant">  </span><span class="Conceal">¦</span><span class="Constant"> +next-character</span>
 <span id="L93" class="LineNr">  93 </span>  <span class="Conceal">¦</span> <span class="muControl">break-unless</span> curr
@@ -232,7 +232,7 @@ if ('onhashchange' in window) {
 <span id="L169" class="LineNr"> 169 </span>  <a href='../081print.mu.html#L587'>screen-height</a>:num <span class="Special">&lt;-</span> <a href='../081print.mu.html#L587'>screen-height</a> <a href='../081print.mu.html#L4'>screen</a>
 <span id="L170" class="LineNr"> 170 </span>  left:num <span class="Special">&lt;-</span> get *editor, <span class="Constant">left:offset</span>
 <span id="L171" class="LineNr"> 171 </span>  right:num <span class="Special">&lt;-</span> get *editor, <span class="Constant">right:offset</span>
-<span id="L172" class="LineNr"> 172 </span>  before-cursor:&amp;:duplex-list:char <span class="Special">&lt;-</span> get *editor, <span class="Constant">before-cursor:offset</span>
+<span id="L172" class="LineNr"> 172 </span>  before-cursor:&amp;:<a href='../065duplex_list.mu.html#L3'>duplex-list</a>:char <span class="Special">&lt;-</span> get *editor, <span class="Constant">before-cursor:offset</span>
 <span id="L173" class="LineNr"> 173 </span>  cursor-row:num <span class="Special">&lt;-</span> get *editor, <span class="Constant">cursor-row:offset</span>
 <span id="L174" class="LineNr"> 174 </span>  cursor-column:num <span class="Special">&lt;-</span> get *editor, <span class="Constant">cursor-column:offset</span>
 <span id="L175" class="LineNr"> 175 </span>  save-row:num <span class="Special">&lt;-</span> copy cursor-row
@@ -264,7 +264,7 @@ if ('onhashchange' in window) {
 <span id="L201" class="LineNr"> 201 </span><span class="muRecipe">def</span> <a href='002-typing.mu.html#L201'>insert-at-cursor</a> editor:&amp;:editor, c:char, <a href='../081print.mu.html#L4'>screen</a>:&amp;:<a href='../081print.mu.html#L4'>screen</a><span class="muRecipe"> -&gt; </span>go-render?:bool, editor:&amp;:editor, <a href='../081print.mu.html#L4'>screen</a>:&amp;:<a href='../081print.mu.html#L4'>screen</a> [
 <span id="L202" class="LineNr"> 202 </span>  <span class="Constant">local-scope</span>
 <span id="L203" class="LineNr"> 203 </span>  <span class="Constant">load-ingredients</span>
-<span id="L204" class="LineNr"> 204 </span>  before-cursor:&amp;:duplex-list:char <span class="Special">&lt;-</span> get *editor, <span class="Constant">before-cursor:offset</span>
+<span id="L204" class="LineNr"> 204 </span>  before-cursor:&amp;:<a href='../065duplex_list.mu.html#L3'>duplex-list</a>:char <span class="Special">&lt;-</span> get *editor, <span class="Constant">before-cursor:offset</span>
 <span id="L205" class="LineNr"> 205 </span>  insert c, before-cursor
 <span id="L206" class="LineNr"> 206 </span>  before-cursor <span class="Special">&lt;-</span> <a href='../065duplex_list.mu.html#L29'>next</a> before-cursor
 <span id="L207" class="LineNr"> 207 </span>  *editor <span class="Special">&lt;-</span> put *editor, <span class="Constant">before-cursor:offset</span>, before-cursor
@@ -281,7 +281,7 @@ if ('onhashchange' in window) {
 <span id="L218" class="LineNr"> 218 </span>  <span class="Comment"># but mostly we'll just move the cursor right</span>
 <span id="L219" class="LineNr"> 219 </span>  cursor-column <span class="Special">&lt;-</span> add cursor-column,<span class="Constant"> 1</span>
 <span id="L220" class="LineNr"> 220 </span>  *editor <span class="Special">&lt;-</span> put *editor, <span class="Constant">cursor-column:offset</span>, cursor-column
-<span id="L221" class="LineNr"> 221 </span>  <a href='../065duplex_list.mu.html#L29'>next</a>:&amp;:duplex-list:char <span class="Special">&lt;-</span> <a href='../065duplex_list.mu.html#L29'>next</a> before-cursor
+<span id="L221" class="LineNr"> 221 </span>  <a href='../065duplex_list.mu.html#L29'>next</a>:&amp;:<a href='../065duplex_list.mu.html#L3'>duplex-list</a>:char <span class="Special">&lt;-</span> <a href='../065duplex_list.mu.html#L29'>next</a> before-cursor
 <span id="L222" class="LineNr"> 222 </span>  <span class="Delimiter">{</span>
 <span id="L223" class="LineNr"> 223 </span>  <span class="Conceal">¦</span> <span class="Comment"># at end of all text? no need to scroll? just print the character and leave</span>
 <span id="L224" class="LineNr"> 224 </span>  <span class="Conceal">¦</span> at-end?:bool <span class="Special">&lt;-</span> equal <a href='../065duplex_list.mu.html#L29'>next</a>, <span class="Constant">0/null</span>
@@ -300,7 +300,7 @@ if ('onhashchange' in window) {
 <span id="L237" class="LineNr"> 237 </span>  <span class="Conceal">¦</span> <span class="muControl">break-unless</span> <a href='../065duplex_list.mu.html#L29'>next</a>
 <span id="L238" class="LineNr"> 238 </span>  <span class="Conceal">¦</span> at-right?:bool <span class="Special">&lt;-</span> greater-or-equal cursor-column, <a href='../081print.mu.html#L574'>screen-width</a>
 <span id="L239" class="LineNr"> 239 </span>  <span class="Conceal">¦</span> <span class="muControl">break-if</span> at-right?
-<span id="L240" class="LineNr"> 240 </span>  <span class="Conceal">¦</span> curr:&amp;:duplex-list:char <span class="Special">&lt;-</span> copy before-cursor
+<span id="L240" class="LineNr"> 240 </span>  <span class="Conceal">¦</span> curr:&amp;:<a href='../065duplex_list.mu.html#L3'>duplex-list</a>:char <span class="Special">&lt;-</span> copy before-cursor
 <span id="L241" class="LineNr"> 241 </span>  <span class="Conceal">¦</span> <a href='../081print.mu.html#L435'>move-cursor</a> <a href='../081print.mu.html#L4'>screen</a>, save-row, save-column
 <span id="L242" class="LineNr"> 242 </span>  <span class="Conceal">¦</span> curr-column:num <span class="Special">&lt;-</span> copy save-column
 <span id="L243" class="LineNr"> 243 </span>  <span class="Conceal">¦</span> <span class="Delimiter">{</span>
@@ -760,7 +760,7 @@ if ('onhashchange' in window) {
 <span id="L697" class="LineNr"> 697 </span>  <span class="Conceal">¦</span> before-wrap-column:num <span class="Special">&lt;-</span> subtract wrap-column,<span class="Constant"> 1</span>
 <span id="L698" class="LineNr"> 698 </span>  <span class="Conceal">¦</span> at-wrap?:bool <span class="Special">&lt;-</span> greater-or-equal cursor-column, wrap-column
 <span id="L699" class="LineNr"> 699 </span>  <span class="Conceal">¦</span> just-before-wrap?:bool <span class="Special">&lt;-</span> greater-or-equal cursor-column, before-wrap-column
-<span id="L700" class="LineNr"> 700 </span>  <span class="Conceal">¦</span> <a href='../065duplex_list.mu.html#L29'>next</a>:&amp;:duplex-list:char <span class="Special">&lt;-</span> <a href='../065duplex_list.mu.html#L29'>next</a> before-cursor
+<span id="L700" class="LineNr"> 700 </span>  <span class="Conceal">¦</span> <a href='../065duplex_list.mu.html#L29'>next</a>:&amp;:<a href='../065duplex_list.mu.html#L3'>duplex-list</a>:char <span class="Special">&lt;-</span> <a href='../065duplex_list.mu.html#L29'>next</a> before-cursor
 <span id="L701" class="LineNr"> 701 </span>  <span class="Conceal">¦</span> <span class="Comment"># at end of line? next == 0 || next.value == 10/newline</span>
 <span id="L702" class="LineNr"> 702 </span>  <span class="Conceal">¦</span> at-end-of-line?:bool <span class="Special">&lt;-</span> equal <a href='../065duplex_list.mu.html#L29'>next</a>,<span class="Constant"> 0</span>
 <span id="L703" class="LineNr"> 703 </span>  <span class="Conceal">¦</span> <span class="Delimiter">{</span>
@@ -929,7 +929,7 @@ if ('onhashchange' in window) {
 <span id="L866" class="LineNr"> 866 </span>  <span class="Constant">load-ingredients</span>
 <span id="L867" class="LineNr"> 867 </span>  cursor-row:num <span class="Special">&lt;-</span> get *editor, <span class="Constant">cursor-row:offset</span>
 <span id="L868" class="LineNr"> 868 </span>  cursor-column:num <span class="Special">&lt;-</span> get *editor, <span class="Constant">cursor-column:offset</span>
-<span id="L869" class="LineNr"> 869 </span>  before-cursor:&amp;:duplex-list:char <span class="Special">&lt;-</span> get *editor, <span class="Constant">before-cursor:offset</span>
+<span id="L869" class="LineNr"> 869 </span>  before-cursor:&amp;:<a href='../065duplex_list.mu.html#L3'>duplex-list</a>:char <span class="Special">&lt;-</span> get *editor, <span class="Constant">before-cursor:offset</span>
 <span id="L870" class="LineNr"> 870 </span>  left:num <span class="Special">&lt;-</span> get *editor, <span class="Constant">left:offset</span>
 <span id="L871" class="LineNr"> 871 </span>  right:num <span class="Special">&lt;-</span> get *editor, <span class="Constant">right:offset</span>
 <span id="L872" class="LineNr"> 872 </span>  <a href='../081print.mu.html#L587'>screen-height</a>:num <span class="Special">&lt;-</span> <a href='../081print.mu.html#L587'>screen-height</a> <a href='../081print.mu.html#L4'>screen</a>
@@ -952,8 +952,8 @@ if ('onhashchange' in window) {
 <span id="L889" class="LineNr"> 889 </span>  <span class="Comment"># indent if necessary</span>
 <span id="L890" class="LineNr"> 890 </span>  indent?:bool <span class="Special">&lt;-</span> get *editor, <span class="Constant">indent?:offset</span>
 <span id="L891" class="LineNr"> 891 </span>  <span class="muControl">return-unless</span> indent?
-<span id="L892" class="LineNr"> 892 </span>  d:&amp;:duplex-list:char <span class="Special">&lt;-</span> get *editor, <span class="Constant">data:offset</span>
-<span id="L893" class="LineNr"> 893 </span>  end-of-previous-line:&amp;:duplex-list:char <span class="Special">&lt;-</span> <a href='../065duplex_list.mu.html#L36'>prev</a> before-cursor
+<span id="L892" class="LineNr"> 892 </span>  d:&amp;:<a href='../065duplex_list.mu.html#L3'>duplex-list</a>:char <span class="Special">&lt;-</span> get *editor, <span class="Constant">data:offset</span>
+<span id="L893" class="LineNr"> 893 </span>  end-of-previous-line:&amp;:<a href='../065duplex_list.mu.html#L3'>duplex-list</a>:char <span class="Special">&lt;-</span> <a href='../065duplex_list.mu.html#L36'>prev</a> before-cursor
 <span id="L894" class="LineNr"> 894 </span>  indent:num <span class="Special">&lt;-</span> <a href='002-typing.mu.html#L907'>line-indent</a> end-of-previous-line, d
 <span id="L895" class="LineNr"> 895 </span>  i:num <span class="Special">&lt;-</span> copy<span class="Constant"> 0</span>
 <span id="L896" class="LineNr"> 896 </span>  <span class="Delimiter">{</span>
@@ -967,7 +967,7 @@ if ('onhashchange' in window) {
 <span id="L904" class="LineNr"> 904 </span>
 <span id="L905" class="LineNr"> 905 </span><span class="Comment"># takes a pointer 'curr' into the doubly-linked list and its sentinel, counts</span>
 <span id="L906" class="LineNr"> 906 </span><span class="Comment"># the number of spaces at the start of the line containing 'curr'.</span>
-<span id="L907" class="LineNr"> 907 </span><span class="muRecipe">def</span> <a href='002-typing.mu.html#L907'>line-indent</a> curr:&amp;:duplex-list:char, start:&amp;:duplex-list:char<span class="muRecipe"> -&gt; </span>result:num [
+<span id="L907" class="LineNr"> 907 </span><span class="muRecipe">def</span> <a href='002-typing.mu.html#L907'>line-indent</a> curr:&amp;:<a href='../065duplex_list.mu.html#L3'>duplex-list</a>:char, start:&amp;:<a href='../065duplex_list.mu.html#L3'>duplex-list</a>:char<span class="muRecipe"> -&gt; </span>result:num [
 <span id="L908" class="LineNr"> 908 </span>  <span class="Constant">local-scope</span>
 <span id="L909" class="LineNr"> 909 </span>  <span class="Constant">load-ingredients</span>
 <span id="L910" class="LineNr"> 910 </span>  result:num <span class="Special">&lt;-</span> copy<span class="Constant"> 0</span>