summaryrefslogtreecommitdiff
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
parenta574edbec9c9de37d04fffcace178e873bd41245 (diff)
downloademacs-e831604df6fa74c1cbe978d63837313c2b8de9ed.tar.gz
dired-do-print handles printer-name
* dired-aux.el (dired-do-print): Handle printer-name.
-rw-r--r--lisp/ChangeLog2
-rw-r--r--lisp/dired-aux.el6
2 files changed, 8 insertions, 0 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index bea33b8dd17..7ec7fc12c3f 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,5 +1,7 @@
2014-01-02 Richard Stallman <rms@gnu.org>
+ * dired-aux.el (dired-do-print): Handle printer-name.
+
* mail/rmailmm.el (rmail-mime-message-p): Moved to rmail.el.
* mail/rmail.el (rmail-mime-message-p): Moved from rmailmm.el.
(rmail-epa-decrypt): Turn off mime processing.
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