aboutsummaryrefslogtreecommitdiffstats
path: root/man/basic.texi
diff options
context:
space:
mode:
Diffstat (limited to 'man/basic.texi')
-rw-r--r--man/basic.texi36
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
186Move to the beginning of the line (@code{beginning-of-line}). 186Move to the beginning of the line (@code{beginning-of-line}).
187@item C-e 187@item C-e
188Move to the end of the line (@code{end-of-line}). 188Move to the end of the line (@code{move-end-of-line}).
189@item C-f 189@item C-f
190Move forward one character (@code{forward-char}). The right-arrow key 190Move forward one character (@code{forward-char}). The right-arrow key
191does the same thing. 191does 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
385discards the oldest undo information from time to time (during garbage 386discards the oldest undo information from time to time (during garbage
386collection). You can specify how much undo information to keep by 387collection). You can specify how much undo information to keep by
387setting two variables: @code{undo-limit} and @code{undo-strong-limit}. 388setting three variables: @code{undo-limit}, @code{undo-strong-limit},
388Their values are expressed in units of bytes of space. 389and @code{undo-outer-limit}. Their values are expressed in units of
390bytes 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
391data for enough commands to reach this size, and perhaps exceed it, but 393data for enough commands to reach this size, and perhaps exceed it,
392does not keep data for any earlier commands beyond that. Its default 394but does not keep data for any earlier commands beyond that. Its
393value is 20000. The variable @code{undo-strong-limit} sets a stricter 395default value is 20000. The variable @code{undo-strong-limit} sets a
394limit: the command which pushes the size past this amount is itself 396stricter limit: a previous command (not the most recent one) which
395forgotten. Its default value is 30000. 397pushes the size past this amount is itself forgotten. The default
396 398value of @code{undo-strong-limit} is 30000.
397 Regardless of the values of those variables, the most recent change is 399
398never discarded, so there is no danger that garbage collection occurring 400 Regardless of the values of those variables, the most recent change
399right after an unintentional large change might prevent you from undoing 401is never discarded unless it gets bigger than @code{undo-outer-limit}
400it. 402(normally 300,000). At that point, Emacs asks whether to discard the
403undo information even for the current command. (You also have the
404option of quitting.) So there is normally no danger that garbage
405collection occurring right after an unintentional large change might
406prevent you from undoing it. But if you didn't expect the command
407to create such large undo data, you can get rid of it and prevent
408Emacs 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