home *** CD-ROM | disk | FTP | other *** search
Emacs Compiled Lisp | 1993-04-01 | 4.1 KB |
open in:
MacOS 8.1
|
Win98
|
DOS
view JSON data
|
view as text
This file was processed as: Emacs Compiled Lisp
(other/emacsCompiledLisp).
This format is not currently supported by dexvert.
Confidence | Program | Detection | Match Type | Support
|
---|
1%
| dexvert
| Emacs Compiled Lisp (other/emacsCompiledLisp)
| magic
| Unsupported |
1%
| dexvert
| Combustion 2 Particle Library (other/combustion2ParticleLibrary)
| ext
| Unsupported |
100%
| file
| Emacs/XEmacs v19 byte-compiled Lisp data
| default
| |
99%
| file
| data
| default
| |
100%
| TrID
| Emacs/XEmacs byte-compiled Lisp (generic)
| default
| |
100%
| xdgMime
| text/x-emacs-lisp
| default (weak)
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 3b 45 4c 43 13 00 00 00 | 0a 3b 3b 3b 20 63 6f 6d |;ELC....|.;;; com|
|00000010| 70 69 6c 65 64 20 62 79 | 20 6a 77 7a 40 74 68 61 |piled by| jwz@tha|
|00000020| 6c 69 64 6f 6d 69 64 65 | 20 6f 6e 20 4d 6f 6e 20 |lidomide| on Mon |
|00000030| 46 65 62 20 20 31 20 31 | 39 3a 32 35 3a 34 30 20 |Feb 1 1|9:25:40 |
|00000040| 31 39 39 33 0a 3b 3b 3b | 20 66 72 6f 6d 20 66 69 |1993.;;;| from fi|
|00000050| 6c 65 20 2f 63 61 64 69 | 6c 6c 61 63 31 2f 63 6f |le /cadi|llac1/co|
|00000060| 64 65 2f 62 75 69 6c 64 | 2f 6c 65 6d 61 63 73 2f |de/build|/lemacs/|
|00000070| 6c 69 73 70 2f 70 72 69 | 6d 2f 72 65 67 69 73 74 |lisp/pri|m/regist|
|00000080| 65 72 2e 65 6c 0a 3b 3b | 3b 20 65 6d 61 63 73 20 |er.el.;;|; emacs |
|00000090| 76 65 72 73 69 6f 6e 20 | 31 39 2e 34 2e 31 33 20 |version |19.4.13 |
|000000a0| 4c 75 63 69 64 2e 0a 3b | 3b 3b 20 62 79 74 65 63 |Lucid..;|;; bytec|
|000000b0| 6f 6d 70 20 76 65 72 73 | 69 6f 6e 20 32 2e 31 30 |omp vers|ion 2.10|
|000000c0| 3b 20 20 31 2d 66 65 62 | 2d 39 33 2e 0a 3b 3b 3b |; 1-feb|-93..;;;|
|000000d0| 20 6f 70 74 69 6d 69 7a | 61 74 69 6f 6e 20 69 73 | optimiz|ation is|
|000000e0| 20 6f 6e 2e 0a 3b 3b 3b | 20 74 68 69 73 20 66 69 | on..;;;| this fi|
|000000f0| 6c 65 20 75 73 65 73 20 | 6f 70 63 6f 64 65 73 20 |le uses |opcodes |
|00000100| 77 68 69 63 68 20 64 6f | 20 6e 6f 74 20 65 78 69 |which do| not exi|
|00000110| 73 74 20 69 6e 20 45 6d | 61 63 73 31 38 2e 0a 0a |st in Em|acs18...|
|00000120| 28 69 66 20 28 61 6e 64 | 20 28 62 6f 75 6e 64 70 |(if (and| (boundp|
|00000130| 20 27 65 6d 61 63 73 2d | 76 65 72 73 69 6f 6e 29 | 'emacs-|version)|
|00000140| 0a 09 20 28 6f 72 20 28 | 61 6e 64 20 28 62 6f 75 |.. (or (|and (bou|
|00000150| 6e 64 70 20 27 65 70 6f | 63 68 3a 3a 76 65 72 73 |ndp 'epo|ch::vers|
|00000160| 69 6f 6e 29 20 65 70 6f | 63 68 3a 3a 76 65 72 73 |ion) epo|ch::vers|
|00000170| 69 6f 6e 29 0a 09 20 20 | 20 20 20 28 73 74 72 69 |ion).. | (stri|
|00000180| 6e 67 2d 6c 65 73 73 70 | 20 65 6d 61 63 73 2d 76 |ng-lessp| emacs-v|
|00000190| 65 72 73 69 6f 6e 20 22 | 31 39 22 29 29 29 0a 20 |ersion "|19"))). |
|000001a0| 20 20 20 28 65 72 72 6f | 72 20 22 54 68 69 73 20 | (erro|r "This |
|000001b0| 66 69 6c 65 20 77 61 73 | 20 63 6f 6d 70 69 6c 65 |file was| compile|
|000001c0| 64 20 66 6f 72 20 45 6d | 61 63 73 31 39 2e 22 29 |d for Em|acs19.")|
|000001d0| 29 0a 0a 28 64 65 66 76 | 61 72 20 72 65 67 69 73 |)..(defv|ar regis|
|000001e0| 74 65 72 2d 61 6c 69 73 | 74 20 6e 69 6c 20 22 5c |ter-alis|t nil "\|
|000001f0| 0a 41 6c 69 73 74 20 6f | 66 20 65 6c 65 6d 65 6e |.Alist o|f elemen|
|00000200| 74 73 20 28 4e 41 4d 45 | 20 2e 20 43 4f 4e 54 45 |ts (NAME| . CONTE|
|00000210| 4e 54 53 29 2c 20 6f 6e | 65 20 66 6f 72 20 65 61 |NTS), on|e for ea|
|00000220| 63 68 20 45 6d 61 63 73 | 20 72 65 67 69 73 74 65 |ch Emacs| registe|
|00000230| 72 2e 0a 4e 41 4d 45 20 | 69 73 20 61 20 63 68 61 |r..NAME |is a cha|
|00000240| 72 61 63 74 65 72 20 28 | 61 20 6e 75 6d 62 65 72 |racter (|a number|
|00000250| 29 2e 20 20 43 4f 4e 54 | 45 4e 54 53 20 69 73 20 |). CONT|ENTS is |
|00000260| 61 20 73 74 72 69 6e 67 | 2c 20 6e 75 6d 62 65 72 |a string|, number|
|00000270| 2c 0a 6d 61 72 6b 20 6f | 72 20 6c 69 73 74 2e 20 |,.mark o|r list. |
|00000280| 20 41 20 6c 69 73 74 20 | 72 65 70 72 65 73 65 6e | A list |represen|
|00000290| 74 73 20 61 20 72 65 63 | 74 61 6e 67 6c 65 3b 20 |ts a rec|tangle; |
|000002a0| 69 74 73 20 65 6c 65 6d | 65 6e 74 73 20 61 72 65 |its elem|ents are|
|000002b0| 20 73 74 72 69 6e 67 73 | 2e 22 29 0a 28 66 73 65 | strings|.").(fse|
|000002c0| 74 20 27 67 65 74 2d 72 | 65 67 69 73 74 65 72 20 |t 'get-r|egister |
|000002d0| 23 5b 28 63 68 61 72 29 | 20 22 08 09 9e 41 87 22 |#[(char)| "...A."|
|000002e0| 20 5b 63 68 61 72 20 72 | 65 67 69 73 74 65 72 2d | [char r|egister-|
|000002f0| 61 6c 69 73 74 5d 20 32 | 20 22 5c 0a 52 65 74 75 |alist] 2| "\.Retu|
|00000300| 72 6e 20 63 6f 6e 74 65 | 6e 74 73 20 6f 66 20 45 |rn conte|nts of E|
|00000310| 6d 61 63 73 20 72 65 67 | 69 73 74 65 72 20 6e 61 |macs reg|ister na|
|00000320| 6d 65 64 20 43 48 41 52 | 2c 20 6f 72 20 6e 69 6c |med CHAR|, or nil|
|00000330| 20 69 66 20 6e 6f 6e 65 | 2e 22 5d 29 0a 28 66 73 | if none|."]).(fs|
|00000340| 65 74 20 27 73 65 74 2d | 72 65 67 69 73 74 65 72 |et 'set-|register|
|00000350| 20 23 5b 28 63 68 61 72 | 20 76 61 6c 75 65 29 20 | #[(char| value) |
|00000360| 22 08 09 9e 89 1a ab 86 | 5c 6e 0b a1 88 aa 88 08 |".......|\n......|
|00000370| 0b 42 89 12 09 42 11 0b | 29 87 22 20 5b 63 68 61 |.B...B..|)." [cha|
|00000380| 72 20 72 65 67 69 73 74 | 65 72 2d 61 6c 69 73 74 |r regist|er-alist|
|00000390| 20 61 65 6c 74 20 76 61 | 6c 75 65 5d 20 33 20 22 | aelt va|lue] 3 "|
|000003a0| 5c 0a 53 65 74 20 63 6f | 6e 74 65 6e 74 73 20 6f |\.Set co|ntents o|
|000003b0| 66 20 45 6d 61 63 73 20 | 72 65 67 69 73 74 65 72 |f Emacs |register|
|000003c0| 20 6e 61 6d 65 64 20 43 | 48 41 52 20 74 6f 20 56 | named C|HAR to V|
|000003d0| 41 4c 55 45 2e 0a 52 65 | 74 75 72 6e 73 20 56 41 |ALUE..Re|turns VA|
|000003e0| 4c 55 45 2e 22 5d 29 0a | 28 66 73 65 74 20 27 70 |LUE."]).|(fset 'p|
|000003f0| 6f 69 6e 74 2d 74 6f 2d | 72 65 67 69 73 74 65 72 |oint-to-|register|
|00000400| 20 23 5b 28 63 68 61 72 | 29 20 22 c0 09 c2 20 5c | #[(char|) "... \|
|00000410| 22 87 22 20 5b 73 65 74 | 2d 72 65 67 69 73 74 65 |"." [set|-registe|
|00000420| 72 20 63 68 61 72 20 70 | 6f 69 6e 74 2d 6d 61 72 |r char p|oint-mar|
|00000430| 6b 65 72 5d 20 33 20 22 | 5c 0a 53 74 6f 72 65 20 |ker] 3 "|\.Store |
|00000440| 63 75 72 72 65 6e 74 20 | 6c 6f 63 61 74 69 6f 6e |current |location|
|00000450| 20 6f 66 20 70 6f 69 6e | 74 20 69 6e 20 61 20 72 | of poin|t in a r|
|00000460| 65 67 69 73 74 65 72 2e | 0a 41 72 67 75 6d 65 6e |egister.|.Argumen|
|00000470| 74 20 69 73 20 61 20 63 | 68 61 72 61 63 74 65 72 |t is a c|haracter|
|00000480| 2c 20 6e 61 6d 69 6e 67 | 20 74 68 65 20 72 65 67 |, naming| the reg|
|00000490| 69 73 74 65 72 2e 22 20 | 22 63 50 6f 69 6e 74 20 |ister." |"cPoint |
|000004a0| 74 6f 20 72 65 67 69 73 | 74 65 72 3a 20 22 5d 29 |to regis|ter: "])|
|000004b0| 0a 28 66 73 65 74 20 27 | 72 65 67 69 73 74 65 72 |.(fset '|register|
|000004c0| 2d 74 6f 2d 70 6f 69 6e | 74 20 27 6a 75 6d 70 2d |-to-poin|t 'jump-|
|000004d0| 74 6f 2d 72 65 67 69 73 | 74 65 72 29 0a 28 66 73 |to-regis|ter).(fs|
|000004e0| 65 74 20 27 6a 75 6d 70 | 2d 74 6f 2d 72 65 67 69 |et 'jump|-to-regi|
|000004f0| 73 74 65 72 20 23 5b 28 | 63 68 61 72 29 20 22 c0 |ster #[(|char) ".|
|00000500| 09 21 1a c3 5c 6e 21 ab | 8a c4 c5 5c 6e 21 21 88 |.!..\n!.|...\n!!.|
|00000510| 5c 6e 62 aa 83 c6 c7 21 | 29 87 22 20 5b 67 65 74 |\nb....!|)." [get|
|00000520| 2d 72 65 67 69 73 74 65 | 72 20 63 68 61 72 20 76 |-registe|r char v|
|00000530| 61 6c 20 6d 61 72 6b 65 | 72 70 20 73 77 69 74 63 |al marke|rp switc|
|00000540| 68 2d 74 6f 2d 62 75 66 | 66 65 72 20 6d 61 72 6b |h-to-buf|fer mark|
|00000550| 65 72 2d 62 75 66 66 65 | 72 20 65 72 72 6f 72 20 |er-buffe|r error |
|00000560| 22 52 65 67 69 73 74 65 | 72 20 64 6f 65 73 6e 27 |"Registe|r doesn'|
|00000570| 74 20 63 6f 6e 74 61 69 | 6e 20 61 20 62 75 66 66 |t contai|n a buff|
|00000580| 65 72 20 70 6f 73 69 74 | 69 6f 6e 22 5d 20 33 20 |er posit|ion"] 3 |
|00000590| 22 5c 0a 4d 6f 76 65 20 | 70 6f 69 6e 74 20 74 6f |"\.Move |point to|
|000005a0| 20 6c 6f 63 61 74 69 6f | 6e 20 73 74 6f 72 65 64 | locatio|n stored|
|000005b0| 20 69 6e 20 61 20 72 65 | 67 69 73 74 65 72 2e 0a | in a re|gister..|
|000005c0| 41 72 67 75 6d 65 6e 74 | 20 69 73 20 61 20 63 68 |Argument| is a ch|
|000005d0| 61 72 61 63 74 65 72 2c | 20 6e 61 6d 69 6e 67 20 |aracter,| naming |
|000005e0| 74 68 65 20 72 65 67 69 | 73 74 65 72 2e 22 20 22 |the regi|ster." "|
|000005f0| 63 4a 75 6d 70 20 74 6f | 20 72 65 67 69 73 74 65 |cJump to| registe|
|00000600| 72 3a 20 22 5d 29 0a 28 | 66 73 65 74 20 27 76 69 |r: "]).(|fset 'vi|
|00000610| 65 77 2d 72 65 67 69 73 | 74 65 72 20 23 5b 28 63 |ew-regis|ter #[(c|
|00000620| 68 61 72 29 20 22 c0 09 | 21 89 1a ac 88 c3 c4 c5 |har) "..|!.......|
|00000630| 09 21 5c 22 aa d4 c6 90 | c7 c8 21 88 c7 c5 09 21 |.!\"....|..!....!|
|00000640| 21 88 c7 c9 21 88 5c 6e | a8 ab 85 c7 5c 6e 21 aa |!...!.\n|....\n!.|
|00000650| ba ca 5c 6e 21 ab 95 c7 | cb 21 88 c7 cc cd 5c 6e |..\n!...|.!....\n|
|00000660| 21 21 21 88 c7 ce 21 88 | c7 5c 6e 21 aa a0 5c 6e |!!!...!.|.\n!..\n|
|00000670| 3a ab 95 c7 cf 21 88 5c | 6e ad 95 c7 5c 6e 40 21 |:....!.\|n...\n@!|
|00000680| 88 d0 20 88 5c 6e 41 89 | 12 aa 70 c7 d1 21 88 c7 |.. .\nA.|..p..!..|
|00000690| 5c 6e 21 91 29 87 22 20 | 5b 67 65 74 2d 72 65 67 |\n!.)." |[get-reg|
|000006a0| 69 73 74 65 72 20 63 68 | 61 72 20 76 61 6c 20 6d |ister ch|ar val m|
|000006b0| 65 73 73 61 67 65 20 22 | 52 65 67 69 73 74 65 72 |essage "|Register|
|000006c0| 20 25 73 20 69 73 20 65 | 6d 70 74 79 22 20 73 69 | %s is e|mpty" si|
|000006d0| 6e 67 6c 65 2d 6b 65 79 | 2d 64 65 73 63 72 69 70 |ngle-key|-descrip|
|000006e0| 74 69 6f 6e 20 22 2a 4f | 75 74 70 75 74 2a 22 20 |tion "*O|utput*" |
|000006f0| 70 72 69 6e 63 20 22 52 | 65 67 69 73 74 65 72 20 |princ "R|egister |
|00000700| 22 20 22 20 63 6f 6e 74 | 61 69 6e 73 20 22 20 6d |" " cont|ains " m|
|00000710| 61 72 6b 65 72 70 20 22 | 61 20 62 75 66 66 65 72 |arkerp "|a buffer|
|00000720| 20 70 6f 73 69 74 69 6f | 6e 3a 5c 6e 62 75 66 66 | positio|n:\nbuff|
|00000730| 65 72 20 22 20 62 75 66 | 66 65 72 2d 6e 61 6d 65 |er " buf|fer-name|
|00000740| 20 6d 61 72 6b 65 72 2d | 62 75 66 66 65 72 20 22 | marker-|buffer "|
|00000750| 2c 20 70 6f 73 69 74 69 | 6f 6e 20 22 20 22 74 68 |, positi|on " "th|
|00000760| 65 20 72 65 63 74 61 6e | 67 6c 65 3a 5c 6e 22 20 |e rectan|gle:\n" |
|00000770| 74 65 72 70 72 69 20 22 | 74 68 65 20 73 74 72 69 |terpri "|the stri|
|00000780| 6e 67 3a 5c 6e 22 5d 20 | 36 20 22 5c 0a 44 69 73 |ng:\n"] |6 "\.Dis|
|00000790| 70 6c 61 79 20 77 68 61 | 74 20 69 73 20 63 6f 6e |play wha|t is con|
|000007a0| 74 61 69 6e 65 64 20 69 | 6e 20 72 65 67 69 73 74 |tained i|n regist|
|000007b0| 65 72 20 6e 61 6d 65 64 | 20 52 45 47 49 53 54 45 |er named| REGISTE|
|000007c0| 52 2e 0a 52 45 47 49 53 | 54 45 52 20 69 73 20 61 |R..REGIS|TER is a|
|000007d0| 20 63 68 61 72 61 63 74 | 65 72 2e 22 20 22 63 56 | charact|er." "cV|
|000007e0| 69 65 77 20 72 65 67 69 | 73 74 65 72 3a 20 22 5d |iew regi|ster: "]|
|000007f0| 29 0a 28 66 73 65 74 20 | 27 69 6e 73 65 72 74 2d |).(fset |'insert-|
|00000800| 72 65 67 69 73 74 65 72 | 20 23 5b 28 63 68 61 72 |register| #[(char|
|00000810| 20 26 6f 70 74 69 6f 6e | 61 6c 20 61 72 67 29 20 | &option|al arg) |
|00000820| 22 c0 20 88 c1 5c 6e 21 | 89 1b 3a ab 86 c4 0b 21 |". ..\n!|..:....!|
|00000830| 88 aa 9d 0b 3b ab 85 0b | 63 88 aa 94 0b a8 ac 85 |....;...|c.......|
|00000840| c5 0b 21 ab 87 c6 0b 70 | 5c 22 88 aa 84 c7 c8 21 |..!....p|\".....!|
|00000850| 88 29 0e 09 3f ad 82 ca | 20 87 22 20 5b 70 75 73 |.)..?...| ." [pus|
|00000860| 68 2d 6d 61 72 6b 20 67 | 65 74 2d 72 65 67 69 73 |h-mark g|et-regis|
|00000870| 74 65 72 20 63 68 61 72 | 20 76 61 6c 20 69 6e 73 |ter char| val ins|
|00000880| 65 72 74 2d 72 65 63 74 | 61 6e 67 6c 65 20 6d 61 |ert-rect|angle ma|
|00000890| 72 6b 65 72 70 20 70 72 | 69 6e 63 20 65 72 72 6f |rkerp pr|inc erro|
|000008a0| 72 20 22 52 65 67 69 73 | 74 65 72 20 64 6f 65 73 |r "Regis|ter does|
|000008b0| 20 6e 6f 74 20 63 6f 6e | 74 61 69 6e 20 74 65 78 | not con|tain tex|
|000008c0| 74 22 20 61 72 67 20 65 | 78 63 68 61 6e 67 65 2d |t" arg e|xchange-|
|000008d0| 70 6f 69 6e 74 2d 61 6e | 64 2d 6d 61 72 6b 5d 20 |point-an|d-mark] |
|000008e0| 34 20 22 5c 0a 49 6e 73 | 65 72 74 20 63 6f 6e 74 |4 "\.Ins|ert cont|
|000008f0| 65 6e 74 73 20 6f 66 20 | 72 65 67 69 73 74 65 72 |ents of |register|
|00000900| 20 52 45 47 2e 20 20 52 | 45 47 20 69 73 20 61 20 | REG. R|EG is a |
|00000910| 63 68 61 72 61 63 74 65 | 72 2e 0a 4e 6f 72 6d 61 |characte|r..Norma|
|00000920| 6c 6c 79 20 70 75 74 73 | 20 70 6f 69 6e 74 20 62 |lly puts| point b|
|00000930| 65 66 6f 72 65 20 61 6e | 64 20 6d 61 72 6b 20 61 |efore an|d mark a|
|00000940| 66 74 65 72 20 74 68 65 | 20 69 6e 73 65 72 74 65 |fter the| inserte|
|00000950| 64 20 74 65 78 74 2e 0a | 49 66 20 6f 70 74 69 6f |d text..|If optio|
|00000960| 6e 61 6c 20 73 65 63 6f | 6e 64 20 61 72 67 20 69 |nal seco|nd arg i|
|00000970| 73 20 6e 6f 6e 2d 6e 69 | 6c 2c 20 70 75 74 73 20 |s non-ni|l, puts |
|00000980| 6d 61 72 6b 20 62 65 66 | 6f 72 65 20 61 6e 64 20 |mark bef|ore and |
|00000990| 70 6f 69 6e 74 20 61 66 | 74 65 72 2e 0a 49 6e 74 |point af|ter..Int|
|000009a0| 65 72 61 63 74 69 76 65 | 6c 79 2c 20 73 65 63 6f |eractive|ly, seco|
|000009b0| 6e 64 20 61 72 67 20 69 | 73 20 6e 6f 6e 2d 6e 69 |nd arg i|s non-ni|
|000009c0| 6c 20 69 66 20 70 72 65 | 66 69 78 20 61 72 67 20 |l if pre|fix arg |
|000009d0| 69 73 20 73 75 70 70 6c | 69 65 64 2e 22 20 22 63 |is suppl|ied." "c|
|000009e0| 49 6e 73 65 72 74 20 72 | 65 67 69 73 74 65 72 3a |Insert r|egister:|
|000009f0| 20 5c 6e 50 22 5d 29 0a | 28 66 73 65 74 20 27 63 | \nP"]).|(fset 'c|
|00000a00| 6f 70 79 2d 74 6f 2d 72 | 65 67 69 73 74 65 72 20 |opy-to-r|egister |
|00000a10| 23 5b 28 63 68 61 72 20 | 73 74 61 72 74 20 65 6e |#[(char |start en|
|00000a20| 64 20 26 6f 70 74 69 6f | 6e 61 6c 20 64 65 6c 65 |d &optio|nal dele|
|00000a30| 74 65 2d 66 6c 61 67 29 | 20 22 c0 09 5c 6e 0b 7b |te-flag)| "..\n.{|
|00000a40| 5c 22 88 0c ad 83 5c 6e | 0b 7c 87 22 20 5b 73 65 |\"....\n|.|." [se|
|00000a50| 74 2d 72 65 67 69 73 74 | 65 72 20 63 68 61 72 20 |t-regist|er char |
|00000a60| 73 74 61 72 74 20 65 6e | 64 20 64 65 6c 65 74 65 |start en|d delete|
|00000a70| 2d 66 6c 61 67 5d 20 34 | 20 22 5c 0a 43 6f 70 79 |-flag] 4| "\.Copy|
|00000a80| 20 72 65 67 69 6f 6e 20 | 69 6e 74 6f 20 72 65 67 | region |into reg|
|00000a90| 69 73 74 65 72 20 52 45 | 47 2e 0a 57 69 74 68 20 |ister RE|G..With |
|00000aa0| 70 72 65 66 69 78 20 61 | 72 67 2c 20 64 65 6c 65 |prefix a|rg, dele|
|00000ab0| 74 65 20 61 73 20 77 65 | 6c 6c 2e 0a 43 61 6c 6c |te as we|ll..Call|
|00000ac0| 65 64 20 66 72 6f 6d 20 | 70 72 6f 67 72 61 6d 2c |ed from |program,|
|00000ad0| 20 74 61 6b 65 73 20 66 | 6f 75 72 20 61 72 67 73 | takes f|our args|
|00000ae0| 3a 0a 52 45 47 2c 20 53 | 54 41 52 54 2c 20 45 4e |:.REG, S|TART, EN|
|00000af0| 44 20 61 6e 64 20 44 45 | 4c 45 54 45 2d 46 4c 41 |D and DE|LETE-FLA|
|00000b00| 47 2e 0a 53 54 41 52 54 | 20 61 6e 64 20 45 4e 44 |G..START| and END|
|00000b10| 20 61 72 65 20 62 75 66 | 66 65 72 20 70 6f 73 69 | are buf|fer posi|
|00000b20| 74 69 6f 6e 73 20 69 6e | 64 69 63 61 74 69 6e 67 |tions in|dicating|
|00000b30| 20 77 68 61 74 20 74 6f | 20 63 6f 70 79 2e 22 20 | what to| copy." |
|00000b40| 22 63 43 6f 70 79 20 74 | 6f 20 72 65 67 69 73 74 |"cCopy t|o regist|
|00000b50| 65 72 3a 20 5c 6e 72 5c | 6e 50 22 5d 29 0a 28 66 |er: \nr\|nP"]).(f|
|00000b60| 73 65 74 20 27 61 70 70 | 65 6e 64 2d 74 6f 2d 72 |set 'app|end-to-r|
|00000b70| 65 67 69 73 74 65 72 20 | 23 5b 28 63 68 61 72 20 |egister |#[(char |
|00000b80| 73 74 61 72 74 20 65 6e | 64 20 26 6f 70 74 69 6f |start en|d &optio|
|00000b90| 6e 61 6c 20 64 65 6c 65 | 74 65 2d 66 6c 61 67 29 |nal dele|te-flag)|
|00000ba0| 20 22 c0 09 21 3b ac 84 | c2 c3 21 88 c4 09 c0 09 | "..!;..|..!.....|
|00000bb0| 21 0d 0e 06 7b 50 5c 22 | 88 0e 07 ad 84 0d 0e 06 |!...{P\"|........|
|00000bc0| 7c 87 22 20 5b 67 65 74 | 2d 72 65 67 69 73 74 65 ||." [get|-registe|
|00000bd0| 72 20 63 68 61 72 20 65 | 72 72 6f 72 20 22 52 65 |r char e|rror "Re|
|00000be0| 67 69 73 74 65 72 20 64 | 6f 65 73 20 6e 6f 74 20 |gister d|oes not |
|00000bf0| 63 6f 6e 74 61 69 6e 20 | 74 65 78 74 22 20 73 65 |contain |text" se|
|00000c00| 74 2d 72 65 67 69 73 74 | 65 72 20 73 74 61 72 74 |t-regist|er start|
|00000c10| 20 65 6e 64 20 64 65 6c | 65 74 65 2d 66 6c 61 67 | end del|ete-flag|
|00000c20| 5d 20 35 20 22 5c 0a 41 | 70 70 65 6e 64 20 72 65 |] 5 "\.A|ppend re|
|00000c30| 67 69 6f 6e 20 74 6f 20 | 74 65 78 74 20 69 6e 20 |gion to |text in |
|00000c40| 72 65 67 69 73 74 65 72 | 20 52 45 47 2e 0a 57 69 |register| REG..Wi|
|00000c50| 74 68 20 70 72 65 66 69 | 78 20 61 72 67 2c 20 64 |th prefi|x arg, d|
|00000c60| 65 6c 65 74 65 20 61 73 | 20 77 65 6c 6c 2e 0a 43 |elete as| well..C|
|00000c70| 61 6c 6c 65 64 20 66 72 | 6f 6d 20 70 72 6f 67 72 |alled fr|om progr|
|00000c80| 61 6d 2c 20 74 61 6b 65 | 73 20 66 6f 75 72 20 61 |am, take|s four a|
|00000c90| 72 67 73 3a 0a 52 45 47 | 2c 20 53 54 41 52 54 2c |rgs:.REG|, START,|
|00000ca0| 20 45 4e 44 20 61 6e 64 | 20 44 45 4c 45 54 45 2d | END and| DELETE-|
|00000cb0| 46 4c 41 47 2e 0a 53 54 | 41 52 54 20 61 6e 64 20 |FLAG..ST|ART and |
|00000cc0| 45 4e 44 20 61 72 65 20 | 62 75 66 66 65 72 20 70 |END are |buffer p|
|00000cd0| 6f 73 69 74 69 6f 6e 73 | 20 69 6e 64 69 63 61 74 |ositions| indicat|
|00000ce0| 69 6e 67 20 77 68 61 74 | 20 74 6f 20 61 70 70 65 |ing what| to appe|
|00000cf0| 6e 64 2e 22 20 22 63 41 | 70 70 65 6e 64 20 74 6f |nd." "cA|ppend to|
|00000d00| 20 72 65 67 69 73 74 65 | 72 3a 20 5c 6e 72 5c 6e | registe|r: \nr\n|
|00000d10| 50 22 5d 29 0a 28 66 73 | 65 74 20 27 70 72 65 70 |P"]).(fs|et 'prep|
|00000d20| 65 6e 64 2d 74 6f 2d 72 | 65 67 69 73 74 65 72 20 |end-to-r|egister |
|00000d30| 23 5b 28 63 68 61 72 20 | 73 74 61 72 74 20 65 6e |#[(char |start en|
|00000d40| 64 20 26 6f 70 74 69 6f | 6e 61 6c 20 64 65 6c 65 |d &optio|nal dele|
|00000d50| 74 65 2d 66 6c 61 67 29 | 20 22 c0 09 21 3b ac 84 |te-flag)| "..!;..|
|00000d60| c2 c3 21 88 c4 09 0d 0e | 06 7b c0 09 21 50 5c 22 |..!.....|.{..!P\"|
|00000d70| 88 0e 07 ad 84 0d 0e 06 | 7c 87 22 20 5b 67 65 74 |........||." [get|
|00000d80| 2d 72 65 67 69 73 74 65 | 72 20 63 68 61 72 20 65 |-registe|r char e|
|00000d90| 72 72 6f 72 20 22 52 65 | 67 69 73 74 65 72 20 64 |rror "Re|gister d|
|00000da0| 6f 65 73 20 6e 6f 74 20 | 63 6f 6e 74 61 69 6e 20 |oes not |contain |
|00000db0| 74 65 78 74 22 20 73 65 | 74 2d 72 65 67 69 73 74 |text" se|t-regist|
|00000dc0| 65 72 20 73 74 61 72 74 | 20 65 6e 64 20 64 65 6c |er start| end del|
|00000dd0| 65 74 65 2d 66 6c 61 67 | 5d 20 35 20 22 5c 0a 50 |ete-flag|] 5 "\.P|
|00000de0| 72 65 70 65 6e 64 20 72 | 65 67 69 6f 6e 20 74 6f |repend r|egion to|
|00000df0| 20 74 65 78 74 20 69 6e | 20 72 65 67 69 73 74 65 | text in| registe|
|00000e00| 72 20 52 45 47 2e 0a 57 | 69 74 68 20 70 72 65 66 |r REG..W|ith pref|
|00000e10| 69 78 20 61 72 67 2c 20 | 64 65 6c 65 74 65 20 61 |ix arg, |delete a|
|00000e20| 73 20 77 65 6c 6c 2e 0a | 43 61 6c 6c 65 64 20 66 |s well..|Called f|
|00000e30| 72 6f 6d 20 70 72 6f 67 | 72 61 6d 2c 20 74 61 6b |rom prog|ram, tak|
|00000e40| 65 73 20 66 6f 75 72 20 | 61 72 67 73 3a 0a 52 45 |es four |args:.RE|
|00000e50| 47 2c 20 53 54 41 52 54 | 2c 20 45 4e 44 20 61 6e |G, START|, END an|
|00000e60| 64 20 44 45 4c 45 54 45 | 2d 46 4c 41 47 2e 0a 53 |d DELETE|-FLAG..S|
|00000e70| 54 41 52 54 20 61 6e 64 | 20 45 4e 44 20 61 72 65 |TART and| END are|
|00000e80| 20 62 75 66 66 65 72 20 | 70 6f 73 69 74 69 6f 6e | buffer |position|
|00000e90| 73 20 69 6e 64 69 63 61 | 74 69 6e 67 20 77 68 61 |s indica|ting wha|
|00000ea0| 74 20 74 6f 20 70 72 65 | 70 65 6e 64 2e 22 20 22 |t to pre|pend." "|
|00000eb0| 63 50 72 65 70 65 6e 64 | 20 74 6f 20 72 65 67 69 |cPrepend| to regi|
|00000ec0| 73 74 65 72 3a 20 5c 6e | 72 5c 6e 50 22 5d 29 0a |ster: \n|r\nP"]).|
|00000ed0| 28 66 73 65 74 20 27 63 | 6f 70 79 2d 72 65 63 74 |(fset 'c|opy-rect|
|00000ee0| 61 6e 67 6c 65 2d 74 6f | 2d 72 65 67 69 73 74 65 |angle-to|-registe|
|00000ef0| 72 20 23 5b 28 63 68 61 | 72 20 73 74 61 72 74 20 |r #[(cha|r start |
|00000f00| 65 6e 64 20 26 6f 70 74 | 69 6f 6e 61 6c 20 64 65 |end &opt|ional de|
|00000f10| 6c 65 74 65 2d 66 6c 61 | 67 29 20 22 c0 09 5c 6e |lete-fla|g) "..\n|
|00000f20| ab 86 c3 0c 0d 5c 22 aa | 84 c6 0c 0d 5c 22 5c 22 |.....\".|....\"\"|
|00000f30| 87 22 20 5b 73 65 74 2d | 72 65 67 69 73 74 65 72 |." [set-|register|
|00000f40| 20 63 68 61 72 20 64 65 | 6c 65 74 65 2d 66 6c 61 | char de|lete-fla|
|00000f50| 67 20 64 65 6c 65 74 65 | 2d 65 78 74 72 61 63 74 |g delete|-extract|
|00000f60| 2d 72 65 63 74 61 6e 67 | 6c 65 20 73 74 61 72 74 |-rectang|le start|
|00000f70| 20 65 6e 64 20 65 78 74 | 72 61 63 74 2d 72 65 63 | end ext|ract-rec|
|00000f80| 74 61 6e 67 6c 65 5d 20 | 35 20 22 5c 0a 43 6f 70 |tangle] |5 "\.Cop|
|00000f90| 79 20 72 65 63 74 61 6e | 67 75 6c 61 72 20 72 65 |y rectan|gular re|
|00000fa0| 67 69 6f 6e 20 69 6e 74 | 6f 20 72 65 67 69 73 74 |gion int|o regist|
|00000fb0| 65 72 20 52 45 47 2e 0a | 57 69 74 68 20 70 72 65 |er REG..|With pre|
|00000fc0| 66 69 78 20 61 72 67 2c | 20 64 65 6c 65 74 65 20 |fix arg,| delete |
|00000fd0| 61 73 20 77 65 6c 6c 2e | 0a 43 61 6c 6c 65 64 20 |as well.|.Called |
|00000fe0| 66 72 6f 6d 20 70 72 6f | 67 72 61 6d 2c 20 74 61 |from pro|gram, ta|
|00000ff0| 6b 65 73 20 66 6f 75 72 | 20 61 72 67 73 3a 0a 52 |kes four| args:.R|
|00001000| 45 47 2c 20 53 54 41 52 | 54 2c 20 45 4e 44 20 61 |EG, STAR|T, END a|
|00001010| 6e 64 20 44 45 4c 45 54 | 45 2d 46 4c 41 47 2e 0a |nd DELET|E-FLAG..|
|00001020| 53 54 41 52 54 20 61 6e | 64 20 45 4e 44 20 61 72 |START an|d END ar|
|00001030| 65 20 62 75 66 66 65 72 | 20 70 6f 73 69 74 69 6f |e buffer| positio|
|00001040| 6e 73 20 67 69 76 69 6e | 67 20 74 77 6f 20 63 6f |ns givin|g two co|
|00001050| 72 6e 65 72 73 20 6f 66 | 20 72 65 63 74 61 6e 67 |rners of| rectang|
|00001060| 6c 65 2e 22 20 22 63 43 | 6f 70 79 20 72 65 63 74 |le." "cC|opy rect|
|00001070| 61 6e 67 6c 65 20 74 6f | 20 72 65 67 69 73 74 65 |angle to| registe|
|00001080| 72 3a 20 5c 6e 72 5c 6e | 50 22 5d 29 0a |r: \nr\n|P"]). |
+--------+-------------------------+-------------------------+--------+--------+