]> git.eshelyaron.com Git - emacs.git/commitdiff
(get_next_display_element): Use DECODE_BYTE.
authorKenichi Handa <handa@m17n.org>
Tue, 7 Jul 2009 01:43:29 +0000 (01:43 +0000)
committerKenichi Handa <handa@m17n.org>
Tue, 7 Jul 2009 01:43:29 +0000 (01:43 +0000)
(x_produce_glyphs): Likewise.

src/ChangeLog
src/xdisp.c

index 1afa3b755d3c291282f6465ac5a96f9928439540..3dc02d4978355ecc639e06984fe458dc43c083cd 100644 (file)
@@ -1,3 +1,27 @@
+2009-07-07  Kenichi Handa  <handa@m17n.org>
+
+       * .gdbinit (xcharset): Fix the treating $arg0.
+
+       * character.h (unibyte_has_multibyte_table): Delete extern.
+       (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
+       (charset_unibyte_decoder): Extern it.
+       (DECODE_UNIBYTE): New macro.
+
+       * charset.c (Fset_charset_priority): Update charset_unibyte and
+       charset_unibyte_decoder.
+       (init_charset_once): Initialize charset_unibyte_decoder.
+       (syms_of_charset): Initialize charset_unibyte.
+
+       * character.c (unibyte_has_multibyte_table): Delete it.
+       (charset_unibyte_decoder): New variable.
+       (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
+       charset_unibyte.
+       (multibyte_char_to_unibyte_safe): Likewise.
+       (Funibyte_char_to_multibyte): Don't check charset_unibyte.
+
+       * xdisp.c (get_next_display_element): Use DECODE_BYTE.
+       (x_produce_glyphs): Likewise.
+
 2009-07-03  Eli Zaretskii  <eliz@gnu.org>
 
        * dired.c (Ffile_attributes): Decode user and group name by the
index 8094b8f8e1356a77d368e3d7d498b5fe8f2e9dd5..8a2b2a387d9ff25d9e20079cdd9c8b30d2283155 100644 (file)
@@ -5743,7 +5743,7 @@ get_next_display_element (it)
                                  || it->c == 0xAD /* SOFT HYPHEN */)))
                       : (it->c >= 127
                          && (! unibyte_display_via_language_environment
-                             || (UNIBYTE_CHAR_HAS_MULTIBYTE_P (it->c)))))))
+                             || (DECODE_UNIBYTE (it->c) <= 0xA0))))))
            {
              /* IT->c is a control character which must be displayed
                 either as '\003' or as `^C' where the '\\' and '^'
@@ -21196,9 +21196,8 @@ x_produce_glyphs (it)
        {
          if (SINGLE_BYTE_CHAR_P (it->c)
              && unibyte_display_via_language_environment)
-           it->char_to_display = unibyte_char_to_multibyte (it->c);
-         if (! SINGLE_BYTE_CHAR_P (it->char_to_display))
            {
+             it->char_to_display = DECODE_UNIBYTE (it->c);
              it->multibyte_p = 1;
              it->face_id = FACE_FOR_CHAR (it->f, face, it->char_to_display,
                                           -1, Qnil);