comparison lisp/ps-print.el @ 32836:2d9f4fc56dba

(ps-generate): Fix odd/even pages printing bug.
author Gerd Moellmann <gerd@gnu.org>
date Tue, 24 Oct 2000 21:17:40 +0000
parents 0e090a7a7011
children 29cbd0eb60e6
comparison
equal deleted inserted replaced
32835:001414add3a5 32836:2d9f4fc56dba
1 ;;; ps-print.el --- Print text from the buffer as PostScript 1 ;;; ps-print.el --- Print text from the buffer as PostScript
2 2
3 ;; Copyright (C) 1993-2000 Free Software Foundation, Inc. 3 ;; Copyright (C) 1993, 2000 Free Software Foundation, Inc.
4 4
5 ;; Author: Jim Thompson (was <thompson@wg2.waii.com>) 5 ;; Author: Jim Thompson (was <thompson@wg2.waii.com>)
6 ;; Author: Jacques Duthen (was <duthen@cegelec-red.fr>) 6 ;; Author: Jacques Duthen (was <duthen@cegelec-red.fr>)
7 ;; Author: Vinicius Jose Latorre <vinicius@cpqd.com.br> 7 ;; Author: Vinicius Jose Latorre <vinicius@cpqd.com.br>
8 ;; Author: Kenichi Handa <handa@etl.go.jp> (multi-byte characters) 8 ;; Author: Kenichi Handa <handa@etl.go.jp> (multi-byte characters)
5370 (goto-char (point-min)) 5370 (goto-char (point-min))
5371 (or (looking-at (regexp-quote ps-adobe-tag)) 5371 (or (looking-at (regexp-quote ps-adobe-tag))
5372 (setq needs-begin-file t)) 5372 (setq needs-begin-file t))
5373 (save-excursion 5373 (save-excursion
5374 (set-buffer ps-source-buffer) 5374 (set-buffer ps-source-buffer)
5375 (ps-begin-job) 5375 (let (ps-even-or-odd-pages)
5376 (when needs-begin-file 5376 (ps-begin-job)
5377 (ps-begin-file) 5377 (when needs-begin-file
5378 (ps-mule-initialize)) 5378 (ps-begin-file)
5379 (ps-mule-begin-job from to) 5379 (ps-mule-initialize))
5380 (ps-selected-pages) 5380 (ps-mule-begin-job from to)
5381 (ps-selected-pages))
5381 (ps-begin-page)) 5382 (ps-begin-page))
5382 (set-buffer ps-source-buffer) 5383 (set-buffer ps-source-buffer)
5383 (funcall genfunc from to) 5384 (funcall genfunc from to)
5384 (ps-end-page) 5385 (ps-end-page)
5385 5386