(tar-extract): Use second argument of
authorRichard M. Stallman <rms@gnu.org>
Tue, 17 Jun 1997 22:04:57 +0000 (22:04 +0000)
committerRichard M. Stallman <rms@gnu.org>
Tue, 17 Jun 1997 22:04:57 +0000 (22:04 +0000)
view-buffer instead of setting view-exit-action.

lisp/tar-mode.el

index 5776680..c0a8359 100644 (file)
@@ -747,11 +747,7 @@ appear on disk when you save the tar-file's buffer."
              (set-buffer tar-buffer))
          (narrow-to-region 1 tar-header-offset)))
       (if view-p
-         (progn
-           (view-buffer buffer)
-           (and just-created
-                ;; This will be created by view.el
-                (setq view-exit-action 'kill-buffer)))
+         (view-buffer buffer (and just-created 'kill-buffer))
        (if (eq other-window-p 'display)
            (display-buffer buffer)
          (if other-window-p