aboutsummaryrefslogtreecommitdiffstats
path: root/src/coding.c
diff options
context:
space:
mode:
authorEli Zaretskii2018-11-14 17:59:05 +0200
committerEli Zaretskii2018-11-14 17:59:05 +0200
commit168a8c258c820804d7a57db59b7e0d986312f227 (patch)
tree996bb779a79a4902495af69475dd16781b92240a /src/coding.c
parent3287a7c048c0c2efc9da59ecd4a12f56f42bb044 (diff)
downloademacs-168a8c258c820804d7a57db59b7e0d986312f227.tar.gz
emacs-168a8c258c820804d7a57db59b7e0d986312f227.zip
* src/coding.c (Fcheck_coding_systems_region): Doc fix. (Bug#33372)
Diffstat (limited to 'src/coding.c')
-rw-r--r--src/coding.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/coding.c b/src/coding.c
index 867f84de609..3b1d8c95042 100644
--- a/src/coding.c
+++ b/src/coding.c
@@ -9207,22 +9207,22 @@ to the string and treated as in `substring'. */)
9207 9207
9208DEFUN ("check-coding-systems-region", Fcheck_coding_systems_region, 9208DEFUN ("check-coding-systems-region", Fcheck_coding_systems_region,
9209 Scheck_coding_systems_region, 3, 3, 0, 9209 Scheck_coding_systems_region, 3, 3, 0,
9210 doc: /* Check if the region is encodable by coding systems. 9210 doc: /* Check if text between START and END is encodable by CODING-SYSTEM-LIST.
9211 9211
9212START and END are buffer positions specifying the region. 9212START and END are buffer positions specifying the region.
9213CODING-SYSTEM-LIST is a list of coding systems to check. 9213CODING-SYSTEM-LIST is a list of coding systems to check.
9214 9214
9215The value is an alist ((CODING-SYSTEM POS0 POS1 ...) ...), where
9216CODING-SYSTEM is a member of CODING-SYSTEM-LIST and can't encode the
9217whole region, POS0, POS1, ... are buffer positions where non-encodable
9218characters are found.
9219
9220If all coding systems in CODING-SYSTEM-LIST can encode the region, the 9215If all coding systems in CODING-SYSTEM-LIST can encode the region, the
9221value is nil. 9216function returns nil.
9217
9218If some of the coding systems cannot encode the whole region, value is
9219an alist, each element of which has the form (CODING-SYSTEM POS1 POS2 ...),
9220which means that CODING-SYSTEM cannot encode the text at buffer positions
9221POS1, POS2, ...
9222 9222
9223START may be a string. In that case, check if the string is 9223START may be a string. In that case, check if the string is
9224encodable, and the value contains indices to the string instead of 9224encodable, and the value contains character indices into the string
9225buffer positions. END is ignored. 9225instead of buffer positions. END is ignored in this case.
9226 9226
9227If the current buffer (or START if it is a string) is unibyte, the value 9227If the current buffer (or START if it is a string) is unibyte, the value
9228is nil. */) 9228is nil. */)