summaryrefslogtreecommitdiff
path: root/lisp/dired-aux.el
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>2014-01-02 17:35:00 -0500
committerRichard M. Stallman <rms@gnu.org>2014-01-02 17:35:00 -0500
commite831604df6fa74c1cbe978d63837313c2b8de9ed (patch)
tree4c8587d65e97e3fcc455c4416c2665ae0b50e284 /lisp/dired-aux.el
parenta574edbec9c9de37d04fffcace178e873bd41245 (diff)
downloademacs-e831604df6fa74c1cbe978d63837313c2b8de9ed.tar.gz
dired-do-print handles printer-name
* dired-aux.el (dired-do-print): Handle printer-name.
Diffstat (limited to 'lisp/dired-aux.el')
-rw-r--r--lisp/dired-aux.el6
1 files changed, 6 insertions, 0 deletions
diff --git a/lisp/dired-aux.el b/lisp/dired-aux.el
index 6ed7d9eb374..8f1a4be9d50 100644
--- a/lisp/dired-aux.el
+++ b/lisp/dired-aux.el
@@ -415,6 +415,12 @@ Uses the shell command coming from variables `lpr-command' and
`lpr-switches' as default."
(interactive "P")
(let* ((file-list (dired-get-marked-files t arg))
+ (lpr-switches
+ (if (and (stringp printer-name)
+ (string< "" printer-name))
+ (cons (concat lpr-printer-switch printer-name)
+ lpr-switches)
+ lpr-switches))
(command (dired-mark-read-string
"Print %s with: "
(mapconcat 'identity