diff options
author | Eli Zaretskii <eliz@gnu.org> | 2008-12-05 16:30:01 +0000 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2008-12-05 16:30:01 +0000 |
commit | b3f1f4a52de85d544be96acce97d7c8571f770c5 (patch) | |
tree | 484d51cfff8fe355555634983694fc56b4669ae7 /doc/lispref/nonascii.texi | |
parent | af38459ffe2a4f4b9ce4492e19520e4f46bf46d5 (diff) | |
download | emacs-b3f1f4a52de85d544be96acce97d7c8571f770c5.tar.gz |
(Character Sets): Document `map-charset-chars'.
Diffstat (limited to 'doc/lispref/nonascii.texi')
-rw-r--r-- | doc/lispref/nonascii.texi | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/doc/lispref/nonascii.texi b/doc/lispref/nonascii.texi index 131b27d030e..28b1cf508db 100644 --- a/doc/lispref/nonascii.texi +++ b/doc/lispref/nonascii.texi @@ -628,6 +628,23 @@ that fits the second argument of @code{decode-char} above. If @code{nil}. @end defun + The following function comes in handy for applying a certain +function to all or part of the characters in a charset: + +@defun map-charset-chars function charset &optional arg from to +Call @var{function} for characters in @var{charset}. @var{function} +is called with two arguments. The first one is a cons cell +@code{(@var{from} . @var{to})}, where @var{from} and @var{to} +indicate a range of characters contained in charset. The second +argument is the optional argument @var{arg}. + +By default, the range of codepoints passed to @var{function} includes +all the characters in @var{charset}, but optional arguments @var{from} +and @var{to} limit that to the range of characters between these two +codepoints. If either of them is @code{nil}, it defaults to the first +or last codepoint of @var{charset}, respectively. +@end defun + @node Scanning Charsets @section Scanning for Character Sets |