summaryrefslogtreecommitdiff
path: root/lisp/dired-aux.el
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>2005-07-11 04:25:01 +0000
committerRichard M. Stallman <rms@gnu.org>2005-07-11 04:25:01 +0000
commit5176af43d1492c5d9c92a5b91db0b4b08a10749e (patch)
tree21bcd61e53b83127d74779e70f0d45217800cc57 /lisp/dired-aux.el
parent3cc9e6d8176a8dd38f88792dbbebd0f3570e2912 (diff)
downloademacs-5176af43d1492c5d9c92a5b91db0b4b08a10749e.tar.gz
(dired-compare-directories): Remove "." and ".." from the alists.
Diffstat (limited to 'lisp/dired-aux.el')
-rw-r--r--lisp/dired-aux.el13
1 files changed, 9 insertions, 4 deletions
diff --git a/lisp/dired-aux.el b/lisp/dired-aux.el
index c9d5c22ded3..617cb38585f 100644
--- a/lisp/dired-aux.el
+++ b/lisp/dired-aux.el
@@ -126,16 +126,21 @@ Examples of PREDICATE:
(let* ((dir1 (dired-current-directory))
(file-alist1 (dired-files-attributes dir1))
(file-alist2 (dired-files-attributes dir2))
- (file-list1 (mapcar
+ file-list1 file-list2)
+ (setq file-alist1 (delq (assoc "." file-alist1) file-alist1))
+ (setq file-alist1 (delq (assoc ".." file-alist1) file-alist1))
+ (setq file-alist2 (delq (assoc "." file-alist2) file-alist2))
+ (setq file-alist2 (delq (assoc ".." file-alist2) file-alist2))
+ (setq file-list1 (mapcar
'cadr
(dired-file-set-difference
file-alist1 file-alist2
- predicate)))
- (file-list2 (mapcar
+ predicate))
+ file-list2 (mapcar
'cadr
(dired-file-set-difference
file-alist2 file-alist1
- predicate))))
+ predicate)))
(dired-fun-in-all-buffers
dir1 nil
(lambda ()