From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Sam James Newsgroups: gmane.emacs.bugs Subject: bug#57636: [PATCH] Recognize zstandard (.zst) suffix in lisp/info.el Date: Thu, 8 Sep 2022 03:10:21 +0100 Message-ID: <4E6F1B45-BFA6-4B9F-9F14-7A065405A3EC@gentoo.org> References: <20220907040040.25684-1-sam@gentoo.org> <834jxjifhd.fsf@gnu.org> Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.120.41.1.1\)) Content-Type: multipart/signed; boundary="Apple-Mail=_9E6235FD-3F51-4BBB-A94C-280D187CA344"; protocol="application/pgp-signature"; micalg=pgp-sha512 Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="25682"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 57636@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Sep 08 04:11:26 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1oW70o-0006XI-Gg for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 08 Sep 2022 04:11:26 +0200 Original-Received: from localhost ([::1]:36862 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oW70n-0005yg-EY for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 07 Sep 2022 22:11:25 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41760) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oW70Q-0005xZ-LH for bug-gnu-emacs@gnu.org; Wed, 07 Sep 2022 22:11:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:39839) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oW70Q-0005iI-Cp for bug-gnu-emacs@gnu.org; Wed, 07 Sep 2022 22:11:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oW70Q-0000cv-8B for bug-gnu-emacs@gnu.org; Wed, 07 Sep 2022 22:11:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Sam James Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 08 Sep 2022 02:11:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 57636 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch moreinfo Original-Received: via spool by 57636-submit@debbugs.gnu.org id=B57636.16626030372377 (code B ref 57636); Thu, 08 Sep 2022 02:11:02 +0000 Original-Received: (at 57636) by debbugs.gnu.org; 8 Sep 2022 02:10:37 +0000 Original-Received: from localhost ([127.0.0.1]:56771 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oW701-0000cH-3g for submit@debbugs.gnu.org; Wed, 07 Sep 2022 22:10:37 -0400 Original-Received: from woodpecker.gentoo.org ([140.211.166.183]:43654 helo=smtp.gentoo.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oW6zy-0000c0-Nq for 57636@debbugs.gnu.org; Wed, 07 Sep 2022 22:10:35 -0400 In-Reply-To: <834jxjifhd.fsf@gnu.org> X-Mailer: Apple Mail (2.3696.120.41.1.1) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:241812 Archived-At: --Apple-Mail=_9E6235FD-3F51-4BBB-A94C-280D187CA344 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii > On 7 Sep 2022, at 12:35, Eli Zaretskii wrote: >=20 >> Cc: Sam James >> From: Sam James >> Date: Wed, 7 Sep 2022 05:00:40 +0100 >>=20 >> * lisp/info.el (Info-suffix-list): Recognize .zst file extension from = the >> zstd compression tool. This allos reading Info pages compressed with = zstandard. >> --- >> lisp/info.el | 4 ++++ >> 1 file changed, 4 insertions(+) >>=20 >> diff --git a/lisp/info.el b/lisp/info.el >> index 1a58910c3a..fdbe1f9b90 100644 >> --- a/lisp/info.el >> +++ b/lisp/info.el >> @@ -451,6 +451,7 @@ or `Info-virtual-nodes'." >> (".info.z" . "gunzip") >> (".info.bz2" . ("bzip2" "-dc")) >> (".info.xz" . "unxz") >> + (".info.zst" . ("unzstd" "--rm" "-q")) >=20 > Thanks, but I don't think I understand the --rm part: these commands > aren't supposed to replace the original compressed file with its > decompressed version, they are supposed to write the decompressed text > to stdout, where it will be read by Emacs and displayed, and leave the > original compressed files alone. >=20 > So I think you want "-dc", not "--rm -q". Am I missing something? You're missing nothing and you're exactly right. Apologies tor the error -- that seems obvious now! I'll send a fixed version shortly. --Apple-Mail=_9E6235FD-3F51-4BBB-A94C-280D187CA344 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP -----BEGIN PGP SIGNATURE----- iNUEARYKAH0WIQQlpruI3Zt2TGtVQcJzhAn1IN+RkAUCYxlPDV8UgAAAAAAuAChp c3N1ZXItZnByQG5vdGF0aW9ucy5vcGVucGdwLmZpZnRoaG9yc2VtYW4ubmV0MjVB NkJCODhERDlCNzY0QzZCNTU0MUMyNzM4NDA5RjUyMERGOTE5MAAKCRBzhAn1IN+R kLpXAP4m5M8N5koiWF+zY/HK1woRxKAcnqJLCh0jHWvwCbpgCAEA+bz9w24Y0wkM 7aqDLh2LapJXUM3jNvpcwthc4FwioAQ= =ojBq -----END PGP SIGNATURE----- --Apple-Mail=_9E6235FD-3F51-4BBB-A94C-280D187CA344--