summaryrefslogtreecommitdiff
path: root/lisp/dired-x.el
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1994-09-16 21:35:10 +0000
committerRichard M. Stallman <rms@gnu.org>1994-09-16 21:35:10 +0000
commitea8c670ab290f824acbe49a061e89b74bc167629 (patch)
treeb4c122766ea1ce577ae28231b7e3b12e604be380 /lisp/dired-x.el
parentcad9225ad61dd083f968dd0890826532b95f59bc (diff)
downloademacs-ea8c670ab290f824acbe49a061e89b74bc167629.tar.gz
(dired-clean-up-after-deletion): Expand fn.
(dired-find-buffer-nocreate): Expand dir at beginning.
Diffstat (limited to 'lisp/dired-x.el')
-rw-r--r--lisp/dired-x.el5
1 files changed, 3 insertions, 2 deletions
diff --git a/lisp/dired-x.el b/lisp/dired-x.el
index 6b24f99a7df..2594d1c6d54 100644
--- a/lisp/dired-x.el
+++ b/lisp/dired-x.el
@@ -301,7 +301,7 @@ See also functions
(file-name-nondirectory fn)))
(save-excursion ; you never know where kill-buffer leaves you
(kill-buffer buf))))
- (let ((buf-list (dired-buffers-for-dir fn))
+ (let ((buf-list (dired-buffers-for-dir (expand-file-name fn)))
(buf nil))
(and buf-list
(y-or-n-p (format "Kill dired buffer%s of %s, too? "
@@ -1364,7 +1364,8 @@ See also variable `dired-vm-read-only-folders'."
(defun dired-find-buffer-nocreate (dirname)
(if dired-find-subdir
(let* ((cur-buf (current-buffer))
- (buffers (nreverse (dired-buffers-for-dir dirname)))
+ (buffers (nreverse
+ (dired-buffers-for-dir (expand-file-name dirname))))
(cur-buf-matches (and (memq cur-buf buffers)
;; wildcards must match, too:
(equal dired-directory dirname))))