diff options
| author | Gerd Moellmann | 2000-03-15 13:39:19 +0000 |
|---|---|---|
| committer | Gerd Moellmann | 2000-03-15 13:39:19 +0000 |
| commit | 81c7ca6923ca9431e92c76da199b08531d685da0 (patch) | |
| tree | 85ad41f6a9ec04c8cc0b3cd6cdbea627dc842562 | |
| parent | 58ce180df9675c95c3bbd8f5c1fa35dd013a75b6 (diff) | |
| download | emacs-81c7ca6923ca9431e92c76da199b08531d685da0.tar.gz emacs-81c7ca6923ca9431e92c76da199b08531d685da0.zip | |
*** empty log message ***
| -rw-r--r-- | etc/ChangeLog | 6 | ||||
| -rw-r--r-- | etc/ps-prin0.ps | 115 | ||||
| -rw-r--r-- | lisp/ChangeLog | 10 |
3 files changed, 131 insertions, 0 deletions
diff --git a/etc/ChangeLog b/etc/ChangeLog index 8114b967728..f3511fc0ca4 100644 --- a/etc/ChangeLog +++ b/etc/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2000-03-15 Vinicius Jose Latorre <vinicius@cpqd.com.br> | ||
| 2 | |||
| 3 | * ps-print0.ps: New file. | ||
| 4 | |||
| 5 | * ps-prin1.ps, ps-prin3.ps: Eliminate CheckConfig. | ||
| 6 | |||
| 1 | 2000-01-05 Vinicius Jose Latorre <vinicius@cpqd.com.br> | 7 | 2000-01-05 Vinicius Jose Latorre <vinicius@cpqd.com.br> |
| 2 | 8 | ||
| 3 | * ps-prin1.ps, ps-prin2.ps, ps-prin3.ps: New files. | 9 | * ps-prin1.ps, ps-prin2.ps, ps-prin3.ps: New files. |
diff --git a/etc/ps-prin0.ps b/etc/ps-prin0.ps new file mode 100644 index 00000000000..a58b9888d26 --- /dev/null +++ b/etc/ps-prin0.ps | |||
| @@ -0,0 +1,115 @@ | |||
| 1 | % === BEGIN ps-print prologue 0 | ||
| 2 | |||
| 3 | %%BeginProcSet: ErrorHandler | ||
| 4 | % Downloaded Error Break-page handler | ||
| 5 | % Adapted from: | ||
| 6 | % PostScript Language Program Design, | ||
| 7 | % Adobe Systems Incorporated. | ||
| 8 | % Appendix A, pages 217-219 | ||
| 9 | |||
| 10 | /ps$brkpage where{pop} | ||
| 11 | { | ||
| 12 | /ps$brkpage 64 dict def | ||
| 13 | ps$brkpage begin | ||
| 14 | /tx 0 def /ty 0 def /toy 0 def /tox 0 def | ||
| 15 | /prnt{ | ||
| 16 | dup type /stringtype ne{=string cvs}if | ||
| 17 | dup length 6 mul | ||
| 18 | /tx exch def /ty 10 def | ||
| 19 | currentpoint /toy exch def /tox exch def | ||
| 20 | 1 setgray newpath | ||
| 21 | tox toy 2 sub moveto | ||
| 22 | 0 ty rlineto tx 0 rlineto | ||
| 23 | 0 ty neg rlineto | ||
| 24 | closepath fill | ||
| 25 | tox toy moveto 0 setgray show | ||
| 26 | }bind def | ||
| 27 | /nl{currentpoint exch pop lmargin exch moveto 0 -10 rmoveto}def | ||
| 28 | /=={/cp 0 def typeprint nl}def | ||
| 29 | /typeprint{dup type dup currentdict exch known{exec}{unknowntype}ifelse}readonly def | ||
| 30 | /lmargin 72 def | ||
| 31 | /rmargin 72 def | ||
| 32 | /tprint{ | ||
| 33 | dup length cp add rmargin gt{nl /cp 0 def}if | ||
| 34 | dup length cp add /cp exch def | ||
| 35 | prnt | ||
| 36 | }readonly def | ||
| 37 | /cvsprint{=string cvs tprint( )tprint}readonly def | ||
| 38 | /unknowntype{exch pop cvlit(??)tprint cvsprint}readonly def | ||
| 39 | /integertype{cvsprint}readonly def | ||
| 40 | /realtype{cvsprint}readonly def | ||
| 41 | /booleantype{cvsprint}readonly def | ||
| 42 | /operatortype{(//)tprint cvsprint}readonly def | ||
| 43 | /marktype{pop(-mark-)tprint}readonly def | ||
| 44 | /dicttype{pop(-dictionary-)tprint}readonly def | ||
| 45 | /nulltype{pop(-null-)tprint}readonly def | ||
| 46 | /filetype{pop(-filestream-)tprint}readonly def | ||
| 47 | /savetype{pop(-savelevel-)tprint}readonly def | ||
| 48 | /fonttype{pop(-fontid-)tprint}readonly def | ||
| 49 | /nametype{dup xcheck not{(/)tprint}if cvsprint}readonly def | ||
| 50 | /stringtype{ | ||
| 51 | dup rcheck | ||
| 52 | {(\()tprint tprint(\))tprint} | ||
| 53 | {pop(-string-)tprint}ifelse}readonly def | ||
| 54 | /arraytype{ | ||
| 55 | dup rcheck | ||
| 56 | {dup xcheck | ||
| 57 | {({)tprint{typeprint}forall(})tprint} | ||
| 58 | {([)tprint{typeprint}forall(])tprint}ifelse} | ||
| 59 | {pop(-array-)tprint}ifelse}readonly def | ||
| 60 | /packedarraytype{ | ||
| 61 | dup rcheck | ||
| 62 | {dup xcheck | ||
| 63 | {({)tprint{typeprint}forall(})tprint} | ||
| 64 | {([)tprint{typeprint}forall(])tprint}ifelse} | ||
| 65 | {pop(-packedarray-)tprint}ifelse}readonly def | ||
| 66 | /courier /Courier findfont 10 scalefont def | ||
| 67 | /OLDhandleerror errordict /handleerror get def | ||
| 68 | end %ps$brkpage | ||
| 69 | |||
| 70 | /handleerror{ | ||
| 71 | systemdict begin $error begin ps$brkpage begin | ||
| 72 | newerror | ||
| 73 | {/newerror false store vmstatus pop pop 0 ne{grestoreall}if | ||
| 74 | initgraphics | ||
| 75 | ErrorMessage 1 and 0 ne{ % print on paper | ||
| 76 | courier setfont lmargin 720 moveto | ||
| 77 | (# ERROR: )prnt errorname prnt nl | ||
| 78 | (# OFFENDING COMMAND: )prnt /command load prnt | ||
| 79 | $error /ostack known | ||
| 80 | {nl nl(# STACK:)prnt nl nl $error /ostack get aload length{==}repeat}if | ||
| 81 | $error /errorinfo known | ||
| 82 | {nl nl(# ERRORINFO:)prnt nl nl $error /errorinfo get aload length{==}repeat}if | ||
| 83 | systemdict /showpage get exec}if | ||
| 84 | ErrorMessage 2 and 0 ne{ % send back to printing system | ||
| 85 | (\%\%[ Error: )print errorname =print | ||
| 86 | (; OffendingCommand: )print/command load =print | ||
| 87 | $error /errorinfo known | ||
| 88 | {(; ErrorInfo:)print $error /errorinfo get aload length{( )=print =print}repeat}if | ||
| 89 | ( ]\%\%)= flush | ||
| 90 | (\%\%[ Rest of job is ignored ]\%\%)= flush}if | ||
| 91 | /newerror true store}if | ||
| 92 | end end end | ||
| 93 | stop | ||
| 94 | } % handleerror | ||
| 95 | dup 0 systemdict put % replace name by actual dict object | ||
| 96 | dup 4 ps$brkpage put % replace name by dict object | ||
| 97 | bind readonly | ||
| 98 | |||
| 99 | errordict 3 1 roll put % put proc in errordict as /handleerror | ||
| 100 | }ifelse | ||
| 101 | %%EndProcSet | ||
| 102 | |||
| 103 | gs_languagelevel 2 ne{ % operators for language level 2 only | ||
| 104 | /<<{mark}bind def | ||
| 105 | />>{counttomark 2 idiv dup dict begin{def}repeat pop currentdict end}bind def | ||
| 106 | /setpagedevice{pop}bind def | ||
| 107 | }if | ||
| 108 | |||
| 109 | /setduplexmode where{pop} | ||
| 110 | {/setduplexmode /duplexmode where{pop{duplexmode}}{{pop}}ifelse bind def}ifelse | ||
| 111 | |||
| 112 | /settumble where{pop} | ||
| 113 | {/settumble /tumble where{pop{tumble}}{{pop}}ifelse bind def}ifelse | ||
| 114 | |||
| 115 | % === END ps-print prologue 0 | ||
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index ff0533f6d99..445c90ae0a4 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,13 @@ | |||
| 1 | 2000-03-15 Vinicius Jose Latorre <vinicius@cpqd.com.br> | ||
| 2 | |||
| 3 | * ps-print.el: PostScript user-defined prologue, PostScript error | ||
| 4 | handler, doc fix. | ||
| 5 | (ps-print-version): New version number (5.1). | ||
| 6 | (ps-user-defined-prologue, ps-error-handler-message) | ||
| 7 | (ps-print-prologue-0, ps-error-handler-alist): New vars. | ||
| 8 | (ps-setup, ps-begin-file, ps-begin-job): Code fix. | ||
| 9 | (ps-insert-string): New function. | ||
| 10 | |||
| 1 | 2000-03-15 Kenichi Handa <handa@etl.go.jp> | 11 | 2000-03-15 Kenichi Handa <handa@etl.go.jp> |
| 2 | 12 | ||
| 3 | * international/ccl.el (ccl-compile-expression): Don't generate | 13 | * international/ccl.el (ccl-compile-expression): Don't generate |