From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.devel Subject: Re: master 6d6bf46 2/2: Make dired-do-compress work for *.tar.gz files Date: Wed, 21 Oct 2015 01:51:11 +0300 Organization: LINKOV.NET Message-ID: <87mvvdyx0i.fsf@mail.linkov.net> 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> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1445381591 19959 80.91.229.3 (20 Oct 2015 22:53:11 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 20 Oct 2015 22:53:11 +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 Wed Oct 21 00:53:02 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 1Zoflr-0001fZ-8r for ged-emacs-devel@m.gmane.org; Wed, 21 Oct 2015 00:52:43 +0200 Original-Received: from localhost ([::1]:48355 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zoflq-0002jh-Cr for ged-emacs-devel@m.gmane.org; Tue, 20 Oct 2015 18:52:42 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58353) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zoflc-0002jU-45 for emacs-devel@gnu.org; Tue, 20 Oct 2015 18:52:28 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zoflb-0000yk-D8 for emacs-devel@gnu.org; Tue, 20 Oct 2015 18:52:28 -0400 Original-Received: from sub3.mail.dreamhost.com ([69.163.253.7]:52755 helo=homiemail-a15.g.dreamhost.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZoflX-0000ra-IN; Tue, 20 Oct 2015 18:52:23 -0400 Original-Received: from homiemail-a15.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a15.g.dreamhost.com (Postfix) with ESMTP id 15F0376C065; Tue, 20 Oct 2015 15:52:21 -0700 (PDT) Original-Received: from localhost.linkov.net (m83-176-3-200.cust.tele2.ee [83.176.3.200]) (Authenticated sender: jurta@jurta.org) by homiemail-a15.g.dreamhost.com (Postfix) with ESMTPA id E7CB276C069; Tue, 20 Oct 2015 15:52:19 -0700 (PDT) In-Reply-To: <87wpuhud8l.fsf@gmail.com> (Oleh Krehel's message of "Tue, 20 Oct 2015 10:59:38 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (x86_64-pc-linux-gnu) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 69.163.253.7 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:192243 Archived-At: > 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? Aren't upper-case Dired keys reserved for potentially dangerous commands because upper-case keys are harder to press (require holding Shift-key). I guess if your command will ask additional information from the minibuffer then either lower-case "c" or "z" are fine because they won't run immediately. "Z" would be good too if you could improve it in a backward-compatible way.