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: Tue, 20 Oct 2015 17:57:23 +0300 Message-ID: <83r3kpfuzw.fsf@gnu.org> References: <20151013135354.28594.43074@vcs.savannah.gnu.org> <87io69opbs.fsf@gmail.com> <83bnc083k3.fsf@gnu.org> <871tcvks7o.fsf@gmail.com> <83si5b54m9.fsf@gnu.org> <87wpunsz6w.fsf@gmail.com> <83mvvi6fu9.fsf@gnu.org> <87wpuhud8l.fsf@gmail.com> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1445358040 2377 80.91.229.3 (20 Oct 2015 16:20:40 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 20 Oct 2015 16:20:40 +0000 (UTC) Cc: emacs-devel@gnu.org To: Oleh Krehel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Oct 20 18:20:30 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 1ZoZeE-0001K9-CX for ged-emacs-devel@m.gmane.org; Tue, 20 Oct 2015 18:20:26 +0200 Original-Received: from localhost ([::1]:46946 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZoZe8-0007by-Ty for ged-emacs-devel@m.gmane.org; Tue, 20 Oct 2015 12:20:20 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52945) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZoYM6-0004oh-OT for emacs-devel@gnu.org; Tue, 20 Oct 2015 10:57:43 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZoYLo-0003LW-9D for emacs-devel@gnu.org; Tue, 20 Oct 2015 10:57:25 -0400 Original-Received: from mtaout25.012.net.il ([80.179.55.181]:59513) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZoYLo-0003LD-1N for emacs-devel@gnu.org; Tue, 20 Oct 2015 10:57:20 -0400 Original-Received: from conversion-daemon.mtaout25.012.net.il by mtaout25.012.net.il (HyperSendmail v2007.08) id <0NWI00H00XB00N00@mtaout25.012.net.il> for emacs-devel@gnu.org; Tue, 20 Oct 2015 17:54:59 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([84.94.185.246]) by mtaout25.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NWI00F3JXFN9D20@mtaout25.012.net.il>; Tue, 20 Oct 2015 17:54:59 +0300 (IDT) In-reply-to: <87wpuhud8l.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:192197 Archived-At: > From: Oleh Krehel > Cc: emacs-devel@gnu.org > Date: Tue, 20 Oct 2015 10:59:38 +0200 > > Eli Zaretskii writes: > > >> (t ".tar.gz" "tar -c %i | gzip -c9 > %o") > > > > If you intend to use redirection at the shell command-line level, the > > file name that replaces %o will need on MS-Windows to be run through > > some function that converts forward slashes to backslashes. > > Doesn't `file-name-nondirectory' already do that? Is that what %o stands for? If so, I apologize for not looking deeper: relative file names without any leading directories of course cannot have any such problems. (Does that mean that this command will only support producing the tarball in the same directory which Dired displays?) > I also want to add a new command to dired that compresses all marked > files into a single named archive: the user gets prompted for a name > (through `completing-read'+`read-file-name-internal') and the shell > command is resolved from that name. I'd like for it to be bound by > default, like "Z". Maybe like this: > > (define-key map "c" 'dired-compress) > > The proposed key isn't bound by default. Is that OK? Sounds OK to me, but maybe wait for a while for others to speak up. Thanks.