diff options
| author | Richard M. Stallman | 1993-12-31 13:06:33 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1993-12-31 13:06:33 +0000 |
| commit | b41f6027fd38ed76289692984f9e43bee8b80be2 (patch) | |
| tree | 9e29292423ca0c409b7218a81741151a340e76e4 | |
| parent | 62bcf0098d9c3d46070cb003ddd341174a37d09f (diff) | |
| download | emacs-b41f6027fd38ed76289692984f9e43bee8b80be2.tar.gz emacs-b41f6027fd38ed76289692984f9e43bee8b80be2.zip | |
(print-region-1): If lpr-headers-switches is string,
turn it into a list before appending.
| -rw-r--r-- | lisp/lpr.el | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lisp/lpr.el b/lisp/lpr.el index 7fa9d912e22..bf27a8b8012 100644 --- a/lisp/lpr.el +++ b/lisp/lpr.el | |||
| @@ -93,7 +93,10 @@ See definition of `print-region-1' for calling conventions.") | |||
| 93 | (if page-headers | 93 | (if page-headers |
| 94 | (if lpr-headers-switches | 94 | (if lpr-headers-switches |
| 95 | ;; On BSD, use an option to get page headers. | 95 | ;; On BSD, use an option to get page headers. |
| 96 | (setq switches (append lpr-headers-switches switches)) | 96 | (setq switches (append (if (stringp lpr-headers-switches) |
| 97 | (list lpr-headers-switches) | ||
| 98 | lpr-headers-switches) | ||
| 99 | switches)) | ||
| 97 | (print-region-new-buffer start end) | 100 | (print-region-new-buffer start end) |
| 98 | (call-process-region start end "pr" t t nil) | 101 | (call-process-region start end "pr" t t nil) |
| 99 | (setq start (point-min) end (point-max)))) | 102 | (setq start (point-min) end (point-max)))) |