diff options
| author | Glenn Morris | 2018-11-16 08:30:19 -0800 |
|---|---|---|
| committer | Glenn Morris | 2018-11-16 08:30:19 -0800 |
| commit | 166f1400b402fa2275be398fe818e4514dfd8fe9 (patch) | |
| tree | 790a729c8c47f530bd89e5f9cac13c4f257b36ee /src/coding.c | |
| parent | 372225ef0268a03fe8edad66817d2ecbc9cfa305 (diff) | |
| parent | edcd6b722c8e495498b1619e4d073962b8a8f3e8 (diff) | |
| download | emacs-166f1400b402fa2275be398fe818e4514dfd8fe9.tar.gz emacs-166f1400b402fa2275be398fe818e4514dfd8fe9.zip | |
Merge from origin/emacs-26
edcd6b7 Small documentation correction.
168a8c2 * src/coding.c (Fcheck_coding_systems_region): Doc fix. (Bug...
3287a7c Fix Bug#33364
acee0a8 ; Cosmetic changes in etc/NEWS
a6ef167 * test/README: Explain $REMOTE_TEMPORARY_FILE_DIRECTORY.
# Conflicts:
# etc/NEWS
Diffstat (limited to 'src/coding.c')
| -rw-r--r-- | src/coding.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/coding.c b/src/coding.c index 966492a322f..0f715a2d7cd 100644 --- a/src/coding.c +++ b/src/coding.c | |||
| @@ -9226,22 +9226,22 @@ to the string and treated as in `substring'. */) | |||
| 9226 | 9226 | ||
| 9227 | DEFUN ("check-coding-systems-region", Fcheck_coding_systems_region, | 9227 | DEFUN ("check-coding-systems-region", Fcheck_coding_systems_region, |
| 9228 | Scheck_coding_systems_region, 3, 3, 0, | 9228 | Scheck_coding_systems_region, 3, 3, 0, |
| 9229 | doc: /* Check if the region is encodable by coding systems. | 9229 | doc: /* Check if text between START and END is encodable by CODING-SYSTEM-LIST. |
| 9230 | 9230 | ||
| 9231 | START and END are buffer positions specifying the region. | 9231 | START and END are buffer positions specifying the region. |
| 9232 | CODING-SYSTEM-LIST is a list of coding systems to check. | 9232 | CODING-SYSTEM-LIST is a list of coding systems to check. |
| 9233 | 9233 | ||
| 9234 | The value is an alist ((CODING-SYSTEM POS0 POS1 ...) ...), where | ||
| 9235 | CODING-SYSTEM is a member of CODING-SYSTEM-LIST and can't encode the | ||
| 9236 | whole region, POS0, POS1, ... are buffer positions where non-encodable | ||
| 9237 | characters are found. | ||
| 9238 | |||
| 9239 | If all coding systems in CODING-SYSTEM-LIST can encode the region, the | 9234 | If all coding systems in CODING-SYSTEM-LIST can encode the region, the |
| 9240 | value is nil. | 9235 | function returns nil. |
| 9236 | |||
| 9237 | If some of the coding systems cannot encode the whole region, value is | ||
| 9238 | an alist, each element of which has the form (CODING-SYSTEM POS1 POS2 ...), | ||
| 9239 | which means that CODING-SYSTEM cannot encode the text at buffer positions | ||
| 9240 | POS1, POS2, ... | ||
| 9241 | 9241 | ||
| 9242 | START may be a string. In that case, check if the string is | 9242 | START may be a string. In that case, check if the string is |
| 9243 | encodable, and the value contains indices to the string instead of | 9243 | encodable, and the value contains character indices into the string |
| 9244 | buffer positions. END is ignored. | 9244 | instead of buffer positions. END is ignored in this case. |
| 9245 | 9245 | ||
| 9246 | If the current buffer (or START if it is a string) is unibyte, the value | 9246 | If the current buffer (or START if it is a string) is unibyte, the value |
| 9247 | is nil. */) | 9247 | is nil. */) |