diff options
| author | Richard M. Stallman | 1995-04-25 05:29:11 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1995-04-25 05:29:11 +0000 |
| commit | b6a786ce9eb094dca876605e17144d9e39caf880 (patch) | |
| tree | 2955ce2eb63f310aab5dadea7ab23d191c28def2 | |
| parent | aba686ed10725ad23621e3ce745e9816d242d357 (diff) | |
| download | emacs-b6a786ce9eb094dca876605e17144d9e39caf880.tar.gz emacs-b6a786ce9eb094dca876605e17144d9e39caf880.zip | |
Explan when boundaries are made automatically.
| -rw-r--r-- | lispref/text.texi | 22 |
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 | |||
| 965 | command stops at such a boundary, and successive undo commands undo | 965 | command stops at such a boundary, and successive undo commands undo |
| 966 | to earlier and earlier boundaries. This function returns @code{nil}. | 966 | to earlier and earlier boundaries. This function returns @code{nil}. |
| 967 | 967 | ||
| 968 | The editor command loop automatically creates an undo boundary between | 968 | The editor command loop automatically creates an undo boundary before |
| 969 | keystroke commands. Thus, each undo normally undoes the effects of one | 969 | each key sequence is executed. Thus, each undo normally undoes the |
| 970 | command. Calling this function explicitly is useful for splitting the | 970 | effects of one command. Self-inserting input characters are an |
| 971 | effects of a command into more than one unit. For example, | 971 | exception. The command loop makes a boundary for the first such |
| 972 | @code{query-replace} calls this function after each replacement so that | 972 | character; the next 19 consecutive self-inserting input characters do |
| 973 | the user can undo individual replacements one by one. | 973 | not make boundaries, and then the 20th does, and so on as long as |
| 974 | self-inserting characters continue. | ||
| 975 | |||
| 976 | All buffer modifications add a boundary whenever the previous undoable | ||
| 977 | change was made in some other buffer. This way, a command that modifies | ||
| 978 | several buffers makes a boundary in each buffer it changes. | ||
| 979 | |||
| 980 | Calling this function explicitly is useful for splitting the effects of | ||
| 981 | a command into more than one unit. For example, @code{query-replace} | ||
| 982 | calls @code{undo-boundary} after each replacement, so that the user can | ||
| 983 | undo 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 |