aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1993-12-23 04:40:58 +0000
committerRichard M. Stallman1993-12-23 04:40:58 +0000
commit233993a3477f564d2b69e2270805dffa37d27784 (patch)
tree34e4d34e868616bbabc8bb6d56f4fc14d6debdef
parenta1c7dec409a9627a93cb6e27c7bb22353ef75c5f (diff)
downloademacs-233993a3477f564d2b69e2270805dffa37d27784.tar.gz
emacs-233993a3477f564d2b69e2270805dffa37d27784.zip
(dired-in-this-tree): Call expand-file-name.
(dired-goto-file): Call expand-file-name.
-rw-r--r--lisp/dired.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/dired.el b/lisp/dired.el
index 44d0ec3747c..77235cb79c9 100644
--- a/lisp/dired.el
+++ b/lisp/dired.el
@@ -1259,7 +1259,7 @@ Optional arg NO-ERROR-IF-NOT-FILEP means return nil if no filename on
1259(defun dired-in-this-tree (file dir) 1259(defun dired-in-this-tree (file dir)
1260 ;;"Is FILE part of the directory tree starting at DIR?" 1260 ;;"Is FILE part of the directory tree starting at DIR?"
1261 (let (case-fold-search) 1261 (let (case-fold-search)
1262 (string-match (concat "^" (regexp-quote dir)) file))) 1262 (string-match (concat "^" (regexp-quote (expand-file-name dir))) file)))
1263 1263
1264(defun dired-normalize-subdir (dir) 1264(defun dired-normalize-subdir (dir)
1265 ;; Prepend default-directory to DIR if relative path name. 1265 ;; Prepend default-directory to DIR if relative path name.
@@ -1400,7 +1400,7 @@ Returns the new value of the alist."
1400 (save-excursion 1400 (save-excursion
1401 ;; The hair here is to get the result of dired-goto-subdir 1401 ;; The hair here is to get the result of dired-goto-subdir
1402 ;; without really calling it if we don't have any subdirs. 1402 ;; without really calling it if we don't have any subdirs.
1403 (if (if (string= dir default-directory) 1403 (if (if (string= dir (expand-file-name default-directory))
1404 (goto-char (point-min)) 1404 (goto-char (point-min))
1405 (and (cdr dired-subdir-alist) 1405 (and (cdr dired-subdir-alist)
1406 (dired-goto-subdir dir))) 1406 (dired-goto-subdir dir)))