summaryrefslogtreecommitdiff
path: root/lisp/tar-mode.el
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1993-07-17 19:10:13 +0000
committerRichard M. Stallman <rms@gnu.org>1993-07-17 19:10:13 +0000
commitb5ae9ca5a96b2845d7c1695879bf2f1df830398c (patch)
treedb93d31df00bc7e55a5f3e41f7df6cbe596bd6c7 /lisp/tar-mode.el
parent5c05f56971ff9299eae2628437bf3d0fc89bd5f7 (diff)
downloademacs-b5ae9ca5a96b2845d7c1695879bf2f1df830398c.tar.gz
(tar-extract): Use view-exit-action to kill viewed buf.
Diffstat (limited to 'lisp/tar-mode.el')
-rw-r--r--lisp/tar-mode.el9
1 files changed, 5 insertions, 4 deletions
diff --git a/lisp/tar-mode.el b/lisp/tar-mode.el
index 76259bb20fb..31bbde0e004 100644
--- a/lisp/tar-mode.el
+++ b/lisp/tar-mode.el
@@ -624,10 +624,11 @@ directory listing."
(if view-p
(progn
(view-buffer buffer)
- (and just-created (kill-buffer buffer)))
- (if other-window-p
- (switch-to-buffer-other-window buffer)
- (switch-to-buffer buffer))))))
+ (and just-created
+ (setq view-exit-action 'kill-buffer)))
+ (if other-window-p
+ (switch-to-buffer-other-window buffer)
+ (switch-to-buffer buffer))))))
(defun tar-extract-other-window ()