diff options
| author | Juanma Barranquero | 2007-09-25 11:12:22 +0000 |
|---|---|---|
| committer | Juanma Barranquero | 2007-09-25 11:12:22 +0000 |
| commit | 81ce287c3374d5806c68dfc12e4c4f50dd18aefa (patch) | |
| tree | 011ecc4771202e784344de8f924a21f0073f904f | |
| parent | 021c7d9720b14dd5394c43cbc29c10138f63b036 (diff) | |
| download | emacs-81ce287c3374d5806c68dfc12e4c4f50dd18aefa.tar.gz emacs-81ce287c3374d5806c68dfc12e4c4f50dd18aefa.zip | |
(ps-background, ps-begin-file, ps-build-reference-face-lists):
Use `mapc' rather than `mapcar'.
| -rw-r--r-- | lisp/ps-print.el | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/lisp/ps-print.el b/lisp/ps-print.el index f3f9e45fb87..9d6f1dec34b 100644 --- a/lisp/ps-print.el +++ b/lisp/ps-print.el | |||
| @@ -5028,15 +5028,15 @@ page-height == ((floor print-height ((th + ls) * zh)) * ((th + ls) * zh)) - th | |||
| 5028 | 5028 | ||
| 5029 | (defun ps-background (page-number) | 5029 | (defun ps-background (page-number) |
| 5030 | (let (has-local-background) | 5030 | (let (has-local-background) |
| 5031 | (mapcar #'(lambda (range) | 5031 | (mapc #'(lambda (range) |
| 5032 | (and (<= (aref range 0) page-number) | 5032 | (and (<= (aref range 0) page-number) |
| 5033 | (<= page-number (aref range 1)) | 5033 | (<= page-number (aref range 1)) |
| 5034 | (if has-local-background | 5034 | (if has-local-background |
| 5035 | (ps-output (aref range 2)) | 5035 | (ps-output (aref range 2)) |
| 5036 | (setq has-local-background t) | 5036 | (setq has-local-background t) |
| 5037 | (ps-output "/printLocalBackground{\n" | 5037 | (ps-output "/printLocalBackground{\n" |
| 5038 | (aref range 2))))) | 5038 | (aref range 2))))) |
| 5039 | ps-background-pages) | 5039 | ps-background-pages) |
| 5040 | (and has-local-background (ps-output "}def\n")))) | 5040 | (and has-local-background (ps-output "}def\n")))) |
| 5041 | 5041 | ||
| 5042 | 5042 | ||
| @@ -5672,7 +5672,7 @@ XSTART YSTART are the relative position for the first page in a sheet.") | |||
| 5672 | 5672 | ||
| 5673 | (ps-output "\n" ps-print-prologue-1 | 5673 | (ps-output "\n" ps-print-prologue-1 |
| 5674 | "\n/printGlobalBackground{\n") | 5674 | "\n/printGlobalBackground{\n") |
| 5675 | (mapcar 'ps-output ps-background-all-pages) | 5675 | (mapc 'ps-output ps-background-all-pages) |
| 5676 | (ps-output | 5676 | (ps-output |
| 5677 | "}def\n/printLocalBackground{\n}def\n" | 5677 | "}def\n/printLocalBackground{\n}def\n" |
| 5678 | "\n%%EndProlog\n\n%%BeginSetup\n" | 5678 | "\n%%EndProlog\n\n%%BeginSetup\n" |
| @@ -6459,10 +6459,10 @@ If FACE is not a valid face name, use default face." | |||
| 6459 | ;; Now, rebuild reference face lists | 6459 | ;; Now, rebuild reference face lists |
| 6460 | (setq ps-print-face-alist nil) | 6460 | (setq ps-print-face-alist nil) |
| 6461 | (if ps-auto-font-detect | 6461 | (if ps-auto-font-detect |
| 6462 | (mapcar 'ps-map-face (face-list)) | 6462 | (mapc 'ps-map-face (face-list)) |
| 6463 | (mapcar 'ps-set-face-bold ps-bold-faces) | 6463 | (mapc 'ps-set-face-bold ps-bold-faces) |
| 6464 | (mapcar 'ps-set-face-italic ps-italic-faces) | 6464 | (mapc 'ps-set-face-italic ps-italic-faces) |
| 6465 | (mapcar 'ps-set-face-underline ps-underlined-faces)) | 6465 | (mapc 'ps-set-face-underline ps-underlined-faces)) |
| 6466 | (setq ps-build-face-reference nil)) | 6466 | (setq ps-build-face-reference nil)) |
| 6467 | 6467 | ||
| 6468 | 6468 | ||