Mercurial > emacs
comparison src/undo.c @ 59791:fc2f566fb0fd
(syms_of_undo) <undo-outer-limit>: Doc update.
| author | Luc Teirlinck <teirllm@auburn.edu> |
|---|---|
| date | Sun, 30 Jan 2005 00:39:33 +0000 |
| parents | 06bae5eee9dc |
| children | 6075baf26c0a |
comparison
equal
deleted
inserted
replaced
| 59790:85fb49e8bc60 | 59791:fc2f566fb0fd |
|---|---|
| 637 undo_strong_limit = 30000; | 637 undo_strong_limit = 30000; |
| 638 | 638 |
| 639 DEFVAR_LISP ("undo-outer-limit", &Vundo_outer_limit, | 639 DEFVAR_LISP ("undo-outer-limit", &Vundo_outer_limit, |
| 640 doc: /* Outer limit on size of undo information for one command. | 640 doc: /* Outer limit on size of undo information for one command. |
| 641 At garbage collection time, if the current command has produced | 641 At garbage collection time, if the current command has produced |
| 642 more than this much undo information, it asks you whether to delete | 642 more than this much undo information, it discards the info and displays |
| 643 the information. This is a last-ditch limit to prevent memory overflow. | 643 a warning. This is a last-ditch limit to prevent memory overflow. |
| 644 | 644 |
| 645 The size is counted as the number of bytes occupied, | 645 The size is counted as the number of bytes occupied, which includes |
| 646 which includes both saved text and other data. | 646 both saved text and other data. A value of nil means no limit. In |
| 647 this case, accumulating one huge undo entry could make Emacs crash as | |
| 648 a result of memory overflow. | |
| 647 | 649 |
| 648 In fact, this calls the function which is the value of | 650 In fact, this calls the function which is the value of |
| 649 `undo-outer-limit-function' with one argument, the size. | 651 `undo-outer-limit-function' with one argument, the size. |
| 650 The text above describes the behavior of the function | 652 The text above describes the behavior of the function |
| 651 that variable usually specifies. */); | 653 that variable usually specifies. */); |
