aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKenichi Handa2002-08-27 00:59:55 +0000
committerKenichi Handa2002-08-27 00:59:55 +0000
commitfa831cf8656015853865025adfd56726462b6cce (patch)
treeb43f4f51bedcd016fba8bf9fe7ffcbde39195afa /src
parent456c80d6697ba98581dc0dfb5e64c3de322740f8 (diff)
downloademacs-fa831cf8656015853865025adfd56726462b6cce.tar.gz
emacs-fa831cf8656015853865025adfd56726462b6cce.zip
(get_next_display_element): In unibyte case, don't use
octal form for such eight-bit characters that can be converted to multibyte char.
Diffstat (limited to 'src')
-rw-r--r--src/xdisp.c20
1 files changed, 14 insertions, 6 deletions
diff --git a/src/xdisp.c b/src/xdisp.c
index 6387d6d341f..21fbdaca0d9 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -4258,14 +4258,22 @@ get_next_display_element (it)
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 '^'