From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#57636: [PATCH] Recognize zstandard (.zst) suffix in lisp/info.el Date: Wed, 07 Sep 2022 14:35:58 +0300 Message-ID: <834jxjifhd.fsf@gnu.org> References: <20220907040040.25684-1-sam@gentoo.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="38721"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 57636@debbugs.gnu.org To: Sam James Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Sep 07 13:37:25 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 1oVtMr-0009ag-8a for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 07 Sep 2022 13:37:17 +0200 Original-Received: from localhost ([::1]:40528 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oVtMp-0005sc-AH for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 07 Sep 2022 07:37:15 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:46098) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oVtMd-0005sS-8K for bug-gnu-emacs@gnu.org; Wed, 07 Sep 2022 07:37:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:36776) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oVtMc-0001hE-VT for bug-gnu-emacs@gnu.org; Wed, 07 Sep 2022 07:37:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oVtMc-0000dp-Im for bug-gnu-emacs@gnu.org; Wed, 07 Sep 2022 07:37:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 07 Sep 2022 11:37: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 Original-Received: via spool by 57636-submit@debbugs.gnu.org id=B57636.16625505832418 (code B ref 57636); Wed, 07 Sep 2022 11:37:02 +0000 Original-Received: (at 57636) by debbugs.gnu.org; 7 Sep 2022 11:36:23 +0000 Original-Received: from localhost ([127.0.0.1]:53708 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oVtLy-0000cw-VK for submit@debbugs.gnu.org; Wed, 07 Sep 2022 07:36:23 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:49758) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oVtLx-0000cj-3P for 57636@debbugs.gnu.org; Wed, 07 Sep 2022 07:36:21 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:39114) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oVtLr-0001eF-Nx; Wed, 07 Sep 2022 07:36:15 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=TwptVPjX75C0T+9C6iAnGhV+E5OE1wJl/A3W+a8lI7o=; b=W88bgepu3uVG L/nTYLZHJZn+9NSvX4FT1Ptwpjl8kd44UogD+OFR5Dot6rVDikzz3yZSZuX5dko7+2q5aOLQI2+PZ pm044xxgzz8eyiZJ0S/HFN6kYNXzDp6UDaM0Vjt1m5JlTrerttqSneeSYc/KdjMSQA09ShNnaQYhF x69vUH3a2SJ8reAymWO5qzggEjiQS+woJcF6vd8d/ELt3Sts/IU4PAK8awF+/o9EK1gPmlrz2U0Fo 8z0q52OTKP0q6VE6EB+CQyD4zGHid0LoMqiX0LrbWTd8G+SZWvQZMeIm2EwI+/WF9DqPaEpmTDjL1 iO8D1af+ZbET/SkKBglwvg==; Original-Received: from [87.69.77.57] (port=4209 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oVtLr-0000gC-6k; Wed, 07 Sep 2022 07:36:15 -0400 In-Reply-To: <20220907040040.25684-1-sam@gentoo.org> (message from Sam James on Wed, 7 Sep 2022 05:00:40 +0100) 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:241740 Archived-At: > Cc: Sam James > From: Sam James > Date: Wed, 7 Sep 2022 05:00:40 +0100 > > * 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(+) > > 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")) 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. So I think you want "-dc", not "--rm -q". Am I missing something?