X-Git-Url: http://git.hcoop.net/bpt/emacs.git/blobdiff_plain/f7a7738f798228ce85b5fe3bd0aa13465f870805..c22256a16ee314e5dc0bbe7620ff0a735ef55be0:/lisp/uncompress.el diff --git a/lisp/uncompress.el b/lisp/uncompress.el index d809f81bd7..53439190a1 100644 --- a/lisp/uncompress.el +++ b/lisp/uncompress.el @@ -72,7 +72,12 @@ It then selects a major mode from the uncompressed file name and contents." (set-visited-file-name (concat (substring buffer-file-name 0 (match-beginning 0)) ".tar"))))) (message "Uncompressing...") - (let ((buffer-read-only nil)) + (let ((buffer-read-only nil) + (coding-system-for-write 'no-conversion) + (coding-system-for-read + (car (find-operation-coding-system + 'insert-file-contents + buffer-file-name t)))) (shell-command-on-region (point-min) (point-max) uncompress-program t)) (goto-char (point-min)) (message "Uncompressing...done") @@ -99,7 +104,9 @@ It then selects a major mode from the uncompressed file name and contents." (progn (insert-file-contents buffer-file-name t) (goto-char (point-min)) - (setq error nil) + ;; No need for this, because error won't be set to t + ;; if this function returns t. + ;; (setq error nil) t)))) (provide 'uncompress)