diff options
author | Eli Zaretskii <eliz@gnu.org> | 2016-09-23 11:08:34 +0300 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2016-09-23 11:08:34 +0300 |
commit | f6fa160e91e264f0a3f797b56e8605dbdb32cb76 (patch) | |
tree | 8496f07670f5c9ceacd5dfb0492dc2484cdecc6e /lisp/dired-aux.el | |
parent | 2b8c5f0bffd329616f26721325da57f4ac06cabb (diff) | |
download | emacs-f6fa160e91e264f0a3f797b56e8605dbdb32cb76.tar.gz |
Fix 'dired-compress-files'
* lisp/dired-aux.el (dired-do-compress-to): Make sure the archive
file name is fully expanded by running it through
'expand-file-name'. Suggested by Drew Adams <drew.adams@oracle.com>.
(Bug#24486) Doc fix.
* lisp/dired.el: Regenerated changes in autoloads.
Diffstat (limited to 'lisp/dired-aux.el')
-rw-r--r-- | lisp/dired-aux.el | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lisp/dired-aux.el b/lisp/dired-aux.el index b9111a8d5b4..204ee13006a 100644 --- a/lisp/dired-aux.el +++ b/lisp/dired-aux.el @@ -937,12 +937,12 @@ output file. %i path(s) are relative, while %o is absolute.") ;;;###autoload (defun dired-do-compress-to () "Compress selected files and directories to an archive. -You are prompted for the archive name. -The archiving command is chosen based on the archive name extension and -`dired-compress-files-alist'." +Prompt for the archive file name. +Choose the archiving command based on the archive file-name extension +and `dired-compress-files-alist'." (interactive) (let* ((in-files (dired-get-marked-files)) - (out-file (read-file-name "Compress to: ")) + (out-file (expand-file-name (read-file-name "Compress to: "))) (rule (cl-find-if (lambda (x) (string-match (car x) out-file)) |