From a513a2f85f919ee80a0b253409666a9e4b92bdbd Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Wed, 30 Aug 1995 16:01:39 +0000 Subject: [PATCH] (list-directory): Set default-directory. --- lisp/files.el | 1 + 1 file changed, 1 insertion(+) diff --git a/lisp/files.el b/lisp/files.el index 73b9085ddf9..a71331bfcc4 100644 --- a/lisp/files.el +++ b/lisp/files.el @@ -2341,6 +2341,7 @@ and `list-directory-verbose-switches'." (terpri) (save-excursion (set-buffer "*Directory*") + (setq default-directory (file-name-directory dirname)) (let ((wildcard (not (file-directory-p dirname)))) (insert-directory dirname switches wildcard (not wildcard))))))) -- 2.39.2