diff options
| author | Dave Love | 2002-07-01 20:38:35 +0000 |
|---|---|---|
| committer | Dave Love | 2002-07-01 20:38:35 +0000 |
| commit | 56a46d1d74384823528df9b6771dbc40c6a266aa (patch) | |
| tree | 0fbff316660a496ae04e41bf46f88281191f0257 /src | |
| parent | 3caaa30e0e2d034156893547b9f8374e2ba9ffe8 (diff) | |
| download | emacs-56a46d1d74384823528df9b6771dbc40c6a266aa.tar.gz emacs-56a46d1d74384823528df9b6771dbc40c6a266aa.zip | |
Doc fixes.
(Funify_charset): Extra checking.
Diffstat (limited to 'src')
| -rw-r--r-- | src/charset.c | 27 |
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 | ||
| 1073 | DEFUN ("primary-charset", Fprimary_charset, Sprimary_charset, 0, 0, 0, | 1073 | DEFUN ("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 | ||
| 1081 | DEFUN ("set-primary-charset", Fset_primary_charset, Sset_primary_charset, | 1081 | DEFUN ("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. |
| 1084 | This determines how unibyte/multibyte conversion is done. See also | ||
| 1085 | function `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 | ||
| 1095 | DEFUN ("charset-plist", Fcharset_plist, Scharset_plist, 1, 1, 0, | 1097 | DEFUN ("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 | ||
| 1120 | DEFUN ("unify-charset", Funify_charset, Sunify_charset, 1, 2, 0, | 1122 | DEFUN ("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. |
| 1124 | This means reading the relevant file and installing the table defined | ||
| 1125 | by 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: /* |
| 1193 | Declare a charset of DIMENSION, CHARS, FINAL-CHAR is the same as CHARSET. | 1201 | Declare a charset of DIMENSION, CHARS, FINAL-CHAR is the same as CHARSET. |
| 1194 | CHARSET should be defined by `defined-charset' in advance. */) | 1202 | CHARSET 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, | |||
| 1296 | BEG and END are buffer positions. | 1304 | BEG and END are buffer positions. |
| 1297 | Optional arg TABLE if non-nil is a translation table to look up. | 1305 | Optional arg TABLE if non-nil is a translation table to look up. |
| 1298 | 1306 | ||
| 1299 | If the region contains invalid multibyte characters, | ||
| 1300 | `unknown' is included in the returned list. | ||
| 1301 | |||
| 1302 | If the current buffer is unibyte, the returned list may contain | 1307 | If the current buffer is unibyte, the returned list may contain |
| 1303 | only `ascii', `eight-bit-control', and `eight-bit-graphic'. */) | 1308 | only `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. |
| 1352 | Optional arg TABLE if non-nil is a translation table to look up. | 1357 | Optional arg TABLE if non-nil is a translation table to look up. |
| 1353 | 1358 | ||
| 1354 | If the string contains invalid multibyte characters, | ||
| 1355 | `unknown' is included in the returned list. | ||
| 1356 | |||
| 1357 | If STR is unibyte, the returned list may contain | 1359 | If STR is unibyte, the returned list may contain |
| 1358 | only `ascii', `eight-bit-control', and `eight-bit-graphic'. */) | 1360 | only `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? */ | ||
| 1737 | DEFUN ("split-char", Fsplit_char, Ssplit_char, 1, 1, 0, | 1740 | DEFUN ("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. |
| 1739 | If CHAR is invalid as a character code, | 1742 | If CHAR is invalid as a character code, |