From 13a3f37497fe0d15a425627fdd0d3c1113a23519 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Mon, 22 Jun 2009 14:53:11 +0000 Subject: [PATCH] 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: --- lisp/ChangeLog | 8 +++++++- lisp/jka-cmpr-hook.el | 4 ++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 9522458278..5df17a07e6 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,6 +1,12 @@ +2009-06-22 Jim Meyering + + 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: + 2009-06-22 Dmitry Dzhus Nick Roberts - + * progmodes/gdb-mi.el: Pull further modified changes from Dmitry's repository (http://sphinx.net.ru/hg/gdb-mi/). diff --git a/lisp/jka-cmpr-hook.el b/lisp/jka-cmpr-hook.el index 96e9513afc..fa2fd40e43 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. -- 2.20.1