diff options
| author | Eli Zaretskii | 2010-05-22 22:32:21 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2010-05-22 22:32:21 +0300 |
| commit | 1111783029f1d7f50c348d1836ec56c62fb344c2 (patch) | |
| tree | 82dfbad243f61c19044985c98639ada8815bc47a /src/ChangeLog | |
| parent | 6e83d8007b844f1d0d68ad235015a154da8050c4 (diff) | |
| parent | a9f86045d9966fd1090951731050bd51e4cc6a8e (diff) | |
| download | emacs-1111783029f1d7f50c348d1836ec56c62fb344c2.tar.gz emacs-1111783029f1d7f50c348d1836ec56c62fb344c2.zip | |
Redesign bidi-aware edge positions of glyph rows, fix bug #6036.
dispextern.h (struct glyph_row): New members minpos and maxpos.
(MATRIX_ROW_START_CHARPOS, MATRIX_ROW_START_BYTEPOS)
(MATRIX_ROW_END_CHARPOS, MATRIX_ROW_END_BYTEPOS): Reference minpos
and maxpos members instead of start.pos and end.pos, respectively.
xdisp.c (display_line): Compare IT_CHARPOS with the position in
row->start.pos, rather than with MATRIX_ROW_START_CHARPOS.
(cursor_row_p): Use row->end.pos rather than MATRIX_ROW_END_CHARPOS.
(try_window_reusing_current_matrix, try_window_id): Use
ROW->minpos rather than ROW->start.pos.
(init_from_display_pos, init_iterator): Use EMACS_INT for
character and byte positions.
(find_row_edges): Renamed from find_row_end. Accept additional
arguments for minimum and maximum buffer positions seen by
display_line for this row. Don't use iterator to find the
position following the maximum one; instead, increment the
position found by display_line directly. Fix logic; eol_pos
should be tested before the rest. Handle the case of characters
delivered from display vector (bug#6036). Fix tests related to
it->method. Handle the truncated_on_right_p rows.
(RECORD_MAX_MIN_POS): New macro.
(display_line): Use it to record the minimum and maximum buffer
positions for glyphs in the row being assembled. Record the
position of the newline that terminates the line. If word wrap is
in effect, restore minimum and maximum positions seen up to the
wrap point, when iterator returns to it.
(try_window_reusing_current_matrix): Give up if in bidi-reordered
row and cursor not already at point. Restore original pre-bidi
code for unidirectional buffers.
dispnew.c (increment_row_positions, check_matrix_invariants):
Increment and check row->start.pos and row->end.pos, in addition
to MATRIX_ROW_START_CHARPOS and MATRIX_ROW_END_CHARPOS.
.gdbinit (prowlims): Display row->minpos and row->maxpos.
Display truncated_on_left_p and truncated_on_right_p flags.
Formatting fixes.
(pmtxrows): Display the ordinal number of each row. Don't display
rows beyond the last one.
bidi.c (bidi_cache_iterator_state): Don't zero out new_paragraph:
it is not copied by bidi_copy_it.
Diffstat (limited to 'src/ChangeLog')
| -rw-r--r-- | src/ChangeLog | 51 |
1 files changed, 49 insertions, 2 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 540a85a6b1d..eb71ddf9377 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,50 @@ | |||
| 1 | 2010-05-19 Eli Zaretskii <eliz@gnu.org> | ||
| 2 | |||
| 3 | Redesign and reimplement bidi-aware edge positions of glyph rows. | ||
| 4 | |||
| 5 | * dispextern.h (struct glyph_row): New members minpos and maxpos. | ||
| 6 | (MATRIX_ROW_START_CHARPOS, MATRIX_ROW_START_BYTEPOS) | ||
| 7 | (MATRIX_ROW_END_CHARPOS, MATRIX_ROW_END_BYTEPOS): Reference minpos | ||
| 8 | and maxpos members instead of start.pos and end.pos, respectively. | ||
| 9 | |||
| 10 | * xdisp.c (display_line): Compare IT_CHARPOS with the position in | ||
| 11 | row->start.pos, rather than with MATRIX_ROW_START_CHARPOS. | ||
| 12 | (cursor_row_p): Use row->end.pos rather than MATRIX_ROW_END_CHARPOS. | ||
| 13 | (try_window_reusing_current_matrix, try_window_id): Use | ||
| 14 | ROW->minpos rather than ROW->start.pos. | ||
| 15 | (init_from_display_pos, init_iterator): Use EMACS_INT for | ||
| 16 | character and byte positions. | ||
| 17 | (find_row_edges): Renamed from find_row_end. Accept additional | ||
| 18 | arguments for minimum and maximum buffer positions seen by | ||
| 19 | display_line for this row. Don't use iterator to find the | ||
| 20 | position following the maximum one; instead, increment the | ||
| 21 | position found by display_line directly. Fix logic; eol_pos | ||
| 22 | should be tested before the rest. Handle the case of characters | ||
| 23 | delivered from display vector (bug#6036). Fix tests related to | ||
| 24 | it->method. Handle the truncated_on_right_p rows. | ||
| 25 | (RECORD_MAX_MIN_POS): New macro. | ||
| 26 | (display_line): Use it to record the minimum and maximum buffer | ||
| 27 | positions for glyphs in the row being assembled. Record the | ||
| 28 | position of the newline that terminates the line. If word wrap is | ||
| 29 | in effect, restore minimum and maximum positions seen up to the | ||
| 30 | wrap point, when iterator returns to it. | ||
| 31 | (try_window_reusing_current_matrix): Give up if in bidi-reordered | ||
| 32 | row and cursor not already at point. Restore original pre-bidi | ||
| 33 | code for unidirectional buffers. | ||
| 34 | |||
| 35 | * dispnew.c (increment_row_positions, check_matrix_invariants): | ||
| 36 | Increment and check row->start.pos and row->end.pos, in addition | ||
| 37 | to MATRIX_ROW_START_CHARPOS and MATRIX_ROW_END_CHARPOS. | ||
| 38 | |||
| 39 | * .gdbinit (prowlims): Display row->minpos and row->maxpos. | ||
| 40 | Display truncated_on_left_p and truncated_on_right_p flags. | ||
| 41 | Formatting fixes. | ||
| 42 | (pmtxrows): Display the ordinal number of each row. Don't display | ||
| 43 | rows beyond the last one. | ||
| 44 | |||
| 45 | * bidi.c (bidi_cache_iterator_state): Don't zero out new_paragraph: | ||
| 46 | it is not copied by bidi_copy_it. | ||
| 47 | |||
| 1 | 2010-05-22 Eli Zaretskii <eliz@gnu.org> | 48 | 2010-05-22 Eli Zaretskii <eliz@gnu.org> |
| 2 | 49 | ||
| 3 | * w32.c (sys_write): Break writes into chunks smaller than 32MB. | 50 | * w32.c (sys_write): Break writes into chunks smaller than 32MB. |
| @@ -51,8 +98,6 @@ | |||
| 51 | Move static/dynamic dependency stuff to deps.mk/autodeps.mk. | 98 | Move static/dynamic dependency stuff to deps.mk/autodeps.mk. |
| 52 | * deps.mk, autodeps.mk: New files, extracted from Makefile.in. | 99 | * deps.mk, autodeps.mk: New files, extracted from Makefile.in. |
| 53 | 100 | ||
| 54 | 2010-05-19 Eli Zaretskii <eliz@gnu.org> | ||
| 55 | |||
| 56 | * bidi.c (bidi_cache_shrink, bidi_cache_iterator_state): Fix | 101 | * bidi.c (bidi_cache_shrink, bidi_cache_iterator_state): Fix |
| 57 | reallocation of the cache. (Bug#6210) | 102 | reallocation of the cache. (Bug#6210) |
| 58 | 103 | ||
| @@ -175,6 +220,8 @@ | |||
| 175 | * xdisp.c (Fcurrent_bidi_paragraph_direction): New function. | 220 | * xdisp.c (Fcurrent_bidi_paragraph_direction): New function. |
| 176 | (syms_of_xdisp): Defsubr it. | 221 | (syms_of_xdisp): Defsubr it. |
| 177 | 222 | ||
| 223 | * cmds.c (Fforward_char, Fbackward_char): Doc fix. | ||
| 224 | |||
| 178 | * Makefile.in: Fix MSDOS-related comments. | 225 | * Makefile.in: Fix MSDOS-related comments. |
| 179 | 226 | ||
| 180 | 2010-05-15 Glenn Morris <rgm@gnu.org> | 227 | 2010-05-15 Glenn Morris <rgm@gnu.org> |