diff options
| author | Kim F. Storm | 2005-01-31 23:22:11 +0000 |
|---|---|---|
| committer | Kim F. Storm | 2005-01-31 23:22:11 +0000 |
| commit | e15db1740967bdcd7b6df1c5b4a1083a88b10933 (patch) | |
| tree | dc0ea0af131572f3bae65e5bf561edf2b0793006 | |
| parent | 23c5319c0ef847f0db8121fc4d435d47359a163d (diff) | |
| download | emacs-e15db1740967bdcd7b6df1c5b4a1083a88b10933.tar.gz emacs-e15db1740967bdcd7b6df1c5b4a1083a88b10933.zip | |
(Undo) <buffer-undo-list>: Describe `apply' elements.
| -rw-r--r-- | lispref/text.texi | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/lispref/text.texi b/lispref/text.texi index 785e7b99467..942fb2220a7 100644 --- a/lispref/text.texi +++ b/lispref/text.texi | |||
| @@ -1208,6 +1208,18 @@ Here's how you might undo the change: | |||
| 1208 | (put-text-property @var{beg} @var{end} @var{property} @var{value}) | 1208 | (put-text-property @var{beg} @var{end} @var{property} @var{value}) |
| 1209 | @end example | 1209 | @end example |
| 1210 | 1210 | ||
| 1211 | @item (apply @var{funname} . @var{args}) | ||
| 1212 | This kind of element records a change that can be undone by evaluating | ||
| 1213 | (@code{apply} @var{funname} @var{args}). | ||
| 1214 | |||
| 1215 | @item (apply @var{delta} @var{beg} @var{end} @var{funname} . @var{args}) | ||
| 1216 | This kind of element records a change that can be undone by evaluating | ||
| 1217 | (@code{apply} @var{funname} @var{args}). The integer values @var{beg} | ||
| 1218 | and @var{end} is buffer positions of the range affected by this change | ||
| 1219 | and @var{delta} is an integer value which is the number of bytes added | ||
| 1220 | or deleted in that range by this change. This kind of element | ||
| 1221 | supports undo in an active region | ||
| 1222 | |||
| 1211 | @item (@var{marker} . @var{adjustment}) | 1223 | @item (@var{marker} . @var{adjustment}) |
| 1212 | This kind of element records the fact that the marker @var{marker} was | 1224 | This kind of element records the fact that the marker @var{marker} was |
| 1213 | relocated due to deletion of surrounding text, and that it moved | 1225 | relocated due to deletion of surrounding text, and that it moved |