diff options
Diffstat (limited to 'src/coding.c')
| -rw-r--r-- | src/coding.c | 119 |
1 files changed, 28 insertions, 91 deletions
diff --git a/src/coding.c b/src/coding.c index 06f3fe58df1..4d47b28cf33 100644 --- a/src/coding.c +++ b/src/coding.c | |||
| @@ -327,16 +327,6 @@ Lisp_Object Qinterrupted, Qinsufficient_memory; | |||
| 327 | symbol as a coding system. */ | 327 | symbol as a coding system. */ |
| 328 | static Lisp_Object Qcoding_system_define_form; | 328 | static Lisp_Object Qcoding_system_define_form; |
| 329 | 329 | ||
| 330 | int coding_system_require_warning; | ||
| 331 | |||
| 332 | Lisp_Object Vselect_safe_coding_system_function; | ||
| 333 | |||
| 334 | /* Mnemonic string for each format of end-of-line. */ | ||
| 335 | Lisp_Object eol_mnemonic_unix, eol_mnemonic_dos, eol_mnemonic_mac; | ||
| 336 | /* Mnemonic string to indicate format of end-of-line is not yet | ||
| 337 | decided. */ | ||
| 338 | Lisp_Object eol_mnemonic_undecided; | ||
| 339 | |||
| 340 | /* Format of end-of-line decided by system. This is Qunix on | 330 | /* Format of end-of-line decided by system. This is Qunix on |
| 341 | Unix and Mac, Qdos on DOS/Windows. | 331 | Unix and Mac, Qdos on DOS/Windows. |
| 342 | This has an effect only for external encoding (i.e. for output to | 332 | This has an effect only for external encoding (i.e. for output to |
| @@ -345,8 +335,6 @@ static Lisp_Object system_eol_type; | |||
| 345 | 335 | ||
| 346 | #ifdef emacs | 336 | #ifdef emacs |
| 347 | 337 | ||
| 348 | Lisp_Object Vcoding_system_list, Vcoding_system_alist; | ||
| 349 | |||
| 350 | Lisp_Object Qcoding_system_p, Qcoding_system_error; | 338 | Lisp_Object Qcoding_system_p, Qcoding_system_error; |
| 351 | 339 | ||
| 352 | /* Coding system emacs-mule and raw-text are for converting only | 340 | /* Coding system emacs-mule and raw-text are for converting only |
| @@ -356,64 +344,17 @@ Lisp_Object Qutf_8_emacs; | |||
| 356 | 344 | ||
| 357 | /* Coding-systems are handed between Emacs Lisp programs and C internal | 345 | /* Coding-systems are handed between Emacs Lisp programs and C internal |
| 358 | routines by the following three variables. */ | 346 | routines by the following three variables. */ |
| 359 | /* Coding-system for reading files and receiving data from process. */ | ||
| 360 | Lisp_Object Vcoding_system_for_read; | ||
| 361 | /* Coding-system for writing files and sending data to process. */ | ||
| 362 | Lisp_Object Vcoding_system_for_write; | ||
| 363 | /* Coding-system actually used in the latest I/O. */ | ||
| 364 | Lisp_Object Vlast_coding_system_used; | ||
| 365 | /* Set to non-nil when an error is detected while code conversion. */ | ||
| 366 | Lisp_Object Vlast_code_conversion_error; | ||
| 367 | /* A vector of length 256 which contains information about special | ||
| 368 | Latin codes (especially for dealing with Microsoft codes). */ | ||
| 369 | Lisp_Object Vlatin_extra_code_table; | ||
| 370 | |||
| 371 | /* Flag to inhibit code conversion of end-of-line format. */ | ||
| 372 | int inhibit_eol_conversion; | ||
| 373 | |||
| 374 | /* Flag to inhibit ISO2022 escape sequence detection. */ | ||
| 375 | int inhibit_iso_escape_detection; | ||
| 376 | |||
| 377 | /* Flag to inhibit detection of binary files through null bytes. */ | ||
| 378 | int inhibit_null_byte_detection; | ||
| 379 | |||
| 380 | /* Flag to make buffer-file-coding-system inherit from process-coding. */ | ||
| 381 | int inherit_process_coding_system; | ||
| 382 | |||
| 383 | /* Coding system to be used to encode text for terminal display when | 347 | /* Coding system to be used to encode text for terminal display when |
| 384 | terminal coding system is nil. */ | 348 | terminal coding system is nil. */ |
| 385 | struct coding_system safe_terminal_coding; | 349 | struct coding_system safe_terminal_coding; |
| 386 | 350 | ||
| 387 | Lisp_Object Vfile_coding_system_alist; | ||
| 388 | Lisp_Object Vprocess_coding_system_alist; | ||
| 389 | Lisp_Object Vnetwork_coding_system_alist; | ||
| 390 | |||
| 391 | Lisp_Object Vlocale_coding_system; | ||
| 392 | |||
| 393 | #endif /* emacs */ | 351 | #endif /* emacs */ |
| 394 | 352 | ||
| 395 | /* Flag to tell if we look up translation table on character code | ||
| 396 | conversion. */ | ||
| 397 | Lisp_Object Venable_character_translation; | ||
| 398 | /* Standard translation table to look up on decoding (reading). */ | ||
| 399 | Lisp_Object Vstandard_translation_table_for_decode; | ||
| 400 | /* Standard translation table to look up on encoding (writing). */ | ||
| 401 | Lisp_Object Vstandard_translation_table_for_encode; | ||
| 402 | |||
| 403 | Lisp_Object Qtranslation_table; | 353 | Lisp_Object Qtranslation_table; |
| 404 | Lisp_Object Qtranslation_table_id; | 354 | Lisp_Object Qtranslation_table_id; |
| 405 | Lisp_Object Qtranslation_table_for_decode; | 355 | Lisp_Object Qtranslation_table_for_decode; |
| 406 | Lisp_Object Qtranslation_table_for_encode; | 356 | Lisp_Object Qtranslation_table_for_encode; |
| 407 | 357 | ||
| 408 | /* Alist of charsets vs revision number. */ | ||
| 409 | static Lisp_Object Vcharset_revision_table; | ||
| 410 | |||
| 411 | /* Default coding systems used for process I/O. */ | ||
| 412 | Lisp_Object Vdefault_process_coding_system; | ||
| 413 | |||
| 414 | /* Char table for translating Quail and self-inserting input. */ | ||
| 415 | Lisp_Object Vtranslation_table_for_input; | ||
| 416 | |||
| 417 | /* Two special coding systems. */ | 358 | /* Two special coding systems. */ |
| 418 | Lisp_Object Vsjis_coding_system; | 359 | Lisp_Object Vsjis_coding_system; |
| 419 | Lisp_Object Vbig5_coding_system; | 360 | Lisp_Object Vbig5_coding_system; |
| @@ -681,10 +622,6 @@ enum coding_category | |||
| 681 | | CATEGORY_MASK_UTF_8_NOSIG \ | 622 | | CATEGORY_MASK_UTF_8_NOSIG \ |
| 682 | | CATEGORY_MASK_UTF_8_SIG) | 623 | | CATEGORY_MASK_UTF_8_SIG) |
| 683 | 624 | ||
| 684 | /* List of symbols `coding-category-xxx' ordered by priority. This | ||
| 685 | variable is exposed to Emacs Lisp. */ | ||
| 686 | static Lisp_Object Vcoding_category_list; | ||
| 687 | |||
| 688 | /* Table of coding categories (Lisp symbols). This variable is for | 625 | /* Table of coding categories (Lisp symbols). This variable is for |
| 689 | internal use only. */ | 626 | internal use only. */ |
| 690 | static Lisp_Object Vcoding_category_table; | 627 | static Lisp_Object Vcoding_category_table; |
| @@ -10525,7 +10462,7 @@ syms_of_coding (void) | |||
| 10525 | defsubr (&Scoding_system_eol_type); | 10462 | defsubr (&Scoding_system_eol_type); |
| 10526 | defsubr (&Scoding_system_priority_list); | 10463 | defsubr (&Scoding_system_priority_list); |
| 10527 | 10464 | ||
| 10528 | DEFVAR_LISP ("coding-system-list", &Vcoding_system_list, | 10465 | DEFVAR_LISP ("coding-system-list", Vcoding_system_list, |
| 10529 | doc: /* List of coding systems. | 10466 | doc: /* List of coding systems. |
| 10530 | 10467 | ||
| 10531 | Do not alter the value of this variable manually. This variable should be | 10468 | Do not alter the value of this variable manually. This variable should be |
| @@ -10533,7 +10470,7 @@ updated by the functions `define-coding-system' and | |||
| 10533 | `define-coding-system-alias'. */); | 10470 | `define-coding-system-alias'. */); |
| 10534 | Vcoding_system_list = Qnil; | 10471 | Vcoding_system_list = Qnil; |
| 10535 | 10472 | ||
| 10536 | DEFVAR_LISP ("coding-system-alist", &Vcoding_system_alist, | 10473 | DEFVAR_LISP ("coding-system-alist", Vcoding_system_alist, |
| 10537 | doc: /* Alist of coding system names. | 10474 | doc: /* Alist of coding system names. |
| 10538 | Each element is one element list of coding system name. | 10475 | Each element is one element list of coding system name. |
| 10539 | This variable is given to `completing-read' as COLLECTION argument. | 10476 | This variable is given to `completing-read' as COLLECTION argument. |
| @@ -10543,7 +10480,7 @@ updated by the functions `make-coding-system' and | |||
| 10543 | `define-coding-system-alias'. */); | 10480 | `define-coding-system-alias'. */); |
| 10544 | Vcoding_system_alist = Qnil; | 10481 | Vcoding_system_alist = Qnil; |
| 10545 | 10482 | ||
| 10546 | DEFVAR_LISP ("coding-category-list", &Vcoding_category_list, | 10483 | DEFVAR_LISP ("coding-category-list", Vcoding_category_list, |
| 10547 | doc: /* List of coding-categories (symbols) ordered by priority. | 10484 | doc: /* List of coding-categories (symbols) ordered by priority. |
| 10548 | 10485 | ||
| 10549 | On detecting a coding system, Emacs tries code detection algorithms | 10486 | On detecting a coding system, Emacs tries code detection algorithms |
| @@ -10562,7 +10499,7 @@ Don't modify this variable directly, but use `set-coding-system-priority'. */); | |||
| 10562 | Vcoding_category_list); | 10499 | Vcoding_category_list); |
| 10563 | } | 10500 | } |
| 10564 | 10501 | ||
| 10565 | DEFVAR_LISP ("coding-system-for-read", &Vcoding_system_for_read, | 10502 | DEFVAR_LISP ("coding-system-for-read", Vcoding_system_for_read, |
| 10566 | doc: /* Specify the coding system for read operations. | 10503 | doc: /* Specify the coding system for read operations. |
| 10567 | It is useful to bind this variable with `let', but do not set it globally. | 10504 | It is useful to bind this variable with `let', but do not set it globally. |
| 10568 | If the value is a coding system, it is used for decoding on read operation. | 10505 | If the value is a coding system, it is used for decoding on read operation. |
| @@ -10571,7 +10508,7 @@ There are three such tables: `file-coding-system-alist', | |||
| 10571 | `process-coding-system-alist', and `network-coding-system-alist'. */); | 10508 | `process-coding-system-alist', and `network-coding-system-alist'. */); |
| 10572 | Vcoding_system_for_read = Qnil; | 10509 | Vcoding_system_for_read = Qnil; |
| 10573 | 10510 | ||
| 10574 | DEFVAR_LISP ("coding-system-for-write", &Vcoding_system_for_write, | 10511 | DEFVAR_LISP ("coding-system-for-write", Vcoding_system_for_write, |
| 10575 | doc: /* Specify the coding system for write operations. | 10512 | doc: /* Specify the coding system for write operations. |
| 10576 | Programs bind this variable with `let', but you should not set it globally. | 10513 | Programs bind this variable with `let', but you should not set it globally. |
| 10577 | If the value is a coding system, it is used for encoding of output, | 10514 | If the value is a coding system, it is used for encoding of output, |
| @@ -10585,12 +10522,12 @@ For output to files, if the above procedure does not specify a coding system, | |||
| 10585 | the value of `buffer-file-coding-system' is used. */); | 10522 | the value of `buffer-file-coding-system' is used. */); |
| 10586 | Vcoding_system_for_write = Qnil; | 10523 | Vcoding_system_for_write = Qnil; |
| 10587 | 10524 | ||
| 10588 | DEFVAR_LISP ("last-coding-system-used", &Vlast_coding_system_used, | 10525 | DEFVAR_LISP ("last-coding-system-used", Vlast_coding_system_used, |
| 10589 | doc: /* | 10526 | doc: /* |
| 10590 | Coding system used in the latest file or process I/O. */); | 10527 | Coding system used in the latest file or process I/O. */); |
| 10591 | Vlast_coding_system_used = Qnil; | 10528 | Vlast_coding_system_used = Qnil; |
| 10592 | 10529 | ||
| 10593 | DEFVAR_LISP ("last-code-conversion-error", &Vlast_code_conversion_error, | 10530 | DEFVAR_LISP ("last-code-conversion-error", Vlast_code_conversion_error, |
| 10594 | doc: /* | 10531 | doc: /* |
| 10595 | Error status of the last code conversion. | 10532 | Error status of the last code conversion. |
| 10596 | 10533 | ||
| @@ -10607,21 +10544,21 @@ explicitly set this variable to nil before performing code | |||
| 10607 | conversion. */); | 10544 | conversion. */); |
| 10608 | Vlast_code_conversion_error = Qnil; | 10545 | Vlast_code_conversion_error = Qnil; |
| 10609 | 10546 | ||
| 10610 | DEFVAR_BOOL ("inhibit-eol-conversion", &inhibit_eol_conversion, | 10547 | DEFVAR_BOOL ("inhibit-eol-conversion", inhibit_eol_conversion, |
| 10611 | doc: /* | 10548 | doc: /* |
| 10612 | *Non-nil means always inhibit code conversion of end-of-line format. | 10549 | *Non-nil means always inhibit code conversion of end-of-line format. |
| 10613 | See info node `Coding Systems' and info node `Text and Binary' concerning | 10550 | See info node `Coding Systems' and info node `Text and Binary' concerning |
| 10614 | such conversion. */); | 10551 | such conversion. */); |
| 10615 | inhibit_eol_conversion = 0; | 10552 | inhibit_eol_conversion = 0; |
| 10616 | 10553 | ||
| 10617 | DEFVAR_BOOL ("inherit-process-coding-system", &inherit_process_coding_system, | 10554 | DEFVAR_BOOL ("inherit-process-coding-system", inherit_process_coding_system, |
| 10618 | doc: /* | 10555 | doc: /* |
| 10619 | Non-nil means process buffer inherits coding system of process output. | 10556 | Non-nil means process buffer inherits coding system of process output. |
| 10620 | Bind it to t if the process output is to be treated as if it were a file | 10557 | Bind it to t if the process output is to be treated as if it were a file |
| 10621 | read from some filesystem. */); | 10558 | read from some filesystem. */); |
| 10622 | inherit_process_coding_system = 0; | 10559 | inherit_process_coding_system = 0; |
| 10623 | 10560 | ||
| 10624 | DEFVAR_LISP ("file-coding-system-alist", &Vfile_coding_system_alist, | 10561 | DEFVAR_LISP ("file-coding-system-alist", Vfile_coding_system_alist, |
| 10625 | doc: /* | 10562 | doc: /* |
| 10626 | Alist to decide a coding system to use for a file I/O operation. | 10563 | Alist to decide a coding system to use for a file I/O operation. |
| 10627 | The format is ((PATTERN . VAL) ...), | 10564 | The format is ((PATTERN . VAL) ...), |
| @@ -10642,7 +10579,7 @@ See also the function `find-operation-coding-system' | |||
| 10642 | and the variable `auto-coding-alist'. */); | 10579 | and the variable `auto-coding-alist'. */); |
| 10643 | Vfile_coding_system_alist = Qnil; | 10580 | Vfile_coding_system_alist = Qnil; |
| 10644 | 10581 | ||
| 10645 | DEFVAR_LISP ("process-coding-system-alist", &Vprocess_coding_system_alist, | 10582 | DEFVAR_LISP ("process-coding-system-alist", Vprocess_coding_system_alist, |
| 10646 | doc: /* | 10583 | doc: /* |
| 10647 | Alist to decide a coding system to use for a process I/O operation. | 10584 | Alist to decide a coding system to use for a process I/O operation. |
| 10648 | The format is ((PATTERN . VAL) ...), | 10585 | The format is ((PATTERN . VAL) ...), |
| @@ -10658,7 +10595,7 @@ or a cons of coding systems which are used as above. | |||
| 10658 | See also the function `find-operation-coding-system'. */); | 10595 | See also the function `find-operation-coding-system'. */); |
| 10659 | Vprocess_coding_system_alist = Qnil; | 10596 | Vprocess_coding_system_alist = Qnil; |
| 10660 | 10597 | ||
| 10661 | DEFVAR_LISP ("network-coding-system-alist", &Vnetwork_coding_system_alist, | 10598 | DEFVAR_LISP ("network-coding-system-alist", Vnetwork_coding_system_alist, |
| 10662 | doc: /* | 10599 | doc: /* |
| 10663 | Alist to decide a coding system to use for a network I/O operation. | 10600 | Alist to decide a coding system to use for a network I/O operation. |
| 10664 | The format is ((PATTERN . VAL) ...), | 10601 | The format is ((PATTERN . VAL) ...), |
| @@ -10675,48 +10612,48 @@ or a cons of coding systems which are used as above. | |||
| 10675 | See also the function `find-operation-coding-system'. */); | 10612 | See also the function `find-operation-coding-system'. */); |
| 10676 | Vnetwork_coding_system_alist = Qnil; | 10613 | Vnetwork_coding_system_alist = Qnil; |
| 10677 | 10614 | ||
| 10678 | DEFVAR_LISP ("locale-coding-system", &Vlocale_coding_system, | 10615 | DEFVAR_LISP ("locale-coding-system", Vlocale_coding_system, |
| 10679 | doc: /* Coding system to use with system messages. | 10616 | doc: /* Coding system to use with system messages. |
| 10680 | Also used for decoding keyboard input on X Window system. */); | 10617 | Also used for decoding keyboard input on X Window system. */); |
| 10681 | Vlocale_coding_system = Qnil; | 10618 | Vlocale_coding_system = Qnil; |
| 10682 | 10619 | ||
| 10683 | /* The eol mnemonics are reset in startup.el system-dependently. */ | 10620 | /* The eol mnemonics are reset in startup.el system-dependently. */ |
| 10684 | DEFVAR_LISP ("eol-mnemonic-unix", &eol_mnemonic_unix, | 10621 | DEFVAR_LISP ("eol-mnemonic-unix", eol_mnemonic_unix, |
| 10685 | doc: /* | 10622 | doc: /* |
| 10686 | *String displayed in mode line for UNIX-like (LF) end-of-line format. */); | 10623 | *String displayed in mode line for UNIX-like (LF) end-of-line format. */); |
| 10687 | eol_mnemonic_unix = make_pure_c_string (":"); | 10624 | eol_mnemonic_unix = make_pure_c_string (":"); |
| 10688 | 10625 | ||
| 10689 | DEFVAR_LISP ("eol-mnemonic-dos", &eol_mnemonic_dos, | 10626 | DEFVAR_LISP ("eol-mnemonic-dos", eol_mnemonic_dos, |
| 10690 | doc: /* | 10627 | doc: /* |
| 10691 | *String displayed in mode line for DOS-like (CRLF) end-of-line format. */); | 10628 | *String displayed in mode line for DOS-like (CRLF) end-of-line format. */); |
| 10692 | eol_mnemonic_dos = make_pure_c_string ("\\"); | 10629 | eol_mnemonic_dos = make_pure_c_string ("\\"); |
| 10693 | 10630 | ||
| 10694 | DEFVAR_LISP ("eol-mnemonic-mac", &eol_mnemonic_mac, | 10631 | DEFVAR_LISP ("eol-mnemonic-mac", eol_mnemonic_mac, |
| 10695 | doc: /* | 10632 | doc: /* |
| 10696 | *String displayed in mode line for MAC-like (CR) end-of-line format. */); | 10633 | *String displayed in mode line for MAC-like (CR) end-of-line format. */); |
| 10697 | eol_mnemonic_mac = make_pure_c_string ("/"); | 10634 | eol_mnemonic_mac = make_pure_c_string ("/"); |
| 10698 | 10635 | ||
| 10699 | DEFVAR_LISP ("eol-mnemonic-undecided", &eol_mnemonic_undecided, | 10636 | DEFVAR_LISP ("eol-mnemonic-undecided", eol_mnemonic_undecided, |
| 10700 | doc: /* | 10637 | doc: /* |
| 10701 | *String displayed in mode line when end-of-line format is not yet determined. */); | 10638 | *String displayed in mode line when end-of-line format is not yet determined. */); |
| 10702 | eol_mnemonic_undecided = make_pure_c_string (":"); | 10639 | eol_mnemonic_undecided = make_pure_c_string (":"); |
| 10703 | 10640 | ||
| 10704 | DEFVAR_LISP ("enable-character-translation", &Venable_character_translation, | 10641 | DEFVAR_LISP ("enable-character-translation", Venable_character_translation, |
| 10705 | doc: /* | 10642 | doc: /* |
| 10706 | *Non-nil enables character translation while encoding and decoding. */); | 10643 | *Non-nil enables character translation while encoding and decoding. */); |
| 10707 | Venable_character_translation = Qt; | 10644 | Venable_character_translation = Qt; |
| 10708 | 10645 | ||
| 10709 | DEFVAR_LISP ("standard-translation-table-for-decode", | 10646 | DEFVAR_LISP ("standard-translation-table-for-decode", |
| 10710 | &Vstandard_translation_table_for_decode, | 10647 | Vstandard_translation_table_for_decode, |
| 10711 | doc: /* Table for translating characters while decoding. */); | 10648 | doc: /* Table for translating characters while decoding. */); |
| 10712 | Vstandard_translation_table_for_decode = Qnil; | 10649 | Vstandard_translation_table_for_decode = Qnil; |
| 10713 | 10650 | ||
| 10714 | DEFVAR_LISP ("standard-translation-table-for-encode", | 10651 | DEFVAR_LISP ("standard-translation-table-for-encode", |
| 10715 | &Vstandard_translation_table_for_encode, | 10652 | Vstandard_translation_table_for_encode, |
| 10716 | doc: /* Table for translating characters while encoding. */); | 10653 | doc: /* Table for translating characters while encoding. */); |
| 10717 | Vstandard_translation_table_for_encode = Qnil; | 10654 | Vstandard_translation_table_for_encode = Qnil; |
| 10718 | 10655 | ||
| 10719 | DEFVAR_LISP ("charset-revision-table", &Vcharset_revision_table, | 10656 | DEFVAR_LISP ("charset-revision-table", Vcharset_revision_table, |
| 10720 | doc: /* Alist of charsets vs revision numbers. | 10657 | doc: /* Alist of charsets vs revision numbers. |
| 10721 | While encoding, if a charset (car part of an element) is found, | 10658 | While encoding, if a charset (car part of an element) is found, |
| 10722 | designate it with the escape sequence identifying revision (cdr part | 10659 | designate it with the escape sequence identifying revision (cdr part |
| @@ -10724,13 +10661,13 @@ of the element). */); | |||
| 10724 | Vcharset_revision_table = Qnil; | 10661 | Vcharset_revision_table = Qnil; |
| 10725 | 10662 | ||
| 10726 | DEFVAR_LISP ("default-process-coding-system", | 10663 | DEFVAR_LISP ("default-process-coding-system", |
| 10727 | &Vdefault_process_coding_system, | 10664 | Vdefault_process_coding_system, |
| 10728 | doc: /* Cons of coding systems used for process I/O by default. | 10665 | doc: /* Cons of coding systems used for process I/O by default. |
| 10729 | The car part is used for decoding a process output, | 10666 | The car part is used for decoding a process output, |
| 10730 | the cdr part is used for encoding a text to be sent to a process. */); | 10667 | the cdr part is used for encoding a text to be sent to a process. */); |
| 10731 | Vdefault_process_coding_system = Qnil; | 10668 | Vdefault_process_coding_system = Qnil; |
| 10732 | 10669 | ||
| 10733 | DEFVAR_LISP ("latin-extra-code-table", &Vlatin_extra_code_table, | 10670 | DEFVAR_LISP ("latin-extra-code-table", Vlatin_extra_code_table, |
| 10734 | doc: /* | 10671 | doc: /* |
| 10735 | Table of extra Latin codes in the range 128..159 (inclusive). | 10672 | Table of extra Latin codes in the range 128..159 (inclusive). |
| 10736 | This is a vector of length 256. | 10673 | This is a vector of length 256. |
| @@ -10743,7 +10680,7 @@ Only 128th through 159th elements have a meaning. */); | |||
| 10743 | Vlatin_extra_code_table = Fmake_vector (make_number (256), Qnil); | 10680 | Vlatin_extra_code_table = Fmake_vector (make_number (256), Qnil); |
| 10744 | 10681 | ||
| 10745 | DEFVAR_LISP ("select-safe-coding-system-function", | 10682 | DEFVAR_LISP ("select-safe-coding-system-function", |
| 10746 | &Vselect_safe_coding_system_function, | 10683 | Vselect_safe_coding_system_function, |
| 10747 | doc: /* | 10684 | doc: /* |
| 10748 | Function to call to select safe coding system for encoding a text. | 10685 | Function to call to select safe coding system for encoding a text. |
| 10749 | 10686 | ||
| @@ -10757,7 +10694,7 @@ The default value is `select-safe-coding-system' (which see). */); | |||
| 10757 | Vselect_safe_coding_system_function = Qnil; | 10694 | Vselect_safe_coding_system_function = Qnil; |
| 10758 | 10695 | ||
| 10759 | DEFVAR_BOOL ("coding-system-require-warning", | 10696 | DEFVAR_BOOL ("coding-system-require-warning", |
| 10760 | &coding_system_require_warning, | 10697 | coding_system_require_warning, |
| 10761 | doc: /* Internal use only. | 10698 | doc: /* Internal use only. |
| 10762 | If non-nil, on writing a file, `select-safe-coding-system-function' is | 10699 | If non-nil, on writing a file, `select-safe-coding-system-function' is |
| 10763 | called even if `coding-system-for-write' is non-nil. The command | 10700 | called even if `coding-system-for-write' is non-nil. The command |
| @@ -10766,7 +10703,7 @@ called even if `coding-system-for-write' is non-nil. The command | |||
| 10766 | 10703 | ||
| 10767 | 10704 | ||
| 10768 | DEFVAR_BOOL ("inhibit-iso-escape-detection", | 10705 | DEFVAR_BOOL ("inhibit-iso-escape-detection", |
| 10769 | &inhibit_iso_escape_detection, | 10706 | inhibit_iso_escape_detection, |
| 10770 | doc: /* | 10707 | doc: /* |
| 10771 | If non-nil, Emacs ignores ISO-2022 escape sequences during code detection. | 10708 | If non-nil, Emacs ignores ISO-2022 escape sequences during code detection. |
| 10772 | 10709 | ||
| @@ -10794,7 +10731,7 @@ escape sequence (e.g `latin-1') on reading by \\[universal-coding-system-argumen | |||
| 10794 | inhibit_iso_escape_detection = 0; | 10731 | inhibit_iso_escape_detection = 0; |
| 10795 | 10732 | ||
| 10796 | DEFVAR_BOOL ("inhibit-null-byte-detection", | 10733 | DEFVAR_BOOL ("inhibit-null-byte-detection", |
| 10797 | &inhibit_null_byte_detection, | 10734 | inhibit_null_byte_detection, |
| 10798 | doc: /* If non-nil, Emacs ignores null bytes on code detection. | 10735 | doc: /* If non-nil, Emacs ignores null bytes on code detection. |
| 10799 | By default, Emacs treats it as binary data, and does not attempt to | 10736 | By default, Emacs treats it as binary data, and does not attempt to |
| 10800 | decode it. The effect is as if you specified `no-conversion' for | 10737 | decode it. The effect is as if you specified `no-conversion' for |
| @@ -10806,7 +10743,7 @@ from GNU Find and GNU Grep. Emacs will then ignore the null bytes and | |||
| 10806 | decode text as usual. */); | 10743 | decode text as usual. */); |
| 10807 | inhibit_null_byte_detection = 0; | 10744 | inhibit_null_byte_detection = 0; |
| 10808 | 10745 | ||
| 10809 | DEFVAR_LISP ("translation-table-for-input", &Vtranslation_table_for_input, | 10746 | DEFVAR_LISP ("translation-table-for-input", Vtranslation_table_for_input, |
| 10810 | doc: /* Char table for translating self-inserting characters. | 10747 | doc: /* Char table for translating self-inserting characters. |
| 10811 | This is applied to the result of input methods, not their input. | 10748 | This is applied to the result of input methods, not their input. |
| 10812 | See also `keyboard-translate-table'. | 10749 | See also `keyboard-translate-table'. |