From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#47119: 28.0.50; [patch][Dired] new user option for compressing dir suffix Date: Mon, 22 Mar 2021 19:43:41 +0200 Message-ID: <83pmzr9j8y.fsf@gnu.org> References: <605374ce.1c69fb81.54cb0.69c6@mx.google.com>, <83lfaicdra.fsf@gnu.org> <6ECADB20-F129-4024-982B-0236A5C3E719@hxcore.ol> 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="32287"; mail-complaints-to="usenet@ciao.gmane.io" Cc: sunlin7@yahoo.com, 47119@debbugs.gnu.org To: LinSun Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Mar 22 18:44:17 2021 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 1lOObA-0008IA-S2 for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 22 Mar 2021 18:44:16 +0100 Original-Received: from localhost ([::1]:32828 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lOOb9-0007ba-Tk for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 22 Mar 2021 13:44:15 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:48262) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lOOaw-0007a7-P9 for bug-gnu-emacs@gnu.org; Mon, 22 Mar 2021 13:44:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:46956) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lOOaw-0005bP-Hr for bug-gnu-emacs@gnu.org; Mon, 22 Mar 2021 13:44:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lOOaw-0002dD-G1 for bug-gnu-emacs@gnu.org; Mon, 22 Mar 2021 13:44:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 22 Mar 2021 17:44:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 47119 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 47119-submit@debbugs.gnu.org id=B47119.161643502610068 (code B ref 47119); Mon, 22 Mar 2021 17:44:02 +0000 Original-Received: (at 47119) by debbugs.gnu.org; 22 Mar 2021 17:43:46 +0000 Original-Received: from localhost ([127.0.0.1]:58496 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lOOaf-0002cK-V8 for submit@debbugs.gnu.org; Mon, 22 Mar 2021 13:43:46 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:55094) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lOOae-0002c8-MM for 47119@debbugs.gnu.org; Mon, 22 Mar 2021 13:43:44 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:35361) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lOOaX-0005PQ-3v; Mon, 22 Mar 2021 13:43:38 -0400 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:3557 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1lOOaV-00051Z-M2; Mon, 22 Mar 2021 13:43:36 -0400 In-Reply-To: <6ECADB20-F129-4024-982B-0236A5C3E719@hxcore.ol> (message from LinSun on Mon, 22 Mar 2021 20:28:48 +0800) 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:202849 Archived-At: > Date: Mon, 22 Mar 2021 20:28:48 +0800 > From: LinSun > Cc: "47119@debbugs.gnu.org" <47119@debbugs.gnu.org>, > "sunlin7@yahoo.com" > > >> - ("\000" ".tar.gz" "tar -cf - %i | gzip -c9 > %o")) > > >Why did you remove the "\000" entry? As the comment explains, it is > > >there to allow compressing a directory. To compress a directory, you > > >need to run 'tar' on it first, and the .tar.gz/.tar.xz entries run > > >'tar' on the _result_ of gzip/xz instead. So how will compression of > > >directories work after your changes? I feel that I'm missing > > >something here, but what? > > The “\000” entry is special for compress directory, if you go through back, other entries in the > `dired-compress-file-suffixes` is decompress commands. After apply this patch, the “\000” entry is useless. I'm still missing something, I think. Please describe step by step how compressing a directory will work after your changes, and in particular what shell command(s) will Dired run in that case. Thanks.