diff options
| author | Richard M. Stallman | 2005-03-08 03:07:54 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2005-03-08 03:07:54 +0000 |
| commit | 5ac343acaf287aa8459ac3c725f60d18b9e55cbb (patch) | |
| tree | e3f8b588c0a443be9bdc91199d09349a90f33b12 | |
| parent | 51485df27dccfc08ee97d08c8489625177fdd66e (diff) | |
| download | emacs-5ac343acaf287aa8459ac3c725f60d18b9e55cbb.tar.gz emacs-5ac343acaf287aa8459ac3c725f60d18b9e55cbb.zip | |
(Text Representations): Clarify position-bytes.
(Character Sets): Add list-charset-chars.
(Scanning Charsets): Add charset-after.
(Encoding and I/O): Minor fix.
| -rw-r--r-- | lispref/nonascii.texi | 21 |
1 files changed, 17 insertions, 4 deletions
diff --git a/lispref/nonascii.texi b/lispref/nonascii.texi index 62bd28fd78b..cf9e0acc819 100644 --- a/lispref/nonascii.texi +++ b/lispref/nonascii.texi | |||
| @@ -95,9 +95,10 @@ default value to @code{nil} early in startup. | |||
| 95 | 95 | ||
| 96 | @defun position-bytes position | 96 | @defun position-bytes position |
| 97 | @tindex position-bytes | 97 | @tindex position-bytes |
| 98 | Return the byte-position corresponding to buffer position @var{position} | 98 | Return the byte-position corresponding to buffer position |
| 99 | in the current buffer. If @var{position} is out of range, the value | 99 | @var{position} in the current buffer. This is 1 at the start of the |
| 100 | is @code{nil}. | 100 | buffer, and counts upward in bytes. If @var{position} is out of |
| 101 | range, the value is @code{nil}. | ||
| 101 | @end defun | 102 | @end defun |
| 102 | 103 | ||
| 103 | @defun byte-to-position byte-position | 104 | @defun byte-to-position byte-position |
| @@ -359,6 +360,11 @@ as the property list of that symbol. Charset properties are used for | |||
| 359 | special purposes within Emacs. | 360 | special purposes within Emacs. |
| 360 | @end defun | 361 | @end defun |
| 361 | 362 | ||
| 363 | @deffn Command list-charset-chars charset | ||
| 364 | This command displays a list of characters in the character set | ||
| 365 | @var{charset}. | ||
| 366 | @end deffn | ||
| 367 | |||
| 362 | @node Chars and Bytes | 368 | @node Chars and Bytes |
| 363 | @section Characters and Bytes | 369 | @section Characters and Bytes |
| 364 | @cindex bytes and characters | 370 | @cindex bytes and characters |
| @@ -474,6 +480,13 @@ part of a buffer or a string. One use for this is in determining which | |||
| 474 | coding systems (@pxref{Coding Systems}) are capable of representing all | 480 | coding systems (@pxref{Coding Systems}) are capable of representing all |
| 475 | of the text in question. | 481 | of the text in question. |
| 476 | 482 | ||
| 483 | @defun charset-after &optional pos | ||
| 484 | This function return the charset of a character in the current buffer | ||
| 485 | at position @var{pos}. If @var{pos} is omitted or @code{nil}, it | ||
| 486 | defauls to the current value of point. If @var{pos} is out of range, | ||
| 487 | the value is @code{nil}. | ||
| 488 | @end defun | ||
| 489 | |||
| 477 | @defun find-charset-region beg end &optional translation | 490 | @defun find-charset-region beg end &optional translation |
| 478 | This function returns a list of the character sets that appear in the | 491 | This function returns a list of the character sets that appear in the |
| 479 | current buffer between positions @var{beg} and @var{end}. | 492 | current buffer between positions @var{beg} and @var{end}. |
| @@ -673,7 +686,7 @@ a coding system for decoding the file data, and @code{write-region} | |||
| 673 | uses one to encode the buffer contents. | 686 | uses one to encode the buffer contents. |
| 674 | 687 | ||
| 675 | You can specify the coding system to use either explicitly | 688 | You can specify the coding system to use either explicitly |
| 676 | (@pxref{Specifying Coding Systems}), or implicitly using the defaulting | 689 | (@pxref{Specifying Coding Systems}), or implicitly using a default |
| 677 | mechanism (@pxref{Default Coding Systems}). But these methods may not | 690 | mechanism (@pxref{Default Coding Systems}). But these methods may not |
| 678 | completely specify what to do. For example, they may choose a coding | 691 | completely specify what to do. For example, they may choose a coding |
| 679 | system such as @code{undefined} which leaves the character code | 692 | system such as @code{undefined} which leaves the character code |