home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Source Code 1993 July / THE_SOURCE_CODE_CD_ROM.iso / languages / elisp / packages / tpu.el < prev    next >
Mailbox/MIME Entity  |  1990-07-22  |  100.7 KB

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: Mailbox/MIME Entity (archive/mbox).

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert Mailbox/MIME Entity (archive/mbox) magic Supported
100% dexvert Internet Message Format (text/imf) magic Supported
1% dexvert Text File (text/txt) fallback Supported
100% file Mailbox text, 1st line "From ark1!nap1!ames!mailrus!cornell!kowalski Wed Dec 6 08:00:21 1989", ASCII text default
100% TrID E-Mail message (Var. 2) default
100% perlTextCheck Likely Text (Perl) default
100% siegfried x-fmt/111 Plain Text File default
100% detectItEasy Format: Plain text[LF] default
100% xdgMime application/mbox default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 46 72 6f 6d 20 61 72 6b | 31 21 6e 61 70 31 21 61 |From ark|1!nap1!a|
|00000010| 6d 65 73 21 6d 61 69 6c | 72 75 73 21 63 6f 72 6e |mes!mail|rus!corn|
|00000020| 65 6c 6c 21 6b 6f 77 61 | 6c 73 6b 69 20 57 65 64 |ell!kowa|lski Wed|
|00000030| 20 44 65 63 20 20 36 20 | 30 38 3a 30 30 3a 32 31 | Dec 6 |08:00:21|
|00000040| 20 31 39 38 39 0a 41 72 | 74 69 63 6c 65 20 39 38 | 1989.Ar|ticle 98|
|00000050| 36 20 6f 66 20 63 6f 6d | 70 2e 65 6d 61 63 73 3a |6 of com|p.emacs:|
|00000060| 0a 50 61 74 68 3a 20 61 | 72 6b 31 21 6e 61 70 31 |.Path: a|rk1!nap1|
|00000070| 21 61 6d 65 73 21 6d 61 | 69 6c 72 75 73 21 63 6f |!ames!ma|ilrus!co|
|00000080| 72 6e 65 6c 6c 21 6b 6f | 77 61 6c 73 6b 69 0a 46 |rnell!ko|walski.F|
|00000090| 72 6f 6d 20 6b 6f 77 61 | 6c 73 6b 69 40 73 76 61 |rom kowa|lski@sva|
|000000a0| 78 2e 63 73 2e 63 6f 72 | 6e 65 6c 6c 2e 65 64 75 |x.cs.cor|nell.edu|
|000000b0| 20 28 4a 65 66 66 72 65 | 79 20 4b 6f 77 61 6c 73 | (Jeffre|y Kowals|
|000000c0| 6b 69 29 0a 4e 65 77 73 | 67 72 6f 75 70 73 3a 20 |ki).News|groups: |
|000000d0| 63 6f 6d 70 2e 65 6d 61 | 63 73 0a 53 75 62 6a 65 |comp.ema|cs.Subje|
|000000e0| 63 74 3a 20 45 44 54 2f | 54 50 55 20 45 6d 75 6c |ct: EDT/|TPU Emul|
|000000f0| 61 74 6f 72 20 66 6f 72 | 20 47 4e 55 20 45 6d 61 |ator for| GNU Ema|
|00000100| 63 73 20 28 74 70 75 2e | 65 6c 29 0a 4d 65 73 73 |cs (tpu.|el).Mess|
|00000110| 61 67 65 2d 49 44 3a 20 | 3c 33 34 37 39 38 40 63 |age-ID: |<34798@c|
|00000120| 6f 72 6e 65 6c 6c 2e 55 | 55 43 50 3e 0a 44 61 74 |ornell.U|UCP>.Dat|
|00000130| 65 3a 20 33 20 44 65 63 | 20 38 39 20 30 30 3a 30 |e: 3 Dec| 89 00:0|
|00000140| 32 3a 32 39 20 47 4d 54 | 0a 53 65 6e 64 65 72 3a |2:29 GMT|.Sender:|
|00000150| 20 6e 6f 62 6f 64 79 40 | 63 6f 72 6e 65 6c 6c 2e | nobody@|cornell.|
|00000160| 55 55 43 50 0a 52 65 70 | 6c 79 2d 54 6f 3a 20 6b |UUCP.Rep|ly-To: k|
|00000170| 6f 77 61 6c 73 6b 69 40 | 73 76 61 78 2e 63 73 2e |owalski@|svax.cs.|
|00000180| 63 6f 72 6e 65 6c 6c 2e | 65 64 75 20 28 4a 65 66 |cornell.|edu (Jef|
|00000190| 66 72 65 79 20 4b 6f 77 | 61 6c 73 6b 69 29 0a 4f |frey Kow|alski).O|
|000001a0| 72 67 61 6e 69 7a 61 74 | 69 6f 6e 3a 20 43 6f 72 |rganizat|ion: Cor|
|000001b0| 6e 65 6c 6c 20 55 6e 69 | 76 2e 20 43 53 20 44 65 |nell Uni|v. CS De|
|000001c0| 70 74 2c 20 49 74 68 61 | 63 61 20 4e 59 0a 4c 69 |pt, Itha|ca NY.Li|
|000001d0| 6e 65 73 3a 20 32 31 30 | 39 0a 0a 0a 48 61 63 6b |nes: 210|9...Hack|
|000001e0| 2c 20 68 61 63 6b 2c 20 | 68 61 63 6b 2e 0a 54 68 |, hack, |hack..Th|
|000001f0| 69 73 20 72 65 70 72 65 | 73 65 6e 74 73 20 61 20 |is repre|sents a |
|00000200| 73 65 72 69 6f 75 73 20 | 73 65 72 69 65 73 20 6f |serious |series o|
|00000210| 66 20 68 61 63 6b 73 20 | 74 6f 20 65 64 74 2e 65 |f hacks |to edt.e|
|00000220| 6c 20 28 61 73 0a 73 75 | 70 70 6c 69 65 64 20 77 |l (as.su|pplied w|
|00000230| 69 74 68 20 47 4e 55 20 | 45 6d 61 63 73 29 20 69 |ith GNU |Emacs) i|
|00000240| 6e 20 6f 72 64 65 72 20 | 74 6f 20 6d 6f 72 65 20 |n order |to more |
|00000250| 63 6c 6f 73 65 6c 79 20 | 73 69 6d 75 6c 61 74 65 |closely |simulate|
|00000260| 0a 74 68 65 20 65 64 74 | 20 65 64 69 74 6f 72 2e |.the edt| editor.|
|00000270| 20 20 49 20 77 61 73 20 | 77 72 6f 6e 67 20 77 68 | I was |wrong wh|
|00000280| 65 6e 20 49 20 63 61 6c | 6c 65 64 20 69 74 20 61 |en I cal|led it a|
|00000290| 20 54 50 55 20 65 6d 75 | 6c 61 74 6f 72 2e 0a 54 | TPU emu|lator..T|
|000002a0| 50 55 20 77 6f 75 6c 64 | 20 62 65 20 74 6f 75 67 |PU would| be toug|
|000002b0| 68 20 74 6f 20 65 6d 75 | 6c 61 74 65 20 69 6e 20 |h to emu|late in |
|000002c0| 45 6d 61 63 73 20 73 69 | 6e 63 65 20 54 50 55 20 |Emacs si|nce TPU |
|000002d0| 69 73 20 61 20 6c 61 6e | 67 75 61 67 65 2e 0a 57 |is a lan|guage..W|
|000002e0| 68 61 74 20 49 20 6d 65 | 61 6e 74 20 77 61 73 20 |hat I me|ant was |
|000002f0| 74 68 61 74 20 74 70 75 | 2e 65 6c 20 73 69 6d 75 |that tpu|.el simu|
|00000300| 61 6c 74 65 73 20 74 68 | 65 20 45 44 54 20 69 6e |altes th|e EDT in|
|00000310| 74 65 72 66 61 63 65 20 | 74 6f 20 54 50 55 2e 0a |terface |to TPU..|
|00000320| 0a 57 65 6c 6c 2c 20 77 | 69 74 68 20 61 20 66 65 |.Well, w|ith a fe|
|00000330| 77 20 65 78 74 65 6e 73 | 69 6f 6e 73 2e 0a 0a 54 |w extens|ions...T|
|00000340| 68 65 72 65 27 73 20 61 | 20 74 72 75 6c 79 20 6e |here's a| truly n|
|00000350| 69 63 65 20 6e 65 77 20 | 73 74 79 6c 65 20 6f 66 |ice new |style of|
|00000360| 20 61 62 62 72 65 76 73 | 20 74 68 61 74 20 75 73 | abbrevs| that us|
|00000370| 65 73 20 61 6c 69 73 74 | 73 2e 0a 54 72 79 20 74 |es alist|s..Try t|
|00000380| 79 70 69 6e 67 20 74 68 | 65 20 70 61 72 74 69 61 |yping th|e partia|
|00000390| 6c 20 77 6f 72 64 20 22 | 48 65 75 22 2c 20 74 68 |l word "|Heu", th|
|000003a0| 65 6e 20 47 4f 4c 44 2d | 48 20 61 20 66 65 77 20 |en GOLD-|H a few |
|000003b0| 74 69 6d 65 73 2e 0a 53 | 65 65 20 77 68 65 72 65 |times..S|ee where|
|000003c0| 20 74 68 65 20 63 75 72 | 73 6f 72 20 67 6f 65 73 | the cur|sor goes|
|000003d0| 3f 0a 0a 49 20 64 6f 6e | 27 74 20 68 61 76 65 20 |?..I don|'t have |
|000003e0| 75 70 20 74 6f 20 64 61 | 74 65 20 64 6f 63 73 20 |up to da|te docs |
|000003f0| 66 6f 72 20 6d 79 20 74 | 6f 79 2c 20 62 75 74 20 |for my t|oy, but |
|00000400| 49 27 6c 6c 20 69 6e 63 | 6c 75 64 65 0a 77 68 61 |I'll inc|lude.wha|
|00000410| 74 20 49 20 67 61 76 65 | 20 74 68 65 20 73 74 75 |t I gave| the stu|
|00000420| 64 65 6e 74 73 20 6c 61 | 73 74 20 73 65 6d 65 73 |dents la|st semes|
|00000430| 74 65 72 2c 20 61 6c 6f | 6e 67 20 77 69 74 68 20 |ter, alo|ng with |
|00000440| 74 70 75 2e 65 6c 0a 0a | 48 61 76 65 20 66 75 6e |tpu.el..|Have fun|
|00000450| 2c 20 6d 61 69 6c 20 6d | 65 20 62 75 67 73 2c 20 |, mail m|e bugs, |
|00000460| 71 75 65 73 74 69 6f 6e | 73 2c 20 63 68 6f 63 6f |question|s, choco|
|00000470| 6c 61 74 65 20 63 68 69 | 70 20 63 6f 6f 6b 69 65 |late chi|p cookie|
|00000480| 73 2e 0a 0a 4a 65 66 66 | 0a 0a 43 41 44 49 46 20 |s...Jeff|..CADIF |
|00000490| 53 77 61 6d 70 0a 31 37 | 32 20 48 6f 6c 6c 69 73 |Swamp.17|2 Hollis|
|000004a0| 74 65 72 20 48 61 6c 6c | 0a 43 6f 72 6e 65 6c 6c |ter Hall|.Cornell|
|000004b0| 20 55 6e 69 76 65 72 73 | 69 74 79 0a 49 74 68 61 | Univers|ity.Itha|
|000004c0| 63 61 2c 20 4e 59 20 31 | 34 38 35 33 0a 0a 2d 2d |ca, NY 1|4853..--|
|000004d0| 2d 2d 2d 2d 2d 2d 2d 2d | 0a 47 55 49 44 45 0a 2d |--------|.GUIDE.-|
|000004e0| 2d 2d 2d 2d 2d 2d 2d 2d | 0a 54 68 65 20 6c 6f 6e |--------|.The lon|
|000004f0| 67 2d 68 65 72 61 6c 64 | 65 64 20 65 6d 75 6c 61 |g-herald|ed emula|
|00000500| 74 69 6f 6e 20 6f 66 20 | 74 68 65 20 68 69 67 68 |tion of |the high|
|00000510| 6c 79 20 61 63 63 6c 61 | 69 6d 65 64 20 42 4f 42 |ly accla|imed BOB|
|00000520| 54 50 55 20 69 73 20 68 | 65 72 65 21 0a 0a 57 68 |TPU is h|ere!..Wh|
|00000530| 61 74 20 69 73 20 62 6f | 62 74 70 75 3f 20 20 49 |at is bo|btpu? I|
|00000540| 74 27 73 20 73 69 6d 70 | 6c 79 20 74 68 65 20 6d |t's simp|ly the m|
|00000550| 6f 73 74 20 65 78 74 65 | 6e 64 65 64 20 65 64 69 |ost exte|nded edi|
|00000560| 74 6f 72 20 65 76 65 72 | 2e 20 20 57 72 69 74 74 |tor ever|. Writt|
|00000570| 65 6e 20 62 79 0a 73 79 | 73 74 65 6d 20 70 72 6f |en by.sy|stem pro|
|00000580| 67 72 61 6d 6d 65 72 20 | 70 61 72 2d 65 78 63 65 |grammer |par-exce|
|00000590| 6c 6c 65 6e 63 65 20 42 | 6f 62 20 43 6f 76 65 79 |llence B|ob Covey|
|000005a0| 2c 20 69 74 20 77 61 73 | 20 66 6f 72 6d 65 72 6c |, it was| formerl|
|000005b0| 79 20 61 76 61 69 6c 61 | 62 6c 65 0a 6f 6e 6c 79 |y availa|ble.only|
|000005c0| 20 6f 6e 20 56 4d 53 20 | 73 79 73 74 65 6d 73 20 | on VMS |systems |
|000005d0| 73 75 70 70 6f 72 74 69 | 6e 67 20 74 70 75 2e 20 |supporti|ng tpu. |
|000005e0| 20 4e 6f 77 2c 20 74 68 | 72 6f 75 67 68 20 74 68 | Now, th|rough th|
|000005f0| 65 20 6d 69 72 61 63 6c | 65 20 6f 66 20 6d 6f 64 |e miracl|e of mod|
|00000600| 65 72 6e 0a 70 68 61 72 | 6d 61 63 65 75 74 69 63 |ern.phar|maceutic|
|00000610| 61 6c 73 2c 20 4a 65 66 | 66 20 4b 6f 77 61 6c 73 |als, Jef|f Kowals|
|00000620| 6b 69 20 68 61 73 20 6a | 75 73 74 20 63 6f 6d 70 |ki has j|ust comp|
|00000630| 6c 65 74 65 64 20 61 20 | 63 6f 6d 70 6c 65 74 65 |leted a |complete|
|00000640| 20 65 6d 75 6c 61 74 69 | 6f 6e 0a 6f 66 20 74 68 | emulati|on.of th|
|00000650| 65 20 69 6e 63 72 65 64 | 69 62 6c 65 20 65 64 69 |e incred|ible edi|
|00000660| 74 6f 72 20 75 6e 64 65 | 72 20 55 6e 69 78 2e 20 |tor unde|r Unix. |
|00000670| 20 54 68 61 74 27 73 20 | 72 69 67 68 74 2c 20 55 | That's |right, U|
|00000680| 4e 49 58 21 20 20 46 6f | 72 20 74 68 65 20 66 69 |NIX! Fo|r the fi|
|00000690| 72 73 74 0a 74 69 6d 65 | 20 65 76 65 72 20 69 6e |rst.time| ever in|
|000006a0| 20 74 68 65 20 68 69 73 | 74 6f 72 79 20 6f 66 20 | the his|tory of |
|000006b0| 43 41 44 49 46 2c 20 74 | 68 65 20 55 6e 69 78 20 |CADIF, t|he Unix |
|000006c0| 75 73 65 72 2c 20 70 72 | 65 76 69 6f 75 73 6c 79 |user, pr|eviously|
|000006d0| 20 68 69 6e 64 65 72 65 | 64 20 62 79 0a 73 75 63 | hindere|d by.suc|
|000006e0| 68 20 65 76 69 6c 20 74 | 6f 72 74 75 72 65 73 20 |h evil t|ortures |
|000006f0| 61 73 20 76 69 20 61 6e | 64 20 65 64 2c 20 77 69 |as vi an|d ed, wi|
|00000700| 6c 6c 20 66 69 6e 61 6c | 6c 79 20 62 65 20 61 62 |ll final|ly be ab|
|00000710| 6c 65 20 74 6f 20 63 6f | 6d 70 6c 65 74 65 20 77 |le to co|mplete w|
|00000720| 6f 72 6b 21 0a 0a 22 48 | 6f 77 20 63 61 6e 20 49 |ork!.."H|ow can I|
|00000730| 2c 20 73 6f 20 73 69 6d | 70 6c 65 20 61 6e 20 75 |, so sim|ple an u|
|00000740| 6e 64 65 73 65 72 76 69 | 6e 67 20 61 20 73 74 75 |ndeservi|ng a stu|
|00000750| 64 65 6e 74 2c 20 67 61 | 69 6e 20 61 63 63 65 73 |dent, ga|in acces|
|00000760| 73 20 74 6f 20 74 68 65 | 0a 66 72 75 69 74 73 20 |s to the|.fruits |
|00000770| 6f 66 20 4a 65 66 66 27 | 73 20 6c 61 75 64 61 62 |of Jeff'|s laudab|
|00000780| 6c 65 20 61 63 63 6f 6d | 70 6c 69 73 68 6d 65 6e |le accom|plishmen|
|00000790| 74 3f 22 20 20 57 65 6c | 6c 2c 20 49 20 77 69 6c |t?" Wel|l, I wil|
|000007a0| 6c 20 74 65 6c 6c 20 79 | 6f 75 2e 20 20 42 75 74 |l tell y|ou. But|
|000007b0| 0a 66 69 72 73 74 2c 20 | 79 6f 75 20 6d 75 73 74 |.first, |you must|
|000007c0| 20 73 75 66 66 65 72 20 | 74 68 72 6f 75 67 68 20 | suffer |through |
|000007d0| 74 68 65 20 69 6e 63 72 | 65 64 69 62 6c 65 20 6d |the incr|edible m|
|000007e0| 69 6e 64 2d 65 78 70 61 | 6e 64 69 6e 67 20 64 65 |ind-expa|nding de|
|000007f0| 73 63 72 69 70 74 69 6f | 6e 0a 6f 66 20 77 68 61 |scriptio|n.of wha|
|00000800| 74 20 74 68 65 20 62 6f | 62 74 70 75 20 65 6d 75 |t the bo|btpu emu|
|00000810| 6c 61 74 6f 72 20 63 61 | 6e 20 64 6f 20 66 6f 72 |lator ca|n do for|
|00000820| 20 79 6f 75 20 28 6f 72 | 20 79 6f 75 20 6d 75 73 | you (or| you mus|
|00000830| 74 20 74 75 72 6e 20 74 | 68 65 20 70 61 67 65 29 |t turn t|he page)|
|00000840| 2e 0a 0a 46 69 72 73 74 | 6c 79 2c 20 74 68 65 20 |...First|ly, the |
|00000850| 62 6f 62 74 70 75 20 65 | 6d 75 6c 61 74 6f 72 20 |bobtpu e|mulator |
|00000860| 28 68 65 72 65 61 66 74 | 65 72 20 63 61 6c 6c 65 |(hereaft|er calle|
|00000870| 64 20 62 6f 62 74 70 75 | 29 20 69 73 20 77 72 69 |d bobtpu|) is wri|
|00000880| 74 74 65 6e 20 69 6e 0a | 65 6c 69 73 70 2c 20 77 |tten in.|elisp, w|
|00000890| 68 69 63 68 20 69 73 20 | 74 68 65 20 65 6d 61 63 |hich is |the emac|
|000008a0| 73 20 6e 61 74 69 76 65 | 20 6c 61 6e 67 75 61 67 |s native| languag|
|000008b0| 65 2e 20 20 54 68 69 73 | 20 6d 65 61 6e 73 20 74 |e. This| means t|
|000008c0| 68 61 74 20 74 68 65 0a | 62 65 68 69 6e 64 2d 74 |hat the.|behind-t|
|000008d0| 68 65 2d 73 63 65 6e 65 | 73 20 65 64 69 74 6f 72 |he-scene|s editor|
|000008e0| 20 69 73 20 47 4e 55 20 | 45 6d 61 63 73 2c 20 6e | is GNU |Emacs, n|
|000008f0| 6f 74 20 56 41 58 20 54 | 50 55 2e 20 20 54 68 65 |ot VAX T|PU. The|
|00000900| 72 65 20 61 72 65 2c 0a | 74 68 65 72 65 66 6f 72 |re are,.|therefor|
|00000910| 65 2c 20 61 20 66 65 77 | 20 73 75 62 74 6c 65 20 |e, a few| subtle |
|00000920| 64 69 66 66 65 72 65 6e | 63 65 73 20 62 65 74 77 |differen|ces betw|
|00000930| 65 65 6e 20 56 4d 53 20 | 62 6f 62 74 70 75 20 61 |een VMS |bobtpu a|
|00000940| 6e 64 20 55 6e 69 78 20 | 62 6f 62 74 70 75 2e 0a |nd Unix |bobtpu..|
|00000950| 46 6f 72 20 74 68 65 20 | 6d 6f 73 74 20 70 61 72 |For the |most par|
|00000960| 74 2c 20 68 6f 77 65 76 | 65 72 2c 20 79 6f 75 27 |t, howev|er, you'|
|00000970| 6c 6c 20 70 72 6f 62 61 | 62 6c 79 20 6e 65 76 65 |ll proba|bly neve|
|00000980| 72 20 6e 6f 74 69 63 65 | 2e 20 20 49 66 20 79 6f |r notice|. If yo|
|00000990| 75 20 68 61 76 65 0a 71 | 75 65 73 74 69 6f 6e 73 |u have.q|uestions|
|000009a0| 2c 20 79 6f 75 20 73 68 | 6f 75 6c 64 20 72 65 66 |, you sh|ould ref|
|000009b0| 65 72 20 74 6f 20 62 6f | 74 68 20 74 68 65 20 45 |er to bo|th the E|
|000009c0| 44 54 20 61 6e 64 20 45 | 6d 61 63 73 20 67 75 69 |DT and E|macs gui|
|000009d0| 64 65 73 2e 20 20 41 73 | 6b 20 74 68 65 0a 72 6f |des. As|k the.ro|
|000009e0| 6f 6d 20 6d 6f 6e 69 74 | 6f 72 20 66 6f 72 20 74 |om monit|or for t|
|000009f0| 68 65 6d 2e 0a 0a 41 74 | 20 74 68 65 20 76 65 72 |hem...At| the ver|
|00000a00| 79 20 6c 65 61 73 74 2c | 20 62 6f 62 74 70 75 20 |y least,| bobtpu |
|00000a10| 69 73 20 61 6e 20 45 44 | 54 20 65 6d 75 6c 61 74 |is an ED|T emulat|
|00000a20| 6f 72 2e 20 20 54 68 61 | 74 20 6d 65 61 6e 73 20 |or. Tha|t means |
|00000a30| 74 68 61 74 20 74 68 65 | 0a 61 72 72 6f 77 73 20 |that the|.arrows |
|00000a40| 77 6f 72 6b 20 61 6e 64 | 20 74 68 65 20 6b 65 79 |work and| the key|
|00000a50| 70 61 64 20 61 74 20 74 | 68 65 20 72 69 67 68 74 |pad at t|he right|
|00000a60| 20 68 61 73 20 73 70 65 | 63 69 61 6c 20 6d 65 61 | has spe|cial mea|
|00000a70| 6e 69 6e 67 2c 20 61 6d | 6f 6e 67 20 6f 74 68 65 |ning, am|ong othe|
|00000a80| 72 0a 74 68 69 6e 67 73 | 2e 20 20 49 66 20 79 6f |r.things|. If yo|
|00000a90| 75 20 61 72 65 20 6e 6f | 74 20 66 61 6d 69 6c 69 |u are no|t famili|
|00000aa0| 61 72 20 77 69 74 68 20 | 45 44 54 2c 20 61 73 6b |ar with |EDT, ask|
|00000ab0| 20 74 68 65 20 72 6f 6f | 6d 20 6d 6f 6e 69 74 6f | the roo|m monito|
|00000ac0| 72 20 66 6f 72 0a 69 6e | 66 6f 72 6d 61 74 69 6f |r for.in|formatio|
|00000ad0| 6e 20 28 61 20 6d 61 6e | 75 61 6c 20 6f 72 20 6f |n (a man|ual or o|
|00000ae0| 6e 6c 69 6e 65 20 43 41 | 49 20 6f 6e 20 56 4d 53 |nline CA|I on VMS|
|00000af0| 29 2e 20 20 49 6e 20 61 | 64 64 69 74 69 6f 6e 20 |). In a|ddition |
|00000b00| 74 6f 20 74 68 65 20 62 | 61 73 69 63 73 0a 6f 66 |to the b|asics.of|
|00000b10| 20 45 44 54 2c 20 62 6f | 62 74 70 75 20 70 72 6f | EDT, bo|btpu pro|
|00000b20| 76 69 64 65 73 20 61 6c | 6c 20 6f 66 20 74 68 65 |vides al|l of the|
|00000b30| 73 65 20 65 78 74 72 61 | 73 3a 0a 0a 09 09 09 09 |se extra|s:......|
|00000b40| 54 45 52 4d 49 4e 4f 4c | 4f 47 59 0a 0a 20 20 20 |TERMINOL|OGY.. |
|00000b50| 54 68 65 20 47 4f 4c 44 | 20 6b 65 79 20 69 73 20 |The GOLD| key is |
|00000b60| 74 68 65 20 50 46 31 20 | 6b 65 79 20 6f 6e 20 44 |the PF1 |key on D|
|00000b70| 45 43 2d 73 74 79 6c 65 | 20 6b 65 79 62 6f 61 72 |EC-style| keyboar|
|00000b80| 64 73 2c 20 46 39 20 6f | 6e 20 53 47 49 20 73 74 |ds, F9 o|n SGI st|
|00000b90| 79 6c 65 0a 6b 65 79 62 | 6f 61 72 64 73 2e 20 20 |yle.keyb|oards. |
|00000ba0| 49 74 20 69 73 20 6e 6f | 74 20 61 20 6d 6f 64 69 |It is no|t a modi|
|00000bb0| 66 69 65 72 20 69 6e 20 | 74 68 65 20 73 61 6d 65 |fier in |the same|
|00000bc0| 20 73 65 6e 73 65 20 61 | 73 20 74 68 65 20 73 68 | sense a|s the sh|
|00000bd0| 69 66 74 20 6f 72 0a 63 | 6f 6e 74 72 6f 6c 20 6b |ift or.c|ontrol k|
|00000be0| 65 79 73 3a 20 79 6f 75 | 20 64 6f 6e 27 74 20 68 |eys: you| don't h|
|00000bf0| 6f 6c 64 20 69 74 20 64 | 6f 77 6e 20 77 68 69 6c |old it d|own whil|
|00000c00| 65 20 73 74 72 69 6b 69 | 6e 67 20 61 6e 6f 74 68 |e striki|ng anoth|
|00000c10| 65 72 20 6b 65 79 2c 20 | 79 6f 75 0a 73 69 6d 70 |er key, |you.simp|
|00000c20| 6c 79 20 73 74 72 69 6b | 65 20 69 74 20 66 69 72 |ly strik|e it fir|
|00000c30| 73 74 2e 20 20 54 68 75 | 73 20 47 4f 4c 44 2d 61 |st. Thu|s GOLD-a|
|00000c40| 20 6d 65 61 6e 73 20 73 | 74 72 69 6b 65 20 50 46 | means s|trike PF|
|00000c50| 31 2c 20 74 68 65 6e 20 | 74 68 65 20 6c 65 74 74 |1, then |the lett|
|00000c60| 65 72 0a 22 61 2e 22 20 | 20 4f 6e 20 74 68 65 20 |er."a." | On the |
|00000c70| 56 4d 53 20 76 65 72 73 | 69 6f 6e 2c 20 47 4f 4c |VMS vers|ion, GOL|
|00000c80| 44 2d 61 20 61 6e 64 20 | 47 4f 4c 44 2d 41 20 61 |D-a and |GOLD-A a|
|00000c90| 72 65 20 65 71 75 69 76 | 61 6c 65 6e 74 2e 20 20 |re equiv|alent. |
|00000ca0| 4f 6e 20 6d 79 20 75 6e | 69 78 0a 76 65 72 73 69 |On my un|ix.versi|
|00000cb0| 6f 6e 2c 20 74 68 65 20 | 6c 65 74 74 65 72 73 20 |on, the |letters |
|00000cc0| 61 72 65 20 64 69 66 66 | 65 72 65 6e 74 2c 20 73 |are diff|erent, s|
|00000cd0| 6f 20 77 65 20 68 61 76 | 65 20 74 77 69 63 65 20 |o we hav|e twice |
|00000ce0| 74 68 65 20 66 75 6e 63 | 74 69 6f 6e 61 6c 69 74 |the func|tionalit|
|00000cf0| 79 2e 0a 49 6e 20 67 65 | 6e 65 72 61 6c 2c 20 74 |y..In ge|neral, t|
|00000d00| 68 65 20 6c 6f 77 65 72 | 63 61 73 65 20 76 65 72 |he lower|case ver|
|00000d10| 73 69 6f 6e 20 69 73 20 | 74 68 65 20 73 61 6d 65 |sion is |the same|
|00000d20| 20 61 73 20 74 68 65 20 | 56 4d 53 20 76 65 72 73 | as the |VMS vers|
|00000d30| 69 6f 6e 2c 20 77 68 69 | 6c 65 0a 74 68 65 20 75 |ion, whi|le.the u|
|00000d40| 70 70 65 72 63 61 73 65 | 20 76 65 72 73 69 6f 6e |ppercase| version|
|00000d50| 2c 20 73 69 6e 63 65 20 | 69 74 20 69 73 20 68 61 |, since |it is ha|
|00000d60| 72 64 65 72 20 74 6f 20 | 74 79 70 65 2c 20 70 65 |rder to |type, pe|
|00000d70| 72 66 6f 72 6d 73 20 61 | 6e 20 65 78 74 65 6e 64 |rforms a|n extend|
|00000d80| 65 64 0a 6f 70 65 72 61 | 74 69 6f 6e 2c 20 6f 72 |ed.opera|tion, or|
|00000d90| 20 61 6e 20 6f 70 65 72 | 61 74 69 6f 6e 20 77 69 | an oper|ation wi|
|00000da0| 74 68 20 6e 6f 20 71 75 | 65 72 79 2e 20 20 46 6f |th no qu|ery. Fo|
|00000db0| 72 20 65 78 61 6d 70 6c | 65 2c 20 47 4f 4c 44 2d |r exampl|e, GOLD-|
|00000dc0| 71 20 71 75 69 74 73 2c | 0a 62 75 74 20 61 73 6b |q quits,|.but ask|
|00000dd0| 73 20 61 62 6f 75 74 20 | 73 61 76 69 6e 67 20 75 |s about |saving u|
|00000de0| 6e 73 61 76 65 64 20 66 | 69 6c 65 73 20 66 69 72 |nsaved f|iles fir|
|00000df0| 73 74 3b 20 47 4f 4c 44 | 2d 51 20 71 75 69 74 73 |st; GOLD|-Q quits|
|00000e00| 20 77 69 74 68 6f 75 74 | 20 61 73 6b 69 6e 67 2e | without| asking.|
|00000e10| 0a 49 6e 20 74 68 65 20 | 63 61 73 65 73 20 77 68 |.In the |cases wh|
|00000e20| 65 72 65 20 63 61 73 65 | 20 69 73 20 69 6e 73 69 |ere case| is insi|
|00000e30| 67 6e 69 66 69 63 61 6e | 74 2c 20 49 20 77 69 6c |gnifican|t, I wil|
|00000e40| 6c 20 72 65 70 72 65 73 | 65 6e 74 20 74 68 65 20 |l repres|ent the |
|00000e50| 73 65 71 75 65 6e 63 65 | 0a 61 73 20 47 4f 4c 44 |sequence|.as GOLD|
|00000e60| 2d 5b 41 61 5d 20 77 68 | 69 63 68 20 6d 65 61 6e |-[Aa] wh|ich mean|
|00000e70| 73 20 75 73 65 20 65 69 | 74 68 65 72 20 63 61 73 |s use ei|ther cas|
|00000e80| 65 2e 0a 20 20 20 49 66 | 20 79 6f 75 20 67 65 74 |e.. If| you get|
|00000e90| 20 73 74 75 63 6b 20 69 | 6e 20 73 6f 6d 65 20 63 | stuck i|n some c|
|00000ea0| 72 61 7a 79 20 6d 6f 64 | 65 2c 20 79 6f 75 20 63 |razy mod|e, you c|
|00000eb0| 61 6e 20 74 79 70 65 20 | 43 54 52 4c 2d 47 20 28 |an type |CTRL-G (|
|00000ec0| 63 61 6e 63 65 6c 29 20 | 74 6f 0a 67 65 74 20 6f |cancel) |to.get o|
|00000ed0| 75 74 2e 20 20 53 6f 20 | 69 66 20 79 6f 75 27 72 |ut. So |if you'r|
|00000ee0| 65 20 62 65 69 6e 67 20 | 70 72 6f 6d 70 74 65 64 |e being |prompted|
|00000ef0| 20 66 6f 72 20 61 20 66 | 69 6c 65 6e 61 6d 65 20 | for a f|ilename |
|00000f00| 61 6e 64 20 79 6f 75 20 | 64 6f 6e 27 74 20 6b 6e |and you |don't kn|
|00000f10| 6f 77 0a 77 68 79 20 28 | 69 65 20 79 6f 75 27 72 |ow.why (|ie you'r|
|00000f20| 65 20 6c 6f 73 74 29 2c | 20 6a 75 73 74 20 68 69 |e lost),| just hi|
|00000f30| 74 20 61 20 43 54 52 4c | 2d 47 2e 0a 0a 09 09 09 |t a CTRL|-G......|
|00000f40| 09 4d 55 4c 54 49 50 4c | 45 20 46 49 4c 45 53 0a |.MULTIPL|E FILES.|
|00000f50| 0a 20 20 20 49 74 20 69 | 73 20 70 6f 73 73 69 62 |. It i|s possib|
|00000f60| 6c 65 20 74 6f 20 65 64 | 69 74 20 6d 61 6e 79 20 |le to ed|it many |
|00000f70| 66 69 6c 65 73 20 61 74 | 20 61 20 74 69 6d 65 2e |files at| a time.|
|00000f80| 20 20 54 68 65 79 20 6d | 61 79 20 62 65 20 65 6e | They m|ay be en|
|00000f90| 74 65 72 65 64 0a 75 73 | 69 6e 67 20 77 69 6c 64 |tered.us|ing wild|
|00000fa0| 63 61 72 64 73 20 6f 72 | 20 6c 69 73 74 73 20 6f |cards or| lists o|
|00000fb0| 6e 20 74 68 65 20 63 6f | 6d 6d 61 6e 64 20 6c 69 |n the co|mmand li|
|00000fc0| 6e 65 2e 20 41 6e 79 20 | 66 69 6c 65 73 20 77 68 |ne. Any |files wh|
|00000fd0| 69 63 68 20 61 72 65 20 | 6e 6f 74 0a 66 6f 75 6e |ich are |not.foun|
|00000fe0| 64 20 61 6e 64 20 64 6f | 20 6e 6f 74 20 63 6f 6e |d and do| not con|
|00000ff0| 74 61 69 6e 20 77 69 6c | 64 63 61 72 64 73 20 77 |tain wil|dcards w|
|00001000| 69 6c 6c 20 62 65 20 63 | 72 65 61 74 65 64 20 61 |ill be c|reated a|
|00001010| 6e 64 20 6d 61 72 6b 65 | 64 20 61 73 0a 6d 6f 64 |nd marke|d as.mod|
|00001020| 69 66 69 65 64 2e 20 59 | 6f 75 20 61 72 65 20 70 |ified. Y|ou are p|
|00001030| 6c 61 63 65 64 20 69 6e | 20 74 68 65 20 66 69 72 |laced in| the fir|
|00001040| 73 74 20 66 69 6c 65 20 | 72 65 61 64 2f 63 72 65 |st file |read/cre|
|00001050| 61 74 65 64 20 28 69 66 | 20 6e 6f 20 66 69 6c 65 |ated (if| no file|
|00001060| 73 20 61 72 65 0a 66 6f | 75 6e 64 20 61 6e 64 20 |s are.fo|und and |
|00001070| 61 6c 6c 20 73 70 65 63 | 69 66 69 63 61 74 69 6f |all spec|ificatio|
|00001080| 6e 73 20 68 61 76 65 20 | 77 69 6c 64 63 61 72 64 |ns have |wildcard|
|00001090| 73 2c 20 79 6f 75 20 77 | 69 6c 6c 20 62 65 20 70 |s, you w|ill be p|
|000010a0| 6c 61 63 65 64 20 69 6e | 20 61 0a 64 65 66 61 75 |laced in| a.defau|
|000010b0| 6c 74 20 62 75 66 66 65 | 72 29 2e 20 20 54 68 65 |lt buffe|r). The|
|000010c0| 20 66 69 6c 65 73 20 61 | 72 65 20 6d 61 72 6b 65 | files a|re marke|
|000010d0| 64 20 66 6f 72 20 75 70 | 64 61 74 65 20 6f 6e 20 |d for up|date on |
|000010e0| 65 78 69 74 2e 20 20 41 | 20 73 74 61 74 75 73 0a |exit. A| status.|
|000010f0| 6c 69 6e 65 20 73 68 6f | 77 73 20 69 6e 66 6f 72 |line sho|ws infor|
|00001100| 6d 61 74 69 6f 6e 20 61 | 62 6f 75 74 20 74 68 65 |mation a|bout the|
|00001110| 20 63 75 72 72 65 6e 74 | 20 62 75 66 66 65 72 2c | current| buffer,|
|00001120| 20 6a 75 73 74 20 61 73 | 20 69 6e 20 45 6d 61 63 | just as| in Emac|
|00001130| 73 2e 0a 0a 20 20 20 20 | 54 68 65 20 65 61 73 69 |s... |The easi|
|00001140| 65 73 74 20 77 61 79 20 | 74 6f 20 6d 6f 76 65 20 |est way |to move |
|00001150| 62 65 74 77 65 65 6e 20 | 66 69 6c 65 73 20 69 73 |between |files is|
|00001160| 20 62 79 20 68 69 74 74 | 69 6e 67 20 47 4f 4c 44 | by hitt|ing GOLD|
|00001170| 2d 57 20 74 6f 20 22 77 | 61 6c 6b 22 0a 74 6f 20 |-W to "w|alk".to |
|00001180| 74 68 65 20 6e 65 78 74 | 20 6f 6e 65 2e 20 20 47 |the next| one. G|
|00001190| 4f 4c 44 2d 77 20 77 69 | 6c 6c 20 22 77 61 6c 6b |OLD-w wi|ll "walk|
|000011a0| 22 20 74 6f 20 74 68 65 | 20 70 72 65 76 69 6f 75 |" to the| previou|
|000011b0| 73 20 6f 6e 65 2e 20 20 | 47 4f 4c 44 2d 66 20 77 |s one. |GOLD-f w|
|000011c0| 69 6c 6c 0a 61 73 6b 20 | 79 6f 75 20 66 6f 72 20 |ill.ask |you for |
|000011d0| 74 68 65 20 6e 61 6d 65 | 20 6f 66 20 61 20 66 69 |the name| of a fi|
|000011e0| 6c 65 20 74 6f 20 6a 75 | 6d 70 20 74 6f 2c 20 69 |le to ju|mp to, i|
|000011f0| 74 20 77 69 6c 6c 20 74 | 72 79 20 74 6f 20 66 69 |t will t|ry to fi|
|00001200| 6e 64 20 6f 6e 65 20 69 | 74 0a 68 61 73 20 74 68 |nd one i|t.has th|
|00001210| 61 74 20 62 65 73 74 20 | 6d 61 74 63 68 65 73 20 |at best |matches |
|00001220| 74 68 65 20 6e 61 6d 65 | 20 79 6f 75 20 67 69 76 |the name| you giv|
|00001230| 65 2e 20 20 47 4f 4c 44 | 2d 46 20 77 69 6c 6c 20 |e. GOLD|-F will |
|00001240| 64 6f 20 74 68 65 20 73 | 61 6d 65 2c 20 62 75 74 |do the s|ame, but|
|00001250| 0a 77 69 6c 6c 20 73 68 | 6f 77 20 74 68 65 20 73 |.will sh|ow the s|
|00001260| 65 6c 65 63 74 65 64 20 | 62 75 66 66 65 72 20 69 |elected |buffer i|
|00001270| 6e 20 61 6e 6f 74 68 65 | 72 20 77 69 6e 64 6f 77 |n anothe|r window|
|00001280| 2e 0a 0a 20 20 20 20 59 | 6f 75 20 63 61 6e 20 61 |... Y|ou can a|
|00001290| 64 64 20 6d 6f 72 65 20 | 66 69 6c 65 73 20 74 6f |dd more |files to|
|000012a0| 20 74 68 65 20 6c 69 73 | 74 20 28 6a 75 73 74 20 | the lis|t (just |
|000012b0| 61 73 20 69 66 20 79 6f | 75 20 68 61 64 20 69 6e |as if yo|u had in|
|000012c0| 63 6c 75 64 65 64 20 74 | 68 65 6d 0a 6f 6e 20 74 |cluded t|hem.on t|
|000012d0| 68 65 20 6f 72 69 67 69 | 6e 61 6c 20 65 64 69 74 |he origi|nal edit|
|000012e0| 20 63 6f 6d 6d 61 6e 64 | 29 20 62 79 20 68 69 74 | command|) by hit|
|000012f0| 74 69 6e 67 20 47 4f 4c | 44 2d 65 2e 20 20 49 74 |ting GOL|D-e. It|
|00001300| 20 77 69 6c 6c 20 70 72 | 6f 6d 70 74 20 66 6f 72 | will pr|ompt for|
|00001310| 20 74 68 65 0a 66 69 6c | 65 28 73 29 2c 20 77 68 | the.fil|e(s), wh|
|00001320| 69 63 68 20 6d 61 79 20 | 63 6f 6e 74 61 69 6e 20 |ich may |contain |
|00001330| 77 69 6c 64 63 61 72 64 | 73 2f 6c 69 73 74 73 2e |wildcard|s/lists.|
|00001340| 20 20 54 68 65 20 6e 65 | 77 20 66 69 6c 65 73 20 | The ne|w files |
|00001350| 77 69 6c 6c 20 62 65 0a | 6d 61 72 6b 65 64 20 66 |will be.|marked f|
|00001360| 6f 72 20 75 70 64 61 74 | 65 20 6f 6e 20 65 78 69 |or updat|e on exi|
|00001370| 74 2e 20 20 54 68 65 72 | 65 20 69 73 20 61 6e 64 |t. Ther|e is and|
|00001380| 20 65 71 75 69 76 61 6c | 65 6e 74 20 6c 69 6e 65 | equival|ent line|
|00001390| 2d 6d 6f 64 65 20 22 66 | 69 6e 64 2d 66 69 6c 65 |-mode "f|ind-file|
|000013a0| 0a 66 69 6c 65 73 70 65 | 63 28 73 29 22 2e 20 20 |.filespe|c(s)". |
|000013b0| 47 4f 4c 44 2d 45 20 77 | 69 6c 6c 20 72 65 61 64 |GOLD-E w|ill read|
|000013c0| 20 74 68 65 20 66 69 6c | 65 20 69 6e 74 6f 20 61 | the fil|e into a|
|000013d0| 6e 6f 74 68 65 72 20 77 | 69 6e 64 6f 77 2e 0a 0a |nother w|indow...|
|000013e0| 20 20 20 20 43 54 52 4c | 2d 46 20 61 6c 6c 6f 77 | CTRL|-F allow|
|000013f0| 73 20 79 6f 75 20 74 6f | 20 73 70 65 63 69 66 79 |s you to| specify|
|00001400| 20 61 20 6e 65 77 20 66 | 69 6c 65 6e 61 6d 65 20 | a new f|ilename |
|00001410| 74 6f 20 62 65 20 61 74 | 74 61 63 68 65 64 20 74 |to be at|tached t|
|00001420| 6f 20 74 68 65 0a 63 75 | 72 72 65 6e 74 20 62 75 |o the.cu|rrent bu|
|00001430| 66 66 65 72 2e 0a 0a 20 | 20 20 20 48 69 74 74 69 |ffer... | Hitti|
|00001440| 6e 67 20 47 4f 4c 44 2d | 5b 55 75 5d 20 77 69 6c |ng GOLD-|[Uu] wil|
|00001450| 6c 20 63 68 61 6e 67 65 | 20 74 68 65 20 75 70 64 |l change| the upd|
|00001460| 61 74 65 20 6d 6f 64 65 | 20 6f 66 20 61 20 62 75 |ate mode| of a bu|
|00001470| 66 66 65 72 2e 20 20 4f | 6e 6c 79 0a 74 68 6f 73 |ffer. O|nly.thos|
|00001480| 65 20 62 75 66 66 65 72 | 73 20 6d 61 72 6b 65 64 |e buffer|s marked|
|00001490| 20 77 69 74 68 20 74 68 | 65 20 64 6f 75 62 6c 65 | with th|e double|
|000014a0| 20 73 74 61 72 20 69 6e | 20 74 68 65 20 73 74 61 | star in| the sta|
|000014b0| 74 75 73 20 6c 69 6e 65 | 20 77 69 6c 6c 20 62 65 |tus line| will be|
|000014c0| 0a 77 72 69 74 74 65 6e | 20 6f 75 74 20 6f 6e 20 |.written| out on |
|000014d0| 65 78 69 74 2e 0a 20 0a | 20 20 20 20 47 4f 4c 44 |exit.. .| GOLD|
|000014e0| 2d 5b 42 62 5d 20 77 69 | 6c 6c 20 67 65 6e 65 72 |-[Bb] wi|ll gener|
|000014f0| 61 74 65 20 61 20 6c 69 | 73 74 20 6f 66 20 74 68 |ate a li|st of th|
|00001500| 65 20 63 75 72 72 65 6e | 74 20 62 75 66 66 65 72 |e curren|t buffer|
|00001510| 73 2e 20 20 54 68 65 20 | 6c 69 73 74 0a 77 69 6c |s. The |list.wil|
|00001520| 6c 20 73 68 6f 77 20 61 | 20 64 6f 74 20 69 6e 20 |l show a| dot in |
|00001530| 74 68 65 20 66 69 72 73 | 74 20 63 6f 6c 75 6d 6e |the firs|t column|
|00001540| 20 74 6f 20 69 6e 64 69 | 63 61 74 65 20 74 68 65 | to indi|cate the|
|00001550| 20 63 75 72 72 65 6e 74 | 20 62 75 66 66 65 72 2c | current| buffer,|
|00001560| 20 61 0a 73 74 61 72 20 | 69 6e 20 74 68 65 20 73 | a.star |in the s|
|00001570| 65 63 6f 6e 64 20 66 6f | 72 20 65 61 63 68 20 62 |econd fo|r each b|
|00001580| 75 66 66 65 72 20 74 68 | 61 74 20 68 61 73 20 62 |uffer th|at has b|
|00001590| 65 65 6e 20 6d 6f 64 69 | 66 69 65 64 2c 20 61 6e |een modi|fied, an|
|000015a0| 64 20 61 20 22 25 22 20 | 69 6e 0a 74 68 65 20 74 |d a "%" |in.the t|
|000015b0| 68 69 72 64 20 69 66 20 | 74 68 65 20 62 75 66 66 |hird if |the buff|
|000015c0| 65 72 20 69 73 20 6d 61 | 72 6b 65 64 20 72 65 61 |er is ma|rked rea|
|000015d0| 64 6f 6e 6c 79 2e 20 20 | 49 74 20 61 6c 73 6f 20 |donly. |It also |
|000015e0| 73 68 6f 77 73 20 74 68 | 65 20 6e 75 6d 62 65 72 |shows th|e number|
|000015f0| 20 6f 66 0a 63 68 61 72 | 61 63 74 65 72 73 20 69 | of.char|acters i|
|00001600| 6e 20 65 61 63 68 20 62 | 75 66 66 65 72 20 61 6e |n each b|uffer an|
|00001610| 64 20 74 68 65 20 66 69 | 6c 65 6e 61 6d 65 20 61 |d the fi|lename a|
|00001620| 6e 64 20 6d 6f 64 65 20 | 61 73 73 6f 63 69 61 74 |nd mode |associat|
|00001630| 65 64 20 77 69 74 68 20 | 69 74 2e 0a 0a 20 20 20 |ed with |it... |
|00001640| 20 47 4f 4c 44 2d 5b 49 | 69 5d 20 69 73 20 61 20 | GOLD-[I|i] is a |
|00001650| 68 61 6e 64 79 20 73 68 | 6f 72 74 68 61 6e 64 20 |handy sh|orthand |
|00001660| 66 6f 72 20 74 68 65 20 | 6c 69 6e 65 20 6d 6f 64 |for the |line mod|
|00001670| 65 20 22 69 6e 73 65 72 | 74 2d 66 69 6c 65 0a 66 |e "inser|t-file.f|
|00001680| 69 6c 65 6e 61 6d 65 22 | 20 63 6f 6d 6d 61 6e 64 |ilename"| command|
|00001690| 2e 20 20 49 74 20 77 69 | 6c 6c 20 70 72 6f 6d 70 |. It wi|ll promp|
|000016a0| 74 20 66 6f 72 20 74 68 | 65 20 6e 61 6d 65 20 6f |t for th|e name o|
|000016b0| 66 20 61 20 66 69 6c 65 | 2c 20 77 68 69 63 68 20 |f a file|, which |
|000016c0| 69 73 0a 69 6e 63 6c 75 | 64 65 64 20 69 6e 74 6f |is.inclu|ded into|
|000016d0| 20 74 68 65 20 63 75 72 | 72 65 6e 74 20 62 75 66 | the cur|rent buf|
|000016e0| 66 65 72 20 69 6d 6d 65 | 64 69 61 74 65 6c 79 20 |fer imme|diately |
|000016f0| 61 66 74 65 72 20 74 68 | 65 20 63 75 72 72 65 6e |after th|e curren|
|00001700| 74 20 63 75 72 73 6f 72 | 0a 6c 6f 63 61 74 69 6f |t cursor|.locatio|
|00001710| 6e 2e 20 20 54 68 65 20 | 66 69 6c 65 20 6e 61 6d |n. The |file nam|
|00001720| 65 20 73 70 65 63 69 66 | 69 65 64 20 6d 61 79 20 |e specif|ied may |
|00001730| 63 6f 6e 74 61 69 6e 20 | 77 69 6c 64 63 61 72 64 |contain |wildcard|
|00001740| 73 20 61 6e 64 2f 6f 72 | 20 6c 69 73 74 73 2e 0a |s and/or| lists..|
|00001750| 0a 20 20 20 20 47 4f 4c | 44 2d 43 54 52 4c 2d 57 |. GOL|D-CTRL-W|
|00001760| 20 61 6c 6c 6f 77 73 20 | 79 6f 75 20 74 6f 20 68 | allows |you to h|
|00001770| 61 76 65 20 74 68 65 20 | 63 75 72 72 65 6e 74 20 |ave the |current |
|00001780| 76 65 72 73 69 6f 6e 73 | 20 6f 66 20 61 6c 6c 20 |versions| of all |
|00001790| 62 75 66 66 65 72 73 0a | 77 72 69 74 74 65 6e 20 |buffers.|written |
|000017a0| 6f 75 74 20 28 73 61 76 | 65 64 29 2c 20 77 69 74 |out (sav|ed), wit|
|000017b0| 68 6f 75 74 20 65 78 69 | 74 69 6e 67 20 74 68 65 |hout exi|ting the|
|000017c0| 20 65 64 69 74 6f 72 2e | 0a 0a 20 20 20 20 47 4f | editor.|.. GO|
|000017d0| 4c 44 2d 6b 20 77 69 6c | 6c 20 74 68 72 6f 77 20 |LD-k wil|l throw |
|000017e0| 61 77 61 79 20 74 68 65 | 20 63 75 72 72 65 6e 74 |away the| current|
|000017f0| 20 62 75 66 66 65 72 20 | 61 6e 64 20 6d 6f 76 65 | buffer |and move|
|00001800| 20 6f 6e 74 6f 20 74 68 | 65 20 6e 65 78 74 2c 0a | onto th|e next,.|
|00001810| 62 75 74 20 77 69 6c 6c | 20 61 73 6b 20 66 6f 72 |but will| ask for|
|00001820| 20 63 6f 6e 66 69 72 6d | 61 74 69 6f 6e 20 66 69 | confirm|ation fi|
|00001830| 72 73 74 2e 20 20 47 4f | 4c 44 2d 4b 20 64 6f 65 |rst. GO|LD-K doe|
|00001840| 73 6e 27 74 20 61 73 6b | 2e 20 20 42 65 20 72 65 |sn't ask|. Be re|
|00001850| 61 6c 6c 79 0a 63 61 72 | 65 66 75 6c 2e 2e 2e 0a |ally.car|eful....|
|00001860| 0a 0a 09 09 09 09 20 53 | 48 45 4c 4c 20 43 4f 4d |...... S|HELL COM|
|00001870| 4d 41 4e 44 53 0a 0a 20 | 20 20 20 49 74 20 69 73 |MANDS.. | It is|
|00001880| 20 70 6f 73 73 69 62 6c | 65 20 74 6f 20 65 78 65 | possibl|e to exe|
|00001890| 63 75 74 65 20 73 68 65 | 6c 6c 20 63 6f 6d 6d 61 |cute she|ll comma|
|000018a0| 6e 64 73 20 66 72 6f 6d | 20 77 69 74 68 69 6e 20 |nds from| within |
|000018b0| 74 68 65 20 65 64 69 74 | 6f 72 2c 20 61 6e 64 0a |the edit|or, and.|
|000018c0| 67 65 74 20 74 68 65 20 | 72 65 73 75 6c 74 73 2e |get the |results.|
|000018d0| 20 20 48 69 74 74 69 6e | 67 20 47 4f 4c 44 2d 5b | Hittin|g GOLD-[|
|000018e0| 44 64 5d 20 77 69 6c 6c | 20 70 72 6f 6d 70 74 20 |Dd] will| prompt |
|000018f0| 79 6f 75 20 66 6f 72 20 | 61 20 73 68 65 6c 6c 20 |you for |a shell |
|00001900| 63 6f 6d 6d 61 6e 64 2c | 0a 74 68 65 6e 20 70 6c |command,|.then pl|
|00001910| 61 63 65 20 79 6f 75 20 | 69 6e 20 74 68 65 20 73 |ace you |in the s|
|00001920| 68 65 6c 6c 20 62 75 66 | 66 65 72 2e 20 20 54 68 |hell buf|fer. Th|
|00001930| 65 20 63 6f 6d 6d 61 6e | 64 20 69 73 20 65 78 65 |e comman|d is exe|
|00001940| 63 75 74 65 64 20 69 6e | 20 61 0a 73 75 62 70 72 |cuted in| a.subpr|
|00001950| 6f 63 65 73 73 20 69 6e | 20 74 68 61 74 20 6f 74 |ocess in| that ot|
|00001960| 68 65 72 20 62 75 66 66 | 65 72 2e 20 20 43 6f 6d |her buff|er. Com|
|00001970| 6d 61 6e 64 73 20 77 68 | 69 63 68 20 74 72 79 20 |mands wh|ich try |
|00001980| 74 6f 20 74 61 6b 65 20 | 6f 76 65 72 20 74 68 65 |to take |over the|
|00001990| 0a 73 63 72 65 65 6e 20 | 28 73 75 63 68 20 61 73 |.screen |(such as|
|000019a0| 20 74 61 6c 6b 29 20 6d | 61 79 20 6e 6f 74 20 77 | talk) m|ay not w|
|000019b0| 6f 72 6b 2e 0a 0a 0a 09 | 09 09 09 44 45 46 49 4e |ork.....|...DEFIN|
|000019c0| 49 4e 47 20 4b 45 59 53 | 0a 0a 20 20 20 20 44 65 |ING KEYS|.. De|
|000019d0| 66 69 6e 69 6e 67 20 6b | 65 79 73 20 69 73 20 61 |fining k|eys is a|
|000019e0| 6c 6d 6f 73 74 20 74 68 | 65 20 73 61 6d 65 20 61 |lmost th|e same a|
|000019f0| 73 20 69 6e 20 45 44 54 | 2c 20 74 68 65 20 6f 6e |s in EDT|, the on|
|00001a00| 6c 79 20 6d 61 6a 6f 72 | 0a 64 69 66 66 65 72 65 |ly major|.differe|
|00001a10| 6e 63 65 20 69 73 20 74 | 68 61 74 20 69 74 20 65 |nce is t|hat it e|
|00001a20| 78 65 63 75 74 65 73 20 | 74 68 65 20 6b 65 79 73 |xecutes |the keys|
|00001a30| 20 61 73 20 79 6f 75 20 | 62 75 69 6c 64 20 74 68 | as you |build th|
|00001a40| 65 20 64 65 66 69 6e 69 | 74 69 6f 6e 20 2d 2d 0a |e defini|tion --.|
|00001a50| 79 6f 75 20 64 6f 6e 27 | 74 20 68 61 76 65 20 74 |you don'|t have t|
|00001a60| 6f 20 74 72 79 20 74 6f | 20 76 69 73 75 61 6c 69 |o try to| visuali|
|00001a70| 7a 65 20 77 68 61 74 20 | 74 68 65 20 73 65 71 75 |ze what |the sequ|
|00001a80| 65 6e 63 65 20 77 69 6c | 6c 20 64 6f 2e 20 20 54 |ence wil|l do. T|
|00001a90| 68 65 0a 64 65 66 69 6e | 69 74 69 6f 6e 73 20 70 |he.defin|itions p|
|00001aa0| 72 6f 70 65 72 6c 79 20 | 68 61 6e 64 6c 65 20 72 |roperly |handle r|
|00001ab0| 65 70 65 61 74 20 63 6f | 75 6e 74 73 20 28 65 76 |epeat co|unts (ev|
|00001ac0| 65 6e 20 69 66 20 79 6f | 75 20 75 73 65 20 61 20 |en if yo|u use a |
|00001ad0| 72 65 70 65 61 74 0a 63 | 6f 75 6e 74 20 6f 6e 20 |repeat.c|ount on |
|00001ae0| 61 20 64 65 66 69 6e 65 | 64 20 6b 65 79 20 63 6f |a define|d key co|
|00001af0| 6e 74 61 69 6e 69 6e 67 | 20 61 20 72 65 70 65 61 |ntaining| a repea|
|00001b00| 74 20 6f 6e 20 73 6f 6d | 65 20 6f 74 68 65 72 20 |t on som|e other |
|00001b10| 6b 65 79 73 29 2c 20 61 | 6e 64 0a 65 78 65 63 75 |keys), a|nd.execu|
|00001b20| 74 69 6f 6e 20 6f 66 20 | 61 20 6b 65 79 20 64 65 |tion of |a key de|
|00001b30| 66 69 6e 69 74 69 6f 6e | 20 68 61 6c 74 73 20 69 |finition| halts i|
|00001b40| 6d 6d 65 64 69 61 74 65 | 6c 79 20 69 66 20 69 74 |mmediate|ly if it|
|00001b50| 20 65 6e 63 6f 75 6e 74 | 65 72 73 20 61 6e 79 0a | encount|ers any.|
|00001b60| 65 72 72 6f 72 20 28 73 | 74 72 69 6e 67 20 6e 6f |error (s|tring no|
|00001b70| 74 20 66 6f 75 6e 64 2c | 20 6d 6f 76 65 20 70 61 |t found,| move pa|
|00001b80| 73 74 20 65 6e 64 20 6f | 66 20 62 75 66 66 65 72 |st end o|f buffer|
|00001b90| 2c 20 65 74 63 2e 29 2e | 0a 0a 0a 09 09 09 09 53 |, etc.).|.......S|
|00001ba0| 55 42 53 54 49 54 55 54 | 49 4f 4e 53 0a 0a 20 20 |UBSTITUT|IONS.. |
|00001bb0| 20 20 47 4f 4c 44 2d 73 | 20 6f 72 20 47 4f 4c 44 | GOLD-s| or GOLD|
|00001bc0| 2d 2f 20 61 6c 6c 6f 77 | 73 20 79 6f 75 20 74 6f |-/ allow|s you to|
|00001bd0| 20 65 61 73 69 6c 79 20 | 73 70 65 63 69 66 79 20 | easily |specify |
|00001be0| 61 20 73 75 62 73 74 69 | 74 75 74 69 6f 6e 2e 20 |a substi|tution. |
|00001bf0| 20 49 74 0a 77 69 6c 6c | 20 70 72 6f 6d 70 74 20 | It.will| prompt |
|00001c00| 66 6f 72 20 74 68 65 20 | 6f 6c 64 20 73 74 72 69 |for the |old stri|
|00001c10| 6e 67 20 79 6f 75 20 77 | 61 6e 74 20 74 6f 20 72 |ng you w|ant to r|
|00001c20| 65 70 6c 61 63 65 2c 20 | 61 6e 64 20 74 68 65 20 |eplace, |and the |
|00001c30| 6e 65 77 0a 72 65 70 6c | 61 63 65 6d 65 6e 74 20 |new.repl|acement |
|00001c40| 73 74 72 69 6e 67 2e 20 | 20 54 68 65 6e 2c 20 74 |string. | Then, t|
|00001c50| 68 65 20 66 75 6e 63 74 | 69 6f 6e 20 77 69 6c 6c |he funct|ion will|
|00001c60| 20 70 61 75 73 65 20 61 | 74 20 65 61 63 68 20 6f | pause a|t each o|
|00001c70| 63 63 75 72 65 6e 63 65 | 20 6f 66 0a 74 68 65 20 |ccurence| of.the |
|00001c80| 6f 72 69 67 69 6e 61 6c | 20 61 6e 64 20 77 61 69 |original| and wai|
|00001c90| 74 20 66 6f 72 20 61 20 | 72 65 73 70 6f 6e 73 65 |t for a |response|
|00001ca0| 2e 20 20 54 79 70 69 63 | 61 6c 20 72 65 73 70 6f |. Typic|al respo|
|00001cb0| 6e 73 65 73 20 61 72 65 | 20 22 59 22 0a 28 72 65 |nses are| "Y".(re|
|00001cc0| 70 6c 61 63 65 29 2c 20 | 22 4e 22 20 28 64 6f 6e |place), |"N" (don|
|00001cd0| 27 74 20 72 65 70 6c 61 | 63 65 29 2c 20 22 51 22 |'t repla|ce), "Q"|
|00001ce0| 20 28 73 74 6f 70 20 72 | 65 70 6c 61 63 69 6e 67 | (stop r|eplacing|
|00001cf0| 29 2e 20 20 46 6f 72 20 | 6d 6f 72 65 0a 69 6e 66 |). For |more.inf|
|00001d00| 6f 72 6d 61 74 69 6f 6e | 2c 20 73 65 65 20 74 68 |ormation|, see th|
|00001d10| 65 20 45 6d 61 63 73 20 | 6d 61 6e 75 61 6c 20 75 |e Emacs |manual u|
|00001d20| 6e 64 65 72 20 71 75 65 | 72 79 2d 72 65 70 6c 61 |nder que|ry-repla|
|00001d30| 63 65 2e 20 20 47 4f 4c | 44 2d 53 20 77 69 6c 6c |ce. GOL|D-S will|
|00001d40| 0a 72 65 70 6c 61 63 65 | 20 61 6c 6c 20 74 68 65 |.replace| all the|
|00001d50| 20 6f 6c 64 20 73 74 72 | 69 6e 67 73 20 77 69 74 | old str|ings wit|
|00001d60| 68 20 74 68 65 20 6e 65 | 77 20 6f 6e 65 73 2c 20 |h the ne|w ones, |
|00001d70| 77 69 74 68 6f 75 74 20 | 61 73 6b 69 6e 67 20 66 |without |asking f|
|00001d80| 6f 72 20 61 6e 79 0a 63 | 6f 6e 66 69 72 6d 61 74 |or any.c|onfirmat|
|00001d90| 69 6f 6e 2e 0a 0a 0a 09 | 09 09 09 20 20 20 41 55 |ion.....|... AU|
|00001da0| 54 4f 2d 54 41 42 0a 0a | 20 20 20 20 57 68 65 6e |TO-TAB..| When|
|00001db0| 20 65 6e 61 62 6c 65 64 | 20 28 64 69 73 61 62 6c | enabled| (disabl|
|00001dc0| 65 64 20 62 79 20 64 65 | 66 61 75 6c 74 29 2c 20 |ed by de|fault), |
|00001dd0| 68 69 74 74 69 6e 67 20 | 52 45 54 55 52 4e 20 77 |hitting |RETURN w|
|00001de0| 69 6c 6c 20 61 63 74 20 | 61 73 20 69 66 0a 79 6f |ill act |as if.yo|
|00001df0| 75 20 68 69 74 20 52 45 | 54 55 52 4e 2c 20 66 6f |u hit RE|TURN, fo|
|00001e00| 6c 6c 6f 77 65 64 20 62 | 79 20 61 70 70 72 6f 70 |llowed b|y approp|
|00001e10| 72 69 61 74 65 20 73 70 | 61 63 69 6e 67 20 69 66 |riate sp|acing if|
|00001e20| 20 74 68 65 20 72 65 73 | 75 6c 74 69 6e 67 20 6c | the res|ulting l|
|00001e30| 69 6e 65 20 69 73 0a 62 | 6c 61 6e 6b 2e 20 20 54 |ine is.b|lank. T|
|00001e40| 41 42 20 61 74 20 74 68 | 65 20 62 65 67 69 6e 6e |AB at th|e beginn|
|00001e50| 69 6e 67 20 6f 66 20 61 | 20 6c 69 6e 65 20 28 73 |ing of a| line (s|
|00001e60| 74 69 6c 6c 20 69 6e 20 | 74 68 65 20 77 68 69 74 |till in |the whit|
|00001e70| 65 73 70 61 63 65 29 20 | 77 69 6c 6c 0a 72 65 2d |espace) |will.re-|
|00001e80| 69 6e 64 65 6e 74 20 74 | 68 65 20 6c 69 6e 65 20 |indent t|he line |
|00001e90| 61 63 63 6f 72 64 69 6e | 67 20 74 6f 20 74 68 65 |accordin|g to the|
|00001ea0| 20 6c 61 6e 67 75 61 67 | 65 20 79 6f 75 20 61 72 | languag|e you ar|
|00001eb0| 65 20 75 73 69 6e 67 2e | 20 20 54 41 42 0a 61 6e |e using.| TAB.an|
|00001ec0| 79 77 68 65 72 65 20 69 | 6e 20 74 68 65 20 74 65 |ywhere i|n the te|
|00001ed0| 78 74 20 69 73 20 73 74 | 69 6c 6c 20 61 20 74 61 |xt is st|ill a ta|
|00001ee0| 62 2e 20 20 47 4f 4c 44 | 2d 5b 41 61 5d 20 69 73 |b. GOLD|-[Aa] is|
|00001ef0| 20 70 72 6f 76 69 64 65 | 64 20 61 73 20 61 6e 20 | provide|d as an |
|00001f00| 65 61 73 79 0a 77 61 79 | 20 74 6f 20 74 6f 67 67 |easy.way| to togg|
|00001f10| 6c 65 20 61 75 74 6f 74 | 61 62 20 6d 6f 64 65 20 |le autot|ab mode |
|00001f20| 6f 6e 20 61 6e 64 20 6f | 66 66 2e 0a 0a 0a 09 09 |on and o|ff......|
|00001f30| 09 09 20 20 20 20 4f 54 | 48 45 52 0a 0a 20 20 20 |.. OT|HER.. |
|00001f40| 20 47 4f 4c 44 2d 44 45 | 4c 20 28 47 4f 4c 44 2d | GOLD-DE|L (GOLD-|
|00001f50| 42 53 20 6f 6e 20 73 6f | 6d 65 29 20 77 69 6c 6c |BS on so|me) will|
|00001f60| 20 72 65 6d 6f 76 65 20 | 74 68 65 20 63 75 72 72 | remove |the curr|
|00001f70| 65 6e 74 20 77 69 6e 64 | 6f 77 2c 20 69 66 20 69 |ent wind|ow, if i|
|00001f80| 74 27 73 0a 6e 6f 74 20 | 74 68 65 20 6f 6e 6c 79 |t's.not |the only|
|00001f90| 20 6f 6e 65 2e 20 20 43 | 54 52 4c 2d 58 20 31 20 | one. C|TRL-X 1 |
|00001fa0| 77 69 6c 6c 20 6d 61 6b | 65 20 74 68 65 20 63 75 |will mak|e the cu|
|00001fb0| 72 72 65 6e 74 20 77 69 | 6e 64 6f 77 20 74 68 65 |rrent wi|ndow the|
|00001fc0| 20 6f 6e 6c 79 20 6f 6e | 65 2c 0a 62 79 20 72 65 | only on|e,.by re|
|00001fd0| 6d 6f 76 69 6e 67 20 61 | 6c 6c 20 74 68 65 20 6f |moving a|ll the o|
|00001fe0| 74 68 65 72 73 2e 20 20 | 52 65 6d 65 6d 62 65 72 |thers. |Remember|
|00001ff0| 2c 20 62 75 66 66 65 72 | 73 20 61 6e 64 20 77 69 |, buffer|s and wi|
|00002000| 6e 64 6f 77 73 20 61 72 | 65 20 6e 6f 74 20 74 68 |ndows ar|e not th|
|00002010| 65 0a 73 61 6d 65 20 74 | 68 69 6e 67 2e 20 20 44 |e.same t|hing. D|
|00002020| 6f 6e 27 74 20 77 6f 72 | 72 79 3a 20 72 65 6d 6f |on't wor|ry: remo|
|00002030| 76 69 6e 67 20 61 20 77 | 69 6e 64 6f 77 20 64 6f |ving a w|indow do|
|00002040| 65 73 6e 27 74 20 65 72 | 61 73 65 20 74 68 61 74 |esn't er|ase that|
|00002050| 20 62 75 66 66 65 72 21 | 0a 0a 20 20 20 20 59 6f | buffer!|.. Yo|
|00002060| 75 20 63 61 6e 20 67 65 | 74 20 68 65 6c 70 20 61 |u can ge|t help a|
|00002070| 74 20 61 6e 79 20 74 69 | 6d 65 20 62 79 20 70 72 |t any ti|me by pr|
|00002080| 65 73 73 69 6e 67 20 74 | 68 65 20 48 45 4c 50 20 |essing t|he HELP |
|00002090| 6b 65 79 20 6f 6e 20 56 | 54 32 30 30 0a 6b 65 79 |key on V|T200.key|
|000020a0| 62 6f 61 72 64 73 2c 20 | 6f 72 20 75 73 69 6e 67 |boards, |or using|
|000020b0| 20 22 47 4f 4c 44 2d 4b | 50 37 20 69 6e 66 6f 20 | "GOLD-K|P7 info |
|000020c0| 52 45 54 55 52 4e 22 0a | 0a 20 20 20 20 59 6f 75 |RETURN".|. You|
|000020d0| 20 63 61 6e 20 67 65 74 | 20 74 68 65 20 64 65 73 | can get| the des|
|000020e0| 63 72 69 70 74 69 6f 6e | 20 6f 66 20 61 6e 79 20 |cription| of any |
|000020f0| 6b 65 79 27 73 20 66 75 | 6e 63 74 69 6f 6e 20 62 |key's fu|nction b|
|00002100| 79 20 75 73 69 6e 67 20 | 74 68 65 20 50 46 32 0a |y using |the PF2.|
|00002110| 6b 65 79 2c 20 74 68 65 | 6e 20 70 72 65 73 73 69 |key, the|n pressi|
|00002120| 6e 67 20 61 20 6b 65 79 | 20 73 65 71 75 65 6e 63 |ng a key| sequenc|
|00002130| 65 2e 20 20 4e 65 61 74 | 2c 20 68 75 68 3f 0a 0a |e. Neat|, huh?..|
|00002140| 20 20 20 20 41 73 20 77 | 69 74 68 20 6e 6f 72 6d | As w|ith norm|
|00002150| 61 6c 20 45 44 54 20 61 | 74 20 43 41 44 49 46 2c |al EDT a|t CADIF,|
|00002160| 20 47 4f 4c 44 2d 71 20 | 61 6e 64 20 47 4f 4c 44 | GOLD-q |and GOLD|
|00002170| 2d 78 20 70 72 6f 76 69 | 64 65 20 61 6e 79 20 65 |-x provi|de any e|
|00002180| 61 73 79 20 77 61 79 0a | 74 6f 20 71 75 69 74 20 |asy way.|to quit |
|00002190| 77 69 74 68 6f 75 74 20 | 73 61 76 69 6e 67 20 61 |without |saving a|
|000021a0| 6e 79 20 63 68 61 6e 67 | 65 73 20 6f 72 20 65 78 |ny chang|es or ex|
|000021b0| 69 74 20 26 20 77 72 69 | 74 65 20 6f 75 74 20 61 |it & wri|te out a|
|000021c0| 6c 6c 20 62 75 66 66 65 | 72 73 0a 6d 61 72 6b 65 |ll buffe|rs.marke|
|000021d0| 64 20 75 70 64 61 74 65 | 20 77 68 69 63 68 20 68 |d update| which h|
|000021e0| 61 76 65 20 62 65 65 6e | 20 6d 6f 64 69 66 69 65 |ave been| modifie|
|000021f0| 64 2e 20 20 54 68 65 20 | 6c 6f 77 65 72 63 61 73 |d. The |lowercas|
|00002200| 65 20 76 65 72 73 69 6f | 6e 73 20 61 73 6b 20 66 |e versio|ns ask f|
|00002210| 6f 72 0a 63 6f 6e 66 69 | 72 6d 61 74 69 6f 6e 20 |or.confi|rmation |
|00002220| 69 66 20 6e 65 63 65 73 | 73 61 72 79 3b 20 47 4f |if neces|sary; GO|
|00002230| 4c 44 2d 51 20 61 6e 64 | 20 47 4f 4c 44 2d 58 20 |LD-Q and| GOLD-X |
|00002240| 64 6f 20 6e 6f 74 2e 20 | 20 42 65 20 63 61 72 65 |do not. | Be care|
|00002250| 66 75 6c 2e 2e 2e 0a 0a | 20 20 20 20 47 4f 4c 44 |ful.....| GOLD|
|00002260| 2d 5b 59 79 5d 20 69 73 | 20 64 65 66 69 6e 65 64 |-[Yy] is| defined|
|00002270| 20 74 6f 20 63 6f 70 79 | 20 74 68 65 20 73 65 6c | to copy| the sel|
|00002280| 65 63 74 65 64 20 72 65 | 67 69 6f 6e 20 69 6e 74 |ected re|gion int|
|00002290| 6f 20 74 68 65 20 70 61 | 73 74 65 0a 62 75 66 66 |o the pa|ste.buff|
|000022a0| 65 72 2e 20 20 49 74 20 | 69 73 20 73 69 6d 69 6c |er. It |is simil|
|000022b0| 61 72 20 74 6f 20 74 68 | 65 20 43 55 54 20 63 6f |ar to th|e CUT co|
|000022c0| 6d 6d 61 6e 64 2c 20 62 | 75 74 20 79 6f 75 20 64 |mmand, b|ut you d|
|000022d0| 6f 6e 27 74 20 68 61 76 | 65 20 74 6f 20 70 61 73 |on't hav|e to pas|
|000022e0| 74 65 0a 74 68 65 20 74 | 65 78 74 20 62 61 63 6b |te.the t|ext back|
|000022f0| 20 69 6e 2c 20 61 6e 64 | 20 69 74 20 64 6f 65 73 | in, and| it does|
|00002300| 6e 27 74 20 6d 61 72 6b | 20 74 68 65 20 62 75 66 |n't mark| the buf|
|00002310| 66 65 72 20 61 73 20 63 | 68 61 6e 67 69 6e 67 2e |fer as c|hanging.|
|00002320| 0a 0a 20 20 20 20 47 4f | 4c 44 2d 43 54 52 4c 2d |.. GO|LD-CTRL-|
|00002330| 4c 20 61 6e 64 20 47 4f | 4c 44 2d 43 54 52 4c 2d |L and GO|LD-CTRL-|
|00002340| 55 20 61 63 74 20 74 68 | 65 20 73 61 6d 65 20 61 |U act th|e same a|
|00002350| 73 20 43 48 41 4e 47 45 | 20 43 41 53 45 20 28 47 |s CHANGE| CASE (G|
|00002360| 4f 4c 44 2d 4b 50 31 29 | 2c 0a 65 78 63 65 70 74 |OLD-KP1)|,.except|
|00002370| 20 74 68 61 74 20 61 6c | 6c 20 74 68 65 20 74 65 | that al|l the te|
|00002380| 78 74 20 69 73 20 66 6f | 72 63 65 64 20 74 6f 20 |xt is fo|rced to |
|00002390| 62 65 20 6c 6f 77 65 72 | 20 6f 72 20 75 70 70 65 |be lower| or uppe|
|000023a0| 72 20 63 61 73 65 20 69 | 6e 73 74 65 61 64 20 6f |r case i|nstead o|
|000023b0| 66 0a 73 77 69 74 63 68 | 69 6e 67 20 74 6f 20 74 |f.switch|ing to t|
|000023c0| 68 65 20 6f 70 70 6f 73 | 69 74 65 20 63 61 73 65 |he oppos|ite case|
|000023d0| 2e 0a 0a 20 20 20 20 47 | 4f 4c 44 2d 55 50 20 61 |... G|OLD-UP a|
|000023e0| 6e 64 20 47 4f 4c 44 2d | 44 4f 57 4e 20 77 69 6c |nd GOLD-|DOWN wil|
|000023f0| 6c 20 6d 6f 76 65 20 75 | 70 20 6f 72 20 64 6f 77 |l move u|p or dow|
|00002400| 6e 20 61 20 66 75 6c 6c | 20 73 63 72 65 65 6e 2e |n a full| screen.|
|00002410| 20 20 47 4f 4c 44 2d 4c | 45 46 54 0a 61 6e 64 20 | GOLD-L|EFT.and |
|00002420| 47 4f 4c 44 2d 52 49 47 | 48 54 20 77 69 6c 6c 20 |GOLD-RIG|HT will |
|00002430| 61 73 6b 20 79 6f 75 20 | 66 6f 72 20 61 20 6e 65 |ask you |for a ne|
|00002440| 77 20 73 63 72 65 65 6e | 20 73 69 7a 65 2c 20 69 |w screen| size, i|
|00002450| 6e 20 63 61 73 65 20 79 | 6f 75 72 20 74 65 72 6d |n case y|our term|
|00002460| 69 6e 61 6c 0a 69 73 20 | 73 63 72 65 77 65 64 20 |inal.is |screwed |
|00002470| 75 70 2e 0a 0a 20 20 20 | 20 47 4f 4c 44 2d 53 50 |up... | GOLD-SP|
|00002480| 41 43 45 20 69 73 20 61 | 6e 20 75 6e 64 6f 2e 20 |ACE is a|n undo. |
|00002490| 20 59 6f 75 20 63 61 6e | 20 74 79 70 69 63 61 6c | You can| typical|
|000024a0| 6c 79 20 75 6e 64 6f 20 | 61 62 6f 75 74 20 35 30 |ly undo |about 50|
|000024b0| 30 20 6d 61 6a 6f 72 0a | 63 68 61 6e 67 65 73 2e |0 major.|changes.|
|000024c0| 20 20 41 66 74 65 72 20 | 74 68 61 74 2c 20 79 6f | After |that, yo|
|000024d0| 75 27 72 65 20 6f 6e 20 | 79 6f 75 72 20 6f 77 6e |u're on |your own|
|000024e0| 2e 0a 0a 20 20 20 20 47 | 4f 4c 44 2d 7e 20 73 77 |... G|OLD-~ sw|
|000024f0| 61 70 73 20 74 68 65 20 | 63 75 72 72 65 6e 74 20 |aps the |current |
|00002500| 6c 6f 63 61 74 69 6f 6e | 20 77 69 74 68 20 74 68 |location| with th|
|00002510| 65 20 6f 74 68 65 72 20 | 65 6e 64 20 6f 66 20 74 |e other |end of t|
|00002520| 68 65 20 73 65 6c 65 63 | 74 65 64 0a 72 65 67 69 |he selec|ted.regi|
|00002530| 6f 6e 2c 20 61 6c 6c 6f | 77 69 6e 67 20 79 6f 75 |on, allo|wing you|
|00002540| 20 74 6f 20 63 68 65 63 | 6b 20 77 68 65 72 65 20 | to chec|k where |
|00002550| 69 74 20 69 73 20 6f 72 | 20 65 61 73 69 6c 79 20 |it is or| easily |
|00002560| 61 64 6a 75 73 74 20 62 | 6f 74 68 20 65 6e 64 73 |adjust b|oth ends|
|00002570| 2e 0a 0a 0a 0a 09 09 09 | 20 20 20 20 20 20 41 44 |........| AD|
|00002580| 56 41 4e 43 45 44 20 46 | 55 4e 43 54 49 4f 4e 53 |VANCED F|UNCTIONS|
|00002590| 0a 0a 20 20 20 20 41 6e | 64 20 6e 6f 77 20 73 6f |.. An|d now so|
|000025a0| 6d 65 20 6d 6f 72 65 20 | 61 64 76 61 6e 63 65 64 |me more |advanced|
|000025b0| 20 28 70 72 6f 6e 6f 75 | 6e 63 65 64 20 22 62 69 | (pronou|nced "bi|
|000025c0| 7a 61 72 72 65 22 29 20 | 64 65 66 69 6e 69 74 69 |zarre") |definiti|
|000025d0| 6f 6e 73 2e 2e 2e 0a 0a | 0a 09 09 09 09 20 20 20 |ons.....|..... |
|000025e0| 4d 41 52 4b 45 52 53 0a | 0a 20 20 20 20 47 4f 4c |MARKERS.|. GOL|
|000025f0| 44 2d 2e 20 28 6b 65 79 | 62 6f 61 72 64 20 70 65 |D-. (key|board pe|
|00002600| 72 69 6f 64 2c 20 6e 6f | 74 20 74 68 65 20 6f 6e |riod, no|t the on|
|00002610| 65 20 6f 6e 20 74 68 65 | 20 6b 65 79 70 61 64 29 |e on the| keypad)|
|00002620| 20 77 69 6c 6c 20 73 65 | 74 20 61 0a 6d 61 72 6b | will se|t a.mark|
|00002630| 65 72 20 74 68 61 74 20 | 63 61 6e 20 62 65 20 72 |er that |can be r|
|00002640| 65 74 75 72 6e 65 64 20 | 74 6f 20 6c 61 74 65 72 |eturned |to later|
|00002650| 20 75 73 69 6e 67 20 47 | 4f 4c 44 2d 2c 20 28 61 | using G|OLD-, (a|
|00002660| 6c 73 6f 20 6e 6f 74 20 | 74 68 65 20 6f 6e 65 20 |lso not |the one |
|00002670| 6f 6e 0a 74 68 65 20 6b | 65 79 70 61 64 29 2e 20 |on.the k|eypad). |
|00002680| 20 59 6f 75 20 6d 61 79 | 20 75 73 65 20 61 20 72 | You may| use a r|
|00002690| 65 70 65 61 74 20 63 6f | 75 6e 74 20 74 6f 20 73 |epeat co|unt to s|
|000026a0| 70 65 63 69 66 79 20 77 | 68 69 63 68 20 6d 61 72 |pecify w|hich mar|
|000026b0| 6b 65 72 20 28 31 20 69 | 73 0a 6e 6f 72 6d 61 6c |ker (1 i|s.normal|
|000026c0| 6c 79 20 74 68 65 20 64 | 65 66 61 75 6c 74 29 2e |ly the d|efault).|
|000026d0| 20 20 4f 6e 20 44 45 43 | 2d 73 74 79 6c 65 20 6b | On DEC|-style k|
|000026e0| 65 79 62 6f 61 72 64 73 | 2c 20 74 68 65 20 6b 65 |eyboards|, the ke|
|000026f0| 79 73 20 46 31 37 2d 46 | 32 30 20 72 65 74 72 69 |ys F17-F|20 retri|
|00002700| 65 76 65 0a 6d 61 72 6b | 65 72 73 20 32 20 74 68 |eve.mark|ers 2 th|
|00002710| 72 6f 75 67 68 20 35 20 | 61 75 74 6f 6d 61 74 69 |rough 5 |automati|
|00002720| 63 61 6c 6c 79 2c 20 61 | 6e 64 20 47 4f 4c 44 2d |cally, a|nd GOLD-|
|00002730| 46 31 37 20 74 68 72 6f | 75 67 68 20 47 4f 4c 44 |F17 thro|ugh GOLD|
|00002740| 2d 46 32 30 0a 69 6e 73 | 65 72 74 20 74 68 65 6d |-F20.ins|ert them|
|00002750| 2e 20 20 50 72 65 74 74 | 79 20 63 6f 6e 76 65 6e |. Prett|y conven|
|00002760| 69 65 6e 74 2c 20 68 75 | 68 3f 0a 0a 09 09 09 20 |ient, hu|h?..... |
|00002770| 20 20 20 20 20 20 53 45 | 41 52 43 48 20 50 41 54 | SE|ARCH PAT|
|00002780| 54 45 52 4e 53 0a 0a 20 | 20 20 20 47 4f 4c 44 2d |TERNS.. | GOLD-|
|00002790| 27 20 6f 72 20 47 4f 4c | 44 2d 22 20 77 69 6c 6c |' or GOL|D-" will|
|000027a0| 20 61 6c 6c 6f 77 20 79 | 6f 75 20 74 6f 20 73 65 | allow y|ou to se|
|000027b0| 61 72 63 68 20 66 6f 72 | 20 61 20 72 65 67 75 6c |arch for| a regul|
|000027c0| 61 72 20 65 78 70 72 65 | 73 73 69 6f 6e 0a 69 6e |ar expre|ssion.in|
|000027d0| 73 74 65 61 64 20 6f 66 | 20 6a 75 73 74 20 61 20 |stead of| just a |
|000027e0| 73 69 6d 70 6c 65 20 73 | 74 72 69 6e 67 2e 20 20 |simple s|tring. |
|000027f0| 54 68 65 20 70 61 74 74 | 65 72 6e 20 6d 61 74 63 |The patt|ern matc|
|00002800| 68 69 6e 67 20 69 73 20 | 72 65 6c 61 74 69 76 65 |hing is |relative|
|00002810| 6c 79 0a 70 6f 77 65 72 | 66 75 6c 2c 20 62 75 74 |ly.power|ful, but|
|00002820| 20 74 61 6b 65 73 20 61 | 20 6c 69 74 74 6c 65 20 | takes a| little |
|00002830| 70 72 61 63 74 69 63 65 | 2e 20 20 53 65 65 20 61 |practice|. See a|
|00002840| 20 67 6f 6f 64 20 55 6e | 69 78 20 6d 61 6e 75 61 | good Un|ix manua|
|00002850| 6c 20 28 68 61 21 29 20 | 66 6f 72 0a 6d 6f 72 65 |l (ha!) |for.more|
|00002860| 20 64 65 74 61 69 6c 73 | 20 6f 6e 20 70 61 74 74 | details| on patt|
|00002870| 65 72 6e 73 2e 20 20 41 | 66 74 65 72 20 61 20 70 |erns. A|fter a p|
|00002880| 61 74 74 65 72 6e 20 73 | 65 61 72 63 68 20 69 73 |attern s|earch is|
|00002890| 20 65 6e 74 65 72 65 64 | 2c 20 46 49 4e 44 20 4e | entered|, FIND N|
|000028a0| 45 58 54 0a 28 50 46 33 | 29 20 6d 61 79 20 62 65 |EXT.(PF3|) may be|
|000028b0| 20 75 73 65 64 20 74 6f | 20 73 65 61 72 63 68 20 | used to| search |
|000028c0| 77 69 74 68 20 74 68 65 | 20 73 61 6d 65 20 70 61 |with the| same pa|
|000028d0| 74 74 65 72 6e 2e 0a 0a | 09 09 09 20 20 20 20 20 |ttern...|... |
|000028e0| 20 20 4d 41 54 43 48 20 | 44 45 4c 49 4d 49 54 45 | MATCH |DELIMITE|
|000028f0| 52 53 0a 0a 20 20 20 20 | 54 68 65 20 56 4d 53 20 |RS.. |The VMS |
|00002900| 76 65 72 73 69 6f 6e 20 | 6f 66 20 62 6f 62 74 70 |version |of bobtp|
|00002910| 75 20 68 61 73 20 73 70 | 65 63 69 61 6c 20 6b 65 |u has sp|ecial ke|
|00002920| 79 73 20 66 6f 72 20 6d | 61 74 63 68 69 6e 67 20 |ys for m|atching |
|00002930| 64 65 6c 69 6d 69 74 65 | 72 73 2e 0a 54 68 65 20 |delimite|rs..The |
|00002940| 75 6e 69 78 20 76 65 72 | 73 69 6f 6e 20 64 6f 65 |unix ver|sion doe|
|00002950| 73 20 69 74 20 63 6f 6e | 73 74 61 6e 74 6c 79 2c |s it con|stantly,|
|00002960| 20 62 79 20 62 6c 69 6e | 6b 69 6e 67 20 6f 6e 20 | by blin|king on |
|00002970| 74 68 65 20 6d 61 74 63 | 68 69 6e 67 20 6f 70 65 |the matc|hing ope|
|00002980| 6e 0a 64 65 6c 69 6d 69 | 74 65 72 20 62 72 69 65 |n.delimi|ter brie|
|00002990| 66 6c 79 2e 20 20 46 6f | 72 20 65 78 61 6d 70 6c |fly. Fo|r exampl|
|000029a0| 65 2c 20 69 66 20 79 6f | 75 20 74 79 70 65 20 61 |e, if yo|u type a|
|000029b0| 20 63 6c 6f 73 69 6e 67 | 20 62 72 61 63 65 20 28 | closing| brace (|
|000029c0| 7d 29 20 69 6e 0a 63 2d | 6d 6f 64 65 2c 20 74 68 |}) in.c-|mode, th|
|000029d0| 65 20 65 64 69 74 6f 72 | 20 72 65 73 74 73 20 74 |e editor| rests t|
|000029e0| 68 65 20 63 75 72 73 6f | 72 20 62 72 69 65 66 6c |he curso|r briefl|
|000029f0| 79 20 6f 6e 20 74 68 65 | 20 6d 61 74 68 69 6e 67 |y on the| mathing|
|00002a00| 20 6f 70 65 6e 69 6e 67 | 0a 62 72 61 63 65 2c 20 | opening|.brace, |
|00002a10| 74 68 65 6e 20 72 65 74 | 75 72 6e 73 20 74 68 65 |then ret|urns the|
|00002a20| 20 63 75 72 73 6f 72 20 | 74 6f 20 69 74 73 20 70 | cursor |to its p|
|00002a30| 72 6f 70 65 72 20 70 6c | 61 63 65 2e 0a 0a 09 09 |roper pl|ace.....|
|00002a40| 09 09 20 20 20 43 4f 55 | 4e 54 45 52 53 0a 0a 20 |.. COU|NTERS.. |
|00002a50| 20 20 20 54 68 65 72 65 | 20 69 73 20 61 6e 20 69 | There| is an i|
|00002a60| 6e 74 65 72 6e 61 6c 20 | 63 6f 75 6e 74 65 72 20 |nternal |counter |
|00002a70| 74 68 61 74 20 6d 61 79 | 20 62 65 20 75 73 65 66 |that may| be usef|
|00002a80| 75 6c 2e 20 20 47 4f 4c | 44 2d 3d 20 77 69 6c 6c |ul. GOL|D-= will|
|00002a90| 20 73 65 74 0a 74 68 65 | 20 63 6f 75 6e 74 65 72 | set.the| counter|
|00002aa0| 20 74 6f 20 74 68 65 20 | 72 65 70 65 61 74 20 63 | to the |repeat c|
|00002ab0| 6f 75 6e 74 2c 20 7a 65 | 72 6f 20 69 66 20 6e 6f |ount, ze|ro if no|
|00002ac0| 74 20 73 70 65 63 69 66 | 69 65 64 2e 20 20 47 4f |t specif|ied. GO|
|00002ad0| 4c 44 2d 3e 20 61 6e 64 | 0a 47 4f 4c 44 2d 3c 20 |LD-> and|.GOLD-< |
|00002ae0| 77 69 6c 6c 20 69 6e 63 | 72 65 6d 65 6e 74 20 61 |will inc|rement a|
|00002af0| 6e 64 20 64 65 63 72 65 | 6d 65 6e 74 20 74 68 65 |nd decre|ment the|
|00002b00| 20 63 6f 75 6e 74 65 72 | 20 62 79 20 74 68 65 20 | counter| by the |
|00002b10| 72 65 70 65 61 74 20 63 | 6f 75 6e 74 20 28 31 0a |repeat c|ount (1.|
|00002b20| 62 79 20 64 65 66 61 75 | 6c 74 29 2e 20 20 47 4f |by defau|lt). GO|
|00002b30| 4c 44 2d 23 20 77 69 6c | 6c 20 63 6f 70 79 20 74 |LD-# wil|l copy t|
|00002b40| 68 65 20 76 61 6c 75 65 | 20 6f 66 20 74 68 65 20 |he value| of the |
|00002b50| 63 6f 75 6e 74 65 72 20 | 69 6e 74 6f 20 74 68 65 |counter |into the|
|00002b60| 20 62 75 66 66 65 72 0a | 75 73 69 6e 67 20 74 68 | buffer.|using th|
|00002b70| 65 20 63 75 72 72 65 6e | 74 20 66 6f 72 6d 61 74 |e curren|t format|
|00002b80| 2c 20 77 68 69 63 68 20 | 69 73 20 43 2d 6c 69 6b |, which |is C-lik|
|00002b90| 65 20 66 6f 72 6d 61 74 | 20 74 68 61 74 20 6d 61 |e format| that ma|
|00002ba0| 79 20 62 65 20 63 68 61 | 6e 67 65 64 0a 75 73 69 |y be cha|nged.usi|
|00002bb0| 6e 67 20 47 4f 4c 44 2d | 21 20 28 74 68 65 20 64 |ng GOLD-|! (the d|
|00002bc0| 65 66 61 75 6c 74 20 69 | 73 20 25 64 29 2e 20 20 |efault i|s %d). |
|00002bd0| 47 4f 4c 44 2d 2a 20 69 | 6e 73 65 72 74 73 20 74 |GOLD-* i|nserts t|
|00002be0| 68 65 20 41 53 43 49 49 | 20 63 68 61 72 61 63 74 |he ASCII| charact|
|00002bf0| 65 72 0a 63 6f 72 72 65 | 73 70 6f 6e 64 69 6e 67 |er.corre|sponding|
|00002c00| 20 74 6f 20 74 68 65 20 | 63 6f 75 6e 74 65 72 20 | to the |counter |
|00002c10| 76 61 6c 75 65 20 28 6d | 6f 64 20 32 35 36 29 2e |value (m|od 256).|
|00002c20| 0a 0a 09 09 09 09 54 45 | 58 54 20 45 58 50 41 4e |......TE|XT EXPAN|
|00002c30| 53 49 4f 4e 0a 0a 20 20 | 20 20 47 4f 4c 44 2d 68 |SION.. | GOLD-h|
|00002c40| 20 28 61 6c 73 6f 20 44 | 4f 20 6f 6e 20 56 54 32 | (also D|O on VT2|
|00002c50| 30 30 2d 73 74 79 6c 65 | 20 6b 65 79 62 6f 61 72 |00-style| keyboar|
|00002c60| 64 73 20 6f 72 20 46 31 | 20 6f 6e 20 53 47 49 2d |ds or F1| on SGI-|
|00002c70| 73 74 79 6c 65 73 29 20 | 77 69 6c 6c 0a 69 6e 76 |styles) |will.inv|
|00002c80| 6f 6b 65 20 61 6e 20 61 | 75 74 6f 6d 61 74 69 63 |oke an a|utomatic|
|00002c90| 20 74 65 78 74 20 65 78 | 70 61 6e 64 65 72 2e 20 | text ex|pander. |
|00002ca0| 20 54 68 69 73 20 77 69 | 6c 6c 20 73 65 61 72 63 | This wi|ll searc|
|00002cb0| 68 20 61 20 73 70 65 63 | 69 61 6c 20 6c 69 73 74 |h a spec|ial list|
|00002cc0| 20 66 6f 72 0a 74 68 65 | 20 77 6f 72 64 20 77 68 | for.the| word wh|
|00002cd0| 69 63 68 20 69 73 20 75 | 6e 64 65 72 20 74 68 65 |ich is u|nder the|
|00002ce0| 20 63 75 72 73 6f 72 2e | 20 20 49 66 20 69 74 20 | cursor.| If it |
|00002cf0| 66 69 6e 64 73 20 61 20 | 6c 69 6e 65 20 63 6f 6e |finds a |line con|
|00002d00| 74 61 69 6e 69 6e 67 20 | 74 68 65 0a 77 6f 72 64 |taining |the.word|
|00002d10| 20 28 63 61 6c 6c 65 64 | 20 74 68 65 20 6b 65 79 | (called| the key|
|00002d20| 29 2c 20 74 68 65 20 77 | 6f 72 64 20 69 73 20 72 |), the w|ord is r|
|00002d30| 65 70 6c 61 63 65 64 20 | 62 79 20 61 20 22 74 61 |eplaced |by a "ta|
|00002d40| 67 22 2e 20 20 52 65 70 | 65 61 74 69 6e 67 20 77 |g". Rep|eating w|
|00002d50| 69 6c 6c 0a 66 69 6e 64 | 20 73 75 63 63 65 73 73 |ill.find| success|
|00002d60| 69 76 65 20 6f 63 63 75 | 72 72 65 6e 63 65 73 2c |ive occu|rrences,|
|00002d70| 20 72 65 70 6c 61 63 69 | 6e 67 20 74 68 65 20 74 | replaci|ng the t|
|00002d80| 65 78 74 20 65 61 63 68 | 20 74 69 6d 65 2e 20 20 |ext each| time. |
|00002d90| 49 66 20 6e 6f 20 6d 6f | 72 65 0a 6d 61 74 63 68 |If no mo|re.match|
|00002da0| 65 73 20 61 72 65 20 66 | 6f 75 6e 64 2c 20 69 74 |es are f|ound, it|
|00002db0| 20 77 69 6c 6c 20 72 65 | 73 74 6f 72 65 20 74 68 | will re|store th|
|00002dc0| 65 20 6f 72 69 67 69 6e | 61 6c 20 77 6f 72 64 2e |e origin|al word.|
|00002dd0| 20 20 46 6f 72 20 69 6e | 73 74 61 6e 63 65 2c 20 | For in|stance, |
|00002de0| 69 66 0a 79 6f 75 20 65 | 6e 74 65 72 20 22 6f 70 |if.you e|nter "op|
|00002df0| 65 6e 3c 47 4f 4c 44 2d | 68 3e 22 2c 20 69 74 20 |en<GOLD-|h>", it |
|00002e00| 6d 69 67 68 74 20 66 69 | 72 73 74 20 72 65 70 6c |might fi|rst repl|
|00002e10| 61 63 65 20 22 6f 70 65 | 6e 22 20 77 69 74 68 0a |ace "ope|n" with.|
|00002e20| 22 48 43 5f 4f 70 65 6e | 5f 53 65 67 6d 65 6e 74 |"HC_Open|_Segment|
|00002e30| 20 28 29 3b 22 2c 20 74 | 68 65 6e 20 22 48 43 5f | ();", t|hen "HC_|
|00002e40| 4b 4f 70 65 6e 5f 53 65 | 67 6d 65 6e 74 20 28 29 |KOpen_Se|gment ()|
|00002e50| 3b 22 2c 20 61 6e 64 20 | 74 68 65 6e 20 72 65 74 |;", and |then ret|
|00002e60| 75 72 6e 20 74 6f 0a 22 | 6f 70 65 6e 22 20 69 66 |urn to."|open" if|
|00002e70| 20 72 65 71 75 65 73 74 | 65 64 20 61 20 74 68 69 | request|ed a thi|
|00002e80| 72 64 20 74 69 6d 65 2e | 20 20 47 6f 6c 64 2d 44 |rd time.| Gold-D|
|00002e90| 4f 20 6f 72 20 47 4f 4c | 44 2d 48 20 77 69 6c 6c |O or GOL|D-H will|
|00002ea0| 20 63 61 75 73 65 20 74 | 68 65 0a 6f 72 69 67 69 | cause t|he.origi|
|00002eb0| 6e 61 6c 20 74 65 78 74 | 20 74 6f 20 62 65 20 72 |nal text| to be r|
|00002ec0| 65 73 74 6f 72 65 64 2e | 20 20 43 75 72 72 65 6e |estored.| Curren|
|00002ed0| 74 6c 79 2c 20 61 6c 6c | 20 74 68 65 20 48 4f 4f |tly, all| the HOO|
|00002ee0| 50 53 20 63 6f 6d 6d 61 | 6e 64 73 20 61 72 65 20 |PS comma|nds are |
|00002ef0| 69 6e 0a 74 68 65 20 6c | 69 73 74 2e 20 20 49 66 |in.the l|ist. If|
|00002f00| 20 79 6f 75 27 64 20 6c | 69 6b 65 20 74 6f 20 61 | you'd l|ike to a|
|00002f10| 64 64 20 6d 6f 72 65 2c | 20 49 27 6c 6c 20 70 72 |dd more,| I'll pr|
|00002f20| 6f 76 69 64 65 20 61 20 | 66 61 63 69 6c 69 74 79 |ovide a |facility|
|00002f30| 20 66 6f 72 20 64 6f 69 | 6e 67 0a 73 6f 2e 0a 0a | for doi|ng.so...|
|00002f40| 09 09 09 09 53 50 45 4c | 4c 49 4e 47 20 43 48 45 |....SPEL|LING CHE|
|00002f50| 43 4b 45 52 0a 0a 20 20 | 20 20 49 66 20 73 70 65 |CKER.. | If spe|
|00002f60| 6c 6c 20 68 61 73 20 62 | 65 65 6e 20 69 6e 73 74 |ll has b|een inst|
|00002f70| 61 6c 6c 65 64 20 6f 6e | 20 74 68 65 20 73 79 73 |alled on| the sys|
|00002f80| 74 65 6d 20 69 74 20 63 | 61 6e 20 62 65 20 69 6e |tem it c|an be in|
|00002f90| 76 6f 6b 65 64 20 74 6f | 20 63 68 65 63 6b 0a 61 |voked to| check.a|
|00002fa0| 6c 6c 20 6f 72 20 70 61 | 72 74 20 6f 66 20 61 20 |ll or pa|rt of a |
|00002fb0| 66 69 6c 65 2f 62 75 66 | 66 65 72 2e 20 20 54 68 |file/buf|fer. Th|
|00002fc0| 65 20 73 69 6d 70 6c 65 | 73 74 20 6d 65 61 6e 73 |e simple|st means|
|00002fd0| 20 6f 66 20 75 73 69 6e | 67 20 69 74 20 69 73 20 | of usin|g it is |
|00002fe0| 74 6f 20 75 73 65 0a 47 | 4f 4c 44 2d 3f 2e 20 20 |to use.G|OLD-?. |
|00002ff0| 54 68 69 73 20 77 69 6c | 6c 20 63 61 75 73 65 20 |This wil|l cause |
|00003000| 69 74 20 74 6f 20 67 65 | 6e 65 72 61 74 65 20 53 |it to ge|nerate S|
|00003010| 70 65 6c 6c 20 61 73 20 | 61 20 73 75 62 70 72 6f |pell as |a subpro|
|00003020| 63 65 73 73 20 61 6e 64 | 20 68 61 76 65 0a 69 74 |cess and| have.it|
|00003030| 20 63 68 65 63 6b 20 74 | 68 65 20 73 65 6c 65 63 | check t|he selec|
|00003040| 74 65 64 20 72 65 67 69 | 6f 6e 2c 20 6f 72 20 74 |ted regi|on, or t|
|00003050| 68 65 20 77 68 6f 6c 65 | 20 62 75 66 66 65 72 20 |he whole| buffer |
|00003060| 69 66 20 6e 6f 20 72 65 | 67 69 6f 6e 20 77 61 73 |if no re|gion was|
|00003070| 0a 73 65 6c 65 63 74 65 | 64 2e 20 20 49 66 20 61 |.selecte|d. If a|
|00003080| 6e 79 20 63 68 61 6e 67 | 65 73 20 61 72 65 20 6d |ny chang|es are m|
|00003090| 61 64 65 20 69 6e 20 53 | 70 65 6c 6c 20 61 6e 64 |ade in S|pell and|
|000030a0| 20 74 68 65 6e 20 73 61 | 76 65 64 2c 20 74 68 65 | then sa|ved, the|
|000030b0| 20 63 68 61 6e 67 65 73 | 0a 77 69 6c 6c 20 62 65 | changes|.will be|
|000030c0| 20 69 6e 63 6f 72 70 6f | 72 61 74 65 64 20 62 61 | incorpo|rated ba|
|000030d0| 63 6b 20 69 6e 74 6f 20 | 74 68 65 20 65 64 69 74 |ck into |the edit|
|000030e0| 6f 72 2e 0a 0a 09 09 09 | 09 20 20 4e 55 4d 45 52 |or......|. NUMER|
|000030f0| 49 43 20 4b 45 59 50 41 | 44 0a 0a 20 20 20 20 47 |IC KEYPA|D.. G|
|00003100| 4f 4c 44 2d 24 20 74 6f | 67 67 6c 65 73 20 62 65 |OLD-$ to|ggles be|
|00003110| 74 77 65 65 6e 20 6e 75 | 6d 65 72 69 63 20 6b 65 |tween nu|meric ke|
|00003120| 79 70 61 64 20 6d 6f 64 | 65 20 28 74 68 65 20 64 |ypad mod|e (the d|
|00003130| 69 67 69 74 73 20 61 6e | 64 0a 70 75 6e 63 74 75 |igits an|d.punctu|
|00003140| 61 74 69 6f 6e 20 63 68 | 61 72 61 63 74 65 72 73 |ation ch|aracters|
|00003150| 20 6f 6e 20 74 68 65 20 | 6b 65 79 70 61 64 20 6d | on the |keypad m|
|00003160| 65 72 65 6c 79 20 69 6e | 73 65 72 74 20 74 68 65 |erely in|sert the|
|00003170| 20 63 6f 72 72 65 73 70 | 6f 6e 64 69 6e 67 0a 74 | corresp|onding.t|
|00003180| 65 78 74 20 69 6e 74 6f | 20 74 68 65 20 62 75 66 |ext into| the buf|
|00003190| 66 65 72 29 20 61 6e 64 | 20 66 75 6e 63 74 69 6f |fer) and| functio|
|000031a0| 6e 20 6d 6f 64 65 20 28 | 74 68 65 20 6b 65 79 70 |n mode (|the keyp|
|000031b0| 61 64 20 6b 65 79 73 20 | 68 61 76 65 20 74 68 65 |ad keys |have the|
|000031c0| 69 72 0a 6e 6f 72 6d 61 | 6c 20 65 64 69 74 69 6e |ir.norma|l editin|
|000031d0| 67 20 66 75 6e 63 74 69 | 6f 6e 73 29 2e 0a 0a 20 |g functi|ons)... |
|000031e0| 09 09 09 09 20 20 20 20 | 4c 49 4e 45 20 4d 4f 44 |.... |LINE MOD|
|000031f0| 45 0a 0a 20 20 20 20 59 | 6f 75 20 63 61 6e 20 65 |E.. Y|ou can e|
|00003200| 6e 74 65 72 20 63 6f 6d | 6d 61 6e 64 73 20 64 69 |nter com|mands di|
|00003210| 72 65 63 74 6c 79 20 74 | 6f 20 74 68 65 20 65 6d |rectly t|o the em|
|00003220| 75 6c 61 74 6f 72 20 77 | 69 74 68 20 47 4f 4c 44 |ulator w|ith GOLD|
|00003230| 2d 4b 50 37 2e 20 20 59 | 6f 75 0a 63 61 6e 20 65 |-KP7. Y|ou.can e|
|00003240| 76 61 6c 75 61 74 65 20 | 65 6c 69 73 70 20 73 2d |valuate |elisp s-|
|00003250| 65 73 70 72 65 73 73 69 | 6f 6e 73 20 77 69 74 68 |espressi|ons with|
|00003260| 20 47 4f 4c 44 2d 50 46 | 32 2e 0a 0a 0a 2a 2a 20 | GOLD-PF|2....** |
|00003270| 49 66 20 66 6f 72 20 73 | 6f 6d 65 20 6f 62 73 63 |If for s|ome obsc|
|00003280| 75 72 65 20 72 65 61 73 | 6f 6e 20 79 6f 75 20 77 |ure reas|on you w|
|00003290| 61 6e 74 20 70 6c 61 69 | 6e 20 65 6d 61 63 73 2c |ant plai|n emacs,|
|000032a0| 20 0a 2a 2a 20 79 6f 75 | 20 63 61 6e 20 74 79 70 | .** you| can typ|
|000032b0| 65 20 22 47 4f 4c 44 2d | 4b 50 37 20 63 61 6e 63 |e "GOLD-|KP7 canc|
|000032c0| 65 6c 2d 74 70 75 22 0a | 2a 2a 20 55 73 65 20 22 |el-tpu".|** Use "|
|000032d0| 45 53 43 2d 58 20 75 73 | 65 2d 74 70 75 22 20 74 |ESC-X us|e-tpu" t|
|000032e0| 6f 20 67 65 74 20 69 74 | 20 62 61 63 6b 2e 0a 0a |o get it| back...|
|000032f0| 0a 2d 2d 2d 2d 2d 2d 2d | 2d 2d 0a 74 70 75 2e 65 |.-------|--.tpu.e|
|00003300| 6c 0a 2d 2d 2d 2d 2d 2d | 2d 2d 0a 3b 3b 3b 0a 3b |l.------|--.;;;.;|
|00003310| 3b 3b 0a 3b 3b 3b 0a 3b | 3b 3b 20 20 45 20 44 20 |;;.;;;.;|;; E D |
|00003320| 54 20 2f 20 42 20 4f 20 | 42 20 54 20 50 20 55 0a |T / B O |B T P U.|
|00003330| 3b 3b 3b 20 20 45 64 69 | 74 6f 72 20 44 65 66 69 |;;; Edi|tor Defi|
|00003340| 6e 69 74 69 6f 6e 73 0a | 3b 3b 3b 20 20 4a 65 66 |nitions.|;;; Jef|
|00003350| 66 20 4b 6f 77 61 6c 73 | 6b 69 0a 3b 3b 3b 20 20 |f Kowals|ki.;;; |
|00003360| 4e 6f 76 65 6d 62 65 72 | 2c 20 31 39 38 38 0a 3b |November|, 1988.;|
|00003370| 3b 3b 0a 3b 3b 3b 20 20 | 42 61 73 65 64 20 6f 6e |;;.;;; |Based on|
|00003380| 20 74 68 65 20 65 64 74 | 2e 65 6c 20 0a 3b 3b 3b | the edt|.el .;;;|
|00003390| 0a 3b 3b 3b 0a 3b 3b 20 | 43 6f 70 79 72 69 67 68 |.;;;.;; |Copyrigh|
|000033a0| 74 20 28 43 29 20 31 39 | 38 39 20 46 72 65 65 20 |t (C) 19|89 Free |
|000033b0| 53 6f 66 74 77 61 72 65 | 20 46 6f 75 6e 64 61 74 |Software| Foundat|
|000033c0| 69 6f 6e 2c 20 49 6e 63 | 2e 0a 0a 3b 3b 20 47 4e |ion, Inc|...;; GN|
|000033d0| 55 20 45 6d 61 63 73 20 | 69 73 20 64 69 73 74 72 |U Emacs |is distr|
|000033e0| 69 62 75 74 65 64 20 69 | 6e 20 74 68 65 20 68 6f |ibuted i|n the ho|
|000033f0| 70 65 20 74 68 61 74 20 | 69 74 20 77 69 6c 6c 20 |pe that |it will |
|00003400| 62 65 20 75 73 65 66 75 | 6c 2c 0a 3b 3b 20 62 75 |be usefu|l,.;; bu|
|00003410| 74 20 57 49 54 48 4f 55 | 54 20 41 4e 59 20 57 41 |t WITHOU|T ANY WA|
|00003420| 52 52 41 4e 54 59 2e 20 | 20 4e 6f 20 61 75 74 68 |RRANTY. | No auth|
|00003430| 6f 72 20 6f 72 20 64 69 | 73 74 72 69 62 75 74 6f |or or di|stributo|
|00003440| 72 0a 3b 3b 20 61 63 63 | 65 70 74 73 20 72 65 73 |r.;; acc|epts res|
|00003450| 70 6f 6e 73 69 62 69 6c | 69 74 79 20 74 6f 20 61 |ponsibil|ity to a|
|00003460| 6e 79 6f 6e 65 20 66 6f | 72 20 74 68 65 20 63 6f |nyone fo|r the co|
|00003470| 6e 73 65 71 75 65 6e 63 | 65 73 20 6f 66 20 75 73 |nsequenc|es of us|
|00003480| 69 6e 67 20 69 74 0a 3b | 3b 20 6f 72 20 66 6f 72 |ing it.;|; or for|
|00003490| 20 77 68 65 74 68 65 72 | 20 69 74 20 73 65 72 76 | whether| it serv|
|000034a0| 65 73 20 61 6e 79 20 70 | 61 72 74 69 63 75 6c 61 |es any p|articula|
|000034b0| 72 20 70 75 72 70 6f 73 | 65 20 6f 72 20 77 6f 72 |r purpos|e or wor|
|000034c0| 6b 73 20 61 74 20 61 6c | 6c 2c 0a 3b 3b 20 75 6e |ks at al|l,.;; un|
|000034d0| 6c 65 73 73 20 68 65 20 | 73 61 79 73 20 73 6f 20 |less he |says so |
|000034e0| 69 6e 20 77 72 69 74 69 | 6e 67 2e 20 20 52 65 66 |in writi|ng. Ref|
|000034f0| 65 72 20 74 6f 20 74 68 | 65 20 47 4e 55 20 45 6d |er to th|e GNU Em|
|00003500| 61 63 73 20 47 65 6e 65 | 72 61 6c 20 50 75 62 6c |acs Gene|ral Publ|
|00003510| 69 63 0a 3b 3b 20 4c 69 | 63 65 6e 73 65 20 66 6f |ic.;; Li|cense fo|
|00003520| 72 20 66 75 6c 6c 20 64 | 65 74 61 69 6c 73 2e 0a |r full d|etails..|
|00003530| 0a 3b 3b 20 45 76 65 72 | 79 6f 6e 65 20 69 73 20 |.;; Ever|yone is |
|00003540| 67 72 61 6e 74 65 64 20 | 70 65 72 6d 69 73 73 69 |granted |permissi|
|00003550| 6f 6e 20 74 6f 20 63 6f | 70 79 2c 20 6d 6f 64 69 |on to co|py, modi|
|00003560| 66 79 20 61 6e 64 20 72 | 65 64 69 73 74 72 69 62 |fy and r|edistrib|
|00003570| 75 74 65 0a 3b 3b 20 47 | 4e 55 20 45 6d 61 63 73 |ute.;; G|NU Emacs|
|00003580| 2c 20 62 75 74 20 6f 6e | 6c 79 20 75 6e 64 65 72 |, but on|ly under|
|00003590| 20 74 68 65 20 63 6f 6e | 64 69 74 69 6f 6e 73 20 | the con|ditions |
|000035a0| 64 65 73 63 72 69 62 65 | 64 20 69 6e 20 74 68 65 |describe|d in the|
|000035b0| 0a 3b 3b 20 47 4e 55 20 | 45 6d 61 63 73 20 47 65 |.;; GNU |Emacs Ge|
|000035c0| 6e 65 72 61 6c 20 50 75 | 62 6c 69 63 20 4c 69 63 |neral Pu|blic Lic|
|000035d0| 65 6e 73 65 2e 20 20 20 | 41 20 63 6f 70 79 20 6f |ense. |A copy o|
|000035e0| 66 20 74 68 69 73 20 6c | 69 63 65 6e 73 65 20 69 |f this l|icense i|
|000035f0| 73 0a 3b 3b 20 73 75 70 | 70 6f 73 65 64 20 74 6f |s.;; sup|posed to|
|00003600| 20 68 61 76 65 20 62 65 | 65 6e 20 67 69 76 65 6e | have be|en given|
|00003610| 20 74 6f 20 79 6f 75 20 | 61 6c 6f 6e 67 20 77 69 | to you |along wi|
|00003620| 74 68 20 47 4e 55 20 45 | 6d 61 63 73 20 73 6f 20 |th GNU E|macs so |
|00003630| 79 6f 75 0a 3b 3b 20 63 | 61 6e 20 6b 6e 6f 77 20 |you.;; c|an know |
|00003640| 79 6f 75 72 20 72 69 67 | 68 74 73 20 61 6e 64 20 |your rig|hts and |
|00003650| 72 65 73 70 6f 6e 73 69 | 62 69 6c 69 74 69 65 73 |responsi|bilities|
|00003660| 2e 20 20 49 74 20 73 68 | 6f 75 6c 64 20 62 65 20 |. It sh|ould be |
|00003670| 69 6e 20 61 0a 3b 3b 20 | 66 69 6c 65 20 6e 61 6d |in a.;; |file nam|
|00003680| 65 64 20 43 4f 50 59 49 | 4e 47 2e 20 20 41 6d 6f |ed COPYI|NG. Amo|
|00003690| 6e 67 20 6f 74 68 65 72 | 20 74 68 69 6e 67 73 2c |ng other| things,|
|000036a0| 20 74 68 65 20 63 6f 70 | 79 72 69 67 68 74 20 6e | the cop|yright n|
|000036b0| 6f 74 69 63 65 0a 3b 3b | 20 61 6e 64 20 74 68 69 |otice.;;| and thi|
|000036c0| 73 20 6e 6f 74 69 63 65 | 20 6d 75 73 74 20 62 65 |s notice| must be|
|000036d0| 20 70 72 65 73 65 72 76 | 65 64 20 6f 6e 20 61 6c | preserv|ed on al|
|000036e0| 6c 20 63 6f 70 69 65 73 | 2e 0a 3b 3b 3b 20 0a 0a |l copies|..;;; ..|
|000036f0| 0a 3b 3b 3b 0a 3b 3b 3b | 0a 3b 3b 3b 20 20 47 20 |.;;;.;;;|.;;; G |
|00003700| 4c 20 4f 20 42 20 41 20 | 4c 0a 3b 3b 3b 20 20 4b |L O B A |L.;;; K|
|00003710| 20 45 20 59 20 4d 20 41 | 20 50 20 53 0a 3b 3b 3b | E Y M A| P S.;;;|
|00003720| 0a 3b 3b 3b 0a 28 64 65 | 66 76 61 72 20 43 53 49 |.;;;.(de|fvar CSI|
|00003730| 2d 6d 61 70 20 6e 69 6c | 0a 20 20 22 4d 61 70 73 |-map nil|. "Maps|
|00003740| 20 74 68 65 20 43 53 49 | 20 66 75 6e 63 74 69 6f | the CSI| functio|
|00003750| 6e 20 6b 65 79 73 20 6f | 6e 20 74 68 65 20 56 54 |n keys o|n the VT|
|00003760| 31 30 30 20 6b 65 79 62 | 6f 61 72 64 2e 0a 43 53 |100 keyb|oard..CS|
|00003770| 49 20 69 73 20 44 45 43 | 27 73 20 6e 61 6d 65 20 |I is DEC|'s name |
|00003780| 66 6f 72 20 74 68 65 20 | 73 65 71 75 65 6e 63 65 |for the |sequence|
|00003790| 20 3c 45 53 43 3e 5b 2e | 22 29 0a 28 73 65 74 71 | <ESC>[.|").(setq|
|000037a0| 20 43 53 49 2d 6d 61 70 | 20 28 6d 61 6b 65 2d 73 | CSI-map| (make-s|
|000037b0| 70 61 72 73 65 2d 6b 65 | 79 6d 61 70 29 29 0a 0a |parse-ke|ymap))..|
|000037c0| 28 64 65 66 76 61 72 20 | 41 50 50 4c 45 2d 6d 61 |(defvar |APPLE-ma|
|000037d0| 70 20 6e 69 6c 0a 20 20 | 22 4d 61 70 73 20 74 68 |p nil. |"Maps th|
|000037e0| 65 20 41 70 70 6c 65 20 | 45 78 74 65 6e 64 65 64 |e Apple |Extended|
|000037f0| 20 4b 65 79 62 6f 61 72 | 64 20 66 75 6e 63 74 69 | Keyboar|d functi|
|00003800| 6f 6e 20 6b 65 79 73 2e | 0a 54 68 65 20 73 65 71 |on keys.|.The seq|
|00003810| 75 65 6e 63 65 20 62 65 | 67 69 6e 73 20 77 69 74 |uence be|gins wit|
|00003820| 68 20 43 54 52 4c 2d 41 | 2e 22 29 0a 28 73 65 74 |h CTRL-A|.").(set|
|00003830| 71 20 41 50 50 4c 45 2d | 6d 61 70 20 28 6d 61 6b |q APPLE-|map (mak|
|00003840| 65 2d 73 70 61 72 73 65 | 2d 6b 65 79 6d 61 70 29 |e-sparse|-keymap)|
|00003850| 29 0a 0a 28 64 65 66 76 | 61 72 20 44 43 53 2d 6d |)..(defv|ar DCS-m|
|00003860| 61 70 20 6e 69 6c 0a 20 | 20 22 4d 61 70 73 20 74 |ap nil. | "Maps t|
|00003870| 68 65 20 44 43 53 20 66 | 75 6e 63 74 69 6f 6e 20 |he DCS f|unction |
|00003880| 6b 65 79 73 20 6f 6e 20 | 74 68 65 20 69 72 69 73 |keys on |the iris|
|00003890| 2d 61 6e 73 69 20 6b 65 | 79 62 6f 61 72 64 2e 0a |-ansi ke|yboard..|
|000038a0| 44 43 53 20 69 73 20 53 | 47 49 27 73 20 6e 61 6d |DCS is S|GI's nam|
|000038b0| 65 20 66 6f 72 20 74 68 | 65 20 73 65 71 75 65 6e |e for th|e sequen|
|000038c0| 63 65 20 3c 45 53 43 3e | 50 2e 22 29 0a 28 73 65 |ce <ESC>|P.").(se|
|000038d0| 74 71 20 44 43 53 2d 6d | 61 70 20 28 6d 61 6b 65 |tq DCS-m|ap (make|
|000038e0| 2d 73 70 61 72 73 65 2d | 6b 65 79 6d 61 70 29 29 |-sparse-|keymap))|
|000038f0| 0a 0a 28 64 65 66 76 61 | 72 20 53 53 33 2d 6d 61 |..(defva|r SS3-ma|
|00003900| 70 20 6e 69 6c 0a 20 20 | 22 4d 61 70 73 20 74 68 |p nil. |"Maps th|
|00003910| 65 20 53 53 33 20 66 75 | 6e 63 74 69 6f 6e 20 6b |e SS3 fu|nction k|
|00003920| 65 79 73 20 6f 6e 20 74 | 68 65 20 56 54 31 30 30 |eys on t|he VT100|
|00003930| 20 6b 65 79 62 6f 61 72 | 64 2e 0a 53 53 33 20 69 | keyboar|d..SS3 i|
|00003940| 73 20 44 45 43 27 73 20 | 6e 61 6d 65 20 66 6f 72 |s DEC's |name for|
|00003950| 20 74 68 65 20 73 65 71 | 75 65 6e 63 65 20 3c 45 | the seq|uence <E|
|00003960| 53 43 3e 4f 2e 22 29 0a | 28 73 65 74 71 20 53 53 |SC>O.").|(setq SS|
|00003970| 33 2d 6d 61 70 20 28 6d | 61 6b 65 2d 73 70 61 72 |3-map (m|ake-spar|
|00003980| 73 65 2d 6b 65 79 6d 61 | 70 29 29 0a 0a 28 64 65 |se-keyma|p))..(de|
|00003990| 66 76 61 72 20 47 4f 4c | 44 2d 6d 61 70 20 6e 69 |fvar GOL|D-map ni|
|000039a0| 6c 0a 20 20 20 22 4d 61 | 70 73 20 74 68 65 20 66 |l. "Ma|ps the f|
|000039b0| 75 6e 63 74 69 6f 6e 20 | 6b 65 79 73 20 6f 6e 20 |unction |keys on |
|000039c0| 74 68 65 20 56 54 31 30 | 30 20 6b 65 79 62 6f 61 |the VT10|0 keyboa|
|000039d0| 72 64 20 70 72 65 63 65 | 65 64 65 64 20 62 79 20 |rd prece|eded by |
|000039e0| 50 46 31 2e 0a 47 4f 4c | 44 20 69 73 20 74 68 65 |PF1..GOL|D is the|
|000039f0| 20 41 53 43 49 49 20 37 | 2d 62 69 74 20 65 73 63 | ASCII 7|-bit esc|
|00003a00| 61 70 65 20 73 65 71 75 | 65 6e 63 65 20 3c 45 53 |ape sequ|ence <ES|
|00003a10| 43 3e 4f 50 2e 22 29 0a | 28 73 65 74 71 20 47 4f |C>OP.").|(setq GO|
|00003a20| 4c 44 2d 6d 61 70 20 28 | 6d 61 6b 65 2d 73 70 61 |LD-map (|make-spa|
|00003a30| 72 73 65 2d 6b 65 79 6d | 61 70 29 29 0a 0a 28 64 |rse-keym|ap))..(d|
|00003a40| 65 66 76 61 72 20 47 4f | 4c 44 2d 41 50 50 4c 45 |efvar GO|LD-APPLE|
|00003a50| 2d 6d 61 70 20 6e 69 6c | 0a 20 20 22 4d 61 70 73 |-map nil|. "Maps|
|00003a60| 20 74 68 65 20 66 75 6e | 63 74 69 6f 6e 20 6b 65 | the fun|ction ke|
|00003a70| 79 73 20 6f 6e 20 74 68 | 65 20 41 70 70 6c 65 20 |ys on th|e Apple |
|00003a80| 4b 65 79 62 6f 61 72 64 | 20 70 72 65 63 65 65 64 |Keyboard| preceed|
|00003a90| 65 64 20 62 79 20 46 39 | 20 43 54 52 4c 2d 41 2e |ed by F9| CTRL-A.|
|00003aa0| 22 29 0a 28 73 65 74 71 | 20 47 4f 4c 44 2d 41 50 |").(setq| GOLD-AP|
|00003ab0| 50 4c 45 2d 6d 61 70 20 | 28 6d 61 6b 65 2d 73 70 |PLE-map |(make-sp|
|00003ac0| 61 72 73 65 2d 6b 65 79 | 6d 61 70 29 29 0a 0a 28 |arse-key|map))..(|
|00003ad0| 64 65 66 76 61 72 20 47 | 4f 4c 44 2d 43 53 49 2d |defvar G|OLD-CSI-|
|00003ae0| 6d 61 70 20 6e 69 6c 0a | 20 20 20 22 4d 61 70 73 |map nil.| "Maps|
|00003af0| 20 74 68 65 20 66 75 6e | 63 74 69 6f 6e 20 6b 65 | the fun|ction ke|
|00003b00| 79 73 20 6f 6e 20 74 68 | 65 20 56 54 31 30 30 20 |ys on th|e VT100 |
|00003b10| 6b 65 79 62 6f 61 72 64 | 20 70 72 65 63 65 65 64 |keyboard| preceed|
|00003b20| 65 64 20 62 79 20 47 4f | 4c 44 2d 43 53 49 2e 22 |ed by GO|LD-CSI."|
|00003b30| 29 0a 28 73 65 74 71 20 | 47 4f 4c 44 2d 43 53 49 |).(setq |GOLD-CSI|
|00003b40| 2d 6d 61 70 20 28 6d 61 | 6b 65 2d 73 70 61 72 73 |-map (ma|ke-spars|
|00003b50| 65 2d 6b 65 79 6d 61 70 | 29 29 0a 0a 28 64 65 66 |e-keymap|))..(def|
|00003b60| 76 61 72 20 47 4f 4c 44 | 2d 53 53 33 2d 6d 61 70 |var GOLD|-SS3-map|
|00003b70| 20 6e 69 6c 0a 20 20 20 | 22 4d 61 70 73 20 74 68 | nil. |"Maps th|
|00003b80| 65 20 66 75 6e 63 74 69 | 6f 6e 20 6b 65 79 73 20 |e functi|on keys |
|00003b90| 6f 6e 20 74 68 65 20 56 | 54 31 30 30 20 6b 65 79 |on the V|T100 key|
|00003ba0| 62 6f 61 72 64 20 70 72 | 65 63 65 65 64 65 64 20 |board pr|eceeded |
|00003bb0| 62 79 20 47 4f 4c 44 2d | 53 53 33 2e 22 29 0a 28 |by GOLD-|SS3.").(|
|00003bc0| 73 65 74 71 20 47 4f 4c | 44 2d 53 53 33 2d 6d 61 |setq GOL|D-SS3-ma|
|00003bd0| 70 20 28 6d 61 6b 65 2d | 73 70 61 72 73 65 2d 6b |p (make-|sparse-k|
|00003be0| 65 79 6d 61 70 29 29 0a | 0a 0a 3b 3b 3b 0a 3b 3b |eymap)).|..;;;.;;|
|00003bf0| 3b 0a 3b 3b 3b 20 20 47 | 20 4c 20 4f 20 42 20 41 |;.;;; G| L O B A|
|00003c00| 20 4c 0a 3b 3b 3b 20 20 | 56 20 41 20 52 20 49 20 | L.;;; |V A R I |
|00003c10| 41 20 42 20 4c 20 45 20 | 53 0a 3b 3b 3b 0a 3b 3b |A B L E |S.;;;.;;|
|00003c20| 3b 0a 28 64 65 66 76 61 | 72 20 74 70 75 2d 67 6c |;.(defva|r tpu-gl|
|00003c30| 6f 62 61 6c 2d 6b 65 79 | 2d 70 6c 69 73 74 20 6e |obal-key|-plist n|
|00003c40| 69 6c 0a 20 20 22 4f 72 | 69 67 69 6e 61 6c 20 70 |il. "Or|iginal p|
|00003c50| 72 65 2d 74 70 75 20 64 | 65 66 69 6e 69 74 69 6f |re-tpu d|efinitio|
|00003c60| 6e 73 20 6f 66 20 67 6c | 6f 62 61 6c 20 6b 65 79 |ns of gl|obal key|
|00003c70| 73 2c 20 73 6f 20 74 68 | 65 79 20 6d 61 79 20 62 |s, so th|ey may b|
|00003c80| 65 20 72 65 73 74 6f 72 | 65 64 2e 22 29 0a 28 64 |e restor|ed.").(d|
|00003c90| 65 66 76 61 72 20 74 70 | 75 2d 62 72 65 61 64 63 |efvar tp|u-breadc|
|00003ca0| 72 75 6d 62 2d 70 6c 69 | 73 74 20 6e 69 6c 0a 20 |rumb-pli|st nil. |
|00003cb0| 20 22 54 68 65 20 73 65 | 74 20 6f 66 20 75 73 65 | "The se|t of use|
|00003cc0| 72 2d 64 65 66 69 6e 65 | 64 20 6d 61 72 6b 65 72 |r-define|d marker|
|00003cd0| 73 20 28 62 72 65 61 64 | 63 72 75 6d 62 73 29 2c |s (bread|crumbs),|
|00003ce0| 20 61 73 20 61 20 70 6c | 69 73 74 2e 22 29 0a 28 | as a pl|ist.").(|
|00003cf0| 64 65 66 76 61 72 20 74 | 70 75 2d 63 75 72 72 65 |defvar t|pu-curre|
|00003d00| 6e 74 2d 65 78 70 61 6e | 73 69 6f 6e 20 6e 69 6c |nt-expan|sion nil|
|00003d10| 0a 20 20 22 54 68 65 20 | 65 78 70 61 6e 73 69 6f |. "The |expansio|
|00003d20| 6e 20 74 68 61 74 20 77 | 61 73 20 6c 61 73 74 20 |n that w|as last |
|00003d30| 70 65 72 66 6f 72 6d 65 | 64 2e 22 29 0a 28 64 65 |performe|d.").(de|
|00003d40| 66 76 61 72 20 74 70 75 | 2d 6c 61 73 74 2d 65 78 |fvar tpu|-last-ex|
|00003d50| 70 61 6e 64 2d 70 6f 69 | 6e 74 20 30 0a 20 20 22 |pand-poi|nt 0. "|
|00003d60| 54 68 65 20 70 6f 73 69 | 74 69 6f 6e 20 61 74 20 |The posi|tion at |
|00003d70| 77 68 69 63 68 20 74 68 | 65 20 6c 61 73 74 20 62 |which th|e last b|
|00003d80| 6f 62 2d 65 78 70 61 6e | 64 20 77 61 73 20 70 65 |ob-expan|d was pe|
|00003d90| 72 66 6f 72 6d 65 64 2e | 22 29 0a 28 64 65 66 76 |rformed.|").(defv|
|00003da0| 61 72 20 74 70 75 2d 65 | 78 70 61 6e 64 2d 6b 65 |ar tpu-e|xpand-ke|
|00003db0| 79 20 22 22 0a 20 20 22 | 54 68 65 20 6b 65 79 20 |y "". "|The key |
|00003dc0| 66 6f 72 20 77 68 69 63 | 68 20 74 68 65 20 6c 61 |for whic|h the la|
|00003dd0| 73 74 20 65 78 70 61 6e | 73 69 6f 6e 20 77 61 73 |st expan|sion was|
|00003de0| 20 70 65 72 66 6f 72 6d | 65 64 2e 22 29 0a 28 64 | perform|ed.").(d|
|00003df0| 65 66 76 61 72 20 74 70 | 75 2d 63 6f 75 6e 74 65 |efvar tp|u-counte|
|00003e00| 72 20 30 0a 20 20 22 41 | 20 67 65 6e 65 72 61 6c |r 0. "A| general|
|00003e10| 2d 70 75 72 70 6f 73 65 | 20 63 6f 75 6e 74 65 72 |-purpose| counter|
|00003e20| 20 61 76 61 69 6c 61 62 | 6c 65 20 66 6f 72 20 74 | availab|le for t|
|00003e30| 68 65 20 75 73 65 72 2e | 22 29 0a 28 64 65 66 76 |he user.|").(defv|
|00003e40| 61 72 20 74 70 75 2d 63 | 6f 75 6e 74 65 72 2d 66 |ar tpu-c|ounter-f|
|00003e50| 6f 72 6d 61 74 20 22 25 | 64 22 0a 20 20 22 54 68 |ormat "%|d". "Th|
|00003e60| 65 20 66 6f 72 6d 61 74 | 20 74 6f 20 75 73 65 20 |e format| to use |
|00003e70| 74 6f 20 77 68 65 6e 20 | 64 69 73 70 6c 61 79 69 |to when |displayi|
|00003e80| 6e 67 20 74 68 65 20 74 | 70 75 2d 63 6f 75 6e 74 |ng the t|pu-count|
|00003e90| 65 72 2e 22 29 0a 28 64 | 65 66 76 61 72 20 74 70 |er.").(d|efvar tp|
|00003ea0| 75 2d 6c 61 73 74 2d 72 | 65 70 6c 61 63 65 64 2d |u-last-r|eplaced-|
|00003eb0| 74 65 78 74 20 22 22 0a | 20 20 22 4c 61 73 74 20 |text "".| "Last |
|00003ec0| 74 65 78 74 20 64 65 6c | 65 74 65 64 20 62 79 20 |text del|eted by |
|00003ed0| 61 6e 20 54 50 55 20 65 | 6d 75 6c 61 74 69 6f 6e |an TPU e|mulation|
|00003ee0| 20 72 65 70 6c 61 63 65 | 20 63 6f 6d 6d 61 6e 64 | replace| command|
|00003ef0| 2e 22 29 0a 28 64 65 66 | 76 61 72 20 74 70 75 2d |.").(def|var tpu-|
|00003f00| 6c 61 73 74 2d 64 65 6c | 65 74 65 64 2d 6c 69 6e |last-del|eted-lin|
|00003f10| 65 73 20 22 22 0a 20 20 | 22 4c 61 73 74 20 74 65 |es "". |"Last te|
|00003f20| 78 74 20 64 65 6c 65 74 | 65 64 20 62 79 20 61 6e |xt delet|ed by an|
|00003f30| 20 54 50 55 20 65 6d 75 | 6c 61 74 69 6f 6e 20 6c | TPU emu|lation l|
|00003f40| 69 6e 65 2d 64 65 6c 65 | 74 65 20 63 6f 6d 6d 61 |ine-dele|te comma|
|00003f50| 6e 64 2e 22 29 0a 28 64 | 65 66 76 61 72 20 74 70 |nd.").(d|efvar tp|
|00003f60| 75 2d 6c 61 73 74 2d 64 | 65 6c 65 74 65 64 2d 77 |u-last-d|eleted-w|
|00003f70| 6f 72 64 73 20 22 22 0a | 20 20 22 4c 61 73 74 20 |ords "".| "Last |
|00003f80| 74 65 78 74 20 64 65 6c | 65 74 65 64 20 62 79 20 |text del|eted by |
|00003f90| 61 6e 20 54 50 55 20 65 | 6d 75 6c 61 74 69 6f 6e |an TPU e|mulation|
|00003fa0| 20 77 6f 72 64 2d 64 65 | 6c 65 74 65 20 63 6f 6d | word-de|lete com|
|00003fb0| 6d 61 6e 64 2e 22 29 0a | 28 64 65 66 76 61 72 20 |mand.").|(defvar |
|00003fc0| 74 70 75 2d 6c 61 73 74 | 2d 64 65 6c 65 74 65 64 |tpu-last|-deleted|
|00003fd0| 2d 63 68 61 72 73 20 22 | 22 0a 20 20 22 4c 61 73 |-chars "|". "Las|
|00003fe0| 74 20 74 65 78 74 20 64 | 65 6c 65 74 65 64 20 62 |t text d|eleted b|
|00003ff0| 79 20 61 6e 20 54 50 55 | 20 65 6d 75 6c 61 74 69 |y an TPU| emulati|
|00004000| 6f 6e 20 63 68 61 72 61 | 63 74 65 72 2d 64 65 6c |on chara|cter-del|
|00004010| 65 74 65 20 63 6f 6d 6d | 61 6e 64 2e 22 29 0a 28 |ete comm|and.").(|
|00004020| 64 65 66 76 61 72 20 74 | 70 75 2d 73 65 61 72 63 |defvar t|pu-searc|
|00004030| 68 2d 6c 61 73 74 2d 73 | 74 72 69 6e 67 20 22 22 |h-last-s|tring ""|
|00004040| 0a 20 20 22 4c 61 73 74 | 20 74 65 78 74 20 73 65 |. "Last| text se|
|00004050| 61 72 63 68 65 64 20 62 | 79 20 74 68 65 20 74 70 |arched b|y the tp|
|00004060| 75 2d 73 65 61 72 63 68 | 20 63 6f 6d 6d 61 6e 64 |u-search| command|
|00004070| 73 2e 22 29 0a 28 64 65 | 66 76 61 72 20 6e 65 77 |s.").(de|fvar new|
|00004080| 6c 69 6e 65 2d 61 6e 64 | 2d 69 6e 64 65 6e 74 2d |line-and|-indent-|
|00004090| 70 20 6e 69 6c 0a 20 20 | 22 50 72 65 64 69 63 61 |p nil. |"Predica|
|000040a0| 74 65 3a 20 72 65 74 75 | 72 6e 20 70 72 6f 64 75 |te: retu|rn produ|
|000040b0| 63 65 73 20 61 20 6e 65 | 77 6c 69 6e 65 20 61 6e |ces a ne|wline an|
|000040c0| 64 20 69 6e 64 65 6e 74 | 2e 22 29 0a 0a 0a 3b 3b |d indent|.")...;;|
|000040d0| 3b 0a 3b 3b 3b 0a 3b 3b | 3b 20 20 55 20 54 20 49 |;.;;;.;;|; U T I|
|000040e0| 20 4c 20 49 20 54 20 49 | 20 45 20 53 0a 3b 3b 3b | L I T I| E S.;;;|
|000040f0| 0a 3b 3b 3b 0a 28 64 65 | 66 75 6e 20 63 61 61 72 |.;;;.(de|fun caar|
|00004100| 20 28 74 68 69 6e 67 79 | 29 20 28 63 61 72 20 28 | (thingy|) (car (|
|00004110| 63 61 72 20 74 68 69 6e | 67 79 29 29 29 0a 28 64 |car thin|gy))).(d|
|00004120| 65 66 75 6e 20 63 61 64 | 72 20 28 74 68 69 6e 67 |efun cad|r (thing|
|00004130| 79 29 20 28 63 61 72 20 | 28 63 64 72 20 74 68 69 |y) (car |(cdr thi|
|00004140| 6e 67 79 29 29 29 0a 28 | 64 65 66 75 6e 20 63 61 |ngy))).(|defun ca|
|00004150| 64 61 72 20 28 74 68 69 | 6e 67 79 29 20 28 63 61 |dar (thi|ngy) (ca|
|00004160| 72 20 28 63 64 72 20 28 | 63 61 72 20 74 68 69 6e |r (cdr (|car thin|
|00004170| 67 79 29 29 29 29 0a 28 | 64 65 66 75 6e 20 63 61 |gy)))).(|defun ca|
|00004180| 64 64 61 72 20 28 74 68 | 69 6e 67 79 29 20 28 63 |ddar (th|ingy) (c|
|00004190| 61 72 20 28 63 64 72 20 | 28 63 64 72 20 28 63 61 |ar (cdr |(cdr (ca|
|000041a0| 72 20 74 68 69 6e 67 79 | 29 29 29 29 29 0a 0a 0a |r thingy|)))))...|
|000041b0| 3b 3b 3b 0a 3b 3b 3b 20 | 20 42 6f 62 2d 65 78 70 |;;;.;;; | Bob-exp|
|000041c0| 61 6e 64 0a 3b 3b 3b 0a | 28 64 65 66 75 6e 20 62 |and.;;;.|(defun b|
|000041d0| 6f 62 2d 75 6e 65 78 70 | 61 6e 64 20 6e 69 6c 0a |ob-unexp|and nil.|
|000041e0| 20 20 22 43 61 6e 63 65 | 6c 73 20 63 75 72 72 65 | "Cance|ls curre|
|000041f0| 6e 74 20 65 78 70 61 6e | 73 69 6f 6e 2e 22 0a 20 |nt expan|sion.". |
|00004200| 20 28 69 6e 74 65 72 61 | 63 74 69 76 65 29 0a 20 | (intera|ctive). |
|00004210| 20 20 20 28 63 6f 6e 64 | 20 28 28 61 6e 64 20 28 | (cond| ((and (|
|00004220| 3d 20 28 70 6f 69 6e 74 | 29 20 74 70 75 2d 6c 61 |= (point|) tpu-la|
|00004230| 73 74 2d 65 78 70 61 6e | 64 2d 70 6f 69 6e 74 29 |st-expan|d-point)|
|00004240| 0a 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | |
|00004250| 20 28 73 74 72 69 6e 67 | 3d 20 28 63 61 64 61 72 | (string|= (cadar|
|00004260| 20 74 70 75 2d 63 75 72 | 72 65 6e 74 2d 65 78 70 | tpu-cur|rent-exp|
|00004270| 61 6e 73 69 6f 6e 29 0a | 20 20 20 20 20 20 20 20 |ansion).| |
|00004280| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004290| 20 28 62 75 66 66 65 72 | 2d 73 75 62 73 74 72 69 | (buffer|-substri|
|000042a0| 6e 67 0a 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |ng. | |
|000042b0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 28 2d 20 | | (- |
|000042c0| 28 70 6f 69 6e 74 29 0a | 20 20 20 20 20 20 20 20 |(point).| |
|000042d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000042e0| 20 20 20 20 20 28 6c 65 | 6e 67 74 68 20 28 63 61 | (le|ngth (ca|
|000042f0| 64 61 72 20 74 70 75 2d | 63 75 72 72 65 6e 74 2d |dar tpu-|current-|
|00004300| 65 78 70 61 6e 73 69 6f | 6e 29 29 0a 20 20 20 20 |expansio|n)). |
|00004310| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004320| 20 20 20 20 20 20 20 20 | 20 28 63 61 64 64 61 72 | | (caddar|
|00004330| 20 74 70 75 2d 63 75 72 | 72 65 6e 74 2d 65 78 70 | tpu-cur|rent-exp|
|00004340| 61 6e 73 69 6f 6e 29 29 | 0a 20 20 20 20 20 20 20 |ansion))|. |
|00004350| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004360| 20 20 20 28 2d 20 28 70 | 6f 69 6e 74 29 0a 20 20 | (- (p|oint). |
|00004370| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004380| 20 20 20 20 20 20 20 20 | 20 20 20 28 63 61 64 64 | | (cadd|
|00004390| 61 72 20 74 70 75 2d 63 | 75 72 72 65 6e 74 2d 65 |ar tpu-c|urrent-e|
|000043a0| 78 70 61 6e 73 69 6f 6e | 29 29 29 29 29 0a 20 20 |xpansion|))))). |
|000043b0| 20 20 20 20 20 20 20 28 | 62 61 63 6b 77 61 72 64 | (|backward|
|000043c0| 2d 63 68 61 72 20 28 63 | 61 64 64 61 72 20 74 70 |-char (c|addar tp|
|000043d0| 75 2d 63 75 72 72 65 6e | 74 2d 65 78 70 61 6e 73 |u-curren|t-expans|
|000043e0| 69 6f 6e 29 29 0a 20 20 | 20 20 20 20 20 20 20 28 |ion)). | (|
|000043f0| 62 61 63 6b 77 61 72 64 | 2d 64 65 6c 65 74 65 2d |backward|-delete-|
|00004400| 63 68 61 72 20 28 6c 65 | 6e 67 74 68 20 28 63 61 |char (le|ngth (ca|
|00004410| 64 61 72 20 74 70 75 2d | 63 75 72 72 65 6e 74 2d |dar tpu-|current-|
|00004420| 65 78 70 61 6e 73 69 6f | 6e 29 29 29 0a 20 20 20 |expansio|n))). |
|00004430| 20 20 20 20 20 20 28 69 | 6e 73 65 72 74 20 74 70 | (i|nsert tp|
|00004440| 75 2d 65 78 70 61 6e 64 | 2d 6b 65 79 29 0a 20 20 |u-expand|-key). |
|00004450| 20 20 20 20 20 20 20 28 | 6d 65 73 73 61 67 65 20 | (|message |
|00004460| 22 43 61 6e 63 65 6c 6c | 65 64 2e 22 29 0a 20 20 |"Cancell|ed."). |
|00004470| 20 20 20 20 20 20 20 28 | 73 65 74 71 20 74 70 75 | (|setq tpu|
|00004480| 2d 6c 61 73 74 2d 65 78 | 70 61 6e 64 2d 70 6f 69 |-last-ex|pand-poi|
|00004490| 6e 74 20 30 29 29 0a 20 | 20 20 20 20 20 20 20 28 |nt 0)). | (|
|000044a0| 74 20 28 6d 65 73 73 61 | 67 65 20 22 4e 6f 20 65 |t (messa|ge "No e|
|000044b0| 78 70 61 6e 73 69 6f 6e | 20 74 6f 20 63 61 6e 63 |xpansion| to canc|
|000044c0| 65 6c 2e 22 29 29 29 29 | 0a 0a 28 64 65 66 75 6e |el."))))|..(defun|
|000044d0| 20 62 6f 62 2d 65 78 70 | 61 6e 64 20 6e 69 6c 0a | bob-exp|and nil.|
|000044e0| 20 20 22 45 78 70 61 6e | 64 20 74 68 65 20 77 6f | "Expan|d the wo|
|000044f0| 72 64 20 62 65 66 6f 72 | 65 20 74 68 65 20 70 6f |rd befor|e the po|
|00004500| 69 6e 74 2e 22 0a 20 20 | 28 69 6e 74 65 72 61 63 |int.". |(interac|
|00004510| 74 69 76 65 29 0a 20 20 | 28 6c 65 74 20 28 28 62 |tive). |(let ((b|
|00004520| 65 67 20 28 70 6f 69 6e | 74 29 29 0a 20 20 20 20 |eg (poin|t)). |
|00004530| 20 20 20 20 28 6f 6c 64 | 2d 73 79 6e 74 61 78 20 | (old|-syntax |
|00004540| 28 63 68 61 72 2d 73 79 | 6e 74 61 78 20 39 35 29 |(char-sy|ntax 95)|
|00004550| 29 0a 20 20 20 20 20 20 | 20 20 28 6e 6f 74 2d 66 |). | (not-f|
|00004560| 6f 75 6e 64 20 74 29 29 | 0a 20 20 20 20 28 63 6f |ound t))|. (co|
|00004570| 6e 64 20 28 28 61 6e 64 | 20 28 3d 20 28 70 6f 69 |nd ((and| (= (poi|
|00004580| 6e 74 29 20 74 70 75 2d | 6c 61 73 74 2d 65 78 70 |nt) tpu-|last-exp|
|00004590| 61 6e 64 2d 70 6f 69 6e | 74 29 0a 20 20 20 20 20 |and-poin|t). |
|000045a0| 20 20 20 20 20 20 20 20 | 20 20 20 28 73 74 72 69 | | (stri|
|000045b0| 6e 67 3d 20 28 63 61 64 | 61 72 20 74 70 75 2d 63 |ng= (cad|ar tpu-c|
|000045c0| 75 72 72 65 6e 74 2d 65 | 78 70 61 6e 73 69 6f 6e |urrent-e|xpansion|
|000045d0| 29 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |). | |
|000045e0| 20 20 20 20 20 20 20 20 | 20 20 20 28 62 75 66 66 | | (buff|
|000045f0| 65 72 2d 73 75 62 73 74 | 72 69 6e 67 0a 20 20 20 |er-subst|ring. |
|00004600| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004610| 20 20 20 20 20 20 20 28 | 2d 20 28 70 6f 69 6e 74 | (|- (point|
|00004620| 29 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |). | |
|00004630| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 28 | | (|
|00004640| 6c 65 6e 67 74 68 20 28 | 63 61 64 61 72 20 74 70 |length (|cadar tp|
|00004650| 75 2d 63 75 72 72 65 6e | 74 2d 65 78 70 61 6e 73 |u-curren|t-expans|
|00004660| 69 6f 6e 29 29 0a 20 20 | 20 20 20 20 20 20 20 20 |ion)). | |
|00004670| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004680| 20 20 20 28 63 61 64 64 | 61 72 20 74 70 75 2d 63 | (cadd|ar tpu-c|
|00004690| 75 72 72 65 6e 74 2d 65 | 78 70 61 6e 73 69 6f 6e |urrent-e|xpansion|
|000046a0| 29 29 0a 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |)). | |
|000046b0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 28 2d 20 | | (- |
|000046c0| 28 70 6f 69 6e 74 29 0a | 20 20 20 20 20 20 20 20 |(point).| |
|000046d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000046e0| 20 20 20 20 20 28 63 61 | 64 64 61 72 20 74 70 75 | (ca|ddar tpu|
|000046f0| 2d 63 75 72 72 65 6e 74 | 2d 65 78 70 61 6e 73 69 |-current|-expansi|
|00004700| 6f 6e 29 29 29 29 29 0a | 20 20 20 20 20 20 20 20 |on))))).| |
|00004710| 20 20 20 28 62 61 63 6b | 77 61 72 64 2d 63 68 61 | (back|ward-cha|
|00004720| 72 20 28 63 61 64 64 61 | 72 20 74 70 75 2d 63 75 |r (cadda|r tpu-cu|
|00004730| 72 72 65 6e 74 2d 65 78 | 70 61 6e 73 69 6f 6e 29 |rrent-ex|pansion)|
|00004740| 29 0a 20 20 20 20 20 20 | 20 20 20 20 20 28 62 61 |). | (ba|
|00004750| 63 6b 77 61 72 64 2d 64 | 65 6c 65 74 65 2d 63 68 |ckward-d|elete-ch|
|00004760| 61 72 20 28 6c 65 6e 67 | 74 68 20 28 63 61 64 61 |ar (leng|th (cada|
|00004770| 72 20 74 70 75 2d 63 75 | 72 72 65 6e 74 2d 65 78 |r tpu-cu|rrent-ex|
|00004780| 70 61 6e 73 69 6f 6e 29 | 29 29 0a 20 20 20 20 20 |pansion)|)). |
|00004790| 20 20 20 20 20 20 28 73 | 65 74 71 20 74 70 75 2d | (s|etq tpu-|
|000047a0| 63 75 72 72 65 6e 74 2d | 65 78 70 61 6e 73 69 6f |current-|expansio|
|000047b0| 6e 20 28 63 64 72 20 74 | 70 75 2d 63 75 72 72 65 |n (cdr t|pu-curre|
|000047c0| 6e 74 2d 65 78 70 61 6e | 73 69 6f 6e 29 29 29 0a |nt-expan|sion))).|
|000047d0| 20 20 20 20 20 20 20 20 | 20 20 28 74 20 28 73 65 | | (t (se|
|000047e0| 74 71 20 74 70 75 2d 63 | 75 72 72 65 6e 74 2d 65 |tq tpu-c|urrent-e|
|000047f0| 78 70 61 6e 73 69 6f 6e | 20 74 70 75 2d 65 78 70 |xpansion| tpu-exp|
|00004800| 61 6e 73 69 6f 6e 73 29 | 0a 20 20 20 20 20 20 20 |ansions)|. |
|00004810| 20 20 20 20 20 20 28 6d | 6f 64 69 66 79 2d 73 79 | (m|odify-sy|
|00004820| 6e 74 61 78 2d 65 6e 74 | 72 79 20 39 35 20 22 77 |ntax-ent|ry 95 "w|
|00004830| 22 29 0a 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |"). | |
|00004840| 28 66 6f 72 77 61 72 64 | 2d 77 6f 72 64 20 2d 31 |(forward|-word -1|
|00004850| 29 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 20 28 |). | (|
|00004860| 6d 6f 64 69 66 79 2d 73 | 79 6e 74 61 78 2d 65 6e |modify-s|yntax-en|
|00004870| 74 72 79 20 39 35 20 28 | 63 68 61 72 2d 74 6f 2d |try 95 (|char-to-|
|00004880| 73 74 72 69 6e 67 20 6f | 6c 64 2d 73 79 6e 74 61 |string o|ld-synta|
|00004890| 78 29 29 0a 20 20 20 20 | 20 20 20 20 20 20 20 20 |x)). | |
|000048a0| 20 28 73 65 74 71 20 74 | 70 75 2d 65 78 70 61 6e | (setq t|pu-expan|
|000048b0| 64 2d 6b 65 79 20 28 62 | 75 66 66 65 72 2d 73 75 |d-key (b|uffer-su|
|000048c0| 62 73 74 72 69 6e 67 20 | 28 70 6f 69 6e 74 29 20 |bstring |(point) |
|000048d0| 62 65 67 29 29 0a 20 20 | 20 20 20 20 20 20 20 20 |beg)). | |
|000048e0| 20 20 20 28 64 65 6c 65 | 74 65 2d 72 65 67 69 6f | (dele|te-regio|
|000048f0| 6e 20 62 65 67 20 28 70 | 6f 69 6e 74 29 29 29 29 |n beg (p|oint))))|
|00004900| 0a 20 20 20 20 28 77 68 | 69 6c 65 20 28 61 6e 64 |. (wh|ile (and|
|00004910| 20 74 70 75 2d 63 75 72 | 72 65 6e 74 2d 65 78 70 | tpu-cur|rent-exp|
|00004920| 61 6e 73 69 6f 6e 20 6e | 6f 74 2d 66 6f 75 6e 64 |ansion n|ot-found|
|00004930| 29 0a 20 20 20 20 20 20 | 28 69 66 20 28 73 74 72 |). |(if (str|
|00004940| 69 6e 67 2d 6d 61 74 63 | 68 20 74 70 75 2d 65 78 |ing-matc|h tpu-ex|
|00004950| 70 61 6e 64 2d 6b 65 79 | 20 28 63 61 61 72 20 74 |pand-key| (caar t|
|00004960| 70 75 2d 63 75 72 72 65 | 6e 74 2d 65 78 70 61 6e |pu-curre|nt-expan|
|00004970| 73 69 6f 6e 29 29 0a 20 | 20 20 20 20 20 20 20 20 |sion)). | |
|00004980| 20 28 73 65 74 71 20 6e | 6f 74 2d 66 6f 75 6e 64 | (setq n|ot-found|
|00004990| 20 6e 69 6c 29 0a 20 20 | 20 20 20 20 20 20 28 73 | nil). | (s|
|000049a0| 65 74 71 20 74 70 75 2d | 63 75 72 72 65 6e 74 2d |etq tpu-|current-|
|000049b0| 65 78 70 61 6e 73 69 6f | 6e 20 28 63 64 72 20 74 |expansio|n (cdr t|
|000049c0| 70 75 2d 63 75 72 72 65 | 6e 74 2d 65 78 70 61 6e |pu-curre|nt-expan|
|000049d0| 73 69 6f 6e 29 29 29 29 | 0a 20 20 20 20 28 63 6f |sion))))|. (co|
|000049e0| 6e 64 20 28 74 70 75 2d | 63 75 72 72 65 6e 74 2d |nd (tpu-|current-|
|000049f0| 65 78 70 61 6e 73 69 6f | 6e 0a 20 20 20 20 20 20 |expansio|n. |
|00004a00| 20 20 20 20 20 28 69 6e | 73 65 72 74 20 28 63 61 | (in|sert (ca|
|00004a10| 64 61 72 20 74 70 75 2d | 63 75 72 72 65 6e 74 2d |dar tpu-|current-|
|00004a20| 65 78 70 61 6e 73 69 6f | 6e 29 29 0a 20 20 20 20 |expansio|n)). |
|00004a30| 20 20 20 20 20 20 20 28 | 66 6f 72 77 61 72 64 2d | (|forward-|
|00004a40| 63 68 61 72 20 28 63 61 | 64 64 61 72 20 74 70 75 |char (ca|ddar tpu|
|00004a50| 2d 63 75 72 72 65 6e 74 | 2d 65 78 70 61 6e 73 69 |-current|-expansi|
|00004a60| 6f 6e 29 29 0a 20 20 20 | 20 20 20 20 20 20 20 20 |on)). | |
|00004a70| 28 73 65 74 71 20 74 70 | 75 2d 6c 61 73 74 2d 65 |(setq tp|u-last-e|
|00004a80| 78 70 61 6e 64 2d 70 6f | 69 6e 74 20 28 70 6f 69 |xpand-po|int (poi|
|00004a90| 6e 74 29 29 29 0a 20 20 | 20 20 20 20 20 20 20 20 |nt))). | |
|00004aa0| 28 74 0a 20 20 20 20 20 | 20 20 20 20 20 20 28 69 |(t. | (i|
|00004ab0| 6e 73 65 72 74 20 74 70 | 75 2d 65 78 70 61 6e 64 |nsert tp|u-expand|
|00004ac0| 2d 6b 65 79 29 0a 20 20 | 20 20 20 20 20 20 20 20 |-key). | |
|00004ad0| 20 28 6d 65 73 73 61 67 | 65 20 22 4e 6f 74 20 66 | (messag|e "Not f|
|00004ae0| 6f 75 6e 64 2e 22 29 0a | 20 20 20 20 20 20 20 20 |ound.").| |
|00004af0| 20 20 20 28 73 65 74 71 | 20 74 70 75 2d 6c 61 73 | (setq| tpu-las|
|00004b00| 74 2d 65 78 70 61 6e 64 | 2d 70 6f 69 6e 74 20 30 |t-expand|-point 0|
|00004b10| 29 29 29 29 29 0a 0a 3b | 3b 3b 0a 3b 3b 3b 20 20 |)))))..;|;;.;;; |
|00004b20| 42 72 65 61 64 63 72 75 | 6d 62 73 0a 3b 3b 3b 0a |Breadcru|mbs.;;;.|
|00004b30| 28 64 65 66 75 6e 20 64 | 72 6f 70 2d 62 72 65 61 |(defun d|rop-brea|
|00004b40| 64 63 72 75 6d 62 20 28 | 6e 75 6d 29 0a 20 20 22 |dcrumb (|num). "|
|00004b50| 44 72 6f 70 73 20 61 20 | 62 72 65 61 64 63 72 75 |Drops a |breadcru|
|00004b60| 6d 62 20 74 68 61 74 20 | 63 61 6e 20 62 65 20 72 |mb that |can be r|
|00004b70| 65 74 75 72 6e 65 64 20 | 74 6f 20 6c 61 74 65 72 |eturned |to later|
|00004b80| 20 77 69 74 68 20 67 6f | 74 6f 2d 62 72 65 61 64 | with go|to-bread|
|00004b90| 63 72 75 6d 62 2e 22 0a | 20 20 28 69 6e 74 65 72 |crumb.".| (inter|
|00004ba0| 61 63 74 69 76 65 20 22 | 70 22 29 0a 20 20 28 70 |active "|p"). (p|
|00004bb0| 75 74 20 74 70 75 2d 62 | 72 65 61 64 63 72 75 6d |ut tpu-b|readcrum|
|00004bc0| 62 2d 70 6c 69 73 74 20 | 6e 75 6d 20 28 6c 69 73 |b-plist |num (lis|
|00004bd0| 74 20 28 63 75 72 72 65 | 6e 74 2d 62 75 66 66 65 |t (curre|nt-buffe|
|00004be0| 72 29 20 28 70 6f 69 6e | 74 29 29 29 0a 20 20 28 |r) (poin|t))). (|
|00004bf0| 6d 65 73 73 61 67 65 20 | 22 4d 61 72 6b 20 25 64 |message |"Mark %d|
|00004c00| 20 73 65 74 2e 22 20 6e | 75 6d 29 29 0a 20 20 0a | set." n|um)). .|
|00004c10| 28 64 65 66 75 6e 20 67 | 6f 74 6f 2d 62 72 65 61 |(defun g|oto-brea|
|00004c20| 64 63 72 75 6d 62 20 28 | 6e 75 6d 29 0a 20 20 22 |dcrumb (|num). "|
|00004c30| 52 65 74 75 72 6e 73 20 | 74 6f 20 61 20 62 72 65 |Returns |to a bre|
|00004c40| 61 64 63 72 75 6d 62 20 | 73 65 74 20 77 69 74 68 |adcrumb |set with|
|00004c50| 20 67 6f 74 6f 2d 62 72 | 65 61 64 63 72 75 6d 62 | goto-br|eadcrumb|
|00004c60| 2e 22 0a 20 20 28 69 6e | 74 65 72 61 63 74 69 76 |.". (in|teractiv|
|00004c70| 65 20 22 70 22 29 0a 20 | 20 28 63 6f 6e 64 20 28 |e "p"). | (cond (|
|00004c80| 28 67 65 74 20 74 70 75 | 2d 62 72 65 61 64 63 72 |(get tpu|-breadcr|
|00004c90| 75 6d 62 2d 70 6c 69 73 | 74 20 6e 75 6d 29 0a 09 |umb-plis|t num)..|
|00004ca0| 20 28 73 77 69 74 63 68 | 2d 74 6f 2d 62 75 66 66 | (switch|-to-buff|
|00004cb0| 65 72 20 28 63 61 72 20 | 28 67 65 74 20 74 70 75 |er (car |(get tpu|
|00004cc0| 2d 62 72 65 61 64 63 72 | 75 6d 62 2d 70 6c 69 73 |-breadcr|umb-plis|
|00004cd0| 74 20 6e 75 6d 29 29 29 | 0a 09 20 28 67 6f 74 6f |t num)))|.. (goto|
|00004ce0| 2d 63 68 61 72 20 28 63 | 61 64 72 20 28 67 65 74 |-char (c|adr (get|
|00004cf0| 20 74 70 75 2d 62 72 65 | 61 64 63 72 75 6d 62 2d | tpu-bre|adcrumb-|
|00004d00| 70 6c 69 73 74 20 6e 75 | 6d 29 29 29 0a 09 20 28 |plist nu|m))).. (|
|00004d10| 6d 65 73 73 61 67 65 20 | 22 6d 61 72 6b 20 25 64 |message |"mark %d|
|00004d20| 20 66 6f 75 6e 64 2e 22 | 20 6e 75 6d 29 29 0a 09 | found."| num))..|
|00004d30| 28 74 0a 09 20 28 6d 65 | 73 73 61 67 65 20 22 6d |(t.. (me|ssage "m|
|00004d40| 61 72 6b 20 25 64 20 6e | 6f 74 20 66 6f 75 6e 64 |ark %d n|ot found|
|00004d50| 2e 22 20 6e 75 6d 29 29 | 29 29 0a 0a 28 64 65 66 |." num))|))..(def|
|00004d60| 75 6e 20 64 72 6f 70 2d | 62 72 65 61 64 63 72 75 |un drop-|breadcru|
|00004d70| 6d 62 2d 32 20 6e 69 6c | 0a 20 20 22 64 72 6f 70 |mb-2 nil|. "drop|
|00004d80| 73 20 62 72 65 61 64 63 | 72 75 6d 62 20 6e 75 6d |s breadc|rumb num|
|00004d90| 62 65 72 20 32 20 61 74 | 20 74 68 65 20 70 6f 69 |ber 2 at| the poi|
|00004da0| 6e 74 2e 22 0a 20 20 28 | 69 6e 74 65 72 61 63 74 |nt.". (|interact|
|00004db0| 69 76 65 29 0a 20 20 28 | 64 72 6f 70 2d 62 72 65 |ive). (|drop-bre|
|00004dc0| 61 64 63 72 75 6d 62 20 | 32 29 29 0a 0a 28 64 65 |adcrumb |2))..(de|
|00004dd0| 66 75 6e 20 64 72 6f 70 | 2d 62 72 65 61 64 63 72 |fun drop|-breadcr|
|00004de0| 75 6d 62 2d 33 20 6e 69 | 6c 0a 20 20 22 64 72 6f |umb-3 ni|l. "dro|
|00004df0| 70 73 20 62 72 65 61 64 | 63 72 75 6d 62 20 6e 75 |ps bread|crumb nu|
|00004e00| 6d 62 65 72 20 33 20 61 | 74 20 74 68 65 20 70 6f |mber 3 a|t the po|
|00004e10| 69 6e 74 2e 22 0a 20 20 | 28 69 6e 74 65 72 61 63 |int.". |(interac|
|00004e20| 74 69 76 65 29 0a 20 20 | 28 64 72 6f 70 2d 62 72 |tive). |(drop-br|
|00004e30| 65 61 64 63 72 75 6d 62 | 20 33 29 29 0a 0a 28 64 |eadcrumb| 3))..(d|
|00004e40| 65 66 75 6e 20 64 72 6f | 70 2d 62 72 65 61 64 63 |efun dro|p-breadc|
|00004e50| 72 75 6d 62 2d 34 20 6e | 69 6c 0a 20 20 22 64 72 |rumb-4 n|il. "dr|
|00004e60| 6f 70 73 20 62 72 65 61 | 64 63 72 75 6d 62 20 6e |ops brea|dcrumb n|
|00004e70| 75 6d 62 65 72 20 34 20 | 61 74 20 74 68 65 20 70 |umber 4 |at the p|
|00004e80| 6f 69 6e 74 2e 22 0a 20 | 20 28 69 6e 74 65 72 61 |oint.". | (intera|
|00004e90| 63 74 69 76 65 29 0a 20 | 20 28 64 72 6f 70 2d 62 |ctive). | (drop-b|
|00004ea0| 72 65 61 64 63 72 75 6d | 62 20 34 29 29 0a 0a 28 |readcrum|b 4))..(|
|00004eb0| 64 65 66 75 6e 20 64 72 | 6f 70 2d 62 72 65 61 64 |defun dr|op-bread|
|00004ec0| 63 72 75 6d 62 2d 35 20 | 6e 69 6c 0a 20 20 22 64 |crumb-5 |nil. "d|
|00004ed0| 72 6f 70 73 20 62 72 65 | 61 64 63 72 75 6d 62 20 |rops bre|adcrumb |
|00004ee0| 6e 75 6d 62 65 72 20 35 | 20 61 74 20 74 68 65 20 |number 5| at the |
|00004ef0| 70 6f 69 6e 74 2e 22 0a | 20 20 28 69 6e 74 65 72 |point.".| (inter|
|00004f00| 61 63 74 69 76 65 29 0a | 20 20 28 64 72 6f 70 2d |active).| (drop-|
|00004f10| 62 72 65 61 64 63 72 75 | 6d 62 20 35 29 29 0a 0a |breadcru|mb 5))..|
|00004f20| 28 64 65 66 75 6e 20 67 | 6f 74 6f 2d 62 72 65 61 |(defun g|oto-brea|
|00004f30| 64 63 72 75 6d 62 2d 32 | 20 6e 69 6c 0a 20 20 22 |dcrumb-2| nil. "|
|00004f40| 67 6f 74 6f 20 62 72 65 | 61 64 63 72 75 6d 62 20 |goto bre|adcrumb |
|00004f50| 6e 75 6d 62 65 72 20 32 | 2e 22 0a 20 20 28 69 6e |number 2|.". (in|
|00004f60| 74 65 72 61 63 74 69 76 | 65 29 0a 20 20 28 67 6f |teractiv|e). (go|
|00004f70| 74 6f 2d 62 72 65 61 64 | 63 72 75 6d 62 20 32 29 |to-bread|crumb 2)|
|00004f80| 29 0a 0a 28 64 65 66 75 | 6e 20 67 6f 74 6f 2d 62 |)..(defu|n goto-b|
|00004f90| 72 65 61 64 63 72 75 6d | 62 2d 33 20 6e 69 6c 0a |readcrum|b-3 nil.|
|00004fa0| 20 20 22 67 6f 74 6f 20 | 62 72 65 61 64 63 72 75 | "goto |breadcru|
|00004fb0| 6d 62 20 6e 75 6d 62 65 | 72 20 33 2e 22 0a 20 20 |mb numbe|r 3.". |
|00004fc0| 28 69 6e 74 65 72 61 63 | 74 69 76 65 29 0a 20 20 |(interac|tive). |
|00004fd0| 28 67 6f 74 6f 2d 62 72 | 65 61 64 63 72 75 6d 62 |(goto-br|eadcrumb|
|00004fe0| 20 33 29 29 0a 0a 28 64 | 65 66 75 6e 20 67 6f 74 | 3))..(d|efun got|
|00004ff0| 6f 2d 62 72 65 61 64 63 | 72 75 6d 62 2d 34 20 6e |o-breadc|rumb-4 n|
|00005000| 69 6c 0a 20 20 22 67 6f | 74 6f 20 62 72 65 61 64 |il. "go|to bread|
|00005010| 63 72 75 6d 62 20 6e 75 | 6d 62 65 72 20 34 2e 22 |crumb nu|mber 4."|
|00005020| 0a 20 20 28 69 6e 74 65 | 72 61 63 74 69 76 65 29 |. (inte|ractive)|
|00005030| 0a 20 20 28 67 6f 74 6f | 2d 62 72 65 61 64 63 72 |. (goto|-breadcr|
|00005040| 75 6d 62 20 34 29 29 0a | 0a 28 64 65 66 75 6e 20 |umb 4)).|.(defun |
|00005050| 67 6f 74 6f 2d 62 72 65 | 61 64 63 72 75 6d 62 2d |goto-bre|adcrumb-|
|00005060| 35 20 6e 69 6c 0a 20 20 | 22 67 6f 74 6f 20 62 72 |5 nil. |"goto br|
|00005070| 65 61 64 63 72 75 6d 62 | 20 6e 75 6d 62 65 72 20 |eadcrumb| number |
|00005080| 35 2e 22 0a 20 20 28 69 | 6e 74 65 72 61 63 74 69 |5.". (i|nteracti|
|00005090| 76 65 29 0a 20 20 28 67 | 6f 74 6f 2d 62 72 65 61 |ve). (g|oto-brea|
|000050a0| 64 63 72 75 6d 62 20 35 | 29 29 0a 0a 0a 3b 3b 3b |dcrumb 5|))...;;;|
|000050b0| 0a 3b 3b 3b 20 20 6d 69 | 73 63 65 6c 6c 61 6e 65 |.;;; mi|scellane|
|000050c0| 6f 75 73 0a 3b 3b 3b 0a | 28 64 65 66 75 6e 20 72 |ous.;;;.|(defun r|
|000050d0| 65 70 6c 61 63 65 2d 67 | 6c 6f 62 61 6c 2d 6b 65 |eplace-g|lobal-ke|
|000050e0| 79 20 28 6b 65 79 20 66 | 75 6e 63 29 0a 20 20 22 |y (key f|unc). "|
|000050f0| 53 61 76 65 73 20 74 68 | 65 20 63 75 72 72 65 6e |Saves th|e curren|
|00005100| 74 20 67 6c 6f 62 61 6c | 20 6b 65 79 20 64 65 66 |t global| key def|
|00005110| 69 6e 69 74 69 6f 6e 20 | 61 6e 64 20 72 65 70 6c |inition |and repl|
|00005120| 61 63 65 73 20 69 74 20 | 77 69 74 68 20 61 20 6e |aces it |with a n|
|00005130| 65 77 20 6f 6e 65 2e 22 | 0a 20 20 28 69 6e 74 65 |ew one."|. (inte|
|00005140| 72 61 63 74 69 76 65 29 | 0a 20 20 28 69 66 20 28 |ractive)|. (if (|
|00005150| 6e 6f 74 20 28 67 65 74 | 20 74 70 75 2d 67 6c 6f |not (get| tpu-glo|
|00005160| 62 61 6c 2d 6b 65 79 2d | 70 6c 69 73 74 20 6b 65 |bal-key-|plist ke|
|00005170| 79 29 29 0a 20 20 20 20 | 20 20 28 70 75 74 20 74 |y)). | (put t|
|00005180| 70 75 2d 67 6c 6f 62 61 | 6c 2d 6b 65 79 2d 70 6c |pu-globa|l-key-pl|
|00005190| 69 73 74 20 6b 65 79 20 | 66 75 6e 63 29 29 0a 20 |ist key |func)). |
|000051a0| 20 28 64 65 66 69 6e 65 | 2d 6b 65 79 20 67 6c 6f | (define|-key glo|
|000051b0| 62 61 6c 2d 6d 61 70 20 | 6b 65 79 20 66 75 6e 63 |bal-map |key func|
|000051c0| 29 29 0a 0a 28 64 65 66 | 75 6e 20 72 65 73 74 6f |))..(def|un resto|
|000051d0| 72 65 2d 67 6c 6f 62 61 | 6c 2d 6b 65 79 20 28 6b |re-globa|l-key (k|
|000051e0| 65 79 29 0a 20 20 22 52 | 65 73 74 6f 72 65 73 20 |ey). "R|estores |
|000051f0| 74 68 65 20 6f 72 69 67 | 69 6e 61 6c 20 64 65 66 |the orig|inal def|
|00005200| 69 6e 69 74 69 6f 6e 20 | 6f 66 20 61 20 67 6c 6f |inition |of a glo|
|00005210| 62 61 6c 20 6b 65 79 2e | 22 0a 20 20 28 69 6e 74 |bal key.|". (int|
|00005220| 65 72 61 63 74 69 76 65 | 29 0a 20 20 28 64 65 66 |eractive|). (def|
|00005230| 69 6e 65 2d 6b 65 79 20 | 67 6c 6f 62 61 6c 2d 6d |ine-key |global-m|
|00005240| 61 70 20 6b 65 79 20 28 | 67 65 74 20 74 70 75 2d |ap key (|get tpu-|
|00005250| 67 6c 6f 62 61 6c 2d 6b | 65 79 2d 70 6c 69 73 74 |global-k|ey-plist|
|00005260| 20 6b 65 79 29 29 29 0a | 0a 28 64 65 66 75 6e 20 | key))).|.(defun |
|00005270| 63 61 73 65 2d 66 6c 69 | 70 20 28 6e 75 6d 29 0a |case-fli|p (num).|
|00005280| 20 20 22 43 68 61 6e 67 | 65 20 74 68 65 20 63 61 | "Chang|e the ca|
|00005290| 73 65 20 6f 66 20 74 68 | 65 20 63 68 61 72 61 63 |se of th|e charac|
|000052a0| 74 65 72 20 75 6e 64 65 | 72 20 74 68 65 20 63 75 |ter unde|r the cu|
|000052b0| 72 73 6f 72 20 6f 72 20 | 72 65 67 69 6f 6e 2e 0a |rsor or |region..|
|000052c0| 61 63 63 65 70 74 73 20 | 61 20 70 72 65 66 69 78 |accepts |a prefix|
|000052d0| 20 61 72 67 75 6d 65 6e | 74 20 6f 66 20 74 68 65 | argumen|t of the|
|000052e0| 20 6e 75 6d 62 65 72 20 | 6f 66 20 63 68 61 72 61 | number |of chara|
|000052f0| 63 74 65 72 73 20 74 6f | 20 69 6e 76 65 72 74 2e |cters to| invert.|
|00005300| 22 0a 20 20 28 69 6e 74 | 65 72 61 63 74 69 76 65 |". (int|eractive|
|00005310| 20 22 70 22 29 0a 20 20 | 28 69 66 20 28 6d 61 72 | "p"). |(if (mar|
|00005320| 6b 29 0a 20 20 20 20 20 | 20 28 6c 65 74 20 28 28 |k). | (let ((|
|00005330| 65 6e 64 20 28 6d 61 78 | 20 28 6d 61 72 6b 29 20 |end (max| (mark) |
|00005340| 28 70 6f 69 6e 74 29 29 | 29 0a 20 20 20 20 20 20 |(point))|). |
|00005350| 20 20 20 20 20 20 28 70 | 6f 69 6e 74 2d 73 61 76 | (p|oint-sav|
|00005360| 65 20 28 70 6f 69 6e 74 | 29 29 29 0a 20 20 20 20 |e (point|))). |
|00005370| 20 20 20 20 28 67 6f 74 | 6f 2d 63 68 61 72 20 28 | (got|o-char (|
|00005380| 6d 69 6e 20 28 70 6f 69 | 6e 74 29 20 28 6d 61 72 |min (poi|nt) (mar|
|00005390| 6b 29 29 29 0a 20 20 20 | 20 20 20 20 20 28 77 68 |k))). | (wh|
|000053a0| 69 6c 65 20 28 6e 6f 74 | 20 28 65 71 20 28 70 6f |ile (not| (eq (po|
|000053b0| 69 6e 74 29 20 65 6e 64 | 29 29 0a 20 20 20 20 20 |int) end|)). |
|000053c0| 20 20 20 20 20 28 66 75 | 6e 63 61 6c 6c 20 28 69 | (fu|ncall (i|
|000053d0| 66 20 28 3c 3d 20 3f 61 | 20 28 66 6f 6c 6c 6f 77 |f (<= ?a| (follow|
|000053e0| 69 6e 67 2d 63 68 61 72 | 29 29 0a 20 20 20 20 20 |ing-char|)). |
|000053f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005400| 20 20 27 75 70 63 61 73 | 65 2d 72 65 67 69 6f 6e | 'upcas|e-region|
|00005410| 20 27 64 6f 77 6e 63 61 | 73 65 2d 72 65 67 69 6f | 'downca|se-regio|
|00005420| 6e 29 0a 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |n). | |
|00005430| 20 20 20 20 20 20 28 70 | 6f 69 6e 74 29 20 28 31 | (p|oint) (1|
|00005440| 2b 20 28 70 6f 69 6e 74 | 29 29 29 0a 20 20 20 20 |+ (point|))). |
|00005450| 20 20 20 20 20 20 28 66 | 6f 72 77 61 72 64 2d 63 | (f|orward-c|
|00005460| 68 61 72 20 31 29 29 0a | 20 20 20 20 20 20 20 20 |har 1)).| |
|00005470| 28 67 6f 74 6f 2d 63 68 | 61 72 20 70 6f 69 6e 74 |(goto-ch|ar point|
|00005480| 2d 73 61 76 65 29 29 0a | 20 20 20 20 28 70 72 6f |-save)).| (pro|
|00005490| 67 6e 0a 20 20 20 20 20 | 20 28 69 66 20 28 73 74 |gn. | (if (st|
|000054a0| 72 69 6e 67 3d 20 74 70 | 75 2d 64 69 72 65 63 74 |ring= tp|u-direct|
|000054b0| 69 6f 6e 2d 73 74 72 69 | 6e 67 20 22 20 62 61 63 |ion-stri|ng " bac|
|000054c0| 6b 75 70 22 29 0a 20 20 | 20 20 20 20 20 20 20 20 |kup"). | |
|000054d0| 28 62 61 63 6b 77 61 72 | 64 2d 63 68 61 72 20 6e |(backwar|d-char n|
|000054e0| 75 6d 29 29 0a 20 20 20 | 20 20 20 28 77 68 69 6c |um)). | (whil|
|000054f0| 65 20 28 3e 20 6e 75 6d | 20 30 29 0a 20 20 20 20 |e (> num| 0). |
|00005500| 20 20 20 20 28 66 75 6e | 63 61 6c 6c 20 28 69 66 | (fun|call (if|
|00005510| 20 28 3c 3d 20 3f 61 20 | 28 66 6f 6c 6c 6f 77 69 | (<= ?a |(followi|
|00005520| 6e 67 2d 63 68 61 72 29 | 29 0a 20 20 20 20 20 20 |ng-char)|). |
|00005530| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 27 | | '|
|00005540| 75 70 63 61 73 65 2d 72 | 65 67 69 6f 6e 20 27 64 |upcase-r|egion 'd|
|00005550| 6f 77 6e 63 61 73 65 2d | 72 65 67 69 6f 6e 29 0a |owncase-|region).|
|00005560| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005570| 20 28 70 6f 69 6e 74 29 | 20 28 31 2b 20 28 70 6f | (point)| (1+ (po|
|00005580| 69 6e 74 29 29 29 0a 20 | 20 20 20 20 20 20 20 28 |int))). | (|
|00005590| 66 6f 72 77 61 72 64 2d | 63 68 61 72 20 31 29 0a |forward-|char 1).|
|000055a0| 20 20 20 20 20 20 20 20 | 28 73 65 74 71 20 6e 75 | |(setq nu|
|000055b0| 6d 20 28 31 2d 20 6e 75 | 6d 29 29 29 29 29 29 0a |m (1- nu|m)))))).|
|000055c0| 0a 28 64 65 66 75 6e 20 | 69 6e 64 65 6e 74 2d 6f |.(defun |indent-o|
|000055d0| 72 2d 66 69 6c 6c 2d 72 | 65 67 69 6f 6e 20 6e 69 |r-fill-r|egion ni|
|000055e0| 6c 0a 20 20 22 66 69 6c | 6c 20 72 65 67 69 6f 6e |l. "fil|l region|
|000055f0| 20 69 6e 20 74 65 78 74 | 20 6d 6f 64 65 73 2c 20 | in text| modes, |
|00005600| 69 6e 64 65 6e 74 20 72 | 65 67 69 6f 6e 20 69 6e |indent r|egion in|
|00005610| 20 70 72 6f 67 72 61 6d | 6d 69 6e 67 20 6c 61 6e | program|ming lan|
|00005620| 67 75 61 67 65 20 6d 6f | 64 65 73 2e 22 0a 20 20 |guage mo|des.". |
|00005630| 28 69 6e 74 65 72 61 63 | 74 69 76 65 29 0a 20 20 |(interac|tive). |
|00005640| 28 69 66 20 28 73 74 72 | 69 6e 67 3d 20 70 61 72 |(if (str|ing= par|
|00005650| 61 67 72 61 70 68 2d 73 | 74 61 72 74 20 22 5e 24 |agraph-s|tart "^$|
|00005660| 5c 5c 7c 5e 0c 22 29 0a | 20 20 20 20 20 20 28 69 |\\|^.").| (i|
|00005670| 6e 64 65 6e 74 2d 72 65 | 67 69 6f 6e 20 28 70 6f |ndent-re|gion (po|
|00005680| 69 6e 74 29 20 28 6d 61 | 72 6b 29 20 6e 69 6c 29 |int) (ma|rk) nil)|
|00005690| 0a 20 20 20 20 28 66 69 | 6c 6c 2d 72 65 67 69 6f |. (fi|ll-regio|
|000056a0| 6e 20 28 70 6f 69 6e 74 | 29 20 28 6d 61 72 6b 29 |n (point|) (mark)|
|000056b0| 29 29 29 0a 0a 28 64 65 | 66 75 6e 20 6d 61 72 6b |)))..(de|fun mark|
|000056c0| 2d 73 65 63 74 69 6f 6e | 2d 77 69 73 65 6c 79 20 |-section|-wisely |
|000056d0| 6e 69 6c 0a 20 20 22 6d | 61 72 6b 20 74 68 65 20 |nil. "m|ark the |
|000056e0| 73 65 63 74 69 6f 6e 20 | 69 6e 20 61 20 6d 61 6e |section |in a man|
|000056f0| 6e 65 72 20 63 6f 6e 73 | 69 73 74 65 6e 74 20 77 |ner cons|istent w|
|00005700| 69 74 68 20 74 68 65 20 | 6d 61 6a 6f 72 2d 6d 6f |ith the |major-mo|
|00005710| 64 65 2e 0a 75 73 65 73 | 20 6d 61 72 6b 2d 64 65 |de..uses| mark-de|
|00005720| 66 75 6e 20 66 6f 72 20 | 65 6d 61 63 73 2d 6c 69 |fun for |emacs-li|
|00005730| 73 70 2c 20 6c 69 73 70 | 2c 0a 6d 61 72 6b 2d 63 |sp, lisp|,.mark-c|
|00005740| 2d 66 75 6e 63 74 69 6f | 6e 20 66 6f 72 20 63 2c |-functio|n for c,|
|00005750| 0a 61 6e 64 20 6d 61 72 | 6b 2d 70 61 72 61 67 72 |.and mar|k-paragr|
|00005760| 61 70 68 20 66 6f 72 20 | 6f 74 68 65 72 20 6d 6f |aph for |other mo|
|00005770| 64 65 73 2e 22 0a 20 20 | 28 69 6e 74 65 72 61 63 |des.". |(interac|
|00005780| 74 69 76 65 29 0a 20 20 | 28 63 6f 6e 64 20 20 28 |tive). |(cond (|
|00005790| 28 65 71 20 6d 61 6a 6f | 72 2d 6d 6f 64 65 20 27 |(eq majo|r-mode '|
|000057a0| 65 6d 61 63 73 2d 6c 69 | 73 70 2d 6d 6f 64 65 29 |emacs-li|sp-mode)|
|000057b0| 0a 20 20 20 20 20 20 20 | 20 20 20 28 6d 61 72 6b |. | (mark|
|000057c0| 2d 64 65 66 75 6e 29 29 | 0a 20 20 20 20 20 20 20 |-defun))|. |
|000057d0| 20 20 28 28 65 71 20 6d | 61 6a 6f 72 2d 6d 6f 64 | ((eq m|ajor-mod|
|000057e0| 65 20 27 6c 69 73 70 2d | 6d 6f 64 65 29 0a 20 20 |e 'lisp-|mode). |
|000057f0| 20 20 20 20 20 20 20 20 | 28 6d 61 72 6b 2d 64 65 | |(mark-de|
|00005800| 66 75 6e 29 29 0a 20 20 | 20 20 20 20 20 20 20 28 |fun)). | (|
|00005810| 28 65 71 20 6d 61 6a 6f | 72 2d 6d 6f 64 65 20 27 |(eq majo|r-mode '|
|00005820| 63 2d 6d 6f 64 65 29 0a | 20 20 20 20 20 20 20 20 |c-mode).| |
|00005830| 20 20 28 6d 61 72 6b 2d | 63 2d 66 75 6e 63 74 69 | (mark-|c-functi|
|00005840| 6f 6e 29 29 0a 20 20 20 | 20 20 20 20 20 20 28 74 |on)). | (t|
|00005850| 20 28 6d 61 72 6b 2d 70 | 61 72 61 67 72 61 70 68 | (mark-p|aragraph|
|00005860| 29 29 29 29 0a 0a 28 64 | 65 66 75 6e 20 75 70 64 |))))..(d|efun upd|
|00005870| 61 74 65 2d 6d 6f 64 65 | 2d 6c 69 6e 65 20 6e 69 |ate-mode|-line ni|
|00005880| 6c 0a 20 20 22 6d 61 6b | 65 20 73 75 72 65 20 6d |l. "mak|e sure m|
|00005890| 6f 64 65 2d 6c 69 6e 65 | 20 69 6e 20 74 68 65 20 |ode-line| in the |
|000058a0| 63 75 72 72 65 6e 74 20 | 62 75 66 66 65 72 20 72 |current |buffer r|
|000058b0| 65 66 6c 65 63 74 73 20 | 61 6c 6c 20 63 68 61 6e |eflects |all chan|
|000058c0| 67 65 73 2e 22 0a 20 20 | 28 73 65 74 2d 62 75 66 |ges.". |(set-buf|
|000058d0| 66 65 72 2d 6d 6f 64 69 | 66 69 65 64 2d 70 20 28 |fer-modi|fied-p (|
|000058e0| 62 75 66 66 65 72 2d 6d | 6f 64 69 66 69 65 64 2d |buffer-m|odified-|
|000058f0| 70 29 29 0a 20 20 28 73 | 69 74 2d 66 6f 72 20 30 |p)). (s|it-for 0|
|00005900| 29 29 0a 0a 28 64 65 66 | 75 6e 20 72 65 73 65 74 |))..(def|un reset|
|00005910| 2d 73 63 72 65 65 6e 2d | 73 69 7a 65 20 28 68 65 |-screen-|size (he|
|00005920| 69 67 68 74 20 77 69 64 | 74 68 29 0a 20 20 22 73 |ight wid|th). "s|
|00005930| 65 74 73 20 73 63 72 65 | 65 6e 20 73 69 7a 65 2e |ets scre|en size.|
|00005940| 22 0a 20 20 28 69 6e 74 | 65 72 61 63 74 69 76 65 |". (int|eractive|
|00005950| 20 22 6e 6e 65 77 20 73 | 63 72 65 65 6e 20 68 65 | "nnew s|creen he|
|00005960| 69 67 68 74 3a 20 5c 6e | 6e 6e 65 77 20 73 63 72 |ight: \n|nnew scr|
|00005970| 65 65 6e 20 77 69 64 74 | 68 3a 20 22 29 0a 20 20 |een widt|h: "). |
|00005980| 28 73 65 74 2d 73 63 72 | 65 65 6e 2d 68 65 69 67 |(set-scr|een-heig|
|00005990| 68 74 20 68 65 69 67 68 | 74 29 0a 20 20 28 73 65 |ht heigh|t). (se|
|000059a0| 74 2d 73 63 72 65 65 6e | 2d 77 69 64 74 68 20 77 |t-screen|-width w|
|000059b0| 69 64 74 68 29 29 0a 0a | 28 64 65 66 75 6e 20 74 |idth))..|(defun t|
|000059c0| 6f 67 67 6c 65 2d 6e 65 | 77 6c 69 6e 65 2d 61 6e |oggle-ne|wline-an|
|000059d0| 64 2d 69 6e 64 65 6e 74 | 20 6e 69 6c 0a 20 20 22 |d-indent| nil. "|
|000059e0| 74 6f 67 67 6c 65 20 62 | 65 74 77 65 65 6e 20 27 |toggle b|etween '|
|000059f0| 6e 65 77 6c 69 6e 65 20 | 61 6e 64 20 69 6e 64 65 |newline |and inde|
|00005a00| 6e 74 27 20 61 6e 64 20 | 27 73 69 6d 70 6c 65 20 |nt' and |'simple |
|00005a10| 6e 65 77 6c 69 6e 65 27 | 2e 22 0a 20 20 28 69 6e |newline'|.". (in|
|00005a20| 74 65 72 61 63 74 69 76 | 65 29 0a 20 20 28 63 6f |teractiv|e). (co|
|00005a30| 6e 64 20 28 6e 65 77 6c | 69 6e 65 2d 61 6e 64 2d |nd (newl|ine-and-|
|00005a40| 69 6e 64 65 6e 74 2d 70 | 0a 20 20 20 20 20 20 20 |indent-p|. |
|00005a50| 20 20 28 73 65 74 71 20 | 6e 65 77 6c 69 6e 65 2d | (setq |newline-|
|00005a60| 61 6e 64 2d 69 6e 64 65 | 6e 74 2d 70 2d 73 74 72 |and-inde|nt-p-str|
|00005a70| 69 6e 67 20 22 22 29 0a | 20 20 20 20 20 20 20 20 |ing "").| |
|00005a80| 20 28 73 65 74 71 20 6e | 65 77 6c 69 6e 65 2d 61 | (setq n|ewline-a|
|00005a90| 6e 64 2d 69 6e 64 65 6e | 74 2d 70 20 6e 69 6c 29 |nd-inden|t-p nil)|
|00005aa0| 0a 20 20 20 20 20 20 20 | 20 20 28 67 6c 6f 62 61 |. | (globa|
|00005ab0| 6c 2d 73 65 74 2d 6b 65 | 79 20 22 5c 63 2d 6d 22 |l-set-ke|y "\c-m"|
|00005ac0| 20 27 6e 65 77 6c 69 6e | 65 29 29 0a 20 20 20 20 | 'newlin|e)). |
|00005ad0| 20 20 20 20 28 74 0a 20 | 20 20 20 20 20 20 20 20 | (t. | |
|00005ae0| 28 73 65 74 71 20 6e 65 | 77 6c 69 6e 65 2d 61 6e |(setq ne|wline-an|
|00005af0| 64 2d 69 6e 64 65 6e 74 | 2d 70 2d 73 74 72 69 6e |d-indent|-p-strin|
|00005b00| 67 20 22 20 61 75 74 6f | 69 6e 64 65 6e 74 22 29 |g " auto|indent")|
|00005b10| 0a 20 20 20 20 20 20 20 | 20 20 28 73 65 74 71 20 |. | (setq |
|00005b20| 6e 65 77 6c 69 6e 65 2d | 61 6e 64 2d 69 6e 64 65 |newline-|and-inde|
|00005b30| 6e 74 2d 70 20 74 29 0a | 20 20 20 20 20 20 20 20 |nt-p t).| |
|00005b40| 20 28 67 6c 6f 62 61 6c | 2d 73 65 74 2d 6b 65 79 | (global|-set-key|
|00005b50| 20 22 5c 63 2d 6d 22 20 | 27 6e 65 77 6c 69 6e 65 | "\c-m" |'newline|
|00005b60| 2d 61 6e 64 2d 69 6e 64 | 65 6e 74 29 29 29 0a 20 |-and-ind|ent))). |
|00005b70| 20 28 75 70 64 61 74 65 | 2d 6d 6f 64 65 2d 6c 69 | (update|-mode-li|
|00005b80| 6e 65 29 29 0a 0a 28 64 | 65 66 75 6e 20 73 70 65 |ne))..(d|efun spe|
|00005b90| 6c 6c 2d 63 68 65 63 6b | 20 6e 69 6c 0a 20 20 22 |ll-check| nil. "|
|00005ba0| 63 68 65 63 6b 73 20 74 | 68 65 20 73 70 65 6c 6c |checks t|he spell|
|00005bb0| 69 6e 67 20 6f 66 20 74 | 68 65 20 72 65 67 69 6f |ing of t|he regio|
|00005bc0| 6e 2c 20 6f 72 20 6f 66 | 20 74 68 65 20 65 6e 74 |n, or of| the ent|
|00005bd0| 69 72 65 20 62 75 66 66 | 65 72 20 69 66 20 6e 6f |ire buff|er if no|
|00005be0| 0a 20 72 65 67 69 6f 6e | 20 69 73 20 73 65 6c 65 |. region| is sele|
|00005bf0| 63 74 65 64 2e 22 0a 20 | 20 28 69 6e 74 65 72 61 |cted.". | (intera|
|00005c00| 63 74 69 76 65 29 0a 20 | 20 28 63 6f 6e 64 20 28 |ctive). | (cond (|
|00005c10| 28 3d 20 28 70 6f 69 6e | 74 29 20 28 6d 61 72 6b |(= (poin|t) (mark|
|00005c20| 29 29 20 28 73 70 65 6c | 6c 2d 62 75 66 66 65 72 |)) (spel|l-buffer|
|00005c30| 29 29 0a 20 20 20 20 20 | 20 20 20 28 74 20 28 73 |)). | (t (s|
|00005c40| 70 65 6c 6c 2d 72 65 67 | 69 6f 6e 20 28 70 6f 69 |pell-reg|ion (poi|
|00005c50| 6e 74 29 20 28 6d 61 72 | 6b 29 29 29 29 29 0a 20 |nt) (mar|k))))). |
|00005c60| 20 0a 28 64 65 66 75 6e | 20 72 65 70 6f 72 74 2d | .(defun| report-|
|00005c70| 70 6f 73 69 74 69 6f 6e | 20 6e 69 6c 0a 20 20 22 |position| nil. "|
|00005c80| 70 72 69 6e 74 73 20 61 | 20 6d 65 73 73 61 67 65 |prints a| message|
|00005c90| 20 69 6e 20 74 68 65 20 | 6d 69 6e 69 62 75 66 66 | in the |minibuff|
|00005ca0| 65 72 20 74 68 61 74 20 | 73 68 6f 77 73 20 74 68 |er that |shows th|
|00005cb0| 65 20 63 75 72 72 65 6e | 74 20 70 6f 73 69 74 69 |e curren|t positi|
|00005cc0| 6f 6e 0a 20 6f 66 20 74 | 68 65 20 70 6f 69 6e 74 |on. of t|he point|
|00005cd0| 20 69 6e 20 74 68 65 20 | 62 75 66 66 65 72 2e 22 | in the |buffer."|
|00005ce0| 0a 20 20 28 69 6e 74 65 | 72 61 63 74 69 76 65 29 |. (inte|ractive)|
|00005cf0| 0a 20 20 28 6d 65 73 73 | 61 67 65 20 22 63 68 61 |. (mess|age "cha|
|00005d00| 72 20 25 64 20 20 20 6c | 69 6e 65 20 25 64 20 20 |r %d l|ine %d |
|00005d10| 20 25 64 25 25 22 0a 20 | 20 20 20 20 20 20 20 20 | %d%%". | |
|00005d20| 20 20 28 70 6f 69 6e 74 | 29 0a 20 20 20 20 20 20 | (point|). |
|00005d30| 20 20 20 20 20 28 31 2b | 20 28 63 6f 75 6e 74 2d | (1+| (count-|
|00005d40| 6c 69 6e 65 73 20 31 20 | 28 70 6f 69 6e 74 29 29 |lines 1 |(point))|
|00005d50| 29 0a 20 20 20 20 20 20 | 20 20 20 20 20 28 2f 20 |). | (/ |
|00005d60| 28 2a 20 31 30 30 20 28 | 70 6f 69 6e 74 29 29 20 |(* 100 (|point)) |
|00005d70| 28 70 6f 69 6e 74 2d 6d | 61 78 29 29 29 29 0a 0a |(point-m|ax))))..|
|00005d80| 28 64 65 66 75 6e 20 75 | 6e 73 65 74 2d 6d 61 72 |(defun u|nset-mar|
|00005d90| 6b 2d 63 6f 6d 6d 61 6e | 64 20 6e 69 6c 0a 20 20 |k-comman|d nil. |
|00005da0| 22 52 65 6d 6f 76 65 20 | 63 75 72 72 65 6e 74 20 |"Remove |current |
|00005db0| 6d 61 72 6b 2e 22 0a 20 | 20 28 69 6e 74 65 72 61 |mark.". | (intera|
|00005dc0| 63 74 69 76 65 29 0a 20 | 20 28 73 65 74 71 20 6d |ctive). | (setq m|
|00005dd0| 61 72 6b 2d 72 69 6e 67 | 20 6e 69 6c 29 0a 20 20 |ark-ring| nil). |
|00005de0| 28 73 65 74 2d 6d 61 72 | 6b 20 6e 69 6c 29 0a 20 |(set-mar|k nil). |
|00005df0| 20 28 6d 65 73 73 61 67 | 65 20 22 4d 61 72 6b 20 | (messag|e "Mark |
|00005e00| 75 6e 73 65 74 2e 22 29 | 29 0a 0a 28 64 65 66 75 |unset.")|)..(defu|
|00005e10| 6e 20 71 75 69 74 2d 65 | 6d 61 63 73 2d 6e 6f 77 |n quit-e|macs-now|
|00005e20| 20 6e 69 6c 0a 20 20 22 | 47 6f 20 61 77 61 79 2e | nil. "|Go away.|
|00005e30| 20 20 4e 6f 77 2e 20 20 | 4a 75 73 74 20 20 67 20 | Now. |Just g |
|00005e40| 6f 20 20 61 20 77 20 61 | 20 79 2e 22 0a 20 20 28 |o a w a| y.". (|
|00005e50| 69 6e 74 65 72 61 63 74 | 69 76 65 29 0a 20 20 28 |interact|ive). (|
|00005e60| 6b 69 6c 6c 2d 65 6d 61 | 63 73 20 74 29 29 0a 0a |kill-ema|cs t))..|
|00005e70| 0a 3b 3b 3b 0a 3b 3b 3b | 20 20 41 75 74 6f 2d 69 |.;;;.;;;| Auto-i|
|00005e80| 6e 73 65 72 74 0a 3b 3b | 3b 0a 28 64 65 66 75 6e |nsert.;;|;.(defun|
|00005e90| 20 69 6e 73 65 72 74 2d | 65 73 63 61 70 65 20 6e | insert-|escape n|
|00005ea0| 69 6c 0a 20 20 22 49 6e | 73 65 72 74 73 20 61 6e |il. "In|serts an|
|00005eb0| 20 65 73 63 61 70 65 20 | 63 68 61 72 61 63 74 65 | escape |characte|
|00005ec0| 72 2c 20 61 6e 64 20 73 | 6f 20 62 65 63 6f 6d 65 |r, and s|o become|
|00005ed0| 73 20 74 68 65 20 65 73 | 63 61 70 65 2d 6b 65 79 |s the es|cape-key|
|00005ee0| 20 61 6c 69 61 73 2e 22 | 0a 20 20 28 69 6e 74 65 | alias."|. (inte|
|00005ef0| 72 61 63 74 69 76 65 29 | 0a 20 20 28 69 6e 73 65 |ractive)|. (inse|
|00005f00| 72 74 20 22 5c 65 22 29 | 29 0a 0a 28 64 65 66 75 |rt "\e")|)..(defu|
|00005f10| 6e 20 69 6e 73 65 72 74 | 2d 66 6f 72 6d 66 65 65 |n insert|-formfee|
|00005f20| 64 20 6e 69 6c 0a 20 20 | 22 49 6e 73 65 72 74 73 |d nil. |"Inserts|
|00005f30| 20 61 20 66 6f 72 6d 66 | 65 65 64 20 63 68 61 72 | a formf|eed char|
|00005f40| 61 63 74 65 72 2e 22 0a | 20 20 28 69 6e 74 65 72 |acter.".| (inter|
|00005f50| 61 63 74 69 76 65 29 0a | 20 20 28 69 6e 73 65 72 |active).| (inser|
|00005f60| 74 20 22 5c 43 2d 4c 22 | 29 29 0a 0a 0a 3b 3b 3b |t "\C-L"|))...;;;|
|00005f70| 0a 3b 3b 3b 20 20 44 65 | 66 69 6e 65 20 6b 65 79 |.;;; De|fine key|
|00005f80| 0a 3b 3b 3b 0a 28 64 65 | 66 75 6e 20 65 6e 64 2d |.;;;.(de|fun end-|
|00005f90| 64 65 66 69 6e 65 2d 6d | 61 63 72 6f 2d 6b 65 79 |define-m|acro-key|
|00005fa0| 20 6e 69 6c 0a 20 20 22 | 45 6e 64 73 20 74 68 65 | nil. "|Ends the|
|00005fb0| 20 63 75 72 72 65 6e 74 | 20 6d 61 63 72 6f 20 64 | current| macro d|
|00005fc0| 65 66 69 6e 69 74 69 6f | 6e 22 0a 20 20 28 69 6e |efinitio|n". (in|
|00005fd0| 74 65 72 61 63 74 69 76 | 65 29 0a 20 20 28 65 6e |teractiv|e). (en|
|00005fe0| 64 2d 6b 62 64 2d 6d 61 | 63 72 6f 20 6e 69 6c 29 |d-kbd-ma|cro nil)|
|00005ff0| 0a 20 20 28 67 6c 6f 62 | 61 6c 2d 73 65 74 2d 6b |. (glob|al-set-k|
|00006000| 65 79 20 64 65 66 69 6e | 69 6e 67 2d 6b 65 79 20 |ey defin|ing-key |
|00006010| 6c 61 73 74 2d 6b 62 64 | 2d 6d 61 63 72 6f 29 0a |last-kbd|-macro).|
|00006020| 20 20 28 67 6c 6f 62 61 | 6c 2d 73 65 74 2d 6b 65 | (globa|l-set-ke|
|00006030| 79 20 22 5c 65 4f 4d 22 | 20 27 6e 65 77 6c 69 6e |y "\eOM"| 'newlin|
|00006040| 65 29 29 0a 0a 28 64 65 | 66 75 6e 20 64 65 66 69 |e))..(de|fun defi|
|00006050| 6e 65 2d 6d 61 63 72 6f | 2d 6b 65 79 20 28 6b 65 |ne-macro|-key (ke|
|00006060| 79 29 0a 20 20 22 42 69 | 6e 64 20 61 20 73 65 74 |y). "Bi|nd a set|
|00006070| 20 6f 66 20 6b 65 79 73 | 74 72 6f 6b 65 73 20 74 | of keys|trokes t|
|00006080| 6f 20 61 20 73 69 6e 67 | 6c 65 20 6b 65 79 2e 22 |o a sing|le key."|
|00006090| 0a 20 20 28 69 6e 74 65 | 72 61 63 74 69 76 65 20 |. (inte|ractive |
|000060a0| 22 6b 4b 65 79 20 74 6f | 20 64 65 66 69 6e 65 3a |"kKey to| define:|
|000060b0| 20 22 29 0a 20 20 28 73 | 65 74 71 20 64 65 66 69 | "). (s|etq defi|
|000060c0| 6e 69 6e 67 2d 6b 65 79 | 20 6b 65 79 29 0a 20 20 |ning-key| key). |
|000060d0| 28 67 6c 6f 62 61 6c 2d | 73 65 74 2d 6b 65 79 20 |(global-|set-key |
|000060e0| 22 5c 65 4f 4d 22 20 27 | 65 6e 64 2d 64 65 66 69 |"\eOM" '|end-defi|
|000060f0| 6e 65 2d 6d 61 63 72 6f | 2d 6b 65 79 29 0a 20 20 |ne-macro|-key). |
|00006100| 28 73 74 61 72 74 2d 6b | 62 64 2d 6d 61 63 72 6f |(start-k|bd-macro|
|00006110| 20 6e 69 6c 29 29 0a 0a | 0a 3b 3b 3b 0a 3b 3b 3b | nil))..|.;;;.;;;|
|00006120| 20 20 43 6f 75 6e 74 65 | 72 0a 3b 3b 3b 0a 28 64 | Counte|r.;;;.(d|
|00006130| 65 66 75 6e 20 73 65 74 | 2d 63 6f 75 6e 74 65 72 |efun set|-counter|
|00006140| 20 6e 69 6c 0a 20 20 22 | 53 65 74 20 74 68 65 20 | nil. "|Set the |
|00006150| 69 6e 74 65 72 6e 61 6c | 20 63 6f 75 6e 74 65 72 |internal| counter|
|00006160| 20 74 6f 20 74 68 65 20 | 72 65 70 65 61 74 20 63 | to the |repeat c|
|00006170| 6f 75 6e 74 2e 22 0a 20 | 20 28 69 6e 74 65 72 61 |ount.". | (intera|
|00006180| 63 74 69 76 65 29 0a 20 | 20 28 6d 65 73 73 61 67 |ctive). | (messag|
|00006190| 65 20 22 43 6f 75 6e 74 | 65 72 20 73 65 74 20 74 |e "Count|er set t|
|000061a0| 6f 20 25 64 2e 22 0a 09 | 20 20 20 28 73 65 74 71 |o %d."..| (setq|
|000061b0| 20 74 70 75 2d 63 6f 75 | 6e 74 65 72 20 63 75 72 | tpu-cou|nter cur|
|000061c0| 72 65 6e 74 2d 70 72 65 | 66 69 78 2d 61 72 67 29 |rent-pre|fix-arg)|
|000061d0| 29 29 0a 0a 28 64 65 66 | 75 6e 20 72 65 67 69 6f |))..(def|un regio|
|000061e0| 6e 2d 6c 65 6e 67 74 68 | 2d 74 6f 2d 63 6f 75 6e |n-length|-to-coun|
|000061f0| 74 65 72 20 6e 69 6c 0a | 20 20 22 53 65 74 73 20 |ter nil.| "Sets |
|00006200| 74 68 65 20 63 6f 75 6e | 74 65 72 20 74 6f 20 74 |the coun|ter to t|
|00006210| 68 65 20 6c 65 6e 67 74 | 68 20 6f 66 20 74 68 65 |he lengt|h of the|
|00006220| 20 72 65 67 69 6f 6e 2e | 22 0a 20 20 28 69 6e 74 | region.|". (int|
|00006230| 65 72 61 63 74 69 76 65 | 29 0a 20 20 28 63 6f 6e |eractive|). (con|
|00006240| 64 20 28 28 6d 61 72 6b | 29 0a 09 20 28 6d 65 73 |d ((mark|).. (mes|
|00006250| 73 61 67 65 20 22 43 6f | 75 6e 74 65 72 20 73 65 |sage "Co|unter se|
|00006260| 74 20 74 6f 20 25 64 2e | 22 0a 09 09 20 20 28 73 |t to %d.|"... (s|
|00006270| 65 74 71 20 74 70 75 2d | 63 6f 75 6e 74 65 72 0a |etq tpu-|counter.|
|00006280| 09 09 09 28 2d 20 28 6d | 61 78 20 28 70 6f 69 6e |...(- (m|ax (poin|
|00006290| 74 29 20 28 6d 61 72 6b | 29 29 20 28 6d 69 6e 20 |t) (mark|)) (min |
|000062a0| 28 70 6f 69 6e 74 29 20 | 28 6d 61 72 6b 29 29 29 |(point) |(mark)))|
|000062b0| 29 29 29 0a 09 28 74 20 | 28 6d 65 73 73 61 67 65 |)))..(t |(message|
|000062c0| 20 22 54 68 65 20 6d 61 | 72 6b 20 69 73 20 6e 6f | "The ma|rk is no|
|000062d0| 74 20 73 65 74 20 6e 6f | 77 3b 20 6e 6f 20 73 65 |t set no|w; no se|
|000062e0| 6c 65 63 74 20 72 61 6e | 67 65 20 69 73 20 61 63 |lect ran|ge is ac|
|000062f0| 74 69 76 65 2e 22 29 29 | 29 29 0a 0a 28 64 65 66 |tive."))|))..(def|
|00006300| 75 6e 20 64 65 63 72 2d | 63 6f 75 6e 74 65 72 20 |un decr-|counter |
|00006310| 6e 69 6c 0a 20 20 22 44 | 65 63 72 65 6d 65 6e 74 |nil. "D|ecrement|
|00006320| 20 74 68 65 20 69 6e 74 | 65 72 6e 61 6c 20 63 6f | the int|ernal co|
|00006330| 75 6e 74 65 72 20 62 79 | 20 74 68 65 20 72 65 70 |unter by| the rep|
|00006340| 65 61 74 20 63 6f 75 6e | 74 2c 0a 20 6f 72 20 62 |eat coun|t,. or b|
|00006350| 79 20 6f 6e 65 20 69 66 | 20 6e 6f 20 72 65 70 65 |y one if| no repe|
|00006360| 61 74 20 63 6f 75 6e 74 | 20 69 73 20 64 65 66 69 |at count| is defi|
|00006370| 6e 65 64 2e 22 0a 20 28 | 69 6e 74 65 72 61 63 74 |ned.". (|interact|
|00006380| 69 76 65 29 0a 20 28 6d | 65 73 73 61 67 65 20 22 |ive). (m|essage "|
|00006390| 43 6f 75 6e 74 65 72 20 | 73 65 74 20 74 6f 20 25 |Counter |set to %|
|000063a0| 64 2e 22 0a 09 20 20 28 | 73 65 74 71 20 74 70 75 |d.".. (|setq tpu|
|000063b0| 2d 63 6f 75 6e 74 65 72 | 20 28 2d 20 74 70 75 2d |-counter| (- tpu-|
|000063c0| 63 6f 75 6e 74 65 72 20 | 28 6f 72 20 63 75 72 72 |counter |(or curr|
|000063d0| 65 6e 74 2d 70 72 65 66 | 69 78 2d 61 72 67 20 31 |ent-pref|ix-arg 1|
|000063e0| 29 29 29 29 29 0a 0a 28 | 64 65 66 75 6e 20 69 6e |)))))..(|defun in|
|000063f0| 63 72 2d 63 6f 75 6e 74 | 65 72 20 6e 69 6c 0a 20 |cr-count|er nil. |
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.