]> code.delx.au - gnu-emacs/blobdiff - src/xdisp.c
Merge from emacs-23 branch
[gnu-emacs] / src / xdisp.c
index a99f06a4e45b021df9823d8897d52dd5932331ec..774bc22699abd646283a9923019c174c516718aa 100644 (file)
@@ -4583,6 +4583,11 @@ handle_composition_prop (struct it *it)
       && COMPOSITION_VALID_P (start, end, prop)
       && (STRINGP (it->string) || (PT <= start || PT >= end)))
     {
+      if (start < pos)
+       /* As we can't handle this situation (perhaps font-lock added
+          a new composition), we just return here hoping that next
+          redisplay will detect this composition much earlier.  */
+       return HANDLED_NORMALLY;
       if (start != pos)
        {
          if (STRINGP (it->string))