Mercurial > emacs
comparison src/xdisp.c @ 47046:37cf6131b734
(get_next_display_element): In unibyte case, don't use
octal form for such eight-bit characters that can be converted to
multibyte char.
author | Kenichi Handa <handa@m17n.org> |
---|---|
date | Tue, 27 Aug 2002 00:59:55 +0000 |
parents | 005cc008b551 |
children | c7ddac695d06 |
comparison
equal
deleted
inserted
replaced
47045:eb9f660c2993 | 47046:37cf6131b734 |
---|---|
4256 Control characters coming from a display table entry are | 4256 Control characters coming from a display table entry are |
4257 currently not translated because we use IT->dpvec to hold | 4257 currently not translated because we use IT->dpvec to hold |
4258 the translation. This could easily be changed but I | 4258 the translation. This could easily be changed but I |
4259 don't believe that it is worth doing. | 4259 don't believe that it is worth doing. |
4260 | 4260 |
4261 Non-printable multibyte characters are also translated | 4261 If it->multibyte_p is nonzero, eight-bit characters and |
4262 octal form. */ | 4262 non-printable multibyte characters are also translated to |
4263 else if ((it->c < ' ' | 4263 octal form. |
4264 | |
4265 If it->multibyte_p is zero, eight-bit characters that | |
4266 don't have corresponding multibyte char code are also | |
4267 translated to octal form. */ | |
4268 else if (((it->c < ' ' || it->c == 127) | |
4264 && (it->area != TEXT_AREA | 4269 && (it->area != TEXT_AREA |
4265 || (it->c != '\n' && it->c != '\t'))) | 4270 || (it->c != '\n' && it->c != '\t'))) |
4266 || (it->c >= 127 | 4271 || (it->multibyte_p |
4267 && it->len == 1) | 4272 ? ((it->c >= 127 |
4268 || !CHAR_PRINTABLE_P (it->c)) | 4273 && it->len == 1) |
4274 || !CHAR_PRINTABLE_P (it->c)) | |
4275 : (it->c >= 128 | |
4276 && it->c == unibyte_char_to_multibyte (it->c)))) | |
4269 { | 4277 { |
4270 /* IT->c is a control character which must be displayed | 4278 /* IT->c is a control character which must be displayed |
4271 either as '\003' or as `^C' where the '\\' and '^' | 4279 either as '\003' or as `^C' where the '\\' and '^' |
4272 can be defined in the display table. Fill | 4280 can be defined in the display table. Fill |
4273 IT->ctl_chars with glyphs for what we have to | 4281 IT->ctl_chars with glyphs for what we have to |