aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDave Love2002-07-01 20:38:35 +0000
committerDave Love2002-07-01 20:38:35 +0000
commit56a46d1d74384823528df9b6771dbc40c6a266aa (patch)
tree0fbff316660a496ae04e41bf46f88281191f0257 /src
parent3caaa30e0e2d034156893547b9f8374e2ba9ffe8 (diff)
downloademacs-56a46d1d74384823528df9b6771dbc40c6a266aa.tar.gz
emacs-56a46d1d74384823528df9b6771dbc40c6a266aa.zip
Doc fixes.
(Funify_charset): Extra checking.
Diffstat (limited to 'src')
-rw-r--r--src/charset.c27
1 files changed, 15 insertions, 12 deletions
diff --git a/src/charset.c b/src/charset.c
index 0ef023a3df2..9265bbdfb00 100644
--- a/src/charset.c
+++ b/src/charset.c
@@ -1071,7 +1071,7 @@ DEFUN ("define-charset-alias", Fdefine_charset_alias,
1071 1071
1072 1072
1073DEFUN ("primary-charset", Fprimary_charset, Sprimary_charset, 0, 0, 0, 1073DEFUN ("primary-charset", Fprimary_charset, Sprimary_charset, 0, 0, 0,
1074 doc: /* Return the primary charset. */) 1074 doc: /* Return the primary charset (set by `set-primary-charset'). */)
1075 () 1075 ()
1076{ 1076{
1077 return CHARSET_NAME (CHARSET_FROM_ID (charset_primary)); 1077 return CHARSET_NAME (CHARSET_FROM_ID (charset_primary));
@@ -1080,7 +1080,9 @@ DEFUN ("primary-charset", Fprimary_charset, Sprimary_charset, 0, 0, 0,
1080 1080
1081DEFUN ("set-primary-charset", Fset_primary_charset, Sset_primary_charset, 1081DEFUN ("set-primary-charset", Fset_primary_charset, Sset_primary_charset,
1082 1, 1, 0, 1082 1, 1, 0,
1083 doc: /* Set the primary charset to CHARSET. */) 1083 doc: /* Set the primary charset to CHARSET.
1084This determines how unibyte/multibyte conversion is done. See also
1085function `primary-charset'. */)
1084 (charset) 1086 (charset)
1085 Lisp_Object charset; 1087 Lisp_Object charset;
1086{ 1088{
@@ -1093,7 +1095,7 @@ DEFUN ("set-primary-charset", Fset_primary_charset, Sset_primary_charset,
1093 1095
1094 1096
1095DEFUN ("charset-plist", Fcharset_plist, Scharset_plist, 1, 1, 0, 1097DEFUN ("charset-plist", Fcharset_plist, Scharset_plist, 1, 1, 0,
1096 doc: /* Return a property list of CHARSET. */) 1098 doc: /* Return the property list of CHARSET. */)
1097 (charset) 1099 (charset)
1098 Lisp_Object charset; 1100 Lisp_Object charset;
1099{ 1101{
@@ -1118,7 +1120,9 @@ DEFUN ("set-charset-plist", Fset_charset_plist, Sset_charset_plist, 2, 2, 0,
1118 1120
1119 1121
1120DEFUN ("unify-charset", Funify_charset, Sunify_charset, 1, 2, 0, 1122DEFUN ("unify-charset", Funify_charset, Sunify_charset, 1, 2, 0,
1121 doc: /* Unify characters of CHARSET with Unicode. */) 1123 doc: /* Unify characters of CHARSET with Unicode.
1124This means reading the relevant file and installing the table defined
1125by CHARSET's `:unify-map' property. */)
1122 (charset, unify_map) 1126 (charset, unify_map)
1123 Lisp_Object charset, unify_map; 1127 Lisp_Object charset, unify_map;
1124{ 1128{
@@ -1137,8 +1141,12 @@ DEFUN ("unify-charset", Funify_charset, Sunify_charset, 1, 2, 0,
1137 unify_map = CHARSET_UNIFY_MAP (cs); 1141 unify_map = CHARSET_UNIFY_MAP (cs);
1138 if (STRINGP (unify_map)) 1142 if (STRINGP (unify_map))
1139 load_charset_map_from_file (cs, unify_map, 2); 1143 load_charset_map_from_file (cs, unify_map, 2);
1140 else 1144 else if (VECTORP (unify_map))
1141 load_charset_map_from_vector (cs, unify_map, 2); 1145 load_charset_map_from_vector (cs, unify_map, 2);
1146 else if (NILP (unify_map))
1147 error ("No unify-map for charset");
1148 else
1149 error ("Bad unify-map arg");
1142 CHARSET_UNIFIED_P (cs) = 1; 1150 CHARSET_UNIFIED_P (cs) = 1;
1143 return Qnil; 1151 return Qnil;
1144} 1152}
@@ -1191,7 +1199,7 @@ DEFUN ("declare-equiv-charset", Fdeclare_equiv_charset, Sdeclare_equiv_charset,
1191 4, 4, 0, 1199 4, 4, 0,
1192 doc: /* 1200 doc: /*
1193Declare a charset of DIMENSION, CHARS, FINAL-CHAR is the same as CHARSET. 1201Declare a charset of DIMENSION, CHARS, FINAL-CHAR is the same as CHARSET.
1194CHARSET should be defined by `defined-charset' in advance. */) 1202CHARSET should be defined by `define-charset' in advance. */)
1195 (dimension, chars, final_char, charset) 1203 (dimension, chars, final_char, charset)
1196 Lisp_Object dimension, chars, final_char, charset; 1204 Lisp_Object dimension, chars, final_char, charset;
1197{ 1205{
@@ -1296,9 +1304,6 @@ DEFUN ("find-charset-region", Ffind_charset_region, Sfind_charset_region,
1296BEG and END are buffer positions. 1304BEG and END are buffer positions.
1297Optional arg TABLE if non-nil is a translation table to look up. 1305Optional arg TABLE if non-nil is a translation table to look up.
1298 1306
1299If the region contains invalid multibyte characters,
1300`unknown' is included in the returned list.
1301
1302If the current buffer is unibyte, the returned list may contain 1307If the current buffer is unibyte, the returned list may contain
1303only `ascii', `eight-bit-control', and `eight-bit-graphic'. */) 1308only `ascii', `eight-bit-control', and `eight-bit-graphic'. */)
1304 (beg, end, table) 1309 (beg, end, table)
@@ -1351,9 +1356,6 @@ DEFUN ("find-charset-string", Ffind_charset_string, Sfind_charset_string,
1351 doc: /* Return a list of charsets in STR. 1356 doc: /* Return a list of charsets in STR.
1352Optional arg TABLE if non-nil is a translation table to look up. 1357Optional arg TABLE if non-nil is a translation table to look up.
1353 1358
1354If the string contains invalid multibyte characters,
1355`unknown' is included in the returned list.
1356
1357If STR is unibyte, the returned list may contain 1359If STR is unibyte, the returned list may contain
1358only `ascii', `eight-bit-control', and `eight-bit-graphic'. */) 1360only `ascii', `eight-bit-control', and `eight-bit-graphic'. */)
1359 (str, table) 1361 (str, table)
@@ -1734,6 +1736,7 @@ char_charset (c, charset_list, code_return)
1734} 1736}
1735 1737
1736 1738
1739/* Fixme: `unknown' can't happen now? */
1737DEFUN ("split-char", Fsplit_char, Ssplit_char, 1, 1, 0, 1740DEFUN ("split-char", Fsplit_char, Ssplit_char, 1, 1, 0,
1738 doc: /*Return list of charset and one to three position-codes of CHAR. 1741 doc: /*Return list of charset and one to three position-codes of CHAR.
1739If CHAR is invalid as a character code, 1742If CHAR is invalid as a character code,