Subject: bug#4533: 23.1: reverting fails to update line ending mode line

From: Kenichi Handa <[email-masked]>
Date: Thu, 05 Nov 2009 13:17:00 +0900

In article <[email-masked]>, Benjamin Peterson <[email-masked]> writes:

> I had a buffer with a mode line like this:
> - U:(DOS)

> I ran dos2unix on the file, and did M-x revert-buffer.

> The DOS stayed in the mode line until I killed the buffer and
> revisited the buffer.

I found that insert-file-contents forgets to update
buffer-file-coding-system in case of replace.  I've just
installed a fix.

---
Kenichi Handa
[email-masked]