From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Oleh Krehel Newsgroups: gmane.emacs.devel Subject: Re: master 6d6bf46 2/2: Make dired-do-compress work for *.tar.gz files Date: Tue, 20 Oct 2015 10:59:38 +0200 Message-ID: <87wpuhud8l.fsf@gmail.com> 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> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1445331605 28092 80.91.229.3 (20 Oct 2015 09:00:05 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 20 Oct 2015 09:00:05 +0000 (UTC) Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Oct 20 11:00:00 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 1ZoSlr-0001cK-IT for ged-emacs-devel@m.gmane.org; Tue, 20 Oct 2015 10:59:51 +0200 Original-Received: from localhost ([::1]:44632 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZoSlq-0007Yo-Mu for ged-emacs-devel@m.gmane.org; Tue, 20 Oct 2015 04:59:50 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37827) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZoSlT-0007TP-7h for emacs-devel@gnu.org; Tue, 20 Oct 2015 04:59:47 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZoSl8-0006VQ-Iz for emacs-devel@gnu.org; Tue, 20 Oct 2015 04:59:27 -0400 Original-Received: from mail-wi0-x236.google.com ([2a00:1450:400c:c05::236]:38566) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZoSl8-0006Uy-De; Tue, 20 Oct 2015 04:59:06 -0400 Original-Received: by wicll6 with SMTP id ll6so17808118wic.1; Tue, 20 Oct 2015 01:59:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=oufcWsMedyRn4wzov4zLUHpA/Ep70h0nKc1enqznomE=; b=MQ5jzrTFIKzhis0zMXnO9i+K/IVB2tLYlpr229PaBgVcNPZY8kEXSEkxliE5BtWIdN FZwztfnHB4bNWMKTddHBAJDXpJeuQgWXoBeIKXntoXLK0Ulh1PQHrQUa5gBnzJRDi75s TPClsOVya3/UOmQ0/JeSnYpMPX+h29qlhrWzrWKJ27heN8ll8/0VK/1mafrD4UAQXmwF h6CY0IEK5wy7znJRvLX7Lsg5yU6Nu/+Wk+AQuA86qyzvBRIAS24kZ7Ao3lHsuRzLlqi5 gNMDCeBfGneu/qwm5y5OUP0Go31GiJWOeVekwGlv0sScYZr+A3RpoQxlLhANFez0ZlQJ kCGw== X-Received: by 10.195.11.165 with SMTP id ej5mr2616104wjd.117.1445331545753; Tue, 20 Oct 2015 01:59:05 -0700 (PDT) Original-Received: from firefly (dyn069045.nbw.tue.nl. [131.155.69.45]) by smtp.gmail.com with ESMTPSA id fr10sm18430872wib.14.2015.10.20.01.59.04 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Tue, 20 Oct 2015 01:59:04 -0700 (PDT) In-Reply-To: <83mvvi6fu9.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 16 Oct 2015 17:35:58 +0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:400c:c05::236 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:192170 Archived-At: 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? I don't have MS-Windows, so I can't check. I just pushed an update that takes care of most of the comments in this thread. Let me know if it's fine. 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?