From b0b748568f3939f5fda9ffa9f224ae65237e7193 Mon Sep 17 00:00:00 2001 From: Zhu Zihao Date: Sat, 29 Jun 2019 19:21:24 +0800 Subject: [PATCH] Add detection of *.tar.bz2 and *.tar.xz for `dired-do-compress'. Keep the consistency since we have detection for *.tar.gz. --- lisp/dired-aux.el | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lisp/dired-aux.el b/lisp/dired-aux.el index 5e4ec4d1ec..fdd65b5714 100644 --- a/lisp/dired-aux.el +++ b/lisp/dired-aux.el @@ -988,7 +988,8 @@ dired-compress-file-suffixes ;; Solaris10 version of tar. Solaris10 becomes obsolete in 2021. ;; Same thing on AIX 7.1. ("\\.tar\\.gz\\'" "" "gzip -dc %i | tar -xf -") + ("\\.tar\\.bz2\\'" "" "bzip2 -dc %i | tar -xf -") + ("\\.tar\\.xz" "" "xz -dc %i | tar -xf -") ("\\.tgz\\'" "" "gzip -dc %i | tar -xf -") ("\\.gz\\'" "" "gunzip") ("\\.Z\\'" "" "uncompress") -- 2.22.0