Tk Source Code

Check-in [f72cd1f4]
Login

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

Overview
Comment:Clearer separation between what [.text sync] and [.text sync -command] exactly perform
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | tip-438
Files: files | file ages | folders
SHA1: f72cd1f4784d454ee8fc3677c29accb096c823fa
User & Date: fvogel 2015-11-28 22:35:18
Original Comment: Clearer separation between when [.text sync] and [.text sync -update] exactly perform
Context
2015-12-09
19:27
Merged core-8-5-branch check-in: 40704173 user: fvogel tags: tip-438
2015-11-28
22:35
Clearer separation between what [.text sync] and [.text sync -command] exactly perform check-in: f72cd1f4 user: fvogel tags: tip-438
22:18
Fixed indentation check-in: ec3ea7f7 user: fvogel tags: tip-438
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to doc/text.n.

1779
1780
1781
1782
1783
1784
1785




1786
1787
1788
1789


1790
1791
1792
1793

1794
1795
1796
1797
1798
1799
1800
If \fIindex\fR is a short distance out of view, the command
adjusts the view just enough to make \fIindex\fR visible at the
edge of the window.
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?




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. If \fB-command \fIcommand\fR is specified,


schedule \fIcommand\fR to be executed exactly once as soon as all line
calculations are up-to-date. If there are no pending line metrics calculations,
\fIcommand\fR is executed immediately. \fIpathName \fBsync -command
\fIcommand\fR returns the return value of \fIcommand\fR.

.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:
.RS







>
>
>
>



|
>
>
|
|
|
|
>







1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
If \fIindex\fR is a short distance out of view, the command
adjusts the view just enough to make \fIindex\fR visible at the
edge of the window.
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.
.RS
.TP
\fIpathName \fBsync\fR
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:
.RS