[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] Changes to emacs/lisp/dired-aux.el
From: |
Juri Linkov |
Subject: |
[Emacs-diffs] Changes to emacs/lisp/dired-aux.el |
Date: |
Tue, 17 Jan 2006 01:41:52 +0000 |
Index: emacs/lisp/dired-aux.el
diff -u emacs/lisp/dired-aux.el:1.141 emacs/lisp/dired-aux.el:1.142
--- emacs/lisp/dired-aux.el:1.141 Sat Sep 24 23:26:28 2005
+++ emacs/lisp/dired-aux.el Tue Jan 17 01:41:52 2006
@@ -53,14 +53,20 @@
\\[set-mark-command], not by Dired's \\[dired-mark] command.)
The prompted-for file is the first file given to `diff'.
With prefix arg, prompt for second argument SWITCHES,
- which is options for `diff'."
+which is options for `diff'."
(interactive
- (let ((default (if (mark t)
+ (let ((current (dired-get-filename t))
+ (default (if (mark t)
(save-excursion (goto-char (mark t))
(dired-get-filename t t)))))
+ (if (or (equal default current)
+ (and (not (equal (dired-dwim-target-directory)
+ (dired-current-directory)))
+ (not mark-active)))
+ (setq default nil))
(require 'diff)
(list (read-file-name (format "Diff %s with%s: "
- (dired-get-filename t)
+ current
(if default
(concat " (default " default ")")
""))
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] Changes to emacs/lisp/dired-aux.el,
Juri Linkov <=