diff options
| author | Richard M. Stallman | 2004-12-03 11:27:02 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2004-12-03 11:27:02 +0000 |
| commit | 0e29c77ff5403aaa123de83f1f7784075d52b0ed (patch) | |
| tree | 16995555fb0a32dd2c2ca69273024d22ad7a1af2 | |
| parent | 791887d93f9bc34328c996ddaefa423dbf98d54a (diff) | |
| download | emacs-0e29c77ff5403aaa123de83f1f7784075d52b0ed.tar.gz emacs-0e29c77ff5403aaa123de83f1f7784075d52b0ed.zip | |
(Undo): Document undo-in-progress.
| -rw-r--r-- | lispref/text.texi | 8 |
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 | |||
| 1244 | undo individual replacements one by one. | 1244 | undo individual replacements one by one. |
| 1245 | @end defun | 1245 | @end defun |
| 1246 | 1246 | ||
| 1247 | @defvar undo-in-progress | ||
| 1248 | This 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 | ||
| 1250 | they're being called for the sake of undoing. | ||
| 1251 | @end defvar | ||
| 1252 | |||
| 1247 | @defun primitive-undo count list | 1253 | @defun primitive-undo count list |
| 1248 | This is the basic function for undoing elements of an undo list. | 1254 | This is the basic function for undoing elements of an undo list. |
| 1249 | It undoes the first @var{count} elements of @var{list}, returning | 1255 | It 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 | |||
| 1256 | undo operations use and update the saved value. The new elements added | 1262 | undo operations use and update the saved value. The new elements added |
| 1257 | by undoing are not part of this saved value, so they don't interfere with | 1263 | by undoing are not part of this saved value, so they don't interfere with |
| 1258 | continuing to undo. | 1264 | continuing to undo. |
| 1265 | |||
| 1266 | This function does not bind @code{undo-in-progress}. | ||
| 1259 | @end defun | 1267 | @end defun |
| 1260 | 1268 | ||
| 1261 | @node Maintaining Undo | 1269 | @node Maintaining Undo |