changeset 55284:997b45b51728

(dired-diff): Use `dired-dwim-target-directory' if current dired buffer has no buffer mark.
author Juri Linkov <juri@jurta.org>
date Sat, 01 May 2004 05:35:34 +0000
parents 0c58eb7225cd
children 0d08aa952288
files lisp/dired-aux.el
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/dired-aux.el	Sat May 01 05:02:57 2004 +0000
+++ b/lisp/dired-aux.el	Sat May 01 05:35:34 2004 +0000
@@ -64,7 +64,10 @@
 				   (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)