aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKenichi Handa2002-05-30 11:04:58 +0000
committerKenichi Handa2002-05-30 11:04:58 +0000
commit7c7dceee95698ad2add77f35de5d2e8f87ad9287 (patch)
tree38e7879e91e3009832bfdd0992eb1a823d6bbe38 /src
parente73576a3f363fed886a0c113939b52ddd206705c (diff)
downloademacs-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.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog21
-rw-r--r--src/charset.c15
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 @@
12002-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
12002-05-29 Kenichi Handa <handa@etl.go.jp> 222002-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;
93int charset_iso_8859_1; 93int charset_iso_8859_1;
94int charset_unicode; 94int charset_unicode;
95 95
96/* The other special charsets. */
97int charset_jisx0201_roman;
98int charset_jisx0208_1978;
99int charset_jisx0208;
100
96/* Value of charset attribute `charset-iso-plane'. */ 101/* Value of charset attribute `charset-iso-plane'. */
97Lisp_Object Qgl, Qgr; 102Lisp_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);