aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1995-03-12 18:38:20 +0000
committerRichard M. Stallman1995-03-12 18:38:20 +0000
commitc572e732aeba7bf8530930996ea03a6261d845f5 (patch)
tree9b9df8e36ecb2947a2149dc823aa6ab12b3cafc0
parent9e983c78164531768e55aee496b36ac73f1901a8 (diff)
downloademacs-c572e732aeba7bf8530930996ea03a6261d845f5.tar.gz
emacs-c572e732aeba7bf8530930996ea03a6261d845f5.zip
(dired-do-print): Allow lpr-switches to be a string. Clean up.
-rw-r--r--lisp/dired-aux.el8
1 files changed, 6 insertions, 2 deletions
diff --git a/lisp/dired-aux.el b/lisp/dired-aux.el
index c3b8373e610..c537c2e458f 100644
--- a/lisp/dired-aux.el
+++ b/lisp/dired-aux.el
@@ -164,8 +164,12 @@ Uses the shell command coming from variables `lpr-command' and
164 (let* ((file-list (dired-get-marked-files t arg)) 164 (let* ((file-list (dired-get-marked-files t arg))
165 (command (dired-mark-read-string 165 (command (dired-mark-read-string
166 "Print %s with: " 166 "Print %s with: "
167 (mapconcat 'concat (append (list lpr-command) 167 (mapconcat 'identity
168 lpr-switches) " ") 168 (cons lpr-command
169 (if (stringp lpr-switches)
170 (list lpr-switches)
171 lpr-switches))
172 " ")
169 'print arg file-list))) 173 'print arg file-list)))
170 (dired-run-shell-command (dired-shell-stuff-it command file-list nil)))) 174 (dired-run-shell-command (dired-shell-stuff-it command file-list nil))))
171 175