unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#24853: [PATCH] Automatically handle Zstandard compressed files
@ 2016-11-01 22:51 Nick Terrell
  2016-11-01 23:48 ` Nick Terrell
  2016-11-03  0:22 ` Nick Terrell
  0 siblings, 2 replies; 4+ messages in thread
From: Nick Terrell @ 2016-11-01 22:51 UTC (permalink / raw)
  To: 24853

[-- Attachment #1: Type: text/plain, Size: 145 bytes --]

I would like to add support for automatically handling Zstandard
compressed files to emacs.  I've attached a patch that implements this
feature.

[-- Attachment #2: 0001-Automatically-handle-Zstandard-compressed-files.patch --]
[-- Type: application/octet-stream, Size: 1100 bytes --]

From 3779d68186b9b9d80dda466932d36e92d3f5548b Mon Sep 17 00:00:00 2001
From: Nick Terrell <terrelln@fb.com>
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


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2016-11-05  9:45 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-11-01 22:51 bug#24853: [PATCH] Automatically handle Zstandard compressed files Nick Terrell
2016-11-01 23:48 ` Nick Terrell
2016-11-03  0:22 ` Nick Terrell
2016-11-05  9:45   ` Eli Zaretskii

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).