aboutsummaryrefslogtreecommitdiffstats
path: root/src/ChangeLog
diff options
context:
space:
mode:
authorDmitry Antipov2013-08-06 10:53:09 +0400
committerDmitry Antipov2013-08-06 10:53:09 +0400
commite30b79c1c52a4428189ca148c73e7ecc993c6f6a (patch)
treea7f60977d16877bbe0f626429243ea19543ed84e /src/ChangeLog
parent00012b86257f33dd4e08e79b814f4a7ad6010713 (diff)
downloademacs-e30b79c1c52a4428189ca148c73e7ecc993c6f6a.tar.gz
emacs-e30b79c1c52a4428189ca148c73e7ecc993c6f6a.zip
Use region cache to speedup bidi_find_paragraph_start.
* src/buffer.h (struct buffer): New member bidi_paragraph_cache. Rename cache_long_line_scans to cache_long_scans. * src/buffer.c (bset_cache_long_line_scans): Rename to bset_cache_long_scans. (Fget_buffer_create, Fmake_indirect_buffer, Fkill_buffer) (Fbuffer_swap_text, init_buffer_once): Take bidi_paragraph_cache into account. (syms_of_buffer): Rename cache-long-line-scans to cache-long-scans. Adjust docstring. * src/search.c (newline_cache_on_off): * src/indent.c (width_run_cache_on_off): Adjust users. * src/bidi.c (bidi_paragraph_cache_on_off): New function. (bidi_find_paragraph_start): Use bidi_paragraph_cache if needed. * src/insdel.c (prepare_to_modify_buffer): Invalidate bidi_paragraph_cache if enabled. * doc/lispref/positions.texi (Motion by Screen Lines): * doc/lispref/display.texi (Truncation): Rename `cache-long-line-scans' to `cache-long-scans'.
Diffstat (limited to 'src/ChangeLog')
-rw-r--r--src/ChangeLog19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 7b7d9b56cb5..e8c09b3b4f3 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,5 +1,24 @@
12013-08-06 Dmitry Antipov <dmantipov@yandex.ru> 12013-08-06 Dmitry Antipov <dmantipov@yandex.ru>
2 2
3 Use region cache to speedup bidi_find_paragraph_start.
4 * buffer.h (struct buffer): New member bidi_paragraph_cache.
5 Rename cache_long_line_scans to cache_long_scans.
6 * buffer.c (bset_cache_long_line_scans): Rename to
7 bset_cache_long_scans.
8 (Fget_buffer_create, Fmake_indirect_buffer, Fkill_buffer)
9 (Fbuffer_swap_text, init_buffer_once): Take bidi_paragraph_cache
10 into account.
11 (syms_of_buffer): Rename cache-long-line-scans to
12 cache-long-scans. Adjust docstring.
13 * search.c (newline_cache_on_off):
14 * indent.c (width_run_cache_on_off): Adjust users.
15 * bidi.c (bidi_paragraph_cache_on_off): New function.
16 (bidi_find_paragraph_start): Use bidi_paragraph_cache if needed.
17 * insdel.c (prepare_to_modify_buffer): Invalidate
18 bidi_paragraph_cache if enabled.
19
202013-08-06 Dmitry Antipov <dmantipov@yandex.ru>
21
3 Invalidate region caches only if buffer text is going to be changed. 22 Invalidate region caches only if buffer text is going to be changed.
4 * lisp.h (modify_region_1): Remove 3rd arg and rename to... 23 * lisp.h (modify_region_1): Remove 3rd arg and rename to...
5 (modify_text): ...new prototype. 24 (modify_text): ...new prototype.