aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNick Terrell2016-11-05 11:42:15 +0200
committerEli Zaretskii2016-11-05 11:42:15 +0200
commitf95bf3cd1f55cf8f99b88c7318c21c967b11dfd1 (patch)
tree32c16915081e32d0708defd5e45407859178fefc
parentebaf39e3f2c8e7bfc01746adec9ffbe945efca23 (diff)
downloademacs-f95bf3cd1f55cf8f99b88c7318c21c967b11dfd1.tar.gz
emacs-f95bf3cd1f55cf8f99b88c7318c21c967b11dfd1.zip
Support zstd compressed files
* lisp/jka-cmpr-hook.el (jka-compr-compression-info-list): Add zstd compression info: <http://facebook.github.io/zstd/>. (jka-compr-mode-alist-additions): Handle .tzst suffix for zstd compressed tar archives. (Bug#24853) Copyright-paperwork-exempt: yes
-rw-r--r--lisp/jka-cmpr-hook.el13
1 files changed, 11 insertions, 2 deletions
diff --git a/lisp/jka-cmpr-hook.el b/lisp/jka-cmpr-hook.el
index 39302f028e9..b023bcd601a 100644
--- a/lisp/jka-cmpr-hook.el
+++ b/lisp/jka-cmpr-hook.el
@@ -244,7 +244,15 @@ options through Custom does this automatically."
244 ["\\.dz\\'" 244 ["\\.dz\\'"
245 nil nil nil 245 nil nil nil
246 "uncompressing" "gzip" ("-c" "-q" "-d") 246 "uncompressing" "gzip" ("-c" "-q" "-d")
247 nil t "\037\213"])) 247 nil t "\037\213"]
248 ["\\.zst\\'"
249 "zstd compressing" "zstd" ("-c" "-q")
250 "zstd uncompressing" "zstd" ("-c" "-q" "-d")
251 t t "\050\265\057\375"]
252 ["\\.tzst\\'"
253 "zstd compressing" "zstd" ("-c" "-q")
254 "zstd uncompressing" "zstd" ("-c" "-q" "-d")
255 t nil "\050\265\057\375"]))
248 256
249 "List of vectors that describe available compression techniques. 257 "List of vectors that describe available compression techniques.
250Each element, which describes a compression technique, is a vector of 258Each element, which describes a compression technique, is a vector of
@@ -308,7 +316,8 @@ variables. Setting this through Custom does that automatically."
308(defcustom jka-compr-mode-alist-additions 316(defcustom jka-compr-mode-alist-additions
309 (purecopy '(("\\.tgz\\'" . tar-mode) 317 (purecopy '(("\\.tgz\\'" . tar-mode)
310 ("\\.tbz2?\\'" . tar-mode) 318 ("\\.tbz2?\\'" . tar-mode)
311 ("\\.txz\\'" . tar-mode))) 319 ("\\.txz\\'" . tar-mode)
320 ("\\.tzst\\'" . tar-mode)))
312 "List of pairs added to `auto-mode-alist' when installing jka-compr. 321 "List of pairs added to `auto-mode-alist' when installing jka-compr.
313Uninstalling jka-compr removes all pairs from `auto-mode-alist' that 322Uninstalling jka-compr removes all pairs from `auto-mode-alist' that
314installing added. 323installing added.