]> code.delx.au - gnu-emacs/blobdiff - lisp/dired-x.el
*** empty log message ***
[gnu-emacs] / lisp / dired-x.el
index f6497761b502f3e4fd93eabe71e368e63ba4f773..808dc3b5dc87ae285fdd43fd7ee5ddd8161181c4 100644 (file)
@@ -823,7 +823,9 @@ cases in variable `default-directory-alist' (which see)."
 
 (defun dired-smart-shell-command (cmd &optional insert)
   "Like function `shell-command', but in the current Tree Dired directory."
-  (interactive "sShell command: \nP")
+  (interactive (list (read-from-minibuffer "Shell command: "
+                                          nil nil nil 'shell-command-history)
+                    current-prefix-arg))
   (let ((default-directory (default-directory)))
     (shell-command cmd insert)))
 
@@ -957,6 +959,11 @@ dired."
             (concat "gunzip -qc * | tar xvf -"))
          ;; Optional decompression.
          '(concat "gunzip" (if dired-guess-shell-gzip-quiet " -q" "")))
+   ;; bzip2'ed archives
+   (list "\\.tar\\.bz2$"
+        "bunzip2 -c * | tar xvf -"
+        ;; Optional decompression.
+         "bunzip2")
 
    '("\\.shar.Z$" "zcat * | unshar")
    '("\\.shar.g?z$" "gunzip -qc * | unshar")
@@ -1003,6 +1010,7 @@ dired."
 
    ;; Compression.
    (list "\\.g?z$" '(concat "gunzip" (if dired-guess-shell-gzip-quiet " -q")))
+   (list "\\.bz2$" "bunzip2")
    (list "\\.Z$" "uncompress"
          ;; Optional conversion to gzip format.
          '(concat "znew" (if dired-guess-shell-gzip-quiet " -q")