[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: unibyte buffers won't display latin-1 characters
From: |
Kenichi Handa |
Subject: |
Re: unibyte buffers won't display latin-1 characters |
Date: |
Tue, 3 Sep 2002 15:23:42 +0900 (JST) |
User-agent: |
SEMI/1.14.3 (Ushinoya) FLIM/1.14.2 (Yagi-Nishiguchi) APEL/10.2 Emacs/21.1.30 (sparc-sun-solaris2.6) MULE/5.0 (SAKAKI) |
In article <2427-Sat31Aug2002091855+0300-eliz@is.elta.co.il>, "Eli Zaretskii"
<eliz@is.elta.co.il> writes:
>> 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.)
I long ago wrote the function
archive-set-buffer-as-visiting-file in arc-mode.el. It does
almost the same thing. It may be worth generalizing this
function so that it can be use in the similar situation.
---
Ken'ichi HANDA
handa@etl.go.jp
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: unibyte buffers won't display latin-1 characters,
Kenichi Handa <=