aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKenichi Handa2002-08-15 02:28:42 +0000
committerKenichi Handa2002-08-15 02:28:42 +0000
commitd1a0458808666e8c0ee3a0e78490f24138d880b2 (patch)
treecd1a96dbe029967be8d3cfff01e5f017416595a4 /src
parent3ef07f517721c7c231a2eecb9edb7ce0e4a67d56 (diff)
downloademacs-d1a0458808666e8c0ee3a0e78490f24138d880b2.tar.gz
emacs-d1a0458808666e8c0ee3a0e78490f24138d880b2.zip
(charset_unibyte): Renamed from charset_primary.
(Funibyte_charset): Renamed from Fprimary_charset. (Fset_unibyte_charset): Renamed from Fset_primary_charset. (syms_of_charset): Adjusted for the above changes.
Diffstat (limited to 'src')
-rw-r--r--src/charset.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/charset.c b/src/charset.c
index 0b192d8b8c9..8c0cf576c79 100644
--- a/src/charset.c
+++ b/src/charset.c
@@ -87,8 +87,8 @@ int charset_jisx0208;
87/* Value of charset attribute `charset-iso-plane'. */ 87/* Value of charset attribute `charset-iso-plane'. */
88Lisp_Object Qgl, Qgr; 88Lisp_Object Qgl, Qgr;
89 89
90/* The primary charset. It is a charset of unibyte characters. */ 90/* Charset of unibyte characters. */
91int charset_primary; 91int charset_unibyte;
92 92
93/* List of charsets ordered by the priority. */ 93/* List of charsets ordered by the priority. */
94Lisp_Object Vcharset_ordered_list; 94Lisp_Object Vcharset_ordered_list;
@@ -1149,26 +1149,26 @@ DEFUN ("define-charset-alias", Fdefine_charset_alias,
1149} 1149}
1150 1150
1151 1151
1152DEFUN ("primary-charset", Fprimary_charset, Sprimary_charset, 0, 0, 0, 1152DEFUN ("unibyte-charset", Funibyte_charset, Sunibyte_charset, 0, 0, 0,
1153 doc: /* Return the primary charset (set by `set-primary-charset'). */) 1153 doc: /* Return the unibyte charset (set by `set-unibyte-charset'). */)
1154 () 1154 ()
1155{ 1155{
1156 return CHARSET_NAME (CHARSET_FROM_ID (charset_primary)); 1156 return CHARSET_NAME (CHARSET_FROM_ID (charset_unibyte));
1157} 1157}
1158 1158
1159 1159
1160DEFUN ("set-primary-charset", Fset_primary_charset, Sset_primary_charset, 1160DEFUN ("set-unibyte-charset", Fset_unibyte_charset, Sset_unibyte_charset,
1161 1, 1, 0, 1161 1, 1, 0,
1162 doc: /* Set the primary charset to CHARSET. 1162 doc: /* Set the unibyte charset to CHARSET.
1163This determines how unibyte/multibyte conversion is done. See also 1163This determines how unibyte/multibyte conversion is done. See also
1164function `primary-charset'. */) 1164function `unibyte-charset'. */)
1165 (charset) 1165 (charset)
1166 Lisp_Object charset; 1166 Lisp_Object charset;
1167{ 1167{
1168 int id; 1168 int id;
1169 1169
1170 CHECK_CHARSET_GET_ID (charset, id); 1170 CHECK_CHARSET_GET_ID (charset, id);
1171 charset_primary = id; 1171 charset_unibyte = id;
1172 return Qnil; 1172 return Qnil;
1173} 1173}
1174 1174
@@ -2084,8 +2084,8 @@ syms_of_charset ()
2084 defsubr (&Smap_charset_chars); 2084 defsubr (&Smap_charset_chars);
2085 defsubr (&Sdefine_charset_internal); 2085 defsubr (&Sdefine_charset_internal);
2086 defsubr (&Sdefine_charset_alias); 2086 defsubr (&Sdefine_charset_alias);
2087 defsubr (&Sprimary_charset); 2087 defsubr (&Sunibyte_charset);
2088 defsubr (&Sset_primary_charset); 2088 defsubr (&Sset_unibyte_charset);
2089 defsubr (&Scharset_plist); 2089 defsubr (&Scharset_plist);
2090 defsubr (&Sset_charset_plist); 2090 defsubr (&Sset_charset_plist);
2091 defsubr (&Sunify_charset); 2091 defsubr (&Sunify_charset);