Subject: Re: bug#24853: [PATCH] Automatically handle Zstandard compressed files

From: Nick Terrell <[email-masked]>
Date: Tue, 1 Nov 2016 16:48:00 -0700

I apologize, it looks like I didn't submit a text attachment.  I've
included the patch inline.

>From 3779d68186b9b9d80dda466932d36e92d3f5548b Mon Sep 17 00:00:00 2001
From: Nick Terrell <[email-masked]>
Date: Tue, 1 Nov 2016 14:45:02 -0700
Subject: [PATCH] Automatically handle Zstandard compressed files

* lisp/jka-cmpr-hook.el (jka-compr-compression-info-list):
Add zstd compression info: <http://facebook.github.io/zstd/>
---
 lisp/jka-cmpr-hook.el | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/lisp/jka-cmpr-hook.el b/lisp/jka-cmpr-hook.el
index 39302f0..c2b4d96 100644
--- a/lisp/jka-cmpr-hook.el
+++ b/lisp/jka-cmpr-hook.el
@@ -244,7 +244,11 @@ jka-compr-compression-info-list
     ["\\.dz\\'"
      nil              nil            nil
      "uncompressing"      "gzip"         ("-c" "-q" "-d")
-     nil t "\037\213"]))
+     nil t "\037\213"]
+    ["\\.zst\\'"
+     "zstd compressing"   "zstd"         ("-c" "-q")
+     "zstd uncompressing" "zstd"         ("-c" "-q" "-d")
+     t t "\050\265\057\375"]))

   "List of vectors that describe available compression techniques.
 Each element, which describes a compression technique, is a vector of
-- 
2.10.0

On Tue, Nov 1, 2016 at 3:51 PM, Nick Terrell <[email-masked]> wrote:
> I would like to add support for automatically handling Zstandard
> compressed files to emacs.  I've attached a patch that implements this
> feature.