diff options
| author | Kenichi Handa | 2001-01-24 23:30:34 +0000 |
|---|---|---|
| committer | Kenichi Handa | 2001-01-24 23:30:34 +0000 |
| commit | bd64290dac60104f8485357415ff5147b62458b2 (patch) | |
| tree | b33cee4e3661a93bdcd7648b11f38c603f22bbd4 /src/coding.c | |
| parent | 6041c9ce6b6b3a763dcf9f0f0df5742a8c1e3713 (diff) | |
| download | emacs-bd64290dac60104f8485357415ff5147b62458b2.tar.gz emacs-bd64290dac60104f8485357415ff5147b62458b2.zip | |
(ccl_coding_driver): Setup ccl->suppress_error.
(Fset_terminal_coding_system_internal): Set the member
suppress_error to 1.
(Fset_safe_terminal_coding_system_internal): Likewise.
Diffstat (limited to 'src/coding.c')
| -rw-r--r-- | src/coding.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/coding.c b/src/coding.c index 27f11bed6d1..08b8935e056 100644 --- a/src/coding.c +++ b/src/coding.c | |||
| @@ -4427,6 +4427,7 @@ ccl_coding_driver (coding, source, destination, src_bytes, dst_bytes, encodep) | |||
| 4427 | = encodep ? &coding->spec.ccl.encoder : &coding->spec.ccl.decoder; | 4427 | = encodep ? &coding->spec.ccl.encoder : &coding->spec.ccl.decoder; |
| 4428 | unsigned char *dst = destination; | 4428 | unsigned char *dst = destination; |
| 4429 | 4429 | ||
| 4430 | ccl->suppress_error = coding->suppress_error; | ||
| 4430 | ccl->last_block = coding->mode & CODING_MODE_LAST_BLOCK; | 4431 | ccl->last_block = coding->mode & CODING_MODE_LAST_BLOCK; |
| 4431 | if (encodep) | 4432 | if (encodep) |
| 4432 | { | 4433 | { |
| @@ -6651,6 +6652,8 @@ DEFUN ("set-terminal-coding-system-internal", | |||
| 6651 | terminal_coding.flags |= CODING_FLAG_ISO_SAFE; | 6652 | terminal_coding.flags |= CODING_FLAG_ISO_SAFE; |
| 6652 | /* Characer composition should be disabled. */ | 6653 | /* Characer composition should be disabled. */ |
| 6653 | terminal_coding.composing = COMPOSITION_DISABLED; | 6654 | terminal_coding.composing = COMPOSITION_DISABLED; |
| 6655 | /* Error notification should be suppressed. */ | ||
| 6656 | terminal_coding.suppress_error = 1; | ||
| 6654 | terminal_coding.src_multibyte = 1; | 6657 | terminal_coding.src_multibyte = 1; |
| 6655 | terminal_coding.dst_multibyte = 0; | 6658 | terminal_coding.dst_multibyte = 0; |
| 6656 | return Qnil; | 6659 | return Qnil; |
| @@ -6667,6 +6670,8 @@ DEFUN ("set-safe-terminal-coding-system-internal", | |||
| 6667 | &safe_terminal_coding); | 6670 | &safe_terminal_coding); |
| 6668 | /* Characer composition should be disabled. */ | 6671 | /* Characer composition should be disabled. */ |
| 6669 | safe_terminal_coding.composing = COMPOSITION_DISABLED; | 6672 | safe_terminal_coding.composing = COMPOSITION_DISABLED; |
| 6673 | /* Error notification should be suppressed. */ | ||
| 6674 | terminal_coding.suppress_error = 1; | ||
| 6670 | safe_terminal_coding.src_multibyte = 1; | 6675 | safe_terminal_coding.src_multibyte = 1; |
| 6671 | safe_terminal_coding.dst_multibyte = 0; | 6676 | safe_terminal_coding.dst_multibyte = 0; |
| 6672 | return Qnil; | 6677 | return Qnil; |