aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1995-04-25 05:29:11 +0000
committerRichard M. Stallman1995-04-25 05:29:11 +0000
commitb6a786ce9eb094dca876605e17144d9e39caf880 (patch)
tree2955ce2eb63f310aab5dadea7ab23d191c28def2
parentaba686ed10725ad23621e3ce745e9816d242d357 (diff)
downloademacs-b6a786ce9eb094dca876605e17144d9e39caf880.tar.gz
emacs-b6a786ce9eb094dca876605e17144d9e39caf880.zip
Explan when boundaries are made automatically.
-rw-r--r--lispref/text.texi22
1 files changed, 16 insertions, 6 deletions
diff --git a/lispref/text.texi b/lispref/text.texi
index d625e5e2156..6153bdb69f1 100644
--- a/lispref/text.texi
+++ b/lispref/text.texi
@@ -965,12 +965,22 @@ This function places a boundary element in the undo list. The undo
965command stops at such a boundary, and successive undo commands undo 965command stops at such a boundary, and successive undo commands undo
966to earlier and earlier boundaries. This function returns @code{nil}. 966to earlier and earlier boundaries. This function returns @code{nil}.
967 967
968The editor command loop automatically creates an undo boundary between 968The editor command loop automatically creates an undo boundary before
969keystroke commands. Thus, each undo normally undoes the effects of one 969each key sequence is executed. Thus, each undo normally undoes the
970command. Calling this function explicitly is useful for splitting the 970effects of one command. Self-inserting input characters are an
971effects of a command into more than one unit. For example, 971exception. The command loop makes a boundary for the first such
972@code{query-replace} calls this function after each replacement so that 972character; the next 19 consecutive self-inserting input characters do
973the user can undo individual replacements one by one. 973not make boundaries, and then the 20th does, and so on as long as
974self-inserting characters continue.
975
976All buffer modifications add a boundary whenever the previous undoable
977change was made in some other buffer. This way, a command that modifies
978several buffers makes a boundary in each buffer it changes.
979
980Calling this function explicitly is useful for splitting the effects of
981a command into more than one unit. For example, @code{query-replace}
982calls @code{undo-boundary} after each replacement, so that the user can
983undo individual replacements one by one.
974@end defun 984@end defun
975 985
976@defun primitive-undo count list 986@defun primitive-undo count list