[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: Andreas Schwab
Subject: Re: address@hidden: FW: [21.1.90]: should coding be recalculated on revert-buffer?]
Date: Mon, 25 Feb 2002 11:31:27 +0100
User-agent: Gnus/5.090005 (Oort Gnus v0.05) Emacs/21.2.50 (ia64-suse-linux)

Eli Zaretskii <address@hidden> writes:

|> On Mon, 25 Feb 2002, Stefan Monnier wrote:
|> > 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 that revert-buffer should autodetect at all.  For the few
cases where it matters, find-alternate-file with the same file name is
probably an acceptable replacement.  Or even better, set the
buffer-file-coding-system to the desired coding system and save the file
from within Emacs, instead of reencoding it outside of Emacs.


Andreas Schwab, SuSE Labs, address@hidden
SuSE GmbH, Deutschherrnstr. 15-19, D-90429 N├╝rnberg
Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."

reply via email to

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