diff options
author | Eli Zaretskii <[email protected]> | 2011-09-15 19:22:58 +0300 |
---|---|---|
committer | Eli Zaretskii <[email protected]> | 2011-09-15 19:22:58 +0300 |
commit | bd01620e014a5638cc9e157003778607046a0562 (patch) | |
tree | e62ae3fffff638e1dfca8d44dec6ece7dea2c447 /src/composite.c | |
parent | a02719a326f3bc0ddf39832ef5390f8034c24c24 (diff) |
Add comments about special meaning of TAB characters in compositions.
src/xterm.c (x_draw_composite_glyph_string_foreground):
src/w32term.c (x_draw_composite_glyph_string_foreground):
src/term.c (encode_terminal_code):
src/composite.c (composition_update_it, get_composition_id):
src/xdisp.c (get_next_display_element)
(fill_composite_glyph_string): Add comments about special meaning
of TAB characters in a composition.
Diffstat (limited to 'src/composite.c')
-rw-r--r-- | src/composite.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/composite.c b/src/composite.c index 2a3fbe2955..c8e4dd082a 100644 --- a/src/composite.c +++ b/src/composite.c @@ -345,6 +345,8 @@ get_composition_id (EMACS_INT charpos, EMACS_INT bytepos, EMACS_INT nchars, { int this_width; ch = XINT (key_contents[i]); + /* TAB in a composition means display glyphs with padding + space on the left or right. */ this_width = (ch == '\t' ? 1 : CHAR_WIDTH (ch)); if (cmp->width < this_width) cmp->width = this_width; @@ -1384,6 +1386,8 @@ composition_update_it (struct composition_it *cmp_it, EMACS_INT charpos, EMACS_I else { for (i = 0; i < cmp->glyph_len; i++) + /* TAB in a composition means display glyphs with padding + space on the left or right. */ if ((c = COMPOSITION_GLYPH (cmp, i)) != '\t') break; if (c == '\t') |