]> git.eshelyaron.com Git - emacs.git/commit
Adjust how `replace-match' runs modification hooks
authorLars Ingebrigtsen <larsi@gnus.org>
Sat, 31 Jul 2021 15:44:43 +0000 (17:44 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Sat, 31 Jul 2021 15:44:43 +0000 (17:44 +0200)
commitf6c5a801efdad6cc7ed16ac0b1fa53599b84bc91
tree733b465030587f28fc1dbf2970d646245802517d
parentc4239ec32c944e74252937bfc52e341f81b7a5a4
Adjust how `replace-match' runs modification hooks

* src/editfns.c (Fsubst_char_in_region)
(Ftranslate_region_internal):
* src/cmds.c (internal_self_insert): Update callers.
* src/insdel.c (replace_range): Allow inhibiting
signal_after_change/update_compositions.
* src/lisp.h: Update.

* src/search.c (Freplace_match): Run the modification hooks at the
end instead of before adjusting point (bug#42424).
etc/NEWS
src/cmds.c
src/editfns.c
src/insdel.c
src/lisp.h
src/search.c
test/src/search-tests.el [new file with mode: 0644]