aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman2004-12-03 11:27:02 +0000
committerRichard M. Stallman2004-12-03 11:27:02 +0000
commit0e29c77ff5403aaa123de83f1f7784075d52b0ed (patch)
tree16995555fb0a32dd2c2ca69273024d22ad7a1af2
parent791887d93f9bc34328c996ddaefa423dbf98d54a (diff)
downloademacs-0e29c77ff5403aaa123de83f1f7784075d52b0ed.tar.gz
emacs-0e29c77ff5403aaa123de83f1f7784075d52b0ed.zip
(Undo): Document undo-in-progress.
-rw-r--r--lispref/text.texi8
1 files changed, 8 insertions, 0 deletions
diff --git a/lispref/text.texi b/lispref/text.texi
index 1f61c1cf22c..55d931699bf 100644
--- a/lispref/text.texi
+++ b/lispref/text.texi
@@ -1244,6 +1244,12 @@ calls @code{undo-boundary} after each replacement, so that the user can
1244undo individual replacements one by one. 1244undo individual replacements one by one.
1245@end defun 1245@end defun
1246 1246
1247@defvar undo-in-progress
1248This variable is normally @code{nil}, but the undo commands bind it to
1249@code{t}. This is so that various kinds of change hooks can tell when
1250they're being called for the sake of undoing.
1251@end defvar
1252
1247@defun primitive-undo count list 1253@defun primitive-undo count list
1248This is the basic function for undoing elements of an undo list. 1254This is the basic function for undoing elements of an undo list.
1249It undoes the first @var{count} elements of @var{list}, returning 1255It undoes the first @var{count} elements of @var{list}, returning
@@ -1256,6 +1262,8 @@ list value at the beginning of a sequence of undo operations. Then the
1256undo operations use and update the saved value. The new elements added 1262undo operations use and update the saved value. The new elements added
1257by undoing are not part of this saved value, so they don't interfere with 1263by undoing are not part of this saved value, so they don't interfere with
1258continuing to undo. 1264continuing to undo.
1265
1266This function does not bind @code{undo-in-progress}.
1259@end defun 1267@end defun
1260 1268
1261@node Maintaining Undo 1269@node Maintaining Undo