diff options
| author | Kenichi Handa | 2002-05-30 11:04:58 +0000 |
|---|---|---|
| committer | Kenichi Handa | 2002-05-30 11:04:58 +0000 |
| commit | 7c7dceee95698ad2add77f35de5d2e8f87ad9287 (patch) | |
| tree | 38e7879e91e3009832bfdd0992eb1a823d6bbe38 | |
| parent | e73576a3f363fed886a0c113939b52ddd206705c (diff) | |
| download | emacs-7c7dceee95698ad2add77f35de5d2e8f87ad9287.tar.gz emacs-7c7dceee95698ad2add77f35de5d2e8f87ad9287.zip | |
(charset_jisx0201_roman, charset_jisx0208_1978,
charset_jisx0208): New variables.
(Fdefine_charset_internal): Setup them if appropriate.
(init_charset_once): Initialize them to -1.
| -rw-r--r-- | src/ChangeLog | 21 | ||||
| -rw-r--r-- | src/charset.c | 15 |
2 files changed, 36 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index e1617fcdfc4..1f692dea373 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,24 @@ | |||
| 1 | 2002-05-30 Kenichi Handa <handa@etl.go.jp> | ||
| 2 | |||
| 3 | * charset.c (charset_jisx0201_roman, charset_jisx0208_1978, | ||
| 4 | charset_jisx0208): New variables. | ||
| 5 | (Fdefine_charset_internal): Setup them if appropriate. | ||
| 6 | (init_charset_once): Initialize them to -1. | ||
| 7 | |||
| 8 | * charset.h (charset_jisx0201_roman, charset_jisx0208_1978, | ||
| 9 | charset_jisx0208): Extern them. | ||
| 10 | |||
| 11 | * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro | ||
| 12 | (CODING_ISO_FLAG_USE_OLDJIS): New macro. | ||
| 13 | (CODING_ISO_FLAG_FULL_SUPPORT): Macro definition changed. | ||
| 14 | (setup_iso_safe_charsets): Fix arguemtns to Fassq. | ||
| 15 | (DECODE_DESIGNATION): Pay attention to CODING_ISO_FLAG_USE_ROMAN | ||
| 16 | and CODING_ISO_FLAG_USE_OLDJIS. | ||
| 17 | (ENCODE_ISO_CHARACTER_DIMENSION1): Likewise. | ||
| 18 | (ENCODE_ISO_CHARACTER_DIMENSION2): Likewise. | ||
| 19 | (encode_coding_iso_2022): Change the 1st arg to | ||
| 20 | ENCODE_ISO_CHARACTER to a variable. | ||
| 21 | |||
| 1 | 2002-05-29 Kenichi Handa <handa@etl.go.jp> | 22 | 2002-05-29 Kenichi Handa <handa@etl.go.jp> |
| 2 | 23 | ||
| 3 | * charset.h (enum define_charset_arg_index): New enums | 24 | * charset.h (enum define_charset_arg_index): New enums |
diff --git a/src/charset.c b/src/charset.c index a10fa21b2bc..126b741aa57 100644 --- a/src/charset.c +++ b/src/charset.c | |||
| @@ -93,6 +93,11 @@ int charset_8_bit_graphic; | |||
| 93 | int charset_iso_8859_1; | 93 | int charset_iso_8859_1; |
| 94 | int charset_unicode; | 94 | int charset_unicode; |
| 95 | 95 | ||
| 96 | /* The other special charsets. */ | ||
| 97 | int charset_jisx0201_roman; | ||
| 98 | int charset_jisx0208_1978; | ||
| 99 | int charset_jisx0208; | ||
| 100 | |||
| 96 | /* Value of charset attribute `charset-iso-plane'. */ | 101 | /* Value of charset attribute `charset-iso-plane'. */ |
| 97 | Lisp_Object Qgl, Qgr; | 102 | Lisp_Object Qgl, Qgr; |
| 98 | 103 | ||
| @@ -965,6 +970,12 @@ usage: (define-charset-internal ...) */) | |||
| 965 | if (new_definition_p) | 970 | if (new_definition_p) |
| 966 | Viso_2022_charset_list = nconc2 (Viso_2022_charset_list, | 971 | Viso_2022_charset_list = nconc2 (Viso_2022_charset_list, |
| 967 | Fcons (make_number (id), Qnil)); | 972 | Fcons (make_number (id), Qnil)); |
| 973 | if (ISO_CHARSET_TABLE (1, 0, 'J') == id) | ||
| 974 | charset_jisx0201_roman = id; | ||
| 975 | else if (ISO_CHARSET_TABLE (2, 0, '@') == id) | ||
| 976 | charset_jisx0208_1978 = id; | ||
| 977 | else if (ISO_CHARSET_TABLE (2, 0, 'B') == id) | ||
| 978 | charset_jisx0208 = id; | ||
| 968 | } | 979 | } |
| 969 | 980 | ||
| 970 | if (charset.emacs_mule_id >= 0) | 981 | if (charset.emacs_mule_id >= 0) |
| @@ -1817,6 +1828,10 @@ init_charset_once () | |||
| 1817 | for (i = 0; i < 255; i++) | 1828 | for (i = 0; i < 255; i++) |
| 1818 | emacs_mule_charset[i] = NULL; | 1829 | emacs_mule_charset[i] = NULL; |
| 1819 | 1830 | ||
| 1831 | charset_jisx0201_roman = -1; | ||
| 1832 | charset_jisx0208_1978 = -1; | ||
| 1833 | charset_jisx0208 = -1; | ||
| 1834 | |||
| 1820 | #if 0 | 1835 | #if 0 |
| 1821 | Vchar_charset_set = Fmake_char_table (Qnil, Qnil); | 1836 | Vchar_charset_set = Fmake_char_table (Qnil, Qnil); |
| 1822 | CHAR_TABLE_SET (Vchar_charset_set, make_number (97), Qnil); | 1837 | CHAR_TABLE_SET (Vchar_charset_set, make_number (97), Qnil); |