summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorfvogel <fvogel@noemail.net>2016-01-05 16:48:20 (GMT)
committerfvogel <fvogel@noemail.net>2016-01-05 16:48:20 (GMT)
commitaec3f01a7730efb378d5aaeedd8ba03791d30549 (patch)
treebc52024bf5c3bb1434feeea96cd44bc6849d8c47 /doc
parent1dac1a0a97c0f2657da518d74b6aa929f7cbc865 (diff)
downloadtk-aec3f01a7730efb378d5aaeedd8ba03791d30549.zip
tk-aec3f01a7730efb378d5aaeedd8ba03791d30549.tar.gz
tk-aec3f01a7730efb378d5aaeedd8ba03791d30549.tar.bz2
Polished documentation a bit
FossilOrigin-Name: 5b31d1d1df9b9ed57330f10b33576fe2e02f8541
Diffstat (limited to 'doc')
-rw-r--r--doc/text.n15
1 files changed, 8 insertions, 7 deletions
diff --git a/doc/text.n b/doc/text.n
index c55b4cf..536a3a5 100644
--- a/doc/text.n
+++ b/doc/text.n
@@ -1089,12 +1089,13 @@ the widget is in sync) or false (when it is not).
Examples of use:
.CS
## Example 1:
-# runtime, immediately complete line metrics at any cost (GUI unresponsive)
+# immediately complete line metrics at any cost (GUI unresponsive)
$w sync
$w yview moveto $fraction
## Example 2:
-# runtime, synchronously wait for up-to-date line metrics (GUI responsive)
+# synchronously wait for up-to-date line metrics (GUI responsive)
+# before executing the scheduled command, but don't block execution flow
$w sync -command [list $w yview moveto $fraction]
## Example 3:
@@ -1783,7 +1784,7 @@ If \fIindex\fR is far out of view, then the command centers
\fIindex\fR in the window.
.TP
\fIpathName \fBsync\fR ?\fB-command \fIcommand\fR?
-Control the synchronization of the view of text widget.
+Controls the synchronization of the view of the text widget.
.RS
.TP
\fIpathName \fBsync\fR
@@ -1793,10 +1794,10 @@ outdated line heights, otherwise it returns only at the end of the computation.
The command returns an empty string.
.TP
\fIpathName \fBsync -command \fIcommand\fR
-Schedule \fIcommand\fR to be executed exactly once as soon as all line heights
-are up-to-date. If there are no pending line metrics calculations, the
-scheduling is immediate. The command returns the empty string. \fBbgerror\fR is
-called on \fIcommand\fR failure.
+Schedules \fIcommand\fR to be executed (by the event loop) exactly once as soon
+as all line heights are up-to-date. If there are no pending line metrics
+calculations, the scheduling is immediate. The command returns the empty
+string. \fBbgerror\fR is called on \fIcommand\fR failure.
.RE
.TP
\fIpathName \fBtag \fIoption \fR?\fIarg arg ...\fR?