unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Lars Ingebrigtsen <larsi@gnus.org>
To: Dan McCarthy <daniel.c.mccarthy@gmail.com>
Cc: 55166@debbugs.gnu.org, Michael Albinus <michael.albinus@gmx.de>
Subject: bug#55166: 28.1; tar-mode doesn't re-compress when saving remote files
Date: Thu, 28 Apr 2022 20:49:13 +0200	[thread overview]
Message-ID: <87y1zphwly.fsf@gnus.org> (raw)
In-Reply-To: <CAAoRiOWAYrpbN-pyG=55qMHEs+eK2K=xaNt7MBv8n_1hZFaCrA@mail.gmail.com> (Dan McCarthy's message of "Thu, 28 Apr 2022 11:43:36 -0400")

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	other threads:[~2022-04-28 18:49 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-04-28 15:43 bug#55166: 28.1; tar-mode doesn't re-compress when saving remote files Dan McCarthy
2022-04-28 18:49 ` Lars Ingebrigtsen [this message]
2022-05-03 12:36   ` Michael Albinus
2022-05-03 18:02     ` Dan McCarthy
2022-05-04  6:46       ` Michael Albinus

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87y1zphwly.fsf@gnus.org \
    --to=larsi@gnus.org \
    --cc=55166@debbugs.gnu.org \
    --cc=daniel.c.mccarthy@gmail.com \
    --cc=michael.albinus@gmx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).