summaryrefslogtreecommitdiff
path: root/lisp/dired-x.el
diff options
context:
space:
mode:
authorGlenn Morris <rgm@gnu.org>2011-03-02 09:12:43 -0800
committerGlenn Morris <rgm@gnu.org>2011-03-02 09:12:43 -0800
commitdbb17c4e2a2a6283647cb7be5b1169d572ef417a (patch)
treef0c97d5473e37b81e46c737e5dd5192ca3aed1b5 /lisp/dired-x.el
parente1a135a9ebc03eff6a3fea84a7196ecc00cf7d0f (diff)
downloademacs-dbb17c4e2a2a6283647cb7be5b1169d572ef417a.tar.gz
Fix previous dired-x.el change.
Diffstat (limited to 'lisp/dired-x.el')
-rw-r--r--lisp/dired-x.el6
1 files changed, 3 insertions, 3 deletions
diff --git a/lisp/dired-x.el b/lisp/dired-x.el
index 94398687d11..d71212e5dcb 100644
--- a/lisp/dired-x.el
+++ b/lisp/dired-x.el
@@ -735,9 +735,9 @@ If none, return `default-directory'."
((eq major-mode 'dired-mode) (dired-get-filename t t))))
current-prefix-arg
shell-command-default-error-buffer))
- (let ((default-directory (if (eq major-mode 'dired-mode)
- (dired-current-directory)
- default-directory)))
+ (let ((default-directory (or (and (eq major-mode 'dired-mode)
+ (dired-current-directory))
+ default-directory)))
(shell-command command output-buffer error-buffer)))