aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGerd Moellmann2000-11-09 12:05:55 +0000
committerGerd Moellmann2000-11-09 12:05:55 +0000
commit7bb054a550ed97384cb71d4c4c9abedae360d159 (patch)
treeed4bbbcad4d1f7ad07ae47ff5b0f4c294f79a6a4
parenta47449b3c7be54c1f7ce45da1ab4fa0ed7fc644e (diff)
downloademacs-7bb054a550ed97384cb71d4c4c9abedae360d159.tar.gz
emacs-7bb054a550ed97384cb71d4c4c9abedae360d159.zip
Patch for variable initialization when spooling. Doc
fix. (ps-output-list): Fun eliminated. (ps-begin-file, ps-begin-job): Code fix.
-rw-r--r--lisp/ChangeLog7
-rw-r--r--lisp/ps-print.el19
2 files changed, 15 insertions, 11 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 16666946400..9b11dd17aba 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,10 @@
12000-11-09 Vinicius Jose Latorre <vinicius@cpqd.com.br>
2
3 * ps-print.el: Patch for variable initialization when spooling. Doc
4 fix.
5 (ps-output-list): Fun eliminated.
6 (ps-begin-file, ps-begin-job): Code fix.
7
12000-11-08 Dave Love <fx@gnu.org> 82000-11-08 Dave Love <fx@gnu.org>
2 9
3 * ediff-wind.el (ediff-control-frame-parameters): Zero 10 * ediff-wind.el (ediff-control-frame-parameters): Zero
diff --git a/lisp/ps-print.el b/lisp/ps-print.el
index 41708bd3b10..fc27c966ea8 100644
--- a/lisp/ps-print.el
+++ b/lisp/ps-print.el
@@ -1563,7 +1563,7 @@ On MS-DOS and MS-Windows systems, a string value is taken as the name of the
1563printer device or port to which PostScript files are written, provided 1563printer device or port to which PostScript files are written, provided
1564`ps-lpr-command' is \"\". By default it is the same as `printer-name'; typical 1564`ps-lpr-command' is \"\". By default it is the same as `printer-name'; typical
1565non-default settings would be \"LPT1\" to \"LPT3\" for parallel printers, or 1565non-default settings would be \"LPT1\" to \"LPT3\" for parallel printers, or
1566\"COM1\" to \"COM4\" or \"AUX\" for serial printers, or \"//hostname/printer\" 1566\"COM1\" to \"COM4\" or \"AUX\" for serial printers, or \"\\\\hostname\\printer\"
1567for a shared network printer. You can also set it to a name of a file, in 1567for a shared network printer. You can also set it to a name of a file, in
1568which case the output gets appended to that file. \(Note that `ps-print' 1568which case the output gets appended to that file. \(Note that `ps-print'
1569package already has facilities for printing to a file, so you might as well use 1569package already has facilities for printing to a file, so you might as well use
@@ -3794,9 +3794,6 @@ page-height == bm + print-height + tm - ho - hh
3794(defun ps-output-string (string) 3794(defun ps-output-string (string)
3795 (ps-output t string)) 3795 (ps-output t string))
3796 3796
3797(defun ps-output-list (the-list)
3798 (mapcar 'ps-output the-list))
3799
3800;; Output strings in the list ARGS in the PostScript prologue part. 3797;; Output strings in the list ARGS in the PostScript prologue part.
3801(defun ps-output-prologue (args) 3798(defun ps-output-prologue (args)
3802 (ps-output 'prologue (if (stringp args) (list args) args))) 3799 (ps-output 'prologue (if (stringp args) (list args) args)))
@@ -4462,12 +4459,8 @@ XSTART YSTART are the relative position for the first page in a sheet.")
4462 4459
4463(defun ps-begin-file () 4460(defun ps-begin-file ()
4464 (ps-get-page-dimensions) 4461 (ps-get-page-dimensions)
4465 (setq ps-page-postscript 0 4462 (setq ps-page-order 0
4466 ps-page-order 0
4467 ps-page-sheet 0
4468 ps-page-n-up 0
4469 ps-page-printed 0 4463 ps-page-printed 0
4470 ps-print-page-p t
4471 ps-background-text-count 0 4464 ps-background-text-count 0
4472 ps-background-image-count 0 4465 ps-background-image-count 0
4473 ps-background-pages nil 4466 ps-background-pages nil
@@ -4609,7 +4602,7 @@ XSTART YSTART are the relative position for the first page in a sheet.")
4609 (ps-output "\n" ps-print-prologue-1) 4602 (ps-output "\n" ps-print-prologue-1)
4610 4603
4611 (ps-output "\n/printGlobalBackground{\n") 4604 (ps-output "\n/printGlobalBackground{\n")
4612 (ps-output-list ps-background-all-pages) 4605 (mapcar 'ps-output ps-background-all-pages)
4613 (ps-output "}def\n/printLocalBackground{\n}def\n") 4606 (ps-output "}def\n/printLocalBackground{\n}def\n")
4614 4607
4615 ;; Header fonts 4608 ;; Header fonts
@@ -4779,8 +4772,12 @@ XSTART YSTART are the relative position for the first page in a sheet.")
4779 (and (re-search-backward "^%%Trailer$" nil t) 4772 (and (re-search-backward "^%%Trailer$" nil t)
4780 (delete-region (match-beginning 0) (point-max)))) 4773 (delete-region (match-beginning 0) (point-max))))
4781 ;; miscellaneous 4774 ;; miscellaneous
4782 (setq ps-showline-count (car ps-printing-region) 4775 (setq ps-page-postscript 0
4776 ps-page-sheet 0
4777 ps-page-n-up 0
4783 ps-page-column 0 4778 ps-page-column 0
4779 ps-print-page-p t
4780 ps-showline-count (car ps-printing-region)
4784 ps-font-size-internal (ps-get-font-size 'ps-font-size) 4781 ps-font-size-internal (ps-get-font-size 'ps-font-size)
4785 ps-header-font-size-internal (ps-get-font-size 'ps-header-font-size) 4782 ps-header-font-size-internal (ps-get-font-size 'ps-header-font-size)
4786 ps-header-title-font-size-internal 4783 ps-header-title-font-size-internal