Mercurial > emacs
changeset 102105:a5023e8bbb1e
(detect_coding): Preserve coding->mode.
author | Kenichi Handa <handa@m17n.org> |
---|---|
date | Thu, 19 Feb 2009 02:42:46 +0000 |
parents | be12df124dbd |
children | 8fa19488f470 |
files | src/coding.c |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/coding.c Wed Feb 18 18:36:11 2009 +0000 +++ b/src/coding.c Thu Feb 19 02:42:46 2009 +0000 @@ -5955,6 +5955,7 @@ 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 @@ setup_coding_system (XCDR (coding_systems), coding); } } + coding->mode = saved_mode; }