unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Nick Terrell <nickrterrell@gmail.com>
To: 24853@debbugs.gnu.org
Cc: Nick Terrell <terrelln@fb.com>
Subject: bug#24853: [PATCH] Automatically handle Zstandard compressed files
Date: Wed,  2 Nov 2016 17:22:48 -0700	[thread overview]
Message-ID: <20161103002248.98117-1-terrelln@fb.com> (raw)
In-Reply-To: <CANr2DbcZ3i8eOXoRCX+-Bi38EpeNc5M9yFMh8D4eRP4QYL68rQ@mail.gmail.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.
---
 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






  parent reply	other threads:[~2016-11-03  0:22 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
2016-11-05  9:45   ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20161103002248.98117-1-terrelln@fb.com \
    --to=nickrterrell@gmail.com \
    --cc=24853@debbugs.gnu.org \
    --cc=terrelln@fb.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).