mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-30 04:10:54 -08:00
(uncompress-while-visiting):
Use just the car of what find-operation-coding-system returns.
This commit is contained in:
parent
dbd7a811cc
commit
c22256a16e
1 changed files with 3 additions and 3 deletions
|
|
@ -75,9 +75,9 @@ It then selects a major mode from the uncompressed file name and contents."
|
|||
(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)))
|
||||
(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")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue