Finished work on mouse_face_from_buffer_pos for bidi-reordered rows.
authorEli Zaretskii <eliz@gnu.org>
Sat, 9 Oct 2010 16:37:15 +0000 (18:37 +0200)
committerEli Zaretskii <eliz@gnu.org>
Sat, 9 Oct 2010 16:37:15 +0000 (18:37 +0200)
commit2f3f89b323266e4acba71ae0e96acaf78a1584d1
tree0040e565425a8a592ca060421d42f261736c8e7c
parente1291a3605edf76f414c7f2919b02d714d41e827
Finished work on mouse_face_from_buffer_pos for bidi-reordered rows.
Need lots of testing, including bug#1220.
Next task: get rid of fast_find_position, call mouse_face_from_buffer_pos
instead.

 xdisp.c (rows_from_pos_range): New function.
 (mouse_face_from_buffer_pos): Use it instead of calling
 row_containing_pos for START_CHARPOS and END_CHARPOS.
 (note_mouse_highlight): When bidi reordering is turned on in a
 buffer, call next-single-property-change and
 previous-single-property-change with last argument nil.
src/ChangeLog
src/xdisp.c