]> code.delx.au - gnu-emacs/commitdiff
(uncompress-while-visiting):
authorKarl Heuer <kwzh@gnu.org>
Thu, 10 Sep 1998 15:45:17 +0000 (15:45 +0000)
committerKarl Heuer <kwzh@gnu.org>
Thu, 10 Sep 1998 15:45:17 +0000 (15:45 +0000)
Use just the car of what find-operation-coding-system returns.

lisp/uncompress.el

index c731c23baf63fd0ec02c1697391d755ffbee46e9..53439190a1db4b708a18a8a77ab84699afbc411a 100644 (file)
@@ -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")