aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/intervals.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/intervals.c b/src/intervals.c
index 28fa540a383..1a5c2c95322 100644
--- a/src/intervals.c
+++ b/src/intervals.c
@@ -1579,10 +1579,13 @@ graft_intervals_into_buffer (source, position, length, buffer, inherit)
1579 Lisp_Object buf; 1579 Lisp_Object buf;
1580 if (!inherit && ! NULL_INTERVAL_P (tree)) 1580 if (!inherit && ! NULL_INTERVAL_P (tree))
1581 { 1581 {
1582 int saved_inhibit_modification_hooks = inhibit_modification_hooks;
1582 XSETBUFFER (buf, buffer); 1583 XSETBUFFER (buf, buffer);
1584 inhibit_modification_hooks = 1;
1583 Fset_text_properties (make_number (position), 1585 Fset_text_properties (make_number (position),
1584 make_number (position + length), 1586 make_number (position + length),
1585 Qnil, buf); 1587 Qnil, buf);
1588 inhibit_modification_hooks = saved_inhibit_modification_hooks;
1586 } 1589 }
1587 if (! NULL_INTERVAL_P (BUF_INTERVALS (buffer))) 1590 if (! NULL_INTERVAL_P (BUF_INTERVALS (buffer)))
1588 BUF_INTERVALS (buffer) = balance_an_interval (BUF_INTERVALS (buffer)); 1591 BUF_INTERVALS (buffer) = balance_an_interval (BUF_INTERVALS (buffer));