]> code.delx.au - gnu-emacs/commit
Make dired-do-compress work for *.zip files
authorOleh Krehel <ohwoeowho@gmail.com>
Fri, 16 Oct 2015 11:57:22 +0000 (13:57 +0200)
committerOleh Krehel <ohwoeowho@gmail.com>
Fri, 16 Oct 2015 12:09:37 +0000 (14:09 +0200)
commit7175459da149da7e46dc799796ad670eb122273d
tree1bfc521f46f3aa7c5ffac322e187190544f8cc42
parentb0d190fbe2cd4a092fa186b3d674ec89ff000776
Make dired-do-compress work for *.zip files

* lisp/dired-aux.el (dired-check-process): Transform the top-level
  comment into a docstring.
(dired-shell-command): New command. This mirrors
`dired-check-process', but is more user-friendly for passing
arguments.
(dired-compress-file-suffixes): Allow to specify the command switches
along with input (%i) and output (%o) inside the PROGRAM part.
Add an entry for *.zip files, and update the entry for *.tar.gz files
to the new style. Update the docstring.
(dired-compress-file): When PROGRAM matches %i or %o, use the new
logic.
(dired-update-file-line): Avoid an error when at end of buffer.

Fixes Bug#21637
lisp/dired-aux.el