diff options
| author | Karl Heuer | 1994-11-03 20:37:28 +0000 |
|---|---|---|
| committer | Karl Heuer | 1994-11-03 20:37:28 +0000 |
| commit | c4e347be426970629cde9374ca79102d521dec52 (patch) | |
| tree | e1419d7be1cdccdb0cff6582e4a28822a121eae2 | |
| parent | fd63b4f4d86e523f6372b356f991358bfc7e866c (diff) | |
| download | emacs-c4e347be426970629cde9374ca79102d521dec52.tar.gz emacs-c4e347be426970629cde9374ca79102d521dec52.zip | |
(tar-extract): Set default-directory to that of the superior buffer, not the
pseudo-dir formed from the archive name.
| -rw-r--r-- | lisp/tar-mode.el | 6 |
1 files changed, 6 insertions, 0 deletions
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." | |||
| 700 | (make-local-variable 'tar-superior-descriptor) | 700 | (make-local-variable 'tar-superior-descriptor) |
| 701 | (setq tar-superior-buffer tar-buffer) | 701 | (setq tar-superior-buffer tar-buffer) |
| 702 | (setq tar-superior-descriptor descriptor) | 702 | (setq tar-superior-descriptor descriptor) |
| 703 | ;; Set the default-directory to the dir of the | ||
| 704 | ;; superior buffer. | ||
| 705 | (setq default-directory | ||
| 706 | (save-excursion | ||
| 707 | (set-buffer tar-superior-buffer) | ||
| 708 | default-directory)) | ||
| 703 | 709 | ||
| 704 | (tar-subfile-mode 1) | 710 | (tar-subfile-mode 1) |
| 705 | 711 | ||