Speed up keyboard auto-repeat cursor motion under bidi redisplay.
commit0f74f7850de124626d556442d22d143d85457816
authorEli Zaretskii <eliz@gnu.org>
Sat, 23 Jul 2011 07:42:56 +0000 (23 10:42 +0300)
committerEli Zaretskii <eliz@gnu.org>
Sat, 23 Jul 2011 07:42:56 +0000 (23 10:42 +0300)
treeff06bf05bee857bc9714de737a773a1ef903a239
parentb2d0c91afda345844c6e4b647b1b0fd6faac6875
parentb6d5a68964e812af176a6217882add25703914b2
Speed up keyboard auto-repeat cursor motion under bidi redisplay.

 src/xdisp.c (compute_stop_pos_backwards): New function.
 (next_element_from_buffer): Call compute_stop_pos_backwards to
 find a suitable prev_stop when we find ourselves before
 base_level_stop.
 (reseat): Don't look for prev_stop, as that could mean a very long
 run.
 <cached_disp_pos, cached_disp_buffer, cached_disp_modiff>
 <cached_disp_overlay_modiff>: Cache for last found display string
 position.
 (compute_display_string_pos): Return the cached position if asked
 about the same buffer in the same area of character positions, and
 the buffer wasn't changed since the time the display string
 position was cached.
src/ChangeLog
src/xdisp.c