home *** CD-ROM | disk | FTP | other *** search
/ Fresh Fish 6 / FreshFish_September1994.bin / bbs / gnu / emacs-18.59-src.lha / GNU / src / amiga / emacs-18.59 / lisp / register.elc < prev    next >
Emacs Compiled Lisp  |  1991-01-10  |  4.0 KB

view JSON data     |     view as text     |     open on a Mac     |     open on a PC

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

ConfidenceProgramDetectionMatch TypeSupport
1% dexvert Emacs Compiled Lisp (other/emacsCompiledLisp) magic Unsupported
100% file Emacs v18 byte-compiled Lisp data default
99% file data default
100% gt2 Kopftext: '(defvar register-alist nil ' default (weak)
100% detectItEasy Format: plain text[LF] default (weak)



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 0a 28 64 65 66 76 61 72 | 20 72 65 67 69 73 74 65 |.(defvar| registe|
|00000010| 72 2d 61 6c 69 73 74 20 | 6e 69 6c 20 22 5c 0a 41 |r-alist |nil "\.A|
|00000020| 6c 69 73 74 20 6f 66 20 | 65 6c 65 6d 65 6e 74 73 |list of |elements|
|00000030| 20 28 4e 41 4d 45 20 2e | 20 43 4f 4e 54 45 4e 54 | (NAME .| CONTENT|
|00000040| 53 29 2c 20 6f 6e 65 20 | 66 6f 72 20 65 61 63 68 |S), one |for each|
|00000050| 20 45 6d 61 63 73 20 72 | 65 67 69 73 74 65 72 2e | Emacs r|egister.|
|00000060| 0a 4e 41 4d 45 20 69 73 | 20 61 20 63 68 61 72 61 |.NAME is| a chara|
|00000070| 63 74 65 72 20 28 61 20 | 6e 75 6d 62 65 72 29 2e |cter (a |number).|
|00000080| 20 20 43 4f 4e 54 45 4e | 54 53 20 69 73 20 61 20 | CONTEN|TS is a |
|00000090| 73 74 72 69 6e 67 2c 20 | 6e 75 6d 62 65 72 2c 0a |string, |number,.|
|000000a0| 6d 61 72 6b 20 6f 72 20 | 6c 69 73 74 2e 20 20 41 |mark or |list. A|
|000000b0| 20 6c 69 73 74 20 72 65 | 70 72 65 73 65 6e 74 73 | list re|presents|
|000000c0| 20 61 20 72 65 63 74 61 | 6e 67 6c 65 3b 20 69 74 | a recta|ngle; it|
|000000d0| 73 20 65 6c 65 6d 65 6e | 74 73 20 61 72 65 20 73 |s elemen|ts are s|
|000000e0| 74 72 69 6e 67 73 2e 22 | 29 0a 0a 28 64 65 66 75 |trings."|)..(defu|
|000000f0| 6e 20 67 65 74 2d 72 65 | 67 69 73 74 65 72 20 28 |n get-re|gister (|
|00000100| 63 68 61 72 29 20 22 5c | 0a 52 65 74 75 72 6e 20 |char) "\|.Return |
|00000110| 63 6f 6e 74 65 6e 74 73 | 20 6f 66 20 45 6d 61 63 |contents| of Emac|
|00000120| 73 20 72 65 67 69 73 74 | 65 72 20 6e 61 6d 65 64 |s regist|er named|
|00000130| 20 43 48 41 52 2c 20 6f | 72 20 6e 69 6c 20 69 66 | CHAR, o|r nil if|
|00000140| 20 6e 6f 6e 65 2e 22 20 | 28 62 79 74 65 2d 63 6f | none." |(byte-co|
|00000150| 64 65 20 22 c2 08 09 5c | 22 41 87 22 20 5b 63 68 |de "...\|"A." [ch|
|00000160| 61 72 20 72 65 67 69 73 | 74 65 72 2d 61 6c 69 73 |ar regis|ter-alis|
|00000170| 74 20 61 73 73 71 5d 20 | 33 29 29 0a 0a 28 64 65 |t assq] |3))..(de|
|00000180| 66 75 6e 20 73 65 74 2d | 72 65 67 69 73 74 65 72 |fun set-|register|
|00000190| 20 28 63 68 61 72 20 76 | 61 6c 75 65 29 20 22 5c | (char v|alue) "\|
|000001a0| 0a 53 65 74 20 63 6f 6e | 74 65 6e 74 73 20 6f 66 |.Set con|tents of|
|000001b0| 20 45 6d 61 63 73 20 72 | 65 67 69 73 74 65 72 20 | Emacs r|egister |
|000001c0| 6e 61 6d 65 64 20 43 48 | 41 52 20 74 6f 20 56 41 |named CH|AR to VA|
|000001d0| 4c 55 45 2e 22 20 28 62 | 79 74 65 2d 63 6f 64 65 |LUE." (b|yte-code|
|000001e0| 20 22 c4 09 0a 5c 22 18 | 08 83 10 00 c5 08 0b 5c | "...\".|.......\|
|000001f0| 22 82 1b 00 09 0b 42 89 | 10 88 08 0a 42 89 12 29 |".....B.|....B..)|
|00000200| 87 22 20 5b 61 65 6c 74 | 20 63 68 61 72 20 72 65 |." [aelt| char re|
|00000210| 67 69 73 74 65 72 2d 61 | 6c 69 73 74 20 76 61 6c |gister-a|list val|
|00000220| 75 65 20 61 73 73 71 20 | 73 65 74 63 64 72 5d 20 |ue assq |setcdr] |
|00000230| 34 29 29 0a 0a 28 64 65 | 66 75 6e 20 70 6f 69 6e |4))..(de|fun poin|
|00000240| 74 2d 74 6f 2d 72 65 67 | 69 73 74 65 72 20 28 63 |t-to-reg|ister (c|
|00000250| 68 61 72 29 20 22 5c 0a | 53 74 6f 72 65 20 63 75 |har) "\.|Store cu|
|00000260| 72 72 65 6e 74 20 6c 6f | 63 61 74 69 6f 6e 20 6f |rrent lo|cation o|
|00000270| 66 20 70 6f 69 6e 74 20 | 69 6e 20 61 20 72 65 67 |f point |in a reg|
|00000280| 69 73 74 65 72 2e 0a 41 | 72 67 75 6d 65 6e 74 20 |ister..A|rgument |
|00000290| 69 73 20 61 20 63 68 61 | 72 61 63 74 65 72 2c 20 |is a cha|racter, |
|000002a0| 6e 61 6d 69 6e 67 20 74 | 68 65 20 72 65 67 69 73 |naming t|he regis|
|000002b0| 74 65 72 2e 22 20 28 69 | 6e 74 65 72 61 63 74 69 |ter." (i|nteracti|
|000002c0| 76 65 20 22 63 50 6f 69 | 6e 74 20 74 6f 20 72 65 |ve "cPoi|nt to re|
|000002d0| 67 69 73 74 65 72 3a 20 | 22 29 20 28 62 79 74 65 |gister: |") (byte|
|000002e0| 2d 63 6f 64 65 20 22 c1 | 88 c2 08 c3 20 5c 22 87 |-code ".|.... \".|
|000002f0| 22 20 5b 63 68 61 72 20 | 6e 69 6c 20 73 65 74 2d |" [char |nil set-|
|00000300| 72 65 67 69 73 74 65 72 | 20 70 6f 69 6e 74 2d 6d |register| point-m|
|00000310| 61 72 6b 65 72 5d 20 34 | 29 29 0a 0a 28 64 65 66 |arker] 4|))..(def|
|00000320| 75 6e 20 72 65 67 69 73 | 74 65 72 2d 74 6f 2d 70 |un regis|ter-to-p|
|00000330| 6f 69 6e 74 20 28 63 68 | 61 72 29 20 22 5c 0a 4d |oint (ch|ar) "\.M|
|00000340| 6f 76 65 20 70 6f 69 6e | 74 20 74 6f 20 6c 6f 63 |ove poin|t to loc|
|00000350| 61 74 69 6f 6e 20 73 74 | 6f 72 65 64 20 69 6e 20 |ation st|ored in |
|00000360| 61 20 72 65 67 69 73 74 | 65 72 2e 0a 41 72 67 75 |a regist|er..Argu|
|00000370| 6d 65 6e 74 20 69 73 20 | 61 20 63 68 61 72 61 63 |ment is |a charac|
|00000380| 74 65 72 2c 20 6e 61 6d | 69 6e 67 20 74 68 65 20 |ter, nam|ing the |
|00000390| 72 65 67 69 73 74 65 72 | 2e 22 20 28 69 6e 74 65 |register|." (inte|
|000003a0| 72 61 63 74 69 76 65 20 | 22 63 52 65 67 69 73 74 |ractive |"cRegist|
|000003b0| 65 72 20 74 6f 20 70 6f | 69 6e 74 3a 20 22 29 20 |er to po|int: ") |
|000003c0| 28 62 79 74 65 2d 63 6f | 64 65 20 22 c2 88 c3 09 |(byte-co|de "....|
|000003d0| 21 18 c4 08 21 83 17 00 | c5 c6 08 21 21 88 08 62 |!...!...|...!!..b|
|000003e0| 82 1a 00 c7 c8 21 29 87 | 22 20 5b 76 61 6c 20 63 |.....!).|" [val c|
|000003f0| 68 61 72 20 6e 69 6c 20 | 67 65 74 2d 72 65 67 69 |har nil |get-regi|
|00000400| 73 74 65 72 20 6d 61 72 | 6b 65 72 70 20 73 77 69 |ster mar|kerp swi|
|00000410| 74 63 68 2d 74 6f 2d 62 | 75 66 66 65 72 20 6d 61 |tch-to-b|uffer ma|
|00000420| 72 6b 65 72 2d 62 75 66 | 66 65 72 20 65 72 72 6f |rker-buf|fer erro|
|00000430| 72 20 22 52 65 67 69 73 | 74 65 72 20 64 6f 65 73 |r "Regis|ter does|
|00000440| 6e 27 74 20 63 6f 6e 74 | 61 69 6e 20 61 20 62 75 |n't cont|ain a bu|
|00000450| 66 66 65 72 20 70 6f 73 | 69 74 69 6f 6e 22 5d 20 |ffer pos|ition"] |
|00000460| 36 29 29 0a 0a 28 64 65 | 66 75 6e 20 76 69 65 77 |6))..(de|fun view|
|00000470| 2d 72 65 67 69 73 74 65 | 72 20 28 63 68 61 72 29 |-registe|r (char)|
|00000480| 20 22 5c 0a 44 69 73 70 | 6c 61 79 20 77 68 61 74 | "\.Disp|lay what|
|00000490| 20 69 73 20 63 6f 6e 74 | 61 69 6e 65 64 20 69 6e | is cont|ained in|
|000004a0| 20 72 65 67 69 73 74 65 | 72 20 6e 61 6d 65 64 20 | registe|r named |
|000004b0| 52 45 47 49 53 54 45 52 | 2e 0a 52 45 47 49 53 54 |REGISTER|..REGIST|
|000004c0| 45 52 20 69 73 20 61 20 | 63 68 61 72 61 63 74 65 |ER is a |characte|
|000004d0| 72 2e 22 20 28 69 6e 74 | 65 72 61 63 74 69 76 65 |r." (int|eractive|
|000004e0| 20 22 63 56 69 65 77 20 | 72 65 67 69 73 74 65 72 | "cView |register|
|000004f0| 3a 20 22 29 20 28 62 79 | 74 65 2d 63 6f 64 65 20 |: ") (by|te-code |
|00000500| 22 c2 88 c3 09 21 18 08 | 3f 83 14 00 c4 c5 c6 09 |"....!..|?.......|
|00000510| 21 5c 22 82 76 00 c7 90 | c8 c9 21 88 c8 c6 09 21 |!\".v...|..!....!|
|00000520| 21 88 c8 ca 21 88 cb 08 | 21 83 30 00 c8 08 21 82 |!...!...|!.0...!.|
|00000530| 75 00 cc 08 21 83 4e 00 | c8 cd 21 88 c8 ce cf 08 |u...!.N.|..!.....|
|00000540| 21 21 21 88 c8 d0 21 88 | c8 d1 08 5c 5c 21 82 75 |!!!...!.|...\\!.u|
|00000550| 00 08 3a 83 6e 00 c8 d2 | 21 88 08 85 6b 00 c8 08 |..:.n...|!...k...|
|00000560| 40 21 88 d3 20 88 08 41 | 89 10 88 82 57 00 82 75 |@!.. ..A|....W..u|
|00000570| 00 c8 d4 21 88 c8 08 21 | 91 29 87 22 20 5b 76 61 |...!...!|.)." [va|
|00000580| 6c 20 63 68 61 72 20 6e | 69 6c 20 67 65 74 2d 72 |l char n|il get-r|
|00000590| 65 67 69 73 74 65 72 20 | 6d 65 73 73 61 67 65 20 |egister |message |
|000005a0| 22 52 65 67 69 73 74 65 | 72 20 25 73 20 69 73 20 |"Registe|r %s is |
|000005b0| 65 6d 70 74 79 22 20 73 | 69 6e 67 6c 65 2d 6b 65 |empty" s|ingle-ke|
|000005c0| 79 2d 64 65 73 63 72 69 | 70 74 69 6f 6e 20 22 2a |y-descri|ption "*|
|000005d0| 4f 75 74 70 75 74 2a 22 | 20 70 72 69 6e 63 20 22 |Output*"| princ "|
|000005e0| 52 65 67 69 73 74 65 72 | 20 22 20 22 20 63 6f 6e |Register| " " con|
|000005f0| 74 61 69 6e 73 20 22 20 | 69 6e 74 65 67 65 72 70 |tains " |integerp|
|00000600| 20 6d 61 72 6b 65 72 70 | 20 22 61 20 62 75 66 66 | markerp| "a buff|
|00000610| 65 72 20 70 6f 73 69 74 | 69 6f 6e 3a 0a 62 75 66 |er posit|ion:.buf|
|00000620| 66 65 72 20 22 20 62 75 | 66 66 65 72 2d 6e 61 6d |fer " bu|ffer-nam|
|00000630| 65 20 6d 61 72 6b 65 72 | 2d 62 75 66 66 65 72 20 |e marker|-buffer |
|00000640| 22 2c 20 70 6f 73 69 74 | 69 6f 6e 20 22 20 30 20 |", posit|ion " 0 |
|00000650| 22 74 68 65 20 72 65 63 | 74 61 6e 67 6c 65 3a 0a |"the rec|tangle:.|
|00000660| 22 20 74 65 72 70 72 69 | 20 22 74 68 65 20 73 74 |" terpri| "the st|
|00000670| 72 69 6e 67 3a 0a 22 5d | 20 32 33 29 29 0a 0a 28 |ring:."]| 23))..(|
|00000680| 64 65 66 75 6e 20 69 6e | 73 65 72 74 2d 72 65 67 |defun in|sert-reg|
|00000690| 69 73 74 65 72 20 28 63 | 68 61 72 20 26 6f 70 74 |ister (c|har &opt|
|000006a0| 69 6f 6e 61 6c 20 61 72 | 67 29 20 22 5c 0a 49 6e |ional ar|g) "\.In|
|000006b0| 73 65 72 74 20 63 6f 6e | 74 65 6e 74 73 20 6f 66 |sert con|tents of|
|000006c0| 20 72 65 67 69 73 74 65 | 72 20 52 45 47 2e 20 20 | registe|r REG. |
|000006d0| 52 45 47 20 69 73 20 61 | 20 63 68 61 72 61 63 74 |REG is a| charact|
|000006e0| 65 72 2e 0a 4e 6f 72 6d | 61 6c 6c 79 20 70 75 74 |er..Norm|ally put|
|000006f0| 73 20 70 6f 69 6e 74 20 | 62 65 66 6f 72 65 20 61 |s point |before a|
|00000700| 6e 64 20 6d 61 72 6b 20 | 61 66 74 65 72 20 74 68 |nd mark |after th|
|00000710| 65 20 69 6e 73 65 72 74 | 65 64 20 74 65 78 74 2e |e insert|ed text.|
|00000720| 0a 49 66 20 6f 70 74 69 | 6f 6e 61 6c 20 73 65 63 |.If opti|onal sec|
|00000730| 6f 6e 64 20 61 72 67 20 | 69 73 20 6e 6f 6e 2d 6e |ond arg |is non-n|
|00000740| 69 6c 2c 20 70 75 74 73 | 20 6d 61 72 6b 20 62 65 |il, puts| mark be|
|00000750| 66 6f 72 65 20 61 6e 64 | 20 70 6f 69 6e 74 20 61 |fore and| point a|
|00000760| 66 74 65 72 2e 0a 49 6e | 74 65 72 61 63 74 69 76 |fter..In|teractiv|
|00000770| 65 6c 79 2c 20 73 65 63 | 6f 6e 64 20 61 72 67 20 |ely, sec|ond arg |
|00000780| 69 73 20 6e 6f 6e 2d 6e | 69 6c 20 69 66 20 70 72 |is non-n|il if pr|
|00000790| 65 66 69 78 20 61 72 67 | 20 69 73 20 73 75 70 70 |efix arg| is supp|
|000007a0| 6c 69 65 64 2e 22 20 28 | 69 6e 74 65 72 61 63 74 |lied." (|interact|
|000007b0| 69 76 65 20 22 63 49 6e | 73 65 72 74 20 72 65 67 |ive "cIn|sert reg|
|000007c0| 69 73 74 65 72 3a 20 0a | 50 22 29 20 28 62 79 74 |ister: .|P") (byt|
|000007d0| 65 2d 63 6f 64 65 20 22 | c3 88 c4 20 88 c5 09 21 |e-code "|... ...!|
|000007e0| 18 08 3a 83 14 00 c6 08 | 21 82 36 00 08 3b 83 1e |..:.....|!.6..;..|
|000007f0| 00 08 63 82 36 00 c7 08 | 21 86 27 00 c8 08 21 83 |..c.6...|!.'...!.|
|00000800| 33 00 c9 ca 08 5c 5c 70 | 5c 22 82 36 00 cb cc 21 |3....\\p|\".6...!|
|00000810| 29 88 0a 86 3e 00 cd 20 | 87 22 20 5b 76 61 6c 20 |)...>.. |." [val |
|00000820| 63 68 61 72 20 61 72 67 | 20 6e 69 6c 20 70 75 73 |char arg| nil pus|
|00000830| 68 2d 6d 61 72 6b 20 67 | 65 74 2d 72 65 67 69 73 |h-mark g|et-regis|
|00000840| 74 65 72 20 69 6e 73 65 | 72 74 2d 72 65 63 74 61 |ter inse|rt-recta|
|00000850| 6e 67 6c 65 20 69 6e 74 | 65 67 65 72 70 20 6d 61 |ngle int|egerp ma|
|00000860| 72 6b 65 72 70 20 70 72 | 69 6e 63 20 30 20 65 72 |rkerp pr|inc 0 er|
|00000870| 72 6f 72 20 22 52 65 67 | 69 73 74 65 72 20 64 6f |ror "Reg|ister do|
|00000880| 65 73 20 6e 6f 74 20 63 | 6f 6e 74 61 69 6e 20 74 |es not c|ontain t|
|00000890| 65 78 74 22 20 65 78 63 | 68 61 6e 67 65 2d 70 6f |ext" exc|hange-po|
|000008a0| 69 6e 74 2d 61 6e 64 2d | 6d 61 72 6b 5d 20 39 29 |int-and-|mark] 9)|
|000008b0| 29 0a 0a 28 64 65 66 75 | 6e 20 63 6f 70 79 2d 74 |)..(defu|n copy-t|
|000008c0| 6f 2d 72 65 67 69 73 74 | 65 72 20 28 63 68 61 72 |o-regist|er (char|
|000008d0| 20 73 74 61 72 74 20 65 | 6e 64 20 26 6f 70 74 69 | start e|nd &opti|
|000008e0| 6f 6e 61 6c 20 64 65 6c | 65 74 65 2d 66 6c 61 67 |onal del|ete-flag|
|000008f0| 29 20 22 5c 0a 43 6f 70 | 79 20 72 65 67 69 6f 6e |) "\.Cop|y region|
|00000900| 20 69 6e 74 6f 20 72 65 | 67 69 73 74 65 72 20 52 | into re|gister R|
|00000910| 45 47 2e 0a 57 69 74 68 | 20 70 72 65 66 69 78 20 |EG..With| prefix |
|00000920| 61 72 67 2c 20 64 65 6c | 65 74 65 20 61 73 20 77 |arg, del|ete as w|
|00000930| 65 6c 6c 2e 0a 43 61 6c | 6c 65 64 20 66 72 6f 6d |ell..Cal|led from|
|00000940| 20 70 72 6f 67 72 61 6d | 2c 20 74 61 6b 65 73 20 | program|, takes |
|00000950| 66 6f 75 72 20 61 72 67 | 73 3a 0a 52 45 47 2c 20 |four arg|s:.REG, |
|00000960| 53 54 41 52 54 2c 20 45 | 4e 44 20 61 6e 64 20 44 |START, E|ND and D|
|00000970| 45 4c 45 54 45 2d 46 4c | 41 47 2e 0a 53 54 41 52 |ELETE-FL|AG..STAR|
|00000980| 54 20 61 6e 64 20 45 4e | 44 20 61 72 65 20 62 75 |T and EN|D are bu|
|00000990| 66 66 65 72 20 70 6f 73 | 69 74 69 6f 6e 73 20 69 |ffer pos|itions i|
|000009a0| 6e 64 69 63 61 74 69 6e | 67 20 77 68 61 74 20 74 |ndicatin|g what t|
|000009b0| 6f 20 63 6f 70 79 2e 22 | 20 28 69 6e 74 65 72 61 |o copy."| (intera|
|000009c0| 63 74 69 76 65 20 22 63 | 43 6f 70 79 20 74 6f 20 |ctive "c|Copy to |
|000009d0| 72 65 67 69 73 74 65 72 | 3a 20 0a 72 0a 50 22 29 |register|: .r.P")|
|000009e0| 20 28 62 79 74 65 2d 63 | 6f 64 65 20 22 c4 88 c5 | (byte-c|ode "...|
|000009f0| 08 c6 09 0a 5c 22 5c 22 | 88 0b 85 12 00 c7 09 0a |....\"\"|........|
|00000a00| 5c 22 87 22 20 5b 63 68 | 61 72 20 73 74 61 72 74 |\"." [ch|ar start|
|00000a10| 20 65 6e 64 20 64 65 6c | 65 74 65 2d 66 6c 61 67 | end del|ete-flag|
|00000a20| 20 6e 69 6c 20 73 65 74 | 2d 72 65 67 69 73 74 65 | nil set|-registe|
|00000a30| 72 20 62 75 66 66 65 72 | 2d 73 75 62 73 74 72 69 |r buffer|-substri|
|00000a40| 6e 67 20 64 65 6c 65 74 | 65 2d 72 65 67 69 6f 6e |ng delet|e-region|
|00000a50| 5d 20 35 29 29 0a 0a 28 | 64 65 66 75 6e 20 61 70 |] 5))..(|defun ap|
|00000a60| 70 65 6e 64 2d 74 6f 2d | 72 65 67 69 73 74 65 72 |pend-to-|register|
|00000a70| 20 28 63 68 61 72 20 73 | 74 61 72 74 20 65 6e 64 | (char s|tart end|
|00000a80| 20 26 6f 70 74 69 6f 6e | 61 6c 20 64 65 6c 65 74 | &option|al delet|
|00000a90| 65 2d 66 6c 61 67 29 20 | 22 5c 0a 41 70 70 65 6e |e-flag) |"\.Appen|
|00000aa0| 64 20 72 65 67 69 6f 6e | 20 74 6f 20 74 65 78 74 |d region| to text|
|00000ab0| 20 69 6e 20 72 65 67 69 | 73 74 65 72 20 52 45 47 | in regi|ster REG|
|00000ac0| 2e 0a 57 69 74 68 20 70 | 72 65 66 69 78 20 61 72 |..With p|refix ar|
|00000ad0| 67 2c 20 64 65 6c 65 74 | 65 20 61 73 20 77 65 6c |g, delet|e as wel|
|00000ae0| 6c 2e 0a 43 61 6c 6c 65 | 64 20 66 72 6f 6d 20 70 |l..Calle|d from p|
|00000af0| 72 6f 67 72 61 6d 2c 20 | 74 61 6b 65 73 20 66 6f |rogram, |takes fo|
|00000b00| 75 72 20 61 72 67 73 3a | 0a 52 45 47 2c 20 53 54 |ur args:|.REG, ST|
|00000b10| 41 52 54 2c 20 45 4e 44 | 20 61 6e 64 20 44 45 4c |ART, END| and DEL|
|00000b20| 45 54 45 2d 46 4c 41 47 | 2e 0a 53 54 41 52 54 20 |ETE-FLAG|..START |
|00000b30| 61 6e 64 20 45 4e 44 20 | 61 72 65 20 62 75 66 66 |and END |are buff|
|00000b40| 65 72 20 70 6f 73 69 74 | 69 6f 6e 73 20 69 6e 64 |er posit|ions ind|
|00000b50| 69 63 61 74 69 6e 67 20 | 77 68 61 74 20 74 6f 20 |icating |what to |
|00000b60| 61 70 70 65 6e 64 2e 22 | 20 28 69 6e 74 65 72 61 |append."| (intera|
|00000b70| 63 74 69 76 65 20 22 63 | 41 70 70 65 6e 64 20 74 |ctive "c|Append t|
|00000b80| 6f 20 72 65 67 69 73 74 | 65 72 3a 20 0a 72 0a 50 |o regist|er: .r.P|
|00000b90| 22 29 20 28 62 79 74 65 | 2d 63 6f 64 65 20 22 c4 |") (byte|-code ".|
|00000ba0| 88 c5 08 21 3b 86 0c 00 | c6 c7 21 88 c8 08 c5 08 |...!;...|..!.....|
|00000bb0| 21 c9 09 0a 5c 22 50 5c | 22 88 0b 85 21 00 ca 09 |!...\"P\|"...!...|
|00000bc0| 0a 5c 22 87 22 20 5b 63 | 68 61 72 20 73 74 61 72 |.\"." [c|har star|
|00000bd0| 74 20 65 6e 64 20 64 65 | 6c 65 74 65 2d 66 6c 61 |t end de|lete-fla|
|00000be0| 67 20 6e 69 6c 20 67 65 | 74 2d 72 65 67 69 73 74 |g nil ge|t-regist|
|00000bf0| 65 72 20 65 72 72 6f 72 | 20 22 52 65 67 69 73 74 |er error| "Regist|
|00000c00| 65 72 20 64 6f 65 73 20 | 6e 6f 74 20 63 6f 6e 74 |er does |not cont|
|00000c10| 61 69 6e 20 74 65 78 74 | 22 20 73 65 74 2d 72 65 |ain text|" set-re|
|00000c20| 67 69 73 74 65 72 20 62 | 75 66 66 65 72 2d 73 75 |gister b|uffer-su|
|00000c30| 62 73 74 72 69 6e 67 20 | 64 65 6c 65 74 65 2d 72 |bstring |delete-r|
|00000c40| 65 67 69 6f 6e 5d 20 39 | 29 29 0a 0a 28 64 65 66 |egion] 9|))..(def|
|00000c50| 75 6e 20 70 72 65 70 65 | 6e 64 2d 74 6f 2d 72 65 |un prepe|nd-to-re|
|00000c60| 67 69 73 74 65 72 20 28 | 63 68 61 72 20 73 74 61 |gister (|char sta|
|00000c70| 72 74 20 65 6e 64 20 26 | 6f 70 74 69 6f 6e 61 6c |rt end &|optional|
|00000c80| 20 64 65 6c 65 74 65 2d | 66 6c 61 67 29 20 22 5c | delete-|flag) "\|
|00000c90| 0a 50 72 65 70 65 6e 64 | 20 72 65 67 69 6f 6e 20 |.Prepend| region |
|00000ca0| 74 6f 20 74 65 78 74 20 | 69 6e 20 72 65 67 69 73 |to text |in regis|
|00000cb0| 74 65 72 20 52 45 47 2e | 0a 57 69 74 68 20 70 72 |ter REG.|.With pr|
|00000cc0| 65 66 69 78 20 61 72 67 | 2c 20 64 65 6c 65 74 65 |efix arg|, delete|
|00000cd0| 20 61 73 20 77 65 6c 6c | 2e 0a 43 61 6c 6c 65 64 | as well|..Called|
|00000ce0| 20 66 72 6f 6d 20 70 72 | 6f 67 72 61 6d 2c 20 74 | from pr|ogram, t|
|00000cf0| 61 6b 65 73 20 66 6f 75 | 72 20 61 72 67 73 3a 0a |akes fou|r args:.|
|00000d00| 52 45 47 2c 20 53 54 41 | 52 54 2c 20 45 4e 44 20 |REG, STA|RT, END |
|00000d10| 61 6e 64 20 44 45 4c 45 | 54 45 2d 46 4c 41 47 2e |and DELE|TE-FLAG.|
|00000d20| 0a 53 54 41 52 54 20 61 | 6e 64 20 45 4e 44 20 61 |.START a|nd END a|
|00000d30| 72 65 20 62 75 66 66 65 | 72 20 70 6f 73 69 74 69 |re buffe|r positi|
|00000d40| 6f 6e 73 20 69 6e 64 69 | 63 61 74 69 6e 67 20 77 |ons indi|cating w|
|00000d50| 68 61 74 20 74 6f 20 70 | 72 65 70 65 6e 64 2e 22 |hat to p|repend."|
|00000d60| 20 28 69 6e 74 65 72 61 | 63 74 69 76 65 20 22 63 | (intera|ctive "c|
|00000d70| 50 72 65 70 65 6e 64 20 | 74 6f 20 72 65 67 69 73 |Prepend |to regis|
|00000d80| 74 65 72 3a 20 0a 72 0a | 50 22 29 20 28 62 79 74 |ter: .r.|P") (byt|
|00000d90| 65 2d 63 6f 64 65 20 22 | c4 88 c5 08 21 3b 86 0c |e-code "|....!;..|
|00000da0| 00 c6 c7 21 88 c8 08 c9 | 09 0a 5c 22 c5 08 21 50 |...!....|..\"..!P|
|00000db0| 5c 22 88 0b 85 21 00 ca | 09 0a 5c 22 87 22 20 5b |\"...!..|..\"." [|
|00000dc0| 63 68 61 72 20 73 74 61 | 72 74 20 65 6e 64 20 64 |char sta|rt end d|
|00000dd0| 65 6c 65 74 65 2d 66 6c | 61 67 20 6e 69 6c 20 67 |elete-fl|ag nil g|
|00000de0| 65 74 2d 72 65 67 69 73 | 74 65 72 20 65 72 72 6f |et-regis|ter erro|
|00000df0| 72 20 22 52 65 67 69 73 | 74 65 72 20 64 6f 65 73 |r "Regis|ter does|
|00000e00| 20 6e 6f 74 20 63 6f 6e | 74 61 69 6e 20 74 65 78 | not con|tain tex|
|00000e10| 74 22 20 73 65 74 2d 72 | 65 67 69 73 74 65 72 20 |t" set-r|egister |
|00000e20| 62 75 66 66 65 72 2d 73 | 75 62 73 74 72 69 6e 67 |buffer-s|ubstring|
|00000e30| 20 64 65 6c 65 74 65 2d | 72 65 67 69 6f 6e 5d 20 | delete-|region] |
|00000e40| 38 29 29 0a 0a 28 64 65 | 66 75 6e 20 63 6f 70 79 |8))..(de|fun copy|
|00000e50| 2d 72 65 63 74 61 6e 67 | 6c 65 2d 74 6f 2d 72 65 |-rectang|le-to-re|
|00000e60| 67 69 73 74 65 72 20 28 | 63 68 61 72 20 73 74 61 |gister (|char sta|
|00000e70| 72 74 20 65 6e 64 20 26 | 6f 70 74 69 6f 6e 61 6c |rt end &|optional|
|00000e80| 20 64 65 6c 65 74 65 2d | 66 6c 61 67 29 20 22 5c | delete-|flag) "\|
|00000e90| 0a 43 6f 70 79 20 72 65 | 63 74 61 6e 67 75 6c 61 |.Copy re|ctangula|
|00000ea0| 72 20 72 65 67 69 6f 6e | 20 69 6e 74 6f 20 72 65 |r region| into re|
|00000eb0| 67 69 73 74 65 72 20 52 | 45 47 2e 0a 57 69 74 68 |gister R|EG..With|
|00000ec0| 20 70 72 65 66 69 78 20 | 61 72 67 2c 20 64 65 6c | prefix |arg, del|
|00000ed0| 65 74 65 20 61 73 20 77 | 65 6c 6c 2e 0a 43 61 6c |ete as w|ell..Cal|
|00000ee0| 6c 65 64 20 66 72 6f 6d | 20 70 72 6f 67 72 61 6d |led from| program|
|00000ef0| 2c 20 74 61 6b 65 73 20 | 66 6f 75 72 20 61 72 67 |, takes |four arg|
|00000f00| 73 3a 0a 52 45 47 2c 20 | 53 54 41 52 54 2c 20 45 |s:.REG, |START, E|
|00000f10| 4e 44 20 61 6e 64 20 44 | 45 4c 45 54 45 2d 46 4c |ND and D|ELETE-FL|
|00000f20| 41 47 2e 0a 53 54 41 52 | 54 20 61 6e 64 20 45 4e |AG..STAR|T and EN|
|00000f30| 44 20 61 72 65 20 62 75 | 66 66 65 72 20 70 6f 73 |D are bu|ffer pos|
|00000f40| 69 74 69 6f 6e 73 20 67 | 69 76 69 6e 67 20 74 77 |itions g|iving tw|
|00000f50| 6f 20 63 6f 72 6e 65 72 | 73 20 6f 66 20 72 65 63 |o corner|s of rec|
|00000f60| 74 61 6e 67 6c 65 2e 22 | 20 28 69 6e 74 65 72 61 |tangle."| (intera|
|00000f70| 63 74 69 76 65 20 22 63 | 43 6f 70 79 20 72 65 63 |ctive "c|Copy rec|
|00000f80| 74 61 6e 67 6c 65 20 74 | 6f 20 72 65 67 69 73 74 |tangle t|o regist|
|00000f90| 65 72 3a 20 0a 72 0a 50 | 22 29 20 28 62 79 74 65 |er: .r.P|") (byte|
|00000fa0| 2d 63 6f 64 65 20 22 c4 | 88 c5 08 09 83 0f 00 c6 |-code ".|........|
|00000fb0| 0a 0b 5c 22 82 13 00 c7 | 0a 0b 5c 22 5c 22 87 22 |..\"....|..\"\"."|
|00000fc0| 20 5b 63 68 61 72 20 64 | 65 6c 65 74 65 2d 66 6c | [char d|elete-fl|
|00000fd0| 61 67 20 73 74 61 72 74 | 20 65 6e 64 20 6e 69 6c |ag start| end nil|
|00000fe0| 20 73 65 74 2d 72 65 67 | 69 73 74 65 72 20 64 65 | set-reg|ister de|
|00000ff0| 6c 65 74 65 2d 65 78 74 | 72 61 63 74 2d 72 65 63 |lete-ext|ract-rec|
|00001000| 74 61 6e 67 6c 65 20 65 | 78 74 72 61 63 74 2d 72 |tangle e|xtract-r|
|00001010| 65 63 74 61 6e 67 6c 65 | 5d 20 36 29 29 0a |ectangle|] 6)). |
+--------+-------------------------+-------------------------+--------+--------+