From c4e347be426970629cde9374ca79102d521dec52 Mon Sep 17 00:00:00 2001 From: Karl Heuer Date: Thu, 3 Nov 1994 20:37:28 +0000 Subject: [PATCH] (tar-extract): Set default-directory to that of the superior buffer, not the pseudo-dir formed from the archive name. --- lisp/tar-mode.el | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lisp/tar-mode.el b/lisp/tar-mode.el index 894349cf4f8..9dd9732fab8 100644 --- a/lisp/tar-mode.el +++ b/lisp/tar-mode.el @@ -700,6 +700,12 @@ save your changes to disk." (make-local-variable 'tar-superior-descriptor) (setq tar-superior-buffer tar-buffer) (setq tar-superior-descriptor descriptor) + ;; Set the default-directory to the dir of the + ;; superior buffer. + (setq default-directory + (save-excursion + (set-buffer tar-superior-buffer) + default-directory)) (tar-subfile-mode 1) -- 2.39.5