]> code.delx.au - gnu-emacs/commitdiff
Add support for 7z archives
authorOleh Krehel <ohwoeowho@gmail.com>
Tue, 29 Mar 2016 13:59:35 +0000 (15:59 +0200)
committerOleh Krehel <ohwoeowho@gmail.com>
Tue, 29 Mar 2016 14:05:55 +0000 (16:05 +0200)
* lisp/dired-aux.el (dired-compress-file-suffixes): "Z" should now
  also work with 7z archives.

The shell command should produce a single extracted directory named
after the archive's name.

In case the extracted directory exists, all files will be overwritten
without a prompt. This matches the expected behavior with the "tar.gz"
archives.

lisp/dired-aux.el

index 3e387d9e0df5c6a0a60e4f40ea294e2d28944069..990bf6aa34c542434d3827b85400e76e93123a6d 100644 (file)
@@ -902,6 +902,7 @@ command with a prefix argument (the value does not matter)."
     ("\\.bz2\\'" "" "bunzip2")
     ("\\.xz\\'" "" "unxz")
     ("\\.zip\\'" "" "unzip -o -d %o %i")
+    ("\\.7z\\'" "" "7z x -aoa -o%o %i")
     ;; This item controls naming for compression.
     ("\\.tar\\'" ".tgz" nil)
     ;; This item controls the compression of directories