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: Fri, 13 May 2022 16:36:20 +0200 Organization: The GNU project Message-ID: <87v8u9mrdn.fsf@tucano.isti.cnr.it> References: <87o801serb.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="709"; 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 Fri May 13 16:37:40 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 1npWQF-000AZY-T0 for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 13 May 2022 16:37:39 +0200 Original-Received: from localhost ([::1]:34480 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1npWQC-0002Bs-M4 for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 13 May 2022 10:37:36 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58004) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1npWPe-0002AY-Tl for bug-gnu-emacs@gnu.org; Fri, 13 May 2022 10:37:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:50607) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1npWPe-0005Jk-3r for bug-gnu-emacs@gnu.org; Fri, 13 May 2022 10:37:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1npWPe-0007Jd-1d for bug-gnu-emacs@gnu.org; Fri, 13 May 2022 10:37: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 14:37: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.165245258528057 (code B ref 25458); Fri, 13 May 2022 14:37:02 +0000 Original-Received: (at 25458) by debbugs.gnu.org; 13 May 2022 14:36:25 +0000 Original-Received: from localhost ([127.0.0.1]:44504 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1npWP2-0007IS-Kr for submit@debbugs.gnu.org; Fri, 13 May 2022 10:36:24 -0400 Original-Received: from plesklin7.if1.ehiweb.it ([79.98.45.16]:46790) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1npWP1-0007ID-B9 for 25458@debbugs.gnu.org; Fri, 13 May 2022 10:36:23 -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 9E00B108359; Fri, 13 May 2022 16:36:20 +0200 (CEST) In-Reply-To: <87o801serb.fsf@gnus.org> (larsi@gnus.org) X-fingerprint: 4B02 6187 5C03 D6B1 2E31 7666 09DF 2DC9 BE21 6115 X-PPP-Message-ID: <20220513143620.27960.3358@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:232157 Archived-At: I am not saying that it's worth the trouble, and anyway I would not have the time to help working on it, sorry. However, here is some food for thought. >> By looking at the comments on top of tar-mode.el, I get that it does not >> rely on tar to get the archive listing, but reads the archive itself, so >> correcting this problem does not appear straightforward to me... > >(I'm going through old bug reports that unfortunately weren't resolved >at the time.) > >If Emacs had code to automatically recognise compressed data, I guess >tar-mode could decompress the buffer before it started working on it. >(Does Emacs have that? I guess we could add stuff to >`magic-fallback-mode-alist' or something in that region...) > >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. >And finally -- is this a thing that actually exists in the wild? I >don't think I've ever seen a compressed tar file that didn't have a name >that indicated how it was compressed. Hm, maybe it's only me, but I routinely produce tar files without any compression suffix, as tar automatically does the right thing with compressed archives (it has done for many years now). I think that adding compression suffixes to tar files is (should be?) a thing of the past. >So due to both the unclear semantics and that I doubt the utility, I'm >inclined to close this as a "wontfix". Anybody got any opinions? I definitely think that it would be useful, and the semantics is clear at least to me (I may miss things, obviously). However, that needs someone implementing it who thinks the same... -- fp