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


Message #43 received at 25458 <at> debbugs.gnu.org (full text, mbox):

From: Francesco Potortì <pot <at> gnu.org>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: 25458 <at> debbugs.gnu.org
Subject: Re: bug#25458: 25.1; tar mode does not handle compressed archives
 without specific extensions
Date: Mon, 16 May 2022 16:24:12 +0200
>Francesco Potortì <pot <at> gnu.org> writes:
>
>> 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.
>
>I understand that that's your use case.  I'm saying that it would be
>surprising to many, and that that's something that others might well
>want to.

I'll try one last time to illustrate my point of view.

From Emacs:
1. I read foo.tar and I write it out as foo.tar (I don't care if it's compressed or not)
2. I read foo.tar.gz and write it out a foo.tar.gz
3. I read foo.tar.xx and write it out as foo.tar.yy, that is, with a different compression method
4. I read foo.tar.xx and write it out as foo.tar (I explicitly remove compression)
5. I read foo.tar and write it out as foo.tar.xx (I explicitly add compression)

In my opinion, 1 and 2 are by far the most common use cases.  My proposal is to make tar-mode.el to behave as tar does in case 1: it does not care about the name suffix, and it does the right thing whether the file is compressed or not, which has been true since 2008.

You are objecting that if I read foo.tar and it's compressed, I cannot write it out uncompressed using Emacs.  I think that this use case is definitely exotic.  Especially with respect with people wanting to just read tar files and writing them without worrying whether they are compressed or not.




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.