From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Phillip Lord Newsgroups: gmane.emacs.devel Subject: Re: `gzip` dependency Date: Mon, 11 Jan 2021 15:15:57 +0000 Message-ID: <87y2gzsdw2.fsf@russet.org.uk> References: <87pn2dq3xv.fsf@russet.org.uk> <83ft39hnk1.fsf@gnu.org> <87h7nppzjy.fsf@russet.org.uk> <838s90hhb6.fsf@gnu.org> <87zh1gircl.fsf@russet.org.uk> <83turofw8r.fsf@gnu.org> <83pn2cf8zq.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="31924"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: Eli Zaretskii , emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Jan 11 16:17:55 2021 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 1kyyx8-0008AW-BA for ged-emacs-devel@m.gmane-mx.org; Mon, 11 Jan 2021 16:17:54 +0100 Original-Received: from localhost ([::1]:51134 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kyyx7-0008Fu-EO for ged-emacs-devel@m.gmane-mx.org; Mon, 11 Jan 2021 10:17:53 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49330) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kyyvQ-0007QN-6P for emacs-devel@gnu.org; Mon, 11 Jan 2021 10:16:09 -0500 Original-Received: from cloud103.planethippo.com ([78.129.138.110]:52414) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kyyvO-0003Ww-1V; Mon, 11 Jan 2021 10:16:07 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=russet.org.uk; s=default; h=Content-Type:MIME-Version:References:Message-ID :Date:In-Reply-To:Subject:Cc:To:From:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=lSUNUZFGrXF/bQm4kArcYU7d7sLdaCYnFzxPE23a5Gk=; b=S2wdybYj/y9za4cEkZf1eDUIE gdBgLL/oQHyiQVPEFqQb6qEUwCG8OLOdYRiEypV9RrteLTklgEpzYsydymWZ0aQAzVcWjtGuKOmfW F9in0/97S4xhzAsjDII6GClI9oclo+rjxlmh+IX1sT3Tdv42+W1aopXzIprrRoRjXbNOR/XD0qkpt 7nPNPx14uo3KmTsIWKK3sUNKGeoYeNd8U0LqQxnRAkSR9+cot3ro0Q9/shOrm7+1w4E+8HDiwoZGJ g1Q+oDwxBXFC+CBS9CABlRGIhci8LyIHa3SFDDITwaAUc4Qoj/Qj7OzHBy8jI10lZQGM5jzusIxRI 6m9DaBVbg==; Original-Received: from cpc142648-benw12-2-0-cust627.16-2.cable.virginm.net ([82.10.74.116]:38458 helo=russet.org.uk) by cloud103.planethippo.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.93) (envelope-from ) id 1kyyvK-0006Fy-LA; Mon, 11 Jan 2021 15:16:02 +0000 In-Reply-To: (Stefan Monnier's message of "Mon, 11 Jan 2021 09:59:19 -0500") X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - cloud103.planethippo.com X-AntiAbuse: Original Domain - gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - russet.org.uk X-Get-Message-Sender-Via: cloud103.planethippo.com: authenticated_id: phillip.lord@russet.org.uk X-Authenticated-Sender: cloud103.planethippo.com: phillip.lord@russet.org.uk Received-SPF: none client-ip=78.129.138.110; envelope-from=phillip.lord@russet.org.uk; helo=cloud103.planethippo.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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:262911 Archived-At: Stefan Monnier writes: >>> > The gzip thing is again your call (having gzip in the package is no >>> > big deal, IMO). >>> BTW, we don't really need a `gzip` executable as long as we have the >>> `zlib-decompress-region` function, right? >> Not necessarily, because Info files can be read outside Emacs. > > I don't think we should worry about that: those who want to read Info > files with something else than Emacs may need to have `gzip` installed, > and I think it's perfectly acceptable. > > My question was instead about whether or not Emacs does indeed make use > of `zlib-decompress-region` when it tries to read a gzipped Info file, > and whether the Windows build does always provide > `zlib-decompress-region` or whether that function also requires an > external dependency that may or may not be available (in which case > it's no better than using the `gzip` executable in this respect). zlib is not given as an explicit dependency of Emacs on Windows at the moment, although perhaps it should be. However, it is included as a transitive dependency. If I gzip all the info files then do M-x info and look into a node, I get an error with message "Unpression program `gzip' not found". If I open a gzip node with find-file-literally then do eval (zlib-decompress-region (point-min) (point-max)), I get the contents of the info file. Conclusions: 1) Emacs uses gzip to decompress but doesn't need to. 2) zlib should probably be added an explicit dependency regardless, since it's a feature of Emacs that can be disabled. Phil