emacs-elpa-diffs
[Top][All Lists]
Advanced

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

[nongnu] elpa/helm e038260fcc: Fix printer action


From: ELPA Syncer
Subject: [nongnu] elpa/helm e038260fcc: Fix printer action
Date: Thu, 19 May 2022 13:58:30 -0400 (EDT)

branch: elpa/helm
commit e038260fcca73e4f234e9b6abdf90f5ef094a490
Author: Thierry Volpiatto <thievol@posteo.net>
Commit: Thierry Volpiatto <thievol@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



reply via email to

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