95 |
|
|
96 |
@defun position-bytes position |
@defun position-bytes position |
97 |
@tindex position-bytes |
@tindex position-bytes |
98 |
Return the byte-position corresponding to buffer position @var{position} |
Return the byte-position corresponding to buffer position |
99 |
in the current buffer. If @var{position} is out of range, the value |
@var{position} in the current buffer. This is 1 at the start of the |
100 |
is @code{nil}. |
buffer, and counts upward in bytes. If @var{position} is out of |
101 |
|
range, the value is @code{nil}. |
102 |
@end defun |
@end defun |
103 |
|
|
104 |
@defun byte-to-position byte-position |
@defun byte-to-position byte-position |
360 |
special purposes within Emacs. |
special purposes within Emacs. |
361 |
@end defun |
@end defun |
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 |
|
|
368 |
@node Chars and Bytes |
@node Chars and Bytes |
369 |
@section Characters and Bytes |
@section Characters and Bytes |
370 |
@cindex bytes and characters |
@cindex bytes and characters |
480 |
coding systems (@pxref{Coding Systems}) are capable of representing all |
coding systems (@pxref{Coding Systems}) are capable of representing all |
481 |
of the text in question. |
of the text in question. |
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 |
|
|
490 |
@defun find-charset-region beg end &optional translation |
@defun find-charset-region beg end &optional translation |
491 |
This function returns a list of the character sets that appear in the |
This function returns a list of the character sets that appear in the |
492 |
current buffer between positions @var{beg} and @var{end}. |
current buffer between positions @var{beg} and @var{end}. |
686 |
uses one to encode the buffer contents. |
uses one to encode the buffer contents. |
687 |
|
|
688 |
You can specify the coding system to use either explicitly |
You can specify the coding system to use either explicitly |
689 |
(@pxref{Specifying Coding Systems}), or implicitly using the defaulting |
(@pxref{Specifying Coding Systems}), or implicitly using a default |
690 |
mechanism (@pxref{Default Coding Systems}). But these methods may not |
mechanism (@pxref{Default Coding Systems}). But these methods may not |
691 |
completely specify what to do. For example, they may choose a coding |
completely specify what to do. For example, they may choose a coding |
692 |
system such as @code{undefined} which leaves the character code |
system such as @code{undefined} which leaves the character code |