diff options
| -rw-r--r-- | lisp/files.el | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/files.el b/lisp/files.el index a2289337777..529c3d7bd5b 100644 --- a/lisp/files.el +++ b/lisp/files.el | |||
| @@ -300,7 +300,9 @@ If your environment includes a `CDPATH' variable, try each one of that | |||
| 300 | colon-separated list of directories when resolving a relative directory name." | 300 | colon-separated list of directories when resolving a relative directory name." |
| 301 | (interactive | 301 | (interactive |
| 302 | (list (read-file-name "Change default directory: " | 302 | (list (read-file-name "Change default directory: " |
| 303 | default-directory default-directory))) | 303 | default-directory default-directory |
| 304 | (and (member cd-path '(nil ("./"))) | ||
| 305 | (null (getenv "CDPATH")))))) | ||
| 304 | (if (file-name-absolute-p dir) | 306 | (if (file-name-absolute-p dir) |
| 305 | (cd-absolute (expand-file-name dir)) | 307 | (cd-absolute (expand-file-name dir)) |
| 306 | (if (null cd-path) | 308 | (if (null cd-path) |