diff options
| author | Stefan Kangas | 2019-08-10 15:17:33 +0200 |
|---|---|---|
| committer | Stefan Kangas | 2019-08-10 19:08:31 +0200 |
| commit | 94663726c0e95efc894c0227fb7a4e6623d67377 (patch) | |
| tree | 1e51aee146696a28ae5047d196f570d2ef1287ab /src | |
| parent | 7343474b79332b05abc1d51ae2bbc3e2ba43deeb (diff) | |
| download | emacs-94663726c0e95efc894c0227fb7a4e6623d67377.tar.gz emacs-94663726c0e95efc894c0227fb7a4e6623d67377.zip | |
Double undo limits
* src/undo.c (syms_of_undo) <undo_limit, undo_strong_limit>
<Vundo_outer_limit>: Double undo limits. (Bug#31104)
Diffstat (limited to 'src')
| -rw-r--r-- | src/undo.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/undo.c b/src/undo.c index 3c1251dae6e..78e51ead665 100644 --- a/src/undo.c +++ b/src/undo.c | |||
| @@ -442,7 +442,7 @@ value, the earlier commands that came before it are forgotten. | |||
| 442 | 442 | ||
| 443 | The size is counted as the number of bytes occupied, | 443 | The size is counted as the number of bytes occupied, |
| 444 | which includes both saved text and other data. */); | 444 | which includes both saved text and other data. */); |
| 445 | undo_limit = 80000; | 445 | undo_limit = 160000; |
| 446 | 446 | ||
| 447 | DEFVAR_INT ("undo-strong-limit", undo_strong_limit, | 447 | DEFVAR_INT ("undo-strong-limit", undo_strong_limit, |
| 448 | doc: /* Don't keep more than this much size of undo information. | 448 | doc: /* Don't keep more than this much size of undo information. |
| @@ -454,7 +454,7 @@ is never discarded for this reason. | |||
| 454 | 454 | ||
| 455 | The size is counted as the number of bytes occupied, | 455 | The size is counted as the number of bytes occupied, |
| 456 | which includes both saved text and other data. */); | 456 | which includes both saved text and other data. */); |
| 457 | undo_strong_limit = 120000; | 457 | undo_strong_limit = 240000; |
| 458 | 458 | ||
| 459 | DEFVAR_LISP ("undo-outer-limit", Vundo_outer_limit, | 459 | DEFVAR_LISP ("undo-outer-limit", Vundo_outer_limit, |
| 460 | doc: /* Outer limit on size of undo information for one command. | 460 | doc: /* Outer limit on size of undo information for one command. |
| @@ -471,7 +471,7 @@ In fact, this calls the function which is the value of | |||
| 471 | `undo-outer-limit-function' with one argument, the size. | 471 | `undo-outer-limit-function' with one argument, the size. |
| 472 | The text above describes the behavior of the function | 472 | The text above describes the behavior of the function |
| 473 | that variable usually specifies. */); | 473 | that variable usually specifies. */); |
| 474 | Vundo_outer_limit = make_fixnum (12000000); | 474 | Vundo_outer_limit = make_fixnum (24000000); |
| 475 | 475 | ||
| 476 | DEFVAR_LISP ("undo-outer-limit-function", Vundo_outer_limit_function, | 476 | DEFVAR_LISP ("undo-outer-limit-function", Vundo_outer_limit_function, |
| 477 | doc: /* Function to call when an undo list exceeds `undo-outer-limit'. | 477 | doc: /* Function to call when an undo list exceeds `undo-outer-limit'. |