aboutsummaryrefslogtreecommitdiffstats
path: root/src/character.h
diff options
context:
space:
mode:
authorKenichi Handa2002-06-12 00:12:53 +0000
committerKenichi Handa2002-06-12 00:12:53 +0000
commitfc9d9d2a1f0eb2beb8ebc369b712f9fec54ea64c (patch)
treeaed418d88119572ea4e069c2a4a0e8c4571cb7e5 /src/character.h
parentd8887a31dd12c18d0fb545f04d02e282e44ba642 (diff)
downloademacs-fc9d9d2a1f0eb2beb8ebc369b712f9fec54ea64c.tar.gz
emacs-fc9d9d2a1f0eb2beb8ebc369b712f9fec54ea64c.zip
(MAYBE_UNIFY_CHAR): Adjusted for the change of
Vchar_unify_table. The default value of the table is now nil.
Diffstat (limited to 'src/character.h')
-rw-r--r--src/character.h34
1 files changed, 19 insertions, 15 deletions
diff --git a/src/character.h b/src/character.h
index c3ef2725bed..35e46e2ff90 100644
--- a/src/character.h
+++ b/src/character.h
@@ -448,23 +448,27 @@ Boston, MA 02111-1307, USA. */
448 } while (0) 448 } while (0)
449 449
450 450
451#define MAYBE_UNIFY_CHAR(c) \ 451#define MAYBE_UNIFY_CHAR(c) \
452 if (CHAR_TABLE_P (Vchar_unify_table)) \ 452 if (CHAR_TABLE_P (Vchar_unify_table)) \
453 { \ 453 { \
454 Lisp_Object val; \ 454 Lisp_Object val; \
455 int unified; \ 455 int unified; \
456 \ 456 \
457 val = CHAR_TABLE_REF (Vchar_unify_table, c); \ 457 val = CHAR_TABLE_REF (Vchar_unify_table, c); \
458 if (SYMBOLP (val)) \ 458 if (! NILP (val)) \
459 { \ 459 { \
460 Funify_charset (val, Qnil); \ 460 if (SYMBOLP (val)) \
461 val = CHAR_TABLE_REF (Vchar_unify_table, c); \ 461 { \
462 } \ 462 Funify_charset (val, Qnil); \
463 if ((unified = XINT (val)) >= 0) \ 463 val = CHAR_TABLE_REF (Vchar_unify_table, c); \
464 c = unified; \ 464 } \
465 } \ 465 if ((unified = XINT (val)) >= 0) \
466 c = unified; \
467 } \
468 } \
466 else 469 else
467 470
471
468/* Return the width of ASCII character C. The width is measured by 472/* Return the width of ASCII character C. The width is measured by
469 how many columns occupied on the screen when displayed in the 473 how many columns occupied on the screen when displayed in the
470 current buffer. */ 474 current buffer. */