Tk Source Code

Check-in [37ed6fc5]
Login
Bounty program for improvements to Tcl and certain Tcl packages.
Tcl 2019 Conference, Houston/TX, US, Nov 4-8
Send your abstracts to tclconference@googlegroups.com
or submit via the online form by Sep 9.

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Better (and more correct) description of what [.text sync -command $command] does
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | tip-438
Files: files | file ages | folders
SHA1:37ed6fc5fe28e7b4c367d8e51ea745db9fda2e99
User & Date: fvogel 2015-12-13 20:58:26
Context
2015-12-19
21:48
Tests reordered. Two issues currently: 1. text-11a.22 currently hangs but should pass once [.text sync -command $cmd] will be correctly implemented. 2. text-11a.41 fails (unsure why) check-in: 54b68217 user: fvogel tags: tip-438
2015-12-13
20:58
Better (and more correct) description of what [.text sync -command $command] does check-in: 37ed6fc5 user: fvogel tags: tip-438
20:10
Merged core-8-5-branch check-in: 5a61887f user: fvogel tags: tip-438
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to doc/text.n.

1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
Immediately brings the line metrics up-to-date by forcing computation of any
outdated line heights. The command returns immediately if there is no such
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,
\fIcommand\fR is executed immediately and the command returns the return value
of \fIcommand\fR. Otherwise the command returns an empty string.
.RE
.TP
\fIpathName \fBtag \fIoption \fR?\fIarg arg ...\fR?
This command is used to manipulate tags.  The exact behavior of the
command depends on the \fIoption\fR argument that follows the
\fBtag\fR argument.  The following forms of the command are currently
supported:







|
|
|







1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
Immediately brings the line metrics up-to-date by forcing computation of any
outdated line heights. The command returns immediately if there is no such
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.
.RE
.TP
\fIpathName \fBtag \fIoption \fR?\fIarg arg ...\fR?
This command is used to manipulate tags.  The exact behavior of the
command depends on the \fIoption\fR argument that follows the
\fBtag\fR argument.  The following forms of the command are currently
supported: