changeset 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 ad51fb37d568
children 6d9a2522f812
files lisp/files.el
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
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)