home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Source Code 1993 July / THE_SOURCE_CODE_CD_ROM.iso / gnu / lucid / lemacs-19.6 / lisp / packages / lpr.elc < prev    next >
Emacs Compiled Lisp  |  1993-04-01  |  2.0 KB

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text


This file was processed as: Emacs Compiled Lisp (other/emacsCompiledLisp).
This format is not currently supported by dexvert.

ConfidenceProgramDetectionMatch TypeSupport
1% dexvert Emacs Compiled Lisp (other/emacsCompiledLisp) magic Unsupported
1% dexvert Combustion 2 Particle Library (other/combustion2ParticleLibrary) ext Unsupported
100% file Emacs/XEmacs v19 byte-compiled Lisp data default
99% file data default
100% TrID Emacs/XEmacs byte-compiled Lisp (generic) default
100% xdgMime text/x-emacs-lisp default (weak)



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 3b 45 4c 43 13 00 00 00 | 0a 3b 3b 3b 20 63 6f 6d |;ELC....|.;;; com|
|00000010| 70 69 6c 65 64 20 62 79 | 20 6a 77 7a 40 74 68 61 |piled by| jwz@tha|
|00000020| 6c 69 64 6f 6d 69 64 65 | 20 6f 6e 20 4d 6f 6e 20 |lidomide| on Mon |
|00000030| 46 65 62 20 20 31 20 31 | 39 3a 31 31 3a 35 35 20 |Feb 1 1|9:11:55 |
|00000040| 31 39 39 33 0a 3b 3b 3b | 20 66 72 6f 6d 20 66 69 |1993.;;;| from fi|
|00000050| 6c 65 20 2f 63 61 64 69 | 6c 6c 61 63 31 2f 63 6f |le /cadi|llac1/co|
|00000060| 64 65 2f 62 75 69 6c 64 | 2f 6c 65 6d 61 63 73 2f |de/build|/lemacs/|
|00000070| 6c 69 73 70 2f 70 61 63 | 6b 61 67 65 73 2f 6c 70 |lisp/pac|kages/lp|
|00000080| 72 2e 65 6c 0a 3b 3b 3b | 20 65 6d 61 63 73 20 76 |r.el.;;;| emacs v|
|00000090| 65 72 73 69 6f 6e 20 31 | 39 2e 34 2e 31 33 20 4c |ersion 1|9.4.13 L|
|000000a0| 75 63 69 64 2e 0a 3b 3b | 3b 20 62 79 74 65 63 6f |ucid..;;|; byteco|
|000000b0| 6d 70 20 76 65 72 73 69 | 6f 6e 20 32 2e 31 30 3b |mp versi|on 2.10;|
|000000c0| 20 20 31 2d 66 65 62 2d | 39 33 2e 0a 3b 3b 3b 20 | 1-feb-|93..;;; |
|000000d0| 6f 70 74 69 6d 69 7a 61 | 74 69 6f 6e 20 69 73 20 |optimiza|tion is |
|000000e0| 6f 6e 2e 0a 3b 3b 3b 20 | 74 68 69 73 20 66 69 6c |on..;;; |this fil|
|000000f0| 65 20 75 73 65 73 20 6f | 70 63 6f 64 65 73 20 77 |e uses o|pcodes w|
|00000100| 68 69 63 68 20 64 6f 20 | 6e 6f 74 20 65 78 69 73 |hich do |not exis|
|00000110| 74 20 69 6e 20 45 6d 61 | 63 73 31 38 2e 0a 0a 28 |t in Ema|cs18...(|
|00000120| 69 66 20 28 61 6e 64 20 | 28 62 6f 75 6e 64 70 20 |if (and |(boundp |
|00000130| 27 65 6d 61 63 73 2d 76 | 65 72 73 69 6f 6e 29 0a |'emacs-v|ersion).|
|00000140| 09 20 28 6f 72 20 28 61 | 6e 64 20 28 62 6f 75 6e |. (or (a|nd (boun|
|00000150| 64 70 20 27 65 70 6f 63 | 68 3a 3a 76 65 72 73 69 |dp 'epoc|h::versi|
|00000160| 6f 6e 29 20 65 70 6f 63 | 68 3a 3a 76 65 72 73 69 |on) epoc|h::versi|
|00000170| 6f 6e 29 0a 09 20 20 20 | 20 20 28 73 74 72 69 6e |on).. | (strin|
|00000180| 67 2d 6c 65 73 73 70 20 | 65 6d 61 63 73 2d 76 65 |g-lessp |emacs-ve|
|00000190| 72 73 69 6f 6e 20 22 31 | 39 22 29 29 29 0a 20 20 |rsion "1|9"))). |
|000001a0| 20 20 28 65 72 72 6f 72 | 20 22 54 68 69 73 20 66 | (error| "This f|
|000001b0| 69 6c 65 20 77 61 73 20 | 63 6f 6d 70 69 6c 65 64 |ile was |compiled|
|000001c0| 20 66 6f 72 20 45 6d 61 | 63 73 31 39 2e 22 29 29 | for Ema|cs19."))|
|000001d0| 0a 0a 28 64 65 66 76 61 | 72 20 6c 70 72 2d 63 6f |..(defva|r lpr-co|
|000001e0| 6d 6d 61 6e 64 20 28 62 | 79 74 65 2d 63 6f 64 65 |mmand (b|yte-code|
|000001f0| 20 22 08 c1 3e ab 82 c2 | 87 c3 87 22 20 5b 73 79 | "..>...|..." [sy|
|00000200| 73 74 65 6d 2d 74 79 70 | 65 20 28 75 73 67 2d 75 |stem-typ|e (usg-u|
|00000210| 6e 69 78 2d 76 20 68 70 | 75 78 20 73 69 6c 69 63 |nix-v hp|ux silic|
|00000220| 6f 6e 2d 67 72 61 70 68 | 69 63 73 2d 75 6e 69 78 |on-graph|ics-unix|
|00000230| 29 20 22 6c 70 22 20 22 | 6c 70 72 22 5d 20 32 29 |) "lp" "|lpr"] 2)|
|00000240| 20 22 5c 0a 53 68 65 6c | 6c 20 63 6f 6d 6d 61 6e | "\.Shel|l comman|
|00000250| 64 20 66 6f 72 20 70 72 | 69 6e 74 69 6e 67 20 61 |d for pr|inting a|
|00000260| 20 66 69 6c 65 22 29 0a | 28 66 73 65 74 20 27 6c | file").|(fset 'l|
|00000270| 70 72 2d 62 75 66 66 65 | 72 20 23 5b 6e 69 6c 20 |pr-buffe|r #[nil |
|00000280| 22 c0 65 64 09 c2 24 87 | 22 20 5b 70 72 69 6e 74 |".ed..$.|" [print|
|00000290| 2d 72 65 67 69 6f 6e 2d | 31 20 6c 70 72 2d 73 77 |-region-|1 lpr-sw|
|000002a0| 69 74 63 68 65 73 20 6e | 69 6c 5d 20 35 20 22 5c |itches n|il] 5 "\|
|000002b0| 0a 50 72 69 6e 74 20 62 | 75 66 66 65 72 20 63 6f |.Print b|uffer co|
|000002c0| 6e 74 65 6e 74 73 20 61 | 73 20 77 69 74 68 20 55 |ntents a|s with U|
|000002d0| 6e 69 78 20 63 6f 6d 6d | 61 6e 64 20 60 6c 70 72 |nix comm|and `lpr|
|000002e0| 27 2e 0a 60 6c 70 72 2d | 73 77 69 74 63 68 65 73 |'..`lpr-|switches|
|000002f0| 27 20 69 73 20 61 20 6c | 69 73 74 20 6f 66 20 65 |' is a l|ist of e|
|00000300| 78 74 72 61 20 73 77 69 | 74 63 68 65 73 20 28 73 |xtra swi|tches (s|
|00000310| 74 72 69 6e 67 73 29 20 | 74 6f 20 70 61 73 73 20 |trings) |to pass |
|00000320| 74 6f 20 6c 70 72 2e 22 | 20 6e 69 6c 5d 29 0a 28 |to lpr."| nil]).(|
|00000330| 66 73 65 74 20 27 70 72 | 69 6e 74 2d 62 75 66 66 |fset 'pr|int-buff|
|00000340| 65 72 20 23 5b 6e 69 6c | 20 22 c0 65 64 09 c2 24 |er #[nil| ".ed..$|
|00000350| 87 22 20 5b 70 72 69 6e | 74 2d 72 65 67 69 6f 6e |." [prin|t-region|
|00000360| 2d 31 20 6c 70 72 2d 73 | 77 69 74 63 68 65 73 20 |-1 lpr-s|witches |
|00000370| 74 5d 20 35 20 22 5c 0a | 50 72 69 6e 74 20 62 75 |t] 5 "\.|Print bu|
|00000380| 66 66 65 72 20 63 6f 6e | 74 65 6e 74 73 20 61 73 |ffer con|tents as|
|00000390| 20 77 69 74 68 20 55 6e | 69 78 20 63 6f 6d 6d 61 | with Un|ix comma|
|000003a0| 6e 64 20 60 6c 70 72 20 | 2d 70 27 2e 0a 60 6c 70 |nd `lpr |-p'..`lp|
|000003b0| 72 2d 73 77 69 74 63 68 | 65 73 27 20 69 73 20 61 |r-switch|es' is a|
|000003c0| 20 6c 69 73 74 20 6f 66 | 20 65 78 74 72 61 20 73 | list of| extra s|
|000003d0| 77 69 74 63 68 65 73 20 | 28 73 74 72 69 6e 67 73 |witches |(strings|
|000003e0| 29 20 74 6f 20 70 61 73 | 73 20 74 6f 20 6c 70 72 |) to pas|s to lpr|
|000003f0| 2e 22 20 6e 69 6c 5d 29 | 0a 28 66 73 65 74 20 27 |." nil])|.(fset '|
|00000400| 6c 70 72 2d 72 65 67 69 | 6f 6e 20 23 5b 28 73 74 |lpr-regi|on #[(st|
|00000410| 61 72 74 20 65 6e 64 29 | 20 22 c0 09 5c 6e 0b c4 |art end)| "..\n..|
|00000420| 24 87 22 20 5b 70 72 69 | 6e 74 2d 72 65 67 69 6f |$." [pri|nt-regio|
|00000430| 6e 2d 31 20 73 74 61 72 | 74 20 65 6e 64 20 6c 70 |n-1 star|t end lp|
|00000440| 72 2d 73 77 69 74 63 68 | 65 73 20 6e 69 6c 5d 20 |r-switch|es nil] |
|00000450| 35 20 22 5c 0a 50 72 69 | 6e 74 20 72 65 67 69 6f |5 "\.Pri|nt regio|
|00000460| 6e 20 63 6f 6e 74 65 6e | 74 73 20 61 73 20 77 69 |n conten|ts as wi|
|00000470| 74 68 20 55 6e 69 78 20 | 63 6f 6d 6d 61 6e 64 20 |th Unix |command |
|00000480| 60 6c 70 72 27 2e 0a 60 | 6c 70 72 2d 73 77 69 74 |`lpr'..`|lpr-swit|
|00000490| 63 68 65 73 27 20 69 73 | 20 61 20 6c 69 73 74 20 |ches' is| a list |
|000004a0| 6f 66 20 65 78 74 72 61 | 20 73 77 69 74 63 68 65 |of extra| switche|
|000004b0| 73 20 28 73 74 72 69 6e | 67 73 29 20 74 6f 20 70 |s (strin|gs) to p|
|000004c0| 61 73 73 20 74 6f 20 6c | 70 72 2e 22 20 22 72 22 |ass to l|pr." "r"|
|000004d0| 5d 29 0a 28 66 73 65 74 | 20 27 70 72 69 6e 74 2d |]).(fset| 'print-|
|000004e0| 72 65 67 69 6f 6e 20 23 | 5b 28 73 74 61 72 74 20 |region #|[(start |
|000004f0| 65 6e 64 29 20 22 c0 09 | 5c 6e 0b c4 24 87 22 20 |end) "..|\n..$." |
|00000500| 5b 70 72 69 6e 74 2d 72 | 65 67 69 6f 6e 2d 31 20 |[print-r|egion-1 |
|00000510| 73 74 61 72 74 20 65 6e | 64 20 6c 70 72 2d 73 77 |start en|d lpr-sw|
|00000520| 69 74 63 68 65 73 20 74 | 5d 20 35 20 22 5c 0a 50 |itches t|] 5 "\.P|
|00000530| 72 69 6e 74 20 72 65 67 | 69 6f 6e 20 63 6f 6e 74 |rint reg|ion cont|
|00000540| 65 6e 74 73 20 61 73 20 | 77 69 74 68 20 55 6e 69 |ents as |with Uni|
|00000550| 78 20 63 6f 6d 6d 61 6e | 64 20 60 6c 70 72 20 2d |x comman|d `lpr -|
|00000560| 70 27 2e 0a 60 6c 70 72 | 2d 73 77 69 74 63 68 65 |p'..`lpr|-switche|
|00000570| 73 27 20 69 73 20 61 20 | 6c 69 73 74 20 6f 66 20 |s' is a |list of |
|00000580| 65 78 74 72 61 20 73 77 | 69 74 63 68 65 73 20 28 |extra sw|itches (|
|00000590| 73 74 72 69 6e 67 73 29 | 20 74 6f 20 70 61 73 73 |strings)| to pass|
|000005a0| 20 74 6f 20 6c 70 72 2e | 22 20 22 72 22 5d 29 0a | to lpr.|" "r"]).|
|000005b0| 28 62 79 74 65 2d 63 6f | 64 65 20 22 c0 c1 4d 88 |(byte-co|de "..M.|
|000005c0| c2 c3 4d 87 22 20 5b 70 | 72 69 6e 74 2d 72 65 67 |..M." [p|rint-reg|
|000005d0| 69 6f 6e 2d 31 20 23 5b | 28 73 74 61 72 74 20 65 |ion-1 #[|(start e|
|000005e0| 6e 64 20 73 77 69 74 63 | 68 65 73 20 70 61 67 65 |nd switc|hes page|
|000005f0| 2d 68 65 61 64 65 72 73 | 29 20 22 c0 20 c1 50 5c |-headers|) ". .P\|
|00000600| 6e 1b 1c 8a c5 c6 21 88 | 5c 6e c7 55 ac 8a c8 20 |n.....!.|\n.U... |
|00000610| 88 0b 12 c9 65 64 5c 22 | 88 0e 5c 6e ab a3 0e 0b |....ed\"|..\n....|
|00000620| cc 3d ab 91 c8 20 88 cd | 0e 0e 0e 0f d0 d1 89 d2 |.=... ..|........|
|00000630| 26 06 88 aa 8c 0e 13 d4 | 9a ad 84 d5 0e 16 42 16 |&.......|......B.|
|00000640| 16 d7 cd 0e 0e 0e 0f 0e | 13 d2 89 89 af 06 0e 0b |........|........|
|00000650| d8 3d ad 8b 0e 13 d4 3d | ad 85 d9 0c da 0c 46 0e |.=.....=|......F.|
|00000660| 16 a4 a4 5c 22 88 c5 db | 21 2b 87 22 20 5b 62 75 |...\"...|!+." [bu|
|00000670| 66 66 65 72 2d 6e 61 6d | 65 20 22 20 45 6d 61 63 |ffer-nam|e " Emac|
|00000680| 73 20 62 75 66 66 65 72 | 22 20 74 61 62 2d 77 69 |s buffer|" tab-wi|
|00000690| 64 74 68 20 77 69 64 74 | 68 20 6e 61 6d 65 20 6d |dth widt|h name m|
|000006a0| 65 73 73 61 67 65 20 22 | 53 70 6f 6f 6c 69 6e 67 |essage "|Spooling|
|000006b0| 2e 2e 2e 22 20 38 20 70 | 72 69 6e 74 2d 72 65 67 |..." 8 p|rint-reg|
|000006c0| 69 6f 6e 2d 6e 65 77 2d | 62 75 66 66 65 72 20 75 |ion-new-|buffer u|
|000006d0| 6e 74 61 62 69 66 79 20 | 70 61 67 65 2d 68 65 61 |ntabify |page-hea|
|000006e0| 64 65 72 73 20 73 79 73 | 74 65 6d 2d 74 79 70 65 |ders sys|tem-type|
|000006f0| 20 75 73 67 2d 75 6e 69 | 78 2d 76 20 63 61 6c 6c | usg-uni|x-v call|
|00000700| 2d 70 72 6f 63 65 73 73 | 2d 72 65 67 69 6f 6e 20 |-process|-region |
|00000710| 73 74 61 72 74 20 65 6e | 64 20 22 70 72 22 20 74 |start en|d "pr" t|
|00000720| 20 6e 69 6c 20 6c 70 72 | 2d 63 6f 6d 6d 61 6e 64 | nil lpr|-command|
|00000730| 20 22 6c 70 72 22 20 22 | 2d 70 22 20 73 77 69 74 | "lpr" "|-p" swit|
|00000740| 63 68 65 73 20 61 70 70 | 6c 79 20 62 65 72 6b 65 |ches app|ly berke|
|00000750| 6c 65 79 2d 75 6e 69 78 | 20 22 2d 4a 22 20 22 2d |ley-unix| "-J" "-|
|00000760| 54 22 20 22 53 70 6f 6f | 6c 69 6e 67 2e 2e 2e 64 |T" "Spoo|ling...d|
|00000770| 6f 6e 65 22 5d 20 38 5d | 20 70 72 69 6e 74 2d 72 |one"] 8]| print-r|
|00000780| 65 67 69 6f 6e 2d 6e 65 | 77 2d 62 75 66 66 65 72 |egion-ne|w-buffer|
|00000790| 20 23 5b 6e 69 6c 20 22 | c0 20 c1 98 ae 9c 70 1a | #[nil "|. ....p.|
|000007a0| c3 c1 21 71 88 7e 88 c4 | 20 88 c5 5c 6e 0e 06 0e |..!q.~..| ..\n...|
|000007b0| 07 23 88 65 16 06 64 89 | 16 07 29 87 22 20 5b 62 |.#.e..d.|..)." [b|
|000007c0| 75 66 66 65 72 2d 6e 61 | 6d 65 20 22 20 2a 73 70 |uffer-na|me " *sp|
|000007d0| 6f 6f 6c 20 74 65 6d 70 | 2a 22 20 6f 6c 64 62 75 |ool temp|*" oldbu|
|000007e0| 66 20 67 65 74 2d 62 75 | 66 66 65 72 2d 63 72 65 |f get-bu|ffer-cre|
|000007f0| 61 74 65 20 65 72 61 73 | 65 2d 62 75 66 66 65 72 |ate eras|e-buffer|
|00000800| 20 69 6e 73 65 72 74 2d | 62 75 66 66 65 72 2d 73 | insert-|buffer-s|
|00000810| 75 62 73 74 72 69 6e 67 | 20 73 74 61 72 74 20 65 |ubstring| start e|
|00000820| 6e 64 5d 20 34 5d 5d 20 | 32 29 0a |nd] 4]] |2). |
+--------+-------------------------+-------------------------+--------+--------+