diff options
| author | Dave Love | 2001-11-29 12:54:12 +0000 |
|---|---|---|
| committer | Dave Love | 2001-11-29 12:54:12 +0000 |
| commit | 0192762cefe7e9e5e34449dea379afc48474306b (patch) | |
| tree | e4f82ea244c09c80d69a909a141ab6d0c71aeac0 /src/coding.c | |
| parent | 6fb7766c00330bca787390451d48612323fc0f31 (diff) | |
| download | emacs-0192762cefe7e9e5e34449dea379afc48474306b.tar.gz emacs-0192762cefe7e9e5e34449dea379afc48474306b.zip | |
(syms_of_coding) <Qchar_coding_system>: Give it an
extra extra slot.
(detect_coding_mask): Fix call of detect_coding_iso2022.
Diffstat (limited to 'src/coding.c')
| -rw-r--r-- | src/coding.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/coding.c b/src/coding.c index 5b2f629fa79..58951442422 100644 --- a/src/coding.c +++ b/src/coding.c | |||
| @@ -4037,7 +4037,7 @@ detect_coding_mask (source, src_bytes, priorities, skip, multibytep) | |||
| 4037 | if (!iso2022_examined_p | 4037 | if (!iso2022_examined_p |
| 4038 | && (priorities[i] & try & CODING_CATEGORY_MASK_ISO)) | 4038 | && (priorities[i] & try & CODING_CATEGORY_MASK_ISO)) |
| 4039 | { | 4039 | { |
| 4040 | mask |= detect_coding_iso2022 (src, src_end); | 4040 | mask |= detect_coding_iso2022 (src, src_end, multibytep); |
| 4041 | iso2022_examined_p = 1; | 4041 | iso2022_examined_p = 1; |
| 4042 | } | 4042 | } |
| 4043 | else if (priorities[i] & try & CODING_CATEGORY_MASK_SJIS) | 4043 | else if (priorities[i] & try & CODING_CATEGORY_MASK_SJIS) |
| @@ -7107,7 +7107,7 @@ syms_of_coding () | |||
| 7107 | But don't staticpro it here--that is done in alloc.c. */ | 7107 | But don't staticpro it here--that is done in alloc.c. */ |
| 7108 | Qchar_table_extra_slots = intern ("char-table-extra-slots"); | 7108 | Qchar_table_extra_slots = intern ("char-table-extra-slots"); |
| 7109 | Fput (Qsafe_chars, Qchar_table_extra_slots, make_number (0)); | 7109 | Fput (Qsafe_chars, Qchar_table_extra_slots, make_number (0)); |
| 7110 | Fput (Qchar_coding_system, Qchar_table_extra_slots, make_number (1)); | 7110 | Fput (Qchar_coding_system, Qchar_table_extra_slots, make_number (2)); |
| 7111 | 7111 | ||
| 7112 | Qvalid_codes = intern ("valid-codes"); | 7112 | Qvalid_codes = intern ("valid-codes"); |
| 7113 | staticpro (&Qvalid_codes); | 7113 | staticpro (&Qvalid_codes); |
| @@ -7226,7 +7226,8 @@ the file contents. | |||
| 7226 | If VAL is a cons of coding systems, the car part is used for decoding, | 7226 | If VAL is a cons of coding systems, the car part is used for decoding, |
| 7227 | and the cdr part is used for encoding. | 7227 | and the cdr part is used for encoding. |
| 7228 | If VAL is a function symbol, the function must return a coding system | 7228 | If VAL is a function symbol, the function must return a coding system |
| 7229 | or a cons of coding systems which are used as above. | 7229 | or a cons of coding systems which are used as above. The function gets |
| 7230 | the arguments with which `find-operation-coding-systems' was called. | ||
| 7230 | 7231 | ||
| 7231 | See also the function `find-operation-coding-system' | 7232 | See also the function `find-operation-coding-system' |
| 7232 | and the variable `auto-coding-alist'. */); | 7233 | and the variable `auto-coding-alist'. */); |