[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: unibyte buffers won't display latin-1 characters
From: |
Eli Zaretskii |
Subject: |
Re: unibyte buffers won't display latin-1 characters |
Date: |
Sat, 31 Aug 2002 09:18:55 +0300 |
> From: Richard Stallman <rms@gnu.org>
> Date: Fri, 30 Aug 2002 15:18:46 -0400
>
> You don't want conversion while reading the compressed or encrypted
> file, but after uncompressing or unencrypting it, you probably at that
> point want to perform conversion if, and as, Emacs would have done so
> reading the same data out of a file with the corresponding name.
> Is there any way to do that?
Yes. A Lisp program which needs to do that should invoke
detect-coding-region and then decode the text with
decode-coding-region.
(That's an oversimplification: the code should pay attention to
coding-system-for-read if non-nil, support the coding: tags, invoke
find-operation-coding-system, etc.)