branch: elpa/helm commit e038260fcca73e4f234e9b6abdf90f5ef094a490 Author: Thierry Volpiatto <thie...@posteo.net> Commit: Thierry Volpiatto <thie...@posteo.net>
Fix printer action --- helm-files.el | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/helm-files.el b/helm-files.el index d94633b2c8..2e2013afc6 100644 --- a/helm-files.el +++ b/helm-files.el @@ -2561,7 +2561,7 @@ Same as `dired-do-print' but for Helm." (lpr-switches (if (and (stringp printer-name) (string< "" printer-name)) - (cons (concat lpr-printer-switch printer-name) + (cons (concat lpr-printer-switch " " printer-name) lpr-switches) lpr-switches)) (command (helm-read-string @@ -2577,8 +2577,7 @@ Same as `dired-do-print' but for Helm." (list lpr-switches) lpr-switches)) " ")))) - (file-args (mapconcat (lambda (x) - (format "'%s'" x)) + (file-args (mapconcat #'shell-quote-argument file-list " ")) (cmd-line (concat command " " file-args))) (if command