home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Professional / OS2PRO194.ISO / os2 / print / faces / faces-os.elc < prev    next >
Emacs Compiled Lisp  |  1994-01-26  |  1.9 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
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 6f 73 32 75 73 65 72 |piled by| os2user|
|00000020| 40 70 65 73 74 65 6c 20 | 6f 6e 20 57 65 64 20 4a |@pestel |on Wed J|
|00000030| 61 6e 20 32 36 20 31 33 | 3a 33 34 3a 34 37 20 31 |an 26 13|:34:47 1|
|00000040| 39 39 34 0a 3b 3b 3b 20 | 66 72 6f 6d 20 66 69 6c |994.;;; |from fil|
|00000050| 65 20 65 3a 2f 65 6d 61 | 63 73 2f 31 39 2e 32 32 |e e:/ema|cs/19.22|
|00000060| 2f 6c 69 73 70 2f 66 61 | 63 65 73 2d 6f 73 32 2e |/lisp/fa|ces-os2.|
|00000070| 65 6c 0a 3b 3b 3b 20 65 | 6d 61 63 73 20 76 65 72 |el.;;; e|macs ver|
|00000080| 73 69 6f 6e 20 31 39 2e | 32 32 2e 39 2e 0a 3b 3b |sion 19.|22.9..;;|
|00000090| 3b 20 62 79 74 65 63 6f | 6d 70 20 76 65 72 73 69 |; byteco|mp versi|
|000000a0| 6f 6e 20 46 53 46 20 32 | 2e 31 30 0a 3b 3b 3b 20 |on FSF 2|.10.;;; |
|000000b0| 6f 70 74 69 6d 69 7a 61 | 74 69 6f 6e 20 69 73 20 |optimiza|tion is |
|000000c0| 6f 6e 2e 0a 3b 3b 3b 20 | 74 68 69 73 20 66 69 6c |on..;;; |this fil|
|000000d0| 65 20 75 73 65 73 20 6f | 70 63 6f 64 65 73 20 77 |e uses o|pcodes w|
|000000e0| 68 69 63 68 20 64 6f 20 | 6e 6f 74 20 65 78 69 73 |hich do |not exis|
|000000f0| 74 20 69 6e 20 45 6d 61 | 63 73 20 31 38 2e 0a 0a |t in Ema|cs 18...|
|00000100| 28 69 66 20 28 61 6e 64 | 20 28 62 6f 75 6e 64 70 |(if (and| (boundp|
|00000110| 20 27 65 6d 61 63 73 2d | 76 65 72 73 69 6f 6e 29 | 'emacs-|version)|
|00000120| 0a 09 20 28 6f 72 20 28 | 61 6e 64 20 28 62 6f 75 |.. (or (|and (bou|
|00000130| 6e 64 70 20 27 65 70 6f | 63 68 3a 3a 76 65 72 73 |ndp 'epo|ch::vers|
|00000140| 69 6f 6e 29 20 65 70 6f | 63 68 3a 3a 76 65 72 73 |ion) epo|ch::vers|
|00000150| 69 6f 6e 29 0a 09 20 20 | 20 20 20 28 73 74 72 69 |ion).. | (stri|
|00000160| 6e 67 2d 6c 65 73 73 70 | 20 65 6d 61 63 73 2d 76 |ng-lessp| emacs-v|
|00000170| 65 72 73 69 6f 6e 20 22 | 31 39 22 29 29 29 0a 20 |ersion "|19"))). |
|00000180| 20 20 20 28 65 72 72 6f | 72 20 22 54 68 69 73 20 | (erro|r "This |
|00000190| 66 69 6c 65 20 77 61 73 | 20 63 6f 6d 70 69 6c 65 |file was| compile|
|000001a0| 64 20 66 6f 72 20 45 6d | 61 63 73 20 31 39 22 29 |d for Em|acs 19")|
|000001b0| 29 0a 0a 28 64 65 66 61 | 6c 69 61 73 20 27 70 6d |)..(defa|lias 'pm|
|000001c0| 2d 6d 61 6b 65 2d 66 6f | 6e 74 2d 62 6f 6c 64 20 |-make-fo|nt-bold |
|000001d0| 23 5b 28 66 6f 6e 74 29 | 20 22 c0 c1 5c 6e 5c 22 |#[(font)| "..\n\"|
|000001e0| 83 09 00 5c 6e 87 c0 c3 | 5c 6e 5c 22 85 28 00 5c |...\n...|\n\".(.\|
|000001f0| 6e c4 89 94 4f c5 5c 6e | c4 95 c6 4f 51 1e 07 c8 |n...O.\n|...OQ...|
|00000200| 0e 07 21 85 27 00 0e 07 | 29 87 22 20 5b 73 74 72 |..!.'...|)." [str|
|00000210| 69 6e 67 2d 6d 61 74 63 | 68 20 22 62 6f 6c 64 22 |ing-matc|h "bold"|
|00000220| 20 66 6f 6e 74 20 22 5c | 5c 2e 22 20 30 20 22 2e | font "\|\." 0 ".|
|00000230| 62 6f 6c 64 2e 22 20 6e | 69 6c 20 73 69 6d 66 6f |bold." n|il simfo|
|00000240| 6e 74 20 70 6d 2d 6c 69 | 73 74 2d 66 6f 6e 74 73 |nt pm-li|st-fonts|
|00000250| 5d 20 35 20 22 5c 0a 47 | 69 76 65 6e 20 61 20 50 |] 5 "\.G|iven a P|
|00000260| 4d 20 66 6f 6e 74 20 73 | 70 65 63 69 66 69 63 61 |M font s|pecifica|
|00000270| 74 69 6f 6e 20 28 69 2e | 65 20 31 30 2e 43 6f 75 |tion (i.|e 10.Cou|
|00000280| 72 69 65 72 29 2c 20 6d | 61 6b 65 20 61 0a 62 6f |rier), m|ake a.bo|
|00000290| 6c 64 20 76 65 72 73 69 | 6f 6e 20 6f 66 20 69 74 |ld versi|on of it|
|000002a0| 2e 20 20 49 66 20 69 6d | 70 6f 73 73 69 62 6c 65 |. If im|possible|
|000002b0| 2c 20 72 65 74 75 72 6e | 20 6e 69 6c 2e 20 20 55 |, return| nil. U|
|000002c0| 73 65 73 20 73 69 6d 75 | 6c 61 74 65 64 0a 62 6f |ses simu|lated.bo|
|000002d0| 6c 64 20 66 6f 6e 74 73 | 20 69 6e 73 74 65 61 64 |ld fonts| instead|
|000002e0| 20 6f 66 20 6f 73 32 27 | 73 20 62 6f 6c 64 20 66 | of os2'|s bold f|
|000002f0| 6f 6e 74 73 3b 20 49 20 | 74 68 69 6e 6b 20 74 68 |onts; I |think th|
|00000300| 65 79 20 6c 6f 6f 6b 20 | 6e 69 63 65 72 2e 22 5d |ey look |nicer."]|
|00000310| 29 0a 28 64 65 66 61 6c | 69 61 73 20 27 70 6d 2d |).(defal|ias 'pm-|
|00000320| 6d 61 6b 65 2d 66 6f 6e | 74 2d 69 74 61 6c 69 63 |make-fon|t-italic|
|00000330| 20 23 5b 28 66 6f 6e 74 | 29 20 22 c0 c1 5c 6e 5c | #[(font|) "..\n\|
|00000340| 22 83 09 00 5c 6e 87 5c | 6e c3 50 1c c5 0c 21 83 |"...\n.\|n.P...!.|
|00000350| 17 00 0c 82 36 00 c0 c6 | 5c 6e 5c 22 85 36 00 5c |....6...|\n\".6.\|
|00000360| 6e c7 89 94 4f c8 5c 6e | c7 95 c9 4f 51 1e 5c 6e |n...O.\n|...OQ.\n|
|00000370| c5 0e 5c 6e 21 85 35 00 | 0e 5c 6e 29 29 87 22 20 |..\n!.5.|.\n))." |
|00000380| 5b 73 74 72 69 6e 67 2d | 6d 61 74 63 68 20 22 69 |[string-|match "i|
|00000390| 74 61 6c 69 63 22 20 66 | 6f 6e 74 20 22 20 49 74 |talic" f|ont " It|
|000003a0| 61 6c 69 63 22 20 6f 73 | 32 66 6f 6e 74 20 70 6d |alic" os|2font pm|
|000003b0| 2d 6c 69 73 74 2d 66 6f | 6e 74 73 20 22 5c 5c 2e |-list-fo|nts "\\.|
|000003c0| 22 20 30 20 22 2e 69 74 | 61 6c 69 63 2e 22 20 6e |" 0 ".it|alic." n|
|000003d0| 69 6c 20 73 69 6d 66 6f | 6e 74 5d 20 35 20 22 5c |il simfo|nt] 5 "\|
|000003e0| 0a 47 69 76 65 6e 20 61 | 20 50 4d 20 66 6f 6e 74 |.Given a| PM font|
|000003f0| 20 73 70 65 63 69 66 69 | 63 61 74 69 6f 6e 20 28 | specifi|cation (|
|00000400| 69 2e 65 20 31 30 2e 43 | 6f 75 72 69 65 72 29 2c |i.e 10.C|ourier),|
|00000410| 20 6d 61 6b 65 20 61 6e | 0a 69 74 61 6c 69 63 20 | make an|.italic |
|00000420| 76 65 72 73 69 6f 6e 20 | 6f 66 20 69 74 2e 20 20 |version |of it. |
|00000430| 49 66 20 69 6d 70 6f 73 | 73 69 62 6c 65 2c 20 72 |If impos|sible, r|
|00000440| 65 74 75 72 6e 20 6e 69 | 6c 2e 22 5d 29 0a 28 64 |eturn ni|l."]).(d|
|00000450| 65 66 61 6c 69 61 73 20 | 27 70 6d 2d 6d 61 6b 65 |efalias |'pm-make|
|00000460| 2d 66 6f 6e 74 2d 75 6e | 62 6f 6c 64 20 23 5b 28 |-font-un|bold #[(|
|00000470| 66 6f 6e 74 29 20 22 c0 | c1 5c 6e 5c 22 83 16 00 |font) ".|.\n\"...|
|00000480| 5c 6e c3 89 94 4f 1c c5 | 0c 21 85 14 00 0c 29 87 |\n...O..|.!....).|
|00000490| c0 c6 5c 6e 5c 22 83 33 | 00 5c 6e c3 89 94 4f c7 |..\n\".3|.\n...O.|
|000004a0| 5c 6e c3 95 c8 4f 51 1c | c5 0c 21 85 31 00 0c 29 |\n...OQ.|..!.1..)|
|000004b0| 87 5c 6e 87 22 20 5b 73 | 74 72 69 6e 67 2d 6d 61 |.\n." [s|tring-ma|
|000004c0| 74 63 68 20 22 20 42 6f | 6c 64 22 20 66 6f 6e 74 |tch " Bo|ld" font|
|000004d0| 20 30 20 6e 66 6f 6e 74 | 20 70 6d 2d 6c 69 73 74 | 0 nfont| pm-list|
|000004e0| 2d 66 6f 6e 74 73 20 22 | 5c 5c 2e 62 6f 6c 64 5c |-fonts "|\\.bold\|
|000004f0| 5c 2e 22 20 22 2e 22 20 | 6e 69 6c 5d 20 35 20 22 |\." "." |nil] 5 "|
|00000500| 5c 0a 47 69 76 65 6e 20 | 61 20 62 6f 6c 64 20 50 |\.Given |a bold P|
|00000510| 4d 20 66 6f 6e 74 20 73 | 70 65 63 20 28 69 2e 65 |M font s|pec (i.e|
|00000520| 2e 20 31 30 2e 43 6f 75 | 72 69 65 72 20 42 6f 6c |. 10.Cou|rier Bol|
|00000530| 64 20 6f 72 20 31 30 2e | 62 6f 6c 64 2e 43 6f 75 |d or 10.|bold.Cou|
|00000540| 72 69 65 72 2c 0a 6d 61 | 6b 65 20 61 20 6e 6f 6e |rier,.ma|ke a non|
|00000550| 62 6f 6c 64 20 76 65 72 | 73 69 6f 6e 20 6f 66 20 |bold ver|sion of |
|00000560| 69 74 2e 20 20 49 66 20 | 69 6d 70 6f 73 73 69 62 |it. If |impossib|
|00000570| 6c 65 2c 20 72 65 74 75 | 72 6e 20 6e 69 6c 2e 22 |le, retu|rn nil."|
|00000580| 5d 29 0a 28 64 65 66 61 | 6c 69 61 73 20 27 70 6d |]).(defa|lias 'pm|
|00000590| 2d 6d 61 6b 65 2d 66 6f | 6e 74 2d 75 6e 69 74 61 |-make-fo|nt-unita|
|000005a0| 6c 69 63 20 23 5b 28 66 | 6f 6e 74 29 20 22 c0 c1 |lic #[(f|ont) "..|
|000005b0| 5c 6e 5c 22 83 16 00 5c | 6e c3 89 94 4f 1c c5 0c |\n\"...\|n...O...|
|000005c0| 21 85 14 00 0c 29 87 c0 | c6 5c 6e 5c 22 83 2f 00 |!....)..|.\n\"./.|
|000005d0| 5c 6e c3 89 94 4f c7 5c | 6e c3 95 c8 4f 51 1c c5 |\n...O.\|n...OQ..|
|000005e0| 0c 21 88 29 5c 6e 87 22 | 20 5b 73 74 72 69 6e 67 |.!.)\n."| [string|
|000005f0| 2d 6d 61 74 63 68 20 22 | 20 49 74 61 6c 69 63 22 |-match "| Italic"|
|00000600| 20 66 6f 6e 74 20 30 20 | 6e 66 6f 6e 74 20 70 6d | font 0 |nfont pm|
|00000610| 2d 6c 69 73 74 2d 66 6f | 6e 74 73 20 22 5c 5c 2e |-list-fo|nts "\\.|
|00000620| 69 74 61 6c 69 63 5c 5c | 2e 22 20 22 2e 22 20 6e |italic\\|." "." n|
|00000630| 69 6c 5d 20 35 20 22 5c | 0a 47 69 76 65 6e 20 61 |il] 5 "\|.Given a|
|00000640| 20 69 74 61 6c 69 63 20 | 50 4d 20 66 6f 6e 74 20 | italic |PM font |
|00000650| 73 70 65 63 20 28 69 2e | 65 2e 20 31 30 2e 43 6f |spec (i.|e. 10.Co|
|00000660| 75 72 69 65 72 20 49 74 | 61 6c 69 63 20 6f 72 0a |urier It|alic or.|
|00000670| 31 30 2e 69 74 61 6c 69 | 63 2e 43 6f 75 72 69 65 |10.itali|c.Courie|
|00000680| 72 2c 20 6d 61 6b 65 20 | 61 20 6e 6f 6e 62 6f 6c |r, make |a nonbol|
|00000690| 64 20 76 65 72 73 69 6f | 6e 20 6f 66 20 69 74 2e |d versio|n of it.|
|000006a0| 0a 49 66 20 69 6d 70 6f | 73 73 69 62 6c 65 2c 20 |.If impo|ssible, |
|000006b0| 72 65 74 75 72 6e 20 6e | 69 6c 2e 22 5d 29 0a 28 |return n|il."]).(|
|000006c0| 62 79 74 65 2d 63 6f 64 | 65 20 22 c0 c1 c2 5c 22 |byte-cod|e "...\"|
|000006d0| 88 c0 c3 c4 5c 22 88 c0 | c5 c6 5c 22 88 c0 c5 c6 |....\"..|..\"....|
|000006e0| 5c 22 88 c7 c8 21 87 22 | 20 5b 64 65 66 61 6c 69 |\"...!."| [defali|
|000006f0| 61 73 20 78 2d 6d 61 6b | 65 2d 66 6f 6e 74 2d 62 |as x-mak|e-font-b|
|00000700| 6f 6c 64 20 70 6d 2d 6d | 61 6b 65 2d 66 6f 6e 74 |old pm-m|ake-font|
|00000710| 2d 62 6f 6c 64 20 78 2d | 6d 61 6b 65 2d 66 6f 6e |-bold x-|make-fon|
|00000720| 74 2d 75 6e 62 6f 6c 64 | 20 70 6d 2d 6d 61 6b 65 |t-unbold| pm-make|
|00000730| 2d 66 6f 6e 74 2d 75 6e | 62 6f 6c 64 20 78 2d 6d |-font-un|bold x-m|
|00000740| 61 6b 65 2d 66 6f 6e 74 | 2d 69 74 61 6c 69 63 20 |ake-font|-italic |
|00000750| 70 6d 2d 6d 61 6b 65 2d | 66 6f 6e 74 2d 69 74 61 |pm-make-|font-ita|
|00000760| 6c 69 63 20 70 72 6f 76 | 69 64 65 20 66 61 63 65 |lic prov|ide face|
|00000770| 73 2d 6f 73 32 5d 20 33 | 29 0a |s-os2] 3|). |
+--------+-------------------------+-------------------------+--------+--------+