bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#55166: 28.1; tar-mode doesn't re-compress when saving remote files


From: Lars Ingebrigtsen
Subject: bug#55166: 28.1; tar-mode doesn't re-compress when saving remote files
Date: Thu, 28 Apr 2022 20:49:13 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

Dan McCarthy <daniel.c.mccarthy@gmail.com> writes:

> dan@solstice:/tmp$ touch a b c
> dan@solstice:/tmp$ tar cf test.tar a b c
> dan@solstice:/tmp$ bzip2 -z test.tar 
> dan@solstice:/tmp$ file test.tar.bz2 
> test.tar.bz2: bzip2 compressed data, block size = 900k
>
> If you visit that remote file and save it, the result will have the .bz2
> extension but won't actually be compressed:
>
> dan@solstice:/tmp$ file test.tar.bz2 
> test.tar.bz2: POSIX tar archive (GNU)
>
> This doesn't happen with compressed remote files which aren't tar archives.

I can reproduce this problem with Emacs 29, too.  (And if I edit the
file locally instead of via tramp, the tar file is saved compressed, so
it seems to be tramp-related.)

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





reply via email to

[Prev in Thread] Current Thread [Next in Thread]