diff options
| author | Roland McGrath | 1995-09-30 16:35:12 +0000 |
|---|---|---|
| committer | Roland McGrath | 1995-09-30 16:35:12 +0000 |
| commit | 2121cd9c03da0e8b11950d784ca35cf981525d15 (patch) | |
| tree | b14f1ca3aabb76ae1ac8306028cdeb788fc311c4 | |
| parent | a6ed60f493538265327c2c949d6237a6315bd6fa (diff) | |
| download | emacs-2121cd9c03da0e8b11950d784ca35cf981525d15.tar.gz emacs-2121cd9c03da0e8b11950d784ca35cf981525d15.zip | |
(cd): Fix interactive spec to require match if there is no CDPATH.
| -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) |