diff options
| author | Chong Yidong | 2008-10-22 19:37:07 +0000 |
|---|---|---|
| committer | Chong Yidong | 2008-10-22 19:37:07 +0000 |
| commit | ffdbc44b562bd220f3d46b20d99eda108c8e60c4 (patch) | |
| tree | db7142fff70c5aac0805baadb310bbb2b60bef73 | |
| parent | f0143c43d48c362b23c4c86d09484d2b90cdc54b (diff) | |
| download | emacs-ffdbc44b562bd220f3d46b20d99eda108c8e60c4.tar.gz emacs-ffdbc44b562bd220f3d46b20d99eda108c8e60c4.zip | |
(Character Codes): Remove obsolete function char-valid-p, and document
characterp instead.
| -rw-r--r-- | doc/lispref/nonascii.texi | 39 |
1 files changed, 19 insertions, 20 deletions
diff --git a/doc/lispref/nonascii.texi b/doc/lispref/nonascii.texi index 90244210e55..4a8205c178d 100644 --- a/doc/lispref/nonascii.texi +++ b/doc/lispref/nonascii.texi | |||
| @@ -289,32 +289,31 @@ or @code{eight-bit-graphic}. | |||
| 289 | @section Character Codes | 289 | @section Character Codes |
| 290 | @cindex character codes | 290 | @cindex character codes |
| 291 | 291 | ||
| 292 | The unibyte and multibyte text representations use different character | 292 | The unibyte and multibyte text representations use different |
| 293 | codes. The valid character codes for unibyte representation range from | 293 | character codes. The valid character codes for unibyte representation |
| 294 | 0 to 255---the values that can fit in one byte. The valid character | 294 | range from 0 to 255---the values that can fit in one byte. The valid |
| 295 | codes for multibyte representation range from 0 to 524287, but not all | 295 | character codes for multibyte representation range from 0 to 4194303, |
| 296 | values in that range are valid. The values 128 through 255 are not | 296 | but not all values in that range are valid. The values 128 through |
| 297 | entirely proper in multibyte text, but they can occur if you do explicit | 297 | 255 do not usually show up in multibyte text, but they can occur if |
| 298 | encoding and decoding (@pxref{Explicit Encoding}). Some other character | 298 | you do explicit encoding and decoding (@pxref{Explicit Encoding}). |
| 299 | codes cannot occur at all in multibyte text. Only the @acronym{ASCII} codes | 299 | Some other character codes cannot occur at all in multibyte text. |
| 300 | 0 through 127 are completely legitimate in both representations. | 300 | Only the @acronym{ASCII} codes 0 through 127 are completely legitimate |
| 301 | 301 | in both representations. | |
| 302 | @defun char-valid-p charcode &optional genericp | 302 | |
| 303 | This returns @code{t} if @var{charcode} is valid (either for unibyte | 303 | @defun characterp charcode |
| 304 | text or for multibyte text). | 304 | This returns @code{t} if @var{charcode} is a valid character, and |
| 305 | @code{nil} otherwise. | ||
| 305 | 306 | ||
| 306 | @example | 307 | @example |
| 307 | (char-valid-p 65) | 308 | (characterp 65) |
| 308 | @result{} t | 309 | @result{} t |
| 309 | (char-valid-p 256) | 310 | (characterp 256) |
| 310 | @result{} nil | 311 | @result{} nil |
| 311 | (char-valid-p 2248) | 312 | (characterp 4194303) |
| 312 | @result{} t | 313 | @result{} t |
| 314 | (characterp 4194304) | ||
| 315 | @result{} nil | ||
| 313 | @end example | 316 | @end example |
| 314 | |||
| 315 | If the optional argument @var{genericp} is non-@code{nil}, this | ||
| 316 | function also returns @code{t} if @var{charcode} is a generic | ||
| 317 | character (@pxref{Splitting Characters}). | ||
| 318 | @end defun | 317 | @end defun |
| 319 | 318 | ||
| 320 | @node Character Sets | 319 | @node Character Sets |