aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman2005-03-08 03:07:54 +0000
committerRichard M. Stallman2005-03-08 03:07:54 +0000
commit5ac343acaf287aa8459ac3c725f60d18b9e55cbb (patch)
treee3f8b588c0a443be9bdc91199d09349a90f33b12
parent51485df27dccfc08ee97d08c8489625177fdd66e (diff)
downloademacs-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.texi21
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
98Return the byte-position corresponding to buffer position @var{position} 98Return the byte-position corresponding to buffer position
99in 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
100is @code{nil}. 100buffer, and counts upward in bytes. If @var{position} is out of
101range, 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
359special purposes within Emacs. 360special purposes within Emacs.
360@end defun 361@end defun
361 362
363@deffn Command list-charset-chars charset
364This 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
474coding systems (@pxref{Coding Systems}) are capable of representing all 480coding systems (@pxref{Coding Systems}) are capable of representing all
475of the text in question. 481of the text in question.
476 482
483@defun charset-after &optional pos
484This function return the charset of a character in the current buffer
485at position @var{pos}. If @var{pos} is omitted or @code{nil}, it
486defauls to the current value of point. If @var{pos} is out of range,
487the 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
478This function returns a list of the character sets that appear in the 491This function returns a list of the character sets that appear in the
479current buffer between positions @var{beg} and @var{end}. 492current buffer between positions @var{beg} and @var{end}.
@@ -673,7 +686,7 @@ a coding system for decoding the file data, and @code{write-region}
673uses one to encode the buffer contents. 686uses 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
677mechanism (@pxref{Default Coding Systems}). But these methods may not 690mechanism (@pxref{Default Coding Systems}). But these methods may not
678completely specify what to do. For example, they may choose a coding 691completely specify what to do. For example, they may choose a coding
679system such as @code{undefined} which leaves the character code 692system such as @code{undefined} which leaves the character code