diff options
author | Alan Mackenzie <acm@muc.de> | 2018-01-12 16:31:35 +0000 |
---|---|---|
committer | Alan Mackenzie <acm@muc.de> | 2018-01-12 16:31:35 +0000 |
commit | 0aec5b8a5607505c1b492c10b67214f52f33972a (patch) | |
tree | c6b40d403503086612a7548c061a85754177b531 /lisp/emacs-lisp/autoload.el | |
parent | 30e6e312d950400feac858e46f098f360a90d575 (diff) | |
download | emacs-0aec5b8a5607505c1b492c10b67214f52f33972a.tar.gz emacs-0aec5b8a5607505c1b492c10b67214f52f33972a.tar.bz2 emacs-0aec5b8a5607505c1b492c10b67214f52f33972a.zip |
Make Fzlib_decompress_region always call the change hooks in a balanced way.
This means there will be exactly one call of each of before- and
after-change-functions, regardless of whether or not the decompression
succeeds, and these calls will refer to corresponding buffer regions.
src/decompress.c (struct decompress_unwind_data): add a new field, orig.
(unwind_decompress): Use del_range_2 and update_compositions in place of
del_range, to avoid unwanted change hook calls. Call signal_after_change for
the failed case.
(Fzlib_decompress_region): Call modify_txt for a before-change-functions. Set
the new field orig of unwind_data to the region's start. Use del_range_2 and
update_compositions in place of del_range to avoid unwanted change hook
calls. Call signal_after_change for the successful case.
Diffstat (limited to 'lisp/emacs-lisp/autoload.el')
0 files changed, 0 insertions, 0 deletions