diff options
| author | Kenichi Handa | 2004-10-15 02:12:58 +0000 |
|---|---|---|
| committer | Kenichi Handa | 2004-10-15 02:12:58 +0000 |
| commit | 87f2c103b7a284aa1a76079d0e768d66a39c3101 (patch) | |
| tree | 0c2ee49de463d784ef1c07ad4d9eeac1790e4673 /src | |
| parent | 8bc3927549567c060c75c357d0fa4b2476ac16a5 (diff) | |
| download | emacs-87f2c103b7a284aa1a76079d0e768d66a39c3101.tar.gz emacs-87f2c103b7a284aa1a76079d0e768d66a39c3101.zip | |
(get_next_display_element): In unibyte case, decide to
display in octal form by checking a chacter by
UNIBYTE_CHAR_HAS_MULTIBYTE_P.
Diffstat (limited to 'src')
| -rw-r--r-- | src/xdisp.c | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/src/xdisp.c b/src/xdisp.c index 008195eba73..53c03315853 100644 --- a/src/xdisp.c +++ b/src/xdisp.c | |||
| @@ -4978,19 +4978,18 @@ get_next_display_element (it) | |||
| 4978 | the translation. This could easily be changed but I | 4978 | the translation. This could easily be changed but I |
| 4979 | don't believe that it is worth doing. | 4979 | don't believe that it is worth doing. |
| 4980 | 4980 | ||
| 4981 | If it->multibyte_p is nonzero, eight-bit characters and | 4981 | If it->multibyte_p is nonzero, non-printable non-ASCII |
| 4982 | non-printable multibyte characters are also translated to | 4982 | characters are also translated to octal form. |
| 4983 | octal form. | ||
| 4984 | 4983 | ||
| 4985 | If it->multibyte_p is zero, eight-bit characters that | 4984 | If it->multibyte_p is zero, eight-bit characters that |
| 4986 | don't have corresponding multibyte char code are also | 4985 | don't have corresponding multibyte char code are also |
| 4987 | translated to octal form. */ | 4986 | translated to octal form. */ |
| 4988 | else if ((it->c < ' ' | 4987 | else if ((it->c < ' ' ? (it->area != TEXT_AREA |
| 4989 | && (it->area != TEXT_AREA | 4988 | || (it->c != '\n' && it->c != '\t')) |
| 4990 | || (it->c != '\n' && it->c != '\t'))) | 4989 | : it->multibyte_p ? !CHAR_PRINTABLE_P (it->c) |
| 4991 | || (it->c != '\n' && it->c != '\t' | 4990 | : (it->c >= 127 |
| 4992 | && (it->multibyte_p ? !CHAR_PRINTABLE_P (it->c) | 4991 | && (! unibyte_display_via_language_environment |
| 4993 | : it->c == 127))) | 4992 | || (UNIBYTE_CHAR_HAS_MULTIBYTE_P (it->c)))))) |
| 4994 | { | 4993 | { |
| 4995 | /* IT->c is a control character which must be displayed | 4994 | /* IT->c is a control character which must be displayed |
| 4996 | either as '\003' or as `^C' where the '\\' and '^' | 4995 | either as '\003' or as `^C' where the '\\' and '^' |