# HG changeset patch # User Kenichi Handa # Date 1261718823 0 # Node ID 0d1366f2a04510e7d044b67b4c6f7f8f3276d743 # Parent 1f0768e4ad7e08bc044cb7e47d2b19b04bfbccd0 (command_loop_1): Fix previous change. diff -r 1f0768e4ad7e -r 0d1366f2a045 src/keyboard.c --- a/src/keyboard.c Fri Dec 25 02:45:47 2009 +0000 +++ b/src/keyboard.c Fri Dec 25 05:27:03 2009 +0000 @@ -1978,9 +1978,11 @@ && NILP (Vdisable_point_adjustment) && NILP (Vglobal_disable_point_adjustment)) { - if (composition_adjust_point (last_point_position, - last_point_position) - != last_point_position) + if (last_point_position > BEGV + && last_point_position < ZV + && (composition_adjust_point (last_point_position, + last_point_position) + != last_point_position)) /* The last point was temporarily set within a grapheme cluster to prevent automatic composition. To recover the automatic composition, we must update the