From xemacs-m  Tue Sep 16 17:00:08 1997
Received: from altair.xemacs.org (steve@xemacs.miranova.com [206.190.83.19])
	by xemacs.org (8.8.5/8.8.5) with ESMTP id RAA17986
	for <xemacs-beta@xemacs.org>; Tue, 16 Sep 1997 17:00:05 -0500 (CDT)
Received: (from steve@localhost)
	by altair.xemacs.org (8.8.7/8.8.7) id PAA19704;
	Tue, 16 Sep 1997 15:03:32 -0700
Mail-Copies-To: never
To: xemacs-beta@xemacs.org
Subject: Re: jka-compr and Mule
References: <kigyb4xl4ci.fsf@jagor.srce.hr> <m2afhdjbv1.fsf@altair.xemacs.org> <kig4t7lar7z.fsf@jagor.srce.hr>
X-Face: `'%\i;ySOu]g?NlziJSk_$&@]KP`}~PEQPjZ5;nxSaDW_o$4+4%Ab]%Ifw3ZR;7TIT3,O,'
 @2{L;]ox6kc;$_5kU'n**9vFg-]eV~GbxSVCx|(s%uR[],*:^WKmC`B}(;|k9/m]gwt?&`t;^rfCJg
 khHH>pP1W\)xM0U@!FNDD72{3fDP$PkBhx^7Z?-WxH6DbFN:QOnT`llzW}VGdYv;n9lzljQvKTIBhQ
 YuV
X-Attribution: sb
From: SL Baur <steve@xemacs.org>
In-Reply-To: Hrvoje Niksic's message of "16 Sep 1997 23:22:56 +0200"
Mime-Version: 1.0 (generated by tm-edit 7.108)
Content-Type: text/plain; charset=US-ASCII
Date: 16 Sep 1997 15:03:32 -0700
Message-ID: <m2lo0wj4qz.fsf@altair.xemacs.org>
Lines: 22
X-Mailer: Quassia Gnus v0.5/XEmacs 20.3(beta21) - "Minsk"

Hrvoje Niksic <hniksic@srce.hr> writes:

> SL Baur <steve@xemacs.org> writes:
>> Hrvoje Niksic <hniksic@srce.hr> writes:
>> 
>> > What is the problem, exactly, between jka-compr and Mule?  Since we
>> > really do need an on-the-fly compressor/decompressor, and jka-compr
>> > looks simpler than crypt, I've decided to have a look at it.
>> 
>> It needs to perform the usual scan for coding-system after
>> decompression and prior to being left in a buffer.

> Where can I find a sample Lisp code that does it correctly?

To the best of my understanding, it's not done in Lisp.  Check out
mule-coding.c.  Around line 1200 underneath a comment reading:

/************************************************************************/
/*                     Detecting the encoding of data                   */
/************************************************************************/

there is a block of functions which handle buffer coding.

