[Top][All Lists]

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

Re: address@hidden: FW: [21.1.90]: should coding be recalculated on reve

From: Eli Zaretskii
Subject: Re: address@hidden: FW: [21.1.90]: should coding be recalculated on revert-buffer?]
Date: Mon, 25 Feb 2002 14:07:53 +0200 (IST)

On Mon, 25 Feb 2002, Kenichi Handa wrote:

> Eli Zaretskii <address@hidden> writes:
> > On Mon, 25 Feb 2002, Andreas Schwab wrote:
> >>  I don't think that revert-buffer should autodetect at all.
> > IIRC, that's what it does now: it uses the value of 
> > buffer-file-coding-system to decode the file.
> ??? The words after ":" is correct, thus the words before
> ":" is wrong.

Andreas says Emacs should not autodetect in revert-buffer.  What I meant 
to say is that it doesn't autodetect right now: it uses whatever 
buffer-file-coding-system says.

> It uses the value of buffer-file-coding-system, thus it does
> NOT autodetect the encoding.

Exactly.  That's what I wanted to say.  I believe Andreas said that this 
is how it should stay.  However, this thread started when Simon asked 
that it _did_ autodetect, at least the EOL format.

> Of course, C-x RET c undecided M-x revert-buffer will force
> Emacs autodetection.

It does auto-detect, but it doesn't change buffer-file-coding-system.  So 
if you visit a DOS file, then run dos2unix on it, and the revert-buffer with 
"C-x RET c unix RET", and edit and save the buffer, it gets saved with 
DOS EOL format.

reply via email to

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