From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Mike Kupfer Newsgroups: gmane.emacs.bugs Subject: bug#25611: 26.0.50; dired-do-compress unpacks .tgz files Date: Thu, 02 Feb 2017 19:50:22 -0800 Message-ID: <3061.1486093822@alto> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-Trace: blaine.gmane.org 1486093872 31352 195.159.176.226 (3 Feb 2017 03:51:12 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 3 Feb 2017 03:51:12 +0000 (UTC) To: 25611@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Feb 03 04:51:08 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 1cZUtv-0007vp-Jv for geb-bug-gnu-emacs@m.gmane.org; Fri, 03 Feb 2017 04:51:07 +0100 Original-Received: from localhost ([::1]:60078 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cZUu1-0000Ki-1c for geb-bug-gnu-emacs@m.gmane.org; Thu, 02 Feb 2017 22:51:13 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50761) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cZUtt-0000KS-NJ for bug-gnu-emacs@gnu.org; Thu, 02 Feb 2017 22:51:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cZUtq-0003ZF-J0 for bug-gnu-emacs@gnu.org; Thu, 02 Feb 2017 22:51:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:56189) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cZUtq-0003Z8-EZ for bug-gnu-emacs@gnu.org; Thu, 02 Feb 2017 22:51:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cZUtq-0003zX-5S for bug-gnu-emacs@gnu.org; Thu, 02 Feb 2017 22:51:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Mike Kupfer Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 03 Feb 2017 03:51:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 25611 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.148609384015314 (code B ref -1); Fri, 03 Feb 2017 03:51:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 3 Feb 2017 03:50:40 +0000 Original-Received: from localhost ([127.0.0.1]:54388 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cZUtT-0003yw-Ty for submit@debbugs.gnu.org; Thu, 02 Feb 2017 22:50:40 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:59753) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cZUtR-0003yj-Em for submit@debbugs.gnu.org; Thu, 02 Feb 2017 22:50:37 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cZUtK-0003N4-UZ for submit@debbugs.gnu.org; Thu, 02 Feb 2017 22:50:32 -0500 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:56378) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cZUtK-0003My-RY for submit@debbugs.gnu.org; Thu, 02 Feb 2017 22:50:30 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50720) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cZUtI-0000JK-Tb for bug-gnu-emacs@gnu.org; Thu, 02 Feb 2017 22:50:30 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cZUtF-0003M1-PO for bug-gnu-emacs@gnu.org; Thu, 02 Feb 2017 22:50:28 -0500 Original-Received: from shell1.rawbw.com ([198.144.192.42]:65480) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cZUtF-0003Le-FP for bug-gnu-emacs@gnu.org; Thu, 02 Feb 2017 22:50:25 -0500 Original-Received: from alto (m208-249.dsl.rawbw.com [198.144.208.249]) by shell1.rawbw.com (8.15.1/8.15.1) with ESMTP id v133oMfx018827 for ; Thu, 2 Feb 2017 19:50:22 -0800 (PST) (envelope-from mkupfer@alum.berkeley.edu) X-Authentication-Warning: shell1.rawbw.com: Host m208-249.dsl.rawbw.com [198.144.208.249] claimed to be alto X-Mailer: MH-E 8.6+git; nmh 1.6; GNU Emacs 26.0.50 Content-ID: <3060.1486093822.1@alto> X-detected-operating-system: by eggs.gnu.org: FreeBSD 9.x [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x 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:128904 Archived-At: 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. 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.) In GNU Emacs 26.0.50.6 (x86_64-unknown-linux-gnu, X toolkit, Xaw scroll bars) of 2017-02-02 built on alto Repository revision: 7cb7a582f44db94292709d35f4f5474f891f03b0 Windowing system distributor 'The X.Org Foundation', version 11.0.11604000 System Description: Debian GNU/Linux 8.7 (jessie) Recent messages: (Shell command succeeded with no output) Deleting...done Move: 1 of 1 Move: 1 file Directory has changed on disk; type g to update Dired Quit Type C-x 1 to delete the help window. tar: This does not look like a tar archive tar: office-mail-20161212.tar: Not found in archive tar: Exiting with failure status due to previous errors Configured using: 'configure --prefix=/usr/new' Configured features: XPM JPEG TIFF GIF PNG SOUND NOTIFY GNUTLS LIBXML2 FREETYPE XFT ZLIB TOOLKIT_SCROLL_BARS LUCID X11 Important settings: value of $LC_TIME: C value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: Dired by name Minor modes in effect: shell-dirtrack-mode: t delete-selection-mode: t global-eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t menu-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 transient-mark-mode: t Load-path shadows: None found. Features: (shadow eieio-opt speedbar sb-image ezimage dframe help-fns radix-tree emacsbug view skeleton misearch multi-isearch sgml-mode dom pcmpl-unix pcmpl-gnu pp flow-fill gnus-fun gnus-mh sort gnus-async gnus-bcklg gnus-kill gnus-dup gnus-ml disp-table url-http url-gw url-cache url-auth url-handlers nnrss xml mm-url url url-proxy url-privacy url-expand url-methods url-history url-cookie url-domsuf nndraft nnmh network-stream nsm starttls gnus-agent gnus-srvr gnus-score score-mode nnvirtual gnus-msg nntp gnus-cache dired-aux dired-x mh-funcs mh-thread mh-identity mh-letter mh-comp url-util url-parse url-vars org-element org-rmail org-mhe org-irc org-info org-gnus org-docview doc-view jka-compr image-mode org-bibtex bibtex org-bbdb org-w3m org org-macro org-footnote org-pcomplete org-list org-faces org-entities org-version ob-emacs-lisp ob ob-tangle ob-ref ob-lob ob-table ob-exp org-src ob-keys ob-comint ob-core ob-eval org-compat org-macs org-loaddefs find-func cal-menu calendar cal-loaddefs vc-hg qp mm-archive mh-alias crm mail-extr mh-mime mh-gnus mh-acros mh-show goto-addr thingatpt gnus-cite gnus-art mm-uu mml2015 mm-view mml-smime smime dig mailcap gnus-sum gnus-group gnus-undo gnus-start gnus-cloud nnimap nnmail mail-source tls gnutls utf7 netrc nnoo parse-time gnus-spec gnus-int gnus-win gnus-range gnus nnheader wid-edit mh-inc hl-line mh-tool-bar mh-seq mh-xface mh-utils mh-folder which-func imenu mh-scan mh-e mh-compat mh-buffers mh-loaddefs mdk-mail smtpmail auth-source cl-seq eieio eieio-core cl-macs eieio-loaddefs sendmail message subr-x puny seq byte-opt bytecomp byte-compile cl-extra help-mode cconv format-spec rfc822 mml mml-sec password-cache epa derived epg epg-config gnus-util rmail rmail-loaddefs mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 mm-util ietf-drums mail-prsvr mailabbrev mail-utils gmm-utils mailheader server noutline outline easy-mmode cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs cl gv shell pcomplete comint ansi-color ring xcscope easymenu advice delsel vc cl-loaddefs pcase cl-lib vc-dispatcher dired dired-loaddefs timeclock mdk-hacks time-date mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors 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 composite charscript case-table epa-hook jka-cmpr-hook help simple abbrev obarray 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 inotify dynamic-setting font-render-setting x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 334531 42157) (symbols 48 44642 1) (miscs 40 429 941) (strings 32 97784 18745) (string-bytes 1 3083356) (vectors 16 45101) (vector-slots 8 1532783 157208) (floats 8 525 644) (intervals 56 2775 535) (buffers 976 41) (heap 1024 70224 44977))