# HG changeset patch # User Kenichi Handa # Date 1103941868 0 # Node ID fa0a5c4db2c890dc01e47987b535c81d468646e1 # Parent eac554634bfae23c2c7548a763d58f9dec3dbbe0 (get_next_display_element): Sync to the change in HEAD on 2004-12-21. diff -r eac554634bfa -r fa0a5c4db2c8 src/xdisp.c --- 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; }