diff options
| author | Alexander Gramiak | 2019-06-24 15:57:33 +0200 |
|---|---|---|
| committer | Lars Ingebrigtsen | 2019-06-24 16:08:12 +0200 |
| commit | 516761576c89e1c8ead0bd34bb104f990bb7a218 (patch) | |
| tree | 96556a62bbfd233e22fcaf9ffdc5ee7765ecabbd /lisp | |
| parent | c32cc62779ea31200df21c7c02c83bcb33ce7d21 (diff) | |
| download | emacs-516761576c89e1c8ead0bd34bb104f990bb7a218.tar.gz emacs-516761576c89e1c8ead0bd34bb104f990bb7a218.zip | |
Add Zstandard compression support for Tramp
* lisp/net/tramp-archive.el (tramp-archive-suffixes)
(tramp-archive-compression-suffixes): Add zstd compression suffixes.
* lisp/net/tramp-sh.el (tramp-inline-compress-commands): Add
zstd (de)compression commands.
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/net/tramp-archive.el | 8 | ||||
| -rw-r--r-- | lisp/net/tramp-sh.el | 1 |
2 files changed, 5 insertions, 4 deletions
diff --git a/lisp/net/tramp-archive.el b/lisp/net/tramp-archive.el index d7f99667f45..8f15e37b5d8 100644 --- a/lisp/net/tramp-archive.el +++ b/lisp/net/tramp-archive.el | |||
| @@ -77,8 +77,8 @@ | |||
| 77 | ;; File archives could also be compressed, identified by an additional | 77 | ;; File archives could also be compressed, identified by an additional |
| 78 | ;; compression suffix. Valid compression suffixes are listed in the | 78 | ;; compression suffix. Valid compression suffixes are listed in the |
| 79 | ;; constant `tramp-archive-compression-suffixes'. They are ".bz2", | 79 | ;; constant `tramp-archive-compression-suffixes'. They are ".bz2", |
| 80 | ;; ".gz", ".lrz", ".lz", ".lz4", ".lzma", ".lzo", ".uu", ".xz" and | 80 | ;; ".gz", ".lrz", ".lz", ".lz4", ".lzma", ".lzo", ".uu", ".xz",".Z", |
| 81 | ;; ".Z". A valid archive file name would be | 81 | ;; and .zst. A valid archive file name would be |
| 82 | ;; "/path/to/dir/file.tar.gz/dir/file". Even several suffixes in a | 82 | ;; "/path/to/dir/file.tar.gz/dir/file". Even several suffixes in a |
| 83 | ;; row are possible, like "/path/to/dir/file.tar.gz.uu/dir/file". | 83 | ;; row are possible, like "/path/to/dir/file.tar.gz.uu/dir/file". |
| 84 | 84 | ||
| @@ -154,7 +154,7 @@ | |||
| 154 | "rar" ;; RAR archives. | 154 | "rar" ;; RAR archives. |
| 155 | "rpm" ;; Red Hat packages. | 155 | "rpm" ;; Red Hat packages. |
| 156 | "shar" ;; Shell archives. Not in libarchive testsuite. | 156 | "shar" ;; Shell archives. Not in libarchive testsuite. |
| 157 | "tar" "tbz" "tgz" "tlz" "txz" ;; (Compressed) tape archives. | 157 | "tar" "tbz" "tgz" "tlz" "txz" ".tzst" ;; (Compressed) tape archives. |
| 158 | "warc" ;; Web archives. | 158 | "warc" ;; Web archives. |
| 159 | "xar" ;; macOS XAR archives. Not in libarchive testsuite. | 159 | "xar" ;; macOS XAR archives. Not in libarchive testsuite. |
| 160 | "xpi" ;; XPInstall Mozilla addons. Not in libarchive testsuite. | 160 | "xpi" ;; XPInstall Mozilla addons. Not in libarchive testsuite. |
| @@ -169,7 +169,7 @@ It must be supported by libarchive(3).") | |||
| 169 | 169 | ||
| 170 | ;;;###autoload | 170 | ;;;###autoload |
| 171 | (defconst tramp-archive-compression-suffixes | 171 | (defconst tramp-archive-compression-suffixes |
| 172 | '("bz2" "gz" "lrz" "lz" "lz4" "lzma" "lzo" "uu" "xz" "Z") | 172 | '("bz2" "gz" "lrz" "lz" "lz4" "lzma" "lzo" "uu" "xz" "Z" "zst") |
| 173 | "List of suffixes which indicate a compressed file. | 173 | "List of suffixes which indicate a compressed file. |
| 174 | It must be supported by libarchive(3).") | 174 | It must be supported by libarchive(3).") |
| 175 | 175 | ||
diff --git a/lisp/net/tramp-sh.el b/lisp/net/tramp-sh.el index d7db69a5ddb..a42ae9363ca 100644 --- a/lisp/net/tramp-sh.el +++ b/lisp/net/tramp-sh.el | |||
| @@ -4533,6 +4533,7 @@ means discard it)." | |||
| 4533 | ("env GZIP= gzip" "env GZIP= gzip -d") | 4533 | ("env GZIP= gzip" "env GZIP= gzip -d") |
| 4534 | ("bzip2" "bzip2 -d") | 4534 | ("bzip2" "bzip2 -d") |
| 4535 | ("xz" "xz -d") | 4535 | ("xz" "xz -d") |
| 4536 | ("zstd --rm" "zstd -d --rm") | ||
| 4536 | ("compress" "compress -d")) | 4537 | ("compress" "compress -d")) |
| 4537 | "List of compress and decompress commands for inline transfer. | 4538 | "List of compress and decompress commands for inline transfer. |
| 4538 | Each item is a list that looks like this: | 4539 | Each item is a list that looks like this: |