Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
b3f1f4a5
Commit
b3f1f4a5
authored
Dec 05, 2008
by
Eli Zaretskii
Browse files
(Character Sets): Document `map-charset-chars'.
parent
af38459f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
0 deletions
+18
-0
doc/lispref/ChangeLog
doc/lispref/ChangeLog
+1
-0
doc/lispref/nonascii.texi
doc/lispref/nonascii.texi
+17
-0
No files found.
doc/lispref/ChangeLog
View file @
b3f1f4a5
...
...
@@ -4,6 +4,7 @@
paragraph to speak about `undecided'
.
(
Character
Properties
):
Don
't explain the meaning of each
property; instead, identify their Unicode Standard names.
(Character Sets): Document `map-charset-chars'
.
2008
-
12
-
02
Glenn
Morris
<
rgm
@
gnu
.
org
>
...
...
doc/lispref/nonascii.texi
View file @
b3f1f4a5
...
...
@@ -626,6 +626,23 @@ integer, it is returned as a cons cell @code{(@var{high} . @var{low})}
that fits the second argument of @code{decode-char} above. If
@var{charset} doesn't have a codepoint for @var{char}, the value is
@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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment