aboutsummaryrefslogtreecommitdiffstats
path: root/src/coding.c
diff options
context:
space:
mode:
authorEli Zaretskii2021-11-12 10:53:52 +0200
committerEli Zaretskii2021-11-12 10:53:52 +0200
commit0d0125daaeb77af5aa6091059ff6d0c1ce9f6cff (patch)
tree3e499aaac6f4af23f08fd5931d45a8f50609c91c /src/coding.c
parenta6905e90cc3358a21726646c4ee9154e80fc96d6 (diff)
downloademacs-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.c9
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,
9455DEFUN ("decode-coding-region", Fdecode_coding_region, Sdecode_coding_region, 9455DEFUN ("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.
9458Interactively, prompt for the coding system to decode the region.
9458 9459
9459What'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 9461If, for instance, you have a region that contains data that represents
9461that represents the two bytes #xc2 #xa9, after calling this function 9462the two bytes #xc2 #xa9, after calling this function with the utf-8
9462with the utf-8 coding system, the region will contain the single 9463coding system, the region will contain the single
9463character ?\\N{COPYRIGHT SIGN}. 9464character ?\\N{COPYRIGHT SIGN}.
9464 9465
9465When called from a program, takes four arguments: 9466When called from a program, takes four arguments: