Mercurial > hg > xemacs-beta
comparison src/chartab.c @ 2726:4bc213965183
[xemacs-hg @ 2005-04-11 05:15:04 by stephent]
doc improvement <87is2t51zx.fsf@tleepslib.sk.tsukuba.ac.jp>
author | stephent |
---|---|
date | Mon, 11 Apr 2005 05:15:06 +0000 |
parents | 6fa9919a9a0b |
children | 1e7cc382eb16 |
comparison
equal
deleted
inserted
replaced
2725:578c6447aa28 | 2726:4bc213965183 |
---|---|
1189 -- A charset (only allowed when Mule support is present) | 1189 -- A charset (only allowed when Mule support is present) |
1190 -- A vector of two elements: a two-octet charset and a row number | 1190 -- A vector of two elements: a two-octet charset and a row number |
1191 (only allowed when Mule support is present) | 1191 (only allowed when Mule support is present) |
1192 -- A single character | 1192 -- A single character |
1193 | 1193 |
1194 With the values removed, the default value will be returned. | 1194 With all values removed, the default value will be returned by |
1195 `get-char-table' and `get-range-char-table'. | |
1195 */ | 1196 */ |
1196 (range, char_table)) | 1197 (range, char_table)) |
1197 { | 1198 { |
1198 struct chartab_range rainj; | 1199 struct chartab_range rainj; |
1199 | 1200 |
1480 val); | 1481 val); |
1481 return !NILP (closure->retval); | 1482 return !NILP (closure->retval); |
1482 } | 1483 } |
1483 | 1484 |
1484 DEFUN ("map-char-table", Fmap_char_table, 2, 3, 0, /* | 1485 DEFUN ("map-char-table", Fmap_char_table, 2, 3, 0, /* |
1485 Map FUNCTION over entries in CHAR-TABLE, calling it with two args, | 1486 Map FUNCTION over CHAR-TABLE until it returns non-nil; return that value. |
1486 each key and value in the table. | 1487 FUNCTION is called with two arguments, each key and entry in the table. |
1487 | 1488 |
1488 RANGE specifies a subrange to map over and is in the same format as | 1489 RANGE specifies a subrange to map over. If omitted or t, it defaults to |
1489 the RANGE argument to `put-char-table'. If omitted or t, it defaults to | 1490 the entire table. |
1490 the entire table. See also `char-table-p'. | 1491 |
1492 Both RANGE and the keys passed to FUNCTION are in the same format as the | |
1493 RANGE argument to `put-char-table'. N.B. This function does NOT map over | |
1494 all characters in RANGE, but over the subranges that have been assigned to. | |
1495 Thus this function is most suitable for searching a char-table, or for | |
1496 populating one char-table based on the contents of another. The current | |
1497 implementation does not coalesce ranges all of whose values are the same. | |
1491 */ | 1498 */ |
1492 (function, char_table, range)) | 1499 (function, char_table, range)) |
1493 { | 1500 { |
1494 struct slow_map_char_table_arg slarg; | 1501 struct slow_map_char_table_arg slarg; |
1495 struct gcpro gcpro1, gcpro2; | 1502 struct gcpro gcpro1, gcpro2; |