diff options
author | Dmitry Antipov <dmantipov@yandex.ru> | 2013-08-06 09:30:18 +0400 |
---|---|---|
committer | Dmitry Antipov <dmantipov@yandex.ru> | 2013-08-06 09:30:18 +0400 |
commit | 00012b86257f33dd4e08e79b814f4a7ad6010713 (patch) | |
tree | 1f01b7ccab453278d5e697ae2bf3dd34cd119a48 /lisp/emacs-lisp/byte-opt.el | |
parent | 307764cc3a2afd363cae0a36a6d18dfa68788cb4 (diff) | |
download | emacs-00012b86257f33dd4e08e79b814f4a7ad6010713.tar.gz emacs-00012b86257f33dd4e08e79b814f4a7ad6010713.tar.bz2 emacs-00012b86257f33dd4e08e79b814f4a7ad6010713.zip |
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.
Diffstat (limited to 'lisp/emacs-lisp/byte-opt.el')
0 files changed, 0 insertions, 0 deletions