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#57665: [PATCH] Recognize zstandard (.zst) suffix in lisp/info.el Date: Thu, 8 Sep 2022 03:57:33 +0100 Message-ID: <20220908025733.3176746-1-sam@gentoo.org> References: <834jxjifhd.fsf@gnu.org> Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="12500"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Sam James To: 57665@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Sep 08 04:59: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 1oW7lF-00035W-FZ for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 08 Sep 2022 04:59:25 +0200 Original-Received: from localhost ([::1]:47050 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oW7lE-00073n-FU for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 07 Sep 2022 22:59:24 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33318) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oW7kt-0006tr-06 for bug-gnu-emacs@gnu.org; Wed, 07 Sep 2022 22:59:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:39902) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oW7ks-0003xo-Nq for bug-gnu-emacs@gnu.org; Wed, 07 Sep 2022 22:59:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oW7ks-0001sb-Jg for bug-gnu-emacs@gnu.org; Wed, 07 Sep 2022 22:59: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:59:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 57665 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.16626058927136 (code B ref -1); Thu, 08 Sep 2022 02:59:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 8 Sep 2022 02:58:12 +0000 Original-Received: from localhost ([127.0.0.1]:56828 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oW7k4-0001r1-EZ for submit@debbugs.gnu.org; Wed, 07 Sep 2022 22:58:12 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:36090) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oW7k2-0001qu-Ph for submit@debbugs.gnu.org; Wed, 07 Sep 2022 22:58:11 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:36390) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oW7k2-0006os-Kl for bug-gnu-emacs@gnu.org; Wed, 07 Sep 2022 22:58:10 -0400 Original-Received: from woodpecker.gentoo.org ([2001:470:ea4a:1:5054:ff:fec7:86e4]:41921 helo=smtp.gentoo.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_CHACHA20_POLY1305:256) (Exim 4.90_1) (envelope-from ) id 1oW7k0-0003s8-3V for bug-gnu-emacs@gnu.org; Wed, 07 Sep 2022 22:58:09 -0400 X-Mailer: git-send-email 2.37.3 In-Reply-To: <834jxjifhd.fsf@gnu.org> Received-SPF: pass client-ip=2001:470:ea4a:1:5054:ff:fec7:86e4; envelope-from=sam@gentoo.org; helo=smtp.gentoo.org X-Spam_score_int: -41 X-Spam_score: -4.2 X-Spam_bar: ---- X-Spam_report: (-4.2 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action 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:241814 Archived-At: * lisp/info.el (Info-suffix-list): Recognize .zst file extension from the zstd compression tool. This allos reading Info pages compressed with zstandard. Signed-off-by: Sam James --- lisp/info.el | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lisp/info.el b/lisp/info.el index 1a58910c3a..292bf93a6f 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" . ("zstd" "-dc")) (".info" . nil) ("-info.Z" . "uncompress") ("-info.Y" . "unyabba") @@ -458,6 +459,7 @@ or `Info-virtual-nodes'." ("-info.bz2" . ("bzip2" "-dc")) ("-info.z" . "gunzip") ("-info.xz" . "unxz") + ("-info.zst" . ("zstd" "-dc")) ("-info" . nil) ("/index.Z" . "uncompress") ("/index.Y" . "unyabba") @@ -465,6 +467,7 @@ or `Info-virtual-nodes'." ("/index.z" . "gunzip") ("/index.bz2" . ("bzip2" "-dc")) ("/index.xz" . "unxz") + ("/index.zst" . ("zstd" "-dc")) ("/index" . nil) (".Z" . "uncompress") (".Y" . "unyabba") @@ -472,6 +475,7 @@ or `Info-virtual-nodes'." (".z" . "gunzip") (".bz2" . ("bzip2" "-dc")) (".xz" . "unxz") + (".zst" . ("zstd" "-dc")) ("" . nil))) "List of file name suffixes and associated decoding commands. Each entry should be (SUFFIX . STRING); the file is given to -- 2.37.3