aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/coding.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/coding.c b/src/coding.c
index 68855c05609..dc99354e157 100644
--- a/src/coding.c
+++ b/src/coding.c
@@ -4299,9 +4299,15 @@ code_convert_region (from, from_byte, to, to_byte, coding, encodep, replace)
4299 } 4299 }
4300 4300
4301 /* The code conversion routine can not preserve text properties for 4301 /* The code conversion routine can not preserve text properties for
4302 now. So, we must remove all text properties in the region. */ 4302 now. So, we must remove all text properties in the region.
4303 Here, we must suppress all modification hooks. */
4303 if (replace) 4304 if (replace)
4304 Fset_text_properties (make_number (from), make_number (to), Qnil, Qnil); 4305 {
4306 int saved_inhibit_modification_hooks = inhibit_modification_hooks;
4307 inhibit_modification_hooks = 1;
4308 Fset_text_properties (make_number (from), make_number (to), Qnil, Qnil);
4309 inhibit_modification_hooks = saved_inhibit_modification_hooks;
4310 }
4305 4311
4306 /* For converion, we must put the gap before the text in addition to 4312 /* For converion, we must put the gap before the text in addition to
4307 making the gap larger for efficient decoding. The required gap 4313 making the gap larger for efficient decoding. The required gap