diff lisp/files.el @ 12719:dde58f45b00a

(cd): When reading arg, use just directory as the default.
author Richard M. Stallman <rms@gnu.org>
date Sun, 30 Jul 1995 07:02:13 +0000
parents 7caa97ba6a7b
children 8b44b70e655d
line wrap: on
line diff
--- a/lisp/files.el	Sun Jul 30 00:46:23 1995 +0000
+++ b/lisp/files.el	Sun Jul 30 07:02:13 1995 +0000
@@ -298,7 +298,9 @@
   "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)