GNU bug report logs - #25458
25.1; tar mode does not handle compressed archives without specific extensions

Previous Next

Package: emacs;

Reported by: Francesco Potortì <pot <at> gnu.org>

Date: Mon, 16 Jan 2017 15:21:01 UTC

Severity: wishlist

Found in version 25.1

Full log


View this message in rfc822 format

From: Francesco Potortì <pot <at> gnu.org>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: 25458 <at> debbugs.gnu.org
Subject: bug#25458: 25.1; tar mode does not handle compressed archives without specific extensions
Date: Sat, 14 May 2022 00:18:07 +0200
>>>But I think the question is -- do we want to support this?  I'm not
>>>quite sure -- it would be pretty unusual for a mode to do something like
>>>this, and it's not clear what the semantics should be.  That is, if
>>>we're saving the tar buffer afterwards, should it be compressed or not?
>>>Either option would surprise somebody.
>>
>> Not really.  If I read a compressed file, Emacs uncompresses it when
>> loading it to a buffer, then you can edit it and save it.  Compression
>> and decompression are transparent.  I use this feature quite often,
>> and so I am led to expect it of compressed archives too.  If it was
>> compressed to begin with, it should be saved compressed too.
>
>But the file name is "foo.tar" -- there'd be no way to tell Emacs that
>the user wants to save that uncompressed.

In fact, if the file was compressed, Emacs should save it compressed with the same method.

>You can load bar.gz into a buffer, and write out bar, and Emacs won't
>compress that.

- I load bar.gz
- Edit it
- C-x C-s saves it with the same name, compressed with the same method

Same with foo.tar.gz

It should be the same with foo.tar, if foo.tar was compressed

And no, there would be no way to tell Emacs to save foo.tar uncompressed.  I do not think that it would be important to be able to save it uncompressed.




This bug report was last modified 3 years and 3 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.