aboutsummaryrefslogtreecommitdiffstats
path: root/src/buffer.c
diff options
context:
space:
mode:
authorGregory Heytings2022-08-01 13:27:02 +0000
committerGregory Heytings2022-08-01 15:28:25 +0200
commitd0e4ec3c29abc61a92c40d89fc7d3e3cc452e934 (patch)
tree4223902f821a07ded6f0aaa94ffee45083b52ecb /src/buffer.c
parent43a174f62c50871c0bcb6e4b15144a177f028218 (diff)
downloademacs-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.c5
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
6434The value should be a positive integer or nil. 6435The value should be a positive integer or nil.
6435If the value is an integer, shortcuts in the display code intended 6436If the value is an integer, shortcuts in the display code intended
6436to speed up redisplay for long lines will automatically be enabled 6437to speed up redisplay for long lines will automatically be enabled
6437in buffers which contain one or more lines whose length is above 6438in buffers which contain one or more lines whose length is above
6438this threshold. 6439this threshold.
6439If nil, these display shortcuts will always remain disabled. */); 6440If nil, these display shortcuts will always remain disabled.
6441
6442There 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);