GNU bug report logs - #25458
25.1; tar mode does not handle compressed archives without specific extensions

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Severity: wishlist; Reported by: Francesco Potortì <pot@HIDDEN>; dated Mon, 16 Jan 2017 15:21:01 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.
Removed tag(s) moreinfo. Request was from Lars Ingebrigtsen <larsi@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 25458 <at> debbugs.gnu.org:


Received: (at 25458) by debbugs.gnu.org; 16 May 2022 14:24:18 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon May 16 10:24:17 2022
Received: from localhost ([127.0.0.1]:54706 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1nqbdx-0001ZE-LR
	for submit <at> debbugs.gnu.org; Mon, 16 May 2022 10:24:17 -0400
Received: from plesklin7.if1.ehiweb.it ([79.98.45.16]:39849)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <pot@HIDDEN>) id 1nqbdv-0001Z3-JW
 for 25458 <at> debbugs.gnu.org; Mon, 16 May 2022 10:24:15 -0400
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)
Message-Id: <87pmkdmu7n.fsf@HIDDEN>
From: =?utf-8?Q?Francesco_Potort=C3=AC?= <pot@HIDDEN>
Date: Mon, 16 May 2022 16:24:12 +0200
To: Lars Ingebrigtsen <larsi@HIDDEN>
In-Reply-To: <87fslcex1n.fsf@HIDDEN> (larsi@HIDDEN)
Subject: Re: bug#25458: 25.1; tar mode does not handle compressed archives
 without specific extensions
References: <E1cT957-0008A1-Ps@HIDDEN> <87o801serb.fsf@HIDDEN>
 <87v8u9mrdn.fsf@HIDDEN> <87wnep1l84.fsf@HIDDEN>
 <87sfpdm600.fsf@HIDDEN> <87fslcex1n.fsf@HIDDEN>
Organization: The GNU project
X-fingerprint: 4B02 6187 5C03 D6B1 2E31  7666 09DF 2DC9 BE21 6115
MIME-version: 1.0
Content-type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-PPP-Message-ID: <20220516142412.16028.65151@HIDDEN>
X-PPP-Vhost: potorti.it
X-Spam-Score: 1.0 (+)
X-Debbugs-Envelope-To: 25458
Cc: 25458 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.0 (/)

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




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#25458; Package emacs. Full text available.

Message received at 25458 <at> debbugs.gnu.org:


Received: (at 25458) by debbugs.gnu.org; 14 May 2022 06:15:19 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat May 14 02:15:19 2022
Received: from localhost ([127.0.0.1]:45598 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1npl3f-0001sz-In
	for submit <at> debbugs.gnu.org; Sat, 14 May 2022 02:15:19 -0400
Received: from eggs.gnu.org ([209.51.188.92]:34890)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1npl3e-0001sk-BG
 for 25458 <at> debbugs.gnu.org; Sat, 14 May 2022 02:15:18 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e]:50600)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1npl3Y-0000LJ-02; Sat, 14 May 2022 02:15:12 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From:
 Date; bh=3eKwTup+jFUk9WZZyxRnscish56R7VjshoEArVPJDCA=; b=laybLSN9BJdBsWkwwHlG
 XIgxeQXT87LIYRAYp+bLpkpzqJ+bj0FTHh0qotIt3AprNPCkZwe6H1HTgOLuhsrU5l69mZxVL1NQb
 2xjvjJarxMA0N514PAI9L4wlzmTvxgiV1RPVwzGr/x8xxbHlPa2L+RQDZ50jMIX9mg9QnkyPpy1nn
 imB4O5wjqCkcNwQouIUrkn+nL7EgilYXQDdDniG6eNmySdIYE9ppuxB6GF/2L+pGVsB9DOXZK/+hg
 Q4zXREpQKknmU8l/VWYg5MV6MwVbNp9PpDtuRhGX0aBMAVDHdMGqArwOO/hGYvjwWd8UB3vCsGtUN
 ct1pPgalxDcneA==;
Received: from [87.69.77.57] (port=4888 helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1npl3X-0006VX-Br; Sat, 14 May 2022 02:15:11 -0400
Date: Sat, 14 May 2022 09:15:19 +0300
Message-Id: <83wneoljwo.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Francesco =?utf-8?Q?Potort=C3=AC?= <pot@HIDDEN>
In-Reply-To: <87r14xm5nj.fsf@HIDDEN> (message from Francesco
 =?utf-8?Q?Potort=C3=AC?= on Sat, 14 May 2022 00:25:36 +0200)
Subject: Re: bug#25458: 25.1; tar mode does not handle compressed archives
 without specific extensions
References: <E1cT957-0008A1-Ps@HIDDEN> <87o801serb.fsf@HIDDEN>
 <83ilq9ms6n.fsf@HIDDEN> <871qwx2zv8.fsf@HIDDEN> <838rr5mnej.fsf@HIDDEN>
 <87r14xm5nj.fsf@HIDDEN>
MIME-version: 1.0
Content-type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 25458
Cc: 25458 <at> debbugs.gnu.org, larsi@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> From: Francesco Potortì <pot@HIDDEN>
> Date: Sat, 14 May 2022 00:25:36 +0200
> Cc: 25458 <at> debbugs.gnu.org,
> 	Lars Ingebrigtsen <larsi@HIDDEN>
> 
> >Then I guess I don't understand what is the problem we are asked to
> >fix here.  Francesco, can you explain?
> 
> If I read foo.tar into Emacs, where foo.tar was created with
> 
> $ tar -Jcf foo.tar any.file.name
> 
> then Emacs does not recognise it as a tar file.  Instead, it should look at it, understand that it is a compressed tar file, uncompress and parse it.  If asked to save it after modification, it should compress it before saving, using the same compression method that was used in the first place.

You could do that by using magic-mode-alist, I guess?  It's just a
matter of writing the FUNCTION to put into the association for the
magic signatures of the compression methods you want to support.

FWIW, I don't think Emacs should do this by default, because looking
at the file's contents before looking at its file-name extension will
slow down visiting files, and having a .tar file that is actually a
.tar.xz file is quite unusual in the wild.  So this sounds like your
personal preference, and therefore customizing magic-mode-alist for
you sounds like TRT to fulfill your personal needs.

> Compression would be transparent to Emacs if it relied on Tar for parsing the tar file, because Tar manages compressed files transparently.  But since Emacs parses the tar file itself, it should behave as Tar does, that is, uncompress the file if it was compressed in the first place, and recompress when saving it after editing.

I don't think it's a good idea for Emacs to require Tar for visiting
archives.  For starters, Tar is not always available, and when it is
available, it doesn't always support all the compression methods
people could use.  We could use bsdtar (from libarchive), which
supports every archive format and compression method under the sun,
but its availability is even less than that of Tar.

So I think what we have now hits a good balance between functionality
in the popular use cases and reliability.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#25458; Package emacs. Full text available.

Message received at 25458 <at> debbugs.gnu.org:


Received: (at 25458) by debbugs.gnu.org; 14 May 2022 01:13:38 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri May 13 21:13:38 2022
Received: from localhost ([127.0.0.1]:45339 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1npgLi-0002lj-Hg
	for submit <at> debbugs.gnu.org; Fri, 13 May 2022 21:13:38 -0400
Received: from quimby.gnus.org ([95.216.78.240]:43536)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <larsi@HIDDEN>) id 1npgLg-0002lT-0h
 for 25458 <at> debbugs.gnu.org; Fri, 13 May 2022 21:13:36 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org;
 s=20200322; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID
 :In-Reply-To:Date:References:Subject:Cc:To:From:Sender:Reply-To:Content-ID:
 Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc
 :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe:
 List-Post:List-Owner:List-Archive;
 bh=/Mqp5bfyAARR2+WWvOuH2koAkk80GGefbevmT+I7rtc=; b=gpSZX9psrGXhL9+oiXD071REgH
 KD5iRkYssfGRvZpBS6qhYLOYDxdWVR4l+yVctGGqrg3jgqjWTlYaJmcy9CV8gmNPt6TOthj4Pp6P4
 MQv4M/pijGfZnSXjvRk76/1ohSN43KFUT0vtRJiHyX3DeNmn/a5nxYWmjcfkH9672DnE=;
Received: from [84.212.220.105] (helo=xo)
 by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.92) (envelope-from <larsi@HIDDEN>)
 id 1npgLV-0006i7-9i; Sat, 14 May 2022 03:13:29 +0200
From: Lars Ingebrigtsen <larsi@HIDDEN>
To: Francesco =?utf-8?Q?Potort=C3=AC?= <pot@HIDDEN>
Subject: Re: bug#25458: 25.1; tar mode does not handle compressed archives
 without specific extensions
References: <E1cT957-0008A1-Ps@HIDDEN> <87o801serb.fsf@HIDDEN>
 <87v8u9mrdn.fsf@HIDDEN> <87wnep1l84.fsf@HIDDEN>
 <87sfpdm600.fsf@HIDDEN>
Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwAgMAAAAqbBEUAAAAAXNSR0IArs4c6QAAAAlQTFRF
 3ufvRUxR////ksLprwAAAAFiS0dEAmYLfGQAAAAJcEhZcwAACxIAAAsSAdLdfvwAAAAHdElNRQfm
 BQ4BDBp043Y9AAAAXElEQVQoz83NMQ6AMAiFYV4iuwv36RFsUu5/FVvT4hts7GIi0/8NgMgvRxk2
 hVODoQFksYAmeMBAkM0IuxNwo9TD2VN/ftSVgZYL0CmwBrlQGP4Ee0G3BqIa/DOcpDtIBG8aDNYA
 AABaZVhJZk1NACoAAAAIAAUBEgADAAAAAQABAAABGgAFAAAAAQAAAEoBGwAFAAAAAQAAAFIBKAAD
 AAAAAQACAAACEwADAAAAAQABAAAAAAAAAAAASAAAAAEAAABIAAAAAR9S9zQAAAAldEVYdGRhdGU6
 Y3JlYXRlADIwMjItMDUtMTRUMDE6MTI6MjYrMDA6MDB2yUEzAAAAJXRFWHRkYXRlOm1vZGlmeQAy
 MDIyLTA1LTE0VDAxOjEyOjI2KzAwOjAwB5T5jwAAABd0RVh0ZXhpZjpZQ2JDclBvc2l0aW9uaW5n
 ADGsD4BjAAAAOHRFWHRpY2M6Y29weXJpZ2h0AENvcHlyaWdodCAoYykgMTk5OCBIZXdsZXR0LVBh
 Y2thcmQgQ29tcGFueflXeTcAAAAhdEVYdGljYzpkZXNjcmlwdGlvbgBzUkdCIElFQzYxOTY2LTIu
 MVet2kcAAAAmdEVYdGljYzptYW51ZmFjdHVyZXIASUVDIGh0dHA6Ly93d3cuaWVjLmNoHH8ATAAA
 ADd0RVh0aWNjOm1vZGVsAElFQyA2MTk2Ni0yLjEgRGVmYXVsdCBSR0IgY29sb3VyIHNwYWNlIC0g
 c1JHQkRTSKkAAAAASUVORK5CYII=
X-Now-Playing: Floorplan's _Supernatural_: "Fiyaaaa!"
Date: Sat, 14 May 2022 03:13:24 +0200
In-Reply-To: <87sfpdm600.fsf@HIDDEN> ("Francesco =?utf-8?Q?Pot?=
 =?utf-8?Q?ort=C3=AC=22's?=
 message of "Sat, 14 May 2022 00:18:07 +0200")
Message-ID: <87fslcex1n.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 @@CONTACT_ADDRESS@@ for details.
 
 Content preview:  Francesco Potortì <pot@HIDDEN> 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. 
 
 Content analysis details:   (-2.9 points, 5.0 required)
 
  pts rule name              description
 ---- ---------------------- --------------------------------------------------
 -1.0 ALL_TRUSTED            Passed through trusted hosts only via SMTP
 -1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%
                             [score: 0.0000]
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 25458
Cc: 25458 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

Francesco Potort=C3=AC <pot@HIDDEN> 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.

--=20
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#25458; Package emacs. Full text available.

Message received at 25458 <at> debbugs.gnu.org:


Received: (at 25458) by debbugs.gnu.org; 13 May 2022 22:25:40 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri May 13 18:25:40 2022
Received: from localhost ([127.0.0.1]:45251 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1npdj9-00067P-VX
	for submit <at> debbugs.gnu.org; Fri, 13 May 2022 18:25:40 -0400
Received: from plesklin7.if1.ehiweb.it ([79.98.45.16]:33673)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <pot@HIDDEN>) id 1npdj8-00067G-3y
 for 25458 <at> debbugs.gnu.org; Fri, 13 May 2022 18:25:38 -0400
Received: from tucano.isti.cnr.it (tucano.isti.cnr.it [146.48.81.102])
 by plesklin7.if1.ehiweb.it (Postfix) with ESMTPSA id 130B71094D5;
 Sat, 14 May 2022 00:25:37 +0200 (CEST)
Message-Id: <87r14xm5nj.fsf@HIDDEN>
From: =?utf-8?Q?Francesco_Potort=C3=AC?= <pot@HIDDEN>
Date: Sat, 14 May 2022 00:25:36 +0200
To: Eli Zaretskii <eliz@HIDDEN>
In-Reply-To: <838rr5mnej.fsf@HIDDEN> (eliz@HIDDEN)
Subject: Re: bug#25458: 25.1; tar mode does not handle compressed archives
 without specific extensions
References: <E1cT957-0008A1-Ps@HIDDEN> <87o801serb.fsf@HIDDEN>
 <83ilq9ms6n.fsf@HIDDEN> <871qwx2zv8.fsf@HIDDEN> <838rr5mnej.fsf@HIDDEN>
Organization: The GNU project
X-fingerprint: 4B02 6187 5C03 D6B1 2E31  7666 09DF 2DC9 BE21 6115
X-PPP-Message-ID: <20220513222537.17003.48388@HIDDEN>
X-PPP-Vhost: potorti.it
X-Spam-Score: 1.0 (+)
X-Debbugs-Envelope-To: 25458
Cc: 25458 <at> debbugs.gnu.org, Lars Ingebrigtsen <larsi@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.0 (/)

>> From: Lars Ingebrigtsen <larsi@HIDDEN>
>> Cc: pot@HIDDEN,  25458 <at> debbugs.gnu.org
>> Date: Fri, 13 May 2022 17:53:15 +0200
>> 
>> Eli Zaretskii <eliz@HIDDEN> writes:
>> 
>> > But decompressing means, for most compression types, running an
>> > external program on the file.  Or does OP suggest that we link Emacs
>> > against libbz2, liblz4, liblzma, etc. to have these decompression
>> > methods available in core?
>> 
>> No, it would work just like when you read a tar.gz file -- we use
>> external decompressors for that, too, even if we then parse the
>> resulting tar file ourselves. 
>
>Then I guess I don't understand what is the problem we are asked to
>fix here.  Francesco, can you explain?

If I read foo.tar into Emacs, where foo.tar was created with

$ tar -Jcf foo.tar any.file.name

then Emacs does not recognise it as a tar file.  Instead, it should look at it, understand that it is a compressed tar file, uncompress and parse it.  If asked to save it after modification, it should compress it before saving, using the same compression method that was used in the first place.

Compression would be transparent to Emacs if it relied on Tar for parsing the tar file, because Tar manages compressed files transparently.  But since Emacs parses the tar file itself, it should behave as Tar does, that is, uncompress the file if it was compressed in the first place, and recompress when saving it after editing.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#25458; Package emacs. Full text available.

Message received at 25458 <at> debbugs.gnu.org:


Received: (at 25458) by debbugs.gnu.org; 13 May 2022 22:18:13 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri May 13 18:18:13 2022
Received: from localhost ([127.0.0.1]:45246 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1npdbx-0005tR-5S
	for submit <at> debbugs.gnu.org; Fri, 13 May 2022 18:18:13 -0400
Received: from plesklin7.if1.ehiweb.it ([79.98.45.16]:33011)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <pot@HIDDEN>) id 1npdbv-0005tG-3X
 for 25458 <at> debbugs.gnu.org; Fri, 13 May 2022 18:18:11 -0400
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)
Message-Id: <87sfpdm600.fsf@HIDDEN>
From: =?utf-8?Q?Francesco_Potort=C3=AC?= <pot@HIDDEN>
Date: Sat, 14 May 2022 00:18:07 +0200
To: Lars Ingebrigtsen <larsi@HIDDEN>
In-Reply-To: <87wnep1l84.fsf@HIDDEN> (larsi@HIDDEN)
Subject: Re: bug#25458: 25.1; tar mode does not handle compressed archives
 without specific extensions
References: <E1cT957-0008A1-Ps@HIDDEN> <87o801serb.fsf@HIDDEN>
 <87v8u9mrdn.fsf@HIDDEN> <87wnep1l84.fsf@HIDDEN>
Organization: The GNU project
X-fingerprint: 4B02 6187 5C03 D6B1 2E31  7666 09DF 2DC9 BE21 6115
MIME-version: 1.0
Content-type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-PPP-Message-ID: <20220513221807.13214.51053@HIDDEN>
X-PPP-Vhost: potorti.it
X-Spam-Score: 1.0 (+)
X-Debbugs-Envelope-To: 25458
Cc: 25458 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.0 (/)

>>>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.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#25458; Package emacs. Full text available.

Message received at 25458 <at> debbugs.gnu.org:


Received: (at 25458) by debbugs.gnu.org; 13 May 2022 16:02:24 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri May 13 12:02:24 2022
Received: from localhost ([127.0.0.1]:44830 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1npXkF-0006Su-Pf
	for submit <at> debbugs.gnu.org; Fri, 13 May 2022 12:02:23 -0400
Received: from eggs.gnu.org ([209.51.188.92]:57892)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1npXkE-0006Sh-E0
 for 25458 <at> debbugs.gnu.org; Fri, 13 May 2022 12:02:22 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e]:36108)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1npXjz-00033A-4j; Fri, 13 May 2022 12:02:17 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date:
 mime-version; bh=RjcB2rw1p+iP0xxg/gKzq6i9VNLmPgoV7HgCcAST5c4=; b=F/haCod7hKGW
 aMtWlgCl4xrn8zzDfAcHj6XLCrtIXTQKlfdJAdLOHRjrbw+orC8289qrGcx0ccU/QaSHm1OaYaeJj
 V5nLTZFU1t/c1diJaj1pAcYAKz1iy1XBIuDsLLokaGKHyZh4QdMQYPetOGMJedVJulQRyzILhYE/v
 pToMdqaDAb3ZdCqJq/poIQUt2jIsFPgFj1gIFw+rVJzUvhbSVtwp5468M27wt5s1aTX+RFhfxxGWJ
 0bHKOEHrfXHvnWljak0i00wpubf5M/SW9H4DM9BDuzfxesSYUrAJcDaKnuGlPxj2CQqpjPx89fNj0
 8pV5bovor/EGyQRVGkqDeg==;
Received: from [87.69.77.57] (port=4618 helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1npXjx-0007AM-H7; Fri, 13 May 2022 12:02:06 -0400
Date: Fri, 13 May 2022 19:02:12 +0300
Message-Id: <838rr5mnej.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Lars Ingebrigtsen <larsi@HIDDEN>
In-Reply-To: <871qwx2zv8.fsf@HIDDEN> (message from Lars Ingebrigtsen on Fri, 
 13 May 2022 17:53:15 +0200)
Subject: Re: bug#25458: 25.1; tar mode does not handle compressed archives
 without specific extensions
References: <E1cT957-0008A1-Ps@HIDDEN> <87o801serb.fsf@HIDDEN>
 <83ilq9ms6n.fsf@HIDDEN> <871qwx2zv8.fsf@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 25458
Cc: 25458 <at> debbugs.gnu.org, pot@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> From: Lars Ingebrigtsen <larsi@HIDDEN>
> Cc: pot@HIDDEN,  25458 <at> debbugs.gnu.org
> Date: Fri, 13 May 2022 17:53:15 +0200
> 
> Eli Zaretskii <eliz@HIDDEN> writes:
> 
> > But decompressing means, for most compression types, running an
> > external program on the file.  Or does OP suggest that we link Emacs
> > against libbz2, liblz4, liblzma, etc. to have these decompression
> > methods available in core?
> 
> No, it would work just like when you read a tar.gz file -- we use
> external decompressors for that, too, even if we then parse the
> resulting tar file ourselves. 

Then I guess I don't understand what is the problem we are asked to
fix here.  Francesco, can you explain?




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#25458; Package emacs. Full text available.

Message received at 25458 <at> debbugs.gnu.org:


Received: (at 25458) by debbugs.gnu.org; 13 May 2022 15:55:09 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri May 13 11:55:09 2022
Received: from localhost ([127.0.0.1]:44784 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1npXdE-0006BC-Uw
	for submit <at> debbugs.gnu.org; Fri, 13 May 2022 11:55:09 -0400
Received: from quimby.gnus.org ([95.216.78.240]:39040)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <larsi@HIDDEN>) id 1npXd6-00069y-4n
 for 25458 <at> debbugs.gnu.org; Fri, 13 May 2022 11:55:07 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org;
 s=20200322; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID
 :In-Reply-To:Date:References:Subject:Cc:To:From:Sender:Reply-To:Content-ID:
 Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc
 :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe:
 List-Post:List-Owner:List-Archive;
 bh=XmQoBVu+ozyyUW2UTzqO1blBkzngVdrDvlFv6PaJi1E=; b=WvOcz/DwAorbKAgVajZZDYiNYo
 XaDE+kcnBLboPxNPP0nEaepCNcquhKSpKrmOlu79LkVqS+cncJF7eP/tQaPVCBDHmltGqUZYSrhzt
 rxjC2lYdTGaHu0Sv95EXNVjdzIoEV6dQLwMFA+ttqqGnCetxW4Wdqf7rtb+ZBN5hAd5E=;
Received: from [84.212.220.105] (helo=xo)
 by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.92) (envelope-from <larsi@HIDDEN>)
 id 1npXcx-0002EI-Nr; Fri, 13 May 2022 17:54:54 +0200
From: Lars Ingebrigtsen <larsi@HIDDEN>
To: Francesco =?utf-8?Q?Potort=C3=AC?= <pot@HIDDEN>
Subject: Re: bug#25458: 25.1; tar mode does not handle compressed archives
 without specific extensions
References: <E1cT957-0008A1-Ps@HIDDEN> <87o801serb.fsf@HIDDEN>
 <87v8u9mrdn.fsf@HIDDEN>
Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj
 SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAGFBMVEUFBAUnHRkyKylR
 RDpGNzGVg25hVEv///945FKsAAAAAWJLR0QHFmGI6wAAAAd0SU1FB+YFDQ8eE23gPK4AAAGqSURB
 VDjLjVRNk4IwDG1x9WwqeoZSOCMwnBU7nld39OzCbv//T9ikfFk7O2NmUNqXvCQvLYxxsMYA1swx
 2a/B2SzwSXQDoHTzvB980a84d3UXuzTZgzEMQFBVDrB8TK/cAba5v2dtETHWyFN1OpXaA/P+b7V+
 BQqhVdlVNbzso6Pt3Av438JT3SaFjjzgCLD7jmNlF0rOlI3UaSdhRzuZaUmjAeQglZSS3m4d7Qmv
 p23be2a2t0CKCMulCDM4rK59cr5phSR123Ecd2I8YFV9rfw6AjfiAkyMD06Q78dkvw8n9yx/+kli
 YWY+6TYAF6LSZYVsOPRgAnaXmecDlxOwIirIjKmrCk9SOgNu8vQwVeVOZ3Ucy7tZdZUxplVIFRSj
 x53QvF8sMPo8cC1tUWWhuqpJaqpyEGuX9+OAGECQXNxQCOehP/89gzicFZiFCqPsZ7wQygoCyegQ
 j/5SWiBmb5uI7RH1InhhuaR3ZIJo6NyjSqpSN9oeuMkiv8We/hhaBXygIElrs6evQPGMCHVg/MBt
 q84d3JiccfwsSKm0ccnQjYs1p3v4riB/wnw3K2tbAgAAAAAldEVYdGRhdGU6Y3JlYXRlADIwMjIt
 MDUtMTNUMTU6MzA6MTkrMDA6MDDy2CxQAAAAJXRFWHRkYXRlOm1vZGlmeQAyMDIyLTA1LTEzVDE1
 OjMwOjE5KzAwOjAwg4WU7AAAAABJRU5ErkJggg==
X-Now-Playing: Colourbox's _Colourbox (PolyGram)_: "Nation"
Date: Fri, 13 May 2022 17:54:51 +0200
In-Reply-To: <87v8u9mrdn.fsf@HIDDEN> ("Francesco =?utf-8?Q?Pot?=
 =?utf-8?Q?ort=C3=AC=22's?=
 message of "Fri, 13 May 2022 16:36:20 +0200")
Message-ID: <87wnep1l84.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 @@CONTACT_ADDRESS@@ for details.
 
 Content preview:  Francesco Potortì <pot@HIDDEN> writes: >>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. [...] 
 
 Content analysis details:   (-2.9 points, 5.0 required)
 
  pts rule name              description
 ---- ---------------------- --------------------------------------------------
 -1.0 ALL_TRUSTED            Passed through trusted hosts only via SMTP
 -1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%
                             [score: 0.0000]
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 25458
Cc: 25458 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

Francesco Potort=C3=AC <pot@HIDDEN> writes:

>>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.

You can load bar.gz into a buffer, and write out bar, and Emacs won't
compress that.

--=20
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#25458; Package emacs. Full text available.

Message received at 25458 <at> debbugs.gnu.org:


Received: (at 25458) by debbugs.gnu.org; 13 May 2022 15:53:26 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri May 13 11:53:26 2022
Received: from localhost ([127.0.0.1]:44766 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1npXba-00066a-8J
	for submit <at> debbugs.gnu.org; Fri, 13 May 2022 11:53:26 -0400
Received: from quimby.gnus.org ([95.216.78.240]:39022)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <larsi@HIDDEN>) id 1npXbZ-00066K-CK
 for 25458 <at> debbugs.gnu.org; Fri, 13 May 2022 11:53:25 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org;
 s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date:
 References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding:
 Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender:
 Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:
 List-Subscribe:List-Post:List-Owner:List-Archive;
 bh=m/off+QCwODDRck1nKkoDOIvREAZcF+kOg4AtFtJmTw=; b=fk5NozlcICClPWnGcUTLLxMLiH
 gGTB0IQc9HNa1wgnGmc3d5TKLzHFJoY/RtfaPIYOTA2qxBhNDuR0h4e/msptCkg/RoRI46ndNjUsk
 DX29e+1/+n6EtcLtBi4Uckrs0uAa6mOwdEnfzXbQHKJKIFF1YuWcSfdIF6TbZTSRLJvw=;
Received: from [84.212.220.105] (helo=xo)
 by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.92) (envelope-from <larsi@HIDDEN>)
 id 1npXbQ-0002Dv-J6; Fri, 13 May 2022 17:53:18 +0200
From: Lars Ingebrigtsen <larsi@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#25458: 25.1; tar mode does not handle compressed archives
 without specific extensions
References: <E1cT957-0008A1-Ps@HIDDEN> <87o801serb.fsf@HIDDEN>
 <83ilq9ms6n.fsf@HIDDEN>
Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj
 SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAGFBMVEUFBAUnHRkyKylR
 RDpGNzGVg25hVEv///945FKsAAAAAWJLR0QHFmGI6wAAAAd0SU1FB+YFDQ8eE23gPK4AAAGqSURB
 VDjLjVRNk4IwDG1x9WwqeoZSOCMwnBU7nld39OzCbv//T9ikfFk7O2NmUNqXvCQvLYxxsMYA1swx
 2a/B2SzwSXQDoHTzvB980a84d3UXuzTZgzEMQFBVDrB8TK/cAba5v2dtETHWyFN1OpXaA/P+b7V+
 BQqhVdlVNbzso6Pt3Av438JT3SaFjjzgCLD7jmNlF0rOlI3UaSdhRzuZaUmjAeQglZSS3m4d7Qmv
 p23be2a2t0CKCMulCDM4rK59cr5phSR123Ecd2I8YFV9rfw6AjfiAkyMD06Q78dkvw8n9yx/+kli
 YWY+6TYAF6LSZYVsOPRgAnaXmecDlxOwIirIjKmrCk9SOgNu8vQwVeVOZ3Ucy7tZdZUxplVIFRSj
 x53QvF8sMPo8cC1tUWWhuqpJaqpyEGuX9+OAGECQXNxQCOehP/89gzicFZiFCqPsZ7wQygoCyegQ
 j/5SWiBmb5uI7RH1InhhuaR3ZIJo6NyjSqpSN9oeuMkiv8We/hhaBXygIElrs6evQPGMCHVg/MBt
 q84d3JiccfwsSKm0ccnQjYs1p3v4riB/wnw3K2tbAgAAAAAldEVYdGRhdGU6Y3JlYXRlADIwMjIt
 MDUtMTNUMTU6MzA6MTkrMDA6MDDy2CxQAAAAJXRFWHRkYXRlOm1vZGlmeQAyMDIyLTA1LTEzVDE1
 OjMwOjE5KzAwOjAwg4WU7AAAAABJRU5ErkJggg==
X-Now-Playing: Colourbox's _Colourbox (PolyGram)_: "Nation"
Date: Fri, 13 May 2022 17:53:15 +0200
In-Reply-To: <83ilq9ms6n.fsf@HIDDEN> (Eli Zaretskii's message of "Fri, 13 May
 2022 17:18:56 +0300")
Message-ID: <871qwx2zv8.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 @@CONTACT_ADDRESS@@ for details.
 Content preview: Eli Zaretskii <eliz@HIDDEN> writes: > But decompressing
 means, 
 for most compression types, running an > external program on the file. Or
 does OP suggest that we link Emacs > against libbz2, liblz4, liblzma, etc.
 to have these decompress [...] 
 Content analysis details:   (-2.9 points, 5.0 required)
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
 -1.0 ALL_TRUSTED            Passed through trusted hosts only via SMTP
 -1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%
 [score: 0.0000]
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 25458
Cc: 25458 <at> debbugs.gnu.org, pot@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

Eli Zaretskii <eliz@HIDDEN> writes:

> But decompressing means, for most compression types, running an
> external program on the file.  Or does OP suggest that we link Emacs
> against libbz2, liblz4, liblzma, etc. to have these decompression
> methods available in core?

No, it would work just like when you read a tar.gz file -- we use
external decompressors for that, too, even if we then parse the
resulting tar file ourselves. 

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#25458; Package emacs. Full text available.

Message received at 25458 <at> debbugs.gnu.org:


Received: (at 25458) by debbugs.gnu.org; 13 May 2022 14:45:49 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri May 13 10:45:48 2022
Received: from localhost ([127.0.0.1]:44508 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1npWY8-0007aZ-KY
	for submit <at> debbugs.gnu.org; Fri, 13 May 2022 10:45:48 -0400
Received: from plesklin7.if1.ehiweb.it ([79.98.45.16]:47796)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <pot@HIDDEN>) id 1npWY6-0007aJ-Qh
 for 25458 <at> debbugs.gnu.org; Fri, 13 May 2022 10:45:47 -0400
Received: from tucano.isti.cnr.it (tucano.isti.cnr.it [146.48.81.102])
 by plesklin7.if1.ehiweb.it (Postfix) with ESMTPSA id A4D22108375;
 Fri, 13 May 2022 16:45:42 +0200 (CEST)
Message-Id: <87tu9tmqy1.fsf@HIDDEN>
From: =?utf-8?Q?Francesco_Potort=C3=AC?= <pot@HIDDEN>
Date: Fri, 13 May 2022 16:45:42 +0200
To: Eli Zaretskii <eliz@HIDDEN>
In-Reply-To: <83ilq9ms6n.fsf@HIDDEN> (eliz@HIDDEN)
Subject: Re: bug#25458: 25.1;
 tar mode does not handle compressed archives without specific
 extensions
References: <E1cT957-0008A1-Ps@HIDDEN> <87o801serb.fsf@HIDDEN>
 <83ilq9ms6n.fsf@HIDDEN>
Organization: The GNU project
X-fingerprint: 4B02 6187 5C03 D6B1 2E31  7666 09DF 2DC9 BE21 6115
MIME-version: 1.0
Content-type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-PPP-Message-ID: <20220513144542.32562.54614@HIDDEN>
X-PPP-Vhost: potorti.it
X-Spam-Score: 1.0 (+)
X-Debbugs-Envelope-To: 25458
Cc: 25458 <at> debbugs.gnu.org, Lars Ingebrigtsen <larsi@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.0 (/)

>> Cc: 25458 <at> debbugs.gnu.org
>> From: Lars Ingebrigtsen <larsi@HIDDEN>
>> Date: Fri, 13 May 2022 16:12:24 +0200
>> 
>> Francesco Potortì <pot@HIDDEN> writes:
>> 
>> > 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 decompressing means, for most compression types, running an
>external program on the file.  Or does OP suggest that we link Emacs
>against libbz2, liblz4, liblzma, etc. to have these decompression
>methods available in core?

If Emacs parses the tar file itself, without relying on tar, in principle it should read compressed tar files too.  It could do that by using external compression tools, or more efficiently by natively handling compression.

However, I think that in general this requires uncompressing the whole tar file in memory or on disk, which is against one of the main purposes stated in the inital comments of tar-mode.el.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#25458; Package emacs. Full text available.

Message received at 25458 <at> debbugs.gnu.org:


Received: (at 25458) by debbugs.gnu.org; 13 May 2022 14:36:25 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri May 13 10:36:24 2022
Received: from localhost ([127.0.0.1]:44504 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1npWP2-0007IS-Kr
	for submit <at> debbugs.gnu.org; Fri, 13 May 2022 10:36:24 -0400
Received: from plesklin7.if1.ehiweb.it ([79.98.45.16]:46790)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <pot@HIDDEN>) id 1npWP1-0007ID-B9
 for 25458 <at> debbugs.gnu.org; Fri, 13 May 2022 10:36:23 -0400
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)
Message-Id: <87v8u9mrdn.fsf@HIDDEN>
From: =?utf-8?Q?Francesco_Potort=C3=AC?= <pot@HIDDEN>
Date: Fri, 13 May 2022 16:36:20 +0200
To: Lars Ingebrigtsen <larsi@HIDDEN>
In-Reply-To: <87o801serb.fsf@HIDDEN> (larsi@HIDDEN)
Subject: Re: bug#25458: 25.1; tar mode does not handle compressed archives
 without specific extensions
References: <E1cT957-0008A1-Ps@HIDDEN> <87o801serb.fsf@HIDDEN>
Organization: The GNU project
X-fingerprint: 4B02 6187 5C03 D6B1 2E31  7666 09DF 2DC9 BE21 6115
MIME-version: 1.0
Content-type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-PPP-Message-ID: <20220513143620.27960.3358@HIDDEN>
X-PPP-Vhost: potorti.it
X-Spam-Score: 1.0 (+)
X-Debbugs-Envelope-To: 25458
Cc: 25458 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.0 (/)

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




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#25458; Package emacs. Full text available.

Message received at 25458 <at> debbugs.gnu.org:


Received: (at 25458) by debbugs.gnu.org; 13 May 2022 14:19:11 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri May 13 10:19:11 2022
Received: from localhost ([127.0.0.1]:44465 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1npW8N-0006jC-81
	for submit <at> debbugs.gnu.org; Fri, 13 May 2022 10:19:11 -0400
Received: from eggs.gnu.org ([209.51.188.92]:59992)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1npW87-0006ht-5W
 for 25458 <at> debbugs.gnu.org; Fri, 13 May 2022 10:19:09 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e]:33436)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1npW81-0002Gl-TZ; Fri, 13 May 2022 10:18:49 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From:
 Date; bh=9iMTBUyUazHYFc+EF/CNyn5cnRZCiY26hEkBPEYN8Ik=; b=LgRl4dcFqN2GWyH1a/VQ
 AT+DAIk0w0qwNUkZjXDmo8/ILCGK9gM3Ow47M0ryCz8hxpQJ7/X/xGpOVFe3lTSKPpLUZ4l3B++ff
 2QTEVh3iu3WusQUWVDi+eZqCXIsoqPy6T8hXdUcQoR7aclkfdISlUOvkuSAG9MYGaGjlSlK0VLLeH
 uTN8fymOcoaSB0zD/0rfDsleeRC+TvK6KHhxpvqTBph1fgPwjCRI+YeDebcvg+50nrj6ENh+6BzPB
 LzgwwM+AIE1N6/DBeeVemJvVG5kmR9D2I/x9A7Va8Rvn0iIo5IcPKCKRfheO5WhmuQMI1qIc/CPnp
 YNzI+vl++mYwsw==;
Received: from [87.69.77.57] (port=2245 helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1npW81-0006GP-Ci; Fri, 13 May 2022 10:18:49 -0400
Date: Fri, 13 May 2022 17:18:56 +0300
Message-Id: <83ilq9ms6n.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Lars Ingebrigtsen <larsi@HIDDEN>
In-Reply-To: <87o801serb.fsf@HIDDEN> (message from Lars Ingebrigtsen on Fri, 
 13 May 2022 16:12:24 +0200)
Subject: Re: bug#25458: 25.1;
 tar mode does not handle compressed archives without specific
 extensions
References: <E1cT957-0008A1-Ps@HIDDEN> <87o801serb.fsf@HIDDEN>
MIME-version: 1.0
Content-type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 25458
Cc: 25458 <at> debbugs.gnu.org, pot@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> Cc: 25458 <at> debbugs.gnu.org
> From: Lars Ingebrigtsen <larsi@HIDDEN>
> Date: Fri, 13 May 2022 16:12:24 +0200
> 
> Francesco Potortì <pot@HIDDEN> writes:
> 
> > 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 decompressing means, for most compression types, running an
external program on the file.  Or does OP suggest that we link Emacs
against libbz2, liblz4, liblzma, etc. to have these decompression
methods available in core?




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#25458; Package emacs. Full text available.
Added tag(s) moreinfo. Request was from Lars Ingebrigtsen <larsi@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 25458 <at> debbugs.gnu.org:


Received: (at 25458) by debbugs.gnu.org; 13 May 2022 14:12:42 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri May 13 10:12:42 2022
Received: from localhost ([127.0.0.1]:44436 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1npW26-0004L6-4S
	for submit <at> debbugs.gnu.org; Fri, 13 May 2022 10:12:42 -0400
Received: from quimby.gnus.org ([95.216.78.240]:37962)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <larsi@HIDDEN>) id 1npW21-0004Kd-RX
 for 25458 <at> debbugs.gnu.org; Fri, 13 May 2022 10:12:40 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org;
 s=20200322; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID
 :In-Reply-To:Date:References:Subject:Cc:To:From:Sender:Reply-To:Content-ID:
 Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc
 :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe:
 List-Post:List-Owner:List-Archive;
 bh=wo88+N9ND6dskHq5bTU9ya+v1chVpgmbpzGSQVEln2Y=; b=unY3fYKaNfY/OxDgdL/s0x1yv+
 sBEBgbjGLBZQUjRSRaNzGpE/cx2tZZp0tz3Tf4l5yO6qHFpudRwZOrRyapeN97hCKIWSxY2MC1+Dj
 nA7Kxj9QeeNHQJG7yhgaCe7PfVSQcl+yv7R3ein/l9WXLitFUhZojRIb6WAMcWXYN5Ig=;
Received: from [84.212.220.105] (helo=xo)
 by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.92) (envelope-from <larsi@HIDDEN>)
 id 1npW1r-0001RX-Q6; Fri, 13 May 2022 16:12:31 +0200
From: Lars Ingebrigtsen <larsi@HIDDEN>
To: Francesco =?utf-8?Q?Potort=C3=AC?= <pot@HIDDEN>
Subject: Re: bug#25458: 25.1; tar mode does not handle compressed archives
 without specific extensions
References: <E1cT957-0008A1-Ps@HIDDEN>
X-Now-Playing: Tom Tom Club's _Close To The Bone_: "This Is A Foxy World"
Date: Fri, 13 May 2022 16:12:24 +0200
In-Reply-To: <E1cT957-0008A1-Ps@HIDDEN> ("Francesco
 =?utf-8?Q?Potort=C3=AC=22's?=
 message of "Mon, 16 Jan 2017 16:20:25 +0100")
Message-ID: <87o801serb.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 @@CONTACT_ADDRESS@@ for details.
 
 Content preview:  Francesco Potortì <pot@HIDDEN> writes: > 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 straight [...] 
 
 Content analysis details:   (-2.9 points, 5.0 required)
 
  pts rule name              description
 ---- ---------------------- --------------------------------------------------
 -1.0 ALL_TRUSTED            Passed through trusted hosts only via SMTP
 -1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%
                             [score: 0.0000]
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 25458
Cc: 25458 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

Francesco Potort=C3=AC <pot@HIDDEN> writes:

> 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.

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.

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?

--=20
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#25458; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 16 Jan 2017 15:20:46 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Jan 16 10:20:46 2017
Received: from localhost ([127.0.0.1]:55862 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1cT95S-0005yC-0x
	for submit <at> debbugs.gnu.org; Mon, 16 Jan 2017 10:20:46 -0500
Received: from eggs.gnu.org ([208.118.235.92]:46809)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <pot@HIDDEN>) id 1cT95Q-0005y0-D1
 for submit <at> debbugs.gnu.org; Mon, 16 Jan 2017 10:20:44 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <pot@HIDDEN>) id 1cT95I-0000eh-WB
 for submit <at> debbugs.gnu.org; Mon, 16 Jan 2017 10:20:39 -0500
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-2.4 required=5.0 tests=BAYES_50,RP_MATCHES_RCVD,
 T_MANY_HDRS_LCASE autolearn=disabled version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:50056)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <pot@HIDDEN>) id 1cT95I-0000ea-Rg
 for submit <at> debbugs.gnu.org; Mon, 16 Jan 2017 10:20:36 -0500
Received: from eggs.gnu.org ([2001:4830:134:3::10]:37775)
 by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <pot@HIDDEN>)
 id 1cT95G-0005CG-LN
 for bug-gnu-emacs@HIDDEN; Mon, 16 Jan 2017 10:20:36 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <pot@HIDDEN>) id 1cT95D-0000dm-CL
 for bug-gnu-emacs@HIDDEN; Mon, 16 Jan 2017 10:20:34 -0500
Received: from blade3.isti.cnr.it ([194.119.192.19]:18382)
 by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <pot@HIDDEN>) id 1cT95D-0000dK-0V
 for bug-gnu-emacs@HIDDEN; Mon, 16 Jan 2017 10:20:31 -0500
Received: from tucano.isti.cnr.it ([146.48.81.102])
 by mx.isti.cnr.it (PMDF V6.5-x6 #1251)
 with ESMTPSA id <01Q9RB7KSEG4DHT4P3@HIDDEN> for bug-gnu-emacs@HIDDEN; 
 Mon, 16 Jan 2017 16:20:26 +0100 (MET)
Received: from pot by tucano.isti.cnr.it with local (Exim 4.88)
 (envelope-from <pot@HIDDEN>)	id 1cT957-0008A1-Ps	for bug-gnu-emacs@HIDDEN;
 Mon, 16 Jan 2017 16:20:26 +0100
Date: Mon, 16 Jan 2017 16:20:25 +0100
From: =?utf-8?Q?Francesco_Potort=C3=AC?= <pot@HIDDEN>
Subject: 25.1; tar mode does not handle compressed archives without specific
 extensions
To: bug-gnu-emacs@HIDDEN
Message-id: <E1cT957-0008A1-Ps@HIDDEN>
Organization: 
MIME-version: 1.0
Content-type: text/plain; charset=utf-8
Content-transfer-encoding: 8bit
X-INSM-ip-source: 146.48.81.102 Auth Done
X-fingerprint: 4B02 6187 5C03 D6B1 2E31  7666 09DF 2DC9 BE21 6115
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
 recognized.
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -8.2 (--------)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -8.2 (--------)

While tar handles compressed archives without regard to their file name,
Emacs cannot handle a compressed tar archive unless its file name
suggests the compression type.  To reproduce:

$ tar -Jcf test.tar any.file.name	# create a compressed tar file
$ tar -tvf test.tar			# verify that tar can read it
$ cp test.tar test.tar.xz		# create a copy

If you find the files test.tar and test.tar.gz from Emacs, it will
recognise the contents of the second file, but not those of the first.

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...


In GNU Emacs 25.1.1 (x86_64-pc-linux-gnu, X toolkit, Xaw3d scroll bars)
 of 2016-10-24, modified by Debian built on trouble
Windowing system distributor 'The X.Org Foundation', version 11.0.11900000
System Description:	Debian GNU/Linux testing (stretch)

Configured using:
 'configure --build x86_64-linux-gnu --prefix=/usr
 --sharedstatedir=/var/lib --libexecdir=/usr/lib
 --localstatedir=/var/lib --infodir=/usr/share/info
 --mandir=/usr/share/man --with-pop=yes
 --enable-locallisppath=/etc/emacs25:/etc/emacs:/usr/local/share/emacs/25.1/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/25.1/site-lisp:/usr/share/emacs/site-lisp
 --with-sound=alsa --build x86_64-linux-gnu --prefix=/usr
 --sharedstatedir=/var/lib --libexecdir=/usr/lib
 --localstatedir=/var/lib --infodir=/usr/share/info
 --mandir=/usr/share/man --with-pop=yes
 --enable-locallisppath=/etc/emacs25:/etc/emacs:/usr/local/share/emacs/25.1/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/25.1/site-lisp:/usr/share/emacs/site-lisp
 --with-sound=alsa --with-x=yes --with-x-toolkit=lucid
 --with-toolkit-scroll-bars --without-gconf --without-gsettings
 'CFLAGS=-g -O2
 -fdebug-prefix-map=/build/emacs25-25.1+1=. -fstack-protector-strong
 -Wformat -Werror=format-security -Wall' 'CPPFLAGS=-Wdate-time
 -D_FORTIFY_SOURCE=2' LDFLAGS=-Wl,-z,relro'

Configured features:
XAW3D XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS NOTIFY ACL
LIBSELINUX GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB
TOOLKIT_SCROLL_BARS LUCID X11

Important settings:
  value of $LC_COLLATE: it_IT.UTF-8
  value of $LC_CTYPE: it_IT.UTF-8
  value of $LC_NUMERIC: C
  value of $LANG: en_US.UTF-8
  locale-coding-system: utf-8-unix

Major mode: RMAIL

Minor modes in effect:
  global-visual-fill-column-mode: t
  diff-auto-refine-mode: t
  TeX-PDF-mode: t
  desktop-save-mode: t
  epa-global-mail-mode: t
  shell-dirtrack-mode: t
  openwith-mode: t
  xterm-mouse-mode: t
  display-time-mode: t
  tooltip-mode: t
  global-eldoc-mode: t
  electric-indent-mode: t
  mouse-wheel-mode: t
  tool-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  buffer-read-only: t
  column-number-mode: t
  line-number-mode: t

Recent messages:
Added to /home/pot/Mail/backup/SMAIL
Sending...done
No following nondeleted message
Expunging deleted messages...done
Showing message 899...
Saving file /home/pot/Mail/RMAIL...
Wrote /home/pot/Mail/RMAIL [2 times]
Beginning of buffer
scroll-signal-boundary-error: Beginning of buffer [2 times]
Mark set

Load-path shadows:
~/elisp/bhl hides /usr/share/emacs/site-lisp/bhl
/usr/share/emacs25/site-lisp/flim/md4 hides /usr/share/emacs/25.1/lisp/md4
/usr/share/emacs25/site-lisp/flim/hex-util hides /usr/share/emacs/25.1/lisp/hex-util
/usr/share/emacs/site-lisp/rst hides /usr/share/emacs/25.1/lisp/textmodes/rst
~/elisp/bibtex hides /usr/share/emacs/25.1/lisp/textmodes/bibtex
/usr/share/emacs25/site-lisp/flim/ntlm hides /usr/share/emacs/25.1/lisp/net/ntlm
/usr/share/emacs25/site-lisp/flim/hmac-md5 hides /usr/share/emacs/25.1/lisp/net/hmac-md5
/usr/share/emacs25/site-lisp/flim/sasl-ntlm hides /usr/share/emacs/25.1/lisp/net/sasl-ntlm
/usr/share/emacs25/site-lisp/flim/sasl-digest hides /usr/share/emacs/25.1/lisp/net/sasl-digest
/usr/share/emacs25/site-lisp/flim/sasl hides /usr/share/emacs/25.1/lisp/net/sasl
/usr/share/emacs25/site-lisp/flim/sasl-cram hides /usr/share/emacs/25.1/lisp/net/sasl-cram
/usr/share/emacs25/site-lisp/flim/hmac-def hides /usr/share/emacs/25.1/lisp/net/hmac-def
/usr/share/emacs25/site-lisp/auctex/tex-fold hides /usr/share/emacs/site-lisp/auctex/tex-fold
/usr/share/emacs25/site-lisp/auctex/context-en hides /usr/share/emacs/site-lisp/auctex/context-en
/usr/share/emacs25/site-lisp/auctex/tex-info hides /usr/share/emacs/site-lisp/auctex/tex-info
/usr/share/emacs25/site-lisp/auctex/plain-tex hides /usr/share/emacs/site-lisp/auctex/plain-tex
/usr/share/emacs25/site-lisp/auctex/tex-mik hides /usr/share/emacs/site-lisp/auctex/tex-mik
/usr/share/emacs25/site-lisp/auctex/texmathp hides /usr/share/emacs/site-lisp/auctex/texmathp
/usr/share/emacs25/site-lisp/auctex/context-nl hides /usr/share/emacs/site-lisp/auctex/context-nl
/usr/share/emacs25/site-lisp/auctex/toolbar-x hides /usr/share/emacs/site-lisp/auctex/toolbar-x
/usr/share/emacs25/site-lisp/auctex/tex hides /usr/share/emacs/site-lisp/auctex/tex
/usr/share/emacs25/site-lisp/auctex/tex-jp hides /usr/share/emacs/site-lisp/auctex/tex-jp
/usr/share/emacs25/site-lisp/auctex/bib-cite hides /usr/share/emacs/site-lisp/auctex/bib-cite
/usr/share/emacs25/site-lisp/auctex/multi-prompt hides /usr/share/emacs/site-lisp/auctex/multi-prompt
/usr/share/emacs25/site-lisp/auctex/font-latex hides /usr/share/emacs/site-lisp/auctex/font-latex
/usr/share/emacs25/site-lisp/auctex/prv-emacs hides /usr/share/emacs/site-lisp/auctex/prv-emacs
/usr/share/emacs25/site-lisp/auctex/tex-style hides /usr/share/emacs/site-lisp/auctex/tex-style
/usr/share/emacs25/site-lisp/auctex/context hides /usr/share/emacs/site-lisp/auctex/context
/usr/share/emacs25/site-lisp/auctex/preview hides /usr/share/emacs/site-lisp/auctex/preview
/usr/share/emacs25/site-lisp/auctex/tex-font hides /usr/share/emacs/site-lisp/auctex/tex-font
/usr/share/emacs25/site-lisp/auctex/tex-bar hides /usr/share/emacs/site-lisp/auctex/tex-bar
/usr/share/emacs25/site-lisp/auctex/latex hides /usr/share/emacs/site-lisp/auctex/latex
/usr/share/emacs25/site-lisp/auctex/tex-buf hides /usr/share/emacs/site-lisp/auctex/tex-buf
~/elisp/bhl hides /usr/share/emacs25/site-lisp/bhl
/usr/share/emacs/site-lisp/debian-startup hides /usr/share/emacs25/site-lisp/debian-startup

Features:
(autorevert filenotify find-dired loadhist novice wdired animate misc
ruler-mode cal-x debug two-column iso-transl apropos pcmpl-gnu
pcmpl-linux macros python tramp-sh tar-mode anything-config anything
woman mailcap undigest cal-move smerge-mode diff doc-view vc-cvs
pcmpl-unix json-mode rx cus-edit wid-edit cus-start cus-load rmailedit
tabify man vc-dir ewoc tramp-cache shadow emacsbug reporter debian-bug
mail-extr texmathp nxml-uchnm rng-xsd xsd-regexp rng-cmpct rng-nxml
rng-valid rng-loc rng-uri rng-parse nxml-parse rng-match rng-dt rng-util
rng-pttrn nxml-ns nxml-mode nxml-outln nxml-rap nxml-util nxml-glyph
nxml-enc xmltok tmm ido etags xref project ediff-merg ediff-wind
ediff-diff ediff-mult ediff-help ediff-init ediff-util ediff js json map
imenu ispell log-view pp visual-fill-column locate dired-aux eieio-opt
speedbar sb-image ezimage dframe find-func timezone rmailsort face-remap
url-handlers nero cl rect log-edit pcvs-util add-log grep dabbrev
diff-mode vc rmailkwd mailalias rmailout shr-color color time-stamp
misearch multi-isearch server parse-time unrmail qp url-util shr dom
subr-x browse-url jka-compr cc-mode cc-fonts cc-guess cc-menus cc-cmds
cc-styles cc-align cc-engine cc-vars cc-defs bibtex info sh-script
executable sgml-mode vc-filewise vc-rcs image-mode view conf-mode
generic octave smie latexenc plain-tex vc-dispatcher vc-svn preview
prv-emacs tex-bar tex-buf toolbar-x noutline outline font-latex latex
easy-mmode edmacro kmacro tex-style tex dbus xml crm tex-mode compile
rmailmm message rfc822 mml mml-sec mm-decode mm-bodies mm-encode
mailabbrev gmm-utils mailheader mail-parse rfc2231 desktop frameset
term/xterm xterm pot skeleton rmailsum rmail warnings sendmail rfc2047
rfc2045 ietf-drums mime-compose epa-mail mail-utils epa derived epg
cal-china lunar solar cal-dst cal-bahai cal-islam cal-hebrew holidays
hol-loaddefs vc-hg appt diary-lib diary-loaddefs cal-menu calendar
cal-loaddefs tramp tramp-compat tramp-loaddefs trampver ucs-normalize
shell pcomplete comint ring format-spec bhl switch-to-shell openwith
hi-lock xt-mouse ffap thingatpt url-parse auth-source cl-seq eieio
eieio-core cl-macs gnus-util time-date mm-util help-fns mail-prsvr
password-cache url-vars scroll-in-place filladapt ansi-color advice time
quail dired-x dired generic-x disp-table finder-inf package epg-config
seq byte-opt gv bytecomp byte-compile cl-extra help-mode easymenu cconv
cl-loaddefs pcase cl-lib debian-el debian-el-loaddefs w3m-load
vm-autoload vm-autoloads vm-version vm-vars vm-init preview-latex
tex-site auto-loads mule-util tooltip eldoc electric uniquify ediff-hook
vc-hooks lisp-float-type mwheel x-win term/common-win x-dnd tool-bar dnd
fontset image regexp-opt fringe tabulated-list newcomment elisp-mode
lisp-mode prog-mode register page menu-bar rfn-eshadow timer select
scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame
cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai
tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian
slovak czech european ethiopic indian cyrillic chinese charscript
case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer
cl-preloaded nadvice loaddefs button faces cus-face macroexp files
text-properties overlay sha1 md5 base64 format env code-pages mule
custom widget hashtable-print-readable backquote dbusbind inotify
dynamic-setting font-render-setting x-toolkit x multi-tty
make-network-process emacs)

Memory information:
((conses 16 1182249 215902)
 (symbols 48 60744 50)
 (miscs 40 7096 4577)
 (strings 32 175927 29634)
 (string-bytes 1 5230067)
 (vectors 16 87336)
 (vector-slots 8 2213773 80796)
 (floats 8 1408 1017)
 (intervals 56 165187 8141)
 (buffers 976 238))




Acknowledgement sent to Francesco Potortì <pot@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#25458; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Mon, 13 Jun 2022 15:45:01 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.