diff options
| author | Gerd Moellmann | 2000-03-23 13:54:25 +0000 |
|---|---|---|
| committer | Gerd Moellmann | 2000-03-23 13:54:25 +0000 |
| commit | 47d2ac754529212615c9eabb63ef2ac1e844c204 (patch) | |
| tree | 78463539b05c19fa784d169b4e693544dbf99aba | |
| parent | 67ba52a6a59de9bc841191b7b1a453a63e1bfaa5 (diff) | |
| download | emacs-47d2ac754529212615c9eabb63ef2ac1e844c204.tar.gz emacs-47d2ac754529212615c9eabb63ef2ac1e844c204.zip | |
Skip banner page fix.
(ps-print-version): New version number (5.1.2).
(ps-begin-file, ps-end-file, ps-generate): Code fix.
| -rw-r--r-- | lisp/ps-print.el | 22 |
1 files changed, 13 insertions, 9 deletions
diff --git a/lisp/ps-print.el b/lisp/ps-print.el index 64bf6567699..07dc47281a6 100644 --- a/lisp/ps-print.el +++ b/lisp/ps-print.el | |||
| @@ -9,11 +9,11 @@ | |||
| 9 | ;; Maintainer: Kenichi Handa <handa@etl.go.jp> (multi-byte characters) | 9 | ;; Maintainer: Kenichi Handa <handa@etl.go.jp> (multi-byte characters) |
| 10 | ;; Maintainer: Vinicius Jose Latorre <vinicius@cpqd.com.br> | 10 | ;; Maintainer: Vinicius Jose Latorre <vinicius@cpqd.com.br> |
| 11 | ;; Keywords: wp, print, PostScript | 11 | ;; Keywords: wp, print, PostScript |
| 12 | ;; Time-stamp: <2000/03/21 00:02:42 vinicius> | 12 | ;; Time-stamp: <2000/03/22 09:12:07 vinicius> |
| 13 | ;; Version: 5.1.1 | 13 | ;; Version: 5.1.2 |
| 14 | 14 | ||
| 15 | (defconst ps-print-version "5.1.1" | 15 | (defconst ps-print-version "5.1.2" |
| 16 | "ps-print.el, v 5.1.1 <2000/03/21 vinicius> | 16 | "ps-print.el, v 5.1.2 <2000/03/22 vinicius> |
| 17 | 17 | ||
| 18 | Vinicius's last change version -- this file may have been edited as part of | 18 | Vinicius's last change version -- this file may have been edited as part of |
| 19 | Emacs without changes to the version number. When reporting bugs, | 19 | Emacs without changes to the version number. When reporting bugs, |
| @@ -3740,7 +3740,6 @@ XSTART YSTART are the relative position for the first page in a sheet.") | |||
| 3740 | 3740 | ||
| 3741 | (ps-output "\n%%EndProcSet\n\n") | 3741 | (ps-output "\n%%EndProcSet\n\n") |
| 3742 | 3742 | ||
| 3743 | (ps-output-boolean "SkipFirstPage " ps-banner-page-when-duplexing) | ||
| 3744 | (ps-output-boolean "LandscapeMode " | 3743 | (ps-output-boolean "LandscapeMode " |
| 3745 | (or ps-landscape-mode | 3744 | (or ps-landscape-mode |
| 3746 | (eq (ps-n-up-landscape n-up) 'pag))) | 3745 | (eq (ps-n-up-landscape n-up) 'pag))) |
| @@ -3854,7 +3853,9 @@ XSTART YSTART are the relative position for the first page in a sheet.") | |||
| 3854 | "\n\n" | 3853 | "\n\n" |
| 3855 | ps-print-duplex-feature | 3854 | ps-print-duplex-feature |
| 3856 | "\n%%EndFeature\n"))) | 3855 | "\n%%EndFeature\n"))) |
| 3857 | (ps-output "\n/Lines 0 def\n/PageCount 0 def\n\nBeginDoc\n%%EndSetup\n")) | 3856 | (ps-output "\n/Lines 0 def\n/PageCount 0 def\n\nBeginDoc\n%%EndSetup\n") |
| 3857 | (and ps-banner-page-when-duplexing | ||
| 3858 | (ps-output "\n%%Page: 0 0\nsave showpage restore\n"))) | ||
| 3858 | 3859 | ||
| 3859 | 3860 | ||
| 3860 | (defun ps-insert-string (prologue) | 3861 | (defun ps-insert-string (prologue) |
| @@ -3936,7 +3937,7 @@ XSTART YSTART are the relative position for the first page in a sheet.") | |||
| 3936 | (defmacro ps-page-number () | 3937 | (defmacro ps-page-number () |
| 3937 | `(1+ (/ (1- ps-page-count) ps-number-of-columns))) | 3938 | `(1+ (/ (1- ps-page-count) ps-number-of-columns))) |
| 3938 | 3939 | ||
| 3939 | (defun ps-end-file () | 3940 | (defun ps-end-file (needs-begin-file) |
| 3940 | (ps-flush-output) | 3941 | (ps-flush-output) |
| 3941 | ;; Back to the PS output buffer to set the last page n-up printing | 3942 | ;; Back to the PS output buffer to set the last page n-up printing |
| 3942 | (save-excursion | 3943 | (save-excursion |
| @@ -3952,7 +3953,10 @@ XSTART YSTART are the relative position for the first page in a sheet.") | |||
| 3952 | (ps-dummy-page)) | 3953 | (ps-dummy-page)) |
| 3953 | ;; Set end of PostScript file | 3954 | ;; Set end of PostScript file |
| 3954 | (ps-output "EndSheet\n\n%%Trailer\n%%Pages: " | 3955 | (ps-output "EndSheet\n\n%%Trailer\n%%Pages: " |
| 3955 | (format "%d" ps-page-order) | 3956 | (format "%d" |
| 3957 | (if (and needs-begin-file ps-banner-page-when-duplexing) | ||
| 3958 | (1+ ps-page-order) | ||
| 3959 | ps-page-order)) | ||
| 3956 | "\n\nEndDoc\n\n%%EOF\n")) | 3960 | "\n\nEndDoc\n\n%%EOF\n")) |
| 3957 | 3961 | ||
| 3958 | 3962 | ||
| @@ -4619,7 +4623,7 @@ If FACE is not a valid face name, it is used default face." | |||
| 4619 | (funcall genfunc from to) | 4623 | (funcall genfunc from to) |
| 4620 | (ps-end-page) | 4624 | (ps-end-page) |
| 4621 | 4625 | ||
| 4622 | (ps-end-file) | 4626 | (ps-end-file needs-begin-file) |
| 4623 | (ps-end-job) | 4627 | (ps-end-job) |
| 4624 | 4628 | ||
| 4625 | ;; Setting this variable tells the unwind form that the | 4629 | ;; Setting this variable tells the unwind form that the |