aboutsummaryrefslogtreecommitdiffstats
path: root/src/coding.c
diff options
context:
space:
mode:
authorDave Love2001-11-29 12:54:12 +0000
committerDave Love2001-11-29 12:54:12 +0000
commit0192762cefe7e9e5e34449dea379afc48474306b (patch)
treee4f82ea244c09c80d69a909a141ab6d0c71aeac0 /src/coding.c
parent6fb7766c00330bca787390451d48612323fc0f31 (diff)
downloademacs-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.c7
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.
7226If VAL is a cons of coding systems, the car part is used for decoding, 7226If VAL is a cons of coding systems, the car part is used for decoding,
7227and the cdr part is used for encoding. 7227and the cdr part is used for encoding.
7228If VAL is a function symbol, the function must return a coding system 7228If VAL is a function symbol, the function must return a coding system
7229or a cons of coding systems which are used as above. 7229or a cons of coding systems which are used as above. The function gets
7230the arguments with which `find-operation-coding-systems' was called.
7230 7231
7231See also the function `find-operation-coding-system' 7232See also the function `find-operation-coding-system'
7232and the variable `auto-coding-alist'. */); 7233and the variable `auto-coding-alist'. */);