diff options
author | Eli Zaretskii <eliz@gnu.org> | 2019-05-25 22:10:00 +0300 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2019-05-25 22:10:00 +0300 |
commit | 8f18d121210aa27dc05555140ab21a8489f0de50 (patch) | |
tree | 59d0c7424e06299a806f2d6de74afae7bae48977 /doc/lispref | |
parent | 7681a57b88a91bf9eedc890b974df9728d5eb50d (diff) | |
download | emacs-8f18d121210aa27dc05555140ab21a8489f0de50.tar.gz emacs-8f18d121210aa27dc05555140ab21a8489f0de50.tar.bz2 emacs-8f18d121210aa27dc05555140ab21a8489f0de50.zip |
Improve documentation of decoding into a unibyte buffer
* doc/lispref/nonascii.texi (Explicit Encoding): Document what
happens when DESTINATION of decoding is a unibyte buffer.
* src/coding.c (Fdecode_coding_region)
(Fdecode_coding_string): Document what happens if DESTINATION
is a unibyte buffer.
Diffstat (limited to 'doc/lispref')
-rw-r--r-- | doc/lispref/nonascii.texi | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/doc/lispref/nonascii.texi b/doc/lispref/nonascii.texi index df4f2932c6e..4e6bf12db92 100644 --- a/doc/lispref/nonascii.texi +++ b/doc/lispref/nonascii.texi @@ -1912,7 +1912,10 @@ the command returns the decoded text as a multibyte string without inserting it. If decoded text is inserted in some buffer, this command returns the -length of the decoded text. +length of the decoded text. If that buffer is a unibyte buffer +(@pxref{Selecting a Representations}), the internal representation of +the decoded text (@pxref{Text Representations}) is inserted into the +buffer as individual bytes. This command puts a @code{charset} text property on the decoded text. The value of the property states the character set used to decode the @@ -1931,7 +1934,9 @@ contains 8-bit bytes in their multibyte form). If optional argument @var{buffer} specifies a buffer, the decoded text is inserted in that buffer after point (point does not move). In this -case, the return value is the length of the decoded text. +case, the return value is the length of the decoded text. If that +buffer is a unibyte buffer, the internal representation of the decoded +text is inserted into it as individual bytes. @cindex @code{charset}, text property This function puts a @code{charset} text property on the decoded text. |