aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lispref/text.texi21
1 files changed, 14 insertions, 7 deletions
diff --git a/lispref/text.texi b/lispref/text.texi
index 942fb2220a7..3d2fa870bac 100644
--- a/lispref/text.texi
+++ b/lispref/text.texi
@@ -1321,20 +1321,27 @@ preferred name is @code{buffer-disable-undo}.
1321them from using up all available memory space, garbage collection trims 1321them from using up all available memory space, garbage collection trims
1322them back to size limits you can set. (For this purpose, the ``size'' 1322them back to size limits you can set. (For this purpose, the ``size''
1323of an undo list measures the cons cells that make up the list, plus the 1323of an undo list measures the cons cells that make up the list, plus the
1324strings of deleted text.) Two variables control the range of acceptable 1324strings of deleted text.) Three variables control the range of acceptable
1325sizes: @code{undo-limit} and @code{undo-strong-limit}. 1325sizes: @code{undo-limit}, @code{undo-strong-limit} and
1326@code{undo-outer-limit}.
1326 1327
1327@defvar undo-limit 1328@defopt undo-limit
1328This is the soft limit for the acceptable size of an undo list. The 1329This is the soft limit for the acceptable size of an undo list. The
1329change group at which this size is exceeded is the last one kept. 1330change group at which this size is exceeded is the last one kept.
1330@end defvar 1331@end defopt
1331 1332
1332@defvar undo-strong-limit 1333@defopt undo-strong-limit
1333This is the upper limit for the acceptable size of an undo list. The 1334This is the upper limit for the acceptable size of an undo list. The
1334change group at which this size is exceeded is discarded itself (along 1335change group at which this size is exceeded is discarded itself (along
1335with all older change groups). There is one exception: the very latest 1336with all older change groups). There is one exception: the very latest
1336change group is never discarded no matter how big it is. 1337change group is only discarded if it exceeds @code{undo-outer-limit}.
1337@end defvar 1338@end defopt
1339
1340@defopt undo-outer-limit
1341If at garbage collection time the undo info for the current command
1342exceeds this limit, Emacs discards the info and prints a warning
1343message. This is a last ditch limit to prevent memory overflow.
1344@end defopt
1338 1345
1339@node Filling 1346@node Filling
1340@comment node-name, next, previous, up 1347@comment node-name, next, previous, up