summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfvogel <fvogelnew1@free.fr>2016-04-07 19:50:31 (GMT)
committerfvogel <fvogelnew1@free.fr>2016-04-07 19:50:31 (GMT)
commitb8b29378dcd5a89e371ac9bd1ae4737d08379a46 (patch)
tree050d78bc3bcc4e01b943cb50d0691f792d721cfb
parentf617c83058bb40a68dae5c9834acdda18b534de8 (diff)
downloadtk-b8b29378dcd5a89e371ac9bd1ae4737d08379a46.zip
tk-b8b29378dcd5a89e371ac9bd1ae4737d08379a46.tar.gz
tk-b8b29378dcd5a89e371ac9bd1ae4737d08379a46.tar.bz2
Documentation for [.t edit undodepth/redodepth]
-rw-r--r--doc/text.n12
1 files changed, 12 insertions, 0 deletions
diff --git a/doc/text.n b/doc/text.n
index cf516f4..e38b4f1 100644
--- a/doc/text.n
+++ b/doc/text.n
@@ -1295,6 +1295,12 @@ When the \fB\-undo\fR option is true, reapplies the last undone edits provided
no other edits were done since then. Generates an error when the redo stack is
empty. Does nothing when the \fB\-undo\fR option is false.
.TP
+\fIpathName \fBedit redodepth\fR
+.
+Returns the depth of the redo stack (number of redoable actions). When this is
+zero there is nothing to redo. When the \fB\-undo\fR option is false zero is
+returned.
+.TP
\fIpathName \fBedit reset\fR
.
Clears the undo and redo stacks.
@@ -1310,6 +1316,12 @@ Undoes the last edit action when the \fB\-undo\fR option is true. An edit
action is defined as all the insert and delete commands that are recorded on
the undo stack in between two separators. Generates an error when the undo
stack is empty. Does nothing when the \fB\-undo\fR option is false.
+.TP
+\fIpathName \fBedit undodepth\fR
+.
+Returns the depth of the undo stack (number of undoable actions). When this is
+zero there is nothing to undo. When the \fB\-undo\fR option is false zero is
+returned.
.RE
.TP
\fIpathName \fBget\fR ?\fB\-displaychars\fR? ?\fB\-\-\fR? \fIindex1\fR ?\fIindex2 ...\fR?