summaryrefslogtreecommitdiff
path: root/lisp/dired-aux.el
diff options
context:
space:
mode:
authorJuri Linkov <juri@jurta.org>2004-05-01 05:38:07 +0000
committerJuri Linkov <juri@jurta.org>2004-05-01 05:38:07 +0000
commit4ae73f87a0f3ab6f9b7cdca19a3df40d945fc7a9 (patch)
treebd7bb50e60927a8d167559f6d0feb0910e7436e5 /lisp/dired-aux.el
parent7017c8174e3c2132b2e2cf4b77cb80c4c59aadc1 (diff)
downloademacs-4ae73f87a0f3ab6f9b7cdca19a3df40d945fc7a9.tar.gz
(dired-diff): Use `dired-dwim-target-directory'
if current dired buffer has no buffer mark.
Diffstat (limited to 'lisp/dired-aux.el')
-rw-r--r--lisp/dired-aux.el5
1 files changed, 4 insertions, 1 deletions
diff --git a/lisp/dired-aux.el b/lisp/dired-aux.el
index dbc3d763040..b31d20782f3 100644
--- a/lisp/dired-aux.el
+++ b/lisp/dired-aux.el
@@ -64,7 +64,10 @@ With prefix arg, prompt for second argument SWITCHES,
(if default
(concat "(default " default ") ")
""))
- (dired-current-directory) default t)
+ (if default
+ (dired-current-directory)
+ (dired-dwim-target-directory))
+ default t)
(if current-prefix-arg
(read-string "Options for diff: "
(if (stringp diff-switches)