From dac4ea74ccf14a7e759253fb20d6acf2d2f2acc0 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Sun, 30 Jul 1995 07:02:13 +0000 Subject: [PATCH] (cd): When reading arg, use just directory as the default. --- lisp/files.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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) -- 2.39.2