home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / alt / sources / 2575 < prev    next >
SHell self-extracting ARchive  |  1992-11-18  |  22.4 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: 2575

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 61 6c 74 2e |Newsgrou|ps: alt.|
|00000010| 73 6f 75 72 63 65 73 0a | 50 61 74 68 3a 20 73 70 |sources.|Path: sp|
|00000020| 61 72 6b 79 21 75 75 6e | 65 74 21 7a 61 70 68 6f |arky!uun|et!zapho|
|00000030| 64 2e 6d 70 73 2e 6f 68 | 69 6f 2d 73 74 61 74 65 |d.mps.oh|io-state|
|00000040| 2e 65 64 75 21 73 6f 6c | 2e 63 74 72 2e 63 6f 6c |.edu!sol|.ctr.col|
|00000050| 75 6d 62 69 61 2e 65 64 | 75 21 73 70 6f 6f 6c 2e |umbia.ed|u!spool.|
|00000060| 6d 75 2e 65 64 75 21 75 | 6d 6e 2e 65 64 75 21 6c |mu.edu!u|mn.edu!l|
|00000070| 79 6e 78 21 53 61 6e 74 | 61 46 65 21 6e 65 77 73 |ynx!Sant|aFe!news|
|00000080| 2e 73 61 6e 74 61 66 65 | 2e 65 64 75 21 74 65 72 |.santafe|.edu!ter|
|00000090| 72 79 0a 46 72 6f 6d 3a | 20 74 65 72 72 79 40 6e |ry.From:| terry@n|
|000000a0| 61 6d 62 65 2e 73 61 6e | 74 61 66 65 2e 65 64 75 |ambe.san|tafe.edu|
|000000b0| 20 28 54 65 72 72 79 20 | 4a 6f 6e 65 73 29 0a 53 | (Terry |Jones).S|
|000000c0| 75 62 6a 65 63 74 3a 20 | 65 62 75 74 74 6f 6e 73 |ubject: |ebuttons|
|000000d0| 20 2d 20 58 20 69 6e 74 | 65 72 66 61 63 65 20 74 | - X int|erface t|
|000000e0| 6f 20 65 6d 61 63 73 2e | 0a 4d 65 73 73 61 67 65 |o emacs.|.Message|
|000000f0| 2d 49 44 3a 20 3c 54 45 | 52 52 59 2e 39 32 4e 6f |-ID: <TE|RRY.92No|
|00000100| 76 31 39 30 31 30 35 32 | 34 40 6e 61 6d 62 65 2e |v1901052|4@nambe.|
|00000110| 73 61 6e 74 61 66 65 2e | 65 64 75 3e 0a 44 61 74 |santafe.|edu>.Dat|
|00000120| 65 3a 20 54 68 75 2c 20 | 31 39 20 4e 6f 76 20 39 |e: Thu, |19 Nov 9|
|00000130| 32 20 30 38 3a 30 35 3a | 32 34 20 47 4d 54 0a 4f |2 08:05:|24 GMT.O|
|00000140| 72 67 61 6e 69 7a 61 74 | 69 6f 6e 3a 20 53 61 6e |rganizat|ion: San|
|00000150| 74 61 20 46 65 20 49 6e | 73 74 69 74 75 74 65 0a |ta Fe In|stitute.|
|00000160| 44 69 73 74 72 69 62 75 | 74 69 6f 6e 3a 20 61 6c |Distribu|tion: al|
|00000170| 74 0a 4c 69 6e 65 73 3a | 20 37 32 33 0a 0a 0a 5b |t.Lines:| 723...[|
|00000180| 46 72 6f 6d 20 74 68 65 | 20 52 45 41 44 4d 45 5d |From the| README]|
|00000190| 0a 0a 54 68 69 73 20 70 | 72 6f 67 72 61 6d 20 70 |..This p|rogram p|
|000001a0| 72 6f 76 69 64 65 73 20 | 61 6e 20 58 20 69 6e 74 |rovides |an X int|
|000001b0| 65 72 66 61 63 65 20 74 | 6f 20 69 73 73 75 65 20 |erface t|o issue |
|000001c0| 63 6f 6d 6d 61 6e 64 73 | 20 74 6f 20 61 6e 20 65 |commands| to an e|
|000001d0| 6d 61 63 73 0a 73 65 73 | 73 69 6f 6e 2e 20 20 49 |macs.ses|sion. I|
|000001e0| 74 20 61 6c 6c 6f 77 73 | 20 79 6f 75 20 74 6f 20 |t allows| you to |
|000001f0| 73 70 65 63 69 66 79 20 | 28 69 6e 20 61 6e 20 58 |specify |(in an X|
|00000200| 20 72 65 73 6f 75 72 63 | 65 20 66 69 6c 65 29 20 | resourc|e file) |
|00000210| 6c 61 62 65 6c 73 20 66 | 6f 72 0a 61 20 73 65 74 |labels f|or.a set|
|00000220| 20 6f 66 20 62 75 74 74 | 6f 6e 73 20 61 6e 64 20 | of butt|ons and |
|00000230| 61 20 63 6f 6d 6d 61 6e | 64 20 66 6f 72 20 65 61 |a comman|d for ea|
|00000240| 63 68 20 74 68 61 74 20 | 77 69 6c 6c 20 62 65 20 |ch that |will be |
|00000250| 65 78 65 63 75 74 65 64 | 20 77 68 65 6e 20 74 68 |executed| when th|
|00000260| 65 0a 63 6f 72 72 65 73 | 70 6f 6e 64 69 6e 67 20 |e.corres|ponding |
|00000270| 62 75 74 74 6f 6e 20 69 | 73 20 63 6c 69 63 6b 65 |button i|s clicke|
|00000280| 64 20 6f 6e 20 77 69 74 | 68 20 74 68 65 20 6d 6f |d on wit|h the mo|
|00000290| 75 73 65 2e 20 46 6f 72 | 20 69 6e 73 74 61 6e 63 |use. For| instanc|
|000002a0| 65 20 79 6f 75 0a 63 61 | 6e 20 64 65 66 69 6e 65 |e you.ca|n define|
|000002b0| 20 62 75 74 74 6f 6e 73 | 20 74 6f 20 63 6f 6d 70 | buttons| to comp|
|000002c0| 69 6c 65 2c 20 74 6f 20 | 66 69 6e 64 20 74 68 65 |ile, to |find the|
|000002d0| 20 6e 65 78 74 20 65 72 | 72 6f 72 2c 20 74 6f 20 | next er|ror, to |
|000002e0| 73 61 76 65 0a 62 75 66 | 66 65 72 73 2c 20 74 6f |save.buf|fers, to|
|000002f0| 20 6d 6f 76 65 20 74 6f | 20 74 68 65 20 74 6f 70 | move to| the top|
|00000300| 2f 62 6f 74 74 6f 6d 20 | 6f 66 20 74 68 65 20 62 |/bottom |of the b|
|00000310| 75 66 66 65 72 2c 20 74 | 6f 20 65 78 69 74 20 65 |uffer, t|o exit e|
|00000320| 6d 61 63 73 20 65 74 63 | 2e 0a 65 74 63 2e 0a 0a |macs etc|..etc...|
|00000330| 54 68 65 20 69 64 65 61 | 20 69 73 20 74 68 61 74 |The idea| is that|
|00000340| 20 74 68 69 73 20 73 68 | 6f 75 6c 64 20 62 65 20 | this sh|ould be |
|00000350| 61 20 74 68 69 6e 20 76 | 65 72 74 69 63 61 6c 20 |a thin v|ertical |
|00000360| 77 69 6e 64 6f 77 20 74 | 68 61 74 20 73 69 74 73 |window t|hat sits|
|00000370| 20 6a 75 73 74 0a 74 6f | 20 74 68 65 20 73 69 64 | just.to| the sid|
|00000380| 65 20 6f 66 20 61 6e 20 | 65 6d 61 63 73 20 73 65 |e of an |emacs se|
|00000390| 73 73 69 6f 6e 20 61 6e | 64 20 61 6c 6c 6f 77 73 |ssion an|d allows|
|000003a0| 20 66 6f 72 20 66 61 73 | 74 20 65 78 65 63 75 74 | for fas|t execut|
|000003b0| 69 6f 6e 20 6f 66 20 73 | 6f 6d 65 0a 74 68 69 6e |ion of s|ome.thin|
|000003c0| 67 73 2e 20 49 74 20 69 | 73 20 6e 6f 74 20 69 6e |gs. It i|s not in|
|000003d0| 74 65 6e 64 65 64 20 74 | 6f 20 72 65 70 6c 61 63 |tended t|o replac|
|000003e0| 65 20 74 68 65 20 6b 65 | 79 62 6f 61 72 64 21 20 |e the ke|yboard! |
|000003f0| 49 74 20 6a 75 73 74 20 | 67 69 76 65 73 0a 61 6e |It just |gives.an|
|00000400| 6f 74 68 65 72 20 6f 70 | 74 69 6f 6e 20 2d 20 69 |other op|tion - i|
|00000410| 66 20 79 6f 75 72 20 68 | 61 6e 64 20 69 73 20 61 |f your h|and is a|
|00000420| 6c 72 65 61 64 79 20 6f | 6e 20 74 68 65 20 6d 6f |lready o|n the mo|
|00000430| 75 73 65 2c 20 75 73 65 | 20 65 62 75 74 74 6f 6e |use, use| ebutton|
|00000440| 73 2e 0a 49 66 20 6e 6f | 74 2c 20 75 73 65 20 74 |s..If no|t, use t|
|00000450| 68 65 20 6b 65 79 62 6f | 61 72 64 2e 20 4f 72 20 |he keybo|ard. Or |
|00000460| 61 73 20 79 6f 75 20 6c | 69 6b 65 20 69 74 2e 20 |as you l|ike it. |
|00000470| 54 68 65 20 77 69 6e 64 | 6f 77 20 63 61 6e 20 61 |The wind|ow can a|
|00000480| 6c 73 6f 20 62 65 0a 6d | 61 64 65 20 68 6f 72 69 |lso be.m|ade hori|
|00000490| 7a 6f 6e 74 61 6c 20 28 | 73 65 65 20 62 65 6c 6f |zontal (|see belo|
|000004a0| 77 29 20 62 75 74 20 74 | 68 65 6e 20 6e 6f 74 20 |w) but t|hen not |
|000004b0| 61 73 20 6d 61 6e 79 20 | 62 75 74 74 6f 6e 73 20 |as many |buttons |
|000004c0| 77 69 6c 6c 20 66 69 74 | 20 6f 6e 0a 74 68 65 20 |will fit| on.the |
|000004d0| 73 63 72 65 65 6e 2e 0a | 0a 54 68 69 73 20 70 72 |screen..|.This pr|
|000004e0| 6f 67 72 61 6d 20 69 73 | 20 61 64 61 70 74 65 64 |ogram is| adapted|
|000004f0| 20 66 72 6f 6d 20 74 68 | 65 20 74 61 67 6c 69 73 | from th|e taglis|
|00000500| 74 20 66 61 63 69 6c 69 | 74 79 20 77 72 69 74 74 |t facili|ty writt|
|00000510| 65 6e 20 62 79 20 42 72 | 61 64 0a 4d 65 61 72 73 |en by Br|ad.Mears|
|00000520| 20 28 62 6d 65 61 72 73 | 40 64 65 6c 74 61 68 70 | (bmears|@deltahp|
|00000530| 2e 6a 73 63 2e 6e 61 73 | 61 2e 67 6f 76 29 2e 20 |.jsc.nas|a.gov). |
|00000540| 49 6e 20 66 61 63 74 2c | 20 68 65 20 73 68 6f 75 |In fact,| he shou|
|00000550| 6c 64 20 67 65 74 20 61 | 6c 6d 6f 73 74 20 61 6c |ld get a|lmost al|
|00000560| 6c 0a 74 68 65 20 63 72 | 65 64 69 74 2e 20 49 20 |l.the cr|edit. I |
|00000570| 68 61 76 65 20 62 61 73 | 69 63 61 6c 6c 79 20 6e |have bas|ically n|
|00000580| 65 76 65 72 20 77 72 69 | 74 74 65 6e 20 61 20 6c |ever wri|tten a l|
|00000590| 69 6e 65 20 6f 66 20 65 | 6c 69 73 70 2c 20 77 68 |ine of e|lisp, wh|
|000005a0| 61 74 20 79 6f 75 0a 73 | 65 65 20 69 6e 20 65 62 |at you.s|ee in eb|
|000005b0| 75 74 74 6f 6e 73 2e 65 | 6c 20 69 73 20 74 68 65 |uttons.e|l is the|
|000005c0| 20 72 65 73 75 6c 74 20 | 6f 66 20 64 65 6c 65 74 | result |of delet|
|000005d0| 69 6e 67 20 61 62 6f 75 | 74 20 38 30 25 20 6f 66 |ing abou|t 80% of|
|000005e0| 20 68 69 73 0a 74 61 67 | 6c 69 73 74 2e 65 6c 2e | his.tag|list.el.|
|000005f0| 20 20 54 68 65 20 58 20 | 63 6f 64 65 20 6c 6f 6f | The X |code loo|
|00000600| 6b 73 20 73 6f 6d 65 77 | 68 61 74 20 64 69 66 66 |ks somew|hat diff|
|00000610| 65 72 65 6e 74 2c 20 62 | 75 74 2c 20 61 67 61 69 |erent, b|ut, agai|
|00000620| 6e 2c 20 69 73 20 61 0a | 72 65 73 75 6c 74 20 6f |n, is a.|result o|
|00000630| 66 20 65 64 69 74 69 6e | 67 20 61 20 63 6f 70 79 |f editin|g a copy|
|00000640| 20 6f 66 20 74 61 67 6c | 69 73 74 2e 63 20 28 61 | of tagl|ist.c (a|
|00000650| 73 20 69 73 20 74 68 65 | 20 52 45 41 44 4d 45 29 |s is the| README)|
|00000660| 2e 0a 0a 54 65 72 72 79 | 20 4a 6f 6e 65 73 2e 0a |...Terry| Jones..|
|00000670| 0a 23 21 20 2f 62 69 6e | 2f 73 68 0a 23 20 54 68 |.#! /bin|/sh.# Th|
|00000680| 69 73 20 69 73 20 61 20 | 73 68 65 6c 6c 20 61 72 |is is a |shell ar|
|00000690| 63 68 69 76 65 2c 20 6d | 65 61 6e 69 6e 67 3a 0a |chive, m|eaning:.|
|000006a0| 23 20 31 2e 20 52 65 6d | 6f 76 65 20 65 76 65 72 |# 1. Rem|ove ever|
|000006b0| 79 74 68 69 6e 67 20 61 | 62 6f 76 65 20 74 68 65 |ything a|bove the|
|000006c0| 20 23 21 20 2f 62 69 6e | 2f 73 68 20 6c 69 6e 65 | #! /bin|/sh line|
|000006d0| 2e 0a 23 20 32 2e 20 53 | 61 76 65 20 74 68 65 20 |..# 2. S|ave the |
|000006e0| 72 65 73 75 6c 74 69 6e | 67 20 74 65 78 74 20 69 |resultin|g text i|
|000006f0| 6e 20 61 20 66 69 6c 65 | 2e 0a 23 20 33 2e 20 45 |n a file|..# 3. E|
|00000700| 78 65 63 75 74 65 20 74 | 68 65 20 66 69 6c 65 20 |xecute t|he file |
|00000710| 77 69 74 68 20 2f 62 69 | 6e 2f 73 68 20 28 6e 6f |with /bi|n/sh (no|
|00000720| 74 20 63 73 68 29 20 74 | 6f 20 63 72 65 61 74 65 |t csh) t|o create|
|00000730| 3a 0a 23 09 4d 61 6b 65 | 66 69 6c 65 0a 23 09 52 |:.#.Make|file.#.R|
|00000740| 45 41 44 4d 45 0a 23 09 | 65 62 75 74 74 6f 6e 73 |EADME.#.|ebuttons|
|00000750| 2e 31 0a 23 09 65 62 75 | 74 74 6f 6e 73 2e 63 0a |.1.#.ebu|ttons.c.|
|00000760| 23 09 65 62 75 74 74 6f | 6e 73 2e 65 6c 0a 23 09 |#.ebutto|ns.el.#.|
|00000770| 52 65 73 6f 75 72 63 65 | 73 0a 23 09 6d 61 6b 65 |Resource|s.#.make|
|00000780| 5f 65 62 75 74 74 6f 6e | 73 0a 23 20 54 68 69 73 |_ebutton|s.# This|
|00000790| 20 61 72 63 68 69 76 65 | 20 63 72 65 61 74 65 64 | archive| created|
|000007a0| 3a 20 57 65 64 20 4e 6f | 76 20 31 38 20 31 39 3a |: Wed No|v 18 19:|
|000007b0| 34 31 3a 31 37 20 31 39 | 39 32 0a 65 78 70 6f 72 |41:17 19|92.expor|
|000007c0| 74 20 50 41 54 48 3b 20 | 50 41 54 48 3d 2f 62 69 |t PATH; |PATH=/bi|
|000007d0| 6e 3a 2f 75 73 72 2f 62 | 69 6e 3a 24 50 41 54 48 |n:/usr/b|in:$PATH|
|000007e0| 0a 69 66 20 74 65 73 74 | 20 2d 66 20 27 4d 61 6b |.if test| -f 'Mak|
|000007f0| 65 66 69 6c 65 27 0a 74 | 68 65 6e 0a 09 65 63 68 |efile'.t|hen..ech|
|00000800| 6f 20 73 68 61 72 3a 20 | 22 77 69 6c 6c 20 6e 6f |o shar: |"will no|
|00000810| 74 20 6f 76 65 72 2d 77 | 72 69 74 65 20 65 78 69 |t over-w|rite exi|
|00000820| 73 74 69 6e 67 20 66 69 | 6c 65 20 27 4d 61 6b 65 |sting fi|le 'Make|
|00000830| 66 69 6c 65 27 22 0a 65 | 6c 73 65 0a 63 61 74 20 |file'".e|lse.cat |
|00000840| 3c 3c 20 5c 53 48 41 52 | 5f 45 4f 46 20 3e 20 27 |<< \SHAR|_EOF > '|
|00000850| 4d 61 6b 65 66 69 6c 65 | 27 0a 23 23 0a 23 23 20 |Makefile|'.##.## |
|00000860| 4d 61 6b 65 66 69 6c 65 | 20 66 6f 72 20 65 62 75 |Makefile| for ebu|
|00000870| 74 74 6f 6e 73 2e 0a 23 | 23 0a 23 23 20 54 68 65 |ttons..#|#.## The|
|00000880| 72 65 20 61 72 65 20 61 | 74 20 6d 6f 73 74 20 34 |re are a|t most 4|
|00000890| 20 74 68 69 6e 67 73 20 | 79 6f 75 20 6d 61 79 20 | things |you may |
|000008a0| 77 61 6e 74 20 74 6f 20 | 64 6f 20 74 6f 20 74 68 |want to |do to th|
|000008b0| 69 73 20 4d 61 6b 65 66 | 69 6c 65 2e 0a 23 23 0a |is Makef|ile..##.|
|000008c0| 23 23 20 20 20 20 20 31 | 29 20 43 68 61 6e 67 65 |## 1|) Change|
|000008d0| 20 74 68 65 20 4d 41 58 | 5f 42 55 54 54 4f 4e 53 | the MAX|_BUTTONS|
|000008e0| 20 76 61 6c 75 65 0a 23 | 23 20 20 20 20 20 32 29 | value.#|# 2)|
|000008f0| 20 61 6e 64 20 34 29 20 | 4d 61 6b 65 20 61 20 63 | and 4) |Make a c|
|00000900| 68 61 6e 67 65 20 69 66 | 20 79 6f 75 20 68 61 76 |hange if| you hav|
|00000910| 65 20 74 68 65 20 33 44 | 20 41 74 68 65 6e 61 20 |e the 3D| Athena |
|00000920| 77 69 64 67 65 74 20 73 | 65 74 2e 0a 23 23 20 20 |widget s|et..## |
|00000930| 20 20 20 33 29 20 61 64 | 64 20 61 20 70 61 74 68 | 3) ad|d a path|
|00000940| 20 74 6f 20 79 6f 75 72 | 20 58 20 6c 69 62 72 61 | to your| X libra|
|00000950| 72 79 2e 0a 23 23 0a 23 | 23 20 54 68 65 20 6c 6f |ry..##.#|# The lo|
|00000960| 63 61 74 69 6f 6e 73 20 | 77 68 65 72 65 20 79 6f |cations |where yo|
|00000970| 75 20 63 61 6e 20 64 6f | 20 74 68 69 73 20 61 72 |u can do| this ar|
|00000980| 65 20 6d 61 72 6b 65 64 | 20 77 69 74 68 20 74 68 |e marked| with th|
|00000990| 65 20 61 62 6f 76 65 20 | 6e 75 6d 62 65 72 73 0a |e above |numbers.|
|000009a0| 23 23 20 69 6e 20 77 68 | 61 74 20 66 6f 6c 6c 6f |## in wh|at follo|
|000009b0| 77 73 2e 0a 23 23 0a 23 | 23 20 49 20 61 6d 20 69 |ws..##.#|# I am i|
|000009c0| 6d 61 6b 65 20 69 6c 6c | 69 74 65 72 61 74 65 2c |make ill|iterate,|
|000009d0| 20 73 6f 72 72 79 2e 0a | 23 23 0a 23 23 20 54 65 | sorry..|##.## Te|
|000009e0| 72 72 79 20 4a 6f 6e 65 | 73 20 28 74 65 72 72 79 |rry Jone|s (terry|
|000009f0| 40 73 61 6e 74 61 66 65 | 2e 65 64 75 29 2c 20 4e |@santafe|.edu), N|
|00000a00| 6f 76 65 6d 62 65 72 20 | 31 38 2c 20 31 39 39 32 |ovember |18, 1992|
|00000a10| 2e 0a 23 23 20 53 61 6e | 74 61 20 46 65 20 49 6e |..## San|ta Fe In|
|00000a20| 73 74 69 74 75 74 65 0a | 23 23 0a 0a 23 0a 23 20 |stitute.|##..#.# |
|00000a30| 31 29 20 54 68 65 20 6d | 61 78 69 6d 75 6d 20 6e |1) The m|aximum n|
|00000a40| 75 6d 62 65 72 20 6f 66 | 20 62 75 74 74 6f 6e 73 |umber of| buttons|
|00000a50| 2e 0a 23 0a 4d 41 58 5f | 42 55 54 54 4f 4e 53 20 |..#.MAX_|BUTTONS |
|00000a60| 3d 20 35 30 0a 0a 0a 23 | 0a 23 20 32 29 20 43 68 |= 50...#|.# 2) Ch|
|00000a70| 61 6e 67 65 20 74 68 65 | 20 4c 49 42 53 20 6c 69 |ange the| LIBS li|
|00000a80| 6e 65 20 61 63 63 6f 72 | 64 69 6e 67 20 74 6f 20 |ne accor|ding to |
|00000a90| 77 68 65 74 68 65 72 20 | 6f 72 20 6e 6f 74 20 79 |whether |or not y|
|00000aa0| 6f 75 0a 23 20 20 20 20 | 68 61 76 65 20 74 68 65 |ou.# |have the|
|00000ab0| 20 33 64 20 41 74 68 65 | 6e 61 20 77 69 64 67 65 | 3d Athe|na widge|
|00000ac0| 74 73 20 69 6e 73 74 61 | 6c 6c 65 64 2e 20 49 66 |ts insta|lled. If|
|00000ad0| 20 69 6e 20 64 6f 75 62 | 74 2c 20 6a 75 73 74 20 | in doub|t, just |
|00000ae0| 75 73 65 0a 23 20 20 20 | 20 74 68 65 20 66 69 72 |use.# | the fir|
|00000af0| 73 74 20 6c 69 6e 65 20 | 28 77 69 74 68 20 2d 6c |st line |(with -l|
|00000b00| 58 61 77 29 2e 0a 23 0a | 23 20 33 29 20 41 64 64 |Xaw)..#.|# 3) Add|
|00000b10| 20 61 20 2d 4c 2f 70 61 | 74 68 2f 74 6f 2f 79 6f | a -L/pa|th/to/yo|
|00000b20| 75 72 2f 58 2f 6c 69 62 | 73 20 69 66 20 79 6f 75 |ur/X/lib|s if you|
|00000b30| 72 20 58 20 6c 69 62 72 | 61 72 69 65 73 20 61 72 |r X libr|aries ar|
|00000b40| 65 20 69 6e 73 74 61 6c | 6c 65 64 0a 23 20 20 20 |e instal|led.# |
|00000b50| 20 73 6f 6d 65 77 68 65 | 72 65 20 6e 6f 6e 2d 73 | somewhe|re non-s|
|00000b60| 74 61 6e 64 61 72 64 2e | 0a 23 0a 4c 49 42 53 3d |tandard.|.#.LIBS=|
|00000b70| 20 2d 6c 58 61 77 20 2d | 6c 58 6d 75 20 2d 6c 58 | -lXaw -|lXmu -lX|
|00000b80| 74 20 2d 6c 58 31 31 0a | 23 20 4c 49 42 53 3d 20 |t -lX11.|# LIBS= |
|00000b90| 2d 6c 58 61 77 33 64 20 | 2d 6c 58 6d 75 20 2d 6c |-lXaw3d |-lXmu -l|
|00000ba0| 58 74 20 2d 6c 58 31 31 | 0a 0a 0a 23 0a 23 20 34 |Xt -lX11|...#.# 4|
|00000bb0| 29 20 41 64 64 20 2d 44 | 48 41 56 45 5f 58 41 57 |) Add -D|HAVE_XAW|
|00000bc0| 33 44 20 69 66 20 79 6f | 75 20 68 61 76 65 20 74 |3D if yo|u have t|
|00000bd0| 68 65 20 33 64 20 41 74 | 68 65 6e 61 20 77 69 64 |he 3d At|hena wid|
|00000be0| 67 65 74 73 2e 0a 23 0a | 43 46 4c 41 47 53 20 3d |gets..#.|CFLAGS =|
|00000bf0| 20 2d 4f 20 2d 44 4d 41 | 58 5f 42 55 54 54 4f 4e | -O -DMA|X_BUTTON|
|00000c00| 53 3d 24 28 4d 41 58 5f | 42 55 54 54 4f 4e 53 29 |S=$(MAX_|BUTTONS)|
|00000c10| 0a 0a 0a 23 23 20 4e 6f | 74 68 69 6e 67 20 62 65 |...## No|thing be|
|00000c20| 6c 6f 77 20 68 65 72 65 | 20 73 68 6f 75 6c 64 20 |low here| should |
|00000c30| 63 68 61 6e 67 65 2e 0a | 0a 61 6c 6c 3a 20 65 62 |change..|.all: eb|
|00000c40| 75 74 74 6f 6e 73 20 65 | 62 75 74 74 6f 6e 73 2e |uttons e|buttons.|
|00000c50| 63 61 74 0a 0a 65 62 75 | 74 74 6f 6e 73 3a 20 62 |cat..ebu|ttons: b|
|00000c60| 75 74 74 6f 6e 73 20 65 | 62 75 74 74 6f 6e 73 2e |uttons e|buttons.|
|00000c70| 6f 20 0a 09 24 28 43 43 | 29 20 24 28 43 46 4c 41 |o ..$(CC|) $(CFLA|
|00000c80| 47 53 29 20 2d 6f 20 24 | 40 20 65 62 75 74 74 6f |GS) -o $|@ ebutto|
|00000c90| 6e 73 2e 6f 20 24 28 4c | 49 42 53 29 0a 0a 62 75 |ns.o $(L|IBS)..bu|
|00000ca0| 74 74 6f 6e 73 3a 0a 09 | 2e 2f 6d 61 6b 65 5f 65 |ttons:..|./make_e|
|00000cb0| 62 75 74 74 6f 6e 73 20 | 24 28 4d 41 58 5f 42 55 |buttons |$(MAX_BU|
|00000cc0| 54 54 4f 4e 53 29 0a 0a | 65 62 75 74 74 6f 6e 73 |TTONS)..|ebuttons|
|00000cd0| 2e 63 61 74 3a 20 65 62 | 75 74 74 6f 6e 73 2e 31 |.cat: eb|uttons.1|
|00000ce0| 0a 09 6e 72 6f 66 66 20 | 2d 6d 61 6e 20 65 62 75 |..nroff |-man ebu|
|00000cf0| 74 74 6f 6e 73 2e 31 20 | 3e 20 65 62 75 74 74 6f |ttons.1 |> ebutto|
|00000d00| 6e 73 2e 63 61 74 0a 63 | 6c 65 61 6e 3a 0a 09 2d |ns.cat.c|lean:..-|
|00000d10| 72 6d 20 2d 66 20 2a 2e | 6f 0a 0a 63 6c 6f 62 62 |rm -f *.|o..clobb|
|00000d20| 65 72 3a 20 63 6c 65 61 | 6e 0a 09 2d 72 6d 20 2d |er: clea|n..-rm -|
|00000d30| 66 20 65 62 75 74 74 6f | 6e 73 20 65 62 75 74 74 |f ebutto|ns ebutt|
|00000d40| 6f 6e 73 2e 68 0a 0a 0a | 53 48 41 52 5f 45 4f 46 |ons.h...|SHAR_EOF|
|00000d50| 0a 66 69 0a 69 66 20 74 | 65 73 74 20 2d 66 20 27 |.fi.if t|est -f '|
|00000d60| 52 45 41 44 4d 45 27 0a | 74 68 65 6e 0a 09 65 63 |README'.|then..ec|
|00000d70| 68 6f 20 73 68 61 72 3a | 20 22 77 69 6c 6c 20 6e |ho shar:| "will n|
|00000d80| 6f 74 20 6f 76 65 72 2d | 77 72 69 74 65 20 65 78 |ot over-|write ex|
|00000d90| 69 73 74 69 6e 67 20 66 | 69 6c 65 20 27 52 45 41 |isting f|ile 'REA|
|00000da0| 44 4d 45 27 22 0a 65 6c | 73 65 0a 63 61 74 20 3c |DME'".el|se.cat <|
|00000db0| 3c 20 5c 53 48 41 52 5f | 45 4f 46 20 3e 20 27 52 |< \SHAR_|EOF > 'R|
|00000dc0| 45 41 44 4d 45 27 0a 20 | 20 20 20 20 20 20 20 20 |EADME'. | |
|00000dd0| 20 20 20 20 20 45 62 75 | 74 74 6f 6e 73 20 2d 20 | Ebu|ttons - |
|00000de0| 61 6e 20 58 20 69 6e 74 | 65 72 66 61 63 65 20 74 |an X int|erface t|
|00000df0| 6f 20 65 6d 61 63 73 2e | 0a 0a 20 20 20 20 20 20 |o emacs.|.. |
|00000e00| 20 20 20 54 65 72 72 79 | 20 4a 6f 6e 65 73 20 28 | Terry| Jones (|
|00000e10| 74 65 72 72 79 40 73 61 | 6e 74 61 66 65 2e 65 64 |terry@sa|ntafe.ed|
|00000e20| 75 29 2c 20 4e 6f 76 65 | 6d 62 65 72 20 31 38 2c |u), Nove|mber 18,|
|00000e30| 20 31 39 39 32 2e 0a 20 | 20 20 20 20 20 20 20 20 | 1992.. | |
|00000e40| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 53 61 6e | | San|
|00000e50| 74 61 20 46 65 20 49 6e | 73 74 69 74 75 74 65 0a |ta Fe In|stitute.|
|00000e60| 0a 0a 0a 49 4e 54 52 4f | 44 55 43 54 49 4f 4e 0a |...INTRO|DUCTION.|
|00000e70| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 20 0a 0a 54 |--------|---- ..T|
|00000e80| 68 69 73 20 70 72 6f 67 | 72 61 6d 20 70 72 6f 76 |his prog|ram prov|
|00000e90| 69 64 65 73 20 61 6e 20 | 58 20 69 6e 74 65 72 66 |ides an |X interf|
|00000ea0| 61 63 65 20 74 6f 20 69 | 73 73 75 65 20 63 6f 6d |ace to i|ssue com|
|00000eb0| 6d 61 6e 64 73 20 74 6f | 20 61 6e 20 65 6d 61 63 |mands to| an emac|
|00000ec0| 73 0a 73 65 73 73 69 6f | 6e 2e 20 20 49 74 20 61 |s.sessio|n. It a|
|00000ed0| 6c 6c 6f 77 73 20 79 6f | 75 20 74 6f 20 73 70 65 |llows yo|u to spe|
|00000ee0| 63 69 66 79 20 28 69 6e | 20 61 6e 20 58 20 72 65 |cify (in| an X re|
|00000ef0| 73 6f 75 72 63 65 20 66 | 69 6c 65 29 20 6c 61 62 |source f|ile) lab|
|00000f00| 65 6c 73 20 66 6f 72 0a | 61 20 73 65 74 20 6f 66 |els for.|a set of|
|00000f10| 20 62 75 74 74 6f 6e 73 | 20 61 6e 64 20 61 20 63 | buttons| and a c|
|00000f20| 6f 6d 6d 61 6e 64 20 66 | 6f 72 20 65 61 63 68 20 |ommand f|or each |
|00000f30| 74 68 61 74 20 77 69 6c | 6c 20 62 65 20 65 78 65 |that wil|l be exe|
|00000f40| 63 75 74 65 64 20 77 68 | 65 6e 20 74 68 65 0a 63 |cuted wh|en the.c|
|00000f50| 6f 72 72 65 73 70 6f 6e | 64 69 6e 67 20 62 75 74 |orrespon|ding but|
|00000f60| 74 6f 6e 20 69 73 20 63 | 6c 69 63 6b 65 64 20 6f |ton is c|licked o|
|00000f70| 6e 20 77 69 74 68 20 74 | 68 65 20 6d 6f 75 73 65 |n with t|he mouse|
|00000f80| 2e 20 46 6f 72 20 69 6e | 73 74 61 6e 63 65 20 79 |. For in|stance y|
|00000f90| 6f 75 0a 63 61 6e 20 64 | 65 66 69 6e 65 20 62 75 |ou.can d|efine bu|
|00000fa0| 74 74 6f 6e 73 20 74 6f | 20 63 6f 6d 70 69 6c 65 |ttons to| compile|
|00000fb0| 2c 20 74 6f 20 66 69 6e | 64 20 74 68 65 20 6e 65 |, to fin|d the ne|
|00000fc0| 78 74 20 65 72 72 6f 72 | 2c 20 74 6f 20 73 61 76 |xt error|, to sav|
|00000fd0| 65 0a 62 75 66 66 65 72 | 73 2c 20 74 6f 20 6d 6f |e.buffer|s, to mo|
|00000fe0| 76 65 20 74 6f 20 74 68 | 65 20 74 6f 70 2f 62 6f |ve to th|e top/bo|
|00000ff0| 74 74 6f 6d 20 6f 66 20 | 74 68 65 20 62 75 66 66 |ttom of |the buff|
|00001000| 65 72 2c 20 74 6f 20 65 | 78 69 74 20 65 6d 61 63 |er, to e|xit emac|
|00001010| 73 20 65 74 63 2e 0a 65 | 74 63 2e 0a 0a 54 68 65 |s etc..e|tc...The|
|00001020| 20 69 64 65 61 20 69 73 | 20 74 68 61 74 20 74 68 | idea is| that th|
|00001030| 69 73 20 73 68 6f 75 6c | 64 20 62 65 20 61 20 74 |is shoul|d be a t|
|00001040| 68 69 6e 20 76 65 72 74 | 69 63 61 6c 20 77 69 6e |hin vert|ical win|
|00001050| 64 6f 77 20 74 68 61 74 | 20 73 69 74 73 20 6a 75 |dow that| sits ju|
|00001060| 73 74 0a 74 6f 20 74 68 | 65 20 73 69 64 65 20 6f |st.to th|e side o|
|00001070| 66 20 61 6e 20 65 6d 61 | 63 73 20 73 65 73 73 69 |f an ema|cs sessi|
|00001080| 6f 6e 20 61 6e 64 20 61 | 6c 6c 6f 77 73 20 66 6f |on and a|llows fo|
|00001090| 72 20 66 61 73 74 20 65 | 78 65 63 75 74 69 6f 6e |r fast e|xecution|
|000010a0| 20 6f 66 20 73 6f 6d 65 | 0a 74 68 69 6e 67 73 2e | of some|.things.|
|000010b0| 20 49 74 20 69 73 20 6e | 6f 74 20 69 6e 74 65 6e | It is n|ot inten|
|000010c0| 64 65 64 20 74 6f 20 72 | 65 70 6c 61 63 65 20 74 |ded to r|eplace t|
|000010d0| 68 65 20 6b 65 79 62 6f | 61 72 64 21 20 49 74 20 |he keybo|ard! It |
|000010e0| 6a 75 73 74 20 67 69 76 | 65 73 0a 61 6e 6f 74 68 |just giv|es.anoth|
|000010f0| 65 72 20 6f 70 74 69 6f | 6e 20 2d 20 69 66 20 79 |er optio|n - if y|
|00001100| 6f 75 72 20 68 61 6e 64 | 20 69 73 20 61 6c 72 65 |our hand| is alre|
|00001110| 61 64 79 20 6f 6e 20 74 | 68 65 20 6d 6f 75 73 65 |ady on t|he mouse|
|00001120| 2c 20 75 73 65 20 65 62 | 75 74 74 6f 6e 73 2e 0a |, use eb|uttons..|
|00001130| 49 66 20 6e 6f 74 2c 20 | 75 73 65 20 74 68 65 20 |If not, |use the |
|00001140| 6b 65 79 62 6f 61 72 64 | 2e 20 4f 72 20 61 73 20 |keyboard|. Or as |
|00001150| 79 6f 75 20 6c 69 6b 65 | 20 69 74 2e 20 54 68 65 |you like| it. The|
|00001160| 20 77 69 6e 64 6f 77 20 | 63 61 6e 20 61 6c 73 6f | window |can also|
|00001170| 20 62 65 0a 6d 61 64 65 | 20 68 6f 72 69 7a 6f 6e | be.made| horizon|
|00001180| 74 61 6c 20 28 73 65 65 | 20 62 65 6c 6f 77 29 20 |tal (see| below) |
|00001190| 62 75 74 20 74 68 65 6e | 20 6e 6f 74 20 61 73 20 |but then| not as |
|000011a0| 6d 61 6e 79 20 62 75 74 | 74 6f 6e 73 20 77 69 6c |many but|tons wil|
|000011b0| 6c 20 66 69 74 20 6f 6e | 0a 74 68 65 20 73 63 72 |l fit on|.the scr|
|000011c0| 65 65 6e 2e 0a 0a 45 62 | 75 74 74 6f 6e 73 20 69 |een...Eb|uttons i|
|000011d0| 73 20 69 6e 74 65 6e 64 | 65 64 20 74 6f 20 72 75 |s intend|ed to ru|
|000011e0| 6e 20 61 73 20 61 20 73 | 75 62 70 72 6f 63 65 73 |n as a s|ubproces|
|000011f0| 73 20 74 6f 20 61 6e 20 | 65 6d 61 63 73 20 73 65 |s to an |emacs se|
|00001200| 73 73 69 6f 6e 2e 20 20 | 49 74 20 69 73 0a 63 6f |ssion. |It is.co|
|00001210| 6e 74 72 6f 6c 6c 65 64 | 20 62 79 20 74 68 65 20 |ntrolled| by the |
|00001220| 65 6c 69 73 70 20 63 6f | 64 65 20 69 6e 20 65 62 |elisp co|de in eb|
|00001230| 75 74 74 6f 6e 73 2e 65 | 6c 2e 20 20 41 66 74 65 |uttons.e|l. Afte|
|00001240| 72 20 6c 6f 61 64 69 6e | 67 20 65 62 75 74 74 6f |r loadin|g ebutto|
|00001250| 6e 73 2e 65 6c 2c 0a 65 | 78 65 63 75 74 69 6e 67 |ns.el,.e|xecuting|
|00001260| 20 74 68 65 20 22 65 62 | 75 74 74 6f 6e 73 22 20 | the "eb|uttons" |
|00001270| 66 75 6e 63 74 69 6f 6e | 20 66 72 6f 6d 20 77 69 |function| from wi|
|00001280| 74 68 69 6e 20 65 6d 61 | 63 73 20 77 69 6c 6c 20 |thin ema|cs will |
|00001290| 73 74 61 72 74 20 74 68 | 65 20 70 72 6f 67 72 61 |start th|e progra|
|000012a0| 6d 2e 0a 53 69 6e 63 65 | 20 74 68 65 20 70 72 6f |m..Since| the pro|
|000012b0| 67 72 61 6d 20 75 73 65 | 73 20 58 2c 20 79 6f 75 |gram use|s X, you|
|000012c0| 20 68 61 76 65 20 74 6f | 20 62 65 20 72 75 6e 6e | have to| be runn|
|000012d0| 69 6e 67 20 58 2e 20 20 | 53 65 65 20 74 68 65 20 |ing X. |See the |
|000012e0| 69 6e 73 74 61 6c 6c 61 | 74 69 6f 6e 0a 6e 6f 74 |installa|tion.not|
|000012f0| 65 73 20 6c 61 74 65 72 | 20 69 6e 20 74 68 69 73 |es later| in this|
|00001300| 20 64 6f 63 75 6d 65 6e | 74 20 66 6f 72 20 6d 6f | documen|t for mo|
|00001310| 72 65 20 64 65 74 61 69 | 6c 2e 20 20 4e 6f 74 65 |re detai|l. Note|
|00001320| 20 74 68 61 74 20 74 68 | 69 73 20 70 72 6f 67 72 | that th|is progr|
|00001330| 61 6d 20 64 6f 65 73 0a | 4e 4f 54 20 72 65 71 75 |am does.|NOT requ|
|00001340| 69 72 65 20 79 6f 75 20 | 74 6f 20 75 73 65 20 74 |ire you |to use t|
|00001350| 68 65 20 58 20 76 65 72 | 73 69 6f 6e 20 6f 66 20 |he X ver|sion of |
|00001360| 65 6d 61 63 73 2e 20 20 | 59 6f 75 20 6d 75 73 74 |emacs. |You must|
|00001370| 20 62 65 20 72 75 6e 6e | 69 6e 67 20 58 2c 20 62 | be runn|ing X, b|
|00001380| 75 74 0a 79 6f 75 20 63 | 61 6e 20 75 73 65 20 74 |ut.you c|an use t|
|00001390| 68 65 20 6e 6f 6e 2d 58 | 20 76 65 72 73 69 6f 6e |he non-X| version|
|000013a0| 20 6f 66 20 65 6d 61 63 | 73 2e 0a 0a 45 62 75 74 | of emac|s...Ebut|
|000013b0| 74 6f 6e 73 20 77 61 73 | 20 69 6d 70 6c 65 6d 65 |tons was| impleme|
|000013c0| 6e 74 65 64 20 75 6e 64 | 65 72 20 47 4e 55 20 65 |nted und|er GNU e|
|000013d0| 6d 61 63 73 20 76 65 72 | 73 69 6f 6e 20 31 38 2e |macs ver|sion 18.|
|000013e0| 35 38 2e 20 49 74 20 73 | 68 6f 75 6c 64 20 72 75 |58. It s|hould ru|
|000013f0| 6e 0a 6f 6e 20 65 61 72 | 6c 69 65 72 20 76 65 72 |n.on ear|lier ver|
|00001400| 73 69 6f 6e 73 20 6f 66 | 20 47 4e 55 20 65 6d 61 |sions of| GNU ema|
|00001410| 63 73 2e 0a 0a 54 68 69 | 73 20 70 72 6f 67 72 61 |cs...Thi|s progra|
|00001420| 6d 20 69 73 20 61 64 61 | 70 74 65 64 20 66 72 6f |m is ada|pted fro|
|00001430| 6d 20 74 68 65 20 74 61 | 67 6c 69 73 74 20 66 61 |m the ta|glist fa|
|00001440| 63 69 6c 69 74 79 20 77 | 72 69 74 74 65 6e 20 62 |cility w|ritten b|
|00001450| 79 20 42 72 61 64 0a 4d | 65 61 72 73 20 28 62 6d |y Brad.M|ears (bm|
|00001460| 65 61 72 73 40 64 65 6c | 74 61 68 70 2e 6a 73 63 |ears@del|tahp.jsc|
|00001470| 2e 6e 61 73 61 2e 67 6f | 76 29 2e 20 49 6e 20 66 |.nasa.go|v). In f|
|00001480| 61 63 74 2c 20 68 65 20 | 73 68 6f 75 6c 64 20 67 |act, he |should g|
|00001490| 65 74 20 61 6c 6d 6f 73 | 74 20 61 6c 6c 0a 74 68 |et almos|t all.th|
|000014a0| 65 20 63 72 65 64 69 74 | 2e 20 49 20 68 61 76 65 |e credit|. I have|
|000014b0| 20 6e 65 76 65 72 20 77 | 72 69 74 74 65 6e 20 61 | never w|ritten a|
|000014c0| 20 6c 69 6e 65 20 6f 66 | 20 65 6c 69 73 70 20 63 | line of| elisp c|
|000014d0| 6f 64 65 2c 20 77 68 61 | 74 20 79 6f 75 20 73 65 |ode, wha|t you se|
|000014e0| 65 20 69 6e 0a 65 62 75 | 74 74 6f 6e 73 2e 65 6c |e in.ebu|ttons.el|
|000014f0| 20 69 73 20 74 68 65 20 | 72 65 73 75 6c 74 20 6f | is the |result o|
|00001500| 66 20 64 65 6c 65 74 69 | 6e 67 20 61 62 6f 75 74 |f deleti|ng about|
|00001510| 20 38 30 25 20 6f 66 20 | 68 69 73 20 74 61 67 6c | 80% of |his tagl|
|00001520| 69 73 74 2e 65 6c 2e 0a | 54 68 65 20 58 20 63 6f |ist.el..|The X co|
|00001530| 64 65 20 6c 6f 6f 6b 73 | 20 73 6f 6d 65 77 68 61 |de looks| somewha|
|00001540| 74 20 64 69 66 66 65 72 | 65 6e 74 2c 20 62 75 74 |t differ|ent, but|
|00001550| 2c 20 61 67 61 69 6e 2c | 20 69 73 20 61 20 72 65 |, again,| is a re|
|00001560| 73 75 6c 74 20 6f 66 0a | 65 64 69 74 69 6e 67 20 |sult of.|editing |
|00001570| 61 20 63 6f 70 79 20 6f | 66 20 74 61 67 6c 69 73 |a copy o|f taglis|
|00001580| 74 2e 63 20 28 61 73 20 | 69 73 20 74 68 69 73 20 |t.c (as |is this |
|00001590| 52 45 41 44 4d 45 29 2e | 0a 0a 49 20 64 65 63 69 |README).|..I deci|
|000015a0| 64 65 64 20 74 68 61 74 | 20 74 68 69 73 20 77 6f |ded that| this wo|
|000015b0| 75 6c 64 20 62 65 20 61 | 20 6e 69 63 65 20 74 68 |uld be a| nice th|
|000015c0| 69 6e 67 20 74 6f 20 68 | 61 76 65 20 61 66 74 65 |ing to h|ave afte|
|000015d0| 72 20 75 73 69 6e 67 20 | 74 61 67 6c 69 73 74 0a |r using |taglist.|
|000015e0| 66 6f 72 20 61 20 74 69 | 6d 65 20 61 6e 64 20 72 |for a ti|me and r|
|000015f0| 65 61 6c 69 7a 69 6e 67 | 20 74 68 61 74 20 49 20 |ealizing| that I |
|00001600| 6c 69 6b 65 64 20 74 68 | 65 20 63 6f 6d 6d 61 6e |liked th|e comman|
|00001610| 64 20 62 75 74 74 6f 6e | 73 20 62 65 74 74 65 72 |d button|s better|
|00001620| 20 74 68 61 6e 0a 74 68 | 65 20 74 61 67 73 2e 20 | than.th|e tags. |
|00001630| 50 6c 75 73 2c 20 74 68 | 65 20 74 61 67 73 20 6c |Plus, th|e tags l|
|00001640| 69 73 74 20 6b 65 70 74 | 20 28 6e 65 63 65 73 73 |ist kept| (necess|
|00001650| 61 72 69 6c 79 29 20 72 | 65 73 69 7a 69 6e 67 20 |arily) r|esizing |
|00001660| 61 6e 64 0a 6f 62 73 63 | 75 72 69 6e 67 20 6d 79 |and.obsc|uring my|
|00001670| 20 65 6d 61 63 73 20 77 | 69 6e 64 6f 77 2e 20 41 | emacs w|indow. A|
|00001680| 20 66 75 72 74 68 65 72 | 20 73 74 65 70 20 77 6f | further| step wo|
|00001690| 75 6c 64 20 62 65 20 74 | 6f 20 72 65 77 72 69 74 |uld be t|o rewrit|
|000016a0| 65 20 74 61 67 6c 69 73 | 74 0a 73 6f 20 74 68 61 |e taglis|t.so tha|
|000016b0| 74 20 69 74 20 64 69 64 | 6e 27 74 20 68 61 76 65 |t it did|n't have|
|000016c0| 20 61 20 73 65 74 20 6f | 66 20 62 75 74 74 6f 6e | a set o|f button|
|000016d0| 73 20 2d 20 69 74 20 63 | 6f 75 6c 64 20 62 65 20 |s - it c|ould be |
|000016e0| 63 6f 6e 74 72 6f 6c 6c | 65 64 20 66 72 6f 6d 0a |controll|ed from.|
|000016f0| 61 20 62 75 74 74 6f 6e | 20 69 6e 20 61 6e 20 65 |a button| in an e|
|00001700| 62 75 74 74 6f 6e 73 20 | 77 69 6e 64 6f 77 2e 0a |buttons |window..|
|00001710| 0a 43 4f 4d 50 4f 4e 45 | 4e 54 53 0a 2d 2d 2d 2d |.COMPONE|NTS.----|
|00001720| 2d 2d 2d 2d 2d 2d 0a 52 | 45 41 44 4d 45 20 20 20 |------.R|EADME |
|00001730| 20 20 20 20 20 20 20 2d | 20 74 68 69 73 20 66 69 | -| this fi|
|00001740| 6c 65 2e 0a 4d 61 6b 65 | 66 69 6c 65 20 20 20 20 |le..Make|file |
|00001750| 20 20 20 20 2d 20 74 68 | 61 74 20 66 69 6c 65 2e | - th|at file.|
|00001760| 0a 52 65 73 6f 75 72 63 | 65 73 20 20 20 20 20 20 |.Resourc|es |
|00001770| 20 2d 20 61 20 73 61 6d | 70 6c 65 20 73 65 74 20 | - a sam|ple set |
|00001780| 6f 66 20 72 65 73 6f 75 | 72 63 65 73 20 66 6f 72 |of resou|rces for|
|00001790| 20 74 68 69 73 20 70 72 | 6f 67 72 61 6d 2e 0a 65 | this pr|ogram..e|
|000017a0| 62 75 74 74 6f 6e 73 2e | 63 20 20 20 20 20 20 2d |buttons.|c -|
|000017b0| 20 73 6f 75 72 63 65 20 | 63 6f 64 65 2e 0a 65 62 | source |code..eb|
|000017c0| 75 74 74 6f 6e 73 2e 65 | 6c 20 20 20 20 20 2d 20 |uttons.e|l - |
|000017d0| 72 75 6e 2d 74 69 6d 65 | 20 65 6c 69 73 70 20 70 |run-time| elisp p|
|000017e0| 72 6f 67 72 61 6d 2e 0a | 65 62 75 74 74 6f 6e 73 |rogram..|ebuttons|
|000017f0| 2e 31 20 20 20 20 20 20 | 2d 20 61 20 6d 61 6e 20 |.1 |- a man |
|00001800| 70 61 67 65 2e 0a 6d 61 | 6b 65 5f 65 62 75 74 74 |page..ma|ke_ebutt|
|00001810| 6f 6e 73 20 20 20 2d 20 | 61 20 73 68 65 6c 6c 20 |ons - |a shell |
|00001820| 73 63 72 69 70 74 20 74 | 68 61 74 20 67 65 6e 65 |script t|hat gene|
|00001830| 72 61 74 65 73 20 73 6f | 6d 65 20 63 6f 64 65 20 |rates so|me code |
|00001840| 66 6f 72 20 65 62 75 74 | 74 6f 6e 73 2e 63 2e 0a |for ebut|tons.c..|
|00001850| 0a 49 4e 53 54 41 4c 4c | 41 54 49 4f 4e 0a 2d 2d |.INSTALL|ATION.--|
|00001860| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 0a 31 20 2d 20 45 |--------|--.1 - E|
|00001870| 64 69 74 20 4d 61 6b 65 | 66 69 6c 65 20 61 6e 64 |dit Make|file and|
|00001880| 20 72 75 6e 20 6d 61 6b | 65 2e 20 54 68 69 73 20 | run mak|e. This |
|00001890| 77 69 6c 6c 20 6d 61 6b | 65 20 79 6f 75 20 61 6e |will mak|e you an|
|000018a0| 20 65 78 65 63 75 74 61 | 62 6c 65 20 0a 20 20 20 | executa|ble . |
|000018b0| 20 61 6e 64 20 61 6c 73 | 6f 20 66 6f 72 6d 61 74 | and als|o format|
|000018c0| 20 74 68 65 20 6d 61 6e | 70 61 67 65 20 28 70 75 | the man|page (pu|
|000018d0| 74 74 69 6e 67 20 74 68 | 65 20 72 65 73 75 6c 74 |tting th|e result|
|000018e0| 20 69 6e 20 65 62 75 74 | 74 6f 6e 73 2e 63 61 74 | in ebut|tons.cat|
|000018f0| 29 0a 0a 32 20 2d 20 43 | 6f 70 79 20 74 68 65 20 |)..2 - C|opy the |
|00001900| 72 65 73 75 6c 74 69 6e | 67 20 65 78 65 63 75 74 |resultin|g execut|
|00001910| 61 62 6c 65 20 28 65 62 | 75 74 74 6f 6e 73 29 20 |able (eb|uttons) |
|00001920| 74 6f 20 73 6f 6d 65 20 | 64 69 72 65 63 74 6f 72 |to some |director|
|00001930| 79 20 74 68 61 74 20 69 | 73 0a 20 20 20 20 69 6e |y that i|s. in|
|00001940| 20 79 6f 75 72 20 70 61 | 74 68 2e 0a 0a 33 20 2d | your pa|th...3 -|
|00001950| 20 43 6f 70 79 20 74 68 | 65 20 65 6c 69 73 70 20 | Copy th|e elisp |
|00001960| 70 72 6f 67 72 61 6d 20 | 65 62 75 74 74 6f 6e 73 |program |ebuttons|
|00001970| 2e 65 6c 20 74 6f 20 77 | 68 65 72 65 76 65 72 20 |.el to w|herever |
|00001980| 79 6f 75 20 6b 65 65 70 | 20 79 6f 75 72 0a 20 20 |you keep| your. |
|00001990| 20 20 65 6c 69 73 70 20 | 63 6f 64 65 2e 0a 0a 34 | elisp |code...4|
|000019a0| 20 2d 20 43 75 73 74 6f | 6d 69 7a 65 20 74 68 65 | - Custo|mize the|
|000019b0| 20 6c 61 62 65 6c 73 20 | 61 6e 64 20 63 6f 6d 6d | labels |and comm|
|000019c0| 61 6e 64 73 20 75 73 65 | 64 20 62 79 20 74 68 65 |ands use|d by the|
|000019d0| 20 62 75 74 74 6f 6e 73 | 2e 20 53 65 65 20 74 68 | buttons|. See th|
|000019e0| 65 0a 20 20 20 20 66 69 | 6c 65 20 22 52 65 73 6f |e. fi|le "Reso|
|000019f0| 75 72 63 65 73 22 20 66 | 6f 72 20 65 78 61 6d 70 |urces" f|or examp|
|00001a00| 6c 65 73 2e 20 41 64 64 | 20 74 68 65 20 72 65 73 |les. Add| the res|
|00001a10| 6f 75 72 63 65 73 20 79 | 6f 75 20 77 61 6e 74 20 |ources y|ou want |
|00001a20| 74 6f 0a 20 20 20 20 79 | 6f 75 72 20 2e 58 64 65 |to. y|our .Xde|
|00001a30| 66 61 75 6c 74 73 20 6f | 72 20 2e 58 72 65 73 6f |faults o|r .Xreso|
|00001a40| 75 72 63 65 73 20 28 6f | 72 20 77 68 65 72 65 76 |urces (o|r wherev|
|00001a50| 65 72 29 20 66 69 6c 65 | 2e 0a 0a 35 20 2d 20 28 |er) file|...5 - (|
|00001a60| 4f 70 74 69 6f 6e 61 6c | 29 20 20 4d 6f 64 69 66 |Optional|) Modif|
|00001a70| 79 20 79 6f 75 72 20 2e | 65 6d 61 63 73 20 66 69 |y your .|emacs fi|
|00001a80| 6c 65 20 74 6f 20 6c 6f | 61 64 20 61 6e 64 20 72 |le to lo|ad and r|
|00001a90| 75 6e 20 65 62 75 74 74 | 6f 6e 73 20 61 74 20 73 |un ebutt|ons at s|
|00001aa0| 74 61 72 74 75 70 2e 0a | 20 20 20 20 49 20 64 6f |tartup..| I do|
|00001ab0| 20 74 68 69 73 20 76 69 | 61 3a 0a 20 20 0a 20 20 | this vi|a:. . |
|00001ac0| 20 20 28 69 66 20 28 65 | 71 75 61 6c 20 77 69 6e | (if (e|qual win|
|00001ad0| 64 6f 77 2d 73 79 73 74 | 65 6d 20 27 78 29 0a 20 |dow-syst|em 'x). |
|00001ae0| 20 20 20 20 20 20 20 28 | 70 72 6f 67 6e 0a 09 20 | (|progn.. |
|00001af0| 20 28 6c 6f 61 64 20 22 | 65 62 75 74 74 6f 6e 73 | (load "|ebuttons|
|00001b00| 22 29 0a 09 20 20 28 65 | 62 75 74 74 6f 6e 73 29 |").. (e|buttons)|
|00001b10| 29 29 0a 0a 36 20 2d 20 | 28 4f 70 74 69 6f 6e 61 |))..6 - |(Optiona|
|00001b20| 6c 29 20 4d 6f 64 69 66 | 79 20 79 6f 75 72 20 2e |l) Modif|y your .|
|00001b30| 65 6d 61 63 73 20 66 69 | 6c 65 20 73 6f 20 74 68 |emacs fi|le so th|
|00001b40| 61 74 20 65 62 75 74 74 | 6f 6e 73 2d 74 6f 67 67 |at ebutt|ons-togg|
|00001b50| 6c 65 2d 73 63 72 65 65 | 6e 0a 20 20 20 20 69 73 |le-scree|n. is|
|00001b60| 20 62 6f 75 6e 64 20 74 | 6f 20 73 6f 6d 65 20 6b | bound t|o some k|
|00001b70| 65 79 2e 0a 0a 20 20 20 | 20 28 64 65 66 69 6e 65 |ey... | (define|
|00001b80| 2d 6b 65 79 20 67 6c 6f | 62 61 6c 2d 6d 61 70 20 |-key glo|bal-map |
|00001b90| 22 5c 5e 58 74 22 20 27 | 65 62 75 74 74 6f 6e 73 |"\^Xt" '|ebuttons|
|00001ba0| 29 0a 20 20 20 20 0a 20 | 20 20 20 4e 6f 74 65 20 |). . | Note |
|00001bb0| 74 68 61 74 20 74 68 69 | 73 20 69 73 20 74 68 65 |that thi|s is the|
|00001bc0| 20 6b 65 79 20 74 68 61 | 74 20 77 61 73 20 73 75 | key tha|t was su|
|00001bd0| 67 67 65 73 74 65 64 20 | 66 6f 72 20 74 61 67 6c |ggested |for tagl|
|00001be0| 69 73 74 2c 20 73 6f 20 | 69 66 0a 20 20 20 20 79 |ist, so |if. y|
|00001bf0| 6f 75 20 77 61 6e 74 20 | 74 6f 20 75 73 65 20 62 |ou want |to use b|
|00001c00| 6f 74 68 20 61 6e 64 20 | 68 61 76 65 20 74 61 67 |oth and |have tag|
|00001c10| 6c 69 73 74 20 6f 6e 20 | 43 2d 78 20 74 2c 20 63 |list on |C-x t, c|
|00001c20| 6f 6d 65 20 75 70 20 77 | 69 74 68 20 79 6f 75 72 |ome up w|ith your|
|00001c30| 0a 20 20 20 20 6f 77 6e | 20 61 72 72 61 6e 67 65 |. own| arrange|
|00001c40| 6d 65 6e 74 2e 0a 0a 0a | 52 55 4e 4e 49 4e 47 20 |ment....|RUNNING |
|00001c50| 65 62 75 74 74 6f 6e 73 | 0a 2d 2d 2d 2d 2d 2d 2d |ebuttons|.-------|
|00001c60| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 0a 0a 54 68 65 20 73 |--------|-..The s|
|00001c70| 69 6d 70 6c 65 73 74 20 | 6d 65 74 68 6f 64 20 69 |implest |method i|
|00001c80| 73 20 74 6f 2c 20 61 73 | 20 64 65 73 63 72 69 62 |s to, as| describ|
|00001c90| 65 64 20 61 62 6f 76 65 | 2c 20 68 61 76 65 20 65 |ed above|, have e|
|00001ca0| 62 75 74 74 6f 6e 73 20 | 73 74 61 72 74 0a 61 75 |buttons |start.au|
|00001cb0| 74 6f 6d 61 74 69 63 61 | 6c 6c 79 20 77 68 65 6e |tomatica|lly when|
|00001cc0| 20 79 6f 75 72 20 65 6d | 61 63 73 20 73 74 61 72 | your em|acs star|
|00001cd0| 74 73 2e 20 4f 74 68 65 | 72 77 69 73 65 20 79 6f |ts. Othe|rwise yo|
|00001ce0| 75 20 63 61 6e 20 69 6e | 76 6f 6b 65 20 69 74 0a |u can in|voke it.|
|00001cf0| 6d 61 6e 75 61 6c 6c 79 | 20 77 69 74 68 20 4d 2d |manually| with M-|
|00001d00| 78 20 65 62 75 74 74 6f | 6e 73 20 28 6f 72 20 43 |x ebutto|ns (or C|
|00001d10| 2d 78 20 74 20 69 66 20 | 79 6f 75 20 68 61 76 65 |-x t if |you have|
|00001d20| 20 69 74 20 62 6f 75 6e | 64 20 74 68 65 72 65 29 | it boun|d there)|
|00001d30| 2e 0a 0a 54 68 65 20 28 | 65 62 75 74 74 6f 6e 73 |...The (|ebuttons|
|00001d40| 29 20 66 75 6e 63 74 69 | 6f 6e 20 68 61 73 20 74 |) functi|on has t|
|00001d50| 77 6f 20 70 75 72 70 6f | 73 65 73 2e 20 20 49 74 |wo purpo|ses. It|
|00001d60| 20 65 69 74 68 65 72 20 | 73 74 61 72 74 73 20 74 | either |starts t|
|00001d70| 68 65 20 65 62 75 74 74 | 6f 6e 73 0a 70 72 6f 67 |he ebutt|ons.prog|
|00001d80| 72 61 6d 20 6f 72 2c 20 | 69 66 20 74 68 65 20 70 |ram or, |if the p|
|00001d90| 72 6f 67 72 61 6d 20 69 | 73 20 61 6c 72 65 61 64 |rogram i|s alread|
|00001da0| 79 20 72 75 6e 6e 69 6e | 67 2c 20 73 65 6e 64 73 |y runnin|g, sends|
|00001db0| 20 61 20 73 69 67 6e 61 | 6c 20 74 6f 20 69 74 20 | a signa|l to it |
|00001dc0| 74 68 61 74 0a 63 61 75 | 73 65 73 20 74 68 65 20 |that.cau|ses the |
|00001dd0| 70 72 6f 67 72 61 6d 20 | 74 6f 20 68 69 64 65 2f |program |to hide/|
|00001de0| 65 78 70 6f 73 65 20 74 | 68 65 20 65 62 75 74 74 |expose t|he ebutt|
|00001df0| 6f 6e 73 20 77 69 6e 64 | 6f 77 2e 0a 0a 54 6f 20 |ons wind|ow...To |
|00001e00| 75 73 65 20 74 68 65 20 | 70 72 6f 67 72 61 6d 2c |use the |program,|
|00001e10| 20 73 69 6d 70 6c 79 20 | 63 6c 69 63 6b 20 6f 6e | simply |click on|
|00001e20| 20 74 68 65 20 62 75 74 | 74 6f 6e 20 74 68 61 74 | the but|ton that|
|00001e30| 20 72 65 70 72 65 73 65 | 6e 74 73 20 74 68 65 0a | represe|nts the.|
|00001e40| 63 6f 6d 6d 61 6e 64 20 | 79 6f 75 20 77 61 6e 74 |command |you want|
|00001e50| 20 65 78 65 63 75 74 65 | 64 2e 0a 0a 20 0a 52 45 | execute|d... .RE|
|00001e60| 53 4f 55 52 43 45 53 0a | 2d 2d 2d 2d 2d 2d 2d 2d |SOURCES.|--------|
|00001e70| 2d 0a 0a 59 6f 75 72 20 | 72 65 73 6f 75 72 63 65 |-..Your |resource|
|00001e80| 20 66 69 6c 65 20 73 68 | 6f 75 6c 64 20 68 61 76 | file sh|ould hav|
|00001e90| 65 20 70 61 69 72 73 20 | 6f 66 20 6c 69 6e 65 73 |e pairs |of lines|
|00001ea0| 20 6c 69 6b 65 0a 0a 20 | 20 20 20 65 62 75 74 74 | like.. | ebutt|
|00001eb0| 6f 6e 73 2e 6c 61 62 65 | 6c 58 3a 20 20 20 20 20 |ons.labe|lX: |
|00001ec0| 20 20 20 20 20 20 20 20 | 20 20 20 20 6c 61 62 65 | | labe|
|00001ed0| 6c 0a 20 20 20 20 65 62 | 75 74 74 6f 6e 73 2e 63 |l. eb|uttons.c|
|00001ee0| 6f 6d 6d 61 6e 64 58 3a | 20 20 20 20 20 20 20 20 |ommandX:| |
|00001ef0| 20 20 20 20 20 20 20 28 | 65 6d 61 63 73 2d 63 6f | (|emacs-co|
|00001f00| 6d 6d 61 6e 64 29 0a 0a | 77 68 65 72 65 20 58 20 |mmand)..|where X |
|00001f10| 69 73 20 61 6e 79 20 6e | 75 6d 62 65 72 20 66 72 |is any n|umber fr|
|00001f20| 6f 6d 20 30 20 74 6f 20 | 74 68 65 20 6e 75 6d 62 |om 0 to |the numb|
|00001f30| 65 72 20 6f 66 20 70 6f | 73 73 69 62 6c 65 20 62 |er of po|ssible b|
|00001f40| 75 74 74 6f 6e 73 20 6d | 69 6e 75 73 0a 6f 6e 65 |uttons m|inus.one|
|00001f50| 2e 20 54 68 65 20 75 70 | 70 65 72 20 6c 69 6d 69 |. The up|per limi|
|00001f60| 74 20 69 73 20 73 65 74 | 20 69 6e 20 74 68 65 20 |t is set| in the |
|00001f70| 4d 61 6b 65 66 69 6c 65 | 20 61 6e 64 20 69 73 20 |Makefile| and is |
|00001f80| 35 30 20 69 6e 20 74 68 | 65 0a 64 69 73 74 72 69 |50 in th|e.distri|
|00001f90| 62 75 74 69 6f 6e 2e 20 | 4c 61 62 65 6c 20 6e 75 |bution. |Label nu|
|00001fa0| 6d 62 65 72 73 20 6d 61 | 79 20 62 65 20 6f 6d 69 |mbers ma|y be omi|
|00001fb0| 74 74 65 64 20 28 69 2e | 65 2e 20 79 6f 75 20 63 |tted (i.|e. you c|
|00001fc0| 61 6e 20 64 65 66 69 6e | 65 20 6c 61 62 65 6c 73 |an defin|e labels|
|00001fd0| 0a 31 2c 20 32 20 61 6e | 64 20 35 2c 20 6f 6d 69 |.1, 2 an|d 5, omi|
|00001fe0| 74 74 69 6e 67 20 33 20 | 61 6e 64 20 34 29 20 2d |tting 3 |and 4) -|
|00001ff0| 20 69 66 20 79 6f 75 20 | 6f 6e 6c 79 20 64 65 66 | if you |only def|
|00002000| 69 6e 65 20 33 20 62 75 | 74 74 6f 6e 73 2c 20 6f |ine 3 bu|ttons, o|
|00002010| 6e 6c 79 20 33 0a 77 69 | 6c 6c 20 61 70 70 65 61 |nly 3.wi|ll appea|
|00002020| 72 2e 20 41 63 74 75 61 | 6c 6c 79 20 74 68 69 73 |r. Actua|lly this|
|00002030| 20 69 73 20 6e 6f 74 20 | 65 6e 74 69 72 65 6c 79 | is not |entirely|
|00002040| 20 74 72 75 65 2c 20 61 | 6e 20 65 78 74 72 61 20 | true, a|n extra |
|00002050| 62 75 74 74 6f 6e 20 28 | 74 68 65 0a 6c 61 73 74 |button (|the.last|
|00002060| 20 62 75 74 74 6f 6e 20 | 69 6e 20 74 68 65 20 77 | button |in the w|
|00002070| 69 6e 64 6f 77 29 20 69 | 73 20 61 64 64 65 64 2e |indow) i|s added.|
|00002080| 20 49 74 20 63 61 75 73 | 65 73 20 74 68 65 20 65 | It caus|es the e|
|00002090| 62 75 74 74 6f 6e 73 20 | 70 72 6f 67 72 61 6d 20 |buttons |program |
|000020a0| 74 6f 0a 65 78 69 74 20 | 61 6e 64 20 69 73 20 28 |to.exit |and is (|
|000020b0| 75 73 75 61 6c 6c 79 29 | 20 6c 61 62 65 6c 6c 65 |usually)| labelle|
|000020c0| 64 20 51 75 69 74 2e 20 | 20 59 6f 75 20 63 61 6e |d Quit. | You can|
|000020d0| 20 63 68 61 6e 67 65 20 | 74 68 65 20 6e 61 6d 65 | change |the name|
|000020e0| 20 74 68 61 74 0a 61 70 | 70 65 61 72 73 20 6f 6e | that.ap|pears on|
|000020f0| 20 74 68 69 73 20 62 75 | 74 74 6f 6e 20 28 69 66 | this bu|tton (if|
|00002100| 20 79 6f 75 20 77 69 73 | 68 29 20 77 69 74 68 3a | you wis|h) with:|
|00002110| 0a 0a 20 20 20 20 65 62 | 75 74 74 6f 6e 73 2a 51 |.. eb|uttons*Q|
|00002120| 75 69 74 2e 6c 61 62 65 | 6c 3a 20 79 6f 75 72 2d |uit.labe|l: your-|
|00002130| 6c 61 62 65 6c 0a 0a 69 | 6e 20 79 6f 75 72 20 72 |label..i|n your r|
|00002140| 65 73 6f 75 72 63 65 20 | 66 69 6c 65 2e 20 4f 74 |esource |file. Ot|
|00002150| 68 65 72 20 72 65 73 6f | 75 72 63 65 73 20 74 68 |her reso|urces th|
|00002160| 61 74 20 77 69 6c 6c 20 | 68 61 76 65 20 75 73 65 |at will |have use|
|00002170| 66 75 6c 20 65 66 66 65 | 63 74 73 0a 61 72 65 0a |ful effe|cts.are.|
|00002180| 0a 20 20 20 20 65 62 75 | 74 74 6f 6e 73 2a 43 6f |. ebu|ttons*Co|
|00002190| 6d 6d 61 6e 64 2e 62 6f | 72 64 65 72 57 69 64 74 |mmand.bo|rderWidt|
|000021a0| 68 0a 20 20 20 20 65 62 | 75 74 74 6f 6e 73 2a 42 |h. eb|uttons*B|
|000021b0| 6f 78 2e 6f 72 69 65 6e | 74 61 74 69 6f 6e 0a 20 |ox.orien|tation. |
|000021c0| 20 20 20 65 62 75 74 74 | 6f 6e 73 2a 42 6f 78 2e | ebutt|ons*Box.|
|000021d0| 68 53 70 61 63 65 0a 20 | 20 20 20 65 62 75 74 74 |hSpace. | ebutt|
|000021e0| 6f 6e 73 2a 42 6f 78 2e | 76 53 70 61 63 65 0a 20 |ons*Box.|vSpace. |
|000021f0| 20 20 20 65 62 75 74 74 | 6f 6e 73 2e 67 65 6f 6d | ebutt|ons.geom|
|00002200| 65 74 72 79 0a 20 20 20 | 20 65 62 75 74 74 6f 6e |etry. | ebutton|
|00002210| 73 2a 62 61 63 6b 67 72 | 6f 75 6e 64 0a 20 20 20 |s*backgr|ound. |
|00002220| 20 65 62 75 74 74 6f 6e | 73 2a 66 6f 6e 74 0a 0a | ebutton|s*font..|
|00002230| 4c 6f 6f 6b 20 69 6e 20 | 74 68 65 20 52 65 73 6f |Look in |the Reso|
|00002240| 75 72 63 65 73 20 66 69 | 6c 65 20 66 6f 72 20 61 |urces fi|le for a|
|00002250| 6e 20 65 78 61 6d 70 6c | 65 20 6f 66 20 73 65 74 |n exampl|e of set|
|00002260| 74 69 6e 67 73 20 66 6f | 72 20 74 68 65 73 65 2e |tings fo|r these.|
|00002270| 20 4d 79 0a 70 72 65 66 | 65 72 65 6e 63 65 20 69 | My.pref|erence i|
|00002280| 73 20 74 6f 20 68 61 76 | 65 20 74 68 65 20 65 62 |s to hav|e the eb|
|00002290| 75 74 74 6f 6e 73 20 77 | 69 6e 64 6f 77 20 74 61 |uttons w|indow ta|
|000022a0| 6b 65 20 75 70 20 61 73 | 20 6c 69 74 74 6c 65 20 |ke up as| little |
|000022b0| 73 70 61 63 65 20 61 73 | 0a 70 6f 73 73 69 62 6c |space as|.possibl|
|000022c0| 65 2c 20 73 6f 20 49 20 | 75 73 65 20 61 20 73 6d |e, so I |use a sm|
|000022d0| 61 6c 6c 20 66 6f 6e 74 | 20 61 6e 64 20 6c 65 61 |all font| and lea|
|000022e0| 76 65 20 6e 6f 20 76 65 | 72 74 69 63 61 6c 20 6f |ve no ve|rtical o|
|000022f0| 72 20 68 6f 72 69 7a 6f | 6e 74 61 6c 0a 73 70 61 |r horizo|ntal.spa|
|00002300| 63 65 20 62 65 74 77 65 | 65 6e 20 74 68 65 20 63 |ce betwe|en the c|
|00002310| 6f 6d 6d 61 6e 64 20 62 | 75 74 74 6f 6e 73 2e 0a |ommand b|uttons..|
|00002320| 53 48 41 52 5f 45 4f 46 | 0a 66 69 0a 69 66 20 74 |SHAR_EOF|.fi.if t|
|00002330| 65 73 74 20 2d 66 20 27 | 65 62 75 74 74 6f 6e 73 |est -f '|ebuttons|
|00002340| 2e 31 27 0a 74 68 65 6e | 0a 09 65 63 68 6f 20 73 |.1'.then|..echo s|
|00002350| 68 61 72 3a 20 22 77 69 | 6c 6c 20 6e 6f 74 20 6f |har: "wi|ll not o|
|00002360| 76 65 72 2d 77 72 69 74 | 65 20 65 78 69 73 74 69 |ver-writ|e existi|
|00002370| 6e 67 20 66 69 6c 65 20 | 27 65 62 75 74 74 6f 6e |ng file |'ebutton|
|00002380| 73 2e 31 27 22 0a 65 6c | 73 65 0a 63 61 74 20 3c |s.1'".el|se.cat <|
|00002390| 3c 20 5c 53 48 41 52 5f | 45 4f 46 20 3e 20 27 65 |< \SHAR_|EOF > 'e|
|000023a0| 62 75 74 74 6f 6e 73 2e | 31 27 0a 2e 54 48 20 45 |buttons.|1'..TH E|
|000023b0| 42 55 54 54 4f 4e 53 20 | 31 20 22 31 38 20 4e 6f |BUTTONS |1 "18 No|
|000023c0| 76 65 6d 62 65 72 20 31 | 39 39 32 22 0a 2e 53 48 |vember 1|992"..SH|
|000023d0| 20 4e 41 4d 45 0a 65 62 | 75 74 74 6f 6e 73 20 5c | NAME.eb|uttons \|
|000023e0| 2d 20 70 6f 70 75 70 20 | 62 75 74 74 6f 6e 73 20 |- popup |buttons |
|000023f0| 66 6f 72 20 67 69 76 69 | 6e 67 20 63 6f 6d 6d 61 |for givi|ng comma|
|00002400| 6e 64 73 20 74 6f 20 61 | 6e 20 65 6d 61 63 73 20 |nds to a|n emacs |
|00002410| 73 65 73 73 69 6f 6e 2e | 0a 2e 53 48 20 53 59 4e |session.|..SH SYN|
|00002420| 4f 50 53 49 53 0a 2e 42 | 20 4d 2d 78 20 65 62 75 |OPSIS..B| M-x ebu|
|00002430| 74 74 6f 6e 73 0a 69 6e | 73 69 64 65 20 65 6d 61 |ttons.in|side ema|
|00002440| 63 73 2c 20 6f 72 0a 2e | 42 20 28 65 62 75 74 74 |cs, or..|B (ebutt|
|00002450| 6f 6e 73 29 20 0a 69 6e | 20 61 6e 20 65 6d 61 63 |ons) .in| an emac|
|00002460| 73 20 73 74 61 72 74 75 | 70 20 66 69 6c 65 2e 0a |s startu|p file..|
|00002470| 2e 53 48 20 44 45 53 43 | 52 49 50 54 49 4f 4e 0a |.SH DESC|RIPTION.|
|00002480| 2e 42 20 45 62 75 74 74 | 6f 6e 73 0a 70 72 6f 76 |.B Ebutt|ons.prov|
|00002490| 69 64 65 73 20 61 6e 20 | 58 20 69 6e 74 65 72 66 |ides an |X interf|
|000024a0| 61 63 65 20 74 6f 20 69 | 73 73 75 65 20 63 6f 6d |ace to i|ssue com|
|000024b0| 6d 61 6e 64 73 20 74 6f | 20 61 6e 20 65 6d 61 63 |mands to| an emac|
|000024c0| 73 0a 73 65 73 73 69 6f | 6e 2e 20 20 49 74 20 61 |s.sessio|n. It a|
|000024d0| 6c 6c 6f 77 73 20 79 6f | 75 20 74 6f 20 73 70 65 |llows yo|u to spe|
|000024e0| 63 69 66 79 20 28 69 6e | 20 61 6e 20 58 20 72 65 |cify (in| an X re|
|000024f0| 73 6f 75 72 63 65 20 66 | 69 6c 65 29 20 6c 61 62 |source f|ile) lab|
|00002500| 65 6c 73 20 66 6f 72 0a | 61 20 73 65 74 20 6f 66 |els for.|a set of|
|00002510| 20 62 75 74 74 6f 6e 73 | 20 61 6e 64 20 61 20 63 | buttons| and a c|
|00002520| 6f 6d 6d 61 6e 64 20 66 | 6f 72 20 65 61 63 68 20 |ommand f|or each |
|00002530| 74 68 61 74 20 77 69 6c | 6c 20 62 65 20 65 78 65 |that wil|l be exe|
|00002540| 63 75 74 65 64 20 77 68 | 65 6e 20 74 68 65 0a 63 |cuted wh|en the.c|
|00002550| 6f 72 72 65 73 70 6f 6e | 64 69 6e 67 20 62 75 74 |orrespon|ding but|
|00002560| 74 6f 6e 20 69 73 20 63 | 6c 69 63 6b 65 64 20 6f |ton is c|licked o|
|00002570| 6e 20 77 69 74 68 20 74 | 68 65 20 6d 6f 75 73 65 |n with t|he mouse|
|00002580| 2e 20 46 6f 72 20 69 6e | 73 74 61 6e 63 65 20 79 |. For in|stance y|
|00002590| 6f 75 0a 63 61 6e 20 64 | 65 66 69 6e 65 20 62 75 |ou.can d|efine bu|
|000025a0| 74 74 6f 6e 73 20 74 6f | 20 63 6f 6d 70 69 6c 65 |ttons to| compile|
|000025b0| 2c 20 74 6f 20 66 69 6e | 64 20 74 68 65 20 6e 65 |, to fin|d the ne|
|000025c0| 78 74 20 65 72 72 6f 72 | 2c 20 74 6f 20 73 61 76 |xt error|, to sav|
|000025d0| 65 0a 62 75 66 66 65 72 | 73 2c 20 74 6f 20 6d 6f |e.buffer|s, to mo|
|000025e0| 76 65 20 74 6f 20 74 68 | 65 20 74 6f 70 2f 62 6f |ve to th|e top/bo|
|000025f0| 74 74 6f 6d 20 6f 66 20 | 74 68 65 20 62 75 66 66 |ttom of |the buff|
|00002600| 65 72 2c 20 74 6f 20 65 | 78 69 74 20 65 6d 61 63 |er, to e|xit emac|
|00002610| 73 20 65 74 63 2e 0a 0a | 54 68 65 20 69 64 65 61 |s etc...|The idea|
|00002620| 20 69 73 20 74 68 61 74 | 20 74 68 69 73 20 73 68 | is that| this sh|
|00002630| 6f 75 6c 64 20 62 65 20 | 61 20 74 68 69 6e 20 76 |ould be |a thin v|
|00002640| 65 72 74 69 63 61 6c 20 | 77 69 6e 64 6f 77 20 74 |ertical |window t|
|00002650| 68 61 74 20 73 69 74 73 | 20 6a 75 73 74 0a 74 6f |hat sits| just.to|
|00002660| 20 74 68 65 20 73 69 64 | 65 20 6f 66 20 61 6e 20 | the sid|e of an |
|00002670| 65 6d 61 63 73 20 73 65 | 73 73 69 6f 6e 20 61 6e |emacs se|ssion an|
|00002680| 64 20 61 6c 6c 6f 77 73 | 20 66 6f 72 20 66 61 73 |d allows| for fas|
|00002690| 74 20 65 78 65 63 75 74 | 69 6f 6e 20 6f 66 20 73 |t execut|ion of s|
|000026a0| 6f 6d 65 0a 74 68 69 6e | 67 73 2e 20 49 74 20 69 |ome.thin|gs. It i|
|000026b0| 73 20 6e 6f 74 20 69 6e | 74 65 6e 64 65 64 20 74 |s not in|tended t|
|000026c0| 6f 20 72 65 70 6c 61 63 | 65 20 74 68 65 20 6b 65 |o replac|e the ke|
|000026d0| 79 62 6f 61 72 64 21 20 | 49 74 20 6a 75 73 74 20 |yboard! |It just |
|000026e0| 67 69 76 65 73 0a 61 6e | 6f 74 68 65 72 20 6f 70 |gives.an|other op|
|000026f0| 74 69 6f 6e 20 2d 20 69 | 66 20 79 6f 75 72 20 68 |tion - i|f your h|
|00002700| 61 6e 64 20 69 73 20 61 | 6c 72 65 61 64 79 20 6f |and is a|lready o|
|00002710| 6e 20 74 68 65 20 6d 6f | 75 73 65 2c 20 75 73 65 |n the mo|use, use|
|00002720| 20 0a 2e 42 52 20 65 62 | 75 74 74 6f 6e 73 20 2e | ..BR eb|uttons .|
|00002730| 0a 49 66 20 6e 6f 74 2c | 20 75 73 65 20 74 68 65 |.If not,| use the|
|00002740| 20 6b 65 79 62 6f 61 72 | 64 2e 20 4f 72 20 61 73 | keyboar|d. Or as|
|00002750| 20 79 6f 75 20 6c 69 6b | 65 20 69 74 2e 20 54 68 | you lik|e it. Th|
|00002760| 65 20 77 69 6e 64 6f 77 | 20 63 61 6e 20 61 6c 73 |e window| can als|
|00002770| 6f 20 62 65 0a 6d 61 64 | 65 20 68 6f 72 69 7a 6f |o be.mad|e horizo|
|00002780| 6e 74 61 6c 20 28 73 65 | 65 20 62 65 6c 6f 77 29 |ntal (se|e below)|
|00002790| 20 62 75 74 20 74 68 65 | 6e 20 6e 6f 74 20 61 73 | but the|n not as|
|000027a0| 20 6d 61 6e 79 20 62 75 | 74 74 6f 6e 73 20 77 69 | many bu|ttons wi|
|000027b0| 6c 6c 20 66 69 74 20 6f | 6e 0a 74 68 65 20 73 63 |ll fit o|n.the sc|
|000027c0| 72 65 65 6e 2e 0a 2e 53 | 48 20 53 54 41 52 54 55 |reen...S|H STARTU|
|000027d0| 50 0a 54 68 65 20 73 69 | 6d 70 6c 65 73 74 20 6d |P.The si|mplest m|
|000027e0| 65 74 68 6f 64 20 69 73 | 20 74 6f 20 61 75 74 6f |ethod is| to auto|
|000027f0| 6d 61 74 69 63 61 6c 6c | 79 20 73 74 61 72 74 20 |maticall|y start |
|00002800| 0a 2e 42 20 65 62 75 74 | 74 6f 6e 73 0a 77 68 65 |..B ebut|tons.whe|
|00002810| 6e 20 79 6f 75 20 65 6e | 74 65 72 20 65 6d 61 63 |n you en|ter emac|
|00002820| 73 2e 20 54 68 69 73 20 | 63 61 6e 20 62 65 20 64 |s. This |can be d|
|00002830| 6f 6e 65 20 62 79 20 61 | 64 64 69 6e 67 20 74 68 |one by a|dding th|
|00002840| 65 20 66 6f 6c 6c 6f 77 | 69 6e 67 20 74 6f 20 79 |e follow|ing to y|
|00002850| 6f 75 72 20 2e 65 6d 61 | 63 73 20 66 69 6c 65 2e |our .ema|cs file.|
|00002860| 0a 2e 73 70 0a 20 20 20 | 20 28 69 66 20 28 65 71 |..sp. | (if (eq|
|00002870| 75 61 6c 20 77 69 6e 64 | 6f 77 2d 73 79 73 74 65 |ual wind|ow-syste|
|00002880| 6d 20 27 78 29 0a 2e 62 | 72 0a 20 20 20 20 20 20 |m 'x)..b|r. |
|00002890| 20 20 28 70 72 6f 67 6e | 0a 2e 62 72 0a 09 20 20 | (progn|..br.. |
|000028a0| 20 20 20 20 28 6c 6f 61 | 64 20 22 65 62 75 74 74 | (loa|d "ebutt|
|000028b0| 6f 6e 73 22 29 0a 2e 62 | 72 0a 09 20 20 20 20 20 |ons")..b|r.. |
|000028c0| 20 28 65 62 75 74 74 6f | 6e 73 29 29 29 0a 2e 53 | (ebutto|ns)))..S|
|000028d0| 48 20 22 4b 45 59 20 42 | 49 4e 44 49 4e 47 53 22 |H "KEY B|INDINGS"|
|000028e0| 0a 49 74 20 69 73 20 75 | 73 65 66 75 6c 20 74 6f |.It is u|seful to|
|000028f0| 20 62 69 6e 64 20 28 65 | 62 75 74 74 6f 6e 73 29 | bind (e|buttons)|
|00002900| 20 74 6f 20 73 6f 6d 65 | 20 6b 65 79 20 69 6e 73 | to some| key ins|
|00002910| 69 64 65 20 65 6d 61 63 | 73 2e 20 54 68 69 73 20 |ide emac|s. This |
|00002920| 66 75 6e 63 74 69 6f 6e | 20 0a 73 74 61 72 74 73 |function| .starts|
|00002930| 20 74 68 65 20 70 72 6f | 67 72 61 6d 20 69 66 20 | the pro|gram if |
|00002940| 69 74 20 69 73 20 6e 6f | 74 20 61 6c 72 65 61 64 |it is no|t alread|
|00002950| 79 20 72 75 6e 6e 69 6e | 67 20 0a 61 6e 64 20 74 |y runnin|g .and t|
|00002960| 6f 67 67 6c 65 73 20 69 | 74 73 20 76 69 73 69 62 |oggles i|ts visib|
|00002970| 69 6c 69 74 79 20 6f 74 | 68 65 72 77 69 73 65 2e |ility ot|herwise.|
|00002980| 20 54 68 65 20 73 69 6d | 70 6c 65 73 74 20 77 61 | The sim|plest wa|
|00002990| 79 20 74 6f 20 64 6f 20 | 74 68 69 73 20 69 73 0a |y to do |this is.|
|000029a0| 74 6f 20 70 75 74 20 73 | 6f 6d 65 74 68 69 6e 67 |to put s|omething|
|000029b0| 20 6c 69 6b 65 0a 2e 73 | 70 0a 20 20 20 20 28 64 | like..s|p. (d|
|000029c0| 65 66 69 6e 65 2d 6b 65 | 79 20 67 6c 6f 62 61 6c |efine-ke|y global|
|000029d0| 2d 6d 61 70 20 22 5c 5e | 58 74 22 20 27 65 62 75 |-map "\^|Xt" 'ebu|
|000029e0| 74 74 6f 6e 73 29 0a 2e | 73 70 0a 69 6e 20 79 6f |ttons)..|sp.in yo|
|000029f0| 75 72 20 2e 65 6d 61 63 | 73 20 66 69 6c 65 2e 20 |ur .emac|s file. |
|00002a00| 54 68 69 73 20 62 69 6e | 64 73 20 74 68 65 20 63 |This bin|ds the c|
|00002a10| 6f 6d 6d 61 6e 64 20 74 | 6f 20 74 68 65 20 6b 65 |ommand t|o the ke|
|00002a20| 79 73 74 72 6f 6b 65 20 | 63 6f 6e 74 72 6f 6c 2d |ystroke |control-|
|00002a30| 58 20 74 2e 0a 2e 53 48 | 20 52 45 53 4f 55 52 43 |X t...SH| RESOURC|
|00002a40| 45 53 0a 59 6f 75 72 20 | 72 65 73 6f 75 72 63 65 |ES.Your |resource|
|00002a50| 20 66 69 6c 65 20 73 68 | 6f 75 6c 64 20 68 61 76 | file sh|ould hav|
|00002a60| 65 20 70 61 69 72 73 20 | 6f 66 20 6c 69 6e 65 73 |e pairs |of lines|
|00002a70| 20 6c 69 6b 65 0a 2e 73 | 70 0a 20 20 20 20 65 62 | like..s|p. eb|
|00002a80| 75 74 74 6f 6e 73 2e 6c | 61 62 65 6c 58 3a 20 20 |uttons.l|abelX: |
|00002a90| 20 20 20 20 20 20 20 6c | 61 62 65 6c 0a 2e 62 72 | l|abel..br|
|00002aa0| 0a 20 20 20 20 65 62 75 | 74 74 6f 6e 73 2e 63 6f |. ebu|ttons.co|
|00002ab0| 6d 6d 61 6e 64 58 3a 20 | 20 20 20 20 20 20 28 65 |mmandX: | (e|
|00002ac0| 6d 61 63 73 2d 63 6f 6d | 6d 61 6e 64 29 0a 2e 73 |macs-com|mand)..s|
|00002ad0| 70 0a 77 68 65 72 65 20 | 58 20 69 73 20 61 6e 79 |p.where |X is any|
|00002ae0| 20 6e 75 6d 62 65 72 20 | 66 72 6f 6d 20 30 20 74 | number |from 0 t|
|00002af0| 6f 20 74 68 65 20 6e 75 | 6d 62 65 72 20 6f 66 20 |o the nu|mber of |
|00002b00| 70 6f 73 73 69 62 6c 65 | 20 62 75 74 74 6f 6e 73 |possible| buttons|
|00002b10| 20 6d 69 6e 75 73 0a 6f | 6e 65 2e 20 54 68 65 20 | minus.o|ne. The |
|00002b20| 75 70 70 65 72 20 6c 69 | 6d 69 74 20 69 73 20 73 |upper li|mit is s|
|00002b30| 65 74 20 69 6e 20 74 68 | 65 20 4d 61 6b 65 66 69 |et in th|e Makefi|
|00002b40| 6c 65 20 61 6e 64 20 69 | 73 20 35 30 20 69 6e 20 |le and i|s 50 in |
|00002b50| 74 68 65 0a 64 69 73 74 | 72 69 62 75 74 69 6f 6e |the.dist|ribution|
|00002b60| 2e 20 4c 61 62 65 6c 20 | 6e 75 6d 62 65 72 73 20 |. Label |numbers |
|00002b70| 6d 61 79 20 62 65 20 6f | 6d 69 74 74 65 64 20 28 |may be o|mitted (|
|00002b80| 69 2e 65 2e 20 79 6f 75 | 20 63 61 6e 20 64 65 66 |i.e. you| can def|
|00002b90| 69 6e 65 20 6c 61 62 65 | 6c 73 0a 31 2c 20 32 20 |ine labe|ls.1, 2 |
|00002ba0| 61 6e 64 20 35 2c 20 6f | 6d 69 74 74 69 6e 67 20 |and 5, o|mitting |
|00002bb0| 33 20 61 6e 64 20 34 29 | 2e 20 49 66 20 79 6f 75 |3 and 4)|. If you|
|00002bc0| 20 6f 6e 6c 79 20 64 65 | 66 69 6e 65 20 33 20 62 | only de|fine 3 b|
|00002bd0| 75 74 74 6f 6e 73 2c 20 | 6f 6e 6c 79 20 33 0a 77 |uttons, |only 3.w|
|00002be0| 69 6c 6c 20 61 70 70 65 | 61 72 2e 20 41 63 74 75 |ill appe|ar. Actu|
|00002bf0| 61 6c 6c 79 20 74 68 69 | 73 20 69 73 20 6e 6f 74 |ally thi|s is not|
|00002c00| 20 65 6e 74 69 72 65 6c | 79 20 74 72 75 65 2c 20 | entirel|y true, |
|00002c10| 61 6e 20 65 78 74 72 61 | 20 62 75 74 74 6f 6e 20 |an extra| button |
|00002c20| 28 74 68 65 0a 6c 61 73 | 74 20 62 75 74 74 6f 6e |(the.las|t button|
|00002c30| 20 69 6e 20 74 68 65 20 | 77 69 6e 64 6f 77 29 20 | in the |window) |
|00002c40| 69 73 20 61 64 64 65 64 | 2e 20 49 74 20 63 61 75 |is added|. It cau|
|00002c50| 73 65 73 20 74 68 65 20 | 0a 2e 42 20 65 62 75 74 |ses the |..B ebut|
|00002c60| 74 6f 6e 73 20 0a 70 72 | 6f 67 72 61 6d 20 74 6f |tons .pr|ogram to|
|00002c70| 0a 65 78 69 74 20 61 6e | 64 20 69 73 20 28 75 73 |.exit an|d is (us|
|00002c80| 75 61 6c 6c 79 29 20 6c | 61 62 65 6c 6c 65 64 20 |ually) l|abelled |
|00002c90| 51 75 69 74 2e 20 20 59 | 6f 75 20 63 61 6e 20 63 |Quit. Y|ou can c|
|00002ca0| 68 61 6e 67 65 20 74 68 | 65 20 6e 61 6d 65 20 74 |hange th|e name t|
|00002cb0| 68 61 74 0a 61 70 70 65 | 61 72 73 20 6f 6e 20 74 |hat.appe|ars on t|
|00002cc0| 68 69 73 20 62 75 74 74 | 6f 6e 20 28 69 66 20 79 |his butt|on (if y|
|00002cd0| 6f 75 20 77 69 73 68 29 | 20 77 69 74 68 3a 0a 2e |ou wish)| with:..|
|00002ce0| 73 70 0a 20 20 20 20 65 | 62 75 74 74 6f 6e 73 2a |sp. e|buttons*|
|00002cf0| 51 75 69 74 2e 6c 61 62 | 65 6c 3a 20 79 6f 75 72 |Quit.lab|el: your|
|00002d00| 2d 6c 61 62 65 6c 0a 2e | 73 70 0a 69 6e 20 79 6f |-label..|sp.in yo|
|00002d10| 75 72 20 72 65 73 6f 75 | 72 63 65 20 66 69 6c 65 |ur resou|rce file|
|00002d20| 2e 20 4f 74 68 65 72 20 | 72 65 73 6f 75 72 63 65 |. Other |resource|
|00002d30| 73 20 74 68 61 74 20 77 | 69 6c 6c 20 68 61 76 65 |s that w|ill have|
|00002d40| 20 75 73 65 66 75 6c 20 | 65 66 66 65 63 74 73 0a | useful |effects.|
|00002d50| 61 72 65 0a 2e 73 70 0a | 20 20 20 20 65 62 75 74 |are..sp.| ebut|
|00002d60| 74 6f 6e 73 2a 43 6f 6d | 6d 61 6e 64 2e 62 6f 72 |tons*Com|mand.bor|
|00002d70| 64 65 72 57 69 64 74 68 | 0a 20 20 20 20 65 62 75 |derWidth|. ebu|
|00002d80| 74 74 6f 6e 73 2a 42 6f | 78 2e 6f 72 69 65 6e 74 |ttons*Bo|x.orient|
|00002d90| 61 74 69 6f 6e 0a 20 20 | 20 20 65 62 75 74 74 6f |ation. | ebutto|
|00002da0| 6e 73 2a 42 6f 78 2e 68 | 53 70 61 63 65 0a 20 20 |ns*Box.h|Space. |
|00002db0| 20 20 65 62 75 74 74 6f | 6e 73 2a 42 6f 78 2e 76 | ebutto|ns*Box.v|
|00002dc0| 53 70 61 63 65 0a 20 20 | 20 20 65 62 75 74 74 6f |Space. | ebutto|
|00002dd0| 6e 73 2e 67 65 6f 6d 65 | 74 72 79 0a 20 20 20 20 |ns.geome|try. |
|00002de0| 65 62 75 74 74 6f 6e 73 | 2a 62 61 63 6b 67 72 6f |ebuttons|*backgro|
|00002df0| 75 6e 64 0a 20 20 20 20 | 65 62 75 74 74 6f 6e 73 |und. |ebuttons|
|00002e00| 2a 66 6f 6e 74 0a 2e 73 | 70 0a 54 68 65 20 6f 72 |*font..s|p.The or|
|00002e10| 69 65 6e 74 61 74 69 6f | 6e 20 72 65 73 6f 75 72 |ientatio|n resour|
|00002e20| 63 65 20 63 61 6e 20 62 | 65 20 73 65 74 20 74 6f |ce can b|e set to|
|00002e30| 20 22 68 6f 72 69 7a 6f | 6e 74 61 6c 22 20 6f 72 | "horizo|ntal" or|
|00002e40| 20 22 76 65 72 74 69 63 | 61 6c 22 20 28 74 68 65 | "vertic|al" (the|
|00002e50| 20 64 65 66 61 75 6c 74 | 29 2e 0a 4c 6f 6f 6b 20 | default|)..Look |
|00002e60| 69 6e 20 74 68 65 20 52 | 65 73 6f 75 72 63 65 73 |in the R|esources|
|00002e70| 20 66 69 6c 65 20 69 6e | 20 74 68 65 20 64 69 73 | file in| the dis|
|00002e80| 74 72 69 62 75 74 69 6f | 6e 20 66 6f 72 20 61 6e |tributio|n for an|
|00002e90| 20 65 78 61 6d 70 6c 65 | 20 6f 66 20 73 65 74 74 | example| of sett|
|00002ea0| 69 6e 67 73 20 66 6f 72 | 20 74 68 65 73 65 0a 72 |ings for| these.r|
|00002eb0| 65 73 6f 75 72 63 65 73 | 2e 20 4d 79 20 70 72 65 |esources|. My pre|
|00002ec0| 66 65 72 65 6e 63 65 20 | 69 73 20 74 6f 20 68 61 |ference |is to ha|
|00002ed0| 76 65 20 74 68 65 20 0a | 2e 42 20 65 62 75 74 74 |ve the .|.B ebutt|
|00002ee0| 6f 6e 73 20 0a 77 69 6e | 64 6f 77 20 74 61 6b 65 |ons .win|dow take|
|00002ef0| 20 75 70 20 61 73 20 6c | 69 74 74 6c 65 20 73 70 | up as l|ittle sp|
|00002f00| 61 63 65 20 61 73 0a 70 | 6f 73 73 69 62 6c 65 2c |ace as.p|ossible,|
|00002f10| 20 73 6f 20 49 20 75 73 | 65 20 61 20 73 6d 61 6c | so I us|e a smal|
|00002f20| 6c 20 66 6f 6e 74 20 61 | 6e 64 20 6c 65 61 76 65 |l font a|nd leave|
|00002f30| 20 6e 6f 20 76 65 72 74 | 69 63 61 6c 20 6f 72 20 | no vert|ical or |
|00002f40| 68 6f 72 69 7a 6f 6e 74 | 61 6c 0a 73 70 61 63 65 |horizont|al.space|
|00002f50| 20 62 65 74 77 65 65 6e | 20 74 68 65 20 63 6f 6d | between| the com|
|00002f60| 6d 61 6e 64 20 62 75 74 | 74 6f 6e 73 2e 0a 2e 53 |mand but|tons...S|
|00002f70| 48 20 22 53 45 45 20 41 | 4c 53 4f 22 0a 54 68 65 |H "SEE A|LSO".The|
|00002f80| 20 52 45 41 44 4d 45 20 | 69 6e 20 74 68 65 20 64 | README |in the d|
|00002f90| 69 73 74 72 69 62 75 74 | 69 6f 6e 20 61 6e 64 0a |istribut|ion and.|
|00002fa0| 2e 42 20 54 61 67 6c 69 | 73 74 20 0a 62 79 20 42 |.B Tagli|st .by B|
|00002fb0| 72 61 64 20 4d 65 61 72 | 73 20 28 62 6d 65 61 72 |rad Mear|s (bmear|
|00002fc0| 73 40 64 65 6c 74 61 68 | 70 2e 6a 73 63 2e 6e 61 |s@deltah|p.jsc.na|
|00002fd0| 73 61 2e 67 6f 76 29 20 | 66 72 6f 6d 20 77 68 69 |sa.gov) |from whi|
|00002fe0| 63 68 20 74 68 69 73 20 | 70 72 6f 67 72 61 6d 0a |ch this |program.|
|00002ff0| 77 61 73 20 64 69 73 74 | 69 6c 6c 65 64 2e 0a 2e |was dist|illed...|
|00003000| 53 48 20 41 55 54 48 4f | 52 0a 54 65 72 72 79 20 |SH AUTHO|R.Terry |
|00003010| 4a 6f 6e 65 73 20 28 74 | 65 72 72 79 40 73 61 6e |Jones (t|erry@san|
|00003020| 74 61 66 65 2e 65 64 75 | 29 0a 2e 62 72 0a 53 61 |tafe.edu|)..br.Sa|
|00003030| 6e 74 61 20 46 65 20 49 | 6e 73 74 69 74 75 74 65 |nta Fe I|nstitute|
|00003040| 0a 2e 62 72 0a 4e 6f 76 | 65 6d 62 65 72 20 31 38 |..br.Nov|ember 18|
|00003050| 2c 20 31 39 39 32 2e 0a | 53 48 41 52 5f 45 4f 46 |, 1992..|SHAR_EOF|
|00003060| 0a 66 69 0a 69 66 20 74 | 65 73 74 20 2d 66 20 27 |.fi.if t|est -f '|
|00003070| 65 62 75 74 74 6f 6e 73 | 2e 63 27 0a 74 68 65 6e |ebuttons|.c'.then|
|00003080| 0a 09 65 63 68 6f 20 73 | 68 61 72 3a 20 22 77 69 |..echo s|har: "wi|
|00003090| 6c 6c 20 6e 6f 74 20 6f | 76 65 72 2d 77 72 69 74 |ll not o|ver-writ|
|000030a0| 65 20 65 78 69 73 74 69 | 6e 67 20 66 69 6c 65 20 |e existi|ng file |
|000030b0| 27 65 62 75 74 74 6f 6e | 73 2e 63 27 22 0a 65 6c |'ebutton|s.c'".el|
|000030c0| 73 65 0a 63 61 74 20 3c | 3c 20 5c 53 48 41 52 5f |se.cat <|< \SHAR_|
|000030d0| 45 4f 46 20 3e 20 27 65 | 62 75 74 74 6f 6e 73 2e |EOF > 'e|buttons.|
|000030e0| 63 27 0a 2f 2a 0a 20 2a | 20 58 20 69 6e 74 65 72 |c'./*. *| X inter|
|000030f0| 66 61 63 65 20 74 6f 20 | 45 6d 61 63 73 2e 0a 20 |face to |Emacs.. |
|00003100| 2a 20 43 6f 70 79 72 69 | 67 68 74 20 28 43 29 20 |* Copyri|ght (C) |
|00003110| 31 39 39 32 20 20 54 65 | 72 72 79 20 4a 6f 6e 65 |1992 Te|rry Jone|
|00003120| 73 0a 20 2a 20 28 42 61 | 73 65 64 20 28 68 65 61 |s. * (Ba|sed (hea|
|00003130| 76 69 6c 79 29 20 6f 6e | 20 74 68 65 20 74 61 67 |vily) on| the tag|
|00003140| 6c 69 73 74 20 66 61 63 | 69 6c 69 74 79 20 77 72 |list fac|ility wr|
|00003150| 69 74 74 65 6e 20 62 79 | 20 42 72 61 64 20 4d 65 |itten by| Brad Me|
|00003160| 61 72 73 29 0a 20 2a 0a | 20 2a 20 54 68 69 73 20 |ars). *.| * This |
|00003170| 66 69 6c 65 20 69 73 20 | 70 61 72 74 20 6f 66 20 |file is |part of |
|00003180| 65 62 75 74 74 6f 6e 73 | 0a 20 2a 0a 20 2a 20 45 |ebuttons|. *. * E|
|00003190| 62 75 74 74 6f 6e 73 20 | 69 73 20 66 72 65 65 20 |buttons |is free |
|000031a0| 73 6f 66 74 77 61 72 65 | 3b 20 79 6f 75 20 63 61 |software|; you ca|
|000031b0| 6e 20 72 65 64 69 73 74 | 72 69 62 75 74 65 20 69 |n redist|ribute i|
|000031c0| 74 20 61 6e 64 2f 6f 72 | 20 6d 6f 64 69 66 79 0a |t and/or| modify.|
|000031d0| 20 2a 20 69 74 20 75 6e | 64 65 72 20 74 68 65 20 | * it un|der the |
|000031e0| 74 65 72 6d 73 20 6f 66 | 20 74 68 65 20 47 4e 55 |terms of| the GNU|
|000031f0| 20 47 65 6e 65 72 61 6c | 20 50 75 62 6c 69 63 20 | General| Public |
|00003200| 4c 69 63 65 6e 73 65 20 | 61 73 20 70 75 62 6c 69 |License |as publi|
|00003210| 73 68 65 64 20 62 79 0a | 20 2a 20 74 68 65 20 46 |shed by.| * the F|
|00003220| 72 65 65 20 53 6f 66 74 | 77 61 72 65 20 46 6f 75 |ree Soft|ware Fou|
|00003230| 6e 64 61 74 69 6f 6e 3b | 20 65 69 74 68 65 72 20 |ndation;| either |
|00003240| 76 65 72 73 69 6f 6e 20 | 31 2c 20 6f 72 20 28 61 |version |1, or (a|
|00003250| 74 20 79 6f 75 72 20 6f | 70 74 69 6f 6e 29 0a 20 |t your o|ption). |
|00003260| 2a 20 61 6e 79 20 6c 61 | 74 65 72 20 76 65 72 73 |* any la|ter vers|
|00003270| 69 6f 6e 2e 0a 20 2a 0a | 20 2a 20 54 68 65 20 47 |ion.. *.| * The G|
|00003280| 4e 55 20 47 65 6e 65 72 | 61 6c 20 50 75 62 6c 69 |NU Gener|al Publi|
|00003290| 63 20 4c 69 63 65 6e 73 | 65 20 63 61 6e 20 62 65 |c Licens|e can be|
|000032a0| 20 6f 62 74 61 69 6e 65 | 64 20 76 69 61 20 61 6e | obtaine|d via an|
|000032b0| 6f 6e 79 6d 6f 75 73 20 | 66 74 70 20 66 72 6f 6d |onymous |ftp from|
|000032c0| 0a 20 2a 20 70 72 65 70 | 2e 61 69 2e 6d 69 74 2e |. * prep|.ai.mit.|
|000032d0| 65 64 75 20 61 73 20 70 | 75 62 2f 67 6e 75 2f 43 |edu as p|ub/gnu/C|
|000032e0| 4f 50 59 49 4e 47 20 6f | 72 20 70 75 62 2f 67 6e |OPYING o|r pub/gn|
|000032f0| 75 2f 43 4f 50 59 49 4e | 47 2d 32 2e 0a 20 2a 0a |u/COPYIN|G-2.. *.|
|00003300| 20 2a 20 45 62 75 74 74 | 6f 6e 73 20 69 73 20 64 | * Ebutt|ons is d|
|00003310| 69 73 74 72 69 62 75 74 | 65 64 20 69 6e 20 74 68 |istribut|ed in th|
|00003320| 65 20 68 6f 70 65 20 74 | 68 61 74 20 69 74 20 77 |e hope t|hat it w|
|00003330| 69 6c 6c 20 62 65 20 75 | 73 65 66 75 6c 2c 0a 20 |ill be u|seful,. |
|00003340| 2a 20 62 75 74 20 57 49 | 54 48 4f 55 54 20 41 4e |* but WI|THOUT AN|
|00003350| 59 20 57 41 52 52 41 4e | 54 59 3b 20 77 69 74 68 |Y WARRAN|TY; with|
|00003360| 6f 75 74 20 65 76 65 6e | 20 74 68 65 20 69 6d 70 |out even| the imp|
|00003370| 6c 69 65 64 20 77 61 72 | 72 61 6e 74 79 20 6f 66 |lied war|ranty of|
|00003380| 0a 20 2a 20 4d 45 52 43 | 48 41 4e 54 41 42 49 4c |. * MERC|HANTABIL|
|00003390| 49 54 59 20 6f 72 20 46 | 49 54 4e 45 53 53 20 46 |ITY or F|ITNESS F|
|000033a0| 4f 52 20 41 20 50 41 52 | 54 49 43 55 4c 41 52 20 |OR A PAR|TICULAR |
|000033b0| 50 55 52 50 4f 53 45 2e | 20 20 53 65 65 20 74 68 |PURPOSE.| See th|
|000033c0| 65 0a 20 2a 20 47 4e 55 | 20 47 65 6e 65 72 61 6c |e. * GNU| General|
|000033d0| 20 50 75 62 6c 69 63 20 | 4c 69 63 65 6e 73 65 20 | Public |License |
|000033e0| 66 6f 72 20 6d 6f 72 65 | 20 64 65 74 61 69 6c 73 |for more| details|
|000033f0| 2e 0a 20 2a 2f 0a 0a 2f | 2a 0a 20 2a 20 54 68 69 |.. */../|*. * Thi|
|00003400| 73 20 70 72 6f 76 69 64 | 65 73 20 61 20 70 6f 69 |s provid|es a poi|
|00003410| 6e 74 2d 61 6e 64 2d 63 | 6c 69 63 6b 20 63 6f 6d |nt-and-c|lick com|
|00003420| 6d 61 6e 64 20 69 6e 74 | 65 72 66 61 63 65 20 74 |mand int|erface t|
|00003430| 6f 20 61 6e 20 0a 20 2a | 20 65 6d 61 63 73 20 73 |o an . *| emacs s|
|00003440| 65 73 73 69 6f 6e 2e 20 | 20 54 68 69 73 20 77 6f |ession. | This wo|
|00003450| 6e 27 74 20 62 65 20 6d | 75 63 68 20 75 73 65 20 |n't be m|uch use |
|00003460| 77 69 74 68 6f 75 74 20 | 65 62 75 74 74 6f 6e 73 |without |ebuttons|
|00003470| 2e 65 6c 2e 0a 20 2a 20 | 53 65 65 20 74 68 65 20 |.el.. * |See the |
|00003480| 52 45 41 44 4d 45 20 66 | 6f 72 20 64 65 74 61 69 |README f|or detai|
|00003490| 6c 73 20 6f 6e 20 75 73 | 65 2e 0a 20 2a 2f 0a 0a |ls on us|e.. */..|
|000034a0| 23 69 6e 63 6c 75 64 65 | 20 3c 73 74 64 69 6f 2e |#include| <stdio.|
|000034b0| 68 3e 0a 0a 23 69 6e 63 | 6c 75 64 65 20 3c 58 31 |h>..#inc|lude <X1|
|000034c0| 31 2f 49 6e 74 72 69 6e | 73 69 63 2e 68 3e 0a 23 |1/Intrin|sic.h>.#|
|000034d0| 69 6e 63 6c 75 64 65 20 | 3c 58 31 31 2f 53 74 72 |include |<X11/Str|
|000034e0| 69 6e 67 44 65 66 73 2e | 68 3e 0a 23 69 6e 63 6c |ingDefs.|h>.#incl|
|000034f0| 75 64 65 20 3c 58 31 31 | 2f 53 68 65 6c 6c 2e 68 |ude <X11|/Shell.h|
|00003500| 3e 0a 0a 23 69 66 64 65 | 66 20 48 41 56 45 5f 58 |>..#ifde|f HAVE_X|
|00003510| 41 57 33 44 0a 23 69 6e | 63 6c 75 64 65 20 3c 58 |AW3D.#in|clude <X|
|00003520| 31 31 2f 58 61 77 33 64 | 2f 42 6f 78 2e 68 3e 0a |11/Xaw3d|/Box.h>.|
|00003530| 23 69 6e 63 6c 75 64 65 | 20 3c 58 31 31 2f 58 61 |#include| <X11/Xa|
|00003540| 77 33 64 2f 43 6f 6d 6d | 61 6e 64 2e 68 3e 0a 23 |w3d/Comm|and.h>.#|
|00003550| 65 6c 73 65 0a 23 69 6e | 63 6c 75 64 65 20 3c 58 |else.#in|clude <X|
|00003560| 31 31 2f 58 61 77 33 64 | 2f 42 6f 78 2e 68 3e 0a |11/Xaw3d|/Box.h>.|
|00003570| 23 69 6e 63 6c 75 64 65 | 20 3c 58 31 31 2f 58 61 |#include| <X11/Xa|
|00003580| 77 33 64 2f 43 6f 6d 6d | 61 6e 64 2e 68 3e 0a 23 |w3d/Comm|and.h>.#|
|00003590| 65 6e 64 69 66 0a 0a 73 | 74 61 74 69 63 20 76 6f |endif..s|tatic vo|
|000035a0| 69 64 20 63 72 65 61 74 | 65 5f 62 75 74 74 6f 6e |id creat|e_button|
|000035b0| 73 28 29 3b 0a 73 74 61 | 74 69 63 20 76 6f 69 64 |s();.sta|tic void|
|000035c0| 20 62 75 74 74 6f 6e 5f | 70 72 65 73 73 28 29 3b | button_|press();|
|000035d0| 0a 76 6f 69 64 20 74 6f | 67 67 6c 65 5f 76 69 73 |.void to|ggle_vis|
|000035e0| 69 62 69 6c 69 74 79 28 | 29 3b 0a 0a 74 79 70 65 |ibility(|);..type|
|000035f0| 64 65 66 20 73 74 72 75 | 63 74 20 7b 0a 20 20 20 |def stru|ct {. |
|00003600| 20 53 74 72 69 6e 67 20 | 6c 61 62 65 6c 73 5b 4d | String |labels[M|
|00003610| 41 58 5f 42 55 54 54 4f | 4e 53 5d 3b 0a 20 20 20 |AX_BUTTO|NS];. |
|00003620| 20 53 74 72 69 6e 67 20 | 63 6f 6d 6d 61 6e 64 73 | String |commands|
|00003630| 5b 4d 41 58 5f 42 55 54 | 54 4f 4e 53 5d 3b 0a 7d |[MAX_BUT|TONS];.}|
|00003640| 20 41 70 70 52 65 73 6f | 75 72 63 65 73 3b 0a 0a | AppReso|urces;..|
|00003650| 73 74 61 74 69 63 20 41 | 70 70 52 65 73 6f 75 72 |static A|ppResour|
|00003660| 63 65 73 20 61 70 70 52 | 65 73 6f 75 72 63 65 73 |ces appR|esources|
|00003670| 3b 0a 73 74 61 74 69 63 | 20 57 69 64 67 65 74 20 |;.static| Widget |
|00003680| 74 6f 70 6c 65 76 65 6c | 3b 20 20 20 20 20 20 20 |toplevel|; |
|00003690| 20 20 20 20 20 0a 0a 23 | 69 6e 63 6c 75 64 65 20 | ..#|include |
|000036a0| 22 65 62 75 74 74 6f 6e | 73 2e 68 22 0a 0a 69 6e |"ebutton|s.h"..in|
|000036b0| 74 20 0a 6d 61 69 6e 28 | 61 72 67 63 2c 20 61 72 |t .main(|argc, ar|
|000036c0| 67 76 29 0a 69 6e 74 20 | 61 72 67 63 3b 0a 63 68 |gv).int |argc;.ch|
|000036d0| 61 72 20 2a 2a 61 72 67 | 76 3b 0a 7b 0a 20 20 20 |ar **arg|v;.{. |
|000036e0| 58 74 41 70 70 43 6f 6e | 74 65 78 74 20 61 70 70 |XtAppCon|text app|
|000036f0| 43 6f 6e 74 65 78 74 3b | 0a 0a 20 20 20 74 6f 70 |Context;|.. top|
|00003700| 6c 65 76 65 6c 20 3d 20 | 58 74 41 70 70 49 6e 69 |level = |XtAppIni|
|00003710| 74 69 61 6c 69 7a 65 28 | 26 61 70 70 43 6f 6e 74 |tialize(|&appCont|
|00003720| 65 78 74 2c 20 22 65 62 | 75 74 74 6f 6e 73 22 2c |ext, "eb|uttons",|
|00003730| 20 4e 55 4c 4c 2c 20 30 | 2c 20 26 61 72 67 63 2c | NULL, 0|, &argc,|
|00003740| 20 61 72 67 76 2c 20 4e | 55 4c 4c 2c 20 4e 55 4c | argv, N|ULL, NUL|
|00003750| 4c 2c 20 30 29 3b 0a 20 | 20 20 58 74 47 65 74 41 |L, 0);. | XtGetA|
|00003760| 70 70 6c 69 63 61 74 69 | 6f 6e 52 65 73 6f 75 72 |pplicati|onResour|
|00003770| 63 65 73 28 74 6f 70 6c | 65 76 65 6c 2c 20 28 58 |ces(topl|evel, (X|
|00003780| 74 50 6f 69 6e 74 65 72 | 29 26 61 70 70 52 65 73 |tPointer|)&appRes|
|00003790| 6f 75 72 63 65 73 2c 20 | 72 65 73 6f 75 72 63 65 |ources, |resource|
|000037a0| 73 2c 20 58 74 4e 75 6d | 62 65 72 28 72 65 73 6f |s, XtNum|ber(reso|
|000037b0| 75 72 63 65 73 29 2c 20 | 4e 55 4c 4c 2c 20 30 29 |urces), |NULL, 0)|
|000037c0| 3b 0a 20 20 20 63 72 65 | 61 74 65 5f 62 75 74 74 |;. cre|ate_butt|
|000037d0| 6f 6e 73 28 74 6f 70 6c | 65 76 65 6c 29 3b 0a 20 |ons(topl|evel);. |
|000037e0| 20 20 58 74 41 70 70 41 | 64 64 49 6e 70 75 74 28 | XtAppA|ddInput(|
|000037f0| 61 70 70 43 6f 6e 74 65 | 78 74 2c 20 66 69 6c 65 |appConte|xt, file|
|00003800| 6e 6f 28 73 74 64 69 6e | 29 2c 20 58 74 49 6e 70 |no(stdin|), XtInp|
|00003810| 75 74 52 65 61 64 4d 61 | 73 6b 2c 20 74 6f 67 67 |utReadMa|sk, togg|
|00003820| 6c 65 5f 76 69 73 69 62 | 69 6c 69 74 79 2c 20 4e |le_visib|ility, N|
|00003830| 55 4c 4c 29 3b 0a 20 20 | 20 58 74 52 65 61 6c 69 |ULL);. | XtReali|
|00003840| 7a 65 57 69 64 67 65 74 | 28 74 6f 70 6c 65 76 65 |zeWidget|(topleve|
|00003850| 6c 29 3b 0a 20 20 20 58 | 74 41 70 70 4d 61 69 6e |l);. X|tAppMain|
|00003860| 4c 6f 6f 70 28 61 70 70 | 43 6f 6e 74 65 78 74 29 |Loop(app|Context)|
|00003870| 3b 0a 20 20 20 72 65 74 | 75 72 6e 20 30 3b 0a 7d |;. ret|urn 0;.}|
|00003880| 0a 0a 0a 2f 2a 0a 20 2a | 20 43 61 6c 6c 62 61 63 |.../*. *| Callbac|
|00003890| 6b 20 66 6f 72 20 74 68 | 65 20 63 6f 6e 66 69 67 |k for th|e config|
|000038a0| 75 72 61 62 6c 65 20 63 | 6f 6d 6d 61 6e 64 20 62 |urable c|ommand b|
|000038b0| 75 74 74 6f 6e 73 2e 20 | 20 54 68 65 20 71 75 69 |uttons. | The qui|
|000038c0| 74 20 62 75 74 74 6f 6e | 0a 20 2a 20 68 61 73 20 |t button|. * has |
|000038d0| 6e 6f 20 61 73 73 6f 63 | 69 61 74 65 64 20 63 6f |no assoc|iated co|
|000038e0| 6d 6d 61 6e 64 2e 0a 20 | 2a 2f 0a 73 74 61 74 69 |mmand.. |*/.stati|
|000038f0| 63 20 76 6f 69 64 20 0a | 62 75 74 74 6f 6e 5f 70 |c void .|button_p|
|00003900| 72 65 73 73 28 77 2c 20 | 63 6f 6d 6d 61 6e 64 2c |ress(w, |command,|
|00003910| 20 64 75 6d 6d 79 29 0a | 57 69 64 67 65 74 20 20 | dummy).|Widget |
|00003920| 77 3b 0a 58 74 50 6f 69 | 6e 74 65 72 20 63 6f 6d |w;.XtPoi|nter com|
|00003930| 6d 61 6e 64 3b 20 0a 58 | 74 50 6f 69 6e 74 65 72 |mand; .X|tPointer|
|00003940| 20 64 75 6d 6d 79 3b 0a | 7b 0a 20 20 20 69 66 20 | dummy;.|{. if |
|00003950| 28 21 63 6f 6d 6d 61 6e | 64 29 7b 0a 20 20 20 20 |(!comman|d){. |
|00003960| 20 20 65 78 69 74 28 30 | 29 3b 0a 20 20 7d 0a 0a | exit(0|);. }..|
|00003970| 20 20 20 70 72 69 6e 74 | 66 28 22 25 73 22 2c 20 | print|f("%s", |
|00003980| 28 53 74 72 69 6e 67 29 | 63 6f 6d 6d 61 6e 64 29 |(String)|command)|
|00003990| 3b 0a 20 20 20 66 66 6c | 75 73 68 28 73 74 64 6f |;. ffl|ush(stdo|
|000039a0| 75 74 29 3b 0a 20 20 20 | 72 65 74 75 72 6e 3b 0a |ut);. |return;.|
|000039b0| 7d 0a 0a 0a 73 74 61 74 | 69 63 20 76 6f 69 64 20 |}...stat|ic void |
|000039c0| 0a 63 72 65 61 74 65 5f | 62 75 74 74 6f 6e 73 28 |.create_|buttons(|
|000039d0| 70 61 72 65 6e 74 29 0a | 57 69 64 67 65 74 20 70 |parent).|Widget p|
|000039e0| 61 72 65 6e 74 3b 0a 7b | 0a 20 20 20 20 57 69 64 |arent;.{|. Wid|
|000039f0| 67 65 74 20 63 6d 64 73 | 5b 4d 41 58 5f 42 55 54 |get cmds|[MAX_BUT|
|00003a00| 54 4f 4e 53 5d 3b 0a 20 | 20 20 20 57 69 64 67 65 |TONS];. | Widge|
|00003a10| 74 20 63 6d 64 62 6f 78 | 3b 20 20 20 20 20 20 20 |t cmdbox|; |
|00003a20| 20 20 20 20 20 20 20 0a | 20 20 20 20 57 69 64 67 | .| Widg|
|00003a30| 65 74 20 71 75 69 74 3b | 0a 20 20 20 20 69 6e 74 |et quit;|. int|
|00003a40| 20 69 3b 0a 20 20 20 20 | 44 69 6d 65 6e 73 69 6f | i;. |Dimensio|
|00003a50| 6e 20 77 69 64 74 68 3b | 0a 20 20 20 20 44 69 6d |n width;|. Dim|
|00003a60| 65 6e 73 69 6f 6e 20 6d | 61 78 5f 77 69 64 74 68 |ension m|ax_width|
|00003a70| 20 3d 20 30 3b 0a 20 20 | 20 20 0a 20 20 20 20 63 | = 0;. | . c|
|00003a80| 6d 64 62 6f 78 20 3d 20 | 58 74 43 72 65 61 74 65 |mdbox = |XtCreate|
|00003a90| 4d 61 6e 61 67 65 64 57 | 69 64 67 65 74 28 22 63 |ManagedW|idget("c|
|00003aa0| 6d 64 62 6f 78 22 2c 20 | 62 6f 78 57 69 64 67 65 |mdbox", |boxWidge|
|00003ab0| 74 43 6c 61 73 73 2c 20 | 70 61 72 65 6e 74 2c 20 |tClass, |parent, |
|00003ac0| 4e 55 4c 4c 2c 20 30 29 | 3b 0a 20 20 20 20 0a 20 |NULL, 0)|;. . |
|00003ad0| 20 20 20 66 6f 72 20 28 | 69 20 3d 20 30 3b 20 69 | for (|i = 0; i|
|00003ae0| 20 3c 20 4d 41 58 5f 42 | 55 54 54 4f 4e 53 3b 20 | < MAX_B|UTTONS; |
|00003af0| 69 2b 2b 29 20 7b 0a 09 | 69 66 20 28 61 70 70 52 |i++) {..|if (appR|
|00003b00| 65 73 6f 75 72 63 65 73 | 2e 6c 61 62 65 6c 73 5b |esources|.labels[|
|00003b10| 69 5d 20 26 26 20 61 70 | 70 52 65 73 6f 75 72 63 |i] && ap|pResourc|
|00003b20| 65 73 2e 63 6f 6d 6d 61 | 6e 64 73 5b 69 5d 29 7b |es.comma|nds[i]){|
|00003b30| 0a 09 20 20 20 20 63 6d | 64 73 5b 69 5d 20 3d 20 |.. cm|ds[i] = |
|00003b40| 58 74 43 72 65 61 74 65 | 4d 61 6e 61 67 65 64 57 |XtCreate|ManagedW|
|00003b50| 69 64 67 65 74 28 61 70 | 70 52 65 73 6f 75 72 63 |idget(ap|pResourc|
|00003b60| 65 73 2e 6c 61 62 65 6c | 73 5b 69 5d 2c 20 63 6f |es.label|s[i], co|
|00003b70| 6d 6d 61 6e 64 57 69 64 | 67 65 74 43 6c 61 73 73 |mmandWid|getClass|
|00003b80| 2c 20 63 6d 64 62 6f 78 | 2c 20 4e 55 4c 4c 2c 20 |, cmdbox|, NULL, |
|00003b90| 30 29 3b 0a 09 20 20 20 | 20 58 74 41 64 64 43 61 |0);.. | XtAddCa|
|00003ba0| 6c 6c 62 61 63 6b 28 63 | 6d 64 73 5b 69 5d 2c 20 |llback(c|mds[i], |
|00003bb0| 58 74 4e 63 61 6c 6c 62 | 61 63 6b 2c 20 62 75 74 |XtNcallb|ack, but|
|00003bc0| 74 6f 6e 5f 70 72 65 73 | 73 2c 20 28 58 74 50 6f |ton_pres|s, (XtPo|
|00003bd0| 69 6e 74 65 72 29 61 70 | 70 52 65 73 6f 75 72 63 |inter)ap|pResourc|
|00003be0| 65 73 2e 63 6f 6d 6d 61 | 6e 64 73 5b 69 5d 29 3b |es.comma|nds[i]);|
|00003bf0| 0a 09 0a 09 20 20 20 20 | 58 74 56 61 47 65 74 56 |.... |XtVaGetV|
|00003c00| 61 6c 75 65 73 28 63 6d | 64 73 5b 69 5d 2c 20 58 |alues(cm|ds[i], X|
|00003c10| 74 4e 77 69 64 74 68 2c | 20 26 77 69 64 74 68 2c |tNwidth,| &width,|
|00003c20| 20 4e 55 4c 4c 29 3b 0a | 09 20 20 20 20 0a 09 20 | NULL);.|. .. |
|00003c30| 20 20 20 69 66 20 28 6d | 61 78 5f 77 69 64 74 68 | if (m|ax_width|
|00003c40| 20 3c 20 77 69 64 74 68 | 29 7b 0a 09 09 6d 61 78 | < width|){...max|
|00003c50| 5f 77 69 64 74 68 20 3d | 20 77 69 64 74 68 3b 0a |_width =| width;.|
|00003c60| 09 20 20 20 20 7d 0a 09 | 7d 0a 20 20 20 20 7d 0a |. }..|}. }.|
|00003c70| 20 20 20 20 0a 20 20 20 | 20 71 75 69 74 20 3d 20 | . | quit = |
|00003c80| 58 74 43 72 65 61 74 65 | 4d 61 6e 61 67 65 64 57 |XtCreate|ManagedW|
|00003c90| 69 64 67 65 74 28 22 51 | 75 69 74 22 2c 20 63 6f |idget("Q|uit", co|
|00003ca0| 6d 6d 61 6e 64 57 69 64 | 67 65 74 43 6c 61 73 73 |mmandWid|getClass|
|00003cb0| 2c 20 63 6d 64 62 6f 78 | 2c 20 4e 55 4c 4c 2c 20 |, cmdbox|, NULL, |
|00003cc0| 30 29 3b 0a 20 20 20 20 | 58 74 41 64 64 43 61 6c |0);. |XtAddCal|
|00003cd0| 6c 62 61 63 6b 28 71 75 | 69 74 2c 20 58 74 4e 63 |lback(qu|it, XtNc|
|00003ce0| 61 6c 6c 62 61 63 6b 2c | 20 62 75 74 74 6f 6e 5f |allback,| button_|
|00003cf0| 70 72 65 73 73 2c 20 4e | 55 4c 4c 29 3b 0a 20 20 |press, N|ULL);. |
|00003d00| 20 20 0a 20 20 20 20 58 | 74 56 61 47 65 74 56 61 | . X|tVaGetVa|
|00003d10| 6c 75 65 73 28 71 75 69 | 74 2c 20 58 74 4e 77 69 |lues(qui|t, XtNwi|
|00003d20| 64 74 68 2c 20 26 77 69 | 64 74 68 2c 20 4e 55 4c |dth, &wi|dth, NUL|
|00003d30| 4c 29 3b 0a 20 20 20 20 | 0a 20 20 20 20 69 66 20 |L);. |. if |
|00003d40| 28 6d 61 78 5f 77 69 64 | 74 68 20 3c 20 77 69 64 |(max_wid|th < wid|
|00003d50| 74 68 29 7b 0a 09 6d 61 | 78 5f 77 69 64 74 68 20 |th){..ma|x_width |
|00003d60| 3d 20 77 69 64 74 68 3b | 0a 20 20 20 20 7d 0a 20 |= width;|. }. |
|00003d70| 20 20 20 0a 20 20 20 20 | 2f 2a 20 53 65 74 20 61 | . |/* Set a|
|00003d80| 6c 6c 20 74 68 65 20 62 | 75 74 74 6f 6e 73 20 74 |ll the b|uttons t|
|00003d90| 6f 20 74 68 65 20 73 61 | 6d 65 20 77 69 64 74 68 |o the sa|me width|
|00003da0| 20 2a 2f 0a 20 20 20 20 | 66 6f 72 20 28 69 20 3d | */. |for (i =|
|00003db0| 20 30 3b 20 69 20 3c 20 | 4d 41 58 5f 42 55 54 54 | 0; i < |MAX_BUTT|
|00003dc0| 4f 4e 53 3b 20 69 2b 2b | 29 20 7b 0a 09 69 66 20 |ONS; i++|) {..if |
|00003dd0| 28 61 70 70 52 65 73 6f | 75 72 63 65 73 2e 6c 61 |(appReso|urces.la|
|00003de0| 62 65 6c 73 5b 69 5d 20 | 26 26 20 61 70 70 52 65 |bels[i] |&& appRe|
|00003df0| 73 6f 75 72 63 65 73 2e | 63 6f 6d 6d 61 6e 64 73 |sources.|commands|
|00003e00| 5b 69 5d 29 7b 0a 09 20 | 20 20 20 58 74 56 61 53 |[i]){.. | XtVaS|
|00003e10| 65 74 56 61 6c 75 65 73 | 28 63 6d 64 73 5b 69 5d |etValues|(cmds[i]|
|00003e20| 2c 20 58 74 4e 77 69 64 | 74 68 2c 20 6d 61 78 5f |, XtNwid|th, max_|
|00003e30| 77 69 64 74 68 2c 20 4e | 55 4c 4c 29 3b 0a 09 7d |width, N|ULL);..}|
|00003e40| 0a 20 20 20 20 7d 0a 20 | 20 20 20 0a 20 20 20 20 |. }. | . |
|00003e50| 58 74 56 61 53 65 74 56 | 61 6c 75 65 73 28 71 75 |XtVaSetV|alues(qu|
|00003e60| 69 74 2c 20 58 74 4e 77 | 69 64 74 68 2c 20 6d 61 |it, XtNw|idth, ma|
|00003e70| 78 5f 77 69 64 74 68 2c | 20 4e 55 4c 4c 29 3b 0a |x_width,| NULL);.|
|00003e80| 20 20 20 20 0a 20 20 20 | 20 72 65 74 75 72 6e 3b | . | return;|
|00003e90| 0a 7d 0a 0a 0a 76 6f 69 | 64 20 0a 74 6f 67 67 6c |.}...voi|d .toggl|
|00003ea0| 65 5f 76 69 73 69 62 69 | 6c 69 74 79 28 63 6c 69 |e_visibi|lity(cli|
|00003eb0| 65 6e 74 5f 64 61 74 61 | 2c 20 64 75 6d 6d 79 31 |ent_data|, dummy1|
|00003ec0| 2c 20 64 75 6d 6d 79 32 | 29 0a 58 74 50 6f 69 6e |, dummy2|).XtPoin|
|00003ed0| 74 65 72 20 63 6c 69 65 | 6e 74 5f 64 61 74 61 3b |ter clie|nt_data;|
|00003ee0| 0a 69 6e 74 20 2a 64 75 | 6d 6d 79 31 3b 0a 58 74 |.int *du|mmy1;.Xt|
|00003ef0| 49 6e 70 75 74 49 64 20 | 2a 64 75 6d 6d 79 32 3b |InputId |*dummy2;|
|00003f00| 0a 7b 0a 20 20 20 63 68 | 61 72 20 62 75 66 5b 42 |.{. ch|ar buf[B|
|00003f10| 55 46 53 49 5a 5d 3b 0a | 20 20 20 73 74 61 74 69 |UFSIZ];.| stati|
|00003f20| 63 20 69 6e 74 20 76 69 | 73 69 62 6c 65 20 3d 20 |c int vi|sible = |
|00003f30| 31 3b 0a 0a 20 20 20 20 | 2f 2a 20 52 65 61 64 20 |1;.. |/* Read |
|00003f40| 69 6e 70 75 74 20 66 72 | 6f 6d 20 73 74 64 69 6e |input fr|om stdin|
|00003f50| 2e 20 20 57 65 20 6b 6e | 6f 77 20 69 74 20 69 73 |. We kn|ow it is|
|00003f60| 20 72 65 61 64 79 20 73 | 69 6e 63 65 20 77 65 20 | ready s|ince we |
|00003f70| 68 61 76 65 20 62 65 65 | 6e 20 63 61 6c 6c 65 64 |have bee|n called|
|00003f80| 2e 20 2a 2f 0a 20 20 20 | 0a 20 20 20 69 66 20 28 |. */. |. if (|
|00003f90| 21 66 67 65 74 73 28 62 | 75 66 2c 20 42 55 46 53 |!fgets(b|uf, BUFS|
|00003fa0| 49 5a 2c 20 73 74 64 69 | 6e 29 29 7b 0a 20 20 20 |IZ, stdi|n)){. |
|00003fb0| 20 20 20 20 2f 2a 20 54 | 68 69 73 20 67 6f 65 73 | /* T|his goes|
|00003fc0| 20 74 6f 20 73 74 64 6f | 75 74 2c 20 6e 6f 74 20 | to stdo|ut, not |
|00003fd0| 73 74 64 65 72 72 2e 20 | 2a 2f 0a 20 20 20 20 20 |stderr. |*/. |
|00003fe0| 20 20 70 72 69 6e 74 66 | 28 22 63 6f 75 6c 64 20 | printf|("could |
|00003ff0| 6e 6f 74 20 72 65 61 64 | 20 66 72 6f 6d 20 73 74 |not read| from st|
|00004000| 64 69 6e 21 5c 6e 22 29 | 3b 0a 20 20 20 20 20 20 |din!\n")|;. |
|00004010| 20 65 78 69 74 28 30 29 | 3b 0a 20 20 20 7d 0a 0a | exit(0)|;. }..|
|00004020| 20 20 20 69 66 20 28 76 | 69 73 69 62 6c 65 29 20 | if (v|isible) |
|00004030| 7b 0a 20 20 20 20 20 20 | 20 58 74 55 6e 6d 61 70 |{. | XtUnmap|
|00004040| 57 69 64 67 65 74 28 74 | 6f 70 6c 65 76 65 6c 29 |Widget(t|oplevel)|
|00004050| 3b 0a 20 20 20 20 20 20 | 20 76 69 73 69 62 6c 65 |;. | visible|
|00004060| 20 3d 20 30 3b 0a 20 20 | 20 7d 0a 20 20 20 65 6c | = 0;. | }. el|
|00004070| 73 65 20 7b 0a 20 20 20 | 20 20 20 20 58 74 4d 61 |se {. | XtMa|
|00004080| 70 57 69 64 67 65 74 28 | 74 6f 70 6c 65 76 65 6c |pWidget(|toplevel|
|00004090| 29 3b 0a 20 20 20 20 20 | 20 20 76 69 73 69 62 6c |);. | visibl|
|000040a0| 65 20 3d 20 31 3b 0a 20 | 20 20 7d 0a 20 20 20 0a |e = 1;. | }. .|
|000040b0| 20 20 20 72 65 74 75 72 | 6e 3b 0a 7d 0a 0a 53 48 | retur|n;.}..SH|
|000040c0| 41 52 5f 45 4f 46 0a 66 | 69 0a 69 66 20 74 65 73 |AR_EOF.f|i.if tes|
|000040d0| 74 20 2d 66 20 27 65 62 | 75 74 74 6f 6e 73 2e 65 |t -f 'eb|uttons.e|
|000040e0| 6c 27 0a 74 68 65 6e 0a | 09 65 63 68 6f 20 73 68 |l'.then.|.echo sh|
|000040f0| 61 72 3a 20 22 77 69 6c | 6c 20 6e 6f 74 20 6f 76 |ar: "wil|l not ov|
|00004100| 65 72 2d 77 72 69 74 65 | 20 65 78 69 73 74 69 6e |er-write| existin|
|00004110| 67 20 66 69 6c 65 20 27 | 65 62 75 74 74 6f 6e 73 |g file '|ebuttons|
|00004120| 2e 65 6c 27 22 0a 65 6c | 73 65 0a 63 61 74 20 3c |.el'".el|se.cat <|
|00004130| 3c 20 5c 53 48 41 52 5f | 45 4f 46 20 3e 20 27 65 |< \SHAR_|EOF > 'e|
|00004140| 62 75 74 74 6f 6e 73 2e | 65 6c 27 0a 3b 3b 20 45 |buttons.|el'.;; E|
|00004150| 62 75 74 74 6f 6e 73 20 | 2d 20 61 6e 20 58 20 69 |buttons |- an X i|
|00004160| 6e 74 65 72 66 61 63 65 | 20 74 6f 20 45 6d 61 63 |nterface| to Emac|
|00004170| 73 2e 0a 3b 3b 20 43 6f | 70 79 72 69 67 68 74 20 |s..;; Co|pyright |
|00004180| 28 43 29 20 31 39 39 32 | 20 20 54 65 72 72 79 20 |(C) 1992| Terry |
|00004190| 4a 6f 6e 65 73 20 28 74 | 65 72 72 79 40 73 61 6e |Jones (t|erry@san|
|000041a0| 74 61 66 65 2e 65 64 75 | 29 0a 3b 3b 20 28 42 61 |tafe.edu|).;; (Ba|
|000041b0| 73 65 64 20 28 68 65 61 | 76 69 6c 79 29 20 6f 6e |sed (hea|vily) on|
|000041c0| 20 74 68 65 20 74 61 67 | 6c 69 73 74 20 66 61 63 | the tag|list fac|
|000041d0| 69 6c 69 74 79 20 77 72 | 69 74 74 65 6e 20 62 79 |ility wr|itten by|
|000041e0| 20 42 72 61 64 20 4d 65 | 61 72 73 29 0a 0a 3b 3b | Brad Me|ars)..;;|
|000041f0| 20 54 68 69 73 20 66 69 | 6c 65 20 69 73 20 70 61 | This fi|le is pa|
|00004200| 72 74 20 6f 66 20 65 62 | 75 74 74 6f 6e 73 0a 0a |rt of eb|uttons..|
|00004210| 3b 3b 20 45 62 75 74 74 | 6f 6e 73 20 69 73 20 66 |;; Ebutt|ons is f|
|00004220| 72 65 65 20 73 6f 66 74 | 77 61 72 65 3b 20 79 6f |ree soft|ware; yo|
|00004230| 75 20 63 61 6e 20 72 65 | 64 69 73 74 72 69 62 75 |u can re|distribu|
|00004240| 74 65 20 69 74 20 61 6e | 64 2f 6f 72 20 6d 6f 64 |te it an|d/or mod|
|00004250| 69 66 79 0a 3b 3b 20 69 | 74 20 75 6e 64 65 72 20 |ify.;; i|t under |
|00004260| 74 68 65 20 74 65 72 6d | 73 20 6f 66 20 74 68 65 |the term|s of the|
|00004270| 20 47 4e 55 20 47 65 6e | 65 72 61 6c 20 50 75 62 | GNU Gen|eral Pub|
|00004280| 6c 69 63 20 4c 69 63 65 | 6e 73 65 20 61 73 20 70 |lic Lice|nse as p|
|00004290| 75 62 6c 69 73 68 65 64 | 20 62 79 0a 3b 3b 20 74 |ublished| by.;; t|
|000042a0| 68 65 20 46 72 65 65 20 | 53 6f 66 74 77 61 72 65 |he Free |Software|
|000042b0| 20 46 6f 75 6e 64 61 74 | 69 6f 6e 3b 20 65 69 74 | Foundat|ion; eit|
|000042c0| 68 65 72 20 76 65 72 73 | 69 6f 6e 20 31 2c 20 6f |her vers|ion 1, o|
|000042d0| 72 20 28 61 74 20 79 6f | 75 72 20 6f 70 74 69 6f |r (at yo|ur optio|
|000042e0| 6e 29 0a 3b 3b 20 61 6e | 79 20 6c 61 74 65 72 20 |n).;; an|y later |
|000042f0| 76 65 72 73 69 6f 6e 2e | 0a 0a 3b 3b 20 54 68 65 |version.|..;; The|
|00004300| 20 47 4e 55 20 47 65 6e | 65 72 61 6c 20 50 75 62 | GNU Gen|eral Pub|
|00004310| 6c 69 63 20 4c 69 63 65 | 6e 73 65 20 63 61 6e 20 |lic Lice|nse can |
|00004320| 62 65 20 6f 62 74 61 69 | 6e 65 64 20 76 69 61 20 |be obtai|ned via |
|00004330| 61 6e 6f 6e 79 6d 6f 75 | 73 20 66 74 70 20 66 72 |anonymou|s ftp fr|
|00004340| 6f 6d 0a 3b 3b 20 70 72 | 65 70 2e 61 69 2e 6d 69 |om.;; pr|ep.ai.mi|
|00004350| 74 2e 65 64 75 20 61 73 | 20 70 75 62 2f 67 6e 75 |t.edu as| pub/gnu|
|00004360| 2f 43 4f 50 59 49 4e 47 | 20 6f 72 20 70 75 62 2f |/COPYING| or pub/|
|00004370| 67 6e 75 2f 43 4f 50 59 | 49 4e 47 2d 32 2e 0a 0a |gnu/COPY|ING-2...|
|00004380| 3b 3b 20 45 62 75 74 74 | 6f 6e 73 20 69 73 20 64 |;; Ebutt|ons is d|
|00004390| 69 73 74 72 69 62 75 74 | 65 64 20 69 6e 20 74 68 |istribut|ed in th|
|000043a0| 65 20 68 6f 70 65 20 74 | 68 61 74 20 69 74 20 77 |e hope t|hat it w|
|000043b0| 69 6c 6c 20 62 65 20 75 | 73 65 66 75 6c 2c 0a 3b |ill be u|seful,.;|
|000043c0| 3b 20 62 75 74 20 57 49 | 54 48 4f 55 54 20 41 4e |; but WI|THOUT AN|
|000043d0| 59 20 57 41 52 52 41 4e | 54 59 3b 20 77 69 74 68 |Y WARRAN|TY; with|
|000043e0| 6f 75 74 20 65 76 65 6e | 20 74 68 65 20 69 6d 70 |out even| the imp|
|000043f0| 6c 69 65 64 20 77 61 72 | 72 61 6e 74 79 20 6f 66 |lied war|ranty of|
|00004400| 0a 3b 3b 20 4d 45 52 43 | 48 41 4e 54 41 42 49 4c |.;; MERC|HANTABIL|
|00004410| 49 54 59 20 6f 72 20 46 | 49 54 4e 45 53 53 20 46 |ITY or F|ITNESS F|
|00004420| 4f 52 20 41 20 50 41 52 | 54 49 43 55 4c 41 52 20 |OR A PAR|TICULAR |
|00004430| 50 55 52 50 4f 53 45 2e | 20 20 53 65 65 20 74 68 |PURPOSE.| See th|
|00004440| 65 0a 3b 3b 20 47 4e 55 | 20 47 65 6e 65 72 61 6c |e.;; GNU| General|
|00004450| 20 50 75 62 6c 69 63 20 | 4c 69 63 65 6e 73 65 20 | Public |License |
|00004460| 66 6f 72 20 6d 6f 72 65 | 20 64 65 74 61 69 6c 73 |for more| details|
|00004470| 2e 0a 0a 3b 3b 20 54 68 | 69 73 20 70 72 6f 67 72 |...;; Th|is progr|
|00004480| 61 6d 20 70 72 6f 76 69 | 64 65 73 20 61 6e 20 58 |am provi|des an X|
|00004490| 20 69 6e 74 65 72 66 61 | 63 65 20 74 6f 20 69 73 | interfa|ce to is|
|000044a0| 73 75 65 20 63 6f 6d 6d | 61 6e 64 73 20 74 6f 20 |sue comm|ands to |
|000044b0| 61 6e 20 65 6d 61 63 73 | 0a 3b 3b 20 73 65 73 73 |an emacs|.;; sess|
|000044c0| 69 6f 6e 2e 20 20 49 74 | 20 61 6c 6c 6f 77 73 20 |ion. It| allows |
|000044d0| 79 6f 75 20 74 6f 20 73 | 70 65 63 69 66 79 20 28 |you to s|pecify (|
|000044e0| 69 6e 20 61 6e 20 58 20 | 72 65 73 6f 75 72 63 65 |in an X |resource|
|000044f0| 20 66 69 6c 65 29 20 6c | 61 62 65 6c 73 20 66 6f | file) l|abels fo|
|00004500| 72 0a 3b 3b 20 61 20 73 | 65 74 20 6f 66 20 62 75 |r.;; a s|et of bu|
|00004510| 74 74 6f 6e 73 20 61 6e | 64 20 61 20 63 6f 6d 6d |ttons an|d a comm|
|00004520| 61 6e 64 20 66 6f 72 20 | 65 61 63 68 20 74 68 61 |and for |each tha|
|00004530| 74 20 77 69 6c 6c 20 62 | 65 20 65 78 65 63 75 74 |t will b|e execut|
|00004540| 65 64 20 77 68 65 6e 20 | 74 68 65 0a 3b 3b 20 63 |ed when |the.;; c|
|00004550| 6f 72 72 65 73 70 6f 6e | 64 69 6e 67 20 62 75 74 |orrespon|ding but|
|00004560| 74 6f 6e 20 69 73 20 63 | 6c 69 63 6b 65 64 20 6f |ton is c|licked o|
|00004570| 6e 20 77 69 74 68 20 74 | 68 65 20 6d 6f 75 73 65 |n with t|he mouse|
|00004580| 2e 20 46 6f 72 20 69 6e | 73 74 61 6e 63 65 20 79 |. For in|stance y|
|00004590| 6f 75 0a 3b 3b 20 63 61 | 6e 20 64 65 66 69 6e 65 |ou.;; ca|n define|
|000045a0| 20 62 75 74 74 6f 6e 73 | 20 74 6f 20 63 6f 6d 70 | buttons| to comp|
|000045b0| 69 6c 65 2c 20 74 6f 20 | 66 69 6e 64 20 74 68 65 |ile, to |find the|
|000045c0| 20 6e 65 78 74 20 65 72 | 72 6f 72 2c 20 74 6f 20 | next er|ror, to |
|000045d0| 73 61 76 65 0a 3b 3b 20 | 62 75 66 66 65 72 73 2c |save.;; |buffers,|
|000045e0| 20 74 6f 20 6d 6f 76 65 | 20 74 6f 20 74 68 65 20 | to move| to the |
|000045f0| 74 6f 70 2f 62 6f 74 74 | 6f 6d 20 6f 66 20 74 68 |top/bott|om of th|
|00004600| 65 20 62 75 66 66 65 72 | 2c 20 74 6f 20 65 78 69 |e buffer|, to exi|
|00004610| 74 20 65 6d 61 63 73 20 | 65 74 63 2e 0a 3b 3b 20 |t emacs |etc..;; |
|00004620| 65 74 63 2e 0a 0a 28 64 | 65 66 76 61 72 20 65 62 |etc...(d|efvar eb|
|00004630| 75 74 74 6f 6e 73 2d 70 | 72 6f 67 72 61 6d 20 22 |uttons-p|rogram "|
|00004640| 65 62 75 74 74 6f 6e 73 | 22 0a 20 20 22 2a 54 68 |ebuttons|". "*Th|
|00004650| 65 20 65 62 75 74 74 6f | 6e 73 20 70 72 6f 63 65 |e ebutto|ns proce|
|00004660| 73 73 6f 72 22 29 0a 0a | 28 64 65 66 76 61 72 20 |ssor")..|(defvar |
|00004670| 65 62 75 74 74 6f 6e 73 | 2d 72 75 6e 6e 69 6e 67 |ebuttons|-running|
|00004680| 20 6e 69 6c 0a 20 20 22 | 49 73 20 74 68 65 20 70 | nil. "|Is the p|
|00004690| 72 6f 67 72 61 6d 20 72 | 75 6e 6e 69 6e 67 3f 22 |rogram r|unning?"|
|000046a0| 29 0a 0a 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |)..;;;;;|;;;;;;;;|
|000046b0| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|000046c0| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|000046d0| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|000046e0| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 0a 3b |;;;;;;;;|;;;;;;.;|
|000046f0| 3b 3b 20 20 65 62 75 74 | 74 6f 6e 73 0a 3b 3b 3b |;; ebut|tons.;;;|
|00004700| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|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 | 0a 28 64 65 66 75 6e 20 |;;;;;;;;|.(defun |
|00004750| 65 62 75 74 74 6f 6e 73 | 20 28 29 0a 20 20 22 53 |ebuttons| (). "S|
|00004760| 74 61 72 74 20 74 68 65 | 20 65 62 75 74 74 6f 6e |tart the| ebutton|
|00004770| 73 20 70 72 6f 63 65 73 | 73 6f 72 2e 20 20 54 68 |s proces|sor. Th|
|00004780| 69 73 20 73 74 61 72 74 | 73 20 61 6e 20 58 20 73 |is start|s an X s|
|00004790| 75 62 70 72 6f 63 65 73 | 73 20 74 68 61 74 20 63 |ubproces|s that c|
|000047a0| 61 6e 20 62 65 0a 75 73 | 65 64 20 74 6f 20 69 73 |an be.us|ed to is|
|000047b0| 73 75 65 20 63 6f 6d 6d | 61 6e 64 73 20 74 6f 20 |sue comm|ands to |
|000047c0| 74 68 65 20 63 75 72 72 | 65 6e 74 20 65 6d 61 63 |the curr|ent emac|
|000047d0| 73 20 73 65 73 73 69 6f | 6e 2e 22 0a 20 20 28 69 |s sessio|n.". (i|
|000047e0| 6e 74 65 72 61 63 74 69 | 76 65 29 0a 20 20 28 69 |nteracti|ve). (i|
|000047f0| 66 20 28 6e 6f 74 20 65 | 62 75 74 74 6f 6e 73 2d |f (not e|buttons-|
|00004800| 72 75 6e 6e 69 6e 67 29 | 0a 20 20 20 20 28 70 72 |running)|. (pr|
|00004810| 6f 67 6e 0a 20 20 20 20 | 20 20 28 6d 65 73 73 61 |ogn. | (messa|
|00004820| 67 65 20 22 53 74 61 72 | 74 69 6e 67 20 65 62 75 |ge "Star|ting ebu|
|00004830| 74 74 6f 6e 73 2e 2e 2e | 22 29 0a 20 20 20 20 20 |ttons...|"). |
|00004840| 20 28 73 65 74 71 20 65 | 62 75 74 74 6f 6e 73 2d | (setq e|buttons-|
|00004850| 70 72 6f 63 65 73 73 0a | 20 20 20 20 20 20 20 20 |process.| |
|00004860| 28 73 74 61 72 74 2d 70 | 72 6f 63 65 73 73 20 22 |(start-p|rocess "|
|00004870| 65 62 75 74 74 6f 6e 73 | 22 20 6e 69 6c 20 65 62 |ebuttons|" nil eb|
|00004880| 75 74 74 6f 6e 73 2d 70 | 72 6f 67 72 61 6d 29 29 |uttons-p|rogram))|
|00004890| 0a 20 20 20 20 20 20 28 | 73 65 74 71 20 65 62 75 |. (|setq ebu|
|000048a0| 74 74 6f 6e 73 2d 72 75 | 6e 6e 69 6e 67 20 74 29 |ttons-ru|nning t)|
|000048b0| 0a 20 20 20 20 20 20 28 | 73 65 74 2d 70 72 6f 63 |. (|set-proc|
|000048c0| 65 73 73 2d 66 69 6c 74 | 65 72 20 65 62 75 74 74 |ess-filt|er ebutt|
|000048d0| 6f 6e 73 2d 70 72 6f 63 | 65 73 73 20 27 65 62 2d |ons-proc|ess 'eb-|
|000048e0| 70 72 6f 63 65 73 73 2d | 66 69 6c 74 65 72 29 0a |process-|filter).|
|000048f0| 20 20 20 20 20 20 28 73 | 65 74 2d 70 72 6f 63 65 | (s|et-proce|
|00004900| 73 73 2d 73 65 6e 74 69 | 6e 65 6c 20 65 62 75 74 |ss-senti|nel ebut|
|00004910| 74 6f 6e 73 2d 70 72 6f | 63 65 73 73 20 27 65 62 |tons-pro|cess 'eb|
|00004920| 2d 70 72 6f 63 65 73 73 | 2d 73 65 6e 74 69 6e 65 |-process|-sentine|
|00004930| 6c 29 0a 20 20 20 20 20 | 20 28 70 72 6f 63 65 73 |l). | (proces|
|00004940| 73 2d 6b 69 6c 6c 2d 77 | 69 74 68 6f 75 74 2d 71 |s-kill-w|ithout-q|
|00004950| 75 65 72 79 20 65 62 75 | 74 74 6f 6e 73 2d 70 72 |uery ebu|ttons-pr|
|00004960| 6f 63 65 73 73 29 29 0a | 20 20 20 20 28 70 72 6f |ocess)).| (pro|
|00004970| 63 65 73 73 2d 73 65 6e | 64 2d 73 74 72 69 6e 67 |cess-sen|d-string|
|00004980| 20 65 62 75 74 74 6f 6e | 73 2d 70 72 6f 63 65 73 | ebutton|s-proces|
|00004990| 73 20 22 5c 6e 22 29 29 | 29 0a 0a 3b 3b 3b 3b 3b |s "\n"))|)..;;;;;|
|000049a0| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|000049b0| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|000049c0| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|000049d0| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|000049e0| 3b 3b 3b 3b 3b 3b 0a 3b | 3b 3b 20 20 65 62 2d 70 |;;;;;;.;|;; eb-p|
|000049f0| 72 6f 63 65 73 73 2d 66 | 69 6c 74 65 72 20 20 20 |rocess-f|ilter |
|00004a00| 20 2d 20 69 6e 70 75 74 | 20 70 72 6f 63 65 73 73 | - input| process|
|00004a10| 20 66 69 6c 74 65 72 0a | 3b 3b 3b 20 20 65 62 2d | filter.|;;; eb-|
|00004a20| 70 72 6f 63 65 73 73 2d | 73 65 6e 74 69 6e 65 6c |process-|sentinel|
|00004a30| 20 20 2d 20 65 78 69 74 | 20 70 72 6f 63 65 73 73 | - exit| process|
|00004a40| 20 66 69 6c 74 65 72 0a | 3b 3b 3b 3b 3b 3b 3b 3b | filter.|;;;;;;;;|
|00004a50| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|00004a60| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|00004a70| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|00004a80| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|00004a90| 3b 3b 3b 0a 0a 28 64 65 | 66 75 6e 20 65 62 2d 70 |;;;..(de|fun eb-p|
|00004aa0| 72 6f 63 65 73 73 2d 66 | 69 6c 74 65 72 20 28 70 |rocess-f|ilter (p|
|00004ab0| 72 6f 63 20 73 74 72 29 | 0a 20 20 22 50 72 6f 63 |roc str)|. "Proc|
|00004ac0| 65 73 73 20 66 69 6c 74 | 65 72 20 66 6f 72 20 74 |ess filt|er for t|
|00004ad0| 68 65 20 65 62 75 74 74 | 6f 6e 73 22 0a 20 20 28 |he ebutt|ons". (|
|00004ae0| 6c 65 74 20 28 28 66 69 | 72 73 74 2d 63 68 61 72 |let ((fi|rst-char|
|00004af0| 20 28 73 74 72 69 6e 67 | 2d 74 6f 2d 63 68 61 72 | (string|-to-char|
|00004b00| 20 73 74 72 29 29 29 0a | 20 20 20 20 20 28 69 66 | str))).| (if|
|00004b10| 20 28 3d 20 66 69 72 73 | 74 2d 63 68 61 72 20 3f | (= firs|t-char ?|
|00004b20| 28 29 20 20 20 20 20 0a | 20 20 20 20 20 20 20 20 |() .| |
|00004b30| 28 65 76 61 6c 20 28 72 | 65 61 64 20 73 74 72 29 |(eval (r|ead str)|
|00004b40| 29 20 20 20 20 20 20 20 | 3b 20 65 76 61 6c 75 61 |) |; evalua|
|00004b50| 74 65 20 74 68 65 20 65 | 6c 69 73 70 20 63 6f 64 |te the e|lisp cod|
|00004b60| 65 20 73 65 6e 74 20 66 | 72 6f 6d 20 65 62 75 74 |e sent f|rom ebut|
|00004b70| 74 6f 6e 73 0a 20 20 20 | 20 20 20 20 20 28 70 72 |tons. | (pr|
|00004b80| 6f 67 6e 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |ogn | |
|00004b90| 20 20 20 20 20 3b 20 44 | 75 6d 70 20 74 68 65 20 | ; D|ump the |
|00004ba0| 73 74 72 69 6e 67 20 74 | 6f 20 74 68 65 20 65 62 |string t|o the eb|
|00004bb0| 75 74 74 6f 6e 73 20 62 | 75 66 66 65 72 20 0a 20 |uttons b|uffer . |
|00004bc0| 20 20 20 20 20 20 20 20 | 20 20 28 67 65 74 2d 62 | | (get-b|
|00004bd0| 75 66 66 65 72 2d 63 72 | 65 61 74 65 20 22 2a 65 |uffer-cr|eate "*e|
|00004be0| 62 75 74 74 6f 6e 73 2a | 22 29 0a 20 20 20 20 20 |buttons*|"). |
|00004bf0| 20 20 20 20 20 20 28 73 | 77 69 74 63 68 2d 74 6f | (s|witch-to|
|00004c00| 2d 62 75 66 66 65 72 2d | 6f 74 68 65 72 2d 77 69 |-buffer-|other-wi|
|00004c10| 6e 64 6f 77 20 22 2a 65 | 62 75 74 74 6f 6e 73 2a |ndow "*e|buttons*|
|00004c20| 22 29 0a 20 20 20 20 20 | 20 20 20 20 20 20 28 69 |"). | (i|
|00004c30| 6e 73 65 72 74 2d 73 74 | 72 69 6e 67 20 73 74 72 |nsert-st|ring str|
|00004c40| 29 0a 20 20 20 20 20 20 | 20 20 20 20 20 28 65 6e |). | (en|
|00004c50| 64 2d 6f 66 2d 62 75 66 | 66 65 72 29 0a 20 20 20 |d-of-buf|fer). |
|00004c60| 20 20 20 20 20 20 20 20 | 28 6f 74 68 65 72 2d 77 | |(other-w|
|00004c70| 69 6e 64 6f 77 20 31 29 | 29 29 29 29 0a 0a 0a 28 |indow 1)|))))...(|
|00004c80| 64 65 66 75 6e 20 65 62 | 2d 70 72 6f 63 65 73 73 |defun eb|-process|
|00004c90| 2d 73 65 6e 74 69 6e 65 | 6c 20 28 70 72 6f 63 20 |-sentine|l (proc |
|00004ca0| 6d 73 67 29 0a 20 20 28 | 73 65 74 71 20 65 62 75 |msg). (|setq ebu|
|00004cb0| 74 74 6f 6e 73 2d 72 75 | 6e 6e 69 6e 67 20 6e 69 |ttons-ru|nning ni|
|00004cc0| 6c 29 09 09 3b 20 69 74 | 27 73 20 6e 6f 74 20 72 |l)..; it|'s not r|
|00004cd0| 75 6e 6e 69 6e 67 20 61 | 6e 79 20 6d 6f 72 65 0a |unning a|ny more.|
|00004ce0| 20 20 28 63 6f 6e 64 20 | 28 28 65 71 20 28 70 72 | (cond |((eq (pr|
|00004cf0| 6f 63 65 73 73 2d 73 74 | 61 74 75 73 20 70 72 6f |ocess-st|atus pro|
|00004d00| 63 29 20 27 65 78 69 74 | 29 0a 09 20 28 6d 65 73 |c) 'exit|).. (mes|
|00004d10| 73 61 67 65 20 22 65 62 | 75 74 74 6f 6e 73 2d 70 |sage "eb|uttons-p|
|00004d20| 72 6f 63 20 73 75 62 70 | 72 6f 63 65 73 73 20 65 |roc subp|rocess e|
|00004d30| 78 69 74 65 64 22 29 29 | 0a 20 09 28 28 65 71 20 |xited"))|. .((eq |
|00004d40| 28 70 72 6f 63 65 73 73 | 2d 73 74 61 74 75 73 20 |(process|-status |
|00004d50| 70 72 6f 63 29 20 27 73 | 69 67 6e 61 6c 29 0a 09 |proc) 's|ignal)..|
|00004d60| 20 28 6d 65 73 73 61 67 | 65 20 22 65 62 75 74 74 | (messag|e "ebutt|
|00004d70| 6f 6e 73 2d 70 72 6f 63 | 20 73 75 62 70 72 6f 63 |ons-proc| subproc|
|00004d80| 65 73 73 20 6b 69 6c 6c | 65 64 22 29 0a 09 20 29 |ess kill|ed").. )|
|00004d90| 29 29 20 0a 0a 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |)) ..;;;|;;;;;;;;|
|00004da0| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|00004db0| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|00004dc0| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|00004dd0| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|00004de0| 0a 3b 3b 3b 20 20 45 6e | 64 20 6f 66 20 65 62 75 |.;;; En|d of ebu|
|00004df0| 74 74 6f 6e 73 2e 65 6c | 0a 3b 3b 3b 3b 3b 3b 3b |ttons.el|.;;;;;;;|
|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 0a 0a 53 | 48 41 52 5f 45 4f 46 0a |;;;;...S|HAR_EOF.|
|00004e50| 66 69 0a 69 66 20 74 65 | 73 74 20 2d 66 20 27 52 |fi.if te|st -f 'R|
|00004e60| 65 73 6f 75 72 63 65 73 | 27 0a 74 68 65 6e 0a 09 |esources|'.then..|
|00004e70| 65 63 68 6f 20 73 68 61 | 72 3a 20 22 77 69 6c 6c |echo sha|r: "will|
|00004e80| 20 6e 6f 74 20 6f 76 65 | 72 2d 77 72 69 74 65 20 | not ove|r-write |
|00004e90| 65 78 69 73 74 69 6e 67 | 20 66 69 6c 65 20 27 52 |existing| file 'R|
|00004ea0| 65 73 6f 75 72 63 65 73 | 27 22 0a 65 6c 73 65 0a |esources|'".else.|
|00004eb0| 63 61 74 20 3c 3c 20 5c | 53 48 41 52 5f 45 4f 46 |cat << \|SHAR_EOF|
|00004ec0| 20 3e 20 27 52 65 73 6f | 75 72 63 65 73 27 0a 65 | > 'Reso|urces'.e|
|00004ed0| 62 75 74 74 6f 6e 73 2a | 43 6f 6d 6d 61 6e 64 2e |buttons*|Command.|
|00004ee0| 62 6f 72 64 65 72 57 69 | 64 74 68 3a 20 20 20 20 |borderWi|dth: |
|00004ef0| 30 0a 65 62 75 74 74 6f | 6e 73 2a 42 6f 78 2e 6f |0.ebutto|ns*Box.o|
|00004f00| 72 69 65 6e 74 61 74 69 | 6f 6e 3a 20 20 20 20 20 |rientati|on: |
|00004f10| 20 20 20 76 65 72 74 69 | 63 61 6c 0a 65 62 75 74 | verti|cal.ebut|
|00004f20| 74 6f 6e 73 2a 42 6f 78 | 2e 68 53 70 61 63 65 3a |tons*Box|.hSpace:|
|00004f30| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 30 0a 65 | | 0.e|
|00004f40| 62 75 74 74 6f 6e 73 2a | 42 6f 78 2e 76 53 70 61 |buttons*|Box.vSpa|
|00004f50| 63 65 3a 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |ce: | |
|00004f60| 30 0a 65 62 75 74 74 6f | 6e 73 2a 67 65 6f 6d 65 |0.ebutto|ns*geome|
|00004f70| 74 72 79 3a 20 20 20 20 | 20 20 20 20 20 20 20 20 |try: | |
|00004f80| 20 20 20 2b 31 36 31 2b | 32 36 36 0a 65 62 75 74 | +161+|266.ebut|
|00004f90| 74 6f 6e 73 2a 62 61 63 | 6b 67 72 6f 75 6e 64 3a |tons*bac|kground:|
|00004fa0| 09 09 20 53 6b 79 42 6c | 75 65 0a 65 62 75 74 74 |.. SkyBl|ue.ebutt|
|00004fb0| 6f 6e 73 2a 66 6f 6e 74 | 3a 09 09 09 20 36 78 31 |ons*font|:... 6x1|
|00004fc0| 30 0a 65 62 75 74 74 6f | 6e 73 2e 6c 61 62 65 6c |0.ebutto|ns.label|
|00004fd0| 31 3a 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |1: | |
|00004fe0| 20 20 20 56 4d 0a 65 62 | 75 74 74 6f 6e 73 2e 63 | VM.eb|uttons.c|
|00004ff0| 6f 6d 6d 61 6e 64 31 3a | 20 20 20 20 20 20 20 20 |ommand1:| |
|00005000| 20 20 20 20 20 20 20 28 | 76 6d 29 0a 65 62 75 74 | (|vm).ebut|
|00005010| 74 6f 6e 73 2e 6c 61 62 | 65 6c 32 3a 20 20 20 20 |tons.lab|el2: |
|00005020| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 43 2d 78 | | C-x|
|00005030| 20 30 0a 65 62 75 74 74 | 6f 6e 73 2e 63 6f 6d 6d | 0.ebutt|ons.comm|
|00005040| 61 6e 64 32 3a 20 20 20 | 20 20 20 20 20 20 20 20 |and2: | |
|00005050| 20 20 20 20 28 64 65 6c | 65 74 65 2d 77 69 6e 64 | (del|ete-wind|
|00005060| 6f 77 29 0a 65 62 75 74 | 74 6f 6e 73 2e 6c 61 62 |ow).ebut|tons.lab|
|00005070| 65 6c 33 3a 20 20 20 20 | 20 20 20 20 20 20 20 20 |el3: | |
|00005080| 20 20 20 20 20 43 2d 78 | 20 31 0a 65 62 75 74 74 | C-x| 1.ebutt|
|00005090| 6f 6e 73 2e 63 6f 6d 6d | 61 6e 64 33 3a 20 20 20 |ons.comm|and3: |
|000050a0| 20 20 20 20 20 20 20 20 | 20 20 20 20 28 64 65 6c | | (del|
|000050b0| 65 74 65 2d 6f 74 68 65 | 72 2d 77 69 6e 64 6f 77 |ete-othe|r-window|
|000050c0| 73 29 0a 65 62 75 74 74 | 6f 6e 73 2e 6c 61 62 65 |s).ebutt|ons.labe|
|000050d0| 6c 34 3a 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |l4: | |
|000050e0| 20 20 20 20 43 2d 78 20 | 32 0a 65 62 75 74 74 6f | C-x |2.ebutto|
|000050f0| 6e 73 2e 63 6f 6d 6d 61 | 6e 64 34 3a 20 20 20 20 |ns.comma|nd4: |
|00005100| 20 20 20 20 20 20 20 20 | 20 20 20 28 73 70 6c 69 | | (spli|
|00005110| 74 2d 77 69 6e 64 6f 77 | 2d 76 65 72 74 69 63 61 |t-window|-vertica|
|00005120| 6c 6c 79 29 0a 65 62 75 | 74 74 6f 6e 73 2e 6c 61 |lly).ebu|ttons.la|
|00005130| 62 65 6c 35 3a 20 20 20 | 20 20 20 20 20 20 20 20 |bel5: | |
|00005140| 20 20 20 20 20 20 4e 65 | 78 74 20 45 72 72 6f 72 | Ne|xt Error|
|00005150| 0a 65 62 75 74 74 6f 6e | 73 2e 63 6f 6d 6d 61 6e |.ebutton|s.comman|
|00005160| 64 35 3a 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |d5: | |
|00005170| 20 20 28 6e 65 78 74 2d | 65 72 72 6f 72 29 0a 65 | (next-|error).e|
|00005180| 62 75 74 74 6f 6e 73 2e | 6c 61 62 65 6c 36 3a 20 |buttons.|label6: |
|00005190| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000051a0| 53 61 76 65 20 42 75 66 | 66 65 72 0a 65 62 75 74 |Save Buf|fer.ebut|
|000051b0| 74 6f 6e 73 2e 63 6f 6d | 6d 61 6e 64 36 3a 20 20 |tons.com|mand6: |
|000051c0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 28 73 61 | | (sa|
|000051d0| 76 65 2d 62 75 66 66 65 | 72 29 0a 65 62 75 74 74 |ve-buffe|r).ebutt|
|000051e0| 6f 6e 73 2e 6c 61 62 65 | 6c 37 3a 20 20 20 20 20 |ons.labe|l7: |
|000051f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 45 78 69 74 | | Exit|
|00005200| 20 45 6d 61 63 73 0a 65 | 62 75 74 74 6f 6e 73 2e | Emacs.e|buttons.|
|00005210| 63 6f 6d 6d 61 6e 64 37 | 3a 20 20 20 20 20 20 20 |command7|: |
|00005220| 20 20 20 20 20 20 20 20 | 28 73 61 76 65 2d 62 75 | |(save-bu|
|00005230| 66 66 65 72 73 2d 6b 69 | 6c 6c 2d 65 6d 61 63 73 |ffers-ki|ll-emacs|
|00005240| 29 0a 65 62 75 74 74 6f | 6e 73 2e 6c 61 62 65 6c |).ebutto|ns.label|
|00005250| 38 3a 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |8: | |
|00005260| 20 20 20 53 65 6e 64 20 | 4d 61 69 6c 0a 65 62 75 | Send |Mail.ebu|
|00005270| 74 74 6f 6e 73 2e 63 6f | 6d 6d 61 6e 64 38 3a 20 |ttons.co|mmand8: |
|00005280| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 28 6d | | (m|
|00005290| 61 69 6c 29 0a 65 62 75 | 74 74 6f 6e 73 2e 6c 61 |ail).ebu|ttons.la|
|000052a0| 62 65 6c 39 3a 20 20 20 | 20 20 20 20 20 20 20 20 |bel9: | |
|000052b0| 20 20 20 20 20 20 4b 69 | 6c 6c 20 42 75 66 66 65 | Ki|ll Buffe|
|000052c0| 72 0a 65 62 75 74 74 6f | 6e 73 2e 63 6f 6d 6d 61 |r.ebutto|ns.comma|
|000052d0| 6e 64 39 3a 20 20 20 20 | 20 20 20 20 20 20 20 20 |nd9: | |
|000052e0| 20 20 20 28 6b 69 6c 6c | 2d 62 75 66 66 65 72 20 | (kill|-buffer |
|000052f0| 28 62 75 66 66 65 72 2d | 6e 61 6d 65 29 29 0a 65 |(buffer-|name)).e|
|00005300| 62 75 74 74 6f 6e 73 2e | 6c 61 62 65 6c 31 30 3a |buttons.|label10:|
|00005310| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005320| 42 75 66 66 65 72 20 4c | 69 73 74 0a 65 62 75 74 |Buffer L|ist.ebut|
|00005330| 74 6f 6e 73 2e 63 6f 6d | 6d 61 6e 64 31 30 3a 20 |tons.com|mand10: |
|00005340| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 28 65 6c | | (el|
|00005350| 65 63 74 72 69 63 2d 62 | 75 66 66 65 72 2d 6c 69 |ectric-b|uffer-li|
|00005360| 73 74 20 74 29 0a 65 62 | 75 74 74 6f 6e 73 2e 6c |st t).eb|uttons.l|
|00005370| 61 62 65 6c 31 31 3a 20 | 20 20 20 20 20 20 20 20 |abel11: | |
|00005380| 20 20 20 20 20 20 20 46 | 69 72 73 74 20 4c 69 6e | F|irst Lin|
|00005390| 65 0a 65 62 75 74 74 6f | 6e 73 2e 63 6f 6d 6d 61 |e.ebutto|ns.comma|
|000053a0| 6e 64 31 31 3a 20 20 20 | 20 20 20 20 20 20 20 20 |nd11: | |
|000053b0| 20 20 20 28 62 65 67 69 | 6e 6e 69 6e 67 2d 6f 66 | (begi|nning-of|
|000053c0| 2d 62 75 66 66 65 72 29 | 0a 65 62 75 74 74 6f 6e |-buffer)|.ebutton|
|000053d0| 73 2e 6c 61 62 65 6c 31 | 32 3a 20 20 20 20 20 20 |s.label1|2: |
|000053e0| 20 20 20 20 20 20 20 20 | 20 20 53 63 72 6f 6c 6c | | Scroll|
|000053f0| 20 4f 74 68 65 72 0a 65 | 62 75 74 74 6f 6e 73 2e | Other.e|buttons.|
|00005400| 63 6f 6d 6d 61 6e 64 31 | 32 3a 20 20 20 20 20 20 |command1|2: |
|00005410| 20 20 20 20 20 20 20 20 | 28 73 63 72 6f 6c 6c 2d | |(scroll-|
|00005420| 6f 74 68 65 72 2d 77 69 | 6e 64 6f 77 29 0a 65 62 |other-wi|ndow).eb|
|00005430| 75 74 74 6f 6e 73 2e 6c | 61 62 65 6c 31 33 3a 20 |uttons.l|abel13: |
|00005440| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 4e | | N|
|00005450| 65 78 74 20 57 69 6e 0a | 65 62 75 74 74 6f 6e 73 |ext Win.|ebuttons|
|00005460| 2e 63 6f 6d 6d 61 6e 64 | 31 33 3a 20 20 20 20 20 |.command|13: |
|00005470| 20 20 20 20 20 20 20 20 | 20 28 6f 74 68 65 72 2d | | (other-|
|00005480| 77 69 6e 64 6f 77 29 0a | 65 62 75 74 74 6f 6e 73 |window).|ebuttons|
|00005490| 2e 6c 61 62 65 6c 31 34 | 3a 20 20 20 20 20 20 20 |.label14|: |
|000054a0| 20 20 20 20 20 20 20 20 | 20 54 6f 70 0a 65 62 75 | | Top.ebu|
|000054b0| 74 74 6f 6e 73 2e 63 6f | 6d 6d 61 6e 64 31 34 3a |ttons.co|mmand14:|
|000054c0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 28 67 | | (g|
|000054d0| 6f 74 6f 2d 63 68 61 72 | 20 30 29 0a 65 62 75 74 |oto-char| 0).ebut|
|000054e0| 74 6f 6e 73 2e 6c 61 62 | 65 6c 31 35 3a 20 20 20 |tons.lab|el15: |
|000054f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 42 6f 74 | | Bot|
|00005500| 74 6f 6d 0a 65 62 75 74 | 74 6f 6e 73 2e 63 6f 6d |tom.ebut|tons.com|
|00005510| 6d 61 6e 64 31 35 3a 20 | 20 20 20 20 20 20 20 20 |mand15: | |
|00005520| 20 20 20 20 20 28 67 6f | 74 6f 2d 63 68 61 72 20 | (go|to-char |
|00005530| 28 64 6f 74 2d 6d 61 78 | 29 29 0a 65 62 75 74 74 |(dot-max|)).ebutt|
|00005540| 6f 6e 73 2e 6c 61 62 65 | 6c 31 38 3a 20 20 20 20 |ons.labe|l18: |
|00005550| 20 20 20 20 20 20 20 20 | 20 20 20 20 43 6f 6d 70 | | Comp|
|00005560| 69 6c 65 0a 65 62 75 74 | 74 6f 6e 73 2e 63 6f 6d |ile.ebut|tons.com|
|00005570| 6d 61 6e 64 31 38 3a 20 | 20 20 20 20 20 20 20 20 |mand18: | |
|00005580| 20 20 20 20 20 28 63 6f | 6d 70 69 6c 65 20 22 6d | (co|mpile "m|
|00005590| 61 6b 65 20 2d 6b 22 29 | 0a 65 62 75 74 74 6f 6e |ake -k")|.ebutton|
|000055a0| 73 2e 6c 61 62 65 6c 31 | 39 3a 20 20 20 20 20 20 |s.label1|9: |
|000055b0| 20 20 20 20 20 20 20 20 | 20 20 48 69 64 65 20 4d | | Hide M|
|000055c0| 65 0a 65 62 75 74 74 6f | 6e 73 2e 63 6f 6d 6d 61 |e.ebutto|ns.comma|
|000055d0| 6e 64 31 39 3a 20 20 20 | 20 20 20 20 20 20 20 20 |nd19: | |
|000055e0| 20 20 20 28 65 62 75 74 | 74 6f 6e 73 29 0a 53 48 | (ebut|tons).SH|
|000055f0| 41 52 5f 45 4f 46 0a 66 | 69 0a 69 66 20 74 65 73 |AR_EOF.f|i.if tes|
|00005600| 74 20 2d 66 20 27 6d 61 | 6b 65 5f 65 62 75 74 74 |t -f 'ma|ke_ebutt|
|00005610| 6f 6e 73 27 0a 74 68 65 | 6e 0a 09 65 63 68 6f 20 |ons'.the|n..echo |
|00005620| 73 68 61 72 3a 20 22 77 | 69 6c 6c 20 6e 6f 74 20 |shar: "w|ill not |
|00005630| 6f 76 65 72 2d 77 72 69 | 74 65 20 65 78 69 73 74 |over-wri|te exist|
|00005640| 69 6e 67 20 66 69 6c 65 | 20 27 6d 61 6b 65 5f 65 |ing file| 'make_e|
|00005650| 62 75 74 74 6f 6e 73 27 | 22 0a 65 6c 73 65 0a 63 |buttons'|".else.c|
|00005660| 61 74 20 3c 3c 20 5c 53 | 48 41 52 5f 45 4f 46 20 |at << \S|HAR_EOF |
|00005670| 3e 20 27 6d 61 6b 65 5f | 65 62 75 74 74 6f 6e 73 |> 'make_|ebuttons|
|00005680| 27 0a 23 21 2f 62 69 6e | 2f 73 68 0a 0a 62 75 74 |'.#!/bin|/sh..but|
|00005690| 74 6f 6e 73 3d 65 62 75 | 74 74 6f 6e 73 2e 68 0a |tons=ebu|ttons.h.|
|000056a0| 0a 63 61 73 65 20 24 23 | 20 69 6e 0a 09 31 29 20 |.case $#| in..1) |
|000056b0| 3b 3b 0a 09 2a 29 20 65 | 63 68 6f 20 75 73 61 67 |;;..*) e|cho usag|
|000056c0| 65 3a 20 60 62 61 73 65 | 6e 61 6d 65 20 24 30 60 |e: `base|name $0`|
|000056d0| 20 6e 75 6d 5f 62 75 74 | 74 6f 6e 73 3b 20 65 78 | num_but|tons; ex|
|000056e0| 69 74 20 31 3b 3b 0a 65 | 73 61 63 0a 0a 69 66 20 |it 1;;.e|sac..if |
|000056f0| 5b 20 2d 66 20 24 62 75 | 74 74 6f 6e 73 20 5d 0a |[ -f $bu|ttons ].|
|00005700| 74 68 65 6e 0a 09 65 78 | 69 73 74 69 6e 67 5f 62 |then..ex|isting_b|
|00005710| 75 74 74 6f 6e 73 3d 22 | 60 67 72 65 70 20 43 4f |uttons="|`grep CO|
|00005720| 4d 4d 41 4e 44 20 24 62 | 75 74 74 6f 6e 73 20 7c |MMAND $b|uttons ||
|00005730| 20 77 63 20 2d 6c 60 22 | 0a 09 0a 09 69 66 20 5b | wc -l`"|....if [|
|00005740| 20 24 31 20 2d 65 71 20 | 60 65 78 70 72 20 24 65 | $1 -eq |`expr $e|
|00005750| 78 69 73 74 69 6e 67 5f | 62 75 74 74 6f 6e 73 20 |xisting_|buttons |
|00005760| 2d 20 32 60 20 5d 0a 09 | 74 68 65 6e 0a 09 09 65 |- 2` ]..|then...e|
|00005770| 78 69 74 20 30 0a 09 66 | 69 0a 66 69 0a 0a 63 61 |xit 0..f|i.fi..ca|
|00005780| 74 20 3e 24 62 75 74 74 | 6f 6e 73 20 3c 3c 45 4f |t >$butt|ons <<EO|
|00005790| 54 0a 23 64 65 66 69 6e | 65 20 4c 41 42 45 4c 28 |T.#defin|e LABEL(|
|000057a0| 78 29 20 20 20 22 4c 61 | 62 65 6c 22 2c 20 58 74 |x) "La|bel", Xt|
|000057b0| 52 53 74 72 69 6e 67 2c | 20 73 69 7a 65 6f 66 28 |RString,| sizeof(|
|000057c0| 53 74 72 69 6e 67 29 2c | 20 58 74 4f 66 66 73 65 |String),| XtOffse|
|000057d0| 74 4f 66 28 41 70 70 52 | 65 73 6f 75 72 63 65 73 |tOf(AppR|esources|
|000057e0| 2c 20 6c 61 62 65 6c 73 | 5b 28 78 29 5d 29 2c 20 |, labels|[(x)]), |
|000057f0| 58 74 52 53 74 72 69 6e | 67 2c 20 4e 55 4c 4c 0a |XtRStrin|g, NULL.|
|00005800| 23 64 65 66 69 6e 65 20 | 43 4f 4d 4d 41 4e 44 28 |#define |COMMAND(|
|00005810| 78 29 20 22 43 6f 6d 6d | 61 6e 64 22 2c 20 58 74 |x) "Comm|and", Xt|
|00005820| 52 53 74 72 69 6e 67 2c | 20 73 69 7a 65 6f 66 28 |RString,| sizeof(|
|00005830| 53 74 72 69 6e 67 29 2c | 20 58 74 4f 66 66 73 65 |String),| XtOffse|
|00005840| 74 4f 66 28 41 70 70 52 | 65 73 6f 75 72 63 65 73 |tOf(AppR|esources|
|00005850| 2c 20 63 6f 6d 6d 61 6e | 64 73 5b 28 78 29 5d 29 |, comman|ds[(x)])|
|00005860| 2c 20 58 74 52 53 74 72 | 69 6e 67 2c 20 4e 55 4c |, XtRStr|ing, NUL|
|00005870| 4c 0a 0a 73 74 61 74 69 | 63 20 58 74 52 65 73 6f |L..stati|c XtReso|
|00005880| 75 72 63 65 20 72 65 73 | 6f 75 72 63 65 73 5b 5d |urce res|ources[]|
|00005890| 20 3d 20 7b 0a 45 4f 54 | 0a 0a 61 77 6b 20 3c 26 | = {.EOT|..awk <&|
|000058a0| 2d 20 3e 3e 20 24 62 75 | 74 74 6f 6e 73 20 27 42 |- >> $bu|ttons 'B|
|000058b0| 45 47 49 4e 20 7b 20 5c | 0a 20 20 20 20 20 66 6f |EGIN { \|. fo|
|000058c0| 72 20 28 3b 20 69 20 3c | 20 27 24 31 27 3b 20 69 |r (; i <| '$1'; i|
|000058d0| 2b 2b 29 20 5c 0a 20 20 | 20 20 20 20 20 70 72 69 |++) \. | pri|
|000058e0| 6e 74 66 20 22 20 20 20 | 20 7b 5c 22 6c 61 62 65 |ntf " | {\"labe|
|000058f0| 6c 25 64 5c 22 2c 20 4c | 41 42 45 4c 28 25 64 29 |l%d\", L|ABEL(%d)|
|00005900| 20 7d 2c 5c 6e 20 20 20 | 20 7b 20 5c 22 63 6f 6d | },\n | { \"com|
|00005910| 6d 61 6e 64 25 64 5c 22 | 2c 20 43 4f 4d 4d 41 4e |mand%d\"|, COMMAN|
|00005920| 44 28 25 64 29 20 7d 2c | 5c 6e 22 2c 20 69 2c 20 |D(%d) },|\n", i, |
|00005930| 69 2c 20 69 2c 20 69 7d | 27 0a 0a 63 61 74 20 3e |i, i, i}|'..cat >|
|00005940| 3e 24 62 75 74 74 6f 6e | 73 20 3c 3c 45 4f 54 0a |>$button|s <<EOT.|
|00005950| 7d 3b 0a 0a 23 75 6e 64 | 65 66 20 4c 41 42 45 4c |};..#und|ef LABEL|
|00005960| 0a 23 75 6e 64 65 66 20 | 43 4f 4d 4d 41 4e 44 0a |.#undef |COMMAND.|
|00005970| 45 4f 54 0a 0a 65 78 69 | 74 20 30 0a 53 48 41 52 |EOT..exi|t 0.SHAR|
|00005980| 5f 45 4f 46 0a 63 68 6d | 6f 64 20 2b 78 20 27 6d |_EOF.chm|od +x 'm|
|00005990| 61 6b 65 5f 65 62 75 74 | 74 6f 6e 73 27 0a 66 69 |ake_ebut|tons'.fi|
|000059a0| 0a 65 78 69 74 20 30 0a | 23 09 45 6e 64 20 6f 66 |.exit 0.|#.End of|
|000059b0| 20 73 68 65 6c 6c 20 61 | 72 63 68 69 76 65 0a | shell a|rchive. |
+--------+-------------------------+-------------------------+--------+--------+