From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Juan =?utf-8?Q?Jos=C3=A9_Garc=C3=ADa-Ripoll?= Newsgroups: gmane.emacs.devel Subject: Re: decompress.c now also compresses Date: Sun, 29 Mar 2020 21:27:58 +0200 Message-ID: <867dz30xmp.fsf@csic.es> References: <86zhbz17mk.fsf@csic.es> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="78559"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (windows-nt) To: emacs-devel@gnu.org Cancel-Lock: sha1:UQnbIdEq25M+JYnIbxyCLLRpQJI= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Mar 29 21:28:53 2020 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jIdc4-000KKg-8L for ged-emacs-devel@m.gmane-mx.org; Sun, 29 Mar 2020 21:28:52 +0200 Original-Received: from localhost ([::1]:40856 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jIdc3-0002w5-Am for ged-emacs-devel@m.gmane-mx.org; Sun, 29 Mar 2020 15:28:51 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:36631) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jIdbM-0002VN-MX for emacs-devel@gnu.org; Sun, 29 Mar 2020 15:28:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jIdbL-0003EX-FK for emacs-devel@gnu.org; Sun, 29 Mar 2020 15:28:08 -0400 Original-Received: from ciao.gmane.io ([159.69.161.202]:54998) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1jIdbL-0003DR-9V for emacs-devel@gnu.org; Sun, 29 Mar 2020 15:28:07 -0400 Original-Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1jIdbJ-000JTX-4X for emacs-devel@gnu.org; Sun, 29 Mar 2020 21:28:05 +0200 X-Injected-Via-Gmane: http://gmane.org/ X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 159.69.161.202 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:245974 Archived-At: Stefan Monnier writes: >> I attach a patch that adds support for compressing buffers using >> zlib. It is a minor extension to the file src/decompress.c but it may be >> useful because of two reasons (i) in Windows, Emasc is shipped without >> g[un]zip.exe, > > This sounds great. Does that mean that we can make jka-compr work with > .gz files without any external tools at all? One needs to replace jka-compr with a couple of functions that are installed before it, because the way jka-compr works it assumes the compressor/decompressor is an external program, not a lisp function. Cheers, -- Juan José García Ripoll http://juanjose.garciaripoll.com http://quinfog.hbar.es