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: Sat, 14 May 2022 00:18:07 +0200 Organization: The GNU project Message-ID: <87sfpdm600.fsf@tucano.isti.cnr.it> References: <87o801serb.fsf@gnus.org> <87v8u9mrdn.fsf@tucano.isti.cnr.it> <87wnep1l84.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="1071"; 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 Sat May 14 00:19:14 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 1npdcv-00006j-Mt for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 14 May 2022 00:19:13 +0200 Original-Received: from localhost ([::1]:54380 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1npdcu-000160-9d for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 13 May 2022 18:19:12 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47296) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1npdck-00015s-Mp for bug-gnu-emacs@gnu.org; Fri, 13 May 2022 18:19:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:51349) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1npdck-0004DR-E0 for bug-gnu-emacs@gnu.org; Fri, 13 May 2022 18:19:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1npdck-0005ut-7I for bug-gnu-emacs@gnu.org; Fri, 13 May 2022 18:19:02 -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: Fri, 13 May 2022 22:19:02 +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.165248029322661 (code B ref 25458); Fri, 13 May 2022 22:19:02 +0000 Original-Received: (at 25458) by debbugs.gnu.org; 13 May 2022 22:18:13 +0000 Original-Received: from localhost ([127.0.0.1]:45246 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1npdbx-0005tR-5S for submit@debbugs.gnu.org; Fri, 13 May 2022 18:18:13 -0400 Original-Received: from plesklin7.if1.ehiweb.it ([79.98.45.16]:33011) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1npdbv-0005tG-3X for 25458@debbugs.gnu.org; Fri, 13 May 2022 18:18:11 -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 D815E1094D5; Sat, 14 May 2022 00:18:07 +0200 (CEST) In-Reply-To: <87wnep1l84.fsf@gnus.org> (larsi@gnus.org) X-fingerprint: 4B02 6187 5C03 D6B1 2E31 7666 09DF 2DC9 BE21 6115 X-PPP-Message-ID: <20220513221807.13214.51053@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:232199 Archived-At: >>>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.