summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp/autoload.el
diff options
context:
space:
mode:
authorAlan Mackenzie <acm@muc.de>2018-01-12 16:31:35 +0000
committerAlan Mackenzie <acm@muc.de>2018-01-12 16:31:35 +0000
commit0aec5b8a5607505c1b492c10b67214f52f33972a (patch)
treec6b40d403503086612a7548c061a85754177b531 /lisp/emacs-lisp/autoload.el
parent30e6e312d950400feac858e46f098f360a90d575 (diff)
downloademacs-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