diff options
| author | Eli Zaretskii | 2008-12-05 16:30:01 +0000 |
|---|---|---|
| committer | Eli Zaretskii | 2008-12-05 16:30:01 +0000 |
| commit | b3f1f4a52de85d544be96acce97d7c8571f770c5 (patch) | |
| tree | 484d51cfff8fe355555634983694fc56b4669ae7 | |
| parent | af38459ffe2a4f4b9ce4492e19520e4f46bf46d5 (diff) | |
| download | emacs-b3f1f4a52de85d544be96acce97d7c8571f770c5.tar.gz emacs-b3f1f4a52de85d544be96acce97d7c8571f770c5.zip | |
(Character Sets): Document `map-charset-chars'.
| -rw-r--r-- | doc/lispref/ChangeLog | 1 | ||||
| -rw-r--r-- | doc/lispref/nonascii.texi | 17 |
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 | ||
| 8 | 2008-12-02 Glenn Morris <rgm@gnu.org> | 9 | 2008-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 | ||
| 632 | function to all or part of the characters in a charset: | ||
| 633 | |||
| 634 | @defun map-charset-chars function charset &optional arg from to | ||
| 635 | Call @var{function} for characters in @var{charset}. @var{function} | ||
| 636 | is called with two arguments. The first one is a cons cell | ||
| 637 | @code{(@var{from} . @var{to})}, where @var{from} and @var{to} | ||
| 638 | indicate a range of characters contained in charset. The second | ||
| 639 | argument is the optional argument @var{arg}. | ||
| 640 | |||
| 641 | By default, the range of codepoints passed to @var{function} includes | ||
| 642 | all the characters in @var{charset}, but optional arguments @var{from} | ||
| 643 | and @var{to} limit that to the range of characters between these two | ||
| 644 | codepoints. If either of them is @code{nil}, it defaults to the first | ||
| 645 | or 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 | ||