diff options
| author | Lars Ingebrigtsen | 2021-07-31 17:44:43 +0200 |
|---|---|---|
| committer | Lars Ingebrigtsen | 2021-07-31 17:44:43 +0200 |
| commit | f6c5a801efdad6cc7ed16ac0b1fa53599b84bc91 (patch) | |
| tree | 733b465030587f28fc1dbf2970d646245802517d /src/cmds.c | |
| parent | c4239ec32c944e74252937bfc52e341f81b7a5a4 (diff) | |
| download | emacs-f6c5a801efdad6cc7ed16ac0b1fa53599b84bc91.tar.gz emacs-f6c5a801efdad6cc7ed16ac0b1fa53599b84bc91.zip | |
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).
Diffstat (limited to 'src/cmds.c')
| -rw-r--r-- | src/cmds.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmds.c b/src/cmds.c index c8a96d918cd..00fde0ef79b 100644 --- a/src/cmds.c +++ b/src/cmds.c | |||
| @@ -455,7 +455,7 @@ internal_self_insert (int c, EMACS_INT n) | |||
| 455 | ptrdiff_t to; | 455 | ptrdiff_t to; |
| 456 | if (INT_ADD_WRAPV (PT, chars_to_delete, &to)) | 456 | if (INT_ADD_WRAPV (PT, chars_to_delete, &to)) |
| 457 | to = PTRDIFF_MAX; | 457 | to = PTRDIFF_MAX; |
| 458 | replace_range (PT, to, string, 1, 1, 1, 0); | 458 | replace_range (PT, to, string, 1, 1, 1, 0, false); |
| 459 | Fforward_char (make_fixnum (n)); | 459 | Fforward_char (make_fixnum (n)); |
| 460 | } | 460 | } |
| 461 | else if (n > 1) | 461 | else if (n > 1) |