From: Richard M. Stallman Date: Thu, 2 Jan 2014 22:35:00 +0000 (-0500) Subject: dired-do-print handles printer-name X-Git-Tag: emacs-24.3.90~173^2^2~42^2~45^2~387^2~99 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=e831604df6fa74c1cbe978d63837313c2b8de9ed;p=emacs.git dired-do-print handles printer-name * dired-aux.el (dired-do-print): Handle printer-name. --- 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