comparison src/coding.c @ 41678:5aa97e545399

(syms_of_coding) <Qchar_coding_system>: Give it an extra extra slot. (detect_coding_mask): Fix call of detect_coding_iso2022.
author Dave Love <fx@gnu.org>
date Thu, 29 Nov 2001 12:54:12 +0000
parents 7ccd94cedad7
children 5c01da9c8604
comparison
equal deleted inserted replaced
41677:4c982f51020c 41678:5aa97e545399
4035 for (i = 0; i < CODING_CATEGORY_IDX_MAX; i++) 4035 for (i = 0; i < CODING_CATEGORY_IDX_MAX; i++)
4036 { 4036 {
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)
4044 mask |= detect_coding_sjis (src, src_end, multibytep); 4044 mask |= detect_coding_sjis (src, src_end, multibytep);
4045 else if (priorities[i] & try & CODING_CATEGORY_MASK_UTF_8) 4045 else if (priorities[i] & try & CODING_CATEGORY_MASK_UTF_8)
7105 /* Intern this now in case it isn't already done. 7105 /* Intern this now in case it isn't already done.
7106 Setting this variable twice is harmless. 7106 Setting this variable twice is harmless.
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);
7114 7114
7115 Qemacs_mule = intern ("emacs-mule"); 7115 Qemacs_mule = intern ("emacs-mule");
7224 If VAL is a coding system, it is used for both decoding and encoding 7224 If VAL is a coding system, it is used for both decoding and encoding
7225 the file contents. 7225 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'. */);
7233 Vfile_coding_system_alist = Qnil; 7234 Vfile_coding_system_alist = Qnil;
7234 7235