aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard M. Stallman1999-04-06 08:49:28 +0000
committerRichard M. Stallman1999-04-06 08:49:28 +0000
commit6445414a594d14ed33cf48ed1ae95764f81bcbc7 (patch)
treed4781d0ae9e9725d856021580740bac93de8f52d /src
parent5d66c9e19e29ded95899c976bcc779ac9946b4f7 (diff)
downloademacs-6445414a594d14ed33cf48ed1ae95764f81bcbc7.tar.gz
emacs-6445414a594d14ed33cf48ed1ae95764f81bcbc7.zip
(graft_intervals_into_buffer): Turn off
inhibit_modification_hooks around calling Fset_text_properties.
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));