aboutsummaryrefslogtreecommitdiffstats
path: root/src/buffer.c
diff options
context:
space:
mode:
authorPo Lu2023-02-16 23:57:21 +0800
committerPo Lu2023-02-16 23:57:21 +0800
commit759e6a24ab9690541acc6ece1adebaf524d6e5ae (patch)
treec2f08928b0ad1ed284b139328328d216e341dc8b /src/buffer.c
parent2dcce30290dc7782e9de3b4adf59f38b42408c98 (diff)
parent07a76a06f9a438e2a1bf1e565e3e78f7927c37f2 (diff)
downloademacs-759e6a24ab9690541acc6ece1adebaf524d6e5ae.tar.gz
emacs-759e6a24ab9690541acc6ece1adebaf524d6e5ae.zip
Merge remote-tracking branch 'origin/master' into feature/android
Diffstat (limited to 'src/buffer.c')
-rw-r--r--src/buffer.c47
1 files changed, 24 insertions, 23 deletions
diff --git a/src/buffer.c b/src/buffer.c
index 393b8c5340a..1c3168d2b13 100644
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -5940,40 +5940,41 @@ If nil, these display shortcuts will always remain disabled.
5940There is no reason to change that value except for debugging purposes. */); 5940There is no reason to change that value except for debugging purposes. */);
5941 XSETFASTINT (Vlong_line_threshold, 50000); 5941 XSETFASTINT (Vlong_line_threshold, 50000);
5942 5942
5943 DEFVAR_INT ("long-line-locked-narrowing-region-size", 5943 DEFVAR_INT ("long-line-optimizations-region-size",
5944 long_line_locked_narrowing_region_size, 5944 long_line_optimizations_region_size,
5945 doc: /* Region size for locked narrowing in buffers with long lines. 5945 doc: /* Region size for narrowing in buffers with long lines.
5946 5946
5947This variable has effect only in buffers which contain one or more 5947This variable has effect only in buffers in which
5948lines whose length is above `long-line-threshold', which see. For 5948`long-line-optimizations-p' is non-nil. For performance reasons, in
5949performance reasons, in such buffers, low-level hooks such as 5949such buffers, the `fontification-functions', `pre-command-hook' and
5950`fontification-functions' or `post-command-hook' are executed on a 5950`post-command-hook' hooks are executed on a narrowed buffer around
5951narrowed buffer, with a narrowing locked with `narrowing-lock'. This 5951point, as if they were called in a `with-restriction' form with a label.
5952variable specifies the size of the narrowed region around point. 5952This variable specifies the size of the narrowed region around point.
5953 5953
5954To disable that narrowing, set this variable to 0. 5954To disable that narrowing, set this variable to 0.
5955 5955
5956See also `long-line-locked-narrowing-bol-search-limit'. 5956See also `long-line-optimizations-bol-search-limit'.
5957 5957
5958There is no reason to change that value except for debugging purposes. */); 5958There is no reason to change that value except for debugging purposes. */);
5959 long_line_locked_narrowing_region_size = 500000; 5959 long_line_optimizations_region_size = 500000;
5960 5960
5961 DEFVAR_INT ("long-line-locked-narrowing-bol-search-limit", 5961 DEFVAR_INT ("long-line-optimizations-bol-search-limit",
5962 long_line_locked_narrowing_bol_search_limit, 5962 long_line_optimizations_bol_search_limit,
5963 doc: /* Limit for beginning of line search in buffers with long lines. 5963 doc: /* Limit for beginning of line search in buffers with long lines.
5964 5964
5965This variable has effect only in buffers which contain one or more 5965This variable has effect only in buffers in which
5966lines whose length is above `long-line-threshold', which see. For 5966`long-line-optimizations-p' is non-nil. For performance reasons, in
5967performance reasons, in such buffers, low-level hooks such as 5967such buffers, the `fontification-functions', `pre-command-hook' and
5968`fontification-functions' or `post-command-hook' are executed on a 5968`post-command-hook' hooks are executed on a narrowed buffer around
5969narrowed buffer, with a narrowing locked with `narrowing-lock'. The 5969point, as if they were called in a `with-restriction' form with a label.
5970variable `long-line-locked-narrowing-region-size' specifies the size 5970The variable `long-line-optimizations-region-size' specifies the
5971of the narrowed region around point. This variable, which should be a 5971size of the narrowed region around point. This variable, which should
5972small integer, specifies the number of characters by which that region 5972be a small integer, specifies the number of characters by which that
5973can be extended backwards to make it start at the beginning of a line. 5973region can be extended backwards to make it start at the beginning of
5974a line.
5974 5975
5975There is no reason to change that value except for debugging purposes. */); 5976There is no reason to change that value except for debugging purposes. */);
5976 long_line_locked_narrowing_bol_search_limit = 128; 5977 long_line_optimizations_bol_search_limit = 128;
5977 5978
5978 DEFVAR_INT ("large-hscroll-threshold", large_hscroll_threshold, 5979 DEFVAR_INT ("large-hscroll-threshold", large_hscroll_threshold,
5979 doc: /* Horizontal scroll of truncated lines above which to use redisplay shortcuts. 5980 doc: /* Horizontal scroll of truncated lines above which to use redisplay shortcuts.