Tags: patch 0. cd /tmp 1. echo "test" | gzip > test.gz 2. zip test.zip test.gz 3. C-x C-f test.zip RET 4. RET ('archive-extract' to visit the first file) -- file content is nicely displayed ungzipped from zip archive. 1. echo "test" | gzip > test.gz 2. tar zcvf test.tar.gz test.gz 3. C-x C-f test.tar.gz RET 4. RET ('tar-extract' to visit the first file) -- garbage is displayed instead of ungzipped file content. The reason why gzipped files can be visited from arc-mode archives is because of this line in arc-mode.el in 'archive-extract' with this comment: (defun archive-extract (&optional other-window-p event) ... (archive-try-jka-compr) ;Pretty ugly hack :-( ... To support gzipped files in tar archives as well, this patch copies the same pretty ugly hack from arc-mode.el to tar-mode.el: