diff lisp/files.el @ 13095:8477c2dca6b0

(cd): Fix interactive spec to require match if there is no CDPATH.
author Roland McGrath <roland@gnu.org>
date Sat, 30 Sep 1995 16:35:12 +0000
parents 9f60089ce2bb
children b4601a8c1e5c
line wrap: on
line diff
--- a/lisp/files.el	Fri Sep 29 03:50:47 1995 +0000
+++ b/lisp/files.el	Sat Sep 30 16:35:12 1995 +0000
@@ -300,7 +300,9 @@
 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)