Bind coding-system-for-write and coding-system-for-read.
(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
+ (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")