From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: master 6d6bf46 2/2: Make dired-do-compress work for *.tar.gz files Date: Thu, 15 Oct 2015 18:55:04 +0300 Message-ID: <83lhb486uf.fsf@gnu.org> References: <20151013135354.28594.43074@vcs.savannah.gnu.org> <87io69opbs.fsf@gmail.com> <83lhb5xw5w.fsf@gnu.org> <87wpupqo60.fsf@Rainer.invalid> <87zizk1ds3.fsf@gmail.com> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1444924578 24288 80.91.229.3 (15 Oct 2015 15:56:18 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 15 Oct 2015 15:56:18 +0000 (UTC) Cc: Stromeko@nexgo.de, emacs-devel@gnu.org To: Oleh Krehel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Oct 15 17:56:11 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 1Zmksz-0003os-7d for ged-emacs-devel@m.gmane.org; Thu, 15 Oct 2015 17:56:09 +0200 Original-Received: from localhost ([::1]:48281 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zmksy-0005zg-BG for ged-emacs-devel@m.gmane.org; Thu, 15 Oct 2015 11:56:08 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59205) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zmks2-0005AY-8K for emacs-devel@gnu.org; Thu, 15 Oct 2015 11:55:16 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zmkry-0004Xh-Q0 for emacs-devel@gnu.org; Thu, 15 Oct 2015 11:55:10 -0400 Original-Received: from mtaout25.012.net.il ([80.179.55.181]:47677) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zmkry-0004Tp-J5 for emacs-devel@gnu.org; Thu, 15 Oct 2015 11:55:06 -0400 Original-Received: from conversion-daemon.mtaout25.012.net.il by mtaout25.012.net.il (HyperSendmail v2007.08) id <0NW900B00QGKRR00@mtaout25.012.net.il> for emacs-devel@gnu.org; Thu, 15 Oct 2015 18:52:38 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([84.94.185.246]) by mtaout25.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NW9002S1QRPO090@mtaout25.012.net.il>; Thu, 15 Oct 2015 18:52:38 +0300 (IDT) In-reply-to: <87zizk1ds3.fsf@gmail.com> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 80.179.55.181 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:191650 Archived-At: > From: Oleh Krehel > Date: Thu, 15 Oct 2015 15:07:08 +0200 > Cc: emacs-devel@gnu.org > > Achim Gratz writes: > > > This is what a reasonably recent GNU tar offers: > > > > Compression options: > > > > -a, --auto-compress use archive suffix to determine the compression > > program > > Thanks, Achim. > > For creating archives I propose that we use: > > (defcustom dired-compress-command > "tar -caf %i.tar.gz %i" > "The default command for creating archives from directories. > %i denotes the directory name.") > > which would translate to: > > tar -caf foo.tar.gz foo/ > > And leave it up to the user to customize this command. Isn't the -a option GNU Tar specific? I don't think we ever hard-coded GNU/Linux specific options, thus forcing all users of all the other systems to customize Emacs. In other cases (like "M-x grep") we probe the command for support of non-portable options, and only use them if supported. Let's not deviate from that practice here. Thanks.