From: Richard M. Stallman Date: Sun, 30 Jul 1995 07:02:13 +0000 (+0000) Subject: (cd): When reading arg, use just directory as the default. X-Git-Tag: emacs-19.34~3141 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=dac4ea74ccf14a7e759253fb20d6acf2d2f2acc0;p=emacs.git (cd): When reading arg, use just directory as the default. --- diff --git a/lisp/files.el b/lisp/files.el index 01705e3c57a..1a7ca53a855 100644 --- a/lisp/files.el +++ b/lisp/files.el @@ -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)