diff options
| -rw-r--r-- | lisp/dired-aux.el | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/lisp/dired-aux.el b/lisp/dired-aux.el index 6d0c3395777..3d17905dd7d 100644 --- a/lisp/dired-aux.el +++ b/lisp/dired-aux.el | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | ;;; dired-aux.el --- less commonly used parts of dired -*-byte-compile-dynamic: t;-*- | 1 | ;;; dired-aux.el --- less commonly used parts of dired -*-byte-compile-dynamic: t;-*- |
| 2 | 2 | ||
| 3 | ;; Copyright (C) 1985, 1986, 1992, 1994 Free Software Foundation, Inc. | 3 | ;; Copyright (C) 1985, 1986, 1992, 1994, 1998 Free Software Foundation, Inc. |
| 4 | 4 | ||
| 5 | ;; Author: Sebastian Kremer <sk@thp.uni-koeln.de>. | 5 | ;; Author: Sebastian Kremer <sk@thp.uni-koeln.de>. |
| 6 | ;; Maintainer: FSF | 6 | ;; Maintainer: FSF |
| @@ -384,7 +384,11 @@ output files usually are created there instead of in a subdir." | |||
| 384 | 384 | ||
| 385 | ;; This is an extra function so that it can be redefined by ange-ftp. | 385 | ;; This is an extra function so that it can be redefined by ange-ftp. |
| 386 | (defun dired-run-shell-command (command) | 386 | (defun dired-run-shell-command (command) |
| 387 | (shell-command command) | 387 | (let ((handler |
| 388 | (find-file-name-handler (directory-file-name default-directory) | ||
| 389 | 'shell-command))) | ||
| 390 | (if handler (apply handler 'shell-command (list command)) | ||
| 391 | (shell-command command))) | ||
| 388 | ;; Return nil for sake of nconc in dired-bunch-files. | 392 | ;; Return nil for sake of nconc in dired-bunch-files. |
| 389 | nil) | 393 | nil) |
| 390 | 394 | ||