aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim F. Storm2005-01-31 23:22:11 +0000
committerKim F. Storm2005-01-31 23:22:11 +0000
commite15db1740967bdcd7b6df1c5b4a1083a88b10933 (patch)
treedc0ea0af131572f3bae65e5bf561edf2b0793006
parent23c5319c0ef847f0db8121fc4d435d47359a163d (diff)
downloademacs-e15db1740967bdcd7b6df1c5b4a1083a88b10933.tar.gz
emacs-e15db1740967bdcd7b6df1c5b4a1083a88b10933.zip
(Undo) <buffer-undo-list>: Describe `apply' elements.
-rw-r--r--lispref/text.texi12
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})
1212This 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})
1216This kind of element records a change that can be undone by evaluating
1217(@code{apply} @var{funname} @var{args}). The integer values @var{beg}
1218and @var{end} is buffer positions of the range affected by this change
1219and @var{delta} is an integer value which is the number of bytes added
1220or deleted in that range by this change. This kind of element
1221supports undo in an active region
1222
1211@item (@var{marker} . @var{adjustment}) 1223@item (@var{marker} . @var{adjustment})
1212This kind of element records the fact that the marker @var{marker} was 1224This kind of element records the fact that the marker @var{marker} was
1213relocated due to deletion of surrounding text, and that it moved 1225relocated due to deletion of surrounding text, and that it moved