Add xz support to jka-compr

Vin Shelton <[email protected]> Sun, 19 Oct 2014 20:41:26 -0400
Newsgroups gmane.emacs.xemacs.patches
Message-ID <CACeGjnVLznxQCLcVPc9_852mbKmMiH2u5VjeK285b6+ZNhHDNQ@mail.gmail.com>
xz is not currently one of the compress methods supported by jka-compr.

diff -r 7f5da95927f2 ChangeLog
--- a/ChangeLog Thu May 15 21:06:10 2014 +0200
+++ b/ChangeLog Sun Oct 19 20:40:15 2014 -0400
@@ -1,3 +1,7 @@
+2014-10-19  Vin Shelton  <[email protected]>
+
+ * jka-compr.el (jka-compr-compression-info-list): Add xz compression.
+
 2014-05-15  Norbert Koch  <[email protected]>

  * Makefile (VERSION): XEmacs package 1.44 released.
diff -r 7f5da95927f2 jka-compr.el
--- a/jka-compr.el Thu May 15 21:06:10 2014 +0200
+++ b/jka-compr.el Sun Oct 19 20:40:15 2014 -0400
@@ -144,6 +144,10 @@
     ["\\.gz\\(~\\|\\.~[0-9]+~\\)?\\'"
      "zipping"        "gzip"         ("-c" "-q")
      "unzipping"      "gzip"         ("-c" "-q" "-d")
+     t t]
+    ["\\.xz\\(~\\|\\.~[0-9]+~\\)?\\'"
+     "zipping"        "xz"           ("-c" "-q")
+     "unzipping"      "xz"           ("-c" "-q" "-d")
      t t])

   "List of vectors that describe available compression techniques.

Regards,
  Vin