Invalidate region caches only if buffer text is going to be changed.
authorDmitry Antipov <dmantipov@yandex.ru>
Tue, 6 Aug 2013 05:30:18 +0000 (09:30 +0400)
committerDmitry Antipov <dmantipov@yandex.ru>
Tue, 6 Aug 2013 05:30:18 +0000 (09:30 +0400)
commit00012b86257f33dd4e08e79b814f4a7ad6010713
tree1f01b7ccab453278d5e697ae2bf3dd34cd119a48
parent307764cc3a2afd363cae0a36a6d18dfa68788cb4
Invalidate region caches only if buffer text is going to be changed.
* lisp.h (modify_region_1): Remove 3rd arg and rename to...
(modify_text): ...new prototype.
(prepare_to_modify_buffer_1): New prototype.
* textprop.c (modify_region): Rename to...
(modify_text_properties): ...new function.
(add_text_properties_1, set_text_properties, Fremove_text_properties)
(Fremove_list_of_text_properties): Adjust users.
* insdel.c (modify_region_1): Remove 3rd arg and reimplement as...
(modify_text): ...new function.
(prepare_to_modify_buffer): Reimplement mostly as a wrapper for...
(prepare_to_modify_buffer_1): ...new function.
* casefiddle.c (casify_region):
* editfns.c (Fsubst_char_in_region, Ftranslate_region_internal)
(Ftranspose_regions): Use modify_text.
src/ChangeLog
src/casefiddle.c
src/editfns.c
src/insdel.c
src/lisp.h
src/textprop.c