diff options
| author | YAMAMOTO Mitsuharu | 2006-06-02 09:39:54 +0000 |
|---|---|---|
| committer | YAMAMOTO Mitsuharu | 2006-06-02 09:39:54 +0000 |
| commit | 70a4cae4681c1e6d2506b8d09fdb27c338f4d9cc (patch) | |
| tree | bead6ebe723ca783a0cfbd1036e8ecec9448bdf5 /src | |
| parent | 8b2b00f51c7eb836c35ef90d6e62609bc0ca8246 (diff) | |
| download | emacs-70a4cae4681c1e6d2506b8d09fdb27c338f4d9cc.tar.gz emacs-70a4cae4681c1e6d2506b8d09fdb27c338f4d9cc.zip | |
(next_element_from_composition): Set it->object to
it->string if composition is coming from string.
(set_cursor_from_row): Don't return 0 unless row displays a
continued line.
(dump_glyph): Dump composite glyph.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 8 | ||||
| -rw-r--r-- | src/xdisp.c | 23 |
2 files changed, 30 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index a3c92e6f1a1..dccebac3ec5 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,11 @@ | |||
| 1 | 2006-06-02 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> | ||
| 2 | |||
| 3 | * xdisp.c (next_element_from_composition): Set it->object to | ||
| 4 | it->string if composition is coming from string. | ||
| 5 | (set_cursor_from_row): Don't return 0 unless row displays a | ||
| 6 | continued line. | ||
| 7 | (dump_glyph): Dump composite glyph. | ||
| 8 | |||
| 1 | 2006-06-02 Jan Dj,Ad(Brv <jan.h.d@swipnet.se> | 9 | 2006-06-02 Jan Dj,Ad(Brv <jan.h.d@swipnet.se> |
| 2 | 10 | ||
| 3 | * gtkutil.c (menu_nav_ended): Check that menubar_widget is not NULL. | 11 | * gtkutil.c (menu_nav_ended): Check that menubar_widget is not NULL. |
diff --git a/src/xdisp.c b/src/xdisp.c index aa0625532ab..80237e89fa1 100644 --- a/src/xdisp.c +++ b/src/xdisp.c | |||
| @@ -6238,6 +6238,8 @@ next_element_from_composition (it) | |||
| 6238 | it->position = (STRINGP (it->string) | 6238 | it->position = (STRINGP (it->string) |
| 6239 | ? it->current.string_pos | 6239 | ? it->current.string_pos |
| 6240 | : it->current.pos); | 6240 | : it->current.pos); |
| 6241 | if (STRINGP (it->string)) | ||
| 6242 | it->object = it->string; | ||
| 6241 | return 1; | 6243 | return 1; |
| 6242 | } | 6244 | } |
| 6243 | 6245 | ||
| @@ -11777,7 +11779,7 @@ set_cursor_from_row (w, row, matrix, delta, delta_bytes, dy, dvpos) | |||
| 11777 | 11779 | ||
| 11778 | /* If we reached the end of the line, and end was from a string, | 11780 | /* If we reached the end of the line, and end was from a string, |
| 11779 | cursor is not on this line. */ | 11781 | cursor is not on this line. */ |
| 11780 | if (glyph == end) | 11782 | if (glyph == end && row->continued_p) |
| 11781 | return 0; | 11783 | return 0; |
| 11782 | } | 11784 | } |
| 11783 | 11785 | ||
| @@ -14961,6 +14963,25 @@ dump_glyph (row, glyph, area) | |||
| 14961 | glyph->left_box_line_p, | 14963 | glyph->left_box_line_p, |
| 14962 | glyph->right_box_line_p); | 14964 | glyph->right_box_line_p); |
| 14963 | } | 14965 | } |
| 14966 | else if (glyph->type == COMPOSITE_GLYPH) | ||
| 14967 | { | ||
| 14968 | fprintf (stderr, | ||
| 14969 | " %5d %4c %6d %c %3d 0x%05x %c %4d %1.1d%1.1d\n", | ||
| 14970 | glyph - row->glyphs[TEXT_AREA], | ||
| 14971 | '+', | ||
| 14972 | glyph->charpos, | ||
| 14973 | (BUFFERP (glyph->object) | ||
| 14974 | ? 'B' | ||
| 14975 | : (STRINGP (glyph->object) | ||
| 14976 | ? 'S' | ||
| 14977 | : '-')), | ||
| 14978 | glyph->pixel_width, | ||
| 14979 | glyph->u.cmp_id, | ||
| 14980 | '.', | ||
| 14981 | glyph->face_id, | ||
| 14982 | glyph->left_box_line_p, | ||
| 14983 | glyph->right_box_line_p); | ||
| 14984 | } | ||
| 14964 | } | 14985 | } |
| 14965 | 14986 | ||
| 14966 | 14987 | ||