diff options
| author | Eli Zaretskii | 2021-11-12 10:53:52 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2021-11-12 10:53:52 +0200 |
| commit | 0d0125daaeb77af5aa6091059ff6d0c1ce9f6cff (patch) | |
| tree | 3e499aaac6f4af23f08fd5931d45a8f50609c91c /src/coding.c | |
| parent | a6905e90cc3358a21726646c4ee9154e80fc96d6 (diff) | |
| download | emacs-0d0125daaeb77af5aa6091059ff6d0c1ce9f6cff.tar.gz emacs-0d0125daaeb77af5aa6091059ff6d0c1ce9f6cff.zip | |
Improve documentation of 'decode-coding-region'
* src/coding.c (Fdecode_coding_region): Doc fix.
* doc/lispref/nonascii.texi (Coding System Basics)
(Explicit Encoding): Explain the significance of using 'undecided'
in 'decode-coding-*' functions.
Diffstat (limited to 'src/coding.c')
| -rw-r--r-- | src/coding.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/coding.c b/src/coding.c index 7030a53869a..02dccf5bdb0 100644 --- a/src/coding.c +++ b/src/coding.c | |||
| @@ -9455,11 +9455,12 @@ code_convert_region (Lisp_Object start, Lisp_Object end, | |||
| 9455 | DEFUN ("decode-coding-region", Fdecode_coding_region, Sdecode_coding_region, | 9455 | DEFUN ("decode-coding-region", Fdecode_coding_region, Sdecode_coding_region, |
| 9456 | 3, 4, "r\nzCoding system: ", | 9456 | 3, 4, "r\nzCoding system: ", |
| 9457 | doc: /* Decode the current region from the specified coding system. | 9457 | doc: /* Decode the current region from the specified coding system. |
| 9458 | Interactively, prompt for the coding system to decode the region. | ||
| 9458 | 9459 | ||
| 9459 | What's meant by \"decoding\" is transforming bytes into text | 9460 | \"Decoding\" means transforming bytes into readable text (characters). |
| 9460 | (characters). If, for instance, you have a region that contains data | 9461 | If, for instance, you have a region that contains data that represents |
| 9461 | that represents the two bytes #xc2 #xa9, after calling this function | 9462 | the two bytes #xc2 #xa9, after calling this function with the utf-8 |
| 9462 | with the utf-8 coding system, the region will contain the single | 9463 | coding system, the region will contain the single |
| 9463 | character ?\\N{COPYRIGHT SIGN}. | 9464 | character ?\\N{COPYRIGHT SIGN}. |
| 9464 | 9465 | ||
| 9465 | When called from a program, takes four arguments: | 9466 | When called from a program, takes four arguments: |