emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: master 6d6bf46 2/2: Make dired-do-compress work for *.tar.gz files


From: Oleh Krehel
Subject: Re: master 6d6bf46 2/2: Make dired-do-compress work for *.tar.gz files
Date: Wed, 21 Oct 2015 10:00:08 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux)

Juri Linkov <address@hidden> writes:

>> 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.

I don't think it's possible to extend "Z", unless it's with a prefix arg
or something, just because it already has a very different behavior for
a group of marked files.

Pressing something like "c" or "z" is much shorter than "C-u Z". And the
logic is different anyway.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]