(tar-extract): Use view-exit-action to kill viewed buf.
authorRichard M. Stallman <rms@gnu.org>
Sat, 17 Jul 1993 19:10:13 +0000 (19:10 +0000)
committerRichard M. Stallman <rms@gnu.org>
Sat, 17 Jul 1993 19:10:13 +0000 (19:10 +0000)
lisp/tar-mode.el

index 76259bb..31bbde0 100644 (file)
@@ -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 ()