Mercurial > emacs
changeset 90069:fa0a5c4db2c8
(get_next_display_element): Sync to the change in HEAD
on 2004-12-21.
author | Kenichi Handa <handa@m17n.org> |
---|---|
date | Sat, 25 Dec 2004 02:31:08 +0000 |
parents | eac554634bfa |
children | 95879cc1ed20 |
files | src/xdisp.c |
diffstat | 1 files changed, 9 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/src/xdisp.c Sat Dec 25 02:00:25 2004 +0000 +++ b/src/xdisp.c Sat Dec 25 02:31:08 2004 +0000 @@ -5007,10 +5007,13 @@ || (it->c != '\n' && it->glyph_row && it->glyph_row->mode_line_p) || (it->c != '\n' && it->c != '\t')) - : it->multibyte_p ? !CHAR_PRINTABLE_P (it->c) - : (it->c >= 127 - && (! unibyte_display_via_language_environment - || (UNIBYTE_CHAR_HAS_MULTIBYTE_P (it->c)))))) + : (it->multibyte_p + ? (!CHAR_PRINTABLE_P (it->c) + || it->c == 0xA0 /* NO-BREAK SPACE */ + || it->c == 0xAD /* SOFT HYPHEN */) + : (it->c >= 127 + && (! unibyte_display_via_language_environment + || (UNIBYTE_CHAR_HAS_MULTIBYTE_P (it->c))))))) { /* IT->c is a control character which must be displayed either as '\003' or as `^C' where the '\\' and '^' @@ -5050,7 +5053,7 @@ XSETINT (it->ctl_chars[1], g); ctl_len = 2; } - else if (it->c == 0x8a0 || it->c == 0x8ad) + else if (it->c == 0xA0 || it->c == 0xAD) { /* Set IT->ctl_chars[0] to the glyph for `\\'. */ if (it->dp @@ -5061,7 +5064,7 @@ g = FAST_MAKE_GLYPH ('\\', face_id); XSETINT (it->ctl_chars[0], g); - g = FAST_MAKE_GLYPH (it->c == 0x8ad ? '-' : ' ', face_id); + g = FAST_MAKE_GLYPH (it->c == 0xAD ? '-' : ' ', face_id); XSETINT (it->ctl_chars[1], g); ctl_len = 2; }