about summary refs log tree commit diff stats
path: root/html/edit/002-typing.mu.html
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2017-06-09 23:42:58 -0700
committerKartik K. Agaram <vc@akkartik.com>2017-06-09 23:42:58 -0700
commitf0f077661c1f5d587602343a1a0bc82f0c99cf59 (patch)
tree0a224a22b1a50ce9ee44f03e6443623dce17a4fc /html/edit/002-typing.mu.html
parentbd5d3936ec77e0ec42d6f9d99d377d807e9892f8 (diff)
downloadmu-f0f077661c1f5d587602343a1a0bc82f0c99cf59.tar.gz
3904
Standardize functions to put the main object being modified first.
Diffstat (limited to 'html/edit/002-typing.mu.html')
-rw-r--r--html/edit/002-typing.mu.html16
1 files changed, 8 insertions, 8 deletions
diff --git a/html/edit/002-typing.mu.html b/html/edit/002-typing.mu.html
index 39cbda87..c0c93519 100644
--- a/html/edit/002-typing.mu.html
+++ b/html/edit/002-typing.mu.html
@@ -84,7 +84,7 @@ if ('onhashchange' in window) {
 <span id="L21" class="LineNr">  21 </span><span class="Constant">  </span><span class="Conceal">¦</span><span class="Constant"> +next-event</span>
 <span id="L22" class="LineNr">  22 </span>  <span class="Conceal">¦</span> cursor-row:num <span class="Special">&lt;-</span> get *editor, <span class="Constant">cursor-row:offset</span>
 <span id="L23" class="LineNr">  23 </span>  <span class="Conceal">¦</span> cursor-column:num <span class="Special">&lt;-</span> get *editor, <span class="Constant">cursor-column:offset</span>
-<span id="L24" class="LineNr">  24 </span>  <span class="Conceal">¦</span> <a href='../081print.mu.html#L4'>screen</a> <span class="Special">&lt;-</span> <a href='../081print.mu.html#L573'>move-cursor</a> <a href='../081print.mu.html#L4'>screen</a>, cursor-row, cursor-column
+<span id="L24" class="LineNr">  24 </span>  <span class="Conceal">¦</span> <a href='../081print.mu.html#L4'>screen</a> <span class="Special">&lt;-</span> move-cursor <a href='../081print.mu.html#L4'>screen</a>, cursor-row, cursor-column
 <span id="L25" class="LineNr">  25 </span>  <span class="Conceal">¦</span> e:<a href='../084console.mu.html#L4'>event</a>, found?:bool, quit?:bool, <a href='../084console.mu.html#L23'>console</a> <span class="Special">&lt;-</span> <a href='../084console.mu.html#L35'>read-event</a> <a href='../084console.mu.html#L23'>console</a>
 <span id="L26" class="LineNr">  26 </span>  <span class="Conceal">¦</span> <span class="muControl">loop-unless</span> found?
 <span id="L27" class="LineNr">  27 </span>  <span class="Conceal">¦</span> <span class="muControl">break-if</span> quit?  <span class="Comment"># only in tests</span>
@@ -93,7 +93,7 @@ if ('onhashchange' in window) {
 <span id="L30" class="LineNr">  30 </span>  <span class="Conceal">¦</span> t:<a href='../084console.mu.html#L12'>touch-event</a>, is-touch?:bool <span class="Special">&lt;-</span> maybe-convert e, <span class="Constant">touch:variant</span>
 <span id="L31" class="LineNr">  31 </span>  <span class="Conceal">¦</span> <span class="Delimiter">{</span>
 <span id="L32" class="LineNr">  32 </span>  <span class="Conceal">¦</span> <span class="Conceal">¦</span> <span class="muControl">break-unless</span> is-touch?
-<span id="L33" class="LineNr">  33 </span>  <span class="Conceal">¦</span> <span class="Conceal">¦</span> <a href='002-typing.mu.html#L50'>move-cursor-in-editor</a> <a href='../081print.mu.html#L4'>screen</a>, editor, t
+<span id="L33" class="LineNr">  33 </span>  <span class="Conceal">¦</span> <span class="Conceal">¦</span> move-cursor editor, <a href='../081print.mu.html#L4'>screen</a>, t
 <span id="L34" class="LineNr">  34 </span>  <span class="Conceal">¦</span> <span class="Conceal">¦</span> <span class="muControl">loop</span> <span class="Constant">+next-event</span>
 <span id="L35" class="LineNr">  35 </span>  <span class="Conceal">¦</span> <span class="Delimiter">}</span>
 <span id="L36" class="LineNr">  36 </span>  <span class="Conceal">¦</span> <span class="Comment"># keyboard events</span>
@@ -110,7 +110,7 @@ if ('onhashchange' in window) {
 <span id="L47" class="LineNr">  47 </span>]
 <span id="L48" class="LineNr">  48 </span>
 <span id="L49" class="LineNr">  49 </span><span class="Comment"># process click, return if it was on current editor</span>
-<span id="L50" class="LineNr">  50 </span><span class="muRecipe">def</span> <a href='002-typing.mu.html#L50'>move-cursor-in-editor</a> <a href='../081print.mu.html#L4'>screen</a>:&amp;:<a href='../081print.mu.html#L4'>screen</a>, editor:&amp;:editor, t:<a href='../084console.mu.html#L12'>touch-event</a><span class="muRecipe"> -&gt; </span>in-focus?:bool, editor:&amp;:editor [
+<span id="L50" class="LineNr">  50 </span><span class="muRecipe">def</span> move-cursor editor:&amp;:editor, <a href='../081print.mu.html#L4'>screen</a>:&amp;:<a href='../081print.mu.html#L4'>screen</a>, t:<a href='../084console.mu.html#L12'>touch-event</a><span class="muRecipe"> -&gt; </span>in-focus?:bool, editor:&amp;:editor [
 <span id="L51" class="LineNr">  51 </span>  <span class="Constant">local-scope</span>
 <span id="L52" class="LineNr">  52 </span>  <span class="Constant">load-ingredients</span>
 <span id="L53" class="LineNr">  53 </span>  <span class="muControl">return-unless</span> editor, <span class="Constant">0/false</span>
@@ -125,7 +125,7 @@ if ('onhashchange' in window) {
 <span id="L62" class="LineNr">  62 </span>  <span class="muControl">return-if</span> too-far-right?, <span class="Constant">0/false</span>
 <span id="L63" class="LineNr">  63 </span>  <span class="Comment"># position cursor</span>
 <span id="L64" class="LineNr">  64 </span><span class="Constant">  &lt;move-cursor-begin&gt;</span>
-<span id="L65" class="LineNr">  65 </span>  editor <span class="Special">&lt;-</span> <a href='002-typing.mu.html#L75'>snap-cursor</a> <a href='../081print.mu.html#L4'>screen</a>, editor, click-row, click-column
+<span id="L65" class="LineNr">  65 </span>  editor <span class="Special">&lt;-</span> <a href='002-typing.mu.html#L75'>snap-cursor</a> editor, <a href='../081print.mu.html#L4'>screen</a>, click-row, click-column
 <span id="L66" class="LineNr">  66 </span>  undo-coalesce-tag:num <span class="Special">&lt;-</span> copy <span class="Constant">0/never</span>
 <span id="L67" class="LineNr">  67 </span><span class="Constant">  &lt;move-cursor-end&gt;</span>
 <span id="L68" class="LineNr">  68 </span>  <span class="Comment"># gain focus</span>
@@ -135,7 +135,7 @@ if ('onhashchange' in window) {
 <span id="L72" class="LineNr">  72 </span><span class="Comment"># Variant of 'render' that only moves the cursor (coordinates and</span>
 <span id="L73" class="LineNr">  73 </span><span class="Comment"># before-cursor). If it's past the end of a line, it 'slides' it left. If it's</span>
 <span id="L74" class="LineNr">  74 </span><span class="Comment"># past the last line it positions at end of last line.</span>
-<span id="L75" class="LineNr">  75 </span><span class="muRecipe">def</span> <a href='002-typing.mu.html#L75'>snap-cursor</a> <a href='../081print.mu.html#L4'>screen</a>:&amp;:<a href='../081print.mu.html#L4'>screen</a>, editor:&amp;:editor, target-row:num, target-column:num<span class="muRecipe"> -&gt; </span>editor:&amp;:editor [
+<span id="L75" class="LineNr">  75 </span><span class="muRecipe">def</span> <a href='002-typing.mu.html#L75'>snap-cursor</a> editor:&amp;:editor, <a href='../081print.mu.html#L4'>screen</a>:&amp;:<a href='../081print.mu.html#L4'>screen</a>, target-row:num, target-column:num<span class="muRecipe"> -&gt; </span>editor:&amp;:editor [
 <span id="L76" class="LineNr">  76 </span>  <span class="Constant">local-scope</span>
 <span id="L77" class="LineNr">  77 </span>  <span class="Constant">load-ingredients</span>
 <span id="L78" class="LineNr">  78 </span>  <span class="muControl">return-unless</span> editor
@@ -293,7 +293,7 @@ if ('onhashchange' in window) {
 <span id="L230" class="LineNr"> 230 </span>  <span class="Conceal">¦</span> at-right?:bool <span class="Special">&lt;-</span> equal save-column, right
 <span id="L231" class="LineNr"> 231 </span>  <span class="Conceal">¦</span> overflow?:bool <span class="Special">&lt;-</span> and at-bottom?, at-right?
 <span id="L232" class="LineNr"> 232 </span>  <span class="Conceal">¦</span> <span class="muControl">break-if</span> overflow?
-<span id="L233" class="LineNr"> 233 </span>  <span class="Conceal">¦</span> <a href='../081print.mu.html#L573'>move-cursor</a> <a href='../081print.mu.html#L4'>screen</a>, save-row, save-column
+<span id="L233" class="LineNr"> 233 </span>  <span class="Conceal">¦</span> move-cursor <a href='../081print.mu.html#L4'>screen</a>, save-row, save-column
 <span id="L234" class="LineNr"> 234 </span>  <span class="Conceal">¦</span> print <a href='../081print.mu.html#L4'>screen</a>, c
 <span id="L235" class="LineNr"> 235 </span>  <span class="Conceal">¦</span> <span class="muControl">return</span> <span class="Constant">0/don't-render</span>
 <span id="L236" class="LineNr"> 236 </span>  <span class="Delimiter">}</span>
@@ -303,7 +303,7 @@ if ('onhashchange' in window) {
 <span id="L240" class="LineNr"> 240 </span>  <span class="Conceal">¦</span> at-right?:bool <span class="Special">&lt;-</span> greater-or-equal cursor-column, <a href='../081print.mu.html#L735'>screen-width</a>
 <span id="L241" class="LineNr"> 241 </span>  <span class="Conceal">¦</span> <span class="muControl">break-if</span> at-right?
 <span id="L242" class="LineNr"> 242 </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="L243" class="LineNr"> 243 </span>  <span class="Conceal">¦</span> <a href='../081print.mu.html#L573'>move-cursor</a> <a href='../081print.mu.html#L4'>screen</a>, save-row, save-column
+<span id="L243" class="LineNr"> 243 </span>  <span class="Conceal">¦</span> move-cursor <a href='../081print.mu.html#L4'>screen</a>, save-row, save-column
 <span id="L244" class="LineNr"> 244 </span>  <span class="Conceal">¦</span> curr-column:num <span class="Special">&lt;-</span> copy save-column
 <span id="L245" class="LineNr"> 245 </span>  <span class="Conceal">¦</span> <span class="Delimiter">{</span>
 <span id="L246" class="LineNr"> 246 </span>  <span class="Conceal">¦</span> <span class="Conceal">¦</span> <span class="Comment"># hit right margin? give up and let caller render</span>
@@ -1142,7 +1142,7 @@ if ('onhashchange' in window) {
 <span id="L1079" class="LineNr">1079 </span>  <span class="Conceal">¦</span> <span class="muControl">break-if</span> bg-color-found?
 <span id="L1080" class="LineNr">1080 </span>  <span class="Conceal">¦</span> bg-color <span class="Special">&lt;-</span> copy <span class="Constant">0/black</span>
 <span id="L1081" class="LineNr">1081 </span>  <span class="Delimiter">}</span>
-<span id="L1082" class="LineNr">1082 </span>  <a href='../081print.mu.html#L4'>screen</a> <span class="Special">&lt;-</span> <a href='../081print.mu.html#L573'>move-cursor</a> <a href='../081print.mu.html#L4'>screen</a>, row, x
+<span id="L1082" class="LineNr">1082 </span>  <a href='../081print.mu.html#L4'>screen</a> <span class="Special">&lt;-</span> move-cursor <a href='../081print.mu.html#L4'>screen</a>, row, x
 <span id="L1083" class="LineNr">1083 </span>  <span class="Delimiter">{</span>
 <span id="L1084" class="LineNr">1084 </span>  <span class="Conceal">¦</span> continue?:bool <span class="Special">&lt;-</span> lesser-or-equal x, right  <span class="Comment"># right is inclusive, to match editor semantics</span>
 <span id="L1085" class="LineNr">1085 </span>  <span class="Conceal">¦</span> <span class="muControl">break-unless</span> continue?