[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Add detection of *.tar.bz2 and *.tar.xz for `dired-do-compress' in l
From: |
Václav Haisman |
Subject: |
Re: Add detection of *.tar.bz2 and *.tar.xz for `dired-do-compress' in lisp/dired-aux.el |
Date: |
Sat, 29 Jun 2019 17:00:06 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.1 |
On 29. 06. 19 14:22, 朱梓豪 wrote:
> I found there was detection for *.tar.gz, but there's no detection for
> *.tar.bz2 and *.tar.xz.
>
> So I add it.
>
>
> 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 -")
Unlike the other lines, this one does not have \\' at its end. Is this
intended?
> ("\\.tgz\\'" "" "gzip -dc %i | tar -xf -")
> ("\\.gz\\'" "" "gunzip")
> ("\\.Z\\'" "" "uncompress")
--
VH
signature.asc
Description: OpenPGP digital signature