diff options
| author | Po Lu | 2023-02-16 23:57:21 +0800 |
|---|---|---|
| committer | Po Lu | 2023-02-16 23:57:21 +0800 |
| commit | 759e6a24ab9690541acc6ece1adebaf524d6e5ae (patch) | |
| tree | c2f08928b0ad1ed284b139328328d216e341dc8b /src/buffer.c | |
| parent | 2dcce30290dc7782e9de3b4adf59f38b42408c98 (diff) | |
| parent | 07a76a06f9a438e2a1bf1e565e3e78f7927c37f2 (diff) | |
| download | emacs-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.c | 47 |
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. | |||
| 5940 | There is no reason to change that value except for debugging purposes. */); | 5940 | There 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 | ||
| 5947 | This variable has effect only in buffers which contain one or more | 5947 | This variable has effect only in buffers in which |
| 5948 | lines whose length is above `long-line-threshold', which see. For | 5948 | `long-line-optimizations-p' is non-nil. For performance reasons, in |
| 5949 | performance reasons, in such buffers, low-level hooks such as | 5949 | such 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 |
| 5951 | narrowed buffer, with a narrowing locked with `narrowing-lock'. This | 5951 | point, as if they were called in a `with-restriction' form with a label. |
| 5952 | variable specifies the size of the narrowed region around point. | 5952 | This variable specifies the size of the narrowed region around point. |
| 5953 | 5953 | ||
| 5954 | To disable that narrowing, set this variable to 0. | 5954 | To disable that narrowing, set this variable to 0. |
| 5955 | 5955 | ||
| 5956 | See also `long-line-locked-narrowing-bol-search-limit'. | 5956 | See also `long-line-optimizations-bol-search-limit'. |
| 5957 | 5957 | ||
| 5958 | There is no reason to change that value except for debugging purposes. */); | 5958 | There 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 | ||
| 5965 | This variable has effect only in buffers which contain one or more | 5965 | This variable has effect only in buffers in which |
| 5966 | lines whose length is above `long-line-threshold', which see. For | 5966 | `long-line-optimizations-p' is non-nil. For performance reasons, in |
| 5967 | performance reasons, in such buffers, low-level hooks such as | 5967 | such 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 |
| 5969 | narrowed buffer, with a narrowing locked with `narrowing-lock'. The | 5969 | point, as if they were called in a `with-restriction' form with a label. |
| 5970 | variable `long-line-locked-narrowing-region-size' specifies the size | 5970 | The variable `long-line-optimizations-region-size' specifies the |
| 5971 | of the narrowed region around point. This variable, which should be a | 5971 | size of the narrowed region around point. This variable, which should |
| 5972 | small integer, specifies the number of characters by which that region | 5972 | be a small integer, specifies the number of characters by which that |
| 5973 | can be extended backwards to make it start at the beginning of a line. | 5973 | region can be extended backwards to make it start at the beginning of |
| 5974 | a line. | ||
| 5974 | 5975 | ||
| 5975 | There is no reason to change that value except for debugging purposes. */); | 5976 | There 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. |