aboutsummaryrefslogtreecommitdiffstats
path: root/src/composite.c
diff options
context:
space:
mode:
authorGerd Moellmann2001-08-31 08:03:43 +0000
committerGerd Moellmann2001-08-31 08:03:43 +0000
commit6c1aa7f18ab51cb28bdfce1a7994bb08eddbee9b (patch)
tree07d16bfc9e1606dc0e63cea5adbd20f2d88e0d63 /src/composite.c
parent986ec8f2e5a3e5137a1d6c22753c460633191add (diff)
downloademacs-6c1aa7f18ab51cb28bdfce1a7994bb08eddbee9b.tar.gz
emacs-6c1aa7f18ab51cb28bdfce1a7994bb08eddbee9b.zip
(update_compositions): Do nothing if
inhibit-modification-hooks is set.
Diffstat (limited to 'src/composite.c')
-rw-r--r--src/composite.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/composite.c b/src/composite.c
index c18d8eb749c..c3bf6878ce3 100644
--- a/src/composite.c
+++ b/src/composite.c
@@ -489,6 +489,9 @@ update_compositions (from, to, check_mask)
489 Lisp_Object prop; 489 Lisp_Object prop;
490 int start, end; 490 int start, end;
491 491
492 if (inhibit_modification_hooks)
493 return;
494
492 /* If FROM and TO are not in a valid range, do nothing. */ 495 /* If FROM and TO are not in a valid range, do nothing. */
493 if (! (BEGV <= from && from <= to && to <= ZV)) 496 if (! (BEGV <= from && from <= to && to <= ZV))
494 return; 497 return;
@@ -602,7 +605,7 @@ compose_chars_in_text (start, end, string)
602 int start, end; 605 int start, end;
603 Lisp_Object string; 606 Lisp_Object string;
604{ 607{
605 int count; 608 int count = 0;
606 struct gcpro gcpro1; 609 struct gcpro gcpro1;
607 Lisp_Object tail, elt, val, to; 610 Lisp_Object tail, elt, val, to;
608 /* Set to nonzero if we don't have to compose ASCII characters. */ 611 /* Set to nonzero if we don't have to compose ASCII characters. */