diff options
author | Juri Linkov <juri@jurta.org> | 2004-05-01 05:38:07 +0000 |
---|---|---|
committer | Juri Linkov <juri@jurta.org> | 2004-05-01 05:38:07 +0000 |
commit | 4ae73f87a0f3ab6f9b7cdca19a3df40d945fc7a9 (patch) | |
tree | bd7bb50e60927a8d167559f6d0feb0910e7436e5 /lisp/dired-aux.el | |
parent | 7017c8174e3c2132b2e2cf4b77cb80c4c59aadc1 (diff) | |
download | emacs-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.el | 5 |
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) |