Skip to content

Commit 65eeb42

Browse files
committed
clog 2.2 doc update
1 parent df0bb86 commit 65eeb42

File tree

2 files changed

+35
-10
lines changed

2 files changed

+35
-10
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ embedded in a native application.)
1919

2020
- [CLOG - Reference Manual](https://rabbibotton.github.io/clog/clog-manual.html)
2121

22-
STATUS: CLOG and CLOG Builder 2.1 released. CLOG API Stable 4 years
22+
STATUS: CLOG and CLOG Builder 2.2 released. CLOG API Stable 4 years
2323

2424
The CLOG Builder is in 100% portable Common Lisp using the CLOG Framework.
2525

doc/clog-manual.html

Lines changed: 34 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1203,7 +1203,8 @@ <h2><a href="#CLOG:@CLOG-ELEMENT%20MGL-PAX:SECTION">7 CLOG Elements</a></h2>
12031203
<p>Create a new <a href="#CLOG:CLOG-ELEMENT%20CLASS" title="CLOG:CLOG-ELEMENT CLASS"><code>CLOG-ELEMENT</code></a> or sub-type of <code>CLOG-TYPE</code> from <code>HTML</code>
12041204
as child of <code>CLOG-OBJ</code> and if <code>:AUTO-PLACE</code> (default t) place-inside-bottom-of
12051205
<code>CLOG-OBJ</code>, you can also set auto-place to :bottom or :top. If <code>HTML-ID</code> is nil one
1206-
will be generated.</p></li>
1206+
will be generated. If auto-place is nil, note that if browser-gc is called
1207+
or clog-connect:*browser-gc-on-ping* is t the browser side will be destroyed.</p></li>
12071208
</ul>
12081209
<p><a id="x-28CLOG-3AATTACH-AS-CHILD-20GENERIC-FUNCTION-29"></a>
12091210
<a id="CLOG:ATTACH-AS-CHILD%20GENERIC-FUNCTION"></a></p>
@@ -2434,6 +2435,18 @@ <h2><a href="#CLOG:@CLOG-ELEMENT%20MGL-PAX:SECTION">7 CLOG Elements</a></h2>
24342435
<p>Remove CLOG-Element from the DOM on browser and clog cache
24352436
on browser.</p></li>
24362437
</ul>
2438+
<p><a id="x-28CLOG-3ABROWSER-GC-20GENERIC-FUNCTION-29"></a>
2439+
<a id="CLOG:BROWSER-GC%20GENERIC-FUNCTION"></a></p>
2440+
<ul>
2441+
<li><p><span class=reference-bullet><span class=reference><span class="locative-type">[generic-function]</span> <span class="reference-object"><a href="#CLOG:BROWSER-GC%20GENERIC-FUNCTION" >BROWSER-GC</a></span></span> <span class="locative-args">CLOG-ELEMENT</span></span></p>
2442+
2443+
<p>Remove any clog cache items on browser not in DOM.
2444+
If clog-connect:*browser-gc-on-ping* is set this is done during websocket pings.
2445+
Care should be taken as any clog-element not placed in the DOM will be deleted
2446+
on the browser side (for examle :auto-place nil set and not later placed.)
2447+
The main use is when clearing out large amounts of DOM objects not using CLOG
2448+
destroy.</p></li>
2449+
</ul>
24372450
<p><a id="x-28CLOG-3ACLICK-20GENERIC-FUNCTION-29"></a>
24382451
<a id="CLOG:CLICK%20GENERIC-FUNCTION"></a></p>
24392452
<ul>
@@ -2475,8 +2488,9 @@ <h2><a href="#CLOG:@CLOG-ELEMENT%20MGL-PAX:SECTION">7 CLOG Elements</a></h2>
24752488
<ul>
24762489
<li><p><span class=reference-bullet><span class=reference><span class="locative-type">[generic-function]</span> <span class="reference-object"><a href="#CLOG:PARENT-ELEMENT%20GENERIC-FUNCTION" >PARENT-ELEMENT</a></span></span> <span class="locative-args">CLOG-ELEMENT</span></span></p>
24772490

2478-
<p>Return a new clog-element represeting the parent of
2479-
<code>CLOG-ELEMENT</code>.</p></li>
2491+
<p>Return a <em>new</em> clog-element represeting the parent of
2492+
<code>CLOG-ELEMENT</code>. In most cases use <a href="#CLOG:PARENT%20GENERIC-FUNCTION" title="CLOG:PARENT GENERIC-FUNCTION"><code>PARENT</code></a>, this creates an alias lisp object
2493+
used for DOM tree walking or other throw away purposes.</p></li>
24802494
</ul>
24812495
<p><a id="x-28CLOG-3AFIRST-CHILD-20GENERIC-FUNCTION-29"></a>
24822496
<a id="CLOG:FIRST-CHILD%20GENERIC-FUNCTION"></a></p>
@@ -2503,7 +2517,7 @@ <h2><a href="#CLOG:@CLOG-ELEMENT%20MGL-PAX:SECTION">7 CLOG Elements</a></h2>
25032517

25042518
<p>Traverse to next sibling element. If Child does not have an
25052519
html id than Element_Type will have an ID of undefined and therefore attached
2506-
to no actual <code>HTML</code> elemen.</p></li>
2520+
to no actual <code>HTML</code> element.</p></li>
25072521
</ul>
25082522
<p><a id="x-28CLOG-3A-40CLOG-ELEMENT-COMMON-20MGL-PAX-3ASECTION-29"></a>
25092523
<a id="CLOG:@CLOG-ELEMENT-COMMON%20MGL-PAX:SECTION"></a></p>
@@ -7037,7 +7051,7 @@ <h6>[in package CLOG-GUI]</h6>
70377051
<p><a id="x-28CLOG-GUI-3AINPUT-DIALOG-20FUNCTION-29"></a>
70387052
<a id="CLOG-GUI:INPUT-DIALOG%20FUNCTION"></a></p>
70397053
<ul>
7040-
<li><p><span class=reference-bullet><span class=reference><span class="locative-type">[function]</span> <span class="reference-object"><a href="#CLOG-GUI:INPUT-DIALOG%20FUNCTION" >INPUT-DIALOG</a></span></span> <span class="locative-args">OBJ CONTENT ON-INPUT &amp;KEY (MODAL <code>T</code>) (TIME-OUT <code>NIL</code>) (TITLE &quot;Input&quot;) (SIZE 20) (ROWS 1) (PLACEHOLDER-VALUE &quot;&quot;) (DEFAULT-VALUE &quot;&quot;) (LEFT <code>NIL</code>) (TOP <code>NIL</code>) (WIDTH 300) (HEIGHT 200) (CLIENT-MOVEMENT <code>NIL</code>) (HTML-ID <code>NIL</code>)</span></span></p>
7054+
<li><p><span class=reference-bullet><span class=reference><span class="locative-type">[function]</span> <span class="reference-object"><a href="#CLOG-GUI:INPUT-DIALOG%20FUNCTION" >INPUT-DIALOG</a></span></span> <span class="locative-args">OBJ CONTENT ON-INPUT &amp;KEY (MODAL <code>T</code>) (TIME-OUT <code>NIL</code>) (TITLE &quot;Input&quot;) (SIZE 20) (ROWS 1) (PLACEHOLDER-VALUE &quot;&quot;) (DEFAULT-VALUE &quot;&quot;) IS-PASSWORD (LEFT <code>NIL</code>) (TOP <code>NIL</code>) (WIDTH 300) (HEIGHT 200) (CLIENT-MOVEMENT <code>NIL</code>) (HTML-ID <code>NIL</code>)</span></span></p>
70417055

70427056
<p>Create an input dialog box with <code>CONTENT</code> centered and an input box.
70437057
Calls on-input with input box contents or nil if canceled. If time-out
@@ -7137,15 +7151,23 @@ <h6>[in package CLOG-GUI]</h6>
71377151
<p><a id="x-28CLOG-GUI-3ACLOG-PROBE-20MGL-PAX-3AMACRO-29"></a>
71387152
<a id="CLOG-GUI:CLOG-PROBE%20MGL-PAX:MACRO"></a></p>
71397153
<ul>
7140-
<li><p><span class=reference-bullet><span class=reference><span class="locative-type">[macro]</span> <span class="reference-object"><a href="#CLOG-GUI:CLOG-PROBE%20MGL-PAX:MACRO" >CLOG-PROBE</a></span></span> <span class="locative-args">SYMBOL &amp;KEY CLOG-BODY (TITLE &quot;&quot;) (TIME-OUT 600) TOP LEFT (WIDTH 400) (HEIGHT 300) AUTO-PROBE (MODAL <code>T</code>)</span></span></p>
7154+
<li><p><span class=reference-bullet><span class=reference><span class="locative-type">[macro]</span> <span class="reference-object"><a href="#CLOG-GUI:CLOG-PROBE%20MGL-PAX:MACRO" >CLOG-PROBE</a></span></span> <span class="locative-args">SYMBOL &amp;KEY CLOG-BODY (TITLE &quot;&quot;) (TIME-OUT 600) TOP LEFT (WIDTH 400) (HEIGHT 300) AUTO-PROBE SAVE-VALUE (MODAL <code>T</code>)</span></span></p>
71417155

71427156
<p>Pause thread of execution for time-out numnber of seconds or nil to not
71437157
block execution, display symbol's value, value is changed if OK pressed at
71447158
the moment pressed. When time-out is nil, :q quits the probe and cancel
71457159
repeats the probe with out changing value. When time-out is nil modal is
71467160
always nil. If auto-probe is set, modal and time-out is set to nil and the
71477161
probe is run again in auto-probe seconds. If not tile is set, the symbol is
7148-
used for title.</p></li>
7162+
used for title. If save-value is true clog-gui:*probe* is set to value of
7163+
symbol before any change is made by dialog.</p></li>
7164+
</ul>
7165+
<p><a id="x-28CLOG-GUI-3A-2APROBE-2A-20VARIABLE-29"></a>
7166+
<a id="CLOG-GUI:*PROBE*%20VARIABLE"></a></p>
7167+
<ul>
7168+
<li><p><span class=reference-bullet><span class=reference><span class="locative-type">[variable]</span> <span class="reference-object"><a href="#CLOG-GUI:*PROBE*%20VARIABLE" >*PROBE*</a></span></span> <span class="locative-args">NIL</span></span></p>
7169+
7170+
<p>Result value of a probe</p></li>
71497171
</ul>
71507172
<p><a id="x-28CLOG-GUI-3A-2ACLOG-DEBUG-INSTANCE-2A-20VARIABLE-29"></a>
71517173
<a id="CLOG-GUI:*CLOG-DEBUG-INSTANCE*%20VARIABLE"></a></p>
@@ -7928,8 +7950,11 @@ <h2><a href="#CLOG:@CLOG-BODY%20MGL-PAX:SECTION">24 CLOG Body Objects</a></h2>
79287950
<ul>
79297951
<li><p><span class=reference-bullet><span class=reference><span class="locative-type">[generic-function]</span> <span class="reference-object"><a href="#CLOG:RUN%20GENERIC-FUNCTION" >RUN</a></span></span> <span class="locative-args">CLOG-BODY</span></span></p>
79307952

7931-
<p>Keeps a connection thread alive to allow post
7932-
user close of connection / browser.</p></li>
7953+
<p>Keeps the original connection thread alive to allow post
7954+
user close of connection / browser. Run returns when the browser
7955+
connection has been severed, acting like an on-close event, only lisp objects
7956+
still exist at this point and no queries can be made to browser or
7957+
DOM elements.</p></li>
79337958
</ul>
79347959
<p><a id="x-28CLOG-3ASET-HTML-ON-CLOSE-20GENERIC-FUNCTION-29"></a>
79357960
<a id="CLOG:SET-HTML-ON-CLOSE%20GENERIC-FUNCTION"></a></p>

0 commit comments

Comments
 (0)