From e831604df6fa74c1cbe978d63837313c2b8de9ed Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Thu, 2 Jan 2014 17:35:00 -0500 Subject: [PATCH] dired-do-print handles printer-name * dired-aux.el (dired-do-print): Handle printer-name. --- lisp/ChangeLog | 2 ++ lisp/dired-aux.el | 6 ++++++ 2 files changed, 8 insertions(+) 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 + * 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 -- 2.39.2