]> git.eshelyaron.com Git - emacs.git/commitdiff
(list-directory): Set default-directory.
authorRichard M. Stallman <rms@gnu.org>
Wed, 30 Aug 1995 16:01:39 +0000 (16:01 +0000)
committerRichard M. Stallman <rms@gnu.org>
Wed, 30 Aug 1995 16:01:39 +0000 (16:01 +0000)
lisp/files.el

index 73b9085ddf97d0245aa39c0562207df7a6fe5b3d..a71331bfcc41177de86eed72d4d17a8de980d573 100644 (file)
@@ -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)))))))