diff options
author | Kenichi Handa <handa@m17n.org> | 2009-02-19 02:43:38 +0000 |
---|---|---|
committer | Kenichi Handa <handa@m17n.org> | 2009-02-19 02:43:38 +0000 |
commit | 73cce38dbc5538677306b542aa8e037dfc5e16ee (patch) | |
tree | bac0d19fb61b379877b15470c2eba6f4c21b0ed5 /src/coding.c | |
parent | 1e3d93868651e1b0233df524027589a8fb34c528 (diff) | |
download | emacs-73cce38dbc5538677306b542aa8e037dfc5e16ee.tar.gz |
(detect_coding): Preserve coding->mode.
Diffstat (limited to 'src/coding.c')
-rw-r--r-- | src/coding.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/coding.c b/src/coding.c index fff4d01d890..ec57467f023 100644 --- a/src/coding.c +++ b/src/coding.c @@ -5955,6 +5955,7 @@ detect_coding (coding) struct coding_system *coding; { const unsigned char *src, *src_end; + int saved_mode = coding->mode; coding->consumed = coding->consumed_char = 0; coding->produced = coding->produced_char = 0; @@ -6125,6 +6126,7 @@ detect_coding (coding) setup_coding_system (XCDR (coding_systems), coding); } } + coding->mode = saved_mode; } |