In article <[EMAIL PROTECTED]>, Eli Zaretskii <[EMAIL PROTECTED]> writes:
> > I think we should change auto-saving to force LF because
> > auto-saving must be fast. So, I changed
> > choose_write_coding_system, not Finsert_file_contents.
> Suppose I was editing a file whose EOL conversion is -dos, and killed
> Emacs without saving my edits--what will be the EOL conversion of the
> buffer visiting that file after I recover-file in the new session?
Same as that of the original file. What recover-file does
is roughly this (provided that your file is "temp").
(let (coding-system)
(switch-to-buffer (find-file-noselect "temp"))
(setq coding-system buffer-file-coding-system)
(erase-buffer)
(let ((coding-system-for-read 'auto-save-coding))
(insert-file-contents "#temp#"))
(set-buffer-file-coding-system coding-system))
So, if the correct encoding can be detected from "temp",
Emacs wins.
---
Kenichi Handa
[EMAIL PROTECTED]
_______________________________________________
emacs-pretest-bug mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/emacs-pretest-bug