From: Gerd Moellmann Date: Fri, 31 Aug 2001 08:03:43 +0000 (+0000) Subject: (update_compositions): Do nothing if X-Git-Tag: emacs-pretest-21.0.105~10 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=6c1aa7f18ab51cb28bdfce1a7994bb08eddbee9b;p=emacs.git (update_compositions): Do nothing if inhibit-modification-hooks is set. --- 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) Lisp_Object prop; int start, end; + if (inhibit_modification_hooks) + return; + /* If FROM and TO are not in a valid range, do nothing. */ if (! (BEGV <= from && from <= to && to <= ZV)) return; @@ -602,7 +605,7 @@ compose_chars_in_text (start, end, string) int start, end; Lisp_Object string; { - int count; + int count = 0; struct gcpro gcpro1; Lisp_Object tail, elt, val, to; /* Set to nonzero if we don't have to compose ASCII characters. */