From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Glenn Morris Newsgroups: gmane.emacs.bugs Subject: bug#25611: 26.0.50; dired-do-compress unpacks .tgz files Date: Fri, 03 Feb 2017 12:42:18 -0500 Message-ID: References: <3061.1486093822@alto> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1486143791 12945 195.159.176.226 (3 Feb 2017 17:43:11 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 3 Feb 2017 17:43:11 +0000 (UTC) User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) Cc: 25611@debbugs.gnu.org, ohwoeowho@gmail.com To: Mike Kupfer Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Feb 03 18:43:05 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cZht2-00034j-HK for geb-bug-gnu-emacs@m.gmane.org; Fri, 03 Feb 2017 18:43:04 +0100 Original-Received: from localhost ([::1]:36115 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cZht7-0004vS-O7 for geb-bug-gnu-emacs@m.gmane.org; Fri, 03 Feb 2017 12:43:09 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40586) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cZht1-0004vL-GP for bug-gnu-emacs@gnu.org; Fri, 03 Feb 2017 12:43:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cZht0-0001Gk-EN for bug-gnu-emacs@gnu.org; Fri, 03 Feb 2017 12:43:03 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:57140) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cZht0-0001GS-BD for bug-gnu-emacs@gnu.org; Fri, 03 Feb 2017 12:43:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cZht0-0001Fk-4n for bug-gnu-emacs@gnu.org; Fri, 03 Feb 2017 12:43:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Glenn Morris Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 03 Feb 2017 17:43:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 25611 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 25611-submit@debbugs.gnu.org id=B25611.14861437504776 (code B ref 25611); Fri, 03 Feb 2017 17:43:02 +0000 Original-Received: (at 25611) by debbugs.gnu.org; 3 Feb 2017 17:42:30 +0000 Original-Received: from localhost ([127.0.0.1]:55339 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cZhsU-0001Ey-Jk for submit@debbugs.gnu.org; Fri, 03 Feb 2017 12:42:30 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:49253) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cZhsT-0001El-4y for 25611@debbugs.gnu.org; Fri, 03 Feb 2017 12:42:29 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cZhsM-0000gI-Me for 25611@debbugs.gnu.org; Fri, 03 Feb 2017 12:42:23 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:34052) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cZhsK-0000cw-99; Fri, 03 Feb 2017 12:42:20 -0500 Original-Received: from rgm by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1cZhsI-0008Tm-Al; Fri, 03 Feb 2017 12:42:18 -0500 X-Attribution: GM In-Reply-To: <3061.1486093822@alto> (Mike Kupfer's message of "Thu, 02 Feb 2017 19:50:22 -0800") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:128924 Archived-At: Mike Kupfer wrote: > Suppose I have a .tar file, I move point to that file in a dired buffer, > and I press "Z". My file gets converted to a .tgz file. Okay so far. > > If I then press "Z" again, I expect to get the original .tar file back. > Instead, the contents of the .tar file are extracted, and the .tgz file > is left where it was. Looks like this was added in https://debbugs.gnu.org/20384#11 ? I've cc'd the author of that change. > First problem: no .tar file. > > Second problem: this violates the principle of Least Surprise. The > prompt just talked about (de)compressing the file, it didn't say > anything about unpacking it. (Not to mention this is a departure from > earlier behavior of "Z", and it's different behavior than what you'd get > with a plain old text file.) > > Corollary to second problem: this can overwrite the user's existing > files, causing the user to lose data. > > I can see the utility of the new behavior, but I think it should either > be non-default behavior or bound to a different character in dired. (I > suppose you could just fix the prompt, but you'd lose the invertibility > of the old "Z" behavior, which seems like a step backward.)