diff options
author | fvogel <fvogel@noemail.net> | 2015-11-28 22:35:18 (GMT) |
---|---|---|
committer | fvogel <fvogel@noemail.net> | 2015-11-28 22:35:18 (GMT) |
commit | bc4ef2df6b2a53210dc1c0c99c7a935c72b63a4f (patch) | |
tree | 670811aeec95a8eee25c5e1f2288b811b3ac89c4 /doc | |
parent | 1fcce4ece34f9709a6cc6428fa6acf616f5ad96e (diff) | |
download | tk-bc4ef2df6b2a53210dc1c0c99c7a935c72b63a4f.zip tk-bc4ef2df6b2a53210dc1c0c99c7a935c72b63a4f.tar.gz tk-bc4ef2df6b2a53210dc1c0c99c7a935c72b63a4f.tar.bz2 |
Clearer separation between when [.text sync] and [.text sync -update] exactly perform
FossilOrigin-Name: f72cd1f4784d454ee8fc3677c29accb096c823fa
Diffstat (limited to 'doc')
-rw-r--r-- | doc/text.n | 17 |
1 files changed, 12 insertions, 5 deletions
@@ -1783,14 +1783,21 @@ 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. 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. +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 |