changeset 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 0a8b4f086ffc
children 8033d2412068
files lisp/files.el
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
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)