1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-19 12:20:17 -08:00

(detect_coding): Preserve coding->mode.

This commit is contained in:
Kenichi Handa 2009-02-19 02:43:38 +00:00
parent 1e3d938686
commit 73cce38dbc
2 changed files with 6 additions and 0 deletions

View file

@ -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;
}