diff options
Diffstat (limited to 'src/buffer.c')
| -rw-r--r-- | src/buffer.c | 35 |
1 files changed, 34 insertions, 1 deletions
diff --git a/src/buffer.c b/src/buffer.c index d948aaa2662..ef7e6f18340 100644 --- a/src/buffer.c +++ b/src/buffer.c | |||
| @@ -5882,7 +5882,40 @@ this threshold. | |||
| 5882 | If nil, these display shortcuts will always remain disabled. | 5882 | If nil, these display shortcuts will always remain disabled. |
| 5883 | 5883 | ||
| 5884 | There is no reason to change that value except for debugging purposes. */); | 5884 | There is no reason to change that value except for debugging purposes. */); |
| 5885 | XSETFASTINT (Vlong_line_threshold, 10000); | 5885 | XSETFASTINT (Vlong_line_threshold, 50000); |
| 5886 | |||
| 5887 | DEFVAR_INT ("long-line-locked-narrowing-region-size", | ||
| 5888 | long_line_locked_narrowing_region_size, | ||
| 5889 | doc: /* Region size for locked narrowing in buffers with long lines. | ||
| 5890 | |||
| 5891 | This variable has effect only in buffers which contain one or more | ||
| 5892 | lines whose length is above `long-line-threshold', which see. For | ||
| 5893 | performance reasons, in such buffers, low-level hooks such as | ||
| 5894 | `fontification-functions' or `post-command-hook' are executed on a | ||
| 5895 | narrowed buffer, with a narrowing locked with `narrowing-lock'. This | ||
| 5896 | variable specifies the size of the narrowed region around point. | ||
| 5897 | |||
| 5898 | To disable that narrowing, set this variable to 0. | ||
| 5899 | |||
| 5900 | There is no reason to change that value except for debugging purposes. */); | ||
| 5901 | long_line_locked_narrowing_region_size = 500000; | ||
| 5902 | |||
| 5903 | DEFVAR_INT ("long-line-locked-narrowing-bol-search-limit", | ||
| 5904 | long_line_locked_narrowing_bol_search_limit, | ||
| 5905 | doc: /* Limit for beginning of line search in buffers with long lines. | ||
| 5906 | |||
| 5907 | This variable has effect only in buffers which contain one or more | ||
| 5908 | lines whose length is above `long-line-threshold', which see. For | ||
| 5909 | performance reasons, in such buffers, low-level hooks such as | ||
| 5910 | `fontification-functions' or `post-command-hook' are executed on a | ||
| 5911 | narrowed buffer, with a narrowing locked with `narrowing-lock'. The | ||
| 5912 | variable `long-line-locked-narrowing-region-size' specifies the size | ||
| 5913 | of the narrowed region around point. This variable, which should be a | ||
| 5914 | small integer, specifies the number of characters by which that region | ||
| 5915 | can be extended backwards to start it at the beginning of a line. | ||
| 5916 | |||
| 5917 | There is no reason to change that value except for debugging purposes. */); | ||
| 5918 | long_line_locked_narrowing_bol_search_limit = 128; | ||
| 5886 | 5919 | ||
| 5887 | DEFVAR_INT ("large-hscroll-threshold", large_hscroll_threshold, | 5920 | DEFVAR_INT ("large-hscroll-threshold", large_hscroll_threshold, |
| 5888 | doc: /* Horizontal scroll of truncated lines above which to use redisplay shortcuts. | 5921 | doc: /* Horizontal scroll of truncated lines above which to use redisplay shortcuts. |