diff options
| author | Kenichi Handa | 2002-12-17 11:39:13 +0000 |
|---|---|---|
| committer | Kenichi Handa | 2002-12-17 11:39:13 +0000 |
| commit | 5d5bf4d8e1de79d0ec1335f336c3e4d616a84d67 (patch) | |
| tree | 105c184422042c8109c3e517cabbaca05bd8f350 /src/coding.c | |
| parent | bfcf6dbef2f76603d5f29faf0afae0d3ccc27171 (diff) | |
| download | emacs-5d5bf4d8e1de79d0ec1335f336c3e4d616a84d67.tar.gz emacs-5d5bf4d8e1de79d0ec1335f336c3e4d616a84d67.zip | |
(coding_system_require_warning): New variable.
(syms_of_coding): DEFVAR it.
Diffstat (limited to 'src/coding.c')
| -rw-r--r-- | src/coding.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/coding.c b/src/coding.c index 577a1b44691..3dba84efe63 100644 --- a/src/coding.c +++ b/src/coding.c | |||
| @@ -367,6 +367,8 @@ Lisp_Object Qtarget_idx; | |||
| 367 | 367 | ||
| 368 | Lisp_Object Vselect_safe_coding_system_function; | 368 | Lisp_Object Vselect_safe_coding_system_function; |
| 369 | 369 | ||
| 370 | int coding_system_require_warning; | ||
| 371 | |||
| 370 | /* Mnemonic string for each format of end-of-line. */ | 372 | /* Mnemonic string for each format of end-of-line. */ |
| 371 | Lisp_Object eol_mnemonic_unix, eol_mnemonic_dos, eol_mnemonic_mac; | 373 | Lisp_Object eol_mnemonic_unix, eol_mnemonic_dos, eol_mnemonic_mac; |
| 372 | /* Mnemonic string to indicate format of end-of-line is not yet | 374 | /* Mnemonic string to indicate format of end-of-line is not yet |
| @@ -7531,6 +7533,15 @@ coding system used in each operation can't encode the text. | |||
| 7531 | The default value is `select-safe-coding-system' (which see). */); | 7533 | The default value is `select-safe-coding-system' (which see). */); |
| 7532 | Vselect_safe_coding_system_function = Qnil; | 7534 | Vselect_safe_coding_system_function = Qnil; |
| 7533 | 7535 | ||
| 7536 | DEFVAR_BOOL ("coding-system-require-warning", | ||
| 7537 | &coding_system_require_warning, | ||
| 7538 | doc: /* Internal use only. | ||
| 7539 | If non-nil, on writing a file, select-safe-coding-system-function is | ||
| 7540 | called even if coding-system-for-write is non-nil. The command | ||
| 7541 | universal-coding-system-argument binds this variable to t temporarily. */); | ||
| 7542 | coding_system_require_warning = 0; | ||
| 7543 | |||
| 7544 | |||
| 7534 | DEFVAR_LISP ("char-coding-system-table", &Vchar_coding_system_table, | 7545 | DEFVAR_LISP ("char-coding-system-table", &Vchar_coding_system_table, |
| 7535 | doc: /* Char-table containing safe coding systems of each characters. | 7546 | doc: /* Char-table containing safe coding systems of each characters. |
| 7536 | Each element doesn't include such generic coding systems that can | 7547 | Each element doesn't include such generic coding systems that can |