Mercurial > emacs
diff src/coding.c @ 22460:7ca919476042
(detect_coding_system): Always return a list of HIGHEST is zero.
(Fdetect_coding_region): Doc-string adjusted for the above change.
(Fdetect_coding_string): Likewise.
| author | Kenichi Handa <handa@m17n.org> |
|---|---|
| date | Sat, 13 Jun 1998 01:41:23 +0000 |
| parents | 572ba933a4bf |
| children | 627b13315f04 |
line wrap: on
line diff
--- a/src/coding.c Sat Jun 13 01:38:33 1998 +0000 +++ b/src/coding.c Sat Jun 13 01:41:23 1998 +0000 @@ -4528,7 +4528,7 @@ if (VECTORP (val2)) val = XVECTOR (val2)->contents[eol_type]; } - return val; + return (highest ? val : Fcons (val, Qnil)); } /* At first, gather possible coding systems in VAL. */ @@ -4567,8 +4567,9 @@ "Detect coding system of the text in the region between START and END.\n\ Return a list of possible coding systems ordered by priority.\n\ \n\ -If only ASCII characters are found, it returns `undecided'\n\ -or its subsidiary coding system according to a detected end-of-line format.\n\ +If only ASCII characters are found, it returns a list of single element\n\ +`undecided' or its subsidiary coding system according to a detected\n\ +end-of-line format.\n\ \n\ If optional argument HIGHEST is non-nil, return the coding system of\n\ highest priority.") @@ -4599,8 +4600,9 @@ "Detect coding system of the text in STRING.\n\ Return a list of possible coding systems ordered by priority.\n\ \n\ -If only ASCII characters are found, it returns `undecided'\n\ -or its subsidiary coding system according to a detected end-of-line format.\n\ +If only ASCII characters are found, it returns a list of single element\n\ +`undecided' or its subsidiary coding system according to a detected\n\ +end-of-line format.\n\ \n\ If optional argument HIGHEST is non-nil, return the coding system of\n\ highest priority.")
