aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Zaretskii2008-12-05 16:30:01 +0000
committerEli Zaretskii2008-12-05 16:30:01 +0000
commitb3f1f4a52de85d544be96acce97d7c8571f770c5 (patch)
tree484d51cfff8fe355555634983694fc56b4669ae7
parentaf38459ffe2a4f4b9ce4492e19520e4f46bf46d5 (diff)
downloademacs-b3f1f4a52de85d544be96acce97d7c8571f770c5.tar.gz
emacs-b3f1f4a52de85d544be96acce97d7c8571f770c5.zip
(Character Sets): Document `map-charset-chars'.
-rw-r--r--doc/lispref/ChangeLog1
-rw-r--r--doc/lispref/nonascii.texi17
2 files changed, 18 insertions, 0 deletions
diff --git a/doc/lispref/ChangeLog b/doc/lispref/ChangeLog
index 96118a3afe9..952c2953a60 100644
--- a/doc/lispref/ChangeLog
+++ b/doc/lispref/ChangeLog
@@ -4,6 +4,7 @@
4 paragraph to speak about `undecided'. 4 paragraph to speak about `undecided'.
5 (Character Properties): Don't explain the meaning of each 5 (Character Properties): Don't explain the meaning of each
6 property; instead, identify their Unicode Standard names. 6 property; instead, identify their Unicode Standard names.
7 (Character Sets): Document `map-charset-chars'.
7 8
82008-12-02 Glenn Morris <rgm@gnu.org> 92008-12-02 Glenn Morris <rgm@gnu.org>
9 10
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
628@code{nil}. 628@code{nil}.
629@end defun 629@end defun
630 630
631 The following function comes in handy for applying a certain
632function to all or part of the characters in a charset:
633
634@defun map-charset-chars function charset &optional arg from to
635Call @var{function} for characters in @var{charset}. @var{function}
636is called with two arguments. The first one is a cons cell
637@code{(@var{from} . @var{to})}, where @var{from} and @var{to}
638indicate a range of characters contained in charset. The second
639argument is the optional argument @var{arg}.
640
641By default, the range of codepoints passed to @var{function} includes
642all the characters in @var{charset}, but optional arguments @var{from}
643and @var{to} limit that to the range of characters between these two
644codepoints. If either of them is @code{nil}, it defaults to the first
645or last codepoint of @var{charset}, respectively.
646@end defun
647
631@node Scanning Charsets 648@node Scanning Charsets
632@section Scanning for Character Sets 649@section Scanning for Character Sets
633 650