]> git.eshelyaron.com Git - emacs.git/commitdiff
(adjust_point_for_property): Check composition by
authorKenichi Handa <handa@m17n.org>
Fri, 29 Aug 2008 07:56:40 +0000 (07:56 +0000)
committerKenichi Handa <handa@m17n.org>
Fri, 29 Aug 2008 07:56:40 +0000 (07:56 +0000)
composition_adjust_point.

src/keyboard.c

index 9650b574ccf3dcab6116aebfff05778c016080ec..e957e7e5c8f0af65c7ba03296dcbb9dd8cde40dd 100644 (file)
@@ -1994,13 +1994,9 @@ adjust_point_for_property (last_pt, modified)
       /* FIXME: check `intangible'.  */
       if (check_composition
          && PT > BEGV && PT < ZV
-         && get_property_and_range (PT, Qcomposition, &val, &beg, &end, Qnil)
-         && COMPOSITION_VALID_P (beg, end, val)
-         && beg < PT /* && end > PT   <- It's always the case.  */
-         && (last_pt <= beg || last_pt >= end))
+         && (beg = composition_adjust_point (last_pt)) != PT)
        {
-         xassert (end > PT);
-         SET_PT (PT < last_pt ? beg : end);
+         SET_PT (beg);
          check_display = check_invisible = 1;
        }
       check_composition = 0;