aboutsummaryrefslogtreecommitdiffstats
path: root/src/buffer.c
diff options
context:
space:
mode:
authorDmitry Gutov2022-08-15 02:22:59 +0300
committerDmitry Gutov2022-08-15 02:22:59 +0300
commitee3a674c7c9e39fe7ff296ce1f9830fc45520de8 (patch)
treee8ba1e7be54314f208454e80e3d31044c913f3eb /src/buffer.c
parentfe0e53d963899a16e0dd1bbc1ba10a6b59f7989e (diff)
parent0a8e88fd83db5398d36064a7f87cff5b57da7284 (diff)
downloademacs-scratch/font_lock_large_files.tar.gz
emacs-scratch/font_lock_large_files.zip
Merge branch 'master' into scratch/font_lock_large_filesscratch/font_lock_large_files
Diffstat (limited to 'src/buffer.c')
-rw-r--r--src/buffer.c21
1 files changed, 20 insertions, 1 deletions
diff --git a/src/buffer.c b/src/buffer.c
index e5601af5051..98066a2eb60 100644
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -1160,7 +1160,8 @@ is first appended to NAME, to speed up finding a non-existent buffer. */)
1160 genbase = name; 1160 genbase = name;
1161 else 1161 else
1162 { 1162 {
1163 char number[sizeof "-999999"]; 1163 enum { bug_52711 = true }; /* https://bugs.gnu.org/57211 */
1164 char number[bug_52711 ? INT_BUFSIZE_BOUND (int) + 1 : sizeof "-999999"];
1164 EMACS_INT r = get_random (); 1165 EMACS_INT r = get_random ();
1165 eassume (0 <= r); 1166 eassume (0 <= r);
1166 int i = r % 1000000; 1167 int i = r % 1000000;
@@ -6442,6 +6443,24 @@ If nil, these display shortcuts will always remain disabled.
6442There is no reason to change that value except for debugging purposes. */); 6443There is no reason to change that value except for debugging purposes. */);
6443 XSETFASTINT (Vlong_line_threshold, 10000); 6444 XSETFASTINT (Vlong_line_threshold, 10000);
6444 6445
6446 DEFVAR_INT ("large-hscroll-threshold", large_hscroll_threshold,
6447 doc: /* Horizontal scroll of truncated lines above which to use redisplay shortcuts.
6448
6449The value should be a positive integer.
6450
6451Shortcuts in the display code intended to speed up redisplay for long
6452and truncated lines will automatically be enabled when a line's
6453horizontal scroll amount is or about to become larger than the value
6454of this variable.
6455
6456This variable has effect only in buffers which contain one or more
6457lines whose length is above `long-line-threshold', which see.
6458To disable redisplay shortcuts for long truncated line, set this
6459variable to `most-positive-fixnum'.
6460
6461There is no reason to change that value except for debugging purposes. */);
6462 large_hscroll_threshold = 10000;
6463
6445 defsubr (&Sbuffer_live_p); 6464 defsubr (&Sbuffer_live_p);
6446 defsubr (&Sbuffer_list); 6465 defsubr (&Sbuffer_list);
6447 defsubr (&Sget_buffer); 6466 defsubr (&Sget_buffer);