GNU bug report logs - #24853
[PATCH] Automatically handle Zstandard compressed files

Previous Next

Package: emacs;

Reported by: Nick Terrell <nickrterrell <at> gmail.com>

Date: Tue, 1 Nov 2016 22:55:02 UTC

Severity: wishlist

Tags: patch

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 24853 in the body.
You can then email your comments to 24853 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#24853; Package emacs. (Tue, 01 Nov 2016 22:55:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Nick Terrell <nickrterrell <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Tue, 01 Nov 2016 22:55:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Nick Terrell <nickrterrell <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: [PATCH] Automatically handle Zstandard compressed files
Date: Tue, 1 Nov 2016 15:51:03 -0700
[Message part 1 (text/plain, inline)]
I would like to add support for automatically handling Zstandard
compressed files to emacs.  I've attached a patch that implements this
feature.
[0001-Automatically-handle-Zstandard-compressed-files.patch (application/octet-stream, attachment)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#24853; Package emacs. (Tue, 01 Nov 2016 23:49:02 GMT) Full text and rfc822 format available.

Message #8 received at 24853 <at> debbugs.gnu.org (full text, mbox):

From: Nick Terrell <nickrterrell <at> gmail.com>
To: 24853 <at> debbugs.gnu.org
Subject: Re: bug#24853: [PATCH] Automatically handle Zstandard compressed files
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 <terrelln <at> 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 <at> 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.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#24853; Package emacs. (Thu, 03 Nov 2016 00:25:02 GMT) Full text and rfc822 format available.

Message #11 received at 24853 <at> debbugs.gnu.org (full text, mbox):

From: Nick Terrell <nickrterrell <at> gmail.com>
To: 24853 <at> debbugs.gnu.org
Cc: Nick Terrell <terrelln <at> fb.com>
Subject: [PATCH] Automatically handle Zstandard compressed files
Date: Wed,  2 Nov 2016 17:22:48 -0700
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





Reply sent to Eli Zaretskii <eliz <at> gnu.org>:
You have taken responsibility. (Sat, 05 Nov 2016 09:46:02 GMT) Full text and rfc822 format available.

Notification sent to Nick Terrell <nickrterrell <at> gmail.com>:
bug acknowledged by developer. (Sat, 05 Nov 2016 09:46:02 GMT) Full text and rfc822 format available.

Message #16 received at 24853-done <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Nick Terrell <nickrterrell <at> gmail.com>
Cc: terrelln <at> fb.com, 24853-done <at> debbugs.gnu.org
Subject: Re: bug#24853: [PATCH] Automatically handle Zstandard compressed files
Date: Sat, 05 Nov 2016 11:45:13 +0200
> From: Nick Terrell <nickrterrell <at> gmail.com>
> Date: Wed,  2 Nov 2016 17:22:48 -0700
> Cc: Nick Terrell <terrelln <at> 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.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sat, 03 Dec 2016 12:24:03 GMT) Full text and rfc822 format available.

This bug report was last modified 8 years and 201 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.