emacs-devel
[Top][All Lists]
Advanced

[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: Stefan Monnier
Subject: Re: address@hidden: FW: [21.1.90]: should coding be recalculated on revert-buffer?]
Date: Mon, 25 Feb 2002 02:24:30 -0500

> Richard Stallman <address@hidden> writes:
> > I tend to think he is right.  What do you think?
> [...]
> > From: "Marshall, Simon" <address@hidden>
> > To: "'Emacs Pretest Bug'" <address@hidden>
> > Subject: FW: [21.1.90]: should coding be recalculated on revert-buffer?
> > Date: Fri, 22 Feb 2002 15:09:45 -0000
> [...]
> > If I visit a DOS-format file in Emacs on a Unix box, Emacs helpfully
> > tells me the coding system is DOS in the modeline.  If I use dos2unix
> > in a shell to convert it and M-x revert-buffer in Emacs, Emacs still
> > tells me the coding system is DOS.
> 
> > Shouldn't it revert the coding system as appropriate too?
> 
> In the above specific case, I agree he is right.
> 
> But, if one visited a file with C-x RET c CODING RET C-x C-f
> FILENAME RET, it usually means that the file encoding is
> different from what Emacs automatically detects.  Thus, in
> such a case, we had better read the file with the same
> coding system (i.e. CODING).
> 
> And, it's difficult to distinguish the above two cases.

Looks like we should remember whether the current coding-system was
automatically inferred or whether it was explicitly specified.
Of course, we need to remember it separatly for the line-ending part
of the coding-system.


        Stefan




reply via email to

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