This with `(auto-compression-mode)' in my .emacs file.
When copying a file via tramp, tramp will attempt to compress the
file again if it ends with a suffix that it recognizes as a
compressed file. For example:
$ echo tmp > test
$ gzip test
$ ls -l test.gz
-rw-r--r-- 1 mah mah 29 May 4 10:30 test.gz
Now use `C' in dired to copy to a remote host using a tramp
path. On the remote host:
$ ls -l test.gz
-rw-r--r-- 1 mah other 49 May 4 10:31 test.gz
$ gunzip test.gz
$ file test
test: gzip compressed data - deflate method , original file name
I'm not sure if this is a tramp problem or jka-compr, but here is
a bug report anyway ;->.
Emacs : GNU Emacs 21.0.102.2 (i386-debian-linux-gnu, X toolkit)
of 2001-04-08 on peppermint
Package: tramp ($Id: tramp.el,v 2.0.2.1 2001/02/28 18:10:31 grossjoh Exp $)
current state:
==============
(setq
tramp-ls-command nil
tramp-test-groks-nt nil
tramp-file-exists-command nil
tramp-current-method nil
tramp-current-user nil
tramp-current-host nil
tramp-auto-save-directory nil
tramp-default-method "sm"
tramp-rsh-end-of-line "\n"
tramp-remote-path '("/bin" "/usr/bin" "/usr/sbin" "/usr/local/bin"
"/usr/ccs/bin" "/local/bin" "/local/freeware/bin"
"/local/gnu/bin" "/usr/freeware/bin" "/usr/pkg/bin")
tramp-login-prompt-regexp ".*ogin: *$"
tramp-password-prompt-regexp "^.*\\([pP]assword\\|passphrase.*\\): ? *$"
tramp-wrong-passwd-regexp "^.*\\(Permission denied.\\|Login [Ii]ncorrect\\|Received
signal [0-9]+\\|Connection \\(refused\\|closed\\)\\|Sorry, try again.\\|Name or
service not known\\).*$"
tramp-temp-name-prefix "tramp."
tramp-file-name-structure
'("\\`/r\\(@\\([a-z0-9]+\\)\\)?:\\(\\([-a-z0-9_#]+\\)@\\)?\\([-a-z0-9.]+\\):\\(.*\\)\\'"
2 4 5 6)
tramp-file-name-regexp "\\`/r[@:]"
tramp-make-tramp-file-format "/r@%m:%u@%h:%p"
tramp-end-of-output "/////"
shell-prompt-pattern "^[^#$%>\n]*[#$%>] +"
backup-by-copying nil
backup-by-copying-when-linked nil
backup-by-copying-when-mismatch nil
backup-by-copying-when-privileged-mismatch 200
)