aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKenichi Handa1998-08-28 12:33:52 +0000
committerKenichi Handa1998-08-28 12:33:52 +0000
commit915293a22edbbd22a3c91e9ba45eb0eb15b2fec9 (patch)
tree725d55e9fe4ab9aa8cc98107fc53676ac48cb817
parent4a7cf15f4792060922601fe1a8f2cc1024ac2273 (diff)
downloademacs-915293a22edbbd22a3c91e9ba45eb0eb15b2fec9.tar.gz
emacs-915293a22edbbd22a3c91e9ba45eb0eb15b2fec9.zip
(ps-print-control-characters): Doc-string modified.
(ps-output-string-prim): Comment format changed. (ps-do-despool): Indentation of source code changed.
-rw-r--r--lisp/ps-print.el25
1 files changed, 15 insertions, 10 deletions
diff --git a/lisp/ps-print.el b/lisp/ps-print.el
index 0ded650e1ea..a2de18d534e 100644
--- a/lisp/ps-print.el
+++ b/lisp/ps-print.el
@@ -502,7 +502,7 @@ Please send all bug fixes and enhancements to
502;; which lists the currently available font families. 502;; which lists the currently available font families.
503;; 503;;
504;; The variable `ps-font-size' determines the size (in points) 504;; The variable `ps-font-size' determines the size (in points)
505;; of the font for ordinary text, when generating Postscript. 505;; of the font for ordinary text, when generating PostScript.
506;; Its value is a float. 506;; Its value is a float.
507;; 507;;
508;; Similarly, the variable `ps-header-font-family' determines 508;; Similarly, the variable `ps-header-font-family' determines
@@ -852,11 +852,17 @@ Please send all bug fixes and enhancements to
852;; Acknowledgements 852;; Acknowledgements
853;; ---------------- 853;; ----------------
854;; 854;;
855;; Thanks to Kein'ichi Handa <handa@etl.go.jp> for multi-byte buffer handling.
856;;
857;; Thanks to Matthew O Persico <Matthew.Persico@lazard.com> for line number on
858;; empty columns.
859;;
860;; Thanks to Theodore Jump <tjump@cais.com> for adjust PostScript code order on
861;; last page.
862;;
855;; Thanks to Roland Ducournau <ducour@lirmm.fr> for 863;; Thanks to Roland Ducournau <ducour@lirmm.fr> for
856;; `ps-print-control-characters' variable documentation. 864;; `ps-print-control-characters' variable documentation.
857;; 865;;
858;; Thanks to Kein'ichi Handa <handa@etl.go.jp> for multi-byte buffer handling.
859;;
860;; Thanks to Marcus G Daniels <marcus@cathcart.sysc.pdx.edu> for a better 866;; Thanks to Marcus G Daniels <marcus@cathcart.sysc.pdx.edu> for a better
861;; database font management. 867;; database font management.
862;; 868;;
@@ -1053,7 +1059,7 @@ example `letter', `legal' or `a4'."
1053(defcustom ps-print-control-characters 'control-8-bit 1059(defcustom ps-print-control-characters 'control-8-bit
1054 "*Specifies the printable form for control and 8-bit characters. 1060 "*Specifies the printable form for control and 8-bit characters.
1055That is, instead of sending, for example, a ^D (\004) to printer, 1061That is, instead of sending, for example, a ^D (\004) to printer,
1056you can send ^ and D. 1062it is sent the string \"^D\".
1057 1063
1058Valid values are: 1064Valid values are:
1059 1065
@@ -4004,8 +4010,7 @@ page-height == bm + print-height + tm - ho - hh
4004 (save-excursion ;insert string 4010 (save-excursion ;insert string
4005 (insert (string-as-unibyte string))) 4011 (insert (string-as-unibyte string)))
4006 ;; Find and quote special characters as necessary for PS 4012 ;; Find and quote special characters as necessary for PS
4007 ;; This skips everything except control chars, nonascii chars, 4013 ;; This skips everything except control chars, nonascii chars, (, ) and \.
4008 ;; (, ) and \.
4009 (while (progn (skip-chars-forward " -'*-[]-~") (not (eobp))) 4014 (while (progn (skip-chars-forward " -'*-[]-~") (not (eobp)))
4010 (let ((special (following-char))) 4015 (let ((special (following-char)))
4011 (delete-char 1) 4016 (delete-char 1)
@@ -5024,6 +5029,7 @@ If FACE is not a valid face name, it is used default face."
5024 (progn 5029 (progn
5025 (set-buffer ps-spool-buffer) 5030 (set-buffer ps-spool-buffer)
5026 (set-buffer-multibyte nil) 5031 (set-buffer-multibyte nil)
5032
5027 ;; Get a marker and make it point to the current end of the 5033 ;; Get a marker and make it point to the current end of the
5028 ;; buffer, If an error occurs, we'll delete everything from 5034 ;; buffer, If an error occurs, we'll delete everything from
5029 ;; the end of this marker onwards. 5035 ;; the end of this marker onwards.
@@ -5100,10 +5106,9 @@ If FACE is not a valid face name, it is used default face."
5100 (let* ((coding-system-for-write 'raw-text-unix) 5106 (let* ((coding-system-for-write 'raw-text-unix)
5101 (ps-printer-name (or ps-printer-name printer-name)) 5107 (ps-printer-name (or ps-printer-name printer-name))
5102 (ps-lpr-switches 5108 (ps-lpr-switches
5103 (append 5109 (append (and (stringp ps-printer-name)
5104 (and (stringp ps-printer-name) 5110 (list (concat "-P" ps-printer-name)))
5105 (list (concat "-P" ps-printer-name))) 5111 ps-lpr-switches)))
5106 ps-lpr-switches)))
5107 (if (and (memq system-type '(ms-dos windows-nt)) 5112 (if (and (memq system-type '(ms-dos windows-nt))
5108 (or (stringp dos-ps-printer) 5113 (or (stringp dos-ps-printer)
5109 (stringp ps-printer-name))) 5114 (stringp ps-printer-name)))