aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Rudalics2008-01-27 22:20:43 +0000
committerMartin Rudalics2008-01-27 22:20:43 +0000
commit687422dffaffc4d763733b6e4f05df3b209b1d57 (patch)
treee3f9a8b0861de5d501924e5a1329502d1849bf8c
parent5e613c0246a7b7e83a37982265309ed3ffb5ce0d (diff)
downloademacs-687422dffaffc4d763733b6e4f05df3b209b1d57.tar.gz
emacs-687422dffaffc4d763733b6e4f05df3b209b1d57.zip
(archive-extract): Use kill-buffer-if-not-modified as
exit-action when viewing the buffer.
-rw-r--r--lisp/arc-mode.el5
1 files changed, 3 insertions, 2 deletions
diff --git a/lisp/arc-mode.el b/lisp/arc-mode.el
index 504cbce962f..8a01ed3cda6 100644
--- a/lisp/arc-mode.el
+++ b/lisp/arc-mode.el
@@ -995,7 +995,8 @@ using `make-temp-file', and the generated name is returned."
995 (archive-maybe-update t)) 995 (archive-maybe-update t))
996 (or (not (buffer-name buffer)) 996 (or (not (buffer-name buffer))
997 (cond 997 (cond
998 (view-p (view-buffer buffer (and just-created 'kill-buffer))) 998 (view-p (view-buffer
999 buffer (and just-created 'kill-buffer-if-not-modified)))
999 ((eq other-window-p 'display) (display-buffer buffer)) 1000 ((eq other-window-p 'display) (display-buffer buffer))
1000 (other-window-p (switch-to-buffer-other-window buffer)) 1001 (other-window-p (switch-to-buffer-other-window buffer))
1001 (t (switch-to-buffer buffer)))))) 1002 (t (switch-to-buffer buffer))))))
@@ -1952,7 +1953,7 @@ This doesn't recover lost files, it just undoes changes in the buffer itself."
1952 (archive-rar-extract tmpfile name)) 1953 (archive-rar-extract tmpfile name))
1953 (if tmpbuf (kill-buffer tmpbuf)) 1954 (if tmpbuf (kill-buffer tmpbuf))
1954 (delete-file tmpfile)))) 1955 (delete-file tmpfile))))
1955 1956
1956 1957
1957;; ------------------------------------------------------------------------- 1958;; -------------------------------------------------------------------------
1958;; This line was a mistake; it is kept now for compatibility. 1959;; This line was a mistake; it is kept now for compatibility.