[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] emacs-26 168a8c2: * src/coding.c (Fcheck_coding_systems_re
From: |
Eli Zaretskii |
Subject: |
[Emacs-diffs] emacs-26 168a8c2: * src/coding.c (Fcheck_coding_systems_region): Doc fix. (Bug#33372) |
Date: |
Wed, 14 Nov 2018 10:59:52 -0500 (EST) |
branch: emacs-26
commit 168a8c258c820804d7a57db59b7e0d986312f227
Author: Eli Zaretskii <address@hidden>
Commit: Eli Zaretskii <address@hidden>
* src/coding.c (Fcheck_coding_systems_region): Doc fix. (Bug#33372)
---
src/coding.c | 18 +++++++++---------
1 file changed, 9 insertions(+), 9 deletions(-)
diff --git a/src/coding.c b/src/coding.c
index 867f84d..3b1d8c9 100644
--- a/src/coding.c
+++ b/src/coding.c
@@ -9207,22 +9207,22 @@ to the string and treated as in `substring'. */)
DEFUN ("check-coding-systems-region", Fcheck_coding_systems_region,
Scheck_coding_systems_region, 3, 3, 0,
- doc: /* Check if the region is encodable by coding systems.
+ doc: /* Check if text between START and END is encodable by
CODING-SYSTEM-LIST.
START and END are buffer positions specifying the region.
CODING-SYSTEM-LIST is a list of coding systems to check.
-The value is an alist ((CODING-SYSTEM POS0 POS1 ...) ...), where
-CODING-SYSTEM is a member of CODING-SYSTEM-LIST and can't encode the
-whole region, POS0, POS1, ... are buffer positions where non-encodable
-characters are found.
-
If all coding systems in CODING-SYSTEM-LIST can encode the region, the
-value is nil.
+function returns nil.
+
+If some of the coding systems cannot encode the whole region, value is
+an alist, each element of which has the form (CODING-SYSTEM POS1 POS2 ...),
+which means that CODING-SYSTEM cannot encode the text at buffer positions
+POS1, POS2, ...
START may be a string. In that case, check if the string is
-encodable, and the value contains indices to the string instead of
-buffer positions. END is ignored.
+encodable, and the value contains character indices into the string
+instead of buffer positions. END is ignored in this case.
If the current buffer (or START if it is a string) is unibyte, the value
is nil. */)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] emacs-26 168a8c2: * src/coding.c (Fcheck_coding_systems_region): Doc fix. (Bug#33372),
Eli Zaretskii <=