From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Glenn Morris Newsgroups: gmane.emacs.devel Subject: Re: master 6d6bf46 2/2: Make dired-do-compress work for *.tar.gz files Date: Fri, 16 Oct 2015 12:26:41 -0400 Message-ID: References: <20151013135354.28594.43074@vcs.savannah.gnu.org> <87io69opbs.fsf@gmail.com> <83bnc083k3.fsf@gnu.org> <871tcvks7o.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1445012973 2956 80.91.229.3 (16 Oct 2015 16:29:33 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 16 Oct 2015 16:29:33 +0000 (UTC) Cc: Eli Zaretskii , emacs-devel@gnu.org To: Oleh Krehel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Oct 16 18:29:32 2015 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Zn7sf-0004GG-8Q for ged-emacs-devel@m.gmane.org; Fri, 16 Oct 2015 18:29:21 +0200 Original-Received: from localhost ([::1]:54881 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zn7se-0003BI-FS for ged-emacs-devel@m.gmane.org; Fri, 16 Oct 2015 12:29:20 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45872) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zn7qB-0007Vd-4d for emacs-devel@gnu.org; Fri, 16 Oct 2015 12:26:47 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zn7qA-0006XT-BL for emacs-devel@gnu.org; Fri, 16 Oct 2015 12:26:47 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:59510) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zn7q8-0006Wt-OB; Fri, 16 Oct 2015 12:26:44 -0400 Original-Received: from rgm by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1Zn7q5-000430-Qf; Fri, 16 Oct 2015 12:26:42 -0400 X-Spook: National Biosurveillance Integration Center Delta Force X-Ran: 0.,QaC0e+,Cr^zzes_+4&#+v+V$m9c{{nuT(=6OJT!gDj;*[SrOC'*"Zt`a/i##5':k'=b X-Hue: black X-Attribution: GM In-Reply-To: <871tcvks7o.fsf@gmail.com> (Oleh Krehel's message of "Fri, 16 Oct 2015 12:44:59 +0200") User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::e X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:191777 Archived-At: Oleh Krehel wrote: > OK, is this what you want for compression: > > tar -c example/ | gzip -c9 > example.tar.gz > > And this for decompression: > > gzip -dc example.tar.gz | tar -x Where the (un)compress prog could perhaps be looked up in the existing dired-compress-file-suffixes. AFAIK, all such commands use "-c" for compatibility with each other, so that probably doesn't need to be an option. So the only new config entry needed would be the tar command. Wrt creating the archive, either make the compression scheme a custom option, or a separate step (which would probably require "make a tarfile" to be a separate command).