diff options
| author | Gregory Heytings | 2022-08-01 13:27:02 +0000 |
|---|---|---|
| committer | Gregory Heytings | 2022-08-01 15:28:25 +0200 |
| commit | d0e4ec3c29abc61a92c40d89fc7d3e3cc452e934 (patch) | |
| tree | 4223902f821a07ded6f0aaa94ffee45083b52ecb /src/buffer.c | |
| parent | 43a174f62c50871c0bcb6e4b15144a177f028218 (diff) | |
| download | emacs-d0e4ec3c29abc61a92c40d89fc7d3e3cc452e934.tar.gz emacs-d0e4ec3c29abc61a92c40d89fc7d3e3cc452e934.zip | |
Fix forgotten initialization for long line optimizations.
* src/xdisp.c (init_iterator): Initialize the 'narrowed_begv'
field.
* src/buffer.c (syms_of_buffer): Docstring clarification.
Diffstat (limited to 'src/buffer.c')
| -rw-r--r-- | src/buffer.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/buffer.c b/src/buffer.c index a07194aef72..e5601af5051 100644 --- a/src/buffer.c +++ b/src/buffer.c | |||
| @@ -6431,12 +6431,15 @@ will run for `clone-indirect-buffer' calls as well. */); | |||
| 6431 | 6431 | ||
| 6432 | DEFVAR_LISP ("long-line-threshold", Vlong_line_threshold, | 6432 | DEFVAR_LISP ("long-line-threshold", Vlong_line_threshold, |
| 6433 | doc: /* Line length above which to use redisplay shortcuts. | 6433 | doc: /* Line length above which to use redisplay shortcuts. |
| 6434 | |||
| 6434 | The value should be a positive integer or nil. | 6435 | The value should be a positive integer or nil. |
| 6435 | If the value is an integer, shortcuts in the display code intended | 6436 | If the value is an integer, shortcuts in the display code intended |
| 6436 | to speed up redisplay for long lines will automatically be enabled | 6437 | to speed up redisplay for long lines will automatically be enabled |
| 6437 | in buffers which contain one or more lines whose length is above | 6438 | in buffers which contain one or more lines whose length is above |
| 6438 | this threshold. | 6439 | this threshold. |
| 6439 | If nil, these display shortcuts will always remain disabled. */); | 6440 | If nil, these display shortcuts will always remain disabled. |
| 6441 | |||
| 6442 | There is no reason to change that value except for debugging purposes. */); | ||
| 6440 | XSETFASTINT (Vlong_line_threshold, 10000); | 6443 | XSETFASTINT (Vlong_line_threshold, 10000); |
| 6441 | 6444 | ||
| 6442 | defsubr (&Sbuffer_live_p); | 6445 | defsubr (&Sbuffer_live_p); |