(cd): When reading arg, use just directory as the default.
authorRichard M. Stallman <rms@gnu.org>
Sun, 30 Jul 1995 07:02:13 +0000 (07:02 +0000)
committerRichard M. Stallman <rms@gnu.org>
Sun, 30 Jul 1995 07:02:13 +0000 (07:02 +0000)
lisp/files.el

index 01705e3..1a7ca53 100644 (file)
@@ -298,7 +298,9 @@ Not actually set up until the first time you you use it.")
   "Make DIR become the current buffer's default directory.
 If your environment includes a `CDPATH' variable, try each one of that
 colon-separated list of directories when resolving a relative directory name."
-  (interactive "FChange default directory: ")
+  (interactive
+   (list (read-file-name "Change default directory: "
+                        default-directory default-directory)))
   (if (file-name-absolute-p dir)
       (cd-absolute (expand-file-name dir))
     (if (null cd-path)