comparison src/coding.c @ 88544:f464d728344c

(Vchar_coding_system_table, Qchar_coding_system): Removed. (Fset_coding_system_priority, Fset_coding_system_priority) (Fdefine_coding_system_internal): Doc fix.
author Dave Love <fx@gnu.org>
date Fri, 17 May 2002 16:25:23 +0000
parents d266b8fb8761
children 133bf7ab1bad
comparison
equal deleted inserted replaced
88543:f14d2bf6caa4 88544:f464d728344c
399 /* Global flag to tell that we can't call post-read-conversion and 399 /* Global flag to tell that we can't call post-read-conversion and
400 pre-write-conversion functions. Usually the value is zero, but it 400 pre-write-conversion functions. Usually the value is zero, but it
401 is set to 1 temporarily while such functions are running. This is 401 is set to 1 temporarily while such functions are running. This is
402 to avoid infinite recursive call. */ 402 to avoid infinite recursive call. */
403 static int inhibit_pre_post_conversion; 403 static int inhibit_pre_post_conversion;
404
405 /* Char-table containing safe coding systems of each character. */
406 Lisp_Object Vchar_coding_system_table;
407 Lisp_Object Qchar_coding_system;
408 404
409 /* Two special coding systems. */ 405 /* Two special coding systems. */
410 Lisp_Object Vsjis_coding_system; 406 Lisp_Object Vsjis_coding_system;
411 Lisp_Object Vbig5_coding_system; 407 Lisp_Object Vbig5_coding_system;
412 408
7103 return Qnil; 7099 return Qnil;
7104 } 7100 }
7105 7101
7106 DEFUN ("set-coding-system-priority", Fset_coding_system_priority, 7102 DEFUN ("set-coding-system-priority", Fset_coding_system_priority,
7107 Sset_coding_system_priority, 1, MANY, 0, 7103 Sset_coding_system_priority, 1, MANY, 0,
7108 doc: /* Put higher priority to coding systems of the arguments. */) 7104 doc: /* Assign higher priority to coding systems given as arguments.
7105 usage: (set-coding-system-priority CODING-SYSTEM ...) */)
7109 (nargs, args) 7106 (nargs, args)
7110 int nargs; 7107 int nargs;
7111 Lisp_Object *args; 7108 Lisp_Object *args;
7112 { 7109 {
7113 int i, j; 7110 int i, j;
7198 } 7195 }
7199 7196
7200 7197
7201 DEFUN ("define-coding-system-internal", Fdefine_coding_system_internal, 7198 DEFUN ("define-coding-system-internal", Fdefine_coding_system_internal,
7202 Sdefine_coding_system_internal, coding_arg_max, MANY, 0, 7199 Sdefine_coding_system_internal, coding_arg_max, MANY, 0,
7203 doc: /* For internal use only. */) 7200 doc: /* For internal use only.
7201 usage: (define-coding-system-internal ...) */)
7204 (nargs, args) 7202 (nargs, args)
7205 int nargs; 7203 int nargs;
7206 Lisp_Object *args; 7204 Lisp_Object *args;
7207 { 7205 {
7208 Lisp_Object name; 7206 Lisp_Object name;
7854 DEFSYM (Qtranslation_table, "translation-table"); 7852 DEFSYM (Qtranslation_table, "translation-table");
7855 Fput (Qtranslation_table, Qchar_table_extra_slots, make_number (1)); 7853 Fput (Qtranslation_table, Qchar_table_extra_slots, make_number (1));
7856 DEFSYM (Qtranslation_table_id, "translation-table-id"); 7854 DEFSYM (Qtranslation_table_id, "translation-table-id");
7857 DEFSYM (Qtranslation_table_for_decode, "translation-table-for-decode"); 7855 DEFSYM (Qtranslation_table_for_decode, "translation-table-for-decode");
7858 DEFSYM (Qtranslation_table_for_encode, "translation-table-for-encode"); 7856 DEFSYM (Qtranslation_table_for_encode, "translation-table-for-encode");
7859
7860 DEFSYM (Qchar_coding_system, "char-coding-system");
7861
7862 Fput (Qchar_coding_system, Qchar_table_extra_slots, make_number (2));
7863 7857
7864 DEFSYM (Qvalid_codes, "valid-codes"); 7858 DEFSYM (Qvalid_codes, "valid-codes");
7865 7859
7866 DEFSYM (Qemacs_mule, "emacs-mule"); 7860 DEFSYM (Qemacs_mule, "emacs-mule");
7867 7861
8143 coding system used in each operation can't encode the text. 8137 coding system used in each operation can't encode the text.
8144 8138
8145 The default value is `select-safe-coding-system' (which see). */); 8139 The default value is `select-safe-coding-system' (which see). */);
8146 Vselect_safe_coding_system_function = Qnil; 8140 Vselect_safe_coding_system_function = Qnil;
8147 8141
8148 DEFVAR_LISP ("char-coding-system-table", &Vchar_coding_system_table,
8149 doc: /*
8150 Char-table containing safe coding systems of each characters.
8151 Each element doesn't include such generic coding systems that can
8152 encode any characters. They are in the first extra slot. */);
8153 Vchar_coding_system_table = Fmake_char_table (Qchar_coding_system, Qnil);
8154
8155 DEFVAR_BOOL ("inhibit-iso-escape-detection", 8142 DEFVAR_BOOL ("inhibit-iso-escape-detection",
8156 &inhibit_iso_escape_detection, 8143 &inhibit_iso_escape_detection,
8157 doc: /* 8144 doc: /*
8158 If non-nil, Emacs ignores ISO2022's escape sequence on code detection. 8145 If non-nil, Emacs ignores ISO2022's escape sequence on code detection.
8159 8146