Mercurial > emacs
comparison src/fileio.c @ 70518:b191186433c8
(choose_write_coding_system): Use system_eol_type for
encoding if eol_type is not yet decided.
author | Kenichi Handa <handa@m17n.org> |
---|---|
date | Mon, 08 May 2006 05:20:16 +0000 |
parents | df847a0b85d2 |
children | e963ced8a1ca 1321f6cfb389 |
comparison
equal
deleted
inserted
replaced
70517:7ebead4f6646 | 70518:b191186433c8 |
---|---|
4936 } | 4936 } |
4937 | 4937 |
4938 setup_coding_system (Fcheck_coding_system (val), coding); | 4938 setup_coding_system (Fcheck_coding_system (val), coding); |
4939 | 4939 |
4940 done_setup_coding: | 4940 done_setup_coding: |
4941 if (coding->eol_type == CODING_EOL_UNDECIDED) | |
4942 coding->eol_type = system_eol_type; | |
4941 if (!STRINGP (start) && !NILP (current_buffer->selective_display)) | 4943 if (!STRINGP (start) && !NILP (current_buffer->selective_display)) |
4942 coding->mode |= CODING_MODE_SELECTIVE_DISPLAY; | 4944 coding->mode |= CODING_MODE_SELECTIVE_DISPLAY; |
4943 } | 4945 } |
4944 | 4946 |
4945 DEFUN ("write-region", Fwrite_region, Swrite_region, 3, 7, | 4947 DEFUN ("write-region", Fwrite_region, Swrite_region, 3, 7, |