diff options
| author | Eli Zaretskii | 2019-05-25 22:10:00 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2019-05-25 22:10:00 +0300 |
| commit | 8f18d121210aa27dc05555140ab21a8489f0de50 (patch) | |
| tree | 59d0c7424e06299a806f2d6de74afae7bae48977 /src/coding.c | |
| parent | 7681a57b88a91bf9eedc890b974df9728d5eb50d (diff) | |
| download | emacs-8f18d121210aa27dc05555140ab21a8489f0de50.tar.gz 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 'src/coding.c')
| -rw-r--r-- | src/coding.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/coding.c b/src/coding.c index 3a463b9905d..078c1c4e6a7 100644 --- a/src/coding.c +++ b/src/coding.c | |||
| @@ -9398,7 +9398,8 @@ START and END are buffer positions. | |||
| 9398 | Optional 4th arguments DESTINATION specifies where the decoded text goes. | 9398 | Optional 4th arguments DESTINATION specifies where the decoded text goes. |
| 9399 | If nil, the region between START and END is replaced by the decoded text. | 9399 | If nil, the region between START and END is replaced by the decoded text. |
| 9400 | If buffer, the decoded text is inserted in that buffer after point (point | 9400 | If buffer, the decoded text is inserted in that buffer after point (point |
| 9401 | does not move). | 9401 | does not move). If that buffer is unibyte, it receives the individual |
| 9402 | bytes of the internal representation of the decoded text. | ||
| 9402 | In those cases, the length of the decoded text is returned. | 9403 | In those cases, the length of the decoded text is returned. |
| 9403 | If DESTINATION is t, the decoded text is returned. | 9404 | If DESTINATION is t, the decoded text is returned. |
| 9404 | 9405 | ||
| @@ -9556,7 +9557,9 @@ if the decoding operation is trivial. | |||
| 9556 | 9557 | ||
| 9557 | Optional fourth arg BUFFER non-nil means that the decoded text is | 9558 | Optional fourth arg BUFFER non-nil means that the decoded text is |
| 9558 | inserted in that buffer after point (point does not move). In this | 9559 | inserted in that buffer after point (point does not move). In this |
| 9559 | case, the return value is the length of the decoded text. | 9560 | case, the return value is the length of the decoded text. If that |
| 9561 | buffer is unibyte, it receives the individual bytes of the internal | ||
| 9562 | representation of the decoded text. | ||
| 9560 | 9563 | ||
| 9561 | This function sets `last-coding-system-used' to the precise coding system | 9564 | This function sets `last-coding-system-used' to the precise coding system |
| 9562 | used (which may be different from CODING-SYSTEM if CODING-SYSTEM is | 9565 | used (which may be different from CODING-SYSTEM if CODING-SYSTEM is |