mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-11-27 07:37:33 +00:00
(uncompress-while-visiting):
Bind coding-system-for-write and coding-system-for-read.
This commit is contained in:
parent
dd81ca0dd8
commit
7a784f27db
@ -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
|
||||
(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")
|
||||
|
Loading…
Reference in New Issue
Block a user