]> git.eshelyaron.com Git - emacs.git/commitdiff
(cd): Fix interactive spec to require match if there is no CDPATH.
authorRoland McGrath <roland@gnu.org>
Sat, 30 Sep 1995 16:35:12 +0000 (16:35 +0000)
committerRoland McGrath <roland@gnu.org>
Sat, 30 Sep 1995 16:35:12 +0000 (16:35 +0000)
lisp/files.el

index a2289337777bcc28def5e1f140e6943c10257886..529c3d7bd5b6048120d09bc764fa2ca54f02811e 100644 (file)
@@ -300,7 +300,9 @@ If your environment includes a `CDPATH' variable, try each one of that
 colon-separated list of directories when resolving a relative directory name."
   (interactive
    (list (read-file-name "Change default directory: "
-                        default-directory default-directory)))
+                        default-directory default-directory
+                        (and (member cd-path '(nil ("./")))
+                             (null (getenv "CDPATH"))))))
   (if (file-name-absolute-p dir)
       (cd-absolute (expand-file-name dir))
     (if (null cd-path)