[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Recovered file has extra ^M

From: Kenichi Handa
Subject: Re: Recovered file has extra ^M
Date: Wed, 16 Aug 2006 09:21:40 +0900
User-agent: SEMI/1.14.3 (Ushinoya) FLIM/1.14.2 (Yagi-Nishiguchi) APEL/10.2 Emacs/22.0.50 (i686-pc-linux-gnu) MULE/5.0 (SAKAKI)

In article <address@hidden>, MIYOSHI Masanori <address@hidden> writes:

> In Emacs on Windows, A recovered file has an extra ^M at the end
> of each line.

> The following inconsistency seems to cause the trouble.

> When Emacs writes out an auto-save file, Emacs doesn't set its
> eol type explicitly.  So CR/LF is selected for it on Windows.

> On the contrary, when Emacs reads the auto-save file, Emacs
> assumes that its eol type is LF.

> Is this assumption necessary?

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.

Kenichi Handa

reply via email to

[Prev in Thread] Current Thread [Next in Thread]