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 09:59:07 -0500

> > Looks like we should remember whether the current coding-system was
> > automatically inferred or whether it was explicitly specified.
> 
> I'm not sure it's enough.  Imagine the following sequence of commands:
> 
>       C-x RET c latin-2 RET C-x C-f some-file RET
>       M-! cat some-file | recode latin-2..utf-8 > some-file RET
>       M-x revert-buffer RET
> 
> Here the user visited the file with Latin-2, then changed the file's
> encoding on disk into UTF-8, then reverted the buffer.  Should Emacs
> autodetect in this case or not?

I don't think it matters since both options can make sense depending
on the context.  Prompting the user is another option.


        Stefan




reply via email to

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