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

* bug#24853: [PATCH] Automatically handle Zstandard compressed files
  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
  1 sibling, 0 replies; 4+ messages in thread
From: Nick Terrell @ 2016-11-01 23:48 UTC (permalink / raw)
  To: 24853

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 <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

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





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

* bug#24853: [PATCH] Automatically handle Zstandard compressed files
  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
  1 sibling, 1 reply; 4+ messages in thread
From: Nick Terrell @ 2016-11-03  0:22 UTC (permalink / raw)
  To: 24853; +Cc: Nick Terrell

Add support for the '.tzst' suffix to the original patch.


* lisp/jka-cmpr-hook.el (jka-compr-compression-info-list):
Add zstd compression info: <http://facebook.github.io/zstd/>
* lisp/jka-cmpr-hook.el (jka-compr-mode-alist-additions):
Handle .tzst suffix for zstd compressed tar archives.
---
 lisp/jka-cmpr-hook.el | 13 +++++++++++--
 1 file changed, 11 insertions(+), 2 deletions(-)

diff --git a/lisp/jka-cmpr-hook.el b/lisp/jka-cmpr-hook.el
index 39302f0..b023bcd 100644
--- a/lisp/jka-cmpr-hook.el
+++ b/lisp/jka-cmpr-hook.el
@@ -244,7 +244,15 @@ 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"]
+    ["\\.tzst\\'"
+     "zstd compressing"   "zstd"         ("-c" "-q")
+     "zstd uncompressing" "zstd"         ("-c" "-q" "-d")
+     t nil "\050\265\057\375"]))
 
   "List of vectors that describe available compression techniques.
 Each element, which describes a compression technique, is a vector of
@@ -308,7 +316,8 @@ jka-compr-compression-info-list
 (defcustom jka-compr-mode-alist-additions
   (purecopy '(("\\.tgz\\'" . tar-mode)
               ("\\.tbz2?\\'" . tar-mode)
-              ("\\.txz\\'" . tar-mode)))
+              ("\\.txz\\'" . tar-mode)
+              ("\\.tzst\\'" . tar-mode)))
   "List of pairs added to `auto-mode-alist' when installing jka-compr.
 Uninstalling jka-compr removes all pairs from `auto-mode-alist' that
 installing added.
-- 
2.10.0






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

* bug#24853: [PATCH] Automatically handle Zstandard compressed files
  2016-11-03  0:22 ` Nick Terrell
@ 2016-11-05  9:45   ` Eli Zaretskii
  0 siblings, 0 replies; 4+ messages in thread
From: Eli Zaretskii @ 2016-11-05  9:45 UTC (permalink / raw)
  To: Nick Terrell; +Cc: terrelln, 24853-done

> From: Nick Terrell <nickrterrell@gmail.com>
> Date: Wed,  2 Nov 2016 17:22:48 -0700
> Cc: Nick Terrell <terrelln@fb.com>
> 
> Add support for the '.tzst' suffix to the original patch.
> 
> 
> * lisp/jka-cmpr-hook.el (jka-compr-compression-info-list):
> Add zstd compression info: <http://facebook.github.io/zstd/>
> * lisp/jka-cmpr-hook.el (jka-compr-mode-alist-additions):
> Handle .tzst suffix for zstd compressed tar archives.

Thanks, pushed to the master branch.





^ permalink raw reply	[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).