Mercurial > emacs
changeset 10982:e5942b624f45
(dired-do-print): Allow lpr-switches to be a string. Clean up.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Sun, 12 Mar 1995 18:38:20 +0000 |
parents | 54697b892d3a |
children | 8ad27030d73f |
files | lisp/dired-aux.el |
diffstat | 1 files changed, 6 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/dired-aux.el Sun Mar 12 18:34:57 1995 +0000 +++ b/lisp/dired-aux.el Sun Mar 12 18:38:20 1995 +0000 @@ -164,8 +164,12 @@ (let* ((file-list (dired-get-marked-files t arg)) (command (dired-mark-read-string "Print %s with: " - (mapconcat 'concat (append (list lpr-command) - lpr-switches) " ") + (mapconcat 'identity + (cons lpr-command + (if (stringp lpr-switches) + (list lpr-switches) + lpr-switches)) + " ") 'print arg file-list))) (dired-run-shell-command (dired-shell-stuff-it command file-list nil))))