From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Francesco =?UTF-8?Q?Potort=C3=AC?= Newsgroups: gmane.emacs.bugs Subject: bug#25458: 25.1; tar mode does not handle compressed archives without specific extensions Date: Mon, 16 May 2022 16:24:12 +0200 Organization: The GNU project Message-ID: <87pmkdmu7n.fsf@tucano.isti.cnr.it> References: <87o801serb.fsf@gnus.org> <87v8u9mrdn.fsf@tucano.isti.cnr.it> <87wnep1l84.fsf@gnus.org> <87sfpdm600.fsf@tucano.isti.cnr.it> <87fslcex1n.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="40158"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 25458@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon May 16 16:25:15 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nqbes-000AF3-W6 for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 16 May 2022 16:25:14 +0200 Original-Received: from localhost ([::1]:40712 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nqber-0008VR-EK for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 16 May 2022 10:25:13 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44950) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nqbeg-0008V9-3x for bug-gnu-emacs@gnu.org; Mon, 16 May 2022 10:25:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:60811) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nqbef-00046I-RA for bug-gnu-emacs@gnu.org; Mon, 16 May 2022 10:25:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nqbef-0001aU-KS for bug-gnu-emacs@gnu.org; Mon, 16 May 2022 10:25:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Francesco =?UTF-8?Q?Potort=C3=AC?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 16 May 2022 14:25:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 25458 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 25458-submit@debbugs.gnu.org id=B25458.16527110586033 (code B ref 25458); Mon, 16 May 2022 14:25:01 +0000 Original-Received: (at 25458) by debbugs.gnu.org; 16 May 2022 14:24:18 +0000 Original-Received: from localhost ([127.0.0.1]:54706 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nqbdx-0001ZE-LR for submit@debbugs.gnu.org; Mon, 16 May 2022 10:24:17 -0400 Original-Received: from plesklin7.if1.ehiweb.it ([79.98.45.16]:39849) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nqbdv-0001Z3-JW for 25458@debbugs.gnu.org; Mon, 16 May 2022 10:24:15 -0400 Original-Received: from tucano.isti.cnr.it (tucano.isti.cnr.it [146.48.81.102]) by plesklin7.if1.ehiweb.it (Postfix) with ESMTPSA id 799C5109763; Mon, 16 May 2022 16:24:12 +0200 (CEST) In-Reply-To: <87fslcex1n.fsf@gnus.org> (larsi@gnus.org) X-fingerprint: 4B02 6187 5C03 D6B1 2E31 7666 09DF 2DC9 BE21 6115 X-PPP-Message-ID: <20220516142412.16028.65151@plesklin7.if1.ehiweb.it> X-PPP-Vhost: potorti.it X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:232393 Archived-At: >Francesco Potortì 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.