summaryrefslogtreecommitdiff
path: root/lisp/jka-cmpr-hook.el
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2009-06-22 14:53:11 +0000
committerJim Meyering <jim@meyering.net>2009-06-22 14:53:11 +0000
commit13a3f37497fe0d15a425627fdd0d3c1113a23519 (patch)
treea06d9e5ab21be2c9b11c4e4265ebbbe93a230661 /lisp/jka-cmpr-hook.el
parent821ba844dc5b29e5d910768e056db843bfe90ac0 (diff)
downloademacs-13a3f37497fe0d15a425627fdd0d3c1113a23519.tar.gz
automatically handle .xz suffix (XZ-compressed files), too
* jka-cmpr-hook.el (jka-compr-compression-info-list): Add xz. XZ is the successor to LZMA: <http://tukaani.org/xz/>
Diffstat (limited to 'lisp/jka-cmpr-hook.el')
-rw-r--r--lisp/jka-cmpr-hook.el4
1 files changed, 4 insertions, 0 deletions
diff --git a/lisp/jka-cmpr-hook.el b/lisp/jka-cmpr-hook.el
index 96e9513afce..fa2fd40e43f 100644
--- a/lisp/jka-cmpr-hook.el
+++ b/lisp/jka-cmpr-hook.el
@@ -219,6 +219,10 @@ options through Custom does this automatically."
"compressing" "gzip" ("-c" "-q")
"uncompressing" "gzip" ("-c" "-q" "-d")
t t "\037\213"]
+ ["\\.xz\\(~\\|\\.~[0-9]+~\\)?\\'"
+ "XZ compressing" "xz" ("-c" "-q")
+ "XZ uncompressing" "xz" ("-c" "-q" "-d")
+ t t "\3757zXZ\0"]
;; dzip is gzip with random access. Its compression program can't
;; read/write stdin/out, so .dz files can only be viewed without
;; saving, having their contents decompressed with gzip.