unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: "Francesco Potortì" <pot@gnu.org>
To: Lars Ingebrigtsen <larsi@gnus.org>
Cc: 25458@debbugs.gnu.org
Subject: bug#25458: 25.1; tar mode does not handle compressed archives without specific extensions
Date: Mon, 16 May 2022 16:24:12 +0200	[thread overview]
Message-ID: <87pmkdmu7n.fsf@tucano.isti.cnr.it> (raw)
In-Reply-To: <87fslcex1n.fsf@gnus.org> (larsi@gnus.org)

>Francesco Potortì <pot@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.





      reply	other threads:[~2022-05-16 14:24 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-01-16 15:20 bug#25458: 25.1; tar mode does not handle compressed archives without specific extensions Francesco Potortì
2022-05-13 14:12 ` Lars Ingebrigtsen
2022-05-13 14:18   ` Eli Zaretskii
2022-05-13 14:45     ` Francesco Potortì
2022-05-13 15:53     ` Lars Ingebrigtsen
2022-05-13 16:02       ` Eli Zaretskii
2022-05-13 22:25         ` Francesco Potortì
2022-05-14  6:15           ` Eli Zaretskii
2022-05-13 14:36   ` Francesco Potortì
2022-05-13 15:54     ` Lars Ingebrigtsen
2022-05-13 22:18       ` Francesco Potortì
2022-05-14  1:13         ` Lars Ingebrigtsen
2022-05-16 14:24           ` Francesco Potortì [this message]

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=87pmkdmu7n.fsf@tucano.isti.cnr.it \
    --to=pot@gnu.org \
    --cc=25458@debbugs.gnu.org \
    --cc=larsi@gnus.org \
    /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).