summaryrefslogtreecommitdiff
blob: 9345ceaabbd4bdf50067c4181eeb794c7c93bf12 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Automatically handle .xz suffix (XZ-compressed files)
From Jim Meyering <meyering@redhat.com> on emacs-devel

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