home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / gnu / emacs / sources / 808 < prev    next >
SHell self-extracting ARchive  |  1992-11-18  |  22.5 KB

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text

This file was processed as: SHell self-extracting ARchive (archive/shar).

You can browse this item here: 808

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert SHell self-extracting ARchive (archive/shar) magic Supported
1% dexvert Text File (text/txt) fallback Supported
100% file makefile script, ASCII text default
100% checkBytes Printable ASCII default
100% perlTextCheck Likely Text (Perl) default
100% siegfried fmt/329 Shell Archive Format default
100% detectItEasy Format: plain text[LF] default (weak)



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 4e 65 77 73 67 72 6f 75 | 70 73 3a 20 67 6e 75 2e |Newsgrou|ps: gnu.|
|00000010| 65 6d 61 63 73 2e 73 6f | 75 72 63 65 73 0a 50 61 |emacs.so|urces.Pa|
|00000020| 74 68 3a 20 73 70 61 72 | 6b 79 21 75 75 6e 65 74 |th: spar|ky!uunet|
|00000030| 21 7a 61 70 68 6f 64 2e | 6d 70 73 2e 6f 68 69 6f |!zaphod.|mps.ohio|
|00000040| 2d 73 74 61 74 65 2e 65 | 64 75 21 64 61 72 77 69 |-state.e|du!darwi|
|00000050| 6e 2e 73 75 72 61 2e 6e | 65 74 21 73 70 6f 6f 6c |n.sura.n|et!spool|
|00000060| 2e 6d 75 2e 65 64 75 21 | 75 6d 6e 2e 65 64 75 21 |.mu.edu!|umn.edu!|
|00000070| 6c 79 6e 78 21 53 61 6e | 74 61 46 65 21 6e 65 77 |lynx!San|taFe!new|
|00000080| 73 2e 73 61 6e 74 61 66 | 65 2e 65 64 75 21 74 65 |s.santaf|e.edu!te|
|00000090| 72 72 79 0a 46 72 6f 6d | 3a 20 74 65 72 72 79 40 |rry.From|: terry@|
|000000a0| 6e 61 6d 62 65 2e 73 61 | 6e 74 61 66 65 2e 65 64 |nambe.sa|ntafe.ed|
|000000b0| 75 20 28 54 65 72 72 79 | 20 4a 6f 6e 65 73 29 0a |u (Terry| Jones).|
|000000c0| 53 75 62 6a 65 63 74 3a | 20 65 62 75 74 74 6f 6e |Subject:| ebutton|
|000000d0| 73 20 2d 20 58 20 77 69 | 6e 64 6f 77 73 20 69 6e |s - X wi|ndows in|
|000000e0| 74 65 72 66 61 63 65 20 | 74 6f 20 65 6d 61 63 73 |terface |to emacs|
|000000f0| 2e 0a 4d 65 73 73 61 67 | 65 2d 49 44 3a 20 3c 54 |..Messag|e-ID: <T|
|00000100| 45 52 52 59 2e 39 32 4e | 6f 76 31 39 30 30 35 39 |ERRY.92N|ov190059|
|00000110| 34 35 40 6e 61 6d 62 65 | 2e 73 61 6e 74 61 66 65 |45@nambe|.santafe|
|00000120| 2e 65 64 75 3e 0a 44 61 | 74 65 3a 20 54 68 75 2c |.edu>.Da|te: Thu,|
|00000130| 20 31 39 20 4e 6f 76 20 | 39 32 20 30 37 3a 35 39 | 19 Nov |92 07:59|
|00000140| 3a 34 35 20 47 4d 54 0a | 4f 72 67 61 6e 69 7a 61 |:45 GMT.|Organiza|
|00000150| 74 69 6f 6e 3a 20 53 61 | 6e 74 61 20 46 65 20 49 |tion: Sa|nta Fe I|
|00000160| 6e 73 74 69 74 75 74 65 | 0a 44 69 73 74 72 69 62 |nstitute|.Distrib|
|00000170| 75 74 69 6f 6e 3a 20 67 | 6e 75 0a 4c 69 6e 65 73 |ution: g|nu.Lines|
|00000180| 3a 20 37 32 36 0a 0a 0a | 5b 46 72 6f 6d 20 74 68 |: 726...|[From th|
|00000190| 65 20 52 45 41 44 4d 45 | 5d 0a 0a 54 68 69 73 20 |e README|]..This |
|000001a0| 70 72 6f 67 72 61 6d 20 | 70 72 6f 76 69 64 65 73 |program |provides|
|000001b0| 20 61 6e 20 58 20 69 6e | 74 65 72 66 61 63 65 20 | an X in|terface |
|000001c0| 74 6f 20 69 73 73 75 65 | 20 63 6f 6d 6d 61 6e 64 |to issue| command|
|000001d0| 73 20 74 6f 20 61 6e 20 | 65 6d 61 63 73 0a 73 65 |s to an |emacs.se|
|000001e0| 73 73 69 6f 6e 2e 20 20 | 49 74 20 61 6c 6c 6f 77 |ssion. |It allow|
|000001f0| 73 20 79 6f 75 20 74 6f | 20 73 70 65 63 69 66 79 |s you to| specify|
|00000200| 20 28 69 6e 20 61 6e 20 | 58 20 72 65 73 6f 75 72 | (in an |X resour|
|00000210| 63 65 20 66 69 6c 65 29 | 20 6c 61 62 65 6c 73 20 |ce file)| labels |
|00000220| 66 6f 72 0a 61 20 73 65 | 74 20 6f 66 20 62 75 74 |for.a se|t of but|
|00000230| 74 6f 6e 73 20 61 6e 64 | 20 61 20 63 6f 6d 6d 61 |tons and| a comma|
|00000240| 6e 64 20 66 6f 72 20 65 | 61 63 68 20 74 68 61 74 |nd for e|ach that|
|00000250| 20 77 69 6c 6c 20 62 65 | 20 65 78 65 63 75 74 65 | will be| execute|
|00000260| 64 20 77 68 65 6e 20 74 | 68 65 0a 63 6f 72 72 65 |d when t|he.corre|
|00000270| 73 70 6f 6e 64 69 6e 67 | 20 62 75 74 74 6f 6e 20 |sponding| button |
|00000280| 69 73 20 63 6c 69 63 6b | 65 64 20 6f 6e 20 77 69 |is click|ed on wi|
|00000290| 74 68 20 74 68 65 20 6d | 6f 75 73 65 2e 20 46 6f |th the m|ouse. Fo|
|000002a0| 72 20 69 6e 73 74 61 6e | 63 65 20 79 6f 75 0a 63 |r instan|ce you.c|
|000002b0| 61 6e 20 64 65 66 69 6e | 65 20 62 75 74 74 6f 6e |an defin|e button|
|000002c0| 73 20 74 6f 20 63 6f 6d | 70 69 6c 65 2c 20 74 6f |s to com|pile, to|
|000002d0| 20 66 69 6e 64 20 74 68 | 65 20 6e 65 78 74 20 65 | find th|e next e|
|000002e0| 72 72 6f 72 2c 20 74 6f | 20 73 61 76 65 0a 62 75 |rror, to| save.bu|
|000002f0| 66 66 65 72 73 2c 20 74 | 6f 20 6d 6f 76 65 20 74 |ffers, t|o move t|
|00000300| 6f 20 74 68 65 20 74 6f | 70 2f 62 6f 74 74 6f 6d |o the to|p/bottom|
|00000310| 20 6f 66 20 74 68 65 20 | 62 75 66 66 65 72 2c 20 | of the |buffer, |
|00000320| 74 6f 20 65 78 69 74 20 | 65 6d 61 63 73 20 65 74 |to exit |emacs et|
|00000330| 63 2e 0a 65 74 63 2e 0a | 0a 54 68 65 20 69 64 65 |c..etc..|.The ide|
|00000340| 61 20 69 73 20 74 68 61 | 74 20 74 68 69 73 20 73 |a is tha|t this s|
|00000350| 68 6f 75 6c 64 20 62 65 | 20 61 20 74 68 69 6e 20 |hould be| a thin |
|00000360| 76 65 72 74 69 63 61 6c | 20 77 69 6e 64 6f 77 20 |vertical| window |
|00000370| 74 68 61 74 20 73 69 74 | 73 20 6a 75 73 74 0a 74 |that sit|s just.t|
|00000380| 6f 20 74 68 65 20 73 69 | 64 65 20 6f 66 20 61 6e |o the si|de of an|
|00000390| 20 65 6d 61 63 73 20 73 | 65 73 73 69 6f 6e 20 61 | emacs s|ession a|
|000003a0| 6e 64 20 61 6c 6c 6f 77 | 73 20 66 6f 72 20 66 61 |nd allow|s for fa|
|000003b0| 73 74 20 65 78 65 63 75 | 74 69 6f 6e 20 6f 66 20 |st execu|tion of |
|000003c0| 73 6f 6d 65 0a 74 68 69 | 6e 67 73 2e 20 49 74 20 |some.thi|ngs. It |
|000003d0| 69 73 20 6e 6f 74 20 69 | 6e 74 65 6e 64 65 64 20 |is not i|ntended |
|000003e0| 74 6f 20 72 65 70 6c 61 | 63 65 20 74 68 65 20 6b |to repla|ce the k|
|000003f0| 65 79 62 6f 61 72 64 21 | 20 49 74 20 6a 75 73 74 |eyboard!| It just|
|00000400| 20 67 69 76 65 73 0a 61 | 6e 6f 74 68 65 72 20 6f | gives.a|nother o|
|00000410| 70 74 69 6f 6e 20 2d 20 | 69 66 20 79 6f 75 72 20 |ption - |if your |
|00000420| 68 61 6e 64 20 69 73 20 | 61 6c 72 65 61 64 79 20 |hand is |already |
|00000430| 6f 6e 20 74 68 65 20 6d | 6f 75 73 65 2c 20 75 73 |on the m|ouse, us|
|00000440| 65 20 65 62 75 74 74 6f | 6e 73 2e 0a 49 66 20 6e |e ebutto|ns..If n|
|00000450| 6f 74 2c 20 75 73 65 20 | 74 68 65 20 6b 65 79 62 |ot, use |the keyb|
|00000460| 6f 61 72 64 2e 20 4f 72 | 20 61 73 20 79 6f 75 20 |oard. Or| as you |
|00000470| 6c 69 6b 65 20 69 74 2e | 20 54 68 65 20 77 69 6e |like it.| The win|
|00000480| 64 6f 77 20 63 61 6e 20 | 61 6c 73 6f 20 62 65 0a |dow can |also be.|
|00000490| 6d 61 64 65 20 68 6f 72 | 69 7a 6f 6e 74 61 6c 20 |made hor|izontal |
|000004a0| 28 73 65 65 20 62 65 6c | 6f 77 29 20 62 75 74 20 |(see bel|ow) but |
|000004b0| 74 68 65 6e 20 6e 6f 74 | 20 61 73 20 6d 61 6e 79 |then not| as many|
|000004c0| 20 62 75 74 74 6f 6e 73 | 20 77 69 6c 6c 20 66 69 | buttons| will fi|
|000004d0| 74 20 6f 6e 0a 74 68 65 | 20 73 63 72 65 65 6e 2e |t on.the| screen.|
|000004e0| 0a 0a 54 68 69 73 20 70 | 72 6f 67 72 61 6d 20 69 |..This p|rogram i|
|000004f0| 73 20 61 64 61 70 74 65 | 64 20 66 72 6f 6d 20 74 |s adapte|d from t|
|00000500| 68 65 20 74 61 67 6c 69 | 73 74 20 66 61 63 69 6c |he tagli|st facil|
|00000510| 69 74 79 20 77 72 69 74 | 74 65 6e 20 62 79 20 42 |ity writ|ten by B|
|00000520| 72 61 64 0a 4d 65 61 72 | 73 20 28 62 6d 65 61 72 |rad.Mear|s (bmear|
|00000530| 73 40 64 65 6c 74 61 68 | 70 2e 6a 73 63 2e 6e 61 |s@deltah|p.jsc.na|
|00000540| 73 61 2e 67 6f 76 29 2e | 20 49 6e 20 66 61 63 74 |sa.gov).| In fact|
|00000550| 2c 20 68 65 20 73 68 6f | 75 6c 64 20 67 65 74 20 |, he sho|uld get |
|00000560| 61 6c 6d 6f 73 74 20 61 | 6c 6c 0a 74 68 65 20 63 |almost a|ll.the c|
|00000570| 72 65 64 69 74 2e 20 49 | 20 68 61 76 65 20 62 61 |redit. I| have ba|
|00000580| 73 69 63 61 6c 6c 79 20 | 6e 65 76 65 72 20 77 72 |sically |never wr|
|00000590| 69 74 74 65 6e 20 61 20 | 6c 69 6e 65 20 6f 66 20 |itten a |line of |
|000005a0| 65 6c 69 73 70 2c 20 77 | 68 61 74 20 79 6f 75 0a |elisp, w|hat you.|
|000005b0| 73 65 65 20 69 6e 20 65 | 62 75 74 74 6f 6e 73 2e |see in e|buttons.|
|000005c0| 65 6c 20 69 73 20 74 68 | 65 20 72 65 73 75 6c 74 |el is th|e result|
|000005d0| 20 6f 66 20 64 65 6c 65 | 74 69 6e 67 20 61 62 6f | of dele|ting abo|
|000005e0| 75 74 20 38 30 25 20 6f | 66 20 68 69 73 0a 74 61 |ut 80% o|f his.ta|
|000005f0| 67 6c 69 73 74 2e 65 6c | 2e 20 20 54 68 65 20 58 |glist.el|. The X|
|00000600| 20 63 6f 64 65 20 6c 6f | 6f 6b 73 20 73 6f 6d 65 | code lo|oks some|
|00000610| 77 68 61 74 20 64 69 66 | 66 65 72 65 6e 74 2c 20 |what dif|ferent, |
|00000620| 62 75 74 2c 20 61 67 61 | 69 6e 2c 20 69 73 20 61 |but, aga|in, is a|
|00000630| 0a 72 65 73 75 6c 74 20 | 6f 66 20 65 64 69 74 69 |.result |of editi|
|00000640| 6e 67 20 61 20 63 6f 70 | 79 20 6f 66 20 74 61 67 |ng a cop|y of tag|
|00000650| 6c 69 73 74 2e 63 20 28 | 61 73 20 69 73 20 74 68 |list.c (|as is th|
|00000660| 65 20 52 45 41 44 4d 45 | 29 2e 0a 0a 50 65 72 68 |e README|)...Perh|
|00000670| 61 70 73 20 65 6d 61 63 | 73 20 31 39 20 77 69 6c |aps emac|s 19 wil|
|00000680| 6c 20 6d 61 6b 65 20 74 | 68 69 73 20 73 6f 72 74 |l make t|his sort|
|00000690| 20 6f 66 20 74 68 69 6e | 67 20 6f 62 73 6f 6c 65 | of thin|g obsole|
|000006a0| 74 65 2e 20 49 20 64 6f | 6e 27 74 0a 6b 6e 6f 77 |te. I do|n't.know|
|000006b0| 2e 0a 0a 54 65 72 72 79 | 20 4a 6f 6e 65 73 20 28 |...Terry| Jones (|
|000006c0| 74 65 72 72 79 40 73 61 | 6e 74 61 66 65 2e 65 64 |terry@sa|ntafe.ed|
|000006d0| 75 29 2e 0a 0a 23 21 20 | 2f 62 69 6e 2f 73 68 0a |u)...#! |/bin/sh.|
|000006e0| 23 20 54 68 69 73 20 69 | 73 20 61 20 73 68 65 6c |# This i|s a shel|
|000006f0| 6c 20 61 72 63 68 69 76 | 65 2c 20 6d 65 61 6e 69 |l archiv|e, meani|
|00000700| 6e 67 3a 0a 23 20 31 2e | 20 52 65 6d 6f 76 65 20 |ng:.# 1.| Remove |
|00000710| 65 76 65 72 79 74 68 69 | 6e 67 20 61 62 6f 76 65 |everythi|ng above|
|00000720| 20 74 68 65 20 23 21 20 | 2f 62 69 6e 2f 73 68 20 | the #! |/bin/sh |
|00000730| 6c 69 6e 65 2e 0a 23 20 | 32 2e 20 53 61 76 65 20 |line..# |2. Save |
|00000740| 74 68 65 20 72 65 73 75 | 6c 74 69 6e 67 20 74 65 |the resu|lting te|
|00000750| 78 74 20 69 6e 20 61 20 | 66 69 6c 65 2e 0a 23 20 |xt in a |file..# |
|00000760| 33 2e 20 45 78 65 63 75 | 74 65 20 74 68 65 20 66 |3. Execu|te the f|
|00000770| 69 6c 65 20 77 69 74 68 | 20 2f 62 69 6e 2f 73 68 |ile with| /bin/sh|
|00000780| 20 28 6e 6f 74 20 63 73 | 68 29 20 74 6f 20 63 72 | (not cs|h) to cr|
|00000790| 65 61 74 65 3a 0a 23 09 | 4d 61 6b 65 66 69 6c 65 |eate:.#.|Makefile|
|000007a0| 0a 23 09 52 45 41 44 4d | 45 0a 23 09 65 62 75 74 |.#.READM|E.#.ebut|
|000007b0| 74 6f 6e 73 2e 31 0a 23 | 09 65 62 75 74 74 6f 6e |tons.1.#|.ebutton|
|000007c0| 73 2e 63 0a 23 09 65 62 | 75 74 74 6f 6e 73 2e 65 |s.c.#.eb|uttons.e|
|000007d0| 6c 0a 23 09 52 65 73 6f | 75 72 63 65 73 0a 23 09 |l.#.Reso|urces.#.|
|000007e0| 6d 61 6b 65 5f 65 62 75 | 74 74 6f 6e 73 0a 23 20 |make_ebu|ttons.# |
|000007f0| 54 68 69 73 20 61 72 63 | 68 69 76 65 20 63 72 65 |This arc|hive cre|
|00000800| 61 74 65 64 3a 20 57 65 | 64 20 4e 6f 76 20 31 38 |ated: We|d Nov 18|
|00000810| 20 31 39 3a 34 31 3a 31 | 37 20 31 39 39 32 0a 65 | 19:41:1|7 1992.e|
|00000820| 78 70 6f 72 74 20 50 41 | 54 48 3b 20 50 41 54 48 |xport PA|TH; PATH|
|00000830| 3d 2f 62 69 6e 3a 2f 75 | 73 72 2f 62 69 6e 3a 24 |=/bin:/u|sr/bin:$|
|00000840| 50 41 54 48 0a 69 66 20 | 74 65 73 74 20 2d 66 20 |PATH.if |test -f |
|00000850| 27 4d 61 6b 65 66 69 6c | 65 27 0a 74 68 65 6e 0a |'Makefil|e'.then.|
|00000860| 09 65 63 68 6f 20 73 68 | 61 72 3a 20 22 77 69 6c |.echo sh|ar: "wil|
|00000870| 6c 20 6e 6f 74 20 6f 76 | 65 72 2d 77 72 69 74 65 |l not ov|er-write|
|00000880| 20 65 78 69 73 74 69 6e | 67 20 66 69 6c 65 20 27 | existin|g file '|
|00000890| 4d 61 6b 65 66 69 6c 65 | 27 22 0a 65 6c 73 65 0a |Makefile|'".else.|
|000008a0| 63 61 74 20 3c 3c 20 5c | 53 48 41 52 5f 45 4f 46 |cat << \|SHAR_EOF|
|000008b0| 20 3e 20 27 4d 61 6b 65 | 66 69 6c 65 27 0a 23 23 | > 'Make|file'.##|
|000008c0| 0a 23 23 20 4d 61 6b 65 | 66 69 6c 65 20 66 6f 72 |.## Make|file for|
|000008d0| 20 65 62 75 74 74 6f 6e | 73 2e 0a 23 23 0a 23 23 | ebutton|s..##.##|
|000008e0| 20 54 68 65 72 65 20 61 | 72 65 20 61 74 20 6d 6f | There a|re at mo|
|000008f0| 73 74 20 34 20 74 68 69 | 6e 67 73 20 79 6f 75 20 |st 4 thi|ngs you |
|00000900| 6d 61 79 20 77 61 6e 74 | 20 74 6f 20 64 6f 20 74 |may want| to do t|
|00000910| 6f 20 74 68 69 73 20 4d | 61 6b 65 66 69 6c 65 2e |o this M|akefile.|
|00000920| 0a 23 23 0a 23 23 20 20 | 20 20 20 31 29 20 43 68 |.##.## | 1) Ch|
|00000930| 61 6e 67 65 20 74 68 65 | 20 4d 41 58 5f 42 55 54 |ange the| MAX_BUT|
|00000940| 54 4f 4e 53 20 76 61 6c | 75 65 0a 23 23 20 20 20 |TONS val|ue.## |
|00000950| 20 20 32 29 20 61 6e 64 | 20 34 29 20 4d 61 6b 65 | 2) and| 4) Make|
|00000960| 20 61 20 63 68 61 6e 67 | 65 20 69 66 20 79 6f 75 | a chang|e if you|
|00000970| 20 68 61 76 65 20 74 68 | 65 20 33 44 20 41 74 68 | have th|e 3D Ath|
|00000980| 65 6e 61 20 77 69 64 67 | 65 74 20 73 65 74 2e 0a |ena widg|et set..|
|00000990| 23 23 20 20 20 20 20 33 | 29 20 61 64 64 20 61 20 |## 3|) add a |
|000009a0| 70 61 74 68 20 74 6f 20 | 79 6f 75 72 20 58 20 6c |path to |your X l|
|000009b0| 69 62 72 61 72 79 2e 0a | 23 23 0a 23 23 20 54 68 |ibrary..|##.## Th|
|000009c0| 65 20 6c 6f 63 61 74 69 | 6f 6e 73 20 77 68 65 72 |e locati|ons wher|
|000009d0| 65 20 79 6f 75 20 63 61 | 6e 20 64 6f 20 74 68 69 |e you ca|n do thi|
|000009e0| 73 20 61 72 65 20 6d 61 | 72 6b 65 64 20 77 69 74 |s are ma|rked wit|
|000009f0| 68 20 74 68 65 20 61 62 | 6f 76 65 20 6e 75 6d 62 |h the ab|ove numb|
|00000a00| 65 72 73 0a 23 23 20 69 | 6e 20 77 68 61 74 20 66 |ers.## i|n what f|
|00000a10| 6f 6c 6c 6f 77 73 2e 0a | 23 23 0a 23 23 20 49 20 |ollows..|##.## I |
|00000a20| 61 6d 20 69 6d 61 6b 65 | 20 69 6c 6c 69 74 65 72 |am imake| illiter|
|00000a30| 61 74 65 2c 20 73 6f 72 | 72 79 2e 0a 23 23 0a 23 |ate, sor|ry..##.#|
|00000a40| 23 20 54 65 72 72 79 20 | 4a 6f 6e 65 73 20 28 74 |# Terry |Jones (t|
|00000a50| 65 72 72 79 40 73 61 6e | 74 61 66 65 2e 65 64 75 |erry@san|tafe.edu|
|00000a60| 29 2c 20 4e 6f 76 65 6d | 62 65 72 20 31 38 2c 20 |), Novem|ber 18, |
|00000a70| 31 39 39 32 2e 0a 23 23 | 20 53 61 6e 74 61 20 46 |1992..##| Santa F|
|00000a80| 65 20 49 6e 73 74 69 74 | 75 74 65 0a 23 23 0a 0a |e Instit|ute.##..|
|00000a90| 23 0a 23 20 31 29 20 54 | 68 65 20 6d 61 78 69 6d |#.# 1) T|he maxim|
|00000aa0| 75 6d 20 6e 75 6d 62 65 | 72 20 6f 66 20 62 75 74 |um numbe|r of but|
|00000ab0| 74 6f 6e 73 2e 0a 23 0a | 4d 41 58 5f 42 55 54 54 |tons..#.|MAX_BUTT|
|00000ac0| 4f 4e 53 20 3d 20 35 30 | 0a 0a 0a 23 0a 23 20 32 |ONS = 50|...#.# 2|
|00000ad0| 29 20 43 68 61 6e 67 65 | 20 74 68 65 20 4c 49 42 |) Change| the LIB|
|00000ae0| 53 20 6c 69 6e 65 20 61 | 63 63 6f 72 64 69 6e 67 |S line a|ccording|
|00000af0| 20 74 6f 20 77 68 65 74 | 68 65 72 20 6f 72 20 6e | to whet|her or n|
|00000b00| 6f 74 20 79 6f 75 0a 23 | 20 20 20 20 68 61 76 65 |ot you.#| have|
|00000b10| 20 74 68 65 20 33 64 20 | 41 74 68 65 6e 61 20 77 | the 3d |Athena w|
|00000b20| 69 64 67 65 74 73 20 69 | 6e 73 74 61 6c 6c 65 64 |idgets i|nstalled|
|00000b30| 2e 20 49 66 20 69 6e 20 | 64 6f 75 62 74 2c 20 6a |. If in |doubt, j|
|00000b40| 75 73 74 20 75 73 65 0a | 23 20 20 20 20 74 68 65 |ust use.|# the|
|00000b50| 20 66 69 72 73 74 20 6c | 69 6e 65 20 28 77 69 74 | first l|ine (wit|
|00000b60| 68 20 2d 6c 58 61 77 29 | 2e 0a 23 0a 23 20 33 29 |h -lXaw)|..#.# 3)|
|00000b70| 20 41 64 64 20 61 20 2d | 4c 2f 70 61 74 68 2f 74 | Add a -|L/path/t|
|00000b80| 6f 2f 79 6f 75 72 2f 58 | 2f 6c 69 62 73 20 69 66 |o/your/X|/libs if|
|00000b90| 20 79 6f 75 72 20 58 20 | 6c 69 62 72 61 72 69 65 | your X |librarie|
|00000ba0| 73 20 61 72 65 20 69 6e | 73 74 61 6c 6c 65 64 0a |s are in|stalled.|
|00000bb0| 23 20 20 20 20 73 6f 6d | 65 77 68 65 72 65 20 6e |# som|ewhere n|
|00000bc0| 6f 6e 2d 73 74 61 6e 64 | 61 72 64 2e 0a 23 0a 4c |on-stand|ard..#.L|
|00000bd0| 49 42 53 3d 20 2d 6c 58 | 61 77 20 2d 6c 58 6d 75 |IBS= -lX|aw -lXmu|
|00000be0| 20 2d 6c 58 74 20 2d 6c | 58 31 31 0a 23 20 4c 49 | -lXt -l|X11.# LI|
|00000bf0| 42 53 3d 20 2d 6c 58 61 | 77 33 64 20 2d 6c 58 6d |BS= -lXa|w3d -lXm|
|00000c00| 75 20 2d 6c 58 74 20 2d | 6c 58 31 31 0a 0a 0a 23 |u -lXt -|lX11...#|
|00000c10| 0a 23 20 34 29 20 41 64 | 64 20 2d 44 48 41 56 45 |.# 4) Ad|d -DHAVE|
|00000c20| 5f 58 41 57 33 44 20 69 | 66 20 79 6f 75 20 68 61 |_XAW3D i|f you ha|
|00000c30| 76 65 20 74 68 65 20 33 | 64 20 41 74 68 65 6e 61 |ve the 3|d Athena|
|00000c40| 20 77 69 64 67 65 74 73 | 2e 0a 23 0a 43 46 4c 41 | widgets|..#.CFLA|
|00000c50| 47 53 20 3d 20 2d 4f 20 | 2d 44 4d 41 58 5f 42 55 |GS = -O |-DMAX_BU|
|00000c60| 54 54 4f 4e 53 3d 24 28 | 4d 41 58 5f 42 55 54 54 |TTONS=$(|MAX_BUTT|
|00000c70| 4f 4e 53 29 0a 0a 0a 23 | 23 20 4e 6f 74 68 69 6e |ONS)...#|# Nothin|
|00000c80| 67 20 62 65 6c 6f 77 20 | 68 65 72 65 20 73 68 6f |g below |here sho|
|00000c90| 75 6c 64 20 63 68 61 6e | 67 65 2e 0a 0a 61 6c 6c |uld chan|ge...all|
|00000ca0| 3a 20 65 62 75 74 74 6f | 6e 73 20 65 62 75 74 74 |: ebutto|ns ebutt|
|00000cb0| 6f 6e 73 2e 63 61 74 0a | 0a 65 62 75 74 74 6f 6e |ons.cat.|.ebutton|
|00000cc0| 73 3a 20 62 75 74 74 6f | 6e 73 20 65 62 75 74 74 |s: butto|ns ebutt|
|00000cd0| 6f 6e 73 2e 6f 20 0a 09 | 24 28 43 43 29 20 24 28 |ons.o ..|$(CC) $(|
|00000ce0| 43 46 4c 41 47 53 29 20 | 2d 6f 20 24 40 20 65 62 |CFLAGS) |-o $@ eb|
|00000cf0| 75 74 74 6f 6e 73 2e 6f | 20 24 28 4c 49 42 53 29 |uttons.o| $(LIBS)|
|00000d00| 0a 0a 62 75 74 74 6f 6e | 73 3a 0a 09 2e 2f 6d 61 |..button|s:.../ma|
|00000d10| 6b 65 5f 65 62 75 74 74 | 6f 6e 73 20 24 28 4d 41 |ke_ebutt|ons $(MA|
|00000d20| 58 5f 42 55 54 54 4f 4e | 53 29 0a 0a 65 62 75 74 |X_BUTTON|S)..ebut|
|00000d30| 74 6f 6e 73 2e 63 61 74 | 3a 20 65 62 75 74 74 6f |tons.cat|: ebutto|
|00000d40| 6e 73 2e 31 0a 09 6e 72 | 6f 66 66 20 2d 6d 61 6e |ns.1..nr|off -man|
|00000d50| 20 65 62 75 74 74 6f 6e | 73 2e 31 20 3e 20 65 62 | ebutton|s.1 > eb|
|00000d60| 75 74 74 6f 6e 73 2e 63 | 61 74 0a 63 6c 65 61 6e |uttons.c|at.clean|
|00000d70| 3a 0a 09 2d 72 6d 20 2d | 66 20 2a 2e 6f 0a 0a 63 |:..-rm -|f *.o..c|
|00000d80| 6c 6f 62 62 65 72 3a 20 | 63 6c 65 61 6e 0a 09 2d |lobber: |clean..-|
|00000d90| 72 6d 20 2d 66 20 65 62 | 75 74 74 6f 6e 73 20 65 |rm -f eb|uttons e|
|00000da0| 62 75 74 74 6f 6e 73 2e | 68 0a 0a 0a 53 48 41 52 |buttons.|h...SHAR|
|00000db0| 5f 45 4f 46 0a 66 69 0a | 69 66 20 74 65 73 74 20 |_EOF.fi.|if test |
|00000dc0| 2d 66 20 27 52 45 41 44 | 4d 45 27 0a 74 68 65 6e |-f 'READ|ME'.then|
|00000dd0| 0a 09 65 63 68 6f 20 73 | 68 61 72 3a 20 22 77 69 |..echo s|har: "wi|
|00000de0| 6c 6c 20 6e 6f 74 20 6f | 76 65 72 2d 77 72 69 74 |ll not o|ver-writ|
|00000df0| 65 20 65 78 69 73 74 69 | 6e 67 20 66 69 6c 65 20 |e existi|ng file |
|00000e00| 27 52 45 41 44 4d 45 27 | 22 0a 65 6c 73 65 0a 63 |'README'|".else.c|
|00000e10| 61 74 20 3c 3c 20 5c 53 | 48 41 52 5f 45 4f 46 20 |at << \S|HAR_EOF |
|00000e20| 3e 20 27 52 45 41 44 4d | 45 27 0a 20 20 20 20 20 |> 'READM|E'. |
|00000e30| 20 20 20 20 20 20 20 20 | 20 45 62 75 74 74 6f 6e | | Ebutton|
|00000e40| 73 20 2d 20 61 6e 20 58 | 20 69 6e 74 65 72 66 61 |s - an X| interfa|
|00000e50| 63 65 20 74 6f 20 65 6d | 61 63 73 2e 0a 0a 20 20 |ce to em|acs... |
|00000e60| 20 20 20 20 20 20 20 54 | 65 72 72 79 20 4a 6f 6e | T|erry Jon|
|00000e70| 65 73 20 28 74 65 72 72 | 79 40 73 61 6e 74 61 66 |es (terr|y@santaf|
|00000e80| 65 2e 65 64 75 29 2c 20 | 4e 6f 76 65 6d 62 65 72 |e.edu), |November|
|00000e90| 20 31 38 2c 20 31 39 39 | 32 2e 0a 20 20 20 20 20 | 18, 199|2.. |
|00000ea0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000eb0| 20 53 61 6e 74 61 20 46 | 65 20 49 6e 73 74 69 74 | Santa F|e Instit|
|00000ec0| 75 74 65 0a 0a 0a 0a 49 | 4e 54 52 4f 44 55 43 54 |ute....I|NTRODUCT|
|00000ed0| 49 4f 4e 0a 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |ION.----|--------|
|00000ee0| 20 0a 0a 54 68 69 73 20 | 70 72 6f 67 72 61 6d 20 | ..This |program |
|00000ef0| 70 72 6f 76 69 64 65 73 | 20 61 6e 20 58 20 69 6e |provides| an X in|
|00000f00| 74 65 72 66 61 63 65 20 | 74 6f 20 69 73 73 75 65 |terface |to issue|
|00000f10| 20 63 6f 6d 6d 61 6e 64 | 73 20 74 6f 20 61 6e 20 | command|s to an |
|00000f20| 65 6d 61 63 73 0a 73 65 | 73 73 69 6f 6e 2e 20 20 |emacs.se|ssion. |
|00000f30| 49 74 20 61 6c 6c 6f 77 | 73 20 79 6f 75 20 74 6f |It allow|s you to|
|00000f40| 20 73 70 65 63 69 66 79 | 20 28 69 6e 20 61 6e 20 | specify| (in an |
|00000f50| 58 20 72 65 73 6f 75 72 | 63 65 20 66 69 6c 65 29 |X resour|ce file)|
|00000f60| 20 6c 61 62 65 6c 73 20 | 66 6f 72 0a 61 20 73 65 | labels |for.a se|
|00000f70| 74 20 6f 66 20 62 75 74 | 74 6f 6e 73 20 61 6e 64 |t of but|tons and|
|00000f80| 20 61 20 63 6f 6d 6d 61 | 6e 64 20 66 6f 72 20 65 | a comma|nd for e|
|00000f90| 61 63 68 20 74 68 61 74 | 20 77 69 6c 6c 20 62 65 |ach that| will be|
|00000fa0| 20 65 78 65 63 75 74 65 | 64 20 77 68 65 6e 20 74 | execute|d when t|
|00000fb0| 68 65 0a 63 6f 72 72 65 | 73 70 6f 6e 64 69 6e 67 |he.corre|sponding|
|00000fc0| 20 62 75 74 74 6f 6e 20 | 69 73 20 63 6c 69 63 6b | button |is click|
|00000fd0| 65 64 20 6f 6e 20 77 69 | 74 68 20 74 68 65 20 6d |ed on wi|th the m|
|00000fe0| 6f 75 73 65 2e 20 46 6f | 72 20 69 6e 73 74 61 6e |ouse. Fo|r instan|
|00000ff0| 63 65 20 79 6f 75 0a 63 | 61 6e 20 64 65 66 69 6e |ce you.c|an defin|
|00001000| 65 20 62 75 74 74 6f 6e | 73 20 74 6f 20 63 6f 6d |e button|s to com|
|00001010| 70 69 6c 65 2c 20 74 6f | 20 66 69 6e 64 20 74 68 |pile, to| find th|
|00001020| 65 20 6e 65 78 74 20 65 | 72 72 6f 72 2c 20 74 6f |e next e|rror, to|
|00001030| 20 73 61 76 65 0a 62 75 | 66 66 65 72 73 2c 20 74 | save.bu|ffers, t|
|00001040| 6f 20 6d 6f 76 65 20 74 | 6f 20 74 68 65 20 74 6f |o move t|o the to|
|00001050| 70 2f 62 6f 74 74 6f 6d | 20 6f 66 20 74 68 65 20 |p/bottom| of the |
|00001060| 62 75 66 66 65 72 2c 20 | 74 6f 20 65 78 69 74 20 |buffer, |to exit |
|00001070| 65 6d 61 63 73 20 65 74 | 63 2e 0a 65 74 63 2e 0a |emacs et|c..etc..|
|00001080| 0a 54 68 65 20 69 64 65 | 61 20 69 73 20 74 68 61 |.The ide|a is tha|
|00001090| 74 20 74 68 69 73 20 73 | 68 6f 75 6c 64 20 62 65 |t this s|hould be|
|000010a0| 20 61 20 74 68 69 6e 20 | 76 65 72 74 69 63 61 6c | a thin |vertical|
|000010b0| 20 77 69 6e 64 6f 77 20 | 74 68 61 74 20 73 69 74 | window |that sit|
|000010c0| 73 20 6a 75 73 74 0a 74 | 6f 20 74 68 65 20 73 69 |s just.t|o the si|
|000010d0| 64 65 20 6f 66 20 61 6e | 20 65 6d 61 63 73 20 73 |de of an| emacs s|
|000010e0| 65 73 73 69 6f 6e 20 61 | 6e 64 20 61 6c 6c 6f 77 |ession a|nd allow|
|000010f0| 73 20 66 6f 72 20 66 61 | 73 74 20 65 78 65 63 75 |s for fa|st execu|
|00001100| 74 69 6f 6e 20 6f 66 20 | 73 6f 6d 65 0a 74 68 69 |tion of |some.thi|
|00001110| 6e 67 73 2e 20 49 74 20 | 69 73 20 6e 6f 74 20 69 |ngs. It |is not i|
|00001120| 6e 74 65 6e 64 65 64 20 | 74 6f 20 72 65 70 6c 61 |ntended |to repla|
|00001130| 63 65 20 74 68 65 20 6b | 65 79 62 6f 61 72 64 21 |ce the k|eyboard!|
|00001140| 20 49 74 20 6a 75 73 74 | 20 67 69 76 65 73 0a 61 | It just| gives.a|
|00001150| 6e 6f 74 68 65 72 20 6f | 70 74 69 6f 6e 20 2d 20 |nother o|ption - |
|00001160| 69 66 20 79 6f 75 72 20 | 68 61 6e 64 20 69 73 20 |if your |hand is |
|00001170| 61 6c 72 65 61 64 79 20 | 6f 6e 20 74 68 65 20 6d |already |on the m|
|00001180| 6f 75 73 65 2c 20 75 73 | 65 20 65 62 75 74 74 6f |ouse, us|e ebutto|
|00001190| 6e 73 2e 0a 49 66 20 6e | 6f 74 2c 20 75 73 65 20 |ns..If n|ot, use |
|000011a0| 74 68 65 20 6b 65 79 62 | 6f 61 72 64 2e 20 4f 72 |the keyb|oard. Or|
|000011b0| 20 61 73 20 79 6f 75 20 | 6c 69 6b 65 20 69 74 2e | as you |like it.|
|000011c0| 20 54 68 65 20 77 69 6e | 64 6f 77 20 63 61 6e 20 | The win|dow can |
|000011d0| 61 6c 73 6f 20 62 65 0a | 6d 61 64 65 20 68 6f 72 |also be.|made hor|
|000011e0| 69 7a 6f 6e 74 61 6c 20 | 28 73 65 65 20 62 65 6c |izontal |(see bel|
|000011f0| 6f 77 29 20 62 75 74 20 | 74 68 65 6e 20 6e 6f 74 |ow) but |then not|
|00001200| 20 61 73 20 6d 61 6e 79 | 20 62 75 74 74 6f 6e 73 | as many| buttons|
|00001210| 20 77 69 6c 6c 20 66 69 | 74 20 6f 6e 0a 74 68 65 | will fi|t on.the|
|00001220| 20 73 63 72 65 65 6e 2e | 0a 0a 45 62 75 74 74 6f | screen.|..Ebutto|
|00001230| 6e 73 20 69 73 20 69 6e | 74 65 6e 64 65 64 20 74 |ns is in|tended t|
|00001240| 6f 20 72 75 6e 20 61 73 | 20 61 20 73 75 62 70 72 |o run as| a subpr|
|00001250| 6f 63 65 73 73 20 74 6f | 20 61 6e 20 65 6d 61 63 |ocess to| an emac|
|00001260| 73 20 73 65 73 73 69 6f | 6e 2e 20 20 49 74 20 69 |s sessio|n. It i|
|00001270| 73 0a 63 6f 6e 74 72 6f | 6c 6c 65 64 20 62 79 20 |s.contro|lled by |
|00001280| 74 68 65 20 65 6c 69 73 | 70 20 63 6f 64 65 20 69 |the elis|p code i|
|00001290| 6e 20 65 62 75 74 74 6f | 6e 73 2e 65 6c 2e 20 20 |n ebutto|ns.el. |
|000012a0| 41 66 74 65 72 20 6c 6f | 61 64 69 6e 67 20 65 62 |After lo|ading eb|
|000012b0| 75 74 74 6f 6e 73 2e 65 | 6c 2c 0a 65 78 65 63 75 |uttons.e|l,.execu|
|000012c0| 74 69 6e 67 20 74 68 65 | 20 22 65 62 75 74 74 6f |ting the| "ebutto|
|000012d0| 6e 73 22 20 66 75 6e 63 | 74 69 6f 6e 20 66 72 6f |ns" func|tion fro|
|000012e0| 6d 20 77 69 74 68 69 6e | 20 65 6d 61 63 73 20 77 |m within| emacs w|
|000012f0| 69 6c 6c 20 73 74 61 72 | 74 20 74 68 65 20 70 72 |ill star|t the pr|
|00001300| 6f 67 72 61 6d 2e 0a 53 | 69 6e 63 65 20 74 68 65 |ogram..S|ince the|
|00001310| 20 70 72 6f 67 72 61 6d | 20 75 73 65 73 20 58 2c | program| uses X,|
|00001320| 20 79 6f 75 20 68 61 76 | 65 20 74 6f 20 62 65 20 | you hav|e to be |
|00001330| 72 75 6e 6e 69 6e 67 20 | 58 2e 20 20 53 65 65 20 |running |X. See |
|00001340| 74 68 65 20 69 6e 73 74 | 61 6c 6c 61 74 69 6f 6e |the inst|allation|
|00001350| 0a 6e 6f 74 65 73 20 6c | 61 74 65 72 20 69 6e 20 |.notes l|ater in |
|00001360| 74 68 69 73 20 64 6f 63 | 75 6d 65 6e 74 20 66 6f |this doc|ument fo|
|00001370| 72 20 6d 6f 72 65 20 64 | 65 74 61 69 6c 2e 20 20 |r more d|etail. |
|00001380| 4e 6f 74 65 20 74 68 61 | 74 20 74 68 69 73 20 70 |Note tha|t this p|
|00001390| 72 6f 67 72 61 6d 20 64 | 6f 65 73 0a 4e 4f 54 20 |rogram d|oes.NOT |
|000013a0| 72 65 71 75 69 72 65 20 | 79 6f 75 20 74 6f 20 75 |require |you to u|
|000013b0| 73 65 20 74 68 65 20 58 | 20 76 65 72 73 69 6f 6e |se the X| version|
|000013c0| 20 6f 66 20 65 6d 61 63 | 73 2e 20 20 59 6f 75 20 | of emac|s. You |
|000013d0| 6d 75 73 74 20 62 65 20 | 72 75 6e 6e 69 6e 67 20 |must be |running |
|000013e0| 58 2c 20 62 75 74 0a 79 | 6f 75 20 63 61 6e 20 75 |X, but.y|ou can u|
|000013f0| 73 65 20 74 68 65 20 6e | 6f 6e 2d 58 20 76 65 72 |se the n|on-X ver|
|00001400| 73 69 6f 6e 20 6f 66 20 | 65 6d 61 63 73 2e 0a 0a |sion of |emacs...|
|00001410| 45 62 75 74 74 6f 6e 73 | 20 77 61 73 20 69 6d 70 |Ebuttons| was imp|
|00001420| 6c 65 6d 65 6e 74 65 64 | 20 75 6e 64 65 72 20 47 |lemented| under G|
|00001430| 4e 55 20 65 6d 61 63 73 | 20 76 65 72 73 69 6f 6e |NU emacs| version|
|00001440| 20 31 38 2e 35 38 2e 20 | 49 74 20 73 68 6f 75 6c | 18.58. |It shoul|
|00001450| 64 20 72 75 6e 0a 6f 6e | 20 65 61 72 6c 69 65 72 |d run.on| earlier|
|00001460| 20 76 65 72 73 69 6f 6e | 73 20 6f 66 20 47 4e 55 | version|s of GNU|
|00001470| 20 65 6d 61 63 73 2e 0a | 0a 54 68 69 73 20 70 72 | emacs..|.This pr|
|00001480| 6f 67 72 61 6d 20 69 73 | 20 61 64 61 70 74 65 64 |ogram is| adapted|
|00001490| 20 66 72 6f 6d 20 74 68 | 65 20 74 61 67 6c 69 73 | from th|e taglis|
|000014a0| 74 20 66 61 63 69 6c 69 | 74 79 20 77 72 69 74 74 |t facili|ty writt|
|000014b0| 65 6e 20 62 79 20 42 72 | 61 64 0a 4d 65 61 72 73 |en by Br|ad.Mears|
|000014c0| 20 28 62 6d 65 61 72 73 | 40 64 65 6c 74 61 68 70 | (bmears|@deltahp|
|000014d0| 2e 6a 73 63 2e 6e 61 73 | 61 2e 67 6f 76 29 2e 20 |.jsc.nas|a.gov). |
|000014e0| 49 6e 20 66 61 63 74 2c | 20 68 65 20 73 68 6f 75 |In fact,| he shou|
|000014f0| 6c 64 20 67 65 74 20 61 | 6c 6d 6f 73 74 20 61 6c |ld get a|lmost al|
|00001500| 6c 0a 74 68 65 20 63 72 | 65 64 69 74 2e 20 49 20 |l.the cr|edit. I |
|00001510| 68 61 76 65 20 6e 65 76 | 65 72 20 77 72 69 74 74 |have nev|er writt|
|00001520| 65 6e 20 61 20 6c 69 6e | 65 20 6f 66 20 65 6c 69 |en a lin|e of eli|
|00001530| 73 70 20 63 6f 64 65 2c | 20 77 68 61 74 20 79 6f |sp code,| what yo|
|00001540| 75 20 73 65 65 20 69 6e | 0a 65 62 75 74 74 6f 6e |u see in|.ebutton|
|00001550| 73 2e 65 6c 20 69 73 20 | 74 68 65 20 72 65 73 75 |s.el is |the resu|
|00001560| 6c 74 20 6f 66 20 64 65 | 6c 65 74 69 6e 67 20 61 |lt of de|leting a|
|00001570| 62 6f 75 74 20 38 30 25 | 20 6f 66 20 68 69 73 20 |bout 80%| of his |
|00001580| 74 61 67 6c 69 73 74 2e | 65 6c 2e 0a 54 68 65 20 |taglist.|el..The |
|00001590| 58 20 63 6f 64 65 20 6c | 6f 6f 6b 73 20 73 6f 6d |X code l|ooks som|
|000015a0| 65 77 68 61 74 20 64 69 | 66 66 65 72 65 6e 74 2c |ewhat di|fferent,|
|000015b0| 20 62 75 74 2c 20 61 67 | 61 69 6e 2c 20 69 73 20 | but, ag|ain, is |
|000015c0| 61 20 72 65 73 75 6c 74 | 20 6f 66 0a 65 64 69 74 |a result| of.edit|
|000015d0| 69 6e 67 20 61 20 63 6f | 70 79 20 6f 66 20 74 61 |ing a co|py of ta|
|000015e0| 67 6c 69 73 74 2e 63 20 | 28 61 73 20 69 73 20 74 |glist.c |(as is t|
|000015f0| 68 69 73 20 52 45 41 44 | 4d 45 29 2e 0a 0a 49 20 |his READ|ME)...I |
|00001600| 64 65 63 69 64 65 64 20 | 74 68 61 74 20 74 68 69 |decided |that thi|
|00001610| 73 20 77 6f 75 6c 64 20 | 62 65 20 61 20 6e 69 63 |s would |be a nic|
|00001620| 65 20 74 68 69 6e 67 20 | 74 6f 20 68 61 76 65 20 |e thing |to have |
|00001630| 61 66 74 65 72 20 75 73 | 69 6e 67 20 74 61 67 6c |after us|ing tagl|
|00001640| 69 73 74 0a 66 6f 72 20 | 61 20 74 69 6d 65 20 61 |ist.for |a time a|
|00001650| 6e 64 20 72 65 61 6c 69 | 7a 69 6e 67 20 74 68 61 |nd reali|zing tha|
|00001660| 74 20 49 20 6c 69 6b 65 | 64 20 74 68 65 20 63 6f |t I like|d the co|
|00001670| 6d 6d 61 6e 64 20 62 75 | 74 74 6f 6e 73 20 62 65 |mmand bu|ttons be|
|00001680| 74 74 65 72 20 74 68 61 | 6e 0a 74 68 65 20 74 61 |tter tha|n.the ta|
|00001690| 67 73 2e 20 50 6c 75 73 | 2c 20 74 68 65 20 74 61 |gs. Plus|, the ta|
|000016a0| 67 73 20 6c 69 73 74 20 | 6b 65 70 74 20 28 6e 65 |gs list |kept (ne|
|000016b0| 63 65 73 73 61 72 69 6c | 79 29 20 72 65 73 69 7a |cessaril|y) resiz|
|000016c0| 69 6e 67 20 61 6e 64 0a | 6f 62 73 63 75 72 69 6e |ing and.|obscurin|
|000016d0| 67 20 6d 79 20 65 6d 61 | 63 73 20 77 69 6e 64 6f |g my ema|cs windo|
|000016e0| 77 2e 20 41 20 66 75 72 | 74 68 65 72 20 73 74 65 |w. A fur|ther ste|
|000016f0| 70 20 77 6f 75 6c 64 20 | 62 65 20 74 6f 20 72 65 |p would |be to re|
|00001700| 77 72 69 74 65 20 74 61 | 67 6c 69 73 74 0a 73 6f |write ta|glist.so|
|00001710| 20 74 68 61 74 20 69 74 | 20 64 69 64 6e 27 74 20 | that it| didn't |
|00001720| 68 61 76 65 20 61 20 73 | 65 74 20 6f 66 20 62 75 |have a s|et of bu|
|00001730| 74 74 6f 6e 73 20 2d 20 | 69 74 20 63 6f 75 6c 64 |ttons - |it could|
|00001740| 20 62 65 20 63 6f 6e 74 | 72 6f 6c 6c 65 64 20 66 | be cont|rolled f|
|00001750| 72 6f 6d 0a 61 20 62 75 | 74 74 6f 6e 20 69 6e 20 |rom.a bu|tton in |
|00001760| 61 6e 20 65 62 75 74 74 | 6f 6e 73 20 77 69 6e 64 |an ebutt|ons wind|
|00001770| 6f 77 2e 0a 0a 43 4f 4d | 50 4f 4e 45 4e 54 53 0a |ow...COM|PONENTS.|
|00001780| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 0a 52 45 41 44 4d |--------|--.READM|
|00001790| 45 20 20 20 20 20 20 20 | 20 20 20 2d 20 74 68 69 |E | - thi|
|000017a0| 73 20 66 69 6c 65 2e 0a | 4d 61 6b 65 66 69 6c 65 |s file..|Makefile|
|000017b0| 20 20 20 20 20 20 20 20 | 2d 20 74 68 61 74 20 66 | |- that f|
|000017c0| 69 6c 65 2e 0a 52 65 73 | 6f 75 72 63 65 73 20 20 |ile..Res|ources |
|000017d0| 20 20 20 20 20 2d 20 61 | 20 73 61 6d 70 6c 65 20 | - a| sample |
|000017e0| 73 65 74 20 6f 66 20 72 | 65 73 6f 75 72 63 65 73 |set of r|esources|
|000017f0| 20 66 6f 72 20 74 68 69 | 73 20 70 72 6f 67 72 61 | for thi|s progra|
|00001800| 6d 2e 0a 65 62 75 74 74 | 6f 6e 73 2e 63 20 20 20 |m..ebutt|ons.c |
|00001810| 20 20 20 2d 20 73 6f 75 | 72 63 65 20 63 6f 64 65 | - sou|rce code|
|00001820| 2e 0a 65 62 75 74 74 6f | 6e 73 2e 65 6c 20 20 20 |..ebutto|ns.el |
|00001830| 20 20 2d 20 72 75 6e 2d | 74 69 6d 65 20 65 6c 69 | - run-|time eli|
|00001840| 73 70 20 70 72 6f 67 72 | 61 6d 2e 0a 65 62 75 74 |sp progr|am..ebut|
|00001850| 74 6f 6e 73 2e 31 20 20 | 20 20 20 20 2d 20 61 20 |tons.1 | - a |
|00001860| 6d 61 6e 20 70 61 67 65 | 2e 0a 6d 61 6b 65 5f 65 |man page|..make_e|
|00001870| 62 75 74 74 6f 6e 73 20 | 20 20 2d 20 61 20 73 68 |buttons | - a sh|
|00001880| 65 6c 6c 20 73 63 72 69 | 70 74 20 74 68 61 74 20 |ell scri|pt that |
|00001890| 67 65 6e 65 72 61 74 65 | 73 20 73 6f 6d 65 20 63 |generate|s some c|
|000018a0| 6f 64 65 20 66 6f 72 20 | 65 62 75 74 74 6f 6e 73 |ode for |ebuttons|
|000018b0| 2e 63 2e 0a 0a 49 4e 53 | 54 41 4c 4c 41 54 49 4f |.c...INS|TALLATIO|
|000018c0| 4e 0a 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 0a 31 |N.------|------.1|
|000018d0| 20 2d 20 45 64 69 74 20 | 4d 61 6b 65 66 69 6c 65 | - Edit |Makefile|
|000018e0| 20 61 6e 64 20 72 75 6e | 20 6d 61 6b 65 2e 20 54 | and run| make. T|
|000018f0| 68 69 73 20 77 69 6c 6c | 20 6d 61 6b 65 20 79 6f |his will| make yo|
|00001900| 75 20 61 6e 20 65 78 65 | 63 75 74 61 62 6c 65 20 |u an exe|cutable |
|00001910| 0a 20 20 20 20 61 6e 64 | 20 61 6c 73 6f 20 66 6f |. and| also fo|
|00001920| 72 6d 61 74 20 74 68 65 | 20 6d 61 6e 70 61 67 65 |rmat the| manpage|
|00001930| 20 28 70 75 74 74 69 6e | 67 20 74 68 65 20 72 65 | (puttin|g the re|
|00001940| 73 75 6c 74 20 69 6e 20 | 65 62 75 74 74 6f 6e 73 |sult in |ebuttons|
|00001950| 2e 63 61 74 29 0a 0a 32 | 20 2d 20 43 6f 70 79 20 |.cat)..2| - Copy |
|00001960| 74 68 65 20 72 65 73 75 | 6c 74 69 6e 67 20 65 78 |the resu|lting ex|
|00001970| 65 63 75 74 61 62 6c 65 | 20 28 65 62 75 74 74 6f |ecutable| (ebutto|
|00001980| 6e 73 29 20 74 6f 20 73 | 6f 6d 65 20 64 69 72 65 |ns) to s|ome dire|
|00001990| 63 74 6f 72 79 20 74 68 | 61 74 20 69 73 0a 20 20 |ctory th|at is. |
|000019a0| 20 20 69 6e 20 79 6f 75 | 72 20 70 61 74 68 2e 0a | in you|r path..|
|000019b0| 0a 33 20 2d 20 43 6f 70 | 79 20 74 68 65 20 65 6c |.3 - Cop|y the el|
|000019c0| 69 73 70 20 70 72 6f 67 | 72 61 6d 20 65 62 75 74 |isp prog|ram ebut|
|000019d0| 74 6f 6e 73 2e 65 6c 20 | 74 6f 20 77 68 65 72 65 |tons.el |to where|
|000019e0| 76 65 72 20 79 6f 75 20 | 6b 65 65 70 20 79 6f 75 |ver you |keep you|
|000019f0| 72 0a 20 20 20 20 65 6c | 69 73 70 20 63 6f 64 65 |r. el|isp code|
|00001a00| 2e 0a 0a 34 20 2d 20 43 | 75 73 74 6f 6d 69 7a 65 |...4 - C|ustomize|
|00001a10| 20 74 68 65 20 6c 61 62 | 65 6c 73 20 61 6e 64 20 | the lab|els and |
|00001a20| 63 6f 6d 6d 61 6e 64 73 | 20 75 73 65 64 20 62 79 |commands| used by|
|00001a30| 20 74 68 65 20 62 75 74 | 74 6f 6e 73 2e 20 53 65 | the but|tons. Se|
|00001a40| 65 20 74 68 65 0a 20 20 | 20 20 66 69 6c 65 20 22 |e the. | file "|
|00001a50| 52 65 73 6f 75 72 63 65 | 73 22 20 66 6f 72 20 65 |Resource|s" for e|
|00001a60| 78 61 6d 70 6c 65 73 2e | 20 41 64 64 20 74 68 65 |xamples.| Add the|
|00001a70| 20 72 65 73 6f 75 72 63 | 65 73 20 79 6f 75 20 77 | resourc|es you w|
|00001a80| 61 6e 74 20 74 6f 0a 20 | 20 20 20 79 6f 75 72 20 |ant to. | your |
|00001a90| 2e 58 64 65 66 61 75 6c | 74 73 20 6f 72 20 2e 58 |.Xdefaul|ts or .X|
|00001aa0| 72 65 73 6f 75 72 63 65 | 73 20 28 6f 72 20 77 68 |resource|s (or wh|
|00001ab0| 65 72 65 76 65 72 29 20 | 66 69 6c 65 2e 0a 0a 35 |erever) |file...5|
|00001ac0| 20 2d 20 28 4f 70 74 69 | 6f 6e 61 6c 29 20 20 4d | - (Opti|onal) M|
|00001ad0| 6f 64 69 66 79 20 79 6f | 75 72 20 2e 65 6d 61 63 |odify yo|ur .emac|
|00001ae0| 73 20 66 69 6c 65 20 74 | 6f 20 6c 6f 61 64 20 61 |s file t|o load a|
|00001af0| 6e 64 20 72 75 6e 20 65 | 62 75 74 74 6f 6e 73 20 |nd run e|buttons |
|00001b00| 61 74 20 73 74 61 72 74 | 75 70 2e 0a 20 20 20 20 |at start|up.. |
|00001b10| 49 20 64 6f 20 74 68 69 | 73 20 76 69 61 3a 0a 20 |I do thi|s via:. |
|00001b20| 20 0a 20 20 20 20 28 69 | 66 20 28 65 71 75 61 6c | . (i|f (equal|
|00001b30| 20 77 69 6e 64 6f 77 2d | 73 79 73 74 65 6d 20 27 | window-|system '|
|00001b40| 78 29 0a 20 20 20 20 20 | 20 20 20 28 70 72 6f 67 |x). | (prog|
|00001b50| 6e 0a 09 20 20 28 6c 6f | 61 64 20 22 65 62 75 74 |n.. (lo|ad "ebut|
|00001b60| 74 6f 6e 73 22 29 0a 09 | 20 20 28 65 62 75 74 74 |tons")..| (ebutt|
|00001b70| 6f 6e 73 29 29 29 0a 0a | 36 20 2d 20 28 4f 70 74 |ons)))..|6 - (Opt|
|00001b80| 69 6f 6e 61 6c 29 20 4d | 6f 64 69 66 79 20 79 6f |ional) M|odify yo|
|00001b90| 75 72 20 2e 65 6d 61 63 | 73 20 66 69 6c 65 20 73 |ur .emac|s file s|
|00001ba0| 6f 20 74 68 61 74 20 65 | 62 75 74 74 6f 6e 73 2d |o that e|buttons-|
|00001bb0| 74 6f 67 67 6c 65 2d 73 | 63 72 65 65 6e 0a 20 20 |toggle-s|creen. |
|00001bc0| 20 20 69 73 20 62 6f 75 | 6e 64 20 74 6f 20 73 6f | is bou|nd to so|
|00001bd0| 6d 65 20 6b 65 79 2e 0a | 0a 20 20 20 20 28 64 65 |me key..|. (de|
|00001be0| 66 69 6e 65 2d 6b 65 79 | 20 67 6c 6f 62 61 6c 2d |fine-key| global-|
|00001bf0| 6d 61 70 20 22 5c 5e 58 | 74 22 20 27 65 62 75 74 |map "\^X|t" 'ebut|
|00001c00| 74 6f 6e 73 29 0a 20 20 | 20 20 0a 20 20 20 20 4e |tons). | . N|
|00001c10| 6f 74 65 20 74 68 61 74 | 20 74 68 69 73 20 69 73 |ote that| this is|
|00001c20| 20 74 68 65 20 6b 65 79 | 20 74 68 61 74 20 77 61 | the key| that wa|
|00001c30| 73 20 73 75 67 67 65 73 | 74 65 64 20 66 6f 72 20 |s sugges|ted for |
|00001c40| 74 61 67 6c 69 73 74 2c | 20 73 6f 20 69 66 0a 20 |taglist,| so if. |
|00001c50| 20 20 20 79 6f 75 20 77 | 61 6e 74 20 74 6f 20 75 | you w|ant to u|
|00001c60| 73 65 20 62 6f 74 68 20 | 61 6e 64 20 68 61 76 65 |se both |and have|
|00001c70| 20 74 61 67 6c 69 73 74 | 20 6f 6e 20 43 2d 78 20 | taglist| on C-x |
|00001c80| 74 2c 20 63 6f 6d 65 20 | 75 70 20 77 69 74 68 20 |t, come |up with |
|00001c90| 79 6f 75 72 0a 20 20 20 | 20 6f 77 6e 20 61 72 72 |your. | own arr|
|00001ca0| 61 6e 67 65 6d 65 6e 74 | 2e 0a 0a 0a 52 55 4e 4e |angement|....RUNN|
|00001cb0| 49 4e 47 20 65 62 75 74 | 74 6f 6e 73 0a 2d 2d 2d |ING ebut|tons.---|
|00001cc0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 0a 0a 54 |--------|-----..T|
|00001cd0| 68 65 20 73 69 6d 70 6c | 65 73 74 20 6d 65 74 68 |he simpl|est meth|
|00001ce0| 6f 64 20 69 73 20 74 6f | 2c 20 61 73 20 64 65 73 |od is to|, as des|
|00001cf0| 63 72 69 62 65 64 20 61 | 62 6f 76 65 2c 20 68 61 |cribed a|bove, ha|
|00001d00| 76 65 20 65 62 75 74 74 | 6f 6e 73 20 73 74 61 72 |ve ebutt|ons star|
|00001d10| 74 0a 61 75 74 6f 6d 61 | 74 69 63 61 6c 6c 79 20 |t.automa|tically |
|00001d20| 77 68 65 6e 20 79 6f 75 | 72 20 65 6d 61 63 73 20 |when you|r emacs |
|00001d30| 73 74 61 72 74 73 2e 20 | 4f 74 68 65 72 77 69 73 |starts. |Otherwis|
|00001d40| 65 20 79 6f 75 20 63 61 | 6e 20 69 6e 76 6f 6b 65 |e you ca|n invoke|
|00001d50| 20 69 74 0a 6d 61 6e 75 | 61 6c 6c 79 20 77 69 74 | it.manu|ally wit|
|00001d60| 68 20 4d 2d 78 20 65 62 | 75 74 74 6f 6e 73 20 28 |h M-x eb|uttons (|
|00001d70| 6f 72 20 43 2d 78 20 74 | 20 69 66 20 79 6f 75 20 |or C-x t| if you |
|00001d80| 68 61 76 65 20 69 74 20 | 62 6f 75 6e 64 20 74 68 |have it |bound th|
|00001d90| 65 72 65 29 2e 0a 0a 54 | 68 65 20 28 65 62 75 74 |ere)...T|he (ebut|
|00001da0| 74 6f 6e 73 29 20 66 75 | 6e 63 74 69 6f 6e 20 68 |tons) fu|nction h|
|00001db0| 61 73 20 74 77 6f 20 70 | 75 72 70 6f 73 65 73 2e |as two p|urposes.|
|00001dc0| 20 20 49 74 20 65 69 74 | 68 65 72 20 73 74 61 72 | It eit|her star|
|00001dd0| 74 73 20 74 68 65 20 65 | 62 75 74 74 6f 6e 73 0a |ts the e|buttons.|
|00001de0| 70 72 6f 67 72 61 6d 20 | 6f 72 2c 20 69 66 20 74 |program |or, if t|
|00001df0| 68 65 20 70 72 6f 67 72 | 61 6d 20 69 73 20 61 6c |he progr|am is al|
|00001e00| 72 65 61 64 79 20 72 75 | 6e 6e 69 6e 67 2c 20 73 |ready ru|nning, s|
|00001e10| 65 6e 64 73 20 61 20 73 | 69 67 6e 61 6c 20 74 6f |ends a s|ignal to|
|00001e20| 20 69 74 20 74 68 61 74 | 0a 63 61 75 73 65 73 20 | it that|.causes |
|00001e30| 74 68 65 20 70 72 6f 67 | 72 61 6d 20 74 6f 20 68 |the prog|ram to h|
|00001e40| 69 64 65 2f 65 78 70 6f | 73 65 20 74 68 65 20 65 |ide/expo|se the e|
|00001e50| 62 75 74 74 6f 6e 73 20 | 77 69 6e 64 6f 77 2e 0a |buttons |window..|
|00001e60| 0a 54 6f 20 75 73 65 20 | 74 68 65 20 70 72 6f 67 |.To use |the prog|
|00001e70| 72 61 6d 2c 20 73 69 6d | 70 6c 79 20 63 6c 69 63 |ram, sim|ply clic|
|00001e80| 6b 20 6f 6e 20 74 68 65 | 20 62 75 74 74 6f 6e 20 |k on the| button |
|00001e90| 74 68 61 74 20 72 65 70 | 72 65 73 65 6e 74 73 20 |that rep|resents |
|00001ea0| 74 68 65 0a 63 6f 6d 6d | 61 6e 64 20 79 6f 75 20 |the.comm|and you |
|00001eb0| 77 61 6e 74 20 65 78 65 | 63 75 74 65 64 2e 0a 0a |want exe|cuted...|
|00001ec0| 20 0a 52 45 53 4f 55 52 | 43 45 53 0a 2d 2d 2d 2d | .RESOUR|CES.----|
|00001ed0| 2d 2d 2d 2d 2d 0a 0a 59 | 6f 75 72 20 72 65 73 6f |-----..Y|our reso|
|00001ee0| 75 72 63 65 20 66 69 6c | 65 20 73 68 6f 75 6c 64 |urce fil|e should|
|00001ef0| 20 68 61 76 65 20 70 61 | 69 72 73 20 6f 66 20 6c | have pa|irs of l|
|00001f00| 69 6e 65 73 20 6c 69 6b | 65 0a 0a 20 20 20 20 65 |ines lik|e.. e|
|00001f10| 62 75 74 74 6f 6e 73 2e | 6c 61 62 65 6c 58 3a 20 |buttons.|labelX: |
|00001f20| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001f30| 6c 61 62 65 6c 0a 20 20 | 20 20 65 62 75 74 74 6f |label. | ebutto|
|00001f40| 6e 73 2e 63 6f 6d 6d 61 | 6e 64 58 3a 20 20 20 20 |ns.comma|ndX: |
|00001f50| 20 20 20 20 20 20 20 20 | 20 20 20 28 65 6d 61 63 | | (emac|
|00001f60| 73 2d 63 6f 6d 6d 61 6e | 64 29 0a 0a 77 68 65 72 |s-comman|d)..wher|
|00001f70| 65 20 58 20 69 73 20 61 | 6e 79 20 6e 75 6d 62 65 |e X is a|ny numbe|
|00001f80| 72 20 66 72 6f 6d 20 30 | 20 74 6f 20 74 68 65 20 |r from 0| to the |
|00001f90| 6e 75 6d 62 65 72 20 6f | 66 20 70 6f 73 73 69 62 |number o|f possib|
|00001fa0| 6c 65 20 62 75 74 74 6f | 6e 73 20 6d 69 6e 75 73 |le butto|ns minus|
|00001fb0| 0a 6f 6e 65 2e 20 54 68 | 65 20 75 70 70 65 72 20 |.one. Th|e upper |
|00001fc0| 6c 69 6d 69 74 20 69 73 | 20 73 65 74 20 69 6e 20 |limit is| set in |
|00001fd0| 74 68 65 20 4d 61 6b 65 | 66 69 6c 65 20 61 6e 64 |the Make|file and|
|00001fe0| 20 69 73 20 35 30 20 69 | 6e 20 74 68 65 0a 64 69 | is 50 i|n the.di|
|00001ff0| 73 74 72 69 62 75 74 69 | 6f 6e 2e 20 4c 61 62 65 |stributi|on. Labe|
|00002000| 6c 20 6e 75 6d 62 65 72 | 73 20 6d 61 79 20 62 65 |l number|s may be|
|00002010| 20 6f 6d 69 74 74 65 64 | 20 28 69 2e 65 2e 20 79 | omitted| (i.e. y|
|00002020| 6f 75 20 63 61 6e 20 64 | 65 66 69 6e 65 20 6c 61 |ou can d|efine la|
|00002030| 62 65 6c 73 0a 31 2c 20 | 32 20 61 6e 64 20 35 2c |bels.1, |2 and 5,|
|00002040| 20 6f 6d 69 74 74 69 6e | 67 20 33 20 61 6e 64 20 | omittin|g 3 and |
|00002050| 34 29 20 2d 20 69 66 20 | 79 6f 75 20 6f 6e 6c 79 |4) - if |you only|
|00002060| 20 64 65 66 69 6e 65 20 | 33 20 62 75 74 74 6f 6e | define |3 button|
|00002070| 73 2c 20 6f 6e 6c 79 20 | 33 0a 77 69 6c 6c 20 61 |s, only |3.will a|
|00002080| 70 70 65 61 72 2e 20 41 | 63 74 75 61 6c 6c 79 20 |ppear. A|ctually |
|00002090| 74 68 69 73 20 69 73 20 | 6e 6f 74 20 65 6e 74 69 |this is |not enti|
|000020a0| 72 65 6c 79 20 74 72 75 | 65 2c 20 61 6e 20 65 78 |rely tru|e, an ex|
|000020b0| 74 72 61 20 62 75 74 74 | 6f 6e 20 28 74 68 65 0a |tra butt|on (the.|
|000020c0| 6c 61 73 74 20 62 75 74 | 74 6f 6e 20 69 6e 20 74 |last but|ton in t|
|000020d0| 68 65 20 77 69 6e 64 6f | 77 29 20 69 73 20 61 64 |he windo|w) is ad|
|000020e0| 64 65 64 2e 20 49 74 20 | 63 61 75 73 65 73 20 74 |ded. It |causes t|
|000020f0| 68 65 20 65 62 75 74 74 | 6f 6e 73 20 70 72 6f 67 |he ebutt|ons prog|
|00002100| 72 61 6d 20 74 6f 0a 65 | 78 69 74 20 61 6e 64 20 |ram to.e|xit and |
|00002110| 69 73 20 28 75 73 75 61 | 6c 6c 79 29 20 6c 61 62 |is (usua|lly) lab|
|00002120| 65 6c 6c 65 64 20 51 75 | 69 74 2e 20 20 59 6f 75 |elled Qu|it. You|
|00002130| 20 63 61 6e 20 63 68 61 | 6e 67 65 20 74 68 65 20 | can cha|nge the |
|00002140| 6e 61 6d 65 20 74 68 61 | 74 0a 61 70 70 65 61 72 |name tha|t.appear|
|00002150| 73 20 6f 6e 20 74 68 69 | 73 20 62 75 74 74 6f 6e |s on thi|s button|
|00002160| 20 28 69 66 20 79 6f 75 | 20 77 69 73 68 29 20 77 | (if you| wish) w|
|00002170| 69 74 68 3a 0a 0a 20 20 | 20 20 65 62 75 74 74 6f |ith:.. | ebutto|
|00002180| 6e 73 2a 51 75 69 74 2e | 6c 61 62 65 6c 3a 20 79 |ns*Quit.|label: y|
|00002190| 6f 75 72 2d 6c 61 62 65 | 6c 0a 0a 69 6e 20 79 6f |our-labe|l..in yo|
|000021a0| 75 72 20 72 65 73 6f 75 | 72 63 65 20 66 69 6c 65 |ur resou|rce file|
|000021b0| 2e 20 4f 74 68 65 72 20 | 72 65 73 6f 75 72 63 65 |. Other |resource|
|000021c0| 73 20 74 68 61 74 20 77 | 69 6c 6c 20 68 61 76 65 |s that w|ill have|
|000021d0| 20 75 73 65 66 75 6c 20 | 65 66 66 65 63 74 73 0a | useful |effects.|
|000021e0| 61 72 65 0a 0a 20 20 20 | 20 65 62 75 74 74 6f 6e |are.. | ebutton|
|000021f0| 73 2a 43 6f 6d 6d 61 6e | 64 2e 62 6f 72 64 65 72 |s*Comman|d.border|
|00002200| 57 69 64 74 68 0a 20 20 | 20 20 65 62 75 74 74 6f |Width. | ebutto|
|00002210| 6e 73 2a 42 6f 78 2e 6f | 72 69 65 6e 74 61 74 69 |ns*Box.o|rientati|
|00002220| 6f 6e 0a 20 20 20 20 65 | 62 75 74 74 6f 6e 73 2a |on. e|buttons*|
|00002230| 42 6f 78 2e 68 53 70 61 | 63 65 0a 20 20 20 20 65 |Box.hSpa|ce. e|
|00002240| 62 75 74 74 6f 6e 73 2a | 42 6f 78 2e 76 53 70 61 |buttons*|Box.vSpa|
|00002250| 63 65 0a 20 20 20 20 65 | 62 75 74 74 6f 6e 73 2e |ce. e|buttons.|
|00002260| 67 65 6f 6d 65 74 72 79 | 0a 20 20 20 20 65 62 75 |geometry|. ebu|
|00002270| 74 74 6f 6e 73 2a 62 61 | 63 6b 67 72 6f 75 6e 64 |ttons*ba|ckground|
|00002280| 0a 20 20 20 20 65 62 75 | 74 74 6f 6e 73 2a 66 6f |. ebu|ttons*fo|
|00002290| 6e 74 0a 0a 4c 6f 6f 6b | 20 69 6e 20 74 68 65 20 |nt..Look| in the |
|000022a0| 52 65 73 6f 75 72 63 65 | 73 20 66 69 6c 65 20 66 |Resource|s file f|
|000022b0| 6f 72 20 61 6e 20 65 78 | 61 6d 70 6c 65 20 6f 66 |or an ex|ample of|
|000022c0| 20 73 65 74 74 69 6e 67 | 73 20 66 6f 72 20 74 68 | setting|s for th|
|000022d0| 65 73 65 2e 20 4d 79 0a | 70 72 65 66 65 72 65 6e |ese. My.|preferen|
|000022e0| 63 65 20 69 73 20 74 6f | 20 68 61 76 65 20 74 68 |ce is to| have th|
|000022f0| 65 20 65 62 75 74 74 6f | 6e 73 20 77 69 6e 64 6f |e ebutto|ns windo|
|00002300| 77 20 74 61 6b 65 20 75 | 70 20 61 73 20 6c 69 74 |w take u|p as lit|
|00002310| 74 6c 65 20 73 70 61 63 | 65 20 61 73 0a 70 6f 73 |tle spac|e as.pos|
|00002320| 73 69 62 6c 65 2c 20 73 | 6f 20 49 20 75 73 65 20 |sible, s|o I use |
|00002330| 61 20 73 6d 61 6c 6c 20 | 66 6f 6e 74 20 61 6e 64 |a small |font and|
|00002340| 20 6c 65 61 76 65 20 6e | 6f 20 76 65 72 74 69 63 | leave n|o vertic|
|00002350| 61 6c 20 6f 72 20 68 6f | 72 69 7a 6f 6e 74 61 6c |al or ho|rizontal|
|00002360| 0a 73 70 61 63 65 20 62 | 65 74 77 65 65 6e 20 74 |.space b|etween t|
|00002370| 68 65 20 63 6f 6d 6d 61 | 6e 64 20 62 75 74 74 6f |he comma|nd butto|
|00002380| 6e 73 2e 0a 53 48 41 52 | 5f 45 4f 46 0a 66 69 0a |ns..SHAR|_EOF.fi.|
|00002390| 69 66 20 74 65 73 74 20 | 2d 66 20 27 65 62 75 74 |if test |-f 'ebut|
|000023a0| 74 6f 6e 73 2e 31 27 0a | 74 68 65 6e 0a 09 65 63 |tons.1'.|then..ec|
|000023b0| 68 6f 20 73 68 61 72 3a | 20 22 77 69 6c 6c 20 6e |ho shar:| "will n|
|000023c0| 6f 74 20 6f 76 65 72 2d | 77 72 69 74 65 20 65 78 |ot over-|write ex|
|000023d0| 69 73 74 69 6e 67 20 66 | 69 6c 65 20 27 65 62 75 |isting f|ile 'ebu|
|000023e0| 74 74 6f 6e 73 2e 31 27 | 22 0a 65 6c 73 65 0a 63 |ttons.1'|".else.c|
|000023f0| 61 74 20 3c 3c 20 5c 53 | 48 41 52 5f 45 4f 46 20 |at << \S|HAR_EOF |
|00002400| 3e 20 27 65 62 75 74 74 | 6f 6e 73 2e 31 27 0a 2e |> 'ebutt|ons.1'..|
|00002410| 54 48 20 45 42 55 54 54 | 4f 4e 53 20 31 20 22 31 |TH EBUTT|ONS 1 "1|
|00002420| 38 20 4e 6f 76 65 6d 62 | 65 72 20 31 39 39 32 22 |8 Novemb|er 1992"|
|00002430| 0a 2e 53 48 20 4e 41 4d | 45 0a 65 62 75 74 74 6f |..SH NAM|E.ebutto|
|00002440| 6e 73 20 5c 2d 20 70 6f | 70 75 70 20 62 75 74 74 |ns \- po|pup butt|
|00002450| 6f 6e 73 20 66 6f 72 20 | 67 69 76 69 6e 67 20 63 |ons for |giving c|
|00002460| 6f 6d 6d 61 6e 64 73 20 | 74 6f 20 61 6e 20 65 6d |ommands |to an em|
|00002470| 61 63 73 20 73 65 73 73 | 69 6f 6e 2e 0a 2e 53 48 |acs sess|ion...SH|
|00002480| 20 53 59 4e 4f 50 53 49 | 53 0a 2e 42 20 4d 2d 78 | SYNOPSI|S..B M-x|
|00002490| 20 65 62 75 74 74 6f 6e | 73 0a 69 6e 73 69 64 65 | ebutton|s.inside|
|000024a0| 20 65 6d 61 63 73 2c 20 | 6f 72 0a 2e 42 20 28 65 | emacs, |or..B (e|
|000024b0| 62 75 74 74 6f 6e 73 29 | 20 0a 69 6e 20 61 6e 20 |buttons)| .in an |
|000024c0| 65 6d 61 63 73 20 73 74 | 61 72 74 75 70 20 66 69 |emacs st|artup fi|
|000024d0| 6c 65 2e 0a 2e 53 48 20 | 44 45 53 43 52 49 50 54 |le...SH |DESCRIPT|
|000024e0| 49 4f 4e 0a 2e 42 20 45 | 62 75 74 74 6f 6e 73 0a |ION..B E|buttons.|
|000024f0| 70 72 6f 76 69 64 65 73 | 20 61 6e 20 58 20 69 6e |provides| an X in|
|00002500| 74 65 72 66 61 63 65 20 | 74 6f 20 69 73 73 75 65 |terface |to issue|
|00002510| 20 63 6f 6d 6d 61 6e 64 | 73 20 74 6f 20 61 6e 20 | command|s to an |
|00002520| 65 6d 61 63 73 0a 73 65 | 73 73 69 6f 6e 2e 20 20 |emacs.se|ssion. |
|00002530| 49 74 20 61 6c 6c 6f 77 | 73 20 79 6f 75 20 74 6f |It allow|s you to|
|00002540| 20 73 70 65 63 69 66 79 | 20 28 69 6e 20 61 6e 20 | specify| (in an |
|00002550| 58 20 72 65 73 6f 75 72 | 63 65 20 66 69 6c 65 29 |X resour|ce file)|
|00002560| 20 6c 61 62 65 6c 73 20 | 66 6f 72 0a 61 20 73 65 | labels |for.a se|
|00002570| 74 20 6f 66 20 62 75 74 | 74 6f 6e 73 20 61 6e 64 |t of but|tons and|
|00002580| 20 61 20 63 6f 6d 6d 61 | 6e 64 20 66 6f 72 20 65 | a comma|nd for e|
|00002590| 61 63 68 20 74 68 61 74 | 20 77 69 6c 6c 20 62 65 |ach that| will be|
|000025a0| 20 65 78 65 63 75 74 65 | 64 20 77 68 65 6e 20 74 | execute|d when t|
|000025b0| 68 65 0a 63 6f 72 72 65 | 73 70 6f 6e 64 69 6e 67 |he.corre|sponding|
|000025c0| 20 62 75 74 74 6f 6e 20 | 69 73 20 63 6c 69 63 6b | button |is click|
|000025d0| 65 64 20 6f 6e 20 77 69 | 74 68 20 74 68 65 20 6d |ed on wi|th the m|
|000025e0| 6f 75 73 65 2e 20 46 6f | 72 20 69 6e 73 74 61 6e |ouse. Fo|r instan|
|000025f0| 63 65 20 79 6f 75 0a 63 | 61 6e 20 64 65 66 69 6e |ce you.c|an defin|
|00002600| 65 20 62 75 74 74 6f 6e | 73 20 74 6f 20 63 6f 6d |e button|s to com|
|00002610| 70 69 6c 65 2c 20 74 6f | 20 66 69 6e 64 20 74 68 |pile, to| find th|
|00002620| 65 20 6e 65 78 74 20 65 | 72 72 6f 72 2c 20 74 6f |e next e|rror, to|
|00002630| 20 73 61 76 65 0a 62 75 | 66 66 65 72 73 2c 20 74 | save.bu|ffers, t|
|00002640| 6f 20 6d 6f 76 65 20 74 | 6f 20 74 68 65 20 74 6f |o move t|o the to|
|00002650| 70 2f 62 6f 74 74 6f 6d | 20 6f 66 20 74 68 65 20 |p/bottom| of the |
|00002660| 62 75 66 66 65 72 2c 20 | 74 6f 20 65 78 69 74 20 |buffer, |to exit |
|00002670| 65 6d 61 63 73 20 65 74 | 63 2e 0a 0a 54 68 65 20 |emacs et|c...The |
|00002680| 69 64 65 61 20 69 73 20 | 74 68 61 74 20 74 68 69 |idea is |that thi|
|00002690| 73 20 73 68 6f 75 6c 64 | 20 62 65 20 61 20 74 68 |s should| be a th|
|000026a0| 69 6e 20 76 65 72 74 69 | 63 61 6c 20 77 69 6e 64 |in verti|cal wind|
|000026b0| 6f 77 20 74 68 61 74 20 | 73 69 74 73 20 6a 75 73 |ow that |sits jus|
|000026c0| 74 0a 74 6f 20 74 68 65 | 20 73 69 64 65 20 6f 66 |t.to the| side of|
|000026d0| 20 61 6e 20 65 6d 61 63 | 73 20 73 65 73 73 69 6f | an emac|s sessio|
|000026e0| 6e 20 61 6e 64 20 61 6c | 6c 6f 77 73 20 66 6f 72 |n and al|lows for|
|000026f0| 20 66 61 73 74 20 65 78 | 65 63 75 74 69 6f 6e 20 | fast ex|ecution |
|00002700| 6f 66 20 73 6f 6d 65 0a | 74 68 69 6e 67 73 2e 20 |of some.|things. |
|00002710| 49 74 20 69 73 20 6e 6f | 74 20 69 6e 74 65 6e 64 |It is no|t intend|
|00002720| 65 64 20 74 6f 20 72 65 | 70 6c 61 63 65 20 74 68 |ed to re|place th|
|00002730| 65 20 6b 65 79 62 6f 61 | 72 64 21 20 49 74 20 6a |e keyboa|rd! It j|
|00002740| 75 73 74 20 67 69 76 65 | 73 0a 61 6e 6f 74 68 65 |ust give|s.anothe|
|00002750| 72 20 6f 70 74 69 6f 6e | 20 2d 20 69 66 20 79 6f |r option| - if yo|
|00002760| 75 72 20 68 61 6e 64 20 | 69 73 20 61 6c 72 65 61 |ur hand |is alrea|
|00002770| 64 79 20 6f 6e 20 74 68 | 65 20 6d 6f 75 73 65 2c |dy on th|e mouse,|
|00002780| 20 75 73 65 20 0a 2e 42 | 52 20 65 62 75 74 74 6f | use ..B|R ebutto|
|00002790| 6e 73 20 2e 0a 49 66 20 | 6e 6f 74 2c 20 75 73 65 |ns ..If |not, use|
|000027a0| 20 74 68 65 20 6b 65 79 | 62 6f 61 72 64 2e 20 4f | the key|board. O|
|000027b0| 72 20 61 73 20 79 6f 75 | 20 6c 69 6b 65 20 69 74 |r as you| like it|
|000027c0| 2e 20 54 68 65 20 77 69 | 6e 64 6f 77 20 63 61 6e |. The wi|ndow can|
|000027d0| 20 61 6c 73 6f 20 62 65 | 0a 6d 61 64 65 20 68 6f | also be|.made ho|
|000027e0| 72 69 7a 6f 6e 74 61 6c | 20 28 73 65 65 20 62 65 |rizontal| (see be|
|000027f0| 6c 6f 77 29 20 62 75 74 | 20 74 68 65 6e 20 6e 6f |low) but| then no|
|00002800| 74 20 61 73 20 6d 61 6e | 79 20 62 75 74 74 6f 6e |t as man|y button|
|00002810| 73 20 77 69 6c 6c 20 66 | 69 74 20 6f 6e 0a 74 68 |s will f|it on.th|
|00002820| 65 20 73 63 72 65 65 6e | 2e 0a 2e 53 48 20 53 54 |e screen|...SH ST|
|00002830| 41 52 54 55 50 0a 54 68 | 65 20 73 69 6d 70 6c 65 |ARTUP.Th|e simple|
|00002840| 73 74 20 6d 65 74 68 6f | 64 20 69 73 20 74 6f 20 |st metho|d is to |
|00002850| 61 75 74 6f 6d 61 74 69 | 63 61 6c 6c 79 20 73 74 |automati|cally st|
|00002860| 61 72 74 20 0a 2e 42 20 | 65 62 75 74 74 6f 6e 73 |art ..B |ebuttons|
|00002870| 0a 77 68 65 6e 20 79 6f | 75 20 65 6e 74 65 72 20 |.when yo|u enter |
|00002880| 65 6d 61 63 73 2e 20 54 | 68 69 73 20 63 61 6e 20 |emacs. T|his can |
|00002890| 62 65 20 64 6f 6e 65 20 | 62 79 20 61 64 64 69 6e |be done |by addin|
|000028a0| 67 20 74 68 65 20 66 6f | 6c 6c 6f 77 69 6e 67 20 |g the fo|llowing |
|000028b0| 74 6f 20 79 6f 75 72 20 | 2e 65 6d 61 63 73 20 66 |to your |.emacs f|
|000028c0| 69 6c 65 2e 0a 2e 73 70 | 0a 20 20 20 20 28 69 66 |ile...sp|. (if|
|000028d0| 20 28 65 71 75 61 6c 20 | 77 69 6e 64 6f 77 2d 73 | (equal |window-s|
|000028e0| 79 73 74 65 6d 20 27 78 | 29 0a 2e 62 72 0a 20 20 |ystem 'x|)..br. |
|000028f0| 20 20 20 20 20 20 28 70 | 72 6f 67 6e 0a 2e 62 72 | (p|rogn..br|
|00002900| 0a 09 20 20 20 20 20 20 | 28 6c 6f 61 64 20 22 65 |.. |(load "e|
|00002910| 62 75 74 74 6f 6e 73 22 | 29 0a 2e 62 72 0a 09 20 |buttons"|)..br.. |
|00002920| 20 20 20 20 20 28 65 62 | 75 74 74 6f 6e 73 29 29 | (eb|uttons))|
|00002930| 29 0a 2e 53 48 20 22 4b | 45 59 20 42 49 4e 44 49 |)..SH "K|EY BINDI|
|00002940| 4e 47 53 22 0a 49 74 20 | 69 73 20 75 73 65 66 75 |NGS".It |is usefu|
|00002950| 6c 20 74 6f 20 62 69 6e | 64 20 28 65 62 75 74 74 |l to bin|d (ebutt|
|00002960| 6f 6e 73 29 20 74 6f 20 | 73 6f 6d 65 20 6b 65 79 |ons) to |some key|
|00002970| 20 69 6e 73 69 64 65 20 | 65 6d 61 63 73 2e 20 54 | inside |emacs. T|
|00002980| 68 69 73 20 66 75 6e 63 | 74 69 6f 6e 20 0a 73 74 |his func|tion .st|
|00002990| 61 72 74 73 20 74 68 65 | 20 70 72 6f 67 72 61 6d |arts the| program|
|000029a0| 20 69 66 20 69 74 20 69 | 73 20 6e 6f 74 20 61 6c | if it i|s not al|
|000029b0| 72 65 61 64 79 20 72 75 | 6e 6e 69 6e 67 20 0a 61 |ready ru|nning .a|
|000029c0| 6e 64 20 74 6f 67 67 6c | 65 73 20 69 74 73 20 76 |nd toggl|es its v|
|000029d0| 69 73 69 62 69 6c 69 74 | 79 20 6f 74 68 65 72 77 |isibilit|y otherw|
|000029e0| 69 73 65 2e 20 54 68 65 | 20 73 69 6d 70 6c 65 73 |ise. The| simples|
|000029f0| 74 20 77 61 79 20 74 6f | 20 64 6f 20 74 68 69 73 |t way to| do this|
|00002a00| 20 69 73 0a 74 6f 20 70 | 75 74 20 73 6f 6d 65 74 | is.to p|ut somet|
|00002a10| 68 69 6e 67 20 6c 69 6b | 65 0a 2e 73 70 0a 20 20 |hing lik|e..sp. |
|00002a20| 20 20 28 64 65 66 69 6e | 65 2d 6b 65 79 20 67 6c | (defin|e-key gl|
|00002a30| 6f 62 61 6c 2d 6d 61 70 | 20 22 5c 5e 58 74 22 20 |obal-map| "\^Xt" |
|00002a40| 27 65 62 75 74 74 6f 6e | 73 29 0a 2e 73 70 0a 69 |'ebutton|s)..sp.i|
|00002a50| 6e 20 79 6f 75 72 20 2e | 65 6d 61 63 73 20 66 69 |n your .|emacs fi|
|00002a60| 6c 65 2e 20 54 68 69 73 | 20 62 69 6e 64 73 20 74 |le. This| binds t|
|00002a70| 68 65 20 63 6f 6d 6d 61 | 6e 64 20 74 6f 20 74 68 |he comma|nd to th|
|00002a80| 65 20 6b 65 79 73 74 72 | 6f 6b 65 20 63 6f 6e 74 |e keystr|oke cont|
|00002a90| 72 6f 6c 2d 58 20 74 2e | 0a 2e 53 48 20 52 45 53 |rol-X t.|..SH RES|
|00002aa0| 4f 55 52 43 45 53 0a 59 | 6f 75 72 20 72 65 73 6f |OURCES.Y|our reso|
|00002ab0| 75 72 63 65 20 66 69 6c | 65 20 73 68 6f 75 6c 64 |urce fil|e should|
|00002ac0| 20 68 61 76 65 20 70 61 | 69 72 73 20 6f 66 20 6c | have pa|irs of l|
|00002ad0| 69 6e 65 73 20 6c 69 6b | 65 0a 2e 73 70 0a 20 20 |ines lik|e..sp. |
|00002ae0| 20 20 65 62 75 74 74 6f | 6e 73 2e 6c 61 62 65 6c | ebutto|ns.label|
|00002af0| 58 3a 20 20 20 20 20 20 | 20 20 20 6c 61 62 65 6c |X: | label|
|00002b00| 0a 2e 62 72 0a 20 20 20 | 20 65 62 75 74 74 6f 6e |..br. | ebutton|
|00002b10| 73 2e 63 6f 6d 6d 61 6e | 64 58 3a 20 20 20 20 20 |s.comman|dX: |
|00002b20| 20 20 28 65 6d 61 63 73 | 2d 63 6f 6d 6d 61 6e 64 | (emacs|-command|
|00002b30| 29 0a 2e 73 70 0a 77 68 | 65 72 65 20 58 20 69 73 |)..sp.wh|ere X is|
|00002b40| 20 61 6e 79 20 6e 75 6d | 62 65 72 20 66 72 6f 6d | any num|ber from|
|00002b50| 20 30 20 74 6f 20 74 68 | 65 20 6e 75 6d 62 65 72 | 0 to th|e number|
|00002b60| 20 6f 66 20 70 6f 73 73 | 69 62 6c 65 20 62 75 74 | of poss|ible but|
|00002b70| 74 6f 6e 73 20 6d 69 6e | 75 73 0a 6f 6e 65 2e 20 |tons min|us.one. |
|00002b80| 54 68 65 20 75 70 70 65 | 72 20 6c 69 6d 69 74 20 |The uppe|r limit |
|00002b90| 69 73 20 73 65 74 20 69 | 6e 20 74 68 65 20 4d 61 |is set i|n the Ma|
|00002ba0| 6b 65 66 69 6c 65 20 61 | 6e 64 20 69 73 20 35 30 |kefile a|nd is 50|
|00002bb0| 20 69 6e 20 74 68 65 0a | 64 69 73 74 72 69 62 75 | in the.|distribu|
|00002bc0| 74 69 6f 6e 2e 20 4c 61 | 62 65 6c 20 6e 75 6d 62 |tion. La|bel numb|
|00002bd0| 65 72 73 20 6d 61 79 20 | 62 65 20 6f 6d 69 74 74 |ers may |be omitt|
|00002be0| 65 64 20 28 69 2e 65 2e | 20 79 6f 75 20 63 61 6e |ed (i.e.| you can|
|00002bf0| 20 64 65 66 69 6e 65 20 | 6c 61 62 65 6c 73 0a 31 | define |labels.1|
|00002c00| 2c 20 32 20 61 6e 64 20 | 35 2c 20 6f 6d 69 74 74 |, 2 and |5, omitt|
|00002c10| 69 6e 67 20 33 20 61 6e | 64 20 34 29 2e 20 49 66 |ing 3 an|d 4). If|
|00002c20| 20 79 6f 75 20 6f 6e 6c | 79 20 64 65 66 69 6e 65 | you onl|y define|
|00002c30| 20 33 20 62 75 74 74 6f | 6e 73 2c 20 6f 6e 6c 79 | 3 butto|ns, only|
|00002c40| 20 33 0a 77 69 6c 6c 20 | 61 70 70 65 61 72 2e 20 | 3.will |appear. |
|00002c50| 41 63 74 75 61 6c 6c 79 | 20 74 68 69 73 20 69 73 |Actually| this is|
|00002c60| 20 6e 6f 74 20 65 6e 74 | 69 72 65 6c 79 20 74 72 | not ent|irely tr|
|00002c70| 75 65 2c 20 61 6e 20 65 | 78 74 72 61 20 62 75 74 |ue, an e|xtra but|
|00002c80| 74 6f 6e 20 28 74 68 65 | 0a 6c 61 73 74 20 62 75 |ton (the|.last bu|
|00002c90| 74 74 6f 6e 20 69 6e 20 | 74 68 65 20 77 69 6e 64 |tton in |the wind|
|00002ca0| 6f 77 29 20 69 73 20 61 | 64 64 65 64 2e 20 49 74 |ow) is a|dded. It|
|00002cb0| 20 63 61 75 73 65 73 20 | 74 68 65 20 0a 2e 42 20 | causes |the ..B |
|00002cc0| 65 62 75 74 74 6f 6e 73 | 20 0a 70 72 6f 67 72 61 |ebuttons| .progra|
|00002cd0| 6d 20 74 6f 0a 65 78 69 | 74 20 61 6e 64 20 69 73 |m to.exi|t and is|
|00002ce0| 20 28 75 73 75 61 6c 6c | 79 29 20 6c 61 62 65 6c | (usuall|y) label|
|00002cf0| 6c 65 64 20 51 75 69 74 | 2e 20 20 59 6f 75 20 63 |led Quit|. You c|
|00002d00| 61 6e 20 63 68 61 6e 67 | 65 20 74 68 65 20 6e 61 |an chang|e the na|
|00002d10| 6d 65 20 74 68 61 74 0a | 61 70 70 65 61 72 73 20 |me that.|appears |
|00002d20| 6f 6e 20 74 68 69 73 20 | 62 75 74 74 6f 6e 20 28 |on this |button (|
|00002d30| 69 66 20 79 6f 75 20 77 | 69 73 68 29 20 77 69 74 |if you w|ish) wit|
|00002d40| 68 3a 0a 2e 73 70 0a 20 | 20 20 20 65 62 75 74 74 |h:..sp. | ebutt|
|00002d50| 6f 6e 73 2a 51 75 69 74 | 2e 6c 61 62 65 6c 3a 20 |ons*Quit|.label: |
|00002d60| 79 6f 75 72 2d 6c 61 62 | 65 6c 0a 2e 73 70 0a 69 |your-lab|el..sp.i|
|00002d70| 6e 20 79 6f 75 72 20 72 | 65 73 6f 75 72 63 65 20 |n your r|esource |
|00002d80| 66 69 6c 65 2e 20 4f 74 | 68 65 72 20 72 65 73 6f |file. Ot|her reso|
|00002d90| 75 72 63 65 73 20 74 68 | 61 74 20 77 69 6c 6c 20 |urces th|at will |
|00002da0| 68 61 76 65 20 75 73 65 | 66 75 6c 20 65 66 66 65 |have use|ful effe|
|00002db0| 63 74 73 0a 61 72 65 0a | 2e 73 70 0a 20 20 20 20 |cts.are.|.sp. |
|00002dc0| 65 62 75 74 74 6f 6e 73 | 2a 43 6f 6d 6d 61 6e 64 |ebuttons|*Command|
|00002dd0| 2e 62 6f 72 64 65 72 57 | 69 64 74 68 0a 20 20 20 |.borderW|idth. |
|00002de0| 20 65 62 75 74 74 6f 6e | 73 2a 42 6f 78 2e 6f 72 | ebutton|s*Box.or|
|00002df0| 69 65 6e 74 61 74 69 6f | 6e 0a 20 20 20 20 65 62 |ientatio|n. eb|
|00002e00| 75 74 74 6f 6e 73 2a 42 | 6f 78 2e 68 53 70 61 63 |uttons*B|ox.hSpac|
|00002e10| 65 0a 20 20 20 20 65 62 | 75 74 74 6f 6e 73 2a 42 |e. eb|uttons*B|
|00002e20| 6f 78 2e 76 53 70 61 63 | 65 0a 20 20 20 20 65 62 |ox.vSpac|e. eb|
|00002e30| 75 74 74 6f 6e 73 2e 67 | 65 6f 6d 65 74 72 79 0a |uttons.g|eometry.|
|00002e40| 20 20 20 20 65 62 75 74 | 74 6f 6e 73 2a 62 61 63 | ebut|tons*bac|
|00002e50| 6b 67 72 6f 75 6e 64 0a | 20 20 20 20 65 62 75 74 |kground.| ebut|
|00002e60| 74 6f 6e 73 2a 66 6f 6e | 74 0a 2e 73 70 0a 54 68 |tons*fon|t..sp.Th|
|00002e70| 65 20 6f 72 69 65 6e 74 | 61 74 69 6f 6e 20 72 65 |e orient|ation re|
|00002e80| 73 6f 75 72 63 65 20 63 | 61 6e 20 62 65 20 73 65 |source c|an be se|
|00002e90| 74 20 74 6f 20 22 68 6f | 72 69 7a 6f 6e 74 61 6c |t to "ho|rizontal|
|00002ea0| 22 20 6f 72 20 22 76 65 | 72 74 69 63 61 6c 22 20 |" or "ve|rtical" |
|00002eb0| 28 74 68 65 20 64 65 66 | 61 75 6c 74 29 2e 0a 4c |(the def|ault)..L|
|00002ec0| 6f 6f 6b 20 69 6e 20 74 | 68 65 20 52 65 73 6f 75 |ook in t|he Resou|
|00002ed0| 72 63 65 73 20 66 69 6c | 65 20 69 6e 20 74 68 65 |rces fil|e in the|
|00002ee0| 20 64 69 73 74 72 69 62 | 75 74 69 6f 6e 20 66 6f | distrib|ution fo|
|00002ef0| 72 20 61 6e 20 65 78 61 | 6d 70 6c 65 20 6f 66 20 |r an exa|mple of |
|00002f00| 73 65 74 74 69 6e 67 73 | 20 66 6f 72 20 74 68 65 |settings| for the|
|00002f10| 73 65 0a 72 65 73 6f 75 | 72 63 65 73 2e 20 4d 79 |se.resou|rces. My|
|00002f20| 20 70 72 65 66 65 72 65 | 6e 63 65 20 69 73 20 74 | prefere|nce is t|
|00002f30| 6f 20 68 61 76 65 20 74 | 68 65 20 0a 2e 42 20 65 |o have t|he ..B e|
|00002f40| 62 75 74 74 6f 6e 73 20 | 0a 77 69 6e 64 6f 77 20 |buttons |.window |
|00002f50| 74 61 6b 65 20 75 70 20 | 61 73 20 6c 69 74 74 6c |take up |as littl|
|00002f60| 65 20 73 70 61 63 65 20 | 61 73 0a 70 6f 73 73 69 |e space |as.possi|
|00002f70| 62 6c 65 2c 20 73 6f 20 | 49 20 75 73 65 20 61 20 |ble, so |I use a |
|00002f80| 73 6d 61 6c 6c 20 66 6f | 6e 74 20 61 6e 64 20 6c |small fo|nt and l|
|00002f90| 65 61 76 65 20 6e 6f 20 | 76 65 72 74 69 63 61 6c |eave no |vertical|
|00002fa0| 20 6f 72 20 68 6f 72 69 | 7a 6f 6e 74 61 6c 0a 73 | or hori|zontal.s|
|00002fb0| 70 61 63 65 20 62 65 74 | 77 65 65 6e 20 74 68 65 |pace bet|ween the|
|00002fc0| 20 63 6f 6d 6d 61 6e 64 | 20 62 75 74 74 6f 6e 73 | command| buttons|
|00002fd0| 2e 0a 2e 53 48 20 22 53 | 45 45 20 41 4c 53 4f 22 |...SH "S|EE ALSO"|
|00002fe0| 0a 54 68 65 20 52 45 41 | 44 4d 45 20 69 6e 20 74 |.The REA|DME in t|
|00002ff0| 68 65 20 64 69 73 74 72 | 69 62 75 74 69 6f 6e 20 |he distr|ibution |
|00003000| 61 6e 64 0a 2e 42 20 54 | 61 67 6c 69 73 74 20 0a |and..B T|aglist .|
|00003010| 62 79 20 42 72 61 64 20 | 4d 65 61 72 73 20 28 62 |by Brad |Mears (b|
|00003020| 6d 65 61 72 73 40 64 65 | 6c 74 61 68 70 2e 6a 73 |mears@de|ltahp.js|
|00003030| 63 2e 6e 61 73 61 2e 67 | 6f 76 29 20 66 72 6f 6d |c.nasa.g|ov) from|
|00003040| 20 77 68 69 63 68 20 74 | 68 69 73 20 70 72 6f 67 | which t|his prog|
|00003050| 72 61 6d 0a 77 61 73 20 | 64 69 73 74 69 6c 6c 65 |ram.was |distille|
|00003060| 64 2e 0a 2e 53 48 20 41 | 55 54 48 4f 52 0a 54 65 |d...SH A|UTHOR.Te|
|00003070| 72 72 79 20 4a 6f 6e 65 | 73 20 28 74 65 72 72 79 |rry Jone|s (terry|
|00003080| 40 73 61 6e 74 61 66 65 | 2e 65 64 75 29 0a 2e 62 |@santafe|.edu)..b|
|00003090| 72 0a 53 61 6e 74 61 20 | 46 65 20 49 6e 73 74 69 |r.Santa |Fe Insti|
|000030a0| 74 75 74 65 0a 2e 62 72 | 0a 4e 6f 76 65 6d 62 65 |tute..br|.Novembe|
|000030b0| 72 20 31 38 2c 20 31 39 | 39 32 2e 0a 53 48 41 52 |r 18, 19|92..SHAR|
|000030c0| 5f 45 4f 46 0a 66 69 0a | 69 66 20 74 65 73 74 20 |_EOF.fi.|if test |
|000030d0| 2d 66 20 27 65 62 75 74 | 74 6f 6e 73 2e 63 27 0a |-f 'ebut|tons.c'.|
|000030e0| 74 68 65 6e 0a 09 65 63 | 68 6f 20 73 68 61 72 3a |then..ec|ho shar:|
|000030f0| 20 22 77 69 6c 6c 20 6e | 6f 74 20 6f 76 65 72 2d | "will n|ot over-|
|00003100| 77 72 69 74 65 20 65 78 | 69 73 74 69 6e 67 20 66 |write ex|isting f|
|00003110| 69 6c 65 20 27 65 62 75 | 74 74 6f 6e 73 2e 63 27 |ile 'ebu|ttons.c'|
|00003120| 22 0a 65 6c 73 65 0a 63 | 61 74 20 3c 3c 20 5c 53 |".else.c|at << \S|
|00003130| 48 41 52 5f 45 4f 46 20 | 3e 20 27 65 62 75 74 74 |HAR_EOF |> 'ebutt|
|00003140| 6f 6e 73 2e 63 27 0a 2f | 2a 0a 20 2a 20 58 20 69 |ons.c'./|*. * X i|
|00003150| 6e 74 65 72 66 61 63 65 | 20 74 6f 20 45 6d 61 63 |nterface| to Emac|
|00003160| 73 2e 0a 20 2a 20 43 6f | 70 79 72 69 67 68 74 20 |s.. * Co|pyright |
|00003170| 28 43 29 20 31 39 39 32 | 20 20 54 65 72 72 79 20 |(C) 1992| Terry |
|00003180| 4a 6f 6e 65 73 0a 20 2a | 20 28 42 61 73 65 64 20 |Jones. *| (Based |
|00003190| 28 68 65 61 76 69 6c 79 | 29 20 6f 6e 20 74 68 65 |(heavily|) on the|
|000031a0| 20 74 61 67 6c 69 73 74 | 20 66 61 63 69 6c 69 74 | taglist| facilit|
|000031b0| 79 20 77 72 69 74 74 65 | 6e 20 62 79 20 42 72 61 |y writte|n by Bra|
|000031c0| 64 20 4d 65 61 72 73 29 | 0a 20 2a 0a 20 2a 20 54 |d Mears)|. *. * T|
|000031d0| 68 69 73 20 66 69 6c 65 | 20 69 73 20 70 61 72 74 |his file| is part|
|000031e0| 20 6f 66 20 65 62 75 74 | 74 6f 6e 73 0a 20 2a 0a | of ebut|tons. *.|
|000031f0| 20 2a 20 45 62 75 74 74 | 6f 6e 73 20 69 73 20 66 | * Ebutt|ons is f|
|00003200| 72 65 65 20 73 6f 66 74 | 77 61 72 65 3b 20 79 6f |ree soft|ware; yo|
|00003210| 75 20 63 61 6e 20 72 65 | 64 69 73 74 72 69 62 75 |u can re|distribu|
|00003220| 74 65 20 69 74 20 61 6e | 64 2f 6f 72 20 6d 6f 64 |te it an|d/or mod|
|00003230| 69 66 79 0a 20 2a 20 69 | 74 20 75 6e 64 65 72 20 |ify. * i|t under |
|00003240| 74 68 65 20 74 65 72 6d | 73 20 6f 66 20 74 68 65 |the term|s of the|
|00003250| 20 47 4e 55 20 47 65 6e | 65 72 61 6c 20 50 75 62 | GNU Gen|eral Pub|
|00003260| 6c 69 63 20 4c 69 63 65 | 6e 73 65 20 61 73 20 70 |lic Lice|nse as p|
|00003270| 75 62 6c 69 73 68 65 64 | 20 62 79 0a 20 2a 20 74 |ublished| by. * t|
|00003280| 68 65 20 46 72 65 65 20 | 53 6f 66 74 77 61 72 65 |he Free |Software|
|00003290| 20 46 6f 75 6e 64 61 74 | 69 6f 6e 3b 20 65 69 74 | Foundat|ion; eit|
|000032a0| 68 65 72 20 76 65 72 73 | 69 6f 6e 20 31 2c 20 6f |her vers|ion 1, o|
|000032b0| 72 20 28 61 74 20 79 6f | 75 72 20 6f 70 74 69 6f |r (at yo|ur optio|
|000032c0| 6e 29 0a 20 2a 20 61 6e | 79 20 6c 61 74 65 72 20 |n). * an|y later |
|000032d0| 76 65 72 73 69 6f 6e 2e | 0a 20 2a 0a 20 2a 20 54 |version.|. *. * T|
|000032e0| 68 65 20 47 4e 55 20 47 | 65 6e 65 72 61 6c 20 50 |he GNU G|eneral P|
|000032f0| 75 62 6c 69 63 20 4c 69 | 63 65 6e 73 65 20 63 61 |ublic Li|cense ca|
|00003300| 6e 20 62 65 20 6f 62 74 | 61 69 6e 65 64 20 76 69 |n be obt|ained vi|
|00003310| 61 20 61 6e 6f 6e 79 6d | 6f 75 73 20 66 74 70 20 |a anonym|ous ftp |
|00003320| 66 72 6f 6d 0a 20 2a 20 | 70 72 65 70 2e 61 69 2e |from. * |prep.ai.|
|00003330| 6d 69 74 2e 65 64 75 20 | 61 73 20 70 75 62 2f 67 |mit.edu |as pub/g|
|00003340| 6e 75 2f 43 4f 50 59 49 | 4e 47 20 6f 72 20 70 75 |nu/COPYI|NG or pu|
|00003350| 62 2f 67 6e 75 2f 43 4f | 50 59 49 4e 47 2d 32 2e |b/gnu/CO|PYING-2.|
|00003360| 0a 20 2a 0a 20 2a 20 45 | 62 75 74 74 6f 6e 73 20 |. *. * E|buttons |
|00003370| 69 73 20 64 69 73 74 72 | 69 62 75 74 65 64 20 69 |is distr|ibuted i|
|00003380| 6e 20 74 68 65 20 68 6f | 70 65 20 74 68 61 74 20 |n the ho|pe that |
|00003390| 69 74 20 77 69 6c 6c 20 | 62 65 20 75 73 65 66 75 |it will |be usefu|
|000033a0| 6c 2c 0a 20 2a 20 62 75 | 74 20 57 49 54 48 4f 55 |l,. * bu|t WITHOU|
|000033b0| 54 20 41 4e 59 20 57 41 | 52 52 41 4e 54 59 3b 20 |T ANY WA|RRANTY; |
|000033c0| 77 69 74 68 6f 75 74 20 | 65 76 65 6e 20 74 68 65 |without |even the|
|000033d0| 20 69 6d 70 6c 69 65 64 | 20 77 61 72 72 61 6e 74 | implied| warrant|
|000033e0| 79 20 6f 66 0a 20 2a 20 | 4d 45 52 43 48 41 4e 54 |y of. * |MERCHANT|
|000033f0| 41 42 49 4c 49 54 59 20 | 6f 72 20 46 49 54 4e 45 |ABILITY |or FITNE|
|00003400| 53 53 20 46 4f 52 20 41 | 20 50 41 52 54 49 43 55 |SS FOR A| PARTICU|
|00003410| 4c 41 52 20 50 55 52 50 | 4f 53 45 2e 20 20 53 65 |LAR PURP|OSE. Se|
|00003420| 65 20 74 68 65 0a 20 2a | 20 47 4e 55 20 47 65 6e |e the. *| GNU Gen|
|00003430| 65 72 61 6c 20 50 75 62 | 6c 69 63 20 4c 69 63 65 |eral Pub|lic Lice|
|00003440| 6e 73 65 20 66 6f 72 20 | 6d 6f 72 65 20 64 65 74 |nse for |more det|
|00003450| 61 69 6c 73 2e 0a 20 2a | 2f 0a 0a 2f 2a 0a 20 2a |ails.. *|/../*. *|
|00003460| 20 54 68 69 73 20 70 72 | 6f 76 69 64 65 73 20 61 | This pr|ovides a|
|00003470| 20 70 6f 69 6e 74 2d 61 | 6e 64 2d 63 6c 69 63 6b | point-a|nd-click|
|00003480| 20 63 6f 6d 6d 61 6e 64 | 20 69 6e 74 65 72 66 61 | command| interfa|
|00003490| 63 65 20 74 6f 20 61 6e | 20 0a 20 2a 20 65 6d 61 |ce to an| . * ema|
|000034a0| 63 73 20 73 65 73 73 69 | 6f 6e 2e 20 20 54 68 69 |cs sessi|on. Thi|
|000034b0| 73 20 77 6f 6e 27 74 20 | 62 65 20 6d 75 63 68 20 |s won't |be much |
|000034c0| 75 73 65 20 77 69 74 68 | 6f 75 74 20 65 62 75 74 |use with|out ebut|
|000034d0| 74 6f 6e 73 2e 65 6c 2e | 0a 20 2a 20 53 65 65 20 |tons.el.|. * See |
|000034e0| 74 68 65 20 52 45 41 44 | 4d 45 20 66 6f 72 20 64 |the READ|ME for d|
|000034f0| 65 74 61 69 6c 73 20 6f | 6e 20 75 73 65 2e 0a 20 |etails o|n use.. |
|00003500| 2a 2f 0a 0a 23 69 6e 63 | 6c 75 64 65 20 3c 73 74 |*/..#inc|lude <st|
|00003510| 64 69 6f 2e 68 3e 0a 0a | 23 69 6e 63 6c 75 64 65 |dio.h>..|#include|
|00003520| 20 3c 58 31 31 2f 49 6e | 74 72 69 6e 73 69 63 2e | <X11/In|trinsic.|
|00003530| 68 3e 0a 23 69 6e 63 6c | 75 64 65 20 3c 58 31 31 |h>.#incl|ude <X11|
|00003540| 2f 53 74 72 69 6e 67 44 | 65 66 73 2e 68 3e 0a 23 |/StringD|efs.h>.#|
|00003550| 69 6e 63 6c 75 64 65 20 | 3c 58 31 31 2f 53 68 65 |include |<X11/She|
|00003560| 6c 6c 2e 68 3e 0a 0a 23 | 69 66 64 65 66 20 48 41 |ll.h>..#|ifdef HA|
|00003570| 56 45 5f 58 41 57 33 44 | 0a 23 69 6e 63 6c 75 64 |VE_XAW3D|.#includ|
|00003580| 65 20 3c 58 31 31 2f 58 | 61 77 33 64 2f 42 6f 78 |e <X11/X|aw3d/Box|
|00003590| 2e 68 3e 0a 23 69 6e 63 | 6c 75 64 65 20 3c 58 31 |.h>.#inc|lude <X1|
|000035a0| 31 2f 58 61 77 33 64 2f | 43 6f 6d 6d 61 6e 64 2e |1/Xaw3d/|Command.|
|000035b0| 68 3e 0a 23 65 6c 73 65 | 0a 23 69 6e 63 6c 75 64 |h>.#else|.#includ|
|000035c0| 65 20 3c 58 31 31 2f 58 | 61 77 33 64 2f 42 6f 78 |e <X11/X|aw3d/Box|
|000035d0| 2e 68 3e 0a 23 69 6e 63 | 6c 75 64 65 20 3c 58 31 |.h>.#inc|lude <X1|
|000035e0| 31 2f 58 61 77 33 64 2f | 43 6f 6d 6d 61 6e 64 2e |1/Xaw3d/|Command.|
|000035f0| 68 3e 0a 23 65 6e 64 69 | 66 0a 0a 73 74 61 74 69 |h>.#endi|f..stati|
|00003600| 63 20 76 6f 69 64 20 63 | 72 65 61 74 65 5f 62 75 |c void c|reate_bu|
|00003610| 74 74 6f 6e 73 28 29 3b | 0a 73 74 61 74 69 63 20 |ttons();|.static |
|00003620| 76 6f 69 64 20 62 75 74 | 74 6f 6e 5f 70 72 65 73 |void but|ton_pres|
|00003630| 73 28 29 3b 0a 76 6f 69 | 64 20 74 6f 67 67 6c 65 |s();.voi|d toggle|
|00003640| 5f 76 69 73 69 62 69 6c | 69 74 79 28 29 3b 0a 0a |_visibil|ity();..|
|00003650| 74 79 70 65 64 65 66 20 | 73 74 72 75 63 74 20 7b |typedef |struct {|
|00003660| 0a 20 20 20 20 53 74 72 | 69 6e 67 20 6c 61 62 65 |. Str|ing labe|
|00003670| 6c 73 5b 4d 41 58 5f 42 | 55 54 54 4f 4e 53 5d 3b |ls[MAX_B|UTTONS];|
|00003680| 0a 20 20 20 20 53 74 72 | 69 6e 67 20 63 6f 6d 6d |. Str|ing comm|
|00003690| 61 6e 64 73 5b 4d 41 58 | 5f 42 55 54 54 4f 4e 53 |ands[MAX|_BUTTONS|
|000036a0| 5d 3b 0a 7d 20 41 70 70 | 52 65 73 6f 75 72 63 65 |];.} App|Resource|
|000036b0| 73 3b 0a 0a 73 74 61 74 | 69 63 20 41 70 70 52 65 |s;..stat|ic AppRe|
|000036c0| 73 6f 75 72 63 65 73 20 | 61 70 70 52 65 73 6f 75 |sources |appResou|
|000036d0| 72 63 65 73 3b 0a 73 74 | 61 74 69 63 20 57 69 64 |rces;.st|atic Wid|
|000036e0| 67 65 74 20 74 6f 70 6c | 65 76 65 6c 3b 20 20 20 |get topl|evel; |
|000036f0| 20 20 20 20 20 20 20 20 | 20 0a 0a 23 69 6e 63 6c | | ..#incl|
|00003700| 75 64 65 20 22 65 62 75 | 74 74 6f 6e 73 2e 68 22 |ude "ebu|ttons.h"|
|00003710| 0a 0a 69 6e 74 20 0a 6d | 61 69 6e 28 61 72 67 63 |..int .m|ain(argc|
|00003720| 2c 20 61 72 67 76 29 0a | 69 6e 74 20 61 72 67 63 |, argv).|int argc|
|00003730| 3b 0a 63 68 61 72 20 2a | 2a 61 72 67 76 3b 0a 7b |;.char *|*argv;.{|
|00003740| 0a 20 20 20 58 74 41 70 | 70 43 6f 6e 74 65 78 74 |. XtAp|pContext|
|00003750| 20 61 70 70 43 6f 6e 74 | 65 78 74 3b 0a 0a 20 20 | appCont|ext;.. |
|00003760| 20 74 6f 70 6c 65 76 65 | 6c 20 3d 20 58 74 41 70 | topleve|l = XtAp|
|00003770| 70 49 6e 69 74 69 61 6c | 69 7a 65 28 26 61 70 70 |pInitial|ize(&app|
|00003780| 43 6f 6e 74 65 78 74 2c | 20 22 65 62 75 74 74 6f |Context,| "ebutto|
|00003790| 6e 73 22 2c 20 4e 55 4c | 4c 2c 20 30 2c 20 26 61 |ns", NUL|L, 0, &a|
|000037a0| 72 67 63 2c 20 61 72 67 | 76 2c 20 4e 55 4c 4c 2c |rgc, arg|v, NULL,|
|000037b0| 20 4e 55 4c 4c 2c 20 30 | 29 3b 0a 20 20 20 58 74 | NULL, 0|);. Xt|
|000037c0| 47 65 74 41 70 70 6c 69 | 63 61 74 69 6f 6e 52 65 |GetAppli|cationRe|
|000037d0| 73 6f 75 72 63 65 73 28 | 74 6f 70 6c 65 76 65 6c |sources(|toplevel|
|000037e0| 2c 20 28 58 74 50 6f 69 | 6e 74 65 72 29 26 61 70 |, (XtPoi|nter)&ap|
|000037f0| 70 52 65 73 6f 75 72 63 | 65 73 2c 20 72 65 73 6f |pResourc|es, reso|
|00003800| 75 72 63 65 73 2c 20 58 | 74 4e 75 6d 62 65 72 28 |urces, X|tNumber(|
|00003810| 72 65 73 6f 75 72 63 65 | 73 29 2c 20 4e 55 4c 4c |resource|s), NULL|
|00003820| 2c 20 30 29 3b 0a 20 20 | 20 63 72 65 61 74 65 5f |, 0);. | create_|
|00003830| 62 75 74 74 6f 6e 73 28 | 74 6f 70 6c 65 76 65 6c |buttons(|toplevel|
|00003840| 29 3b 0a 20 20 20 58 74 | 41 70 70 41 64 64 49 6e |);. Xt|AppAddIn|
|00003850| 70 75 74 28 61 70 70 43 | 6f 6e 74 65 78 74 2c 20 |put(appC|ontext, |
|00003860| 66 69 6c 65 6e 6f 28 73 | 74 64 69 6e 29 2c 20 58 |fileno(s|tdin), X|
|00003870| 74 49 6e 70 75 74 52 65 | 61 64 4d 61 73 6b 2c 20 |tInputRe|adMask, |
|00003880| 74 6f 67 67 6c 65 5f 76 | 69 73 69 62 69 6c 69 74 |toggle_v|isibilit|
|00003890| 79 2c 20 4e 55 4c 4c 29 | 3b 0a 20 20 20 58 74 52 |y, NULL)|;. XtR|
|000038a0| 65 61 6c 69 7a 65 57 69 | 64 67 65 74 28 74 6f 70 |ealizeWi|dget(top|
|000038b0| 6c 65 76 65 6c 29 3b 0a | 20 20 20 58 74 41 70 70 |level);.| XtApp|
|000038c0| 4d 61 69 6e 4c 6f 6f 70 | 28 61 70 70 43 6f 6e 74 |MainLoop|(appCont|
|000038d0| 65 78 74 29 3b 0a 20 20 | 20 72 65 74 75 72 6e 20 |ext);. | return |
|000038e0| 30 3b 0a 7d 0a 0a 0a 2f | 2a 0a 20 2a 20 43 61 6c |0;.}.../|*. * Cal|
|000038f0| 6c 62 61 63 6b 20 66 6f | 72 20 74 68 65 20 63 6f |lback fo|r the co|
|00003900| 6e 66 69 67 75 72 61 62 | 6c 65 20 63 6f 6d 6d 61 |nfigurab|le comma|
|00003910| 6e 64 20 62 75 74 74 6f | 6e 73 2e 20 20 54 68 65 |nd butto|ns. The|
|00003920| 20 71 75 69 74 20 62 75 | 74 74 6f 6e 0a 20 2a 20 | quit bu|tton. * |
|00003930| 68 61 73 20 6e 6f 20 61 | 73 73 6f 63 69 61 74 65 |has no a|ssociate|
|00003940| 64 20 63 6f 6d 6d 61 6e | 64 2e 0a 20 2a 2f 0a 73 |d comman|d.. */.s|
|00003950| 74 61 74 69 63 20 76 6f | 69 64 20 0a 62 75 74 74 |tatic vo|id .butt|
|00003960| 6f 6e 5f 70 72 65 73 73 | 28 77 2c 20 63 6f 6d 6d |on_press|(w, comm|
|00003970| 61 6e 64 2c 20 64 75 6d | 6d 79 29 0a 57 69 64 67 |and, dum|my).Widg|
|00003980| 65 74 20 20 77 3b 0a 58 | 74 50 6f 69 6e 74 65 72 |et w;.X|tPointer|
|00003990| 20 63 6f 6d 6d 61 6e 64 | 3b 20 0a 58 74 50 6f 69 | command|; .XtPoi|
|000039a0| 6e 74 65 72 20 64 75 6d | 6d 79 3b 0a 7b 0a 20 20 |nter dum|my;.{. |
|000039b0| 20 69 66 20 28 21 63 6f | 6d 6d 61 6e 64 29 7b 0a | if (!co|mmand){.|
|000039c0| 20 20 20 20 20 20 65 78 | 69 74 28 30 29 3b 0a 20 | ex|it(0);. |
|000039d0| 20 7d 0a 0a 20 20 20 70 | 72 69 6e 74 66 28 22 25 | }.. p|rintf("%|
|000039e0| 73 22 2c 20 28 53 74 72 | 69 6e 67 29 63 6f 6d 6d |s", (Str|ing)comm|
|000039f0| 61 6e 64 29 3b 0a 20 20 | 20 66 66 6c 75 73 68 28 |and);. | fflush(|
|00003a00| 73 74 64 6f 75 74 29 3b | 0a 20 20 20 72 65 74 75 |stdout);|. retu|
|00003a10| 72 6e 3b 0a 7d 0a 0a 0a | 73 74 61 74 69 63 20 76 |rn;.}...|static v|
|00003a20| 6f 69 64 20 0a 63 72 65 | 61 74 65 5f 62 75 74 74 |oid .cre|ate_butt|
|00003a30| 6f 6e 73 28 70 61 72 65 | 6e 74 29 0a 57 69 64 67 |ons(pare|nt).Widg|
|00003a40| 65 74 20 70 61 72 65 6e | 74 3b 0a 7b 0a 20 20 20 |et paren|t;.{. |
|00003a50| 20 57 69 64 67 65 74 20 | 63 6d 64 73 5b 4d 41 58 | Widget |cmds[MAX|
|00003a60| 5f 42 55 54 54 4f 4e 53 | 5d 3b 0a 20 20 20 20 57 |_BUTTONS|];. W|
|00003a70| 69 64 67 65 74 20 63 6d | 64 62 6f 78 3b 20 20 20 |idget cm|dbox; |
|00003a80| 20 20 20 20 20 20 20 20 | 20 20 20 0a 20 20 20 20 | | . |
|00003a90| 57 69 64 67 65 74 20 71 | 75 69 74 3b 0a 20 20 20 |Widget q|uit;. |
|00003aa0| 20 69 6e 74 20 69 3b 0a | 20 20 20 20 44 69 6d 65 | int i;.| Dime|
|00003ab0| 6e 73 69 6f 6e 20 77 69 | 64 74 68 3b 0a 20 20 20 |nsion wi|dth;. |
|00003ac0| 20 44 69 6d 65 6e 73 69 | 6f 6e 20 6d 61 78 5f 77 | Dimensi|on max_w|
|00003ad0| 69 64 74 68 20 3d 20 30 | 3b 0a 20 20 20 20 0a 20 |idth = 0|;. . |
|00003ae0| 20 20 20 63 6d 64 62 6f | 78 20 3d 20 58 74 43 72 | cmdbo|x = XtCr|
|00003af0| 65 61 74 65 4d 61 6e 61 | 67 65 64 57 69 64 67 65 |eateMana|gedWidge|
|00003b00| 74 28 22 63 6d 64 62 6f | 78 22 2c 20 62 6f 78 57 |t("cmdbo|x", boxW|
|00003b10| 69 64 67 65 74 43 6c 61 | 73 73 2c 20 70 61 72 65 |idgetCla|ss, pare|
|00003b20| 6e 74 2c 20 4e 55 4c 4c | 2c 20 30 29 3b 0a 20 20 |nt, NULL|, 0);. |
|00003b30| 20 20 0a 20 20 20 20 66 | 6f 72 20 28 69 20 3d 20 | . f|or (i = |
|00003b40| 30 3b 20 69 20 3c 20 4d | 41 58 5f 42 55 54 54 4f |0; i < M|AX_BUTTO|
|00003b50| 4e 53 3b 20 69 2b 2b 29 | 20 7b 0a 09 69 66 20 28 |NS; i++)| {..if (|
|00003b60| 61 70 70 52 65 73 6f 75 | 72 63 65 73 2e 6c 61 62 |appResou|rces.lab|
|00003b70| 65 6c 73 5b 69 5d 20 26 | 26 20 61 70 70 52 65 73 |els[i] &|& appRes|
|00003b80| 6f 75 72 63 65 73 2e 63 | 6f 6d 6d 61 6e 64 73 5b |ources.c|ommands[|
|00003b90| 69 5d 29 7b 0a 09 20 20 | 20 20 63 6d 64 73 5b 69 |i]){.. | cmds[i|
|00003ba0| 5d 20 3d 20 58 74 43 72 | 65 61 74 65 4d 61 6e 61 |] = XtCr|eateMana|
|00003bb0| 67 65 64 57 69 64 67 65 | 74 28 61 70 70 52 65 73 |gedWidge|t(appRes|
|00003bc0| 6f 75 72 63 65 73 2e 6c | 61 62 65 6c 73 5b 69 5d |ources.l|abels[i]|
|00003bd0| 2c 20 63 6f 6d 6d 61 6e | 64 57 69 64 67 65 74 43 |, comman|dWidgetC|
|00003be0| 6c 61 73 73 2c 20 63 6d | 64 62 6f 78 2c 20 4e 55 |lass, cm|dbox, NU|
|00003bf0| 4c 4c 2c 20 30 29 3b 0a | 09 20 20 20 20 58 74 41 |LL, 0);.|. XtA|
|00003c00| 64 64 43 61 6c 6c 62 61 | 63 6b 28 63 6d 64 73 5b |ddCallba|ck(cmds[|
|00003c10| 69 5d 2c 20 58 74 4e 63 | 61 6c 6c 62 61 63 6b 2c |i], XtNc|allback,|
|00003c20| 20 62 75 74 74 6f 6e 5f | 70 72 65 73 73 2c 20 28 | button_|press, (|
|00003c30| 58 74 50 6f 69 6e 74 65 | 72 29 61 70 70 52 65 73 |XtPointe|r)appRes|
|00003c40| 6f 75 72 63 65 73 2e 63 | 6f 6d 6d 61 6e 64 73 5b |ources.c|ommands[|
|00003c50| 69 5d 29 3b 0a 09 0a 09 | 20 20 20 20 58 74 56 61 |i]);....| XtVa|
|00003c60| 47 65 74 56 61 6c 75 65 | 73 28 63 6d 64 73 5b 69 |GetValue|s(cmds[i|
|00003c70| 5d 2c 20 58 74 4e 77 69 | 64 74 68 2c 20 26 77 69 |], XtNwi|dth, &wi|
|00003c80| 64 74 68 2c 20 4e 55 4c | 4c 29 3b 0a 09 20 20 20 |dth, NUL|L);.. |
|00003c90| 20 0a 09 20 20 20 20 69 | 66 20 28 6d 61 78 5f 77 | .. i|f (max_w|
|00003ca0| 69 64 74 68 20 3c 20 77 | 69 64 74 68 29 7b 0a 09 |idth < w|idth){..|
|00003cb0| 09 6d 61 78 5f 77 69 64 | 74 68 20 3d 20 77 69 64 |.max_wid|th = wid|
|00003cc0| 74 68 3b 0a 09 20 20 20 | 20 7d 0a 09 7d 0a 20 20 |th;.. | }..}. |
|00003cd0| 20 20 7d 0a 20 20 20 20 | 0a 20 20 20 20 71 75 69 | }. |. qui|
|00003ce0| 74 20 3d 20 58 74 43 72 | 65 61 74 65 4d 61 6e 61 |t = XtCr|eateMana|
|00003cf0| 67 65 64 57 69 64 67 65 | 74 28 22 51 75 69 74 22 |gedWidge|t("Quit"|
|00003d00| 2c 20 63 6f 6d 6d 61 6e | 64 57 69 64 67 65 74 43 |, comman|dWidgetC|
|00003d10| 6c 61 73 73 2c 20 63 6d | 64 62 6f 78 2c 20 4e 55 |lass, cm|dbox, NU|
|00003d20| 4c 4c 2c 20 30 29 3b 0a | 20 20 20 20 58 74 41 64 |LL, 0);.| XtAd|
|00003d30| 64 43 61 6c 6c 62 61 63 | 6b 28 71 75 69 74 2c 20 |dCallbac|k(quit, |
|00003d40| 58 74 4e 63 61 6c 6c 62 | 61 63 6b 2c 20 62 75 74 |XtNcallb|ack, but|
|00003d50| 74 6f 6e 5f 70 72 65 73 | 73 2c 20 4e 55 4c 4c 29 |ton_pres|s, NULL)|
|00003d60| 3b 0a 20 20 20 20 0a 20 | 20 20 20 58 74 56 61 47 |;. . | XtVaG|
|00003d70| 65 74 56 61 6c 75 65 73 | 28 71 75 69 74 2c 20 58 |etValues|(quit, X|
|00003d80| 74 4e 77 69 64 74 68 2c | 20 26 77 69 64 74 68 2c |tNwidth,| &width,|
|00003d90| 20 4e 55 4c 4c 29 3b 0a | 20 20 20 20 0a 20 20 20 | NULL);.| . |
|00003da0| 20 69 66 20 28 6d 61 78 | 5f 77 69 64 74 68 20 3c | if (max|_width <|
|00003db0| 20 77 69 64 74 68 29 7b | 0a 09 6d 61 78 5f 77 69 | width){|..max_wi|
|00003dc0| 64 74 68 20 3d 20 77 69 | 64 74 68 3b 0a 20 20 20 |dth = wi|dth;. |
|00003dd0| 20 7d 0a 20 20 20 20 0a | 20 20 20 20 2f 2a 20 53 | }. .| /* S|
|00003de0| 65 74 20 61 6c 6c 20 74 | 68 65 20 62 75 74 74 6f |et all t|he butto|
|00003df0| 6e 73 20 74 6f 20 74 68 | 65 20 73 61 6d 65 20 77 |ns to th|e same w|
|00003e00| 69 64 74 68 20 2a 2f 0a | 20 20 20 20 66 6f 72 20 |idth */.| for |
|00003e10| 28 69 20 3d 20 30 3b 20 | 69 20 3c 20 4d 41 58 5f |(i = 0; |i < MAX_|
|00003e20| 42 55 54 54 4f 4e 53 3b | 20 69 2b 2b 29 20 7b 0a |BUTTONS;| i++) {.|
|00003e30| 09 69 66 20 28 61 70 70 | 52 65 73 6f 75 72 63 65 |.if (app|Resource|
|00003e40| 73 2e 6c 61 62 65 6c 73 | 5b 69 5d 20 26 26 20 61 |s.labels|[i] && a|
|00003e50| 70 70 52 65 73 6f 75 72 | 63 65 73 2e 63 6f 6d 6d |ppResour|ces.comm|
|00003e60| 61 6e 64 73 5b 69 5d 29 | 7b 0a 09 20 20 20 20 58 |ands[i])|{.. X|
|00003e70| 74 56 61 53 65 74 56 61 | 6c 75 65 73 28 63 6d 64 |tVaSetVa|lues(cmd|
|00003e80| 73 5b 69 5d 2c 20 58 74 | 4e 77 69 64 74 68 2c 20 |s[i], Xt|Nwidth, |
|00003e90| 6d 61 78 5f 77 69 64 74 | 68 2c 20 4e 55 4c 4c 29 |max_widt|h, NULL)|
|00003ea0| 3b 0a 09 7d 0a 20 20 20 | 20 7d 0a 20 20 20 20 0a |;..}. | }. .|
|00003eb0| 20 20 20 20 58 74 56 61 | 53 65 74 56 61 6c 75 65 | XtVa|SetValue|
|00003ec0| 73 28 71 75 69 74 2c 20 | 58 74 4e 77 69 64 74 68 |s(quit, |XtNwidth|
|00003ed0| 2c 20 6d 61 78 5f 77 69 | 64 74 68 2c 20 4e 55 4c |, max_wi|dth, NUL|
|00003ee0| 4c 29 3b 0a 20 20 20 20 | 0a 20 20 20 20 72 65 74 |L);. |. ret|
|00003ef0| 75 72 6e 3b 0a 7d 0a 0a | 0a 76 6f 69 64 20 0a 74 |urn;.}..|.void .t|
|00003f00| 6f 67 67 6c 65 5f 76 69 | 73 69 62 69 6c 69 74 79 |oggle_vi|sibility|
|00003f10| 28 63 6c 69 65 6e 74 5f | 64 61 74 61 2c 20 64 75 |(client_|data, du|
|00003f20| 6d 6d 79 31 2c 20 64 75 | 6d 6d 79 32 29 0a 58 74 |mmy1, du|mmy2).Xt|
|00003f30| 50 6f 69 6e 74 65 72 20 | 63 6c 69 65 6e 74 5f 64 |Pointer |client_d|
|00003f40| 61 74 61 3b 0a 69 6e 74 | 20 2a 64 75 6d 6d 79 31 |ata;.int| *dummy1|
|00003f50| 3b 0a 58 74 49 6e 70 75 | 74 49 64 20 2a 64 75 6d |;.XtInpu|tId *dum|
|00003f60| 6d 79 32 3b 0a 7b 0a 20 | 20 20 63 68 61 72 20 62 |my2;.{. | char b|
|00003f70| 75 66 5b 42 55 46 53 49 | 5a 5d 3b 0a 20 20 20 73 |uf[BUFSI|Z];. s|
|00003f80| 74 61 74 69 63 20 69 6e | 74 20 76 69 73 69 62 6c |tatic in|t visibl|
|00003f90| 65 20 3d 20 31 3b 0a 0a | 20 20 20 20 2f 2a 20 52 |e = 1;..| /* R|
|00003fa0| 65 61 64 20 69 6e 70 75 | 74 20 66 72 6f 6d 20 73 |ead inpu|t from s|
|00003fb0| 74 64 69 6e 2e 20 20 57 | 65 20 6b 6e 6f 77 20 69 |tdin. W|e know i|
|00003fc0| 74 20 69 73 20 72 65 61 | 64 79 20 73 69 6e 63 65 |t is rea|dy since|
|00003fd0| 20 77 65 20 68 61 76 65 | 20 62 65 65 6e 20 63 61 | we have| been ca|
|00003fe0| 6c 6c 65 64 2e 20 2a 2f | 0a 20 20 20 0a 20 20 20 |lled. */|. . |
|00003ff0| 69 66 20 28 21 66 67 65 | 74 73 28 62 75 66 2c 20 |if (!fge|ts(buf, |
|00004000| 42 55 46 53 49 5a 2c 20 | 73 74 64 69 6e 29 29 7b |BUFSIZ, |stdin)){|
|00004010| 0a 20 20 20 20 20 20 20 | 2f 2a 20 54 68 69 73 20 |. |/* This |
|00004020| 67 6f 65 73 20 74 6f 20 | 73 74 64 6f 75 74 2c 20 |goes to |stdout, |
|00004030| 6e 6f 74 20 73 74 64 65 | 72 72 2e 20 2a 2f 0a 20 |not stde|rr. */. |
|00004040| 20 20 20 20 20 20 70 72 | 69 6e 74 66 28 22 63 6f | pr|intf("co|
|00004050| 75 6c 64 20 6e 6f 74 20 | 72 65 61 64 20 66 72 6f |uld not |read fro|
|00004060| 6d 20 73 74 64 69 6e 21 | 5c 6e 22 29 3b 0a 20 20 |m stdin!|\n");. |
|00004070| 20 20 20 20 20 65 78 69 | 74 28 30 29 3b 0a 20 20 | exi|t(0);. |
|00004080| 20 7d 0a 0a 20 20 20 69 | 66 20 28 76 69 73 69 62 | }.. i|f (visib|
|00004090| 6c 65 29 20 7b 0a 20 20 | 20 20 20 20 20 58 74 55 |le) {. | XtU|
|000040a0| 6e 6d 61 70 57 69 64 67 | 65 74 28 74 6f 70 6c 65 |nmapWidg|et(tople|
|000040b0| 76 65 6c 29 3b 0a 20 20 | 20 20 20 20 20 76 69 73 |vel);. | vis|
|000040c0| 69 62 6c 65 20 3d 20 30 | 3b 0a 20 20 20 7d 0a 20 |ible = 0|;. }. |
|000040d0| 20 20 65 6c 73 65 20 7b | 0a 20 20 20 20 20 20 20 | else {|. |
|000040e0| 58 74 4d 61 70 57 69 64 | 67 65 74 28 74 6f 70 6c |XtMapWid|get(topl|
|000040f0| 65 76 65 6c 29 3b 0a 20 | 20 20 20 20 20 20 76 69 |evel);. | vi|
|00004100| 73 69 62 6c 65 20 3d 20 | 31 3b 0a 20 20 20 7d 0a |sible = |1;. }.|
|00004110| 20 20 20 0a 20 20 20 72 | 65 74 75 72 6e 3b 0a 7d | . r|eturn;.}|
|00004120| 0a 0a 53 48 41 52 5f 45 | 4f 46 0a 66 69 0a 69 66 |..SHAR_E|OF.fi.if|
|00004130| 20 74 65 73 74 20 2d 66 | 20 27 65 62 75 74 74 6f | test -f| 'ebutto|
|00004140| 6e 73 2e 65 6c 27 0a 74 | 68 65 6e 0a 09 65 63 68 |ns.el'.t|hen..ech|
|00004150| 6f 20 73 68 61 72 3a 20 | 22 77 69 6c 6c 20 6e 6f |o shar: |"will no|
|00004160| 74 20 6f 76 65 72 2d 77 | 72 69 74 65 20 65 78 69 |t over-w|rite exi|
|00004170| 73 74 69 6e 67 20 66 69 | 6c 65 20 27 65 62 75 74 |sting fi|le 'ebut|
|00004180| 74 6f 6e 73 2e 65 6c 27 | 22 0a 65 6c 73 65 0a 63 |tons.el'|".else.c|
|00004190| 61 74 20 3c 3c 20 5c 53 | 48 41 52 5f 45 4f 46 20 |at << \S|HAR_EOF |
|000041a0| 3e 20 27 65 62 75 74 74 | 6f 6e 73 2e 65 6c 27 0a |> 'ebutt|ons.el'.|
|000041b0| 3b 3b 20 45 62 75 74 74 | 6f 6e 73 20 2d 20 61 6e |;; Ebutt|ons - an|
|000041c0| 20 58 20 69 6e 74 65 72 | 66 61 63 65 20 74 6f 20 | X inter|face to |
|000041d0| 45 6d 61 63 73 2e 0a 3b | 3b 20 43 6f 70 79 72 69 |Emacs..;|; Copyri|
|000041e0| 67 68 74 20 28 43 29 20 | 31 39 39 32 20 20 54 65 |ght (C) |1992 Te|
|000041f0| 72 72 79 20 4a 6f 6e 65 | 73 20 28 74 65 72 72 79 |rry Jone|s (terry|
|00004200| 40 73 61 6e 74 61 66 65 | 2e 65 64 75 29 0a 3b 3b |@santafe|.edu).;;|
|00004210| 20 28 42 61 73 65 64 20 | 28 68 65 61 76 69 6c 79 | (Based |(heavily|
|00004220| 29 20 6f 6e 20 74 68 65 | 20 74 61 67 6c 69 73 74 |) on the| taglist|
|00004230| 20 66 61 63 69 6c 69 74 | 79 20 77 72 69 74 74 65 | facilit|y writte|
|00004240| 6e 20 62 79 20 42 72 61 | 64 20 4d 65 61 72 73 29 |n by Bra|d Mears)|
|00004250| 0a 0a 3b 3b 20 54 68 69 | 73 20 66 69 6c 65 20 69 |..;; Thi|s file i|
|00004260| 73 20 70 61 72 74 20 6f | 66 20 65 62 75 74 74 6f |s part o|f ebutto|
|00004270| 6e 73 0a 0a 3b 3b 20 45 | 62 75 74 74 6f 6e 73 20 |ns..;; E|buttons |
|00004280| 69 73 20 66 72 65 65 20 | 73 6f 66 74 77 61 72 65 |is free |software|
|00004290| 3b 20 79 6f 75 20 63 61 | 6e 20 72 65 64 69 73 74 |; you ca|n redist|
|000042a0| 72 69 62 75 74 65 20 69 | 74 20 61 6e 64 2f 6f 72 |ribute i|t and/or|
|000042b0| 20 6d 6f 64 69 66 79 0a | 3b 3b 20 69 74 20 75 6e | modify.|;; it un|
|000042c0| 64 65 72 20 74 68 65 20 | 74 65 72 6d 73 20 6f 66 |der the |terms of|
|000042d0| 20 74 68 65 20 47 4e 55 | 20 47 65 6e 65 72 61 6c | the GNU| General|
|000042e0| 20 50 75 62 6c 69 63 20 | 4c 69 63 65 6e 73 65 20 | Public |License |
|000042f0| 61 73 20 70 75 62 6c 69 | 73 68 65 64 20 62 79 0a |as publi|shed by.|
|00004300| 3b 3b 20 74 68 65 20 46 | 72 65 65 20 53 6f 66 74 |;; the F|ree Soft|
|00004310| 77 61 72 65 20 46 6f 75 | 6e 64 61 74 69 6f 6e 3b |ware Fou|ndation;|
|00004320| 20 65 69 74 68 65 72 20 | 76 65 72 73 69 6f 6e 20 | either |version |
|00004330| 31 2c 20 6f 72 20 28 61 | 74 20 79 6f 75 72 20 6f |1, or (a|t your o|
|00004340| 70 74 69 6f 6e 29 0a 3b | 3b 20 61 6e 79 20 6c 61 |ption).;|; any la|
|00004350| 74 65 72 20 76 65 72 73 | 69 6f 6e 2e 0a 0a 3b 3b |ter vers|ion...;;|
|00004360| 20 54 68 65 20 47 4e 55 | 20 47 65 6e 65 72 61 6c | The GNU| General|
|00004370| 20 50 75 62 6c 69 63 20 | 4c 69 63 65 6e 73 65 20 | Public |License |
|00004380| 63 61 6e 20 62 65 20 6f | 62 74 61 69 6e 65 64 20 |can be o|btained |
|00004390| 76 69 61 20 61 6e 6f 6e | 79 6d 6f 75 73 20 66 74 |via anon|ymous ft|
|000043a0| 70 20 66 72 6f 6d 0a 3b | 3b 20 70 72 65 70 2e 61 |p from.;|; prep.a|
|000043b0| 69 2e 6d 69 74 2e 65 64 | 75 20 61 73 20 70 75 62 |i.mit.ed|u as pub|
|000043c0| 2f 67 6e 75 2f 43 4f 50 | 59 49 4e 47 20 6f 72 20 |/gnu/COP|YING or |
|000043d0| 70 75 62 2f 67 6e 75 2f | 43 4f 50 59 49 4e 47 2d |pub/gnu/|COPYING-|
|000043e0| 32 2e 0a 0a 3b 3b 20 45 | 62 75 74 74 6f 6e 73 20 |2...;; E|buttons |
|000043f0| 69 73 20 64 69 73 74 72 | 69 62 75 74 65 64 20 69 |is distr|ibuted i|
|00004400| 6e 20 74 68 65 20 68 6f | 70 65 20 74 68 61 74 20 |n the ho|pe that |
|00004410| 69 74 20 77 69 6c 6c 20 | 62 65 20 75 73 65 66 75 |it will |be usefu|
|00004420| 6c 2c 0a 3b 3b 20 62 75 | 74 20 57 49 54 48 4f 55 |l,.;; bu|t WITHOU|
|00004430| 54 20 41 4e 59 20 57 41 | 52 52 41 4e 54 59 3b 20 |T ANY WA|RRANTY; |
|00004440| 77 69 74 68 6f 75 74 20 | 65 76 65 6e 20 74 68 65 |without |even the|
|00004450| 20 69 6d 70 6c 69 65 64 | 20 77 61 72 72 61 6e 74 | implied| warrant|
|00004460| 79 20 6f 66 0a 3b 3b 20 | 4d 45 52 43 48 41 4e 54 |y of.;; |MERCHANT|
|00004470| 41 42 49 4c 49 54 59 20 | 6f 72 20 46 49 54 4e 45 |ABILITY |or FITNE|
|00004480| 53 53 20 46 4f 52 20 41 | 20 50 41 52 54 49 43 55 |SS FOR A| PARTICU|
|00004490| 4c 41 52 20 50 55 52 50 | 4f 53 45 2e 20 20 53 65 |LAR PURP|OSE. Se|
|000044a0| 65 20 74 68 65 0a 3b 3b | 20 47 4e 55 20 47 65 6e |e the.;;| GNU Gen|
|000044b0| 65 72 61 6c 20 50 75 62 | 6c 69 63 20 4c 69 63 65 |eral Pub|lic Lice|
|000044c0| 6e 73 65 20 66 6f 72 20 | 6d 6f 72 65 20 64 65 74 |nse for |more det|
|000044d0| 61 69 6c 73 2e 0a 0a 3b | 3b 20 54 68 69 73 20 70 |ails...;|; This p|
|000044e0| 72 6f 67 72 61 6d 20 70 | 72 6f 76 69 64 65 73 20 |rogram p|rovides |
|000044f0| 61 6e 20 58 20 69 6e 74 | 65 72 66 61 63 65 20 74 |an X int|erface t|
|00004500| 6f 20 69 73 73 75 65 20 | 63 6f 6d 6d 61 6e 64 73 |o issue |commands|
|00004510| 20 74 6f 20 61 6e 20 65 | 6d 61 63 73 0a 3b 3b 20 | to an e|macs.;; |
|00004520| 73 65 73 73 69 6f 6e 2e | 20 20 49 74 20 61 6c 6c |session.| It all|
|00004530| 6f 77 73 20 79 6f 75 20 | 74 6f 20 73 70 65 63 69 |ows you |to speci|
|00004540| 66 79 20 28 69 6e 20 61 | 6e 20 58 20 72 65 73 6f |fy (in a|n X reso|
|00004550| 75 72 63 65 20 66 69 6c | 65 29 20 6c 61 62 65 6c |urce fil|e) label|
|00004560| 73 20 66 6f 72 0a 3b 3b | 20 61 20 73 65 74 20 6f |s for.;;| a set o|
|00004570| 66 20 62 75 74 74 6f 6e | 73 20 61 6e 64 20 61 20 |f button|s and a |
|00004580| 63 6f 6d 6d 61 6e 64 20 | 66 6f 72 20 65 61 63 68 |command |for each|
|00004590| 20 74 68 61 74 20 77 69 | 6c 6c 20 62 65 20 65 78 | that wi|ll be ex|
|000045a0| 65 63 75 74 65 64 20 77 | 68 65 6e 20 74 68 65 0a |ecuted w|hen the.|
|000045b0| 3b 3b 20 63 6f 72 72 65 | 73 70 6f 6e 64 69 6e 67 |;; corre|sponding|
|000045c0| 20 62 75 74 74 6f 6e 20 | 69 73 20 63 6c 69 63 6b | button |is click|
|000045d0| 65 64 20 6f 6e 20 77 69 | 74 68 20 74 68 65 20 6d |ed on wi|th the m|
|000045e0| 6f 75 73 65 2e 20 46 6f | 72 20 69 6e 73 74 61 6e |ouse. Fo|r instan|
|000045f0| 63 65 20 79 6f 75 0a 3b | 3b 20 63 61 6e 20 64 65 |ce you.;|; can de|
|00004600| 66 69 6e 65 20 62 75 74 | 74 6f 6e 73 20 74 6f 20 |fine but|tons to |
|00004610| 63 6f 6d 70 69 6c 65 2c | 20 74 6f 20 66 69 6e 64 |compile,| to find|
|00004620| 20 74 68 65 20 6e 65 78 | 74 20 65 72 72 6f 72 2c | the nex|t error,|
|00004630| 20 74 6f 20 73 61 76 65 | 0a 3b 3b 20 62 75 66 66 | to save|.;; buff|
|00004640| 65 72 73 2c 20 74 6f 20 | 6d 6f 76 65 20 74 6f 20 |ers, to |move to |
|00004650| 74 68 65 20 74 6f 70 2f | 62 6f 74 74 6f 6d 20 6f |the top/|bottom o|
|00004660| 66 20 74 68 65 20 62 75 | 66 66 65 72 2c 20 74 6f |f the bu|ffer, to|
|00004670| 20 65 78 69 74 20 65 6d | 61 63 73 20 65 74 63 2e | exit em|acs etc.|
|00004680| 0a 3b 3b 20 65 74 63 2e | 0a 0a 28 64 65 66 76 61 |.;; etc.|..(defva|
|00004690| 72 20 65 62 75 74 74 6f | 6e 73 2d 70 72 6f 67 72 |r ebutto|ns-progr|
|000046a0| 61 6d 20 22 65 62 75 74 | 74 6f 6e 73 22 0a 20 20 |am "ebut|tons". |
|000046b0| 22 2a 54 68 65 20 65 62 | 75 74 74 6f 6e 73 20 70 |"*The eb|uttons p|
|000046c0| 72 6f 63 65 73 73 6f 72 | 22 29 0a 0a 28 64 65 66 |rocessor|")..(def|
|000046d0| 76 61 72 20 65 62 75 74 | 74 6f 6e 73 2d 72 75 6e |var ebut|tons-run|
|000046e0| 6e 69 6e 67 20 6e 69 6c | 0a 20 20 22 49 73 20 74 |ning nil|. "Is t|
|000046f0| 68 65 20 70 72 6f 67 72 | 61 6d 20 72 75 6e 6e 69 |he progr|am runni|
|00004700| 6e 67 3f 22 29 0a 0a 3b | 3b 3b 3b 3b 3b 3b 3b 3b |ng?")..;|;;;;;;;;|
|00004710| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|00004720| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|00004730| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|00004740| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|00004750| 3b 3b 0a 3b 3b 3b 20 20 | 65 62 75 74 74 6f 6e 73 |;;.;;; |ebuttons|
|00004760| 0a 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |.;;;;;;;|;;;;;;;;|
|00004770| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|00004780| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|00004790| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|000047a0| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 0a 28 64 65 |;;;;;;;;|;;;;.(de|
|000047b0| 66 75 6e 20 65 62 75 74 | 74 6f 6e 73 20 28 29 0a |fun ebut|tons ().|
|000047c0| 20 20 22 53 74 61 72 74 | 20 74 68 65 20 65 62 75 | "Start| the ebu|
|000047d0| 74 74 6f 6e 73 20 70 72 | 6f 63 65 73 73 6f 72 2e |ttons pr|ocessor.|
|000047e0| 20 20 54 68 69 73 20 73 | 74 61 72 74 73 20 61 6e | This s|tarts an|
|000047f0| 20 58 20 73 75 62 70 72 | 6f 63 65 73 73 20 74 68 | X subpr|ocess th|
|00004800| 61 74 20 63 61 6e 20 62 | 65 0a 75 73 65 64 20 74 |at can b|e.used t|
|00004810| 6f 20 69 73 73 75 65 20 | 63 6f 6d 6d 61 6e 64 73 |o issue |commands|
|00004820| 20 74 6f 20 74 68 65 20 | 63 75 72 72 65 6e 74 20 | to the |current |
|00004830| 65 6d 61 63 73 20 73 65 | 73 73 69 6f 6e 2e 22 0a |emacs se|ssion.".|
|00004840| 20 20 28 69 6e 74 65 72 | 61 63 74 69 76 65 29 0a | (inter|active).|
|00004850| 20 20 28 69 66 20 28 6e | 6f 74 20 65 62 75 74 74 | (if (n|ot ebutt|
|00004860| 6f 6e 73 2d 72 75 6e 6e | 69 6e 67 29 0a 20 20 20 |ons-runn|ing). |
|00004870| 20 28 70 72 6f 67 6e 0a | 20 20 20 20 20 20 28 6d | (progn.| (m|
|00004880| 65 73 73 61 67 65 20 22 | 53 74 61 72 74 69 6e 67 |essage "|Starting|
|00004890| 20 65 62 75 74 74 6f 6e | 73 2e 2e 2e 22 29 0a 20 | ebutton|s..."). |
|000048a0| 20 20 20 20 20 28 73 65 | 74 71 20 65 62 75 74 74 | (se|tq ebutt|
|000048b0| 6f 6e 73 2d 70 72 6f 63 | 65 73 73 0a 20 20 20 20 |ons-proc|ess. |
|000048c0| 20 20 20 20 28 73 74 61 | 72 74 2d 70 72 6f 63 65 | (sta|rt-proce|
|000048d0| 73 73 20 22 65 62 75 74 | 74 6f 6e 73 22 20 6e 69 |ss "ebut|tons" ni|
|000048e0| 6c 20 65 62 75 74 74 6f | 6e 73 2d 70 72 6f 67 72 |l ebutto|ns-progr|
|000048f0| 61 6d 29 29 0a 20 20 20 | 20 20 20 28 73 65 74 71 |am)). | (setq|
|00004900| 20 65 62 75 74 74 6f 6e | 73 2d 72 75 6e 6e 69 6e | ebutton|s-runnin|
|00004910| 67 20 74 29 0a 20 20 20 | 20 20 20 28 73 65 74 2d |g t). | (set-|
|00004920| 70 72 6f 63 65 73 73 2d | 66 69 6c 74 65 72 20 65 |process-|filter e|
|00004930| 62 75 74 74 6f 6e 73 2d | 70 72 6f 63 65 73 73 20 |buttons-|process |
|00004940| 27 65 62 2d 70 72 6f 63 | 65 73 73 2d 66 69 6c 74 |'eb-proc|ess-filt|
|00004950| 65 72 29 0a 20 20 20 20 | 20 20 28 73 65 74 2d 70 |er). | (set-p|
|00004960| 72 6f 63 65 73 73 2d 73 | 65 6e 74 69 6e 65 6c 20 |rocess-s|entinel |
|00004970| 65 62 75 74 74 6f 6e 73 | 2d 70 72 6f 63 65 73 73 |ebuttons|-process|
|00004980| 20 27 65 62 2d 70 72 6f | 63 65 73 73 2d 73 65 6e | 'eb-pro|cess-sen|
|00004990| 74 69 6e 65 6c 29 0a 20 | 20 20 20 20 20 28 70 72 |tinel). | (pr|
|000049a0| 6f 63 65 73 73 2d 6b 69 | 6c 6c 2d 77 69 74 68 6f |ocess-ki|ll-witho|
|000049b0| 75 74 2d 71 75 65 72 79 | 20 65 62 75 74 74 6f 6e |ut-query| ebutton|
|000049c0| 73 2d 70 72 6f 63 65 73 | 73 29 29 0a 20 20 20 20 |s-proces|s)). |
|000049d0| 28 70 72 6f 63 65 73 73 | 2d 73 65 6e 64 2d 73 74 |(process|-send-st|
|000049e0| 72 69 6e 67 20 65 62 75 | 74 74 6f 6e 73 2d 70 72 |ring ebu|ttons-pr|
|000049f0| 6f 63 65 73 73 20 22 5c | 6e 22 29 29 29 0a 0a 3b |ocess "\|n")))..;|
|00004a00| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|00004a10| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|00004a20| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|00004a30| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|00004a40| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 0a 3b 3b 3b 20 20 |;;;;;;;;|;;.;;; |
|00004a50| 65 62 2d 70 72 6f 63 65 | 73 73 2d 66 69 6c 74 65 |eb-proce|ss-filte|
|00004a60| 72 20 20 20 20 2d 20 69 | 6e 70 75 74 20 70 72 6f |r - i|nput pro|
|00004a70| 63 65 73 73 20 66 69 6c | 74 65 72 0a 3b 3b 3b 20 |cess fil|ter.;;; |
|00004a80| 20 65 62 2d 70 72 6f 63 | 65 73 73 2d 73 65 6e 74 | eb-proc|ess-sent|
|00004a90| 69 6e 65 6c 20 20 2d 20 | 65 78 69 74 20 70 72 6f |inel - |exit pro|
|00004aa0| 63 65 73 73 20 66 69 6c | 74 65 72 0a 3b 3b 3b 3b |cess fil|ter.;;;;|
|00004ab0| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|00004ac0| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|00004ad0| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|00004ae0| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|00004af0| 3b 3b 3b 3b 3b 3b 3b 0a | 0a 28 64 65 66 75 6e 20 |;;;;;;;.|.(defun |
|00004b00| 65 62 2d 70 72 6f 63 65 | 73 73 2d 66 69 6c 74 65 |eb-proce|ss-filte|
|00004b10| 72 20 28 70 72 6f 63 20 | 73 74 72 29 0a 20 20 22 |r (proc |str). "|
|00004b20| 50 72 6f 63 65 73 73 20 | 66 69 6c 74 65 72 20 66 |Process |filter f|
|00004b30| 6f 72 20 74 68 65 20 65 | 62 75 74 74 6f 6e 73 22 |or the e|buttons"|
|00004b40| 0a 20 20 28 6c 65 74 20 | 28 28 66 69 72 73 74 2d |. (let |((first-|
|00004b50| 63 68 61 72 20 28 73 74 | 72 69 6e 67 2d 74 6f 2d |char (st|ring-to-|
|00004b60| 63 68 61 72 20 73 74 72 | 29 29 29 0a 20 20 20 20 |char str|))). |
|00004b70| 20 28 69 66 20 28 3d 20 | 66 69 72 73 74 2d 63 68 | (if (= |first-ch|
|00004b80| 61 72 20 3f 28 29 20 20 | 20 20 20 0a 20 20 20 20 |ar ?() | . |
|00004b90| 20 20 20 20 28 65 76 61 | 6c 20 28 72 65 61 64 20 | (eva|l (read |
|00004ba0| 73 74 72 29 29 20 20 20 | 20 20 20 20 3b 20 65 76 |str)) | ; ev|
|00004bb0| 61 6c 75 61 74 65 20 74 | 68 65 20 65 6c 69 73 70 |aluate t|he elisp|
|00004bc0| 20 63 6f 64 65 20 73 65 | 6e 74 20 66 72 6f 6d 20 | code se|nt from |
|00004bd0| 65 62 75 74 74 6f 6e 73 | 0a 20 20 20 20 20 20 20 |ebuttons|. |
|00004be0| 20 28 70 72 6f 67 6e 20 | 20 20 20 20 20 20 20 20 | (progn | |
|00004bf0| 20 20 20 20 20 20 20 20 | 20 3b 20 44 75 6d 70 20 | | ; Dump |
|00004c00| 74 68 65 20 73 74 72 69 | 6e 67 20 74 6f 20 74 68 |the stri|ng to th|
|00004c10| 65 20 65 62 75 74 74 6f | 6e 73 20 62 75 66 66 65 |e ebutto|ns buffe|
|00004c20| 72 20 0a 20 20 20 20 20 | 20 20 20 20 20 20 28 67 |r . | (g|
|00004c30| 65 74 2d 62 75 66 66 65 | 72 2d 63 72 65 61 74 65 |et-buffe|r-create|
|00004c40| 20 22 2a 65 62 75 74 74 | 6f 6e 73 2a 22 29 0a 20 | "*ebutt|ons*"). |
|00004c50| 20 20 20 20 20 20 20 20 | 20 20 28 73 77 69 74 63 | | (switc|
|00004c60| 68 2d 74 6f 2d 62 75 66 | 66 65 72 2d 6f 74 68 65 |h-to-buf|fer-othe|
|00004c70| 72 2d 77 69 6e 64 6f 77 | 20 22 2a 65 62 75 74 74 |r-window| "*ebutt|
|00004c80| 6f 6e 73 2a 22 29 0a 20 | 20 20 20 20 20 20 20 20 |ons*"). | |
|00004c90| 20 20 28 69 6e 73 65 72 | 74 2d 73 74 72 69 6e 67 | (inser|t-string|
|00004ca0| 20 73 74 72 29 0a 20 20 | 20 20 20 20 20 20 20 20 | str). | |
|00004cb0| 20 28 65 6e 64 2d 6f 66 | 2d 62 75 66 66 65 72 29 | (end-of|-buffer)|
|00004cc0| 0a 20 20 20 20 20 20 20 | 20 20 20 20 28 6f 74 68 |. | (oth|
|00004cd0| 65 72 2d 77 69 6e 64 6f | 77 20 31 29 29 29 29 29 |er-windo|w 1)))))|
|00004ce0| 0a 0a 0a 28 64 65 66 75 | 6e 20 65 62 2d 70 72 6f |...(defu|n eb-pro|
|00004cf0| 63 65 73 73 2d 73 65 6e | 74 69 6e 65 6c 20 28 70 |cess-sen|tinel (p|
|00004d00| 72 6f 63 20 6d 73 67 29 | 0a 20 20 28 73 65 74 71 |roc msg)|. (setq|
|00004d10| 20 65 62 75 74 74 6f 6e | 73 2d 72 75 6e 6e 69 6e | ebutton|s-runnin|
|00004d20| 67 20 6e 69 6c 29 09 09 | 3b 20 69 74 27 73 20 6e |g nil)..|; it's n|
|00004d30| 6f 74 20 72 75 6e 6e 69 | 6e 67 20 61 6e 79 20 6d |ot runni|ng any m|
|00004d40| 6f 72 65 0a 20 20 28 63 | 6f 6e 64 20 28 28 65 71 |ore. (c|ond ((eq|
|00004d50| 20 28 70 72 6f 63 65 73 | 73 2d 73 74 61 74 75 73 | (proces|s-status|
|00004d60| 20 70 72 6f 63 29 20 27 | 65 78 69 74 29 0a 09 20 | proc) '|exit).. |
|00004d70| 28 6d 65 73 73 61 67 65 | 20 22 65 62 75 74 74 6f |(message| "ebutto|
|00004d80| 6e 73 2d 70 72 6f 63 20 | 73 75 62 70 72 6f 63 65 |ns-proc |subproce|
|00004d90| 73 73 20 65 78 69 74 65 | 64 22 29 29 0a 20 09 28 |ss exite|d")). .(|
|00004da0| 28 65 71 20 28 70 72 6f | 63 65 73 73 2d 73 74 61 |(eq (pro|cess-sta|
|00004db0| 74 75 73 20 70 72 6f 63 | 29 20 27 73 69 67 6e 61 |tus proc|) 'signa|
|00004dc0| 6c 29 0a 09 20 28 6d 65 | 73 73 61 67 65 20 22 65 |l).. (me|ssage "e|
|00004dd0| 62 75 74 74 6f 6e 73 2d | 70 72 6f 63 20 73 75 62 |buttons-|proc sub|
|00004de0| 70 72 6f 63 65 73 73 20 | 6b 69 6c 6c 65 64 22 29 |process |killed")|
|00004df0| 0a 09 20 29 29 29 20 0a | 0a 3b 3b 3b 3b 3b 3b 3b |.. ))) .|.;;;;;;;|
|00004e00| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|00004e10| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|00004e20| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|00004e30| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|00004e40| 3b 3b 3b 3b 0a 3b 3b 3b | 20 20 45 6e 64 20 6f 66 |;;;;.;;;| End of|
|00004e50| 20 65 62 75 74 74 6f 6e | 73 2e 65 6c 0a 3b 3b 3b | ebutton|s.el.;;;|
|00004e60| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|00004e70| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|00004e80| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|00004e90| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|00004ea0| 3b 3b 3b 3b 3b 3b 3b 3b | 0a 0a 0a 53 48 41 52 5f |;;;;;;;;|...SHAR_|
|00004eb0| 45 4f 46 0a 66 69 0a 69 | 66 20 74 65 73 74 20 2d |EOF.fi.i|f test -|
|00004ec0| 66 20 27 52 65 73 6f 75 | 72 63 65 73 27 0a 74 68 |f 'Resou|rces'.th|
|00004ed0| 65 6e 0a 09 65 63 68 6f | 20 73 68 61 72 3a 20 22 |en..echo| shar: "|
|00004ee0| 77 69 6c 6c 20 6e 6f 74 | 20 6f 76 65 72 2d 77 72 |will not| over-wr|
|00004ef0| 69 74 65 20 65 78 69 73 | 74 69 6e 67 20 66 69 6c |ite exis|ting fil|
|00004f00| 65 20 27 52 65 73 6f 75 | 72 63 65 73 27 22 0a 65 |e 'Resou|rces'".e|
|00004f10| 6c 73 65 0a 63 61 74 20 | 3c 3c 20 5c 53 48 41 52 |lse.cat |<< \SHAR|
|00004f20| 5f 45 4f 46 20 3e 20 27 | 52 65 73 6f 75 72 63 65 |_EOF > '|Resource|
|00004f30| 73 27 0a 65 62 75 74 74 | 6f 6e 73 2a 43 6f 6d 6d |s'.ebutt|ons*Comm|
|00004f40| 61 6e 64 2e 62 6f 72 64 | 65 72 57 69 64 74 68 3a |and.bord|erWidth:|
|00004f50| 20 20 20 20 30 0a 65 62 | 75 74 74 6f 6e 73 2a 42 | 0.eb|uttons*B|
|00004f60| 6f 78 2e 6f 72 69 65 6e | 74 61 74 69 6f 6e 3a 20 |ox.orien|tation: |
|00004f70| 20 20 20 20 20 20 20 76 | 65 72 74 69 63 61 6c 0a | v|ertical.|
|00004f80| 65 62 75 74 74 6f 6e 73 | 2a 42 6f 78 2e 68 53 70 |ebuttons|*Box.hSp|
|00004f90| 61 63 65 3a 20 20 20 20 | 20 20 20 20 20 20 20 20 |ace: | |
|00004fa0| 20 30 0a 65 62 75 74 74 | 6f 6e 73 2a 42 6f 78 2e | 0.ebutt|ons*Box.|
|00004fb0| 76 53 70 61 63 65 3a 20 | 20 20 20 20 20 20 20 20 |vSpace: | |
|00004fc0| 20 20 20 20 30 0a 65 62 | 75 74 74 6f 6e 73 2a 67 | 0.eb|uttons*g|
|00004fd0| 65 6f 6d 65 74 72 79 3a | 20 20 20 20 20 20 20 20 |eometry:| |
|00004fe0| 20 20 20 20 20 20 20 2b | 31 36 31 2b 32 36 36 0a | +|161+266.|
|00004ff0| 65 62 75 74 74 6f 6e 73 | 2a 62 61 63 6b 67 72 6f |ebuttons|*backgro|
|00005000| 75 6e 64 3a 09 09 20 53 | 6b 79 42 6c 75 65 0a 65 |und:.. S|kyBlue.e|
|00005010| 62 75 74 74 6f 6e 73 2a | 66 6f 6e 74 3a 09 09 09 |buttons*|font:...|
|00005020| 20 36 78 31 30 0a 65 62 | 75 74 74 6f 6e 73 2e 6c | 6x10.eb|uttons.l|
|00005030| 61 62 65 6c 31 3a 20 20 | 20 20 20 20 20 20 20 20 |abel1: | |
|00005040| 20 20 20 20 20 20 20 56 | 4d 0a 65 62 75 74 74 6f | V|M.ebutto|
|00005050| 6e 73 2e 63 6f 6d 6d 61 | 6e 64 31 3a 20 20 20 20 |ns.comma|nd1: |
|00005060| 20 20 20 20 20 20 20 20 | 20 20 20 28 76 6d 29 0a | | (vm).|
|00005070| 65 62 75 74 74 6f 6e 73 | 2e 6c 61 62 65 6c 32 3a |ebuttons|.label2:|
|00005080| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005090| 20 43 2d 78 20 30 0a 65 | 62 75 74 74 6f 6e 73 2e | C-x 0.e|buttons.|
|000050a0| 63 6f 6d 6d 61 6e 64 32 | 3a 20 20 20 20 20 20 20 |command2|: |
|000050b0| 20 20 20 20 20 20 20 20 | 28 64 65 6c 65 74 65 2d | |(delete-|
|000050c0| 77 69 6e 64 6f 77 29 0a | 65 62 75 74 74 6f 6e 73 |window).|ebuttons|
|000050d0| 2e 6c 61 62 65 6c 33 3a | 20 20 20 20 20 20 20 20 |.label3:| |
|000050e0| 20 20 20 20 20 20 20 20 | 20 43 2d 78 20 31 0a 65 | | C-x 1.e|
|000050f0| 62 75 74 74 6f 6e 73 2e | 63 6f 6d 6d 61 6e 64 33 |buttons.|command3|
|00005100| 3a 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |: | |
|00005110| 28 64 65 6c 65 74 65 2d | 6f 74 68 65 72 2d 77 69 |(delete-|other-wi|
|00005120| 6e 64 6f 77 73 29 0a 65 | 62 75 74 74 6f 6e 73 2e |ndows).e|buttons.|
|00005130| 6c 61 62 65 6c 34 3a 20 | 20 20 20 20 20 20 20 20 |label4: | |
|00005140| 20 20 20 20 20 20 20 20 | 43 2d 78 20 32 0a 65 62 | |C-x 2.eb|
|00005150| 75 74 74 6f 6e 73 2e 63 | 6f 6d 6d 61 6e 64 34 3a |uttons.c|ommand4:|
|00005160| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 28 | | (|
|00005170| 73 70 6c 69 74 2d 77 69 | 6e 64 6f 77 2d 76 65 72 |split-wi|ndow-ver|
|00005180| 74 69 63 61 6c 6c 79 29 | 0a 65 62 75 74 74 6f 6e |tically)|.ebutton|
|00005190| 73 2e 6c 61 62 65 6c 35 | 3a 20 20 20 20 20 20 20 |s.label5|: |
|000051a0| 20 20 20 20 20 20 20 20 | 20 20 4e 65 78 74 20 45 | | Next E|
|000051b0| 72 72 6f 72 0a 65 62 75 | 74 74 6f 6e 73 2e 63 6f |rror.ebu|ttons.co|
|000051c0| 6d 6d 61 6e 64 35 3a 20 | 20 20 20 20 20 20 20 20 |mmand5: | |
|000051d0| 20 20 20 20 20 20 28 6e | 65 78 74 2d 65 72 72 6f | (n|ext-erro|
|000051e0| 72 29 0a 65 62 75 74 74 | 6f 6e 73 2e 6c 61 62 65 |r).ebutt|ons.labe|
|000051f0| 6c 36 3a 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |l6: | |
|00005200| 20 20 20 20 53 61 76 65 | 20 42 75 66 66 65 72 0a | Save| Buffer.|
|00005210| 65 62 75 74 74 6f 6e 73 | 2e 63 6f 6d 6d 61 6e 64 |ebuttons|.command|
|00005220| 36 3a 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |6: | |
|00005230| 20 28 73 61 76 65 2d 62 | 75 66 66 65 72 29 0a 65 | (save-b|uffer).e|
|00005240| 62 75 74 74 6f 6e 73 2e | 6c 61 62 65 6c 37 3a 20 |buttons.|label7: |
|00005250| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005260| 45 78 69 74 20 45 6d 61 | 63 73 0a 65 62 75 74 74 |Exit Ema|cs.ebutt|
|00005270| 6f 6e 73 2e 63 6f 6d 6d | 61 6e 64 37 3a 20 20 20 |ons.comm|and7: |
|00005280| 20 20 20 20 20 20 20 20 | 20 20 20 20 28 73 61 76 | | (sav|
|00005290| 65 2d 62 75 66 66 65 72 | 73 2d 6b 69 6c 6c 2d 65 |e-buffer|s-kill-e|
|000052a0| 6d 61 63 73 29 0a 65 62 | 75 74 74 6f 6e 73 2e 6c |macs).eb|uttons.l|
|000052b0| 61 62 65 6c 38 3a 20 20 | 20 20 20 20 20 20 20 20 |abel8: | |
|000052c0| 20 20 20 20 20 20 20 53 | 65 6e 64 20 4d 61 69 6c | S|end Mail|
|000052d0| 0a 65 62 75 74 74 6f 6e | 73 2e 63 6f 6d 6d 61 6e |.ebutton|s.comman|
|000052e0| 64 38 3a 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |d8: | |
|000052f0| 20 20 28 6d 61 69 6c 29 | 0a 65 62 75 74 74 6f 6e | (mail)|.ebutton|
|00005300| 73 2e 6c 61 62 65 6c 39 | 3a 20 20 20 20 20 20 20 |s.label9|: |
|00005310| 20 20 20 20 20 20 20 20 | 20 20 4b 69 6c 6c 20 42 | | Kill B|
|00005320| 75 66 66 65 72 0a 65 62 | 75 74 74 6f 6e 73 2e 63 |uffer.eb|uttons.c|
|00005330| 6f 6d 6d 61 6e 64 39 3a | 20 20 20 20 20 20 20 20 |ommand9:| |
|00005340| 20 20 20 20 20 20 20 28 | 6b 69 6c 6c 2d 62 75 66 | (|kill-buf|
|00005350| 66 65 72 20 28 62 75 66 | 66 65 72 2d 6e 61 6d 65 |fer (buf|fer-name|
|00005360| 29 29 0a 65 62 75 74 74 | 6f 6e 73 2e 6c 61 62 65 |)).ebutt|ons.labe|
|00005370| 6c 31 30 3a 20 20 20 20 | 20 20 20 20 20 20 20 20 |l10: | |
|00005380| 20 20 20 20 42 75 66 66 | 65 72 20 4c 69 73 74 0a | Buff|er List.|
|00005390| 65 62 75 74 74 6f 6e 73 | 2e 63 6f 6d 6d 61 6e 64 |ebuttons|.command|
|000053a0| 31 30 3a 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |10: | |
|000053b0| 20 28 65 6c 65 63 74 72 | 69 63 2d 62 75 66 66 65 | (electr|ic-buffe|
|000053c0| 72 2d 6c 69 73 74 20 74 | 29 0a 65 62 75 74 74 6f |r-list t|).ebutto|
|000053d0| 6e 73 2e 6c 61 62 65 6c | 31 31 3a 20 20 20 20 20 |ns.label|11: |
|000053e0| 20 20 20 20 20 20 20 20 | 20 20 20 46 69 72 73 74 | | First|
|000053f0| 20 4c 69 6e 65 0a 65 62 | 75 74 74 6f 6e 73 2e 63 | Line.eb|uttons.c|
|00005400| 6f 6d 6d 61 6e 64 31 31 | 3a 20 20 20 20 20 20 20 |ommand11|: |
|00005410| 20 20 20 20 20 20 20 28 | 62 65 67 69 6e 6e 69 6e | (|beginnin|
|00005420| 67 2d 6f 66 2d 62 75 66 | 66 65 72 29 0a 65 62 75 |g-of-buf|fer).ebu|
|00005430| 74 74 6f 6e 73 2e 6c 61 | 62 65 6c 31 32 3a 20 20 |ttons.la|bel12: |
|00005440| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 53 63 | | Sc|
|00005450| 72 6f 6c 6c 20 4f 74 68 | 65 72 0a 65 62 75 74 74 |roll Oth|er.ebutt|
|00005460| 6f 6e 73 2e 63 6f 6d 6d | 61 6e 64 31 32 3a 20 20 |ons.comm|and12: |
|00005470| 20 20 20 20 20 20 20 20 | 20 20 20 20 28 73 63 72 | | (scr|
|00005480| 6f 6c 6c 2d 6f 74 68 65 | 72 2d 77 69 6e 64 6f 77 |oll-othe|r-window|
|00005490| 29 0a 65 62 75 74 74 6f | 6e 73 2e 6c 61 62 65 6c |).ebutto|ns.label|
|000054a0| 31 33 3a 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |13: | |
|000054b0| 20 20 20 4e 65 78 74 20 | 57 69 6e 0a 65 62 75 74 | Next |Win.ebut|
|000054c0| 74 6f 6e 73 2e 63 6f 6d | 6d 61 6e 64 31 33 3a 20 |tons.com|mand13: |
|000054d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 28 6f 74 | | (ot|
|000054e0| 68 65 72 2d 77 69 6e 64 | 6f 77 29 0a 65 62 75 74 |her-wind|ow).ebut|
|000054f0| 74 6f 6e 73 2e 6c 61 62 | 65 6c 31 34 3a 20 20 20 |tons.lab|el14: |
|00005500| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 54 6f 70 | | Top|
|00005510| 0a 65 62 75 74 74 6f 6e | 73 2e 63 6f 6d 6d 61 6e |.ebutton|s.comman|
|00005520| 64 31 34 3a 20 20 20 20 | 20 20 20 20 20 20 20 20 |d14: | |
|00005530| 20 20 28 67 6f 74 6f 2d | 63 68 61 72 20 30 29 0a | (goto-|char 0).|
|00005540| 65 62 75 74 74 6f 6e 73 | 2e 6c 61 62 65 6c 31 35 |ebuttons|.label15|
|00005550| 3a 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |: | |
|00005560| 20 42 6f 74 74 6f 6d 0a | 65 62 75 74 74 6f 6e 73 | Bottom.|ebuttons|
|00005570| 2e 63 6f 6d 6d 61 6e 64 | 31 35 3a 20 20 20 20 20 |.command|15: |
|00005580| 20 20 20 20 20 20 20 20 | 20 28 67 6f 74 6f 2d 63 | | (goto-c|
|00005590| 68 61 72 20 28 64 6f 74 | 2d 6d 61 78 29 29 0a 65 |har (dot|-max)).e|
|000055a0| 62 75 74 74 6f 6e 73 2e | 6c 61 62 65 6c 31 38 3a |buttons.|label18:|
|000055b0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000055c0| 43 6f 6d 70 69 6c 65 0a | 65 62 75 74 74 6f 6e 73 |Compile.|ebuttons|
|000055d0| 2e 63 6f 6d 6d 61 6e 64 | 31 38 3a 20 20 20 20 20 |.command|18: |
|000055e0| 20 20 20 20 20 20 20 20 | 20 28 63 6f 6d 70 69 6c | | (compil|
|000055f0| 65 20 22 6d 61 6b 65 20 | 2d 6b 22 29 0a 65 62 75 |e "make |-k").ebu|
|00005600| 74 74 6f 6e 73 2e 6c 61 | 62 65 6c 31 39 3a 20 20 |ttons.la|bel19: |
|00005610| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 48 69 | | Hi|
|00005620| 64 65 20 4d 65 0a 65 62 | 75 74 74 6f 6e 73 2e 63 |de Me.eb|uttons.c|
|00005630| 6f 6d 6d 61 6e 64 31 39 | 3a 20 20 20 20 20 20 20 |ommand19|: |
|00005640| 20 20 20 20 20 20 20 28 | 65 62 75 74 74 6f 6e 73 | (|ebuttons|
|00005650| 29 0a 53 48 41 52 5f 45 | 4f 46 0a 66 69 0a 69 66 |).SHAR_E|OF.fi.if|
|00005660| 20 74 65 73 74 20 2d 66 | 20 27 6d 61 6b 65 5f 65 | test -f| 'make_e|
|00005670| 62 75 74 74 6f 6e 73 27 | 0a 74 68 65 6e 0a 09 65 |buttons'|.then..e|
|00005680| 63 68 6f 20 73 68 61 72 | 3a 20 22 77 69 6c 6c 20 |cho shar|: "will |
|00005690| 6e 6f 74 20 6f 76 65 72 | 2d 77 72 69 74 65 20 65 |not over|-write e|
|000056a0| 78 69 73 74 69 6e 67 20 | 66 69 6c 65 20 27 6d 61 |xisting |file 'ma|
|000056b0| 6b 65 5f 65 62 75 74 74 | 6f 6e 73 27 22 0a 65 6c |ke_ebutt|ons'".el|
|000056c0| 73 65 0a 63 61 74 20 3c | 3c 20 5c 53 48 41 52 5f |se.cat <|< \SHAR_|
|000056d0| 45 4f 46 20 3e 20 27 6d | 61 6b 65 5f 65 62 75 74 |EOF > 'm|ake_ebut|
|000056e0| 74 6f 6e 73 27 0a 23 21 | 2f 62 69 6e 2f 73 68 0a |tons'.#!|/bin/sh.|
|000056f0| 0a 62 75 74 74 6f 6e 73 | 3d 65 62 75 74 74 6f 6e |.buttons|=ebutton|
|00005700| 73 2e 68 0a 0a 63 61 73 | 65 20 24 23 20 69 6e 0a |s.h..cas|e $# in.|
|00005710| 09 31 29 20 3b 3b 0a 09 | 2a 29 20 65 63 68 6f 20 |.1) ;;..|*) echo |
|00005720| 75 73 61 67 65 3a 20 60 | 62 61 73 65 6e 61 6d 65 |usage: `|basename|
|00005730| 20 24 30 60 20 6e 75 6d | 5f 62 75 74 74 6f 6e 73 | $0` num|_buttons|
|00005740| 3b 20 65 78 69 74 20 31 | 3b 3b 0a 65 73 61 63 0a |; exit 1|;;.esac.|
|00005750| 0a 69 66 20 5b 20 2d 66 | 20 24 62 75 74 74 6f 6e |.if [ -f| $button|
|00005760| 73 20 5d 0a 74 68 65 6e | 0a 09 65 78 69 73 74 69 |s ].then|..existi|
|00005770| 6e 67 5f 62 75 74 74 6f | 6e 73 3d 22 60 67 72 65 |ng_butto|ns="`gre|
|00005780| 70 20 43 4f 4d 4d 41 4e | 44 20 24 62 75 74 74 6f |p COMMAN|D $butto|
|00005790| 6e 73 20 7c 20 77 63 20 | 2d 6c 60 22 0a 09 0a 09 |ns | wc |-l`"....|
|000057a0| 69 66 20 5b 20 24 31 20 | 2d 65 71 20 60 65 78 70 |if [ $1 |-eq `exp|
|000057b0| 72 20 24 65 78 69 73 74 | 69 6e 67 5f 62 75 74 74 |r $exist|ing_butt|
|000057c0| 6f 6e 73 20 2d 20 32 60 | 20 5d 0a 09 74 68 65 6e |ons - 2`| ]..then|
|000057d0| 0a 09 09 65 78 69 74 20 | 30 0a 09 66 69 0a 66 69 |...exit |0..fi.fi|
|000057e0| 0a 0a 63 61 74 20 3e 24 | 62 75 74 74 6f 6e 73 20 |..cat >$|buttons |
|000057f0| 3c 3c 45 4f 54 0a 23 64 | 65 66 69 6e 65 20 4c 41 |<<EOT.#d|efine LA|
|00005800| 42 45 4c 28 78 29 20 20 | 20 22 4c 61 62 65 6c 22 |BEL(x) | "Label"|
|00005810| 2c 20 58 74 52 53 74 72 | 69 6e 67 2c 20 73 69 7a |, XtRStr|ing, siz|
|00005820| 65 6f 66 28 53 74 72 69 | 6e 67 29 2c 20 58 74 4f |eof(Stri|ng), XtO|
|00005830| 66 66 73 65 74 4f 66 28 | 41 70 70 52 65 73 6f 75 |ffsetOf(|AppResou|
|00005840| 72 63 65 73 2c 20 6c 61 | 62 65 6c 73 5b 28 78 29 |rces, la|bels[(x)|
|00005850| 5d 29 2c 20 58 74 52 53 | 74 72 69 6e 67 2c 20 4e |]), XtRS|tring, N|
|00005860| 55 4c 4c 0a 23 64 65 66 | 69 6e 65 20 43 4f 4d 4d |ULL.#def|ine COMM|
|00005870| 41 4e 44 28 78 29 20 22 | 43 6f 6d 6d 61 6e 64 22 |AND(x) "|Command"|
|00005880| 2c 20 58 74 52 53 74 72 | 69 6e 67 2c 20 73 69 7a |, XtRStr|ing, siz|
|00005890| 65 6f 66 28 53 74 72 69 | 6e 67 29 2c 20 58 74 4f |eof(Stri|ng), XtO|
|000058a0| 66 66 73 65 74 4f 66 28 | 41 70 70 52 65 73 6f 75 |ffsetOf(|AppResou|
|000058b0| 72 63 65 73 2c 20 63 6f | 6d 6d 61 6e 64 73 5b 28 |rces, co|mmands[(|
|000058c0| 78 29 5d 29 2c 20 58 74 | 52 53 74 72 69 6e 67 2c |x)]), Xt|RString,|
|000058d0| 20 4e 55 4c 4c 0a 0a 73 | 74 61 74 69 63 20 58 74 | NULL..s|tatic Xt|
|000058e0| 52 65 73 6f 75 72 63 65 | 20 72 65 73 6f 75 72 63 |Resource| resourc|
|000058f0| 65 73 5b 5d 20 3d 20 7b | 0a 45 4f 54 0a 0a 61 77 |es[] = {|.EOT..aw|
|00005900| 6b 20 3c 26 2d 20 3e 3e | 20 24 62 75 74 74 6f 6e |k <&- >>| $button|
|00005910| 73 20 27 42 45 47 49 4e | 20 7b 20 5c 0a 20 20 20 |s 'BEGIN| { \. |
|00005920| 20 20 66 6f 72 20 28 3b | 20 69 20 3c 20 27 24 31 | for (;| i < '$1|
|00005930| 27 3b 20 69 2b 2b 29 20 | 5c 0a 20 20 20 20 20 20 |'; i++) |\. |
|00005940| 20 70 72 69 6e 74 66 20 | 22 20 20 20 20 7b 5c 22 | printf |" {\"|
|00005950| 6c 61 62 65 6c 25 64 5c | 22 2c 20 4c 41 42 45 4c |label%d\|", LABEL|
|00005960| 28 25 64 29 20 7d 2c 5c | 6e 20 20 20 20 7b 20 5c |(%d) },\|n { \|
|00005970| 22 63 6f 6d 6d 61 6e 64 | 25 64 5c 22 2c 20 43 4f |"command|%d\", CO|
|00005980| 4d 4d 41 4e 44 28 25 64 | 29 20 7d 2c 5c 6e 22 2c |MMAND(%d|) },\n",|
|00005990| 20 69 2c 20 69 2c 20 69 | 2c 20 69 7d 27 0a 0a 63 | i, i, i|, i}'..c|
|000059a0| 61 74 20 3e 3e 24 62 75 | 74 74 6f 6e 73 20 3c 3c |at >>$bu|ttons <<|
|000059b0| 45 4f 54 0a 7d 3b 0a 0a | 23 75 6e 64 65 66 20 4c |EOT.};..|#undef L|
|000059c0| 41 42 45 4c 0a 23 75 6e | 64 65 66 20 43 4f 4d 4d |ABEL.#un|def COMM|
|000059d0| 41 4e 44 0a 45 4f 54 0a | 0a 65 78 69 74 20 30 0a |AND.EOT.|.exit 0.|
|000059e0| 53 48 41 52 5f 45 4f 46 | 0a 63 68 6d 6f 64 20 2b |SHAR_EOF|.chmod +|
|000059f0| 78 20 27 6d 61 6b 65 5f | 65 62 75 74 74 6f 6e 73 |x 'make_|ebuttons|
|00005a00| 27 0a 66 69 0a 65 78 69 | 74 20 30 0a 23 09 45 6e |'.fi.exi|t 0.#.En|
|00005a10| 64 20 6f 66 20 73 68 65 | 6c 6c 20 61 72 63 68 69 |d of she|ll archi|
|00005a20| 76 65 0a | |ve. | |
+--------+-------------------------+-------------------------+--------+--------+