diff options
Diffstat (limited to 'man/basic.texi')
| -rw-r--r-- | man/basic.texi | 36 |
1 files changed, 22 insertions, 14 deletions
diff --git a/man/basic.texi b/man/basic.texi index 3ec6e47c5bb..c04d8cf914c 100644 --- a/man/basic.texi +++ b/man/basic.texi | |||
| @@ -171,7 +171,7 @@ them). Others do more sophisticated things. | |||
| 171 | @kindex UP | 171 | @kindex UP |
| 172 | @kindex DOWN | 172 | @kindex DOWN |
| 173 | @findex beginning-of-line | 173 | @findex beginning-of-line |
| 174 | @findex end-of-line | 174 | @findex move-end-of-line |
| 175 | @findex forward-char | 175 | @findex forward-char |
| 176 | @findex backward-char | 176 | @findex backward-char |
| 177 | @findex next-line | 177 | @findex next-line |
| @@ -185,7 +185,7 @@ them). Others do more sophisticated things. | |||
| 185 | @item C-a | 185 | @item C-a |
| 186 | Move to the beginning of the line (@code{beginning-of-line}). | 186 | Move to the beginning of the line (@code{beginning-of-line}). |
| 187 | @item C-e | 187 | @item C-e |
| 188 | Move to the end of the line (@code{end-of-line}). | 188 | Move to the end of the line (@code{move-end-of-line}). |
| 189 | @item C-f | 189 | @item C-f |
| 190 | Move forward one character (@code{forward-char}). The right-arrow key | 190 | Move forward one character (@code{forward-char}). The right-arrow key |
| 191 | does the same thing. | 191 | does the same thing. |
| @@ -380,24 +380,32 @@ mark ring (@pxref{Mark Ring}). | |||
| 380 | 380 | ||
| 381 | @vindex undo-limit | 381 | @vindex undo-limit |
| 382 | @vindex undo-strong-limit | 382 | @vindex undo-strong-limit |
| 383 | @vindex undo-outer-limit | ||
| 383 | @cindex undo limit | 384 | @cindex undo limit |
| 384 | When the undo information for a buffer becomes too large, Emacs | 385 | When the undo information for a buffer becomes too large, Emacs |
| 385 | discards the oldest undo information from time to time (during garbage | 386 | discards the oldest undo information from time to time (during garbage |
| 386 | collection). You can specify how much undo information to keep by | 387 | collection). You can specify how much undo information to keep by |
| 387 | setting two variables: @code{undo-limit} and @code{undo-strong-limit}. | 388 | setting three variables: @code{undo-limit}, @code{undo-strong-limit}, |
| 388 | Their values are expressed in units of bytes of space. | 389 | and @code{undo-outer-limit}. Their values are expressed in units of |
| 390 | bytes of space. | ||
| 389 | 391 | ||
| 390 | The variable @code{undo-limit} sets a soft limit: Emacs keeps undo | 392 | The variable @code{undo-limit} sets a soft limit: Emacs keeps undo |
| 391 | data for enough commands to reach this size, and perhaps exceed it, but | 393 | data for enough commands to reach this size, and perhaps exceed it, |
| 392 | does not keep data for any earlier commands beyond that. Its default | 394 | but does not keep data for any earlier commands beyond that. Its |
| 393 | value is 20000. The variable @code{undo-strong-limit} sets a stricter | 395 | default value is 20000. The variable @code{undo-strong-limit} sets a |
| 394 | limit: the command which pushes the size past this amount is itself | 396 | stricter limit: a previous command (not the most recent one) which |
| 395 | forgotten. Its default value is 30000. | 397 | pushes the size past this amount is itself forgotten. The default |
| 396 | 398 | value of @code{undo-strong-limit} is 30000. | |
| 397 | Regardless of the values of those variables, the most recent change is | 399 | |
| 398 | never discarded, so there is no danger that garbage collection occurring | 400 | Regardless of the values of those variables, the most recent change |
| 399 | right after an unintentional large change might prevent you from undoing | 401 | is never discarded unless it gets bigger than @code{undo-outer-limit} |
| 400 | it. | 402 | (normally 300,000). At that point, Emacs asks whether to discard the |
| 403 | undo information even for the current command. (You also have the | ||
| 404 | option of quitting.) So there is normally no danger that garbage | ||
| 405 | collection occurring right after an unintentional large change might | ||
| 406 | prevent you from undoing it. But if you didn't expect the command | ||
| 407 | to create such large undo data, you can get rid of it and prevent | ||
| 408 | Emacs from running out of memory. | ||
| 401 | 409 | ||
| 402 | The reason the @code{undo} command has two keys, @kbd{C-x u} and | 410 | The reason the @code{undo} command has two keys, @kbd{C-x u} and |
| 403 | @kbd{C-_}, set up to run it is that it is worthy of a single-character | 411 | @kbd{C-_}, set up to run it is that it is worthy of a single-character |