home *** CD-ROM | disk | FTP | other *** search
Emacs Compiled Lisp | 1993-06-14 | 37.5 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 |
100%
| file
| Emacs v18 byte-compiled Lisp data
| default
| |
99%
| file
| data
| default
| |
100%
| gt2
| Kopftext: '(defun open-line (arg) '
| default (weak)
| |
100%
| xdgMime
| text/x-emacs-lisp
| default (weak)
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 0a 28 64 65 66 75 6e 20 | 6f 70 65 6e 2d 6c 69 6e |.(defun |open-lin|
|00000010| 65 20 28 61 72 67 29 20 | 22 5c 0a 49 6e 73 65 72 |e (arg) |"\.Inser|
|00000020| 74 20 61 20 6e 65 77 6c | 69 6e 65 20 61 6e 64 20 |t a newl|ine and |
|00000030| 6c 65 61 76 65 20 70 6f | 69 6e 74 20 62 65 66 6f |leave po|int befo|
|00000040| 72 65 20 69 74 2e 0a 57 | 69 74 68 20 61 72 67 2c |re it..W|ith arg,|
|00000050| 20 69 6e 73 65 72 74 73 | 20 74 68 61 74 20 6d 61 | inserts| that ma|
|00000060| 6e 79 20 6e 65 77 6c 69 | 6e 65 73 2e 22 20 28 69 |ny newli|nes." (i|
|00000070| 6e 74 65 72 61 63 74 69 | 76 65 20 22 2a 70 22 29 |nteracti|ve "*p")|
|00000080| 20 28 62 79 74 65 2d 63 | 6f 64 65 20 22 c2 88 6e | (byte-c|ode "..n|
|00000090| 85 08 00 6f 3f 18 08 85 | 10 00 c3 c4 21 88 09 c5 |...o?...|....!...|
|000000a0| 56 85 26 00 c6 63 88 60 | 53 62 88 09 53 89 11 88 |V.&..c.`|Sb..S...|
|000000b0| 82 11 00 88 08 85 2e 00 | c3 c7 21 29 87 22 20 5b |........|..!)." [|
|000000c0| 66 6c 61 67 20 61 72 67 | 20 6e 69 6c 20 66 6f 72 |flag arg| nil for|
|000000d0| 77 61 72 64 2d 63 68 61 | 72 20 2d 31 20 30 20 31 |ward-cha|r -1 0 1|
|000000e0| 30 20 31 5d 20 34 29 29 | 0a 0a 28 64 65 66 75 6e |0 1] 4))|..(defun|
|000000f0| 20 73 70 6c 69 74 2d 6c | 69 6e 65 20 6e 69 6c 20 | split-l|ine nil |
|00000100| 22 5c 0a 53 70 6c 69 74 | 20 63 75 72 72 65 6e 74 |"\.Split| current|
|00000110| 20 6c 69 6e 65 2c 20 6d | 6f 76 69 6e 67 20 70 6f | line, m|oving po|
|00000120| 72 74 69 6f 6e 20 62 65 | 79 6f 6e 64 20 70 6f 69 |rtion be|yond poi|
|00000130| 6e 74 20 76 65 72 74 69 | 63 61 6c 6c 79 20 64 6f |nt verti|cally do|
|00000140| 77 6e 2e 22 20 28 69 6e | 74 65 72 61 63 74 69 76 |wn." (in|teractiv|
|00000150| 65 20 22 2a 22 29 20 28 | 62 79 74 65 2d 63 6f 64 |e "*") (|byte-cod|
|00000160| 65 20 22 c2 88 c3 c4 21 | 88 69 60 19 18 c5 63 88 |e "....!|.i`...c.|
|00000170| c6 08 c7 5c 22 88 09 62 | 2a 87 22 20 5b 63 6f 6c |...\"..b|*." [col|
|00000180| 20 70 6f 73 20 6e 69 6c | 20 73 6b 69 70 2d 63 68 | pos nil| skip-ch|
|00000190| 61 72 73 2d 66 6f 72 77 | 61 72 64 20 22 20 09 22 |ars-forw|ard " ."|
|000001a0| 20 31 30 20 69 6e 64 65 | 6e 74 2d 74 6f 20 30 5d | 10 inde|nt-to 0]|
|000001b0| 20 34 29 29 0a 0a 28 64 | 65 66 75 6e 20 71 75 6f | 4))..(d|efun quo|
|000001c0| 74 65 64 2d 69 6e 73 65 | 72 74 20 28 61 72 67 29 |ted-inse|rt (arg)|
|000001d0| 20 22 5c 0a 52 65 61 64 | 20 6e 65 78 74 20 69 6e | "\.Read| next in|
|000001e0| 70 75 74 20 63 68 61 72 | 61 63 74 65 72 20 61 6e |put char|acter an|
|000001f0| 64 20 69 6e 73 65 72 74 | 20 69 74 2e 0a 55 73 65 |d insert| it..Use|
|00000200| 66 75 6c 20 66 6f 72 20 | 69 6e 73 65 72 74 69 6e |ful for |insertin|
|00000210| 67 20 63 6f 6e 74 72 6f | 6c 20 63 68 61 72 61 63 |g contro|l charac|
|00000220| 74 65 72 73 2e 0a 59 6f | 75 20 6d 61 79 20 61 6c |ters..Yo|u may al|
|00000230| 73 6f 20 74 79 70 65 20 | 75 70 20 74 6f 20 33 20 |so type |up to 3 |
|00000240| 6f 63 74 61 6c 20 64 69 | 67 69 74 73 2c 20 74 6f |octal di|gits, to|
|00000250| 20 69 6e 73 65 72 74 20 | 61 20 63 68 61 72 61 63 | insert |a charac|
|00000260| 74 65 72 20 77 69 74 68 | 20 74 68 61 74 20 63 6f |ter with| that co|
|00000270| 64 65 22 20 28 69 6e 74 | 65 72 61 63 74 69 76 65 |de" (int|eractive|
|00000280| 20 22 2a 70 22 29 20 28 | 62 79 74 65 2d 63 6f 64 | "*p") (|byte-cod|
|00000290| 65 20 22 c2 88 c3 20 18 | 09 c4 56 85 16 00 08 63 |e "... .|..V....c|
|000002a0| 88 09 53 89 11 88 82 05 | 00 29 87 22 20 5b 63 68 |..S.....|.)." [ch|
|000002b0| 61 72 20 61 72 67 20 6e | 69 6c 20 72 65 61 64 2d |ar arg n|il read-|
|000002c0| 71 75 6f 74 65 64 2d 63 | 68 61 72 20 30 5d 20 34 |quoted-c|har 0] 4|
|000002d0| 29 29 0a 0a 28 64 65 66 | 75 6e 20 64 65 6c 65 74 |))..(def|un delet|
|000002e0| 65 2d 69 6e 64 65 6e 74 | 61 74 69 6f 6e 20 28 26 |e-indent|ation (&|
|000002f0| 6f 70 74 69 6f 6e 61 6c | 20 61 72 67 29 20 22 5c |optional| arg) "\|
|00000300| 0a 4a 6f 69 6e 20 74 68 | 69 73 20 6c 69 6e 65 20 |.Join th|is line |
|00000310| 74 6f 20 70 72 65 76 69 | 6f 75 73 20 61 6e 64 20 |to previ|ous and |
|00000320| 66 69 78 20 75 70 20 77 | 68 69 74 65 73 70 61 63 |fix up w|hitespac|
|00000330| 65 20 61 74 20 6a 6f 69 | 6e 2e 0a 57 69 74 68 20 |e at joi|n..With |
|00000340| 61 72 67 75 6d 65 6e 74 | 2c 20 6a 6f 69 6e 20 74 |argument|, join t|
|00000350| 68 69 73 20 6c 69 6e 65 | 20 74 6f 20 66 6f 6c 6c |his line| to foll|
|00000360| 6f 77 69 6e 67 20 6c 69 | 6e 65 2e 22 20 28 69 6e |owing li|ne." (in|
|00000370| 74 65 72 61 63 74 69 76 | 65 20 22 2a 50 22 29 20 |teractiv|e "*P") |
|00000380| 28 62 79 74 65 2d 63 6f | 64 65 20 22 c1 88 c2 20 |(byte-co|de "... |
|00000390| 88 08 85 0c 00 c3 c4 21 | 88 68 c5 3d 85 1b 00 c6 |.......!|.h.=....|
|000003a0| 60 60 53 5c 22 88 c7 20 | 87 22 20 5b 61 72 67 20 |``S\".. |." [arg |
|000003b0| 6e 69 6c 20 62 65 67 69 | 6e 6e 69 6e 67 2d 6f 66 |nil begi|nning-of|
|000003c0| 2d 6c 69 6e 65 20 66 6f | 72 77 61 72 64 2d 6c 69 |-line fo|rward-li|
|000003d0| 6e 65 20 31 20 31 30 20 | 64 65 6c 65 74 65 2d 72 |ne 1 10 |delete-r|
|000003e0| 65 67 69 6f 6e 20 66 69 | 78 75 70 2d 77 68 69 74 |egion fi|xup-whit|
|000003f0| 65 73 70 61 63 65 5d 20 | 35 29 29 0a 0a 28 64 65 |espace] |5))..(de|
|00000400| 66 75 6e 20 66 69 78 75 | 70 2d 77 68 69 74 65 73 |fun fixu|p-whites|
|00000410| 70 61 63 65 20 6e 69 6c | 20 22 5c 0a 46 69 78 75 |pace nil| "\.Fixu|
|00000420| 70 20 77 68 69 74 65 20 | 73 70 61 63 65 20 62 65 |p white |space be|
|00000430| 74 77 65 65 6e 20 6f 62 | 6a 65 63 74 73 20 61 72 |tween ob|jects ar|
|00000440| 6f 75 6e 64 20 70 6f 69 | 6e 74 2e 0a 4c 65 61 76 |ound poi|nt..Leav|
|00000450| 65 20 6f 6e 65 20 73 70 | 61 63 65 20 6f 72 20 6e |e one sp|ace or n|
|00000460| 6f 6e 65 2c 20 61 63 63 | 6f 72 64 69 6e 67 20 74 |one, acc|ording t|
|00000470| 6f 20 74 68 65 20 63 6f | 6e 74 65 78 74 2e 22 20 |o the co|ntext." |
|00000480| 28 69 6e 74 65 72 61 63 | 74 69 76 65 20 22 2a 22 |(interac|tive "*"|
|00000490| 29 20 28 62 79 74 65 2d | 63 6f 64 65 20 22 c0 88 |) (byte-|code "..|
|000004a0| 8a c1 20 88 c2 c3 21 86 | 15 00 8a c4 c5 21 88 c2 |.. ...!.|.....!..|
|000004b0| c6 21 29 83 1c 00 c0 82 | 1e 00 c7 63 29 87 22 20 |.!).....|...c)." |
|000004c0| 5b 6e 69 6c 20 64 65 6c | 65 74 65 2d 68 6f 72 69 |[nil del|ete-hori|
|000004d0| 7a 6f 6e 74 61 6c 2d 73 | 70 61 63 65 20 6c 6f 6f |zontal-s|pace loo|
|000004e0| 6b 69 6e 67 2d 61 74 20 | 22 5e 5c 5c 7c 5c 5c 73 |king-at |"^\\|\\s|
|000004f0| 29 5c 5c 7c 24 22 20 66 | 6f 72 77 61 72 64 2d 63 |)\\|$" f|orward-c|
|00000500| 68 61 72 20 2d 31 20 22 | 5c 5c 73 28 5c 5c 7c 5c |har -1 "|\\s(\\|\|
|00000510| 5c 73 27 22 20 33 32 5d | 20 35 29 29 0a 0a 28 64 |\s'" 32]| 5))..(d|
|00000520| 65 66 75 6e 20 64 65 6c | 65 74 65 2d 68 6f 72 69 |efun del|ete-hori|
|00000530| 7a 6f 6e 74 61 6c 2d 73 | 70 61 63 65 20 6e 69 6c |zontal-s|pace nil|
|00000540| 20 22 5c 0a 44 65 6c 65 | 74 65 20 61 6c 6c 20 73 | "\.Dele|te all s|
|00000550| 70 61 63 65 73 20 61 6e | 64 20 74 61 62 73 20 61 |paces an|d tabs a|
|00000560| 72 6f 75 6e 64 20 70 6f | 69 6e 74 2e 22 20 28 69 |round po|int." (i|
|00000570| 6e 74 65 72 61 63 74 69 | 76 65 20 22 2a 22 29 20 |nteracti|ve "*") |
|00000580| 28 62 79 74 65 2d 63 6f | 64 65 20 22 c0 88 c1 c2 |(byte-co|de "....|
|00000590| 21 88 c3 60 c4 c2 21 88 | 60 5c 22 87 22 20 5b 6e |!..`..!.|`\"." [n|
|000005a0| 69 6c 20 73 6b 69 70 2d | 63 68 61 72 73 2d 62 61 |il skip-|chars-ba|
|000005b0| 63 6b 77 61 72 64 20 22 | 20 09 22 20 64 65 6c 65 |ckward "| ." dele|
|000005c0| 74 65 2d 72 65 67 69 6f | 6e 20 73 6b 69 70 2d 63 |te-regio|n skip-c|
|000005d0| 68 61 72 73 2d 66 6f 72 | 77 61 72 64 5d 20 35 29 |hars-for|ward] 5)|
|000005e0| 29 0a 0a 28 64 65 66 75 | 6e 20 6a 75 73 74 2d 6f |)..(defu|n just-o|
|000005f0| 6e 65 2d 73 70 61 63 65 | 20 6e 69 6c 20 22 5c 0a |ne-space| nil "\.|
|00000600| 44 65 6c 65 74 65 20 61 | 6c 6c 20 73 70 61 63 65 |Delete a|ll space|
|00000610| 73 20 61 6e 64 20 74 61 | 62 73 20 61 72 6f 75 6e |s and ta|bs aroun|
|00000620| 64 20 70 6f 69 6e 74 2c | 20 6c 65 61 76 69 6e 67 |d point,| leaving|
|00000630| 20 6f 6e 65 20 73 70 61 | 63 65 2e 22 20 28 69 6e | one spa|ce." (in|
|00000640| 74 65 72 61 63 74 69 76 | 65 20 22 2a 22 29 20 28 |teractiv|e "*") (|
|00000650| 62 79 74 65 2d 63 6f 64 | 65 20 22 c0 88 c1 c2 21 |byte-cod|e "....!|
|00000660| 88 67 c3 55 83 12 00 c4 | c5 21 82 14 00 c3 63 88 |.g.U....|.!....c.|
|00000670| c6 60 c7 c2 21 88 60 5c | 22 87 22 20 5b 6e 69 6c |.`..!.`\|"." [nil|
|00000680| 20 73 6b 69 70 2d 63 68 | 61 72 73 2d 62 61 63 6b | skip-ch|ars-back|
|00000690| 77 61 72 64 20 22 20 09 | 22 20 33 32 20 66 6f 72 |ward " .|" 32 for|
|000006a0| 77 61 72 64 2d 63 68 61 | 72 20 31 20 64 65 6c 65 |ward-cha|r 1 dele|
|000006b0| 74 65 2d 72 65 67 69 6f | 6e 20 73 6b 69 70 2d 63 |te-regio|n skip-c|
|000006c0| 68 61 72 73 2d 66 6f 72 | 77 61 72 64 5d 20 36 29 |hars-for|ward] 6)|
|000006d0| 29 0a 0a 28 64 65 66 75 | 6e 20 64 65 6c 65 74 65 |)..(defu|n delete|
|000006e0| 2d 62 6c 61 6e 6b 2d 6c | 69 6e 65 73 20 6e 69 6c |-blank-l|ines nil|
|000006f0| 20 22 5c 0a 4f 6e 20 62 | 6c 61 6e 6b 20 6c 69 6e | "\.On b|lank lin|
|00000700| 65 2c 20 64 65 6c 65 74 | 65 20 61 6c 6c 20 73 75 |e, delet|e all su|
|00000710| 72 72 6f 75 6e 64 69 6e | 67 20 62 6c 61 6e 6b 20 |rroundin|g blank |
|00000720| 6c 69 6e 65 73 2c 20 6c | 65 61 76 69 6e 67 20 6a |lines, l|eaving j|
|00000730| 75 73 74 20 6f 6e 65 2e | 0a 4f 6e 20 69 73 6f 6c |ust one.|.On isol|
|00000740| 61 74 65 64 20 62 6c 61 | 6e 6b 20 6c 69 6e 65 2c |ated bla|nk line,|
|00000750| 20 64 65 6c 65 74 65 20 | 74 68 61 74 20 6f 6e 65 | delete |that one|
|00000760| 2e 0a 4f 6e 20 6e 6f 6e | 62 6c 61 6e 6b 20 6c 69 |..On non|blank li|
|00000770| 6e 65 2c 20 64 65 6c 65 | 74 65 20 61 6c 6c 20 62 |ne, dele|te all b|
|00000780| 6c 61 6e 6b 20 6c 69 6e | 65 73 20 74 68 61 74 20 |lank lin|es that |
|00000790| 66 6f 6c 6c 6f 77 20 69 | 74 2e 22 20 28 69 6e 74 |follow i|t." (int|
|000007a0| 65 72 61 63 74 69 76 65 | 20 22 2a 22 29 20 28 62 |eractive| "*") (b|
|000007b0| 79 74 65 2d 63 6f 64 65 | 20 22 c2 88 c2 c2 19 18 |yte-code| "......|
|000007c0| 8a c4 20 88 c5 c6 21 89 | 10 88 08 85 27 00 c5 c7 |.. ...!.|....'...|
|000007d0| 21 3f 85 27 00 6f 86 27 | 00 c8 c9 21 88 c5 c6 21 |!?.'.o.'|...!...!|
|000007e0| 3f 89 11 29 88 08 85 4e | 00 c4 20 88 09 85 39 00 |?..)...N|.. ...9.|
|000007f0| c8 ca 21 88 cb 60 cc cd | c2 c3 23 83 4c 00 c8 ca |..!..`..|..#.L...|
|00000800| 21 88 60 82 4d 00 65 5c | 22 88 08 85 54 00 09 3f |!.`.M.e\|"...T..?|
|00000810| 85 74 00 8a ce 20 88 c8 | ca 21 88 cb 60 cf cd c2 |.t... ..|.!..`...|
|00000820| c3 23 83 71 00 c4 20 88 | 60 82 72 00 64 5c 22 29 |.#.q.. .|`.r.d\")|
|00000830| 2a 87 22 20 5b 74 68 69 | 73 62 6c 61 6e 6b 20 73 |*." [thi|sblank s|
|00000840| 69 6e 67 6c 65 62 6c 61 | 6e 6b 20 6e 69 6c 20 74 |inglebla|nk nil t|
|00000850| 20 62 65 67 69 6e 6e 69 | 6e 67 2d 6f 66 2d 6c 69 | beginni|ng-of-li|
|00000860| 6e 65 20 6c 6f 6f 6b 69 | 6e 67 2d 61 74 20 22 5b |ne looki|ng-at "[|
|00000870| 20 09 5d 2a 24 22 20 22 | 5b 20 09 5d 2a 0a 5b 20 | .]*$" "|[ .]*.[ |
|00000880| 09 5d 2a 24 22 20 66 6f | 72 77 61 72 64 2d 6c 69 |.]*$" fo|rward-li|
|00000890| 6e 65 20 2d 31 20 31 20 | 64 65 6c 65 74 65 2d 72 |ne -1 1 |delete-r|
|000008a0| 65 67 69 6f 6e 20 72 65 | 2d 73 65 61 72 63 68 2d |egion re|-search-|
|000008b0| 62 61 63 6b 77 61 72 64 | 20 22 5b 5e 20 09 0a 5d |backward| "[^ ..]|
|000008c0| 22 20 65 6e 64 2d 6f 66 | 2d 6c 69 6e 65 20 72 65 |" end-of|-line re|
|000008d0| 2d 73 65 61 72 63 68 2d | 66 6f 72 77 61 72 64 5d |-search-|forward]|
|000008e0| 20 31 38 29 29 0a 0a 28 | 64 65 66 75 6e 20 62 61 | 18))..(|defun ba|
|000008f0| 63 6b 2d 74 6f 2d 69 6e | 64 65 6e 74 61 74 69 6f |ck-to-in|dentatio|
|00000900| 6e 20 6e 69 6c 20 22 5c | 0a 4d 6f 76 65 20 70 6f |n nil "\|.Move po|
|00000910| 69 6e 74 20 74 6f 20 74 | 68 65 20 66 69 72 73 74 |int to t|he first|
|00000920| 20 6e 6f 6e 2d 77 68 69 | 74 65 73 70 61 63 65 20 | non-whi|tespace |
|00000930| 63 68 61 72 61 63 74 65 | 72 20 6f 6e 20 74 68 69 |characte|r on thi|
|00000940| 73 20 6c 69 6e 65 2e 22 | 20 28 69 6e 74 65 72 61 |s line."| (intera|
|00000950| 63 74 69 76 65 29 20 28 | 62 79 74 65 2d 63 6f 64 |ctive) (|byte-cod|
|00000960| 65 20 22 c0 88 c1 c2 21 | 88 c3 c4 21 87 22 20 5b |e "....!|...!." [|
|00000970| 6e 69 6c 20 62 65 67 69 | 6e 6e 69 6e 67 2d 6f 66 |nil begi|nning-of|
|00000980| 2d 6c 69 6e 65 20 31 20 | 73 6b 69 70 2d 63 68 61 |-line 1 |skip-cha|
|00000990| 72 73 2d 66 6f 72 77 61 | 72 64 20 22 20 09 22 5d |rs-forwa|rd " ."]|
|000009a0| 20 33 29 29 0a 0a 28 64 | 65 66 75 6e 20 6e 65 77 | 3))..(d|efun new|
|000009b0| 6c 69 6e 65 2d 61 6e 64 | 2d 69 6e 64 65 6e 74 20 |line-and|-indent |
|000009c0| 6e 69 6c 20 22 5c 0a 49 | 6e 73 65 72 74 20 61 20 |nil "\.I|nsert a |
|000009d0| 6e 65 77 6c 69 6e 65 2c | 20 74 68 65 6e 20 69 6e |newline,| then in|
|000009e0| 64 65 6e 74 20 61 63 63 | 6f 72 64 69 6e 67 20 74 |dent acc|ording t|
|000009f0| 6f 20 6d 61 6a 6f 72 20 | 6d 6f 64 65 2e 0a 49 6e |o major |mode..In|
|00000a00| 64 65 6e 74 61 74 69 6f | 6e 20 69 73 20 64 6f 6e |dentatio|n is don|
|00000a10| 65 20 75 73 69 6e 67 20 | 74 68 65 20 63 75 72 72 |e using |the curr|
|00000a20| 65 6e 74 20 69 6e 64 65 | 6e 74 2d 6c 69 6e 65 2d |ent inde|nt-line-|
|00000a30| 66 75 6e 63 74 69 6f 6e | 2e 0a 49 6e 20 70 72 6f |function|..In pro|
|00000a40| 67 72 61 6d 6d 69 6e 67 | 20 6c 61 6e 67 75 61 67 |gramming| languag|
|00000a50| 65 20 6d 6f 64 65 73 2c | 20 74 68 69 73 20 69 73 |e modes,| this is|
|00000a60| 20 74 68 65 20 73 61 6d | 65 20 61 73 20 54 41 42 | the sam|e as TAB|
|00000a70| 2e 0a 49 6e 20 73 6f 6d | 65 20 74 65 78 74 20 6d |..In som|e text m|
|00000a80| 6f 64 65 73 2c 20 77 68 | 65 72 65 20 54 41 42 20 |odes, wh|ere TAB |
|00000a90| 69 6e 73 65 72 74 73 20 | 61 20 74 61 62 2c 20 74 |inserts |a tab, t|
|00000aa0| 68 69 73 20 69 6e 64 65 | 6e 74 73 20 74 6f 20 74 |his inde|nts to t|
|00000ab0| 68 65 0a 73 70 65 63 69 | 66 69 65 64 20 6c 65 66 |he.speci|fied lef|
|00000ac0| 74 2d 6d 61 72 67 69 6e | 20 63 6f 6c 75 6d 6e 2e |t-margin| column.|
|00000ad0| 22 20 28 69 6e 74 65 72 | 61 63 74 69 76 65 20 22 |" (inter|active "|
|00000ae0| 2a 22 29 20 28 62 79 74 | 65 2d 63 6f 64 65 20 22 |*") (byt|e-code "|
|00000af0| c0 88 c1 60 c2 c3 21 88 | 60 5c 22 88 c4 63 88 c5 |...`..!.|`\"..c..|
|00000b00| 20 87 22 20 5b 6e 69 6c | 20 64 65 6c 65 74 65 2d | ." [nil| delete-|
|00000b10| 72 65 67 69 6f 6e 20 73 | 6b 69 70 2d 63 68 61 72 |region s|kip-char|
|00000b20| 73 2d 62 61 63 6b 77 61 | 72 64 20 22 20 09 22 20 |s-backwa|rd " ." |
|00000b30| 31 30 20 69 6e 64 65 6e | 74 2d 61 63 63 6f 72 64 |10 inden|t-accord|
|00000b40| 69 6e 67 2d 74 6f 2d 6d | 6f 64 65 5d 20 34 29 29 |ing-to-m|ode] 4))|
|00000b50| 0a 0a 28 64 65 66 75 6e | 20 72 65 69 6e 64 65 6e |..(defun| reinden|
|00000b60| 74 2d 74 68 65 6e 2d 6e | 65 77 6c 69 6e 65 2d 61 |t-then-n|ewline-a|
|00000b70| 6e 64 2d 69 6e 64 65 6e | 74 20 6e 69 6c 20 22 5c |nd-inden|t nil "\|
|00000b80| 0a 52 65 69 6e 64 65 6e | 74 20 63 75 72 72 65 6e |.Reinden|t curren|
|00000b90| 74 20 6c 69 6e 65 2c 20 | 69 6e 73 65 72 74 20 6e |t line, |insert n|
|00000ba0| 65 77 6c 69 6e 65 2c 20 | 74 68 65 6e 20 69 6e 64 |ewline, |then ind|
|00000bb0| 65 6e 74 20 74 68 65 20 | 6e 65 77 20 6c 69 6e 65 |ent the |new line|
|00000bc0| 2e 0a 49 6e 64 65 6e 74 | 61 74 69 6f 6e 20 6f 66 |..Indent|ation of|
|00000bd0| 20 62 6f 74 68 20 6c 69 | 6e 65 73 20 69 73 20 64 | both li|nes is d|
|00000be0| 6f 6e 65 20 61 63 63 6f | 72 64 69 6e 67 20 74 6f |one acco|rding to|
|00000bf0| 20 74 68 65 20 63 75 72 | 72 65 6e 74 20 6d 61 6a | the cur|rent maj|
|00000c00| 6f 72 20 6d 6f 64 65 2c | 0a 77 68 69 63 68 20 6d |or mode,|.which m|
|00000c10| 65 61 6e 73 20 74 68 61 | 74 20 74 68 65 20 63 75 |eans tha|t the cu|
|00000c20| 72 72 65 6e 74 20 76 61 | 6c 75 65 20 6f 66 20 69 |rrent va|lue of i|
|00000c30| 6e 64 65 6e 74 2d 6c 69 | 6e 65 2d 66 75 6e 63 74 |ndent-li|ne-funct|
|00000c40| 69 6f 6e 20 69 73 20 63 | 61 6c 6c 65 64 2e 0a 49 |ion is c|alled..I|
|00000c50| 6e 20 70 72 6f 67 72 61 | 6d 6d 69 6e 67 20 6c 61 |n progra|mming la|
|00000c60| 6e 67 75 61 67 65 20 6d | 6f 64 65 73 2c 20 74 68 |nguage m|odes, th|
|00000c70| 69 73 20 69 73 20 74 68 | 65 20 73 61 6d 65 20 61 |is is th|e same a|
|00000c80| 73 20 54 41 42 2e 0a 49 | 6e 20 73 6f 6d 65 20 74 |s TAB..I|n some t|
|00000c90| 65 78 74 20 6d 6f 64 65 | 73 2c 20 77 68 65 72 65 |ext mode|s, where|
|00000ca0| 20 54 41 42 20 69 6e 73 | 65 72 74 73 20 61 20 74 | TAB ins|erts a t|
|00000cb0| 61 62 2c 20 74 68 69 73 | 20 69 6e 64 65 6e 74 73 |ab, this| indents|
|00000cc0| 20 74 6f 20 74 68 65 0a | 73 70 65 63 69 66 69 65 | to the.|specifie|
|00000cd0| 64 20 6c 65 66 74 2d 6d | 61 72 67 69 6e 20 63 6f |d left-m|argin co|
|00000ce0| 6c 75 6d 6e 2e 22 20 28 | 69 6e 74 65 72 61 63 74 |lumn." (|interact|
|00000cf0| 69 76 65 20 22 2a 22 29 | 20 28 62 79 74 65 2d 63 |ive "*")| (byte-c|
|00000d00| 6f 64 65 20 22 c0 88 8a | c1 60 c2 c3 21 88 60 5c |ode "...|.`..!.`\|
|00000d10| 22 88 c4 20 29 88 c5 63 | 88 c4 20 87 22 20 5b 6e |".. )..c|.. ." [n|
|00000d20| 69 6c 20 64 65 6c 65 74 | 65 2d 72 65 67 69 6f 6e |il delet|e-region|
|00000d30| 20 73 6b 69 70 2d 63 68 | 61 72 73 2d 62 61 63 6b | skip-ch|ars-back|
|00000d40| 77 61 72 64 20 22 20 09 | 22 20 69 6e 64 65 6e 74 |ward " .|" indent|
|00000d50| 2d 61 63 63 6f 72 64 69 | 6e 67 2d 74 6f 2d 6d 6f |-accordi|ng-to-mo|
|00000d60| 64 65 20 31 30 5d 20 35 | 29 29 0a 0a 28 64 65 66 |de 10] 5|))..(def|
|00000d70| 75 6e 20 6b 69 6c 6c 2d | 66 6f 72 77 61 72 64 2d |un kill-|forward-|
|00000d80| 63 68 61 72 73 20 28 61 | 72 67 29 20 28 62 79 74 |chars (a|rg) (byt|
|00000d90| 65 2d 63 6f 64 65 20 22 | 08 3c 85 09 00 08 40 89 |e-code "|.<....@.|
|00000da0| 10 88 08 c1 3d 85 13 00 | c2 89 10 88 c3 60 60 08 |....=...|.....``.|
|00000db0| 5c 5c 5c 22 87 22 20 5b | 61 72 67 20 2d 20 2d 31 |\\\"." [|arg - -1|
|00000dc0| 20 6b 69 6c 6c 2d 72 65 | 67 69 6f 6e 5d 20 34 29 | kill-re|gion] 4)|
|00000dd0| 29 0a 0a 28 64 65 66 75 | 6e 20 6b 69 6c 6c 2d 62 |)..(defu|n kill-b|
|00000de0| 61 63 6b 77 61 72 64 2d | 63 68 61 72 73 20 28 61 |ackward-|chars (a|
|00000df0| 72 67 29 20 28 62 79 74 | 65 2d 63 6f 64 65 20 22 |rg) (byt|e-code "|
|00000e00| 08 3c 85 09 00 08 40 89 | 10 88 08 c1 3d 85 13 00 |.<....@.|....=...|
|00000e10| c2 89 10 88 c3 60 60 08 | 5a 5c 22 87 22 20 5b 61 |.....``.|Z\"." [a|
|00000e20| 72 67 20 2d 20 2d 31 20 | 6b 69 6c 6c 2d 72 65 67 |rg - -1 |kill-reg|
|00000e30| 69 6f 6e 5d 20 34 29 29 | 0a 0a 28 64 65 66 75 6e |ion] 4))|..(defun|
|00000e40| 20 62 61 63 6b 77 61 72 | 64 2d 64 65 6c 65 74 65 | backwar|d-delete|
|00000e50| 2d 63 68 61 72 2d 75 6e | 74 61 62 69 66 79 20 28 |-char-un|tabify (|
|00000e60| 61 72 67 20 26 6f 70 74 | 69 6f 6e 61 6c 20 6b 69 |arg &opt|ional ki|
|00000e70| 6c 6c 70 29 20 22 5c 0a | 44 65 6c 65 74 65 20 63 |llp) "\.|Delete c|
|00000e80| 68 61 72 61 63 74 65 72 | 73 20 62 61 63 6b 77 61 |haracter|s backwa|
|00000e90| 72 64 2c 20 63 68 61 6e | 67 69 6e 67 20 74 61 62 |rd, chan|ging tab|
|00000ea0| 73 20 69 6e 74 6f 20 73 | 70 61 63 65 73 2e 0a 44 |s into s|paces..D|
|00000eb0| 65 6c 65 74 65 20 41 52 | 47 20 63 68 61 72 73 2c |elete AR|G chars,|
|00000ec0| 20 61 6e 64 20 6b 69 6c | 6c 20 28 73 61 76 65 20 | and kil|l (save |
|00000ed0| 69 6e 20 6b 69 6c 6c 20 | 72 69 6e 67 29 20 69 66 |in kill |ring) if|
|00000ee0| 20 4b 49 4c 4c 50 20 69 | 73 20 6e 6f 6e 2d 6e 69 | KILLP i|s non-ni|
|00000ef0| 6c 2e 0a 49 6e 74 65 72 | 61 63 74 69 76 65 6c 79 |l..Inter|actively|
|00000f00| 2c 20 41 52 47 20 69 73 | 20 74 68 65 20 70 72 65 |, ARG is| the pre|
|00000f10| 66 69 78 20 61 72 67 20 | 28 64 65 66 61 75 6c 74 |fix arg |(default|
|00000f20| 20 31 29 0a 61 6e 64 20 | 4b 49 4c 4c 50 20 69 73 | 1).and |KILLP is|
|00000f30| 20 74 20 69 66 20 70 72 | 65 66 69 78 20 61 72 67 | t if pr|efix arg|
|00000f40| 20 69 73 20 77 61 73 20 | 73 70 65 63 69 66 69 65 | is was |specifie|
|00000f50| 64 2e 22 20 28 69 6e 74 | 65 72 61 63 74 69 76 65 |d." (int|eractive|
|00000f60| 20 22 2a 70 0a 50 22 29 | 20 28 62 79 74 65 2d 63 | "*p.P")| (byte-c|
|00000f70| 6f 64 65 20 22 c4 88 09 | 18 8a 08 c5 56 85 0d 00 |ode "...|....V...|
|00000f80| 6f 3f 85 38 00 68 c6 55 | 85 2b 00 69 1a c7 c8 21 |o?.8.h.U|.+.i...!|
|00000f90| 88 0a 69 5a 89 12 88 c9 | ca 0a 5c 22 88 cb cc 21 |..iZ....|..\"...!|
|00000fa0| 29 88 c7 c8 21 88 08 53 | 89 10 88 82 05 00 29 29 |)...!..S|......))|
|00000fb0| 88 cd 09 0b 5c 22 87 22 | 20 5b 63 6f 75 6e 74 20 |....\"."| [count |
|00000fc0| 61 72 67 20 63 6f 6c 20 | 6b 69 6c 6c 70 20 6e 69 |arg col |killp ni|
|00000fd0| 6c 20 30 20 39 20 66 6f | 72 77 61 72 64 2d 63 68 |l 0 9 fo|rward-ch|
|00000fe0| 61 72 20 2d 31 20 69 6e | 73 65 72 74 2d 63 68 61 |ar -1 in|sert-cha|
|00000ff0| 72 20 33 32 20 64 65 6c | 65 74 65 2d 63 68 61 72 |r 32 del|ete-char|
|00001000| 20 31 20 64 65 6c 65 74 | 65 2d 62 61 63 6b 77 61 | 1 delet|e-backwa|
|00001010| 72 64 2d 63 68 61 72 5d | 20 37 29 29 0a 0a 28 64 |rd-char]| 7))..(d|
|00001020| 65 66 75 6e 20 7a 61 70 | 2d 74 6f 2d 63 68 61 72 |efun zap|-to-char|
|00001030| 20 28 61 72 67 20 63 68 | 61 72 29 20 22 5c 0a 4b | (arg ch|ar) "\.K|
|00001040| 69 6c 6c 20 75 70 20 74 | 6f 20 28 62 75 74 20 6e |ill up t|o (but n|
|00001050| 6f 74 20 69 6e 63 6c 75 | 64 69 6e 67 29 20 41 52 |ot inclu|ding) AR|
|00001060| 47 27 74 68 20 6f 63 63 | 75 72 72 65 6e 63 65 20 |G'th occ|urrence |
|00001070| 6f 66 20 43 48 41 52 2e | 0a 47 6f 65 73 20 62 61 |of CHAR.|.Goes ba|
|00001080| 63 6b 77 61 72 64 20 69 | 66 20 41 52 47 20 69 73 |ckward i|f ARG is|
|00001090| 20 6e 65 67 61 74 69 76 | 65 3b 20 67 6f 65 73 20 | negativ|e; goes |
|000010a0| 74 6f 20 65 6e 64 20 6f | 66 20 62 75 66 66 65 72 |to end o|f buffer|
|000010b0| 20 69 66 20 43 48 41 52 | 20 6e 6f 74 20 66 6f 75 | if CHAR| not fou|
|000010c0| 6e 64 2e 22 20 28 69 6e | 74 65 72 61 63 74 69 76 |nd." (in|teractiv|
|000010d0| 65 20 22 2a 70 0a 63 5a | 61 70 20 74 6f 20 63 68 |e "*p.cZ|ap to ch|
|000010e0| 61 72 3a 20 22 29 20 28 | 62 79 74 65 2d 63 6f 64 |ar: ") (|byte-cod|
|000010f0| 65 20 22 c1 88 c4 60 c5 | c6 08 21 c1 c2 0b 24 83 |e "...`.|..!...$.|
|00001100| 5c 22 00 0b c7 56 83 1a | 00 60 53 82 1c 00 60 54 |\"...V..|.`S...`T|
|00001110| 62 88 60 82 2d 00 0b c7 | 56 83 2c 00 64 82 2d 00 |b.`.-...|V.,.d.-.|
|00001120| 65 5c 22 87 22 20 5b 63 | 68 61 72 20 6e 69 6c 20 |e\"." [c|har nil |
|00001130| 74 20 61 72 67 20 6b 69 | 6c 6c 2d 72 65 67 69 6f |t arg ki|ll-regio|
|00001140| 6e 20 73 65 61 72 63 68 | 2d 66 6f 72 77 61 72 64 |n search|-forward|
|00001150| 20 63 68 61 72 2d 74 6f | 2d 73 74 72 69 6e 67 20 | char-to|-string |
|00001160| 30 5d 20 38 29 29 0a 0a | 28 64 65 66 75 6e 20 62 |0] 8))..|(defun b|
|00001170| 65 67 69 6e 6e 69 6e 67 | 2d 6f 66 2d 62 75 66 66 |eginning|-of-buff|
|00001180| 65 72 20 28 26 6f 70 74 | 69 6f 6e 61 6c 20 61 72 |er (&opt|ional ar|
|00001190| 67 29 20 22 5c 0a 4d 6f | 76 65 20 70 6f 69 6e 74 |g) "\.Mo|ve point|
|000011a0| 20 74 6f 20 74 68 65 20 | 62 65 67 69 6e 6e 69 6e | to the |beginnin|
|000011b0| 67 20 6f 66 20 74 68 65 | 20 62 75 66 66 65 72 3b |g of the| buffer;|
|000011c0| 20 6c 65 61 76 65 20 6d | 61 72 6b 20 61 74 20 70 | leave m|ark at p|
|000011d0| 72 65 76 69 6f 75 73 20 | 70 6f 73 69 74 69 6f 6e |revious |position|
|000011e0| 2e 0a 57 69 74 68 20 61 | 72 67 20 4e 2c 20 70 75 |..With a|rg N, pu|
|000011f0| 74 20 70 6f 69 6e 74 20 | 4e 2f 31 30 20 6f 66 20 |t point |N/10 of |
|00001200| 74 68 65 20 77 61 79 20 | 66 72 6f 6d 20 74 68 65 |the way |from the|
|00001210| 20 74 72 75 65 20 62 65 | 67 69 6e 6e 69 6e 67 2e | true be|ginning.|
|00001220| 0a 44 6f 6e 27 74 20 75 | 73 65 20 74 68 69 73 20 |.Don't u|se this |
|00001230| 69 6e 20 4c 69 73 70 20 | 70 72 6f 67 72 61 6d 73 |in Lisp |programs|
|00001240| 21 0a 28 67 6f 74 6f 2d | 63 68 61 72 20 28 70 6f |!.(goto-|char (po|
|00001250| 69 6e 74 2d 6d 69 6e 29 | 29 20 69 73 20 66 61 73 |int-min)|) is fas|
|00001260| 74 65 72 20 61 6e 64 20 | 64 6f 65 73 20 6e 6f 74 |ter and |does not|
|00001270| 20 73 65 74 20 74 68 65 | 20 6d 61 72 6b 2e 22 20 | set the| mark." |
|00001280| 28 69 6e 74 65 72 61 63 | 74 69 76 65 20 22 50 22 |(interac|tive "P"|
|00001290| 29 20 28 62 79 74 65 2d | 63 6f 64 65 20 22 c1 88 |) (byte-|code "..|
|000012a0| c2 20 88 08 83 2c 00 c3 | 20 c4 56 83 1d 00 c5 c6 |. ...,..| .V.....|
|000012b0| 08 21 c7 c3 20 c8 5c 22 | 5c 22 82 29 00 c7 c8 c5 |.!.. .\"|\".)....|
|000012c0| c3 20 c6 08 21 5c 22 5c | 5c c8 5c 22 82 2d 00 65 |. ..!\"\|\.\".-.e|
|000012d0| 62 88 08 85 36 00 c9 ca | 21 87 22 20 5b 61 72 67 |b...6...|!." [arg|
|000012e0| 20 6e 69 6c 20 70 75 73 | 68 2d 6d 61 72 6b 20 62 | nil pus|h-mark b|
|000012f0| 75 66 66 65 72 2d 73 69 | 7a 65 20 31 30 30 30 30 |uffer-si|ze 10000|
|00001300| 20 2a 20 70 72 65 66 69 | 78 2d 6e 75 6d 65 72 69 | * prefi|x-numeri|
|00001310| 63 2d 76 61 6c 75 65 20 | 2f 20 31 30 20 66 6f 72 |c-value |/ 10 for|
|00001320| 77 61 72 64 2d 6c 69 6e | 65 20 31 5d 20 31 33 29 |ward-lin|e 1] 13)|
|00001330| 29 0a 0a 28 64 65 66 75 | 6e 20 65 6e 64 2d 6f 66 |)..(defu|n end-of|
|00001340| 2d 62 75 66 66 65 72 20 | 28 26 6f 70 74 69 6f 6e |-buffer |(&option|
|00001350| 61 6c 20 61 72 67 29 20 | 22 5c 0a 4d 6f 76 65 20 |al arg) |"\.Move |
|00001360| 70 6f 69 6e 74 20 74 6f | 20 74 68 65 20 65 6e 64 |point to| the end|
|00001370| 20 6f 66 20 74 68 65 20 | 62 75 66 66 65 72 3b 20 | of the |buffer; |
|00001380| 6c 65 61 76 65 20 6d 61 | 72 6b 20 61 74 20 70 72 |leave ma|rk at pr|
|00001390| 65 76 69 6f 75 73 20 70 | 6f 73 69 74 69 6f 6e 2e |evious p|osition.|
|000013a0| 0a 57 69 74 68 20 61 72 | 67 20 4e 2c 20 70 75 74 |.With ar|g N, put|
|000013b0| 20 70 6f 69 6e 74 20 4e | 2f 31 30 20 6f 66 20 74 | point N|/10 of t|
|000013c0| 68 65 20 77 61 79 20 66 | 72 6f 6d 20 74 68 65 20 |he way f|rom the |
|000013d0| 74 72 75 65 20 65 6e 64 | 2e 0a 44 6f 6e 27 74 20 |true end|..Don't |
|000013e0| 75 73 65 20 74 68 69 73 | 20 69 6e 20 4c 69 73 70 |use this| in Lisp|
|000013f0| 20 70 72 6f 67 72 61 6d | 73 21 0a 28 67 6f 74 6f | program|s!.(goto|
|00001400| 2d 63 68 61 72 20 28 70 | 6f 69 6e 74 2d 6d 61 78 |-char (p|oint-max|
|00001410| 29 29 20 69 73 20 66 61 | 73 74 65 72 20 61 6e 64 |)) is fa|ster and|
|00001420| 20 64 6f 65 73 20 6e 6f | 74 20 73 65 74 20 74 68 | does no|t set th|
|00001430| 65 20 6d 61 72 6b 2e 22 | 20 28 69 6e 74 65 72 61 |e mark."| (intera|
|00001440| 63 74 69 76 65 20 22 50 | 22 29 20 28 62 79 74 65 |ctive "P|") (byte|
|00001450| 2d 63 6f 64 65 20 22 c1 | 88 c2 20 88 08 83 2e 00 |-code ".|.. .....|
|00001460| c3 20 54 c3 20 c4 56 83 | 20 00 c5 c6 08 21 c7 c3 |. T. .V.| ....!..|
|00001470| 20 c8 5c 22 5c 22 82 2a | 00 c7 c5 c3 20 c6 08 21 | .\"\".*|.... ..!|
|00001480| 5c 22 c8 5c 22 5a 82 2f | 00 64 62 88 08 85 38 00 |\".\"Z./|.db...8.|
|00001490| c9 ca 21 87 22 20 5b 61 | 72 67 20 6e 69 6c 20 70 |..!." [a|rg nil p|
|000014a0| 75 73 68 2d 6d 61 72 6b | 20 62 75 66 66 65 72 2d |ush-mark| buffer-|
|000014b0| 73 69 7a 65 20 31 30 30 | 30 30 20 2a 20 70 72 65 |size 100|00 * pre|
|000014c0| 66 69 78 2d 6e 75 6d 65 | 72 69 63 2d 76 61 6c 75 |fix-nume|ric-valu|
|000014d0| 65 20 2f 20 31 30 20 66 | 6f 72 77 61 72 64 2d 6c |e / 10 f|orward-l|
|000014e0| 69 6e 65 20 31 5d 20 31 | 34 29 29 0a 0a 28 64 65 |ine 1] 1|4))..(de|
|000014f0| 66 75 6e 20 6d 61 72 6b | 2d 77 68 6f 6c 65 2d 62 |fun mark|-whole-b|
|00001500| 75 66 66 65 72 20 6e 69 | 6c 20 22 5c 0a 50 75 74 |uffer ni|l "\.Put|
|00001510| 20 70 6f 69 6e 74 20 61 | 74 20 62 65 67 69 6e 6e | point a|t beginn|
|00001520| 69 6e 67 20 61 6e 64 20 | 6d 61 72 6b 20 61 74 20 |ing and |mark at |
|00001530| 65 6e 64 20 6f 66 20 62 | 75 66 66 65 72 2e 22 20 |end of b|uffer." |
|00001540| 28 69 6e 74 65 72 61 63 | 74 69 76 65 29 20 28 62 |(interac|tive) (b|
|00001550| 79 74 65 2d 63 6f 64 65 | 20 22 c0 88 c1 60 21 88 |yte-code| "...`!.|
|00001560| c1 64 21 88 65 62 87 22 | 20 5b 6e 69 6c 20 70 75 |.d!.eb."| [nil pu|
|00001570| 73 68 2d 6d 61 72 6b 5d | 20 33 29 29 0a 0a 28 64 |sh-mark]| 3))..(d|
|00001580| 65 66 75 6e 20 63 6f 75 | 6e 74 2d 6c 69 6e 65 73 |efun cou|nt-lines|
|00001590| 2d 72 65 67 69 6f 6e 20 | 28 73 74 61 72 74 20 65 |-region |(start e|
|000015a0| 6e 64 29 20 22 5c 0a 50 | 72 69 6e 74 20 6e 75 6d |nd) "\.P|rint num|
|000015b0| 62 65 72 20 6f 66 20 6c | 69 6e 65 73 20 69 6e 20 |ber of l|ines in |
|000015c0| 74 68 65 20 72 65 67 69 | 6f 6e 2e 22 20 28 69 6e |the regi|on." (in|
|000015d0| 74 65 72 61 63 74 69 76 | 65 20 22 72 22 29 20 28 |teractiv|e "r") (|
|000015e0| 62 79 74 65 2d 63 6f 64 | 65 20 22 c2 88 c3 c4 c5 |byte-cod|e ".....|
|000015f0| 08 09 5c 22 5c 22 87 22 | 20 5b 73 74 61 72 74 20 |..\"\"."| [start |
|00001600| 65 6e 64 20 6e 69 6c 20 | 6d 65 73 73 61 67 65 20 |end nil |message |
|00001610| 22 52 65 67 69 6f 6e 20 | 68 61 73 20 25 64 20 6c |"Region |has %d l|
|00001620| 69 6e 65 73 22 20 63 6f | 75 6e 74 2d 6c 69 6e 65 |ines" co|unt-line|
|00001630| 73 5d 20 35 29 29 0a 0a | 28 64 65 66 75 6e 20 77 |s] 5))..|(defun w|
|00001640| 68 61 74 2d 6c 69 6e 65 | 20 6e 69 6c 20 22 5c 0a |hat-line| nil "\.|
|00001650| 50 72 69 6e 74 20 74 68 | 65 20 63 75 72 72 65 6e |Print th|e curren|
|00001660| 74 20 6c 69 6e 65 20 6e | 75 6d 62 65 72 20 28 69 |t line n|umber (i|
|00001670| 6e 20 74 68 65 20 62 75 | 66 66 65 72 29 20 6f 66 |n the bu|ffer) of|
|00001680| 20 70 6f 69 6e 74 2e 22 | 20 28 69 6e 74 65 72 61 | point."| (intera|
|00001690| 63 74 69 76 65 29 20 28 | 62 79 74 65 2d 63 6f 64 |ctive) (|byte-cod|
|000016a0| 65 20 22 c0 88 8c c1 20 | 88 8a c2 20 88 c3 c4 c5 |e ".... |... ....|
|000016b0| c6 60 5c 22 54 5c 22 29 | 29 87 22 20 5b 6e 69 6c |.`\"T\")|)." [nil|
|000016c0| 20 77 69 64 65 6e 20 62 | 65 67 69 6e 6e 69 6e 67 | widen b|eginning|
|000016d0| 2d 6f 66 2d 6c 69 6e 65 | 20 6d 65 73 73 61 67 65 |-of-line| message|
|000016e0| 20 22 4c 69 6e 65 20 25 | 64 22 20 63 6f 75 6e 74 | "Line %|d" count|
|000016f0| 2d 6c 69 6e 65 73 20 31 | 5d 20 37 29 29 0a 0a 28 |-lines 1|] 7))..(|
|00001700| 64 65 66 75 6e 20 63 6f | 75 6e 74 2d 6c 69 6e 65 |defun co|unt-line|
|00001710| 73 20 28 73 74 61 72 74 | 20 65 6e 64 29 20 22 5c |s (start| end) "\|
|00001720| 0a 52 65 74 75 72 6e 20 | 6e 75 6d 62 65 72 20 6f |.Return |number o|
|00001730| 66 20 6e 65 77 6c 69 6e | 65 73 20 62 65 74 77 65 |f newlin|es betwe|
|00001740| 65 6e 20 53 54 41 52 54 | 20 61 6e 64 20 45 4e 44 |en START| and END|
|00001750| 2e 22 20 28 62 79 74 65 | 2d 63 6f 64 65 20 22 8a |." (byte|-code ".|
|00001760| 8c c2 08 09 5c 22 88 65 | 62 88 c3 20 c4 c3 20 21 |....\".e|b.. .. !|
|00001770| 5a 29 29 87 22 20 5b 73 | 74 61 72 74 20 65 6e 64 |Z))." [s|tart end|
|00001780| 20 6e 61 72 72 6f 77 2d | 74 6f 2d 72 65 67 69 6f | narrow-|to-regio|
|00001790| 6e 20 62 75 66 66 65 72 | 2d 73 69 7a 65 20 66 6f |n buffer|-size fo|
|000017a0| 72 77 61 72 64 2d 6c 69 | 6e 65 5d 20 36 29 29 0a |rward-li|ne] 6)).|
|000017b0| 0a 28 64 65 66 75 6e 20 | 77 68 61 74 2d 63 75 72 |.(defun |what-cur|
|000017c0| 73 6f 72 2d 70 6f 73 69 | 74 69 6f 6e 20 6e 69 6c |sor-posi|tion nil|
|000017d0| 20 22 5c 0a 50 72 69 6e | 74 20 69 6e 66 6f 20 6f | "\.Prin|t info o|
|000017e0| 6e 20 63 75 72 73 6f 72 | 20 70 6f 73 69 74 69 6f |n cursor| positio|
|000017f0| 6e 20 28 6f 6e 20 73 63 | 72 65 65 6e 20 61 6e 64 |n (on sc|reen and|
|00001800| 20 77 69 74 68 69 6e 20 | 62 75 66 66 65 72 29 2e | within |buffer).|
|00001810| 22 20 28 69 6e 74 65 72 | 61 63 74 69 76 65 29 20 |" (inter|active) |
|00001820| 28 62 79 74 65 2d 63 6f | 64 65 20 22 c8 88 67 18 |(byte-co|de "..g.|
|00001830| 65 19 64 1a 60 1b c9 20 | 1c 0c ca 56 83 25 00 cb |e.d.`.. |...V.%..|
|00001840| cb 0c cc 5c 22 0b 53 5c | 5c cb 0c cd 5c 22 ce 5d |...\".S\|\...\".]|
|00001850| 5c 22 82 34 00 cb cb 0c | cf 5c 22 d0 cd 0b 53 5c |\".4....|.\"...S\|
|00001860| 22 5c 5c 0c ce 5d 5c 22 | 1d d1 20 d2 55 83 40 00 |"\\..]\"|.. .U.@.|
|00001870| d3 82 45 00 d4 d5 d1 20 | 5c 22 1e 06 69 1e 07 0b |..E.... |\"..i...|
|00001880| 0a 55 83 7d 00 d6 09 ce | 5c 22 86 5c 5c 00 d6 0a |.U.}....|\".\\...|
|00001890| 0c 54 5c 22 83 6f 00 d7 | d8 0b 0c 0d 09 0a 0e 07 |.T\".o..|........|
|000018a0| 0e 06 26 08 82 7a 00 d7 | d9 0b 0c 0d 0e 07 0e 06 |..&..z..|........|
|000018b0| 26 06 82 af 00 d6 09 ce | 5c 22 86 89 00 d6 0a 0c |&.......|\"......|
|000018c0| 54 5c 22 83 a0 00 d7 da | db 08 21 08 0b 0c 0d 09 |T\".....|..!.....|
|000018d0| 0a 0e 07 0e 06 26 0a 82 | af 00 d7 dc db 08 21 08 |.....&..|......!.|
|000018e0| 0b 0c 0d 0e 07 0e 06 26 | 08 2e 08 87 22 20 5b 63 |.......&|...." [c|
|000018f0| 68 61 72 20 62 65 67 20 | 65 6e 64 20 70 6f 73 20 |har beg |end pos |
|00001900| 74 6f 74 61 6c 20 70 65 | 72 63 65 6e 74 20 68 73 |total pe|rcent hs|
|00001910| 63 72 6f 6c 6c 20 63 6f | 6c 20 6e 69 6c 20 62 75 |croll co|l nil bu|
|00001920| 66 66 65 72 2d 73 69 7a | 65 20 35 30 30 30 30 20 |ffer-siz|e 50000 |
|00001930| 2f 20 32 30 30 20 31 30 | 30 20 31 20 32 20 2a 20 |/ 200 10|0 1 2 * |
|00001940| 77 69 6e 64 6f 77 2d 68 | 73 63 72 6f 6c 6c 20 30 |window-h|scroll 0|
|00001950| 20 22 22 20 66 6f 72 6d | 61 74 20 22 20 48 73 63 | "" form|at " Hsc|
|00001960| 72 6f 6c 6c 3d 25 64 22 | 20 2f 3d 20 6d 65 73 73 |roll=%d"| /= mess|
|00001970| 61 67 65 20 22 70 6f 69 | 6e 74 3d 25 64 20 6f 66 |age "poi|nt=%d of|
|00001980| 20 25 64 28 25 64 25 25 | 29 20 3c 25 64 20 2d 20 | %d(%d%%|) <%d - |
|00001990| 25 64 3e 20 20 63 6f 6c | 75 6d 6e 20 25 64 20 25 |%d> col|umn %d %|
|000019a0| 73 22 20 22 70 6f 69 6e | 74 3d 25 64 20 6f 66 20 |s" "poin|t=%d of |
|000019b0| 25 64 28 25 64 25 25 29 | 20 20 63 6f 6c 75 6d 6e |%d(%d%%)| column|
|000019c0| 20 25 64 20 25 73 22 20 | 22 43 68 61 72 3a 20 25 | %d %s" |"Char: %|
|000019d0| 73 20 28 30 25 6f 29 20 | 20 70 6f 69 6e 74 3d 25 |s (0%o) | point=%|
|000019e0| 64 20 6f 66 20 25 64 28 | 25 64 25 25 29 20 3c 25 |d of %d(|%d%%) <%|
|000019f0| 64 20 2d 20 25 64 3e 20 | 20 63 6f 6c 75 6d 6e 20 |d - %d> | column |
|00001a00| 25 64 20 25 73 22 20 73 | 69 6e 67 6c 65 2d 6b 65 |%d %s" s|ingle-ke|
|00001a10| 79 2d 64 65 73 63 72 69 | 70 74 69 6f 6e 20 22 43 |y-descri|ption "C|
|00001a20| 68 61 72 3a 20 25 73 20 | 28 30 25 6f 29 20 20 70 |har: %s |(0%o) p|
|00001a30| 6f 69 6e 74 3d 25 64 20 | 6f 66 20 25 64 28 25 64 |oint=%d |of %d(%d|
|00001a40| 25 25 29 20 20 63 6f 6c | 75 6d 6e 20 25 64 20 25 |%%) col|umn %d %|
|00001a50| 73 22 5d 20 32 38 29 29 | 0a 0a 28 64 65 66 75 6e |s"] 28))|..(defun|
|00001a60| 20 66 75 6e 64 61 6d 65 | 6e 74 61 6c 2d 6d 6f 64 | fundame|ntal-mod|
|00001a70| 65 20 6e 69 6c 20 22 5c | 0a 4d 61 6a 6f 72 20 6d |e nil "\|.Major m|
|00001a80| 6f 64 65 20 6e 6f 74 20 | 73 70 65 63 69 61 6c 69 |ode not |speciali|
|00001a90| 7a 65 64 20 66 6f 72 20 | 61 6e 79 74 68 69 6e 67 |zed for |anything|
|00001aa0| 20 69 6e 20 70 61 72 74 | 69 63 75 6c 61 72 2e 0a | in part|icular..|
|00001ab0| 4f 74 68 65 72 20 6d 61 | 6a 6f 72 20 6d 6f 64 65 |Other ma|jor mode|
|00001ac0| 73 20 61 72 65 20 64 65 | 66 69 6e 65 64 20 62 79 |s are de|fined by|
|00001ad0| 20 63 6f 6d 70 61 72 69 | 73 6f 6e 20 77 69 74 68 | compari|son with|
|00001ae0| 20 74 68 69 73 20 6f 6e | 65 2e 22 20 28 69 6e 74 | this on|e." (int|
|00001af0| 65 72 61 63 74 69 76 65 | 29 20 28 62 79 74 65 2d |eractive|) (byte-|
|00001b00| 63 6f 64 65 20 22 c0 88 | c1 20 87 22 20 5b 6e 69 |code "..|. ." [ni|
|00001b10| 6c 20 6b 69 6c 6c 2d 61 | 6c 6c 2d 6c 6f 63 61 6c |l kill-a|ll-local|
|00001b20| 2d 76 61 72 69 61 62 6c | 65 73 5d 20 32 29 29 0a |-variabl|es] 2)).|
|00001b30| 0a 28 70 75 74 20 28 71 | 75 6f 74 65 20 65 76 61 |.(put (q|uote eva|
|00001b40| 6c 2d 65 78 70 72 65 73 | 73 69 6f 6e 29 20 28 71 |l-expres|sion) (q|
|00001b50| 75 6f 74 65 20 64 69 73 | 61 62 6c 65 64 29 20 74 |uote dis|abled) t|
|00001b60| 29 0a 0a 28 64 65 66 75 | 6e 20 65 76 61 6c 2d 65 |)..(defu|n eval-e|
|00001b70| 78 70 72 65 73 73 69 6f | 6e 20 28 65 78 70 72 65 |xpressio|n (expre|
|00001b80| 73 73 69 6f 6e 29 20 22 | 5c 0a 45 76 61 6c 75 61 |ssion) "|\.Evalua|
|00001b90| 74 65 20 45 58 50 52 45 | 53 53 49 4f 4e 20 61 6e |te EXPRE|SSION an|
|00001ba0| 64 20 70 72 69 6e 74 20 | 76 61 6c 75 65 20 69 6e |d print |value in|
|00001bb0| 20 6d 69 6e 69 62 75 66 | 66 65 72 2e 0a 56 61 6c | minibuf|fer..Val|
|00001bc0| 75 65 20 69 73 20 61 6c | 73 6f 20 63 6f 6e 73 65 |ue is al|so conse|
|00001bd0| 64 20 6f 6e 20 74 6f 20 | 66 72 6f 6e 74 20 6f 66 |d on to |front of|
|00001be0| 20 76 61 72 69 61 62 6c | 65 20 20 76 61 6c 75 65 | variabl|e value|
|00001bf0| 73 20 20 27 73 20 76 61 | 6c 75 65 2e 22 20 28 69 |s 's va|lue." (i|
|00001c00| 6e 74 65 72 61 63 74 69 | 76 65 20 22 78 45 76 61 |nteracti|ve "xEva|
|00001c10| 6c 3a 20 22 29 20 28 62 | 79 74 65 2d 63 6f 64 65 |l: ") (b|yte-code|
|00001c20| 20 22 c3 88 c4 09 21 08 | 42 89 10 88 c5 08 40 c2 | "....!.|B.....@.|
|00001c30| 5c 22 87 22 20 5b 76 61 | 6c 75 65 73 20 65 78 70 |\"." [va|lues exp|
|00001c40| 72 65 73 73 69 6f 6e 20 | 74 20 6e 69 6c 20 65 76 |ression |t nil ev|
|00001c50| 61 6c 20 70 72 69 6e 31 | 5d 20 34 29 29 0a 0a 28 |al prin1|] 4))..(|
|00001c60| 64 65 66 75 6e 20 65 64 | 69 74 2d 61 6e 64 2d 65 |defun ed|it-and-e|
|00001c70| 76 61 6c 2d 63 6f 6d 6d | 61 6e 64 20 28 70 72 6f |val-comm|and (pro|
|00001c80| 6d 70 74 20 63 6f 6d 6d | 61 6e 64 29 20 22 5c 0a |mpt comm|and) "\.|
|00001c90| 50 72 6f 6d 70 74 69 6e | 67 20 77 69 74 68 20 50 |Promptin|g with P|
|00001ca0| 52 4f 4d 50 54 2c 20 6c | 65 74 20 75 73 65 72 20 |ROMPT, l|et user |
|00001cb0| 65 64 69 74 20 43 4f 4d | 4d 41 4e 44 20 61 6e 64 |edit COM|MAND and|
|00001cc0| 20 65 76 61 6c 20 72 65 | 73 75 6c 74 2e 0a 43 4f | eval re|sult..CO|
|00001cd0| 4d 4d 41 4e 44 20 69 73 | 20 61 20 4c 69 73 70 20 |MMAND is| a Lisp |
|00001ce0| 65 78 70 72 65 73 73 69 | 6f 6e 2e 20 20 4c 65 74 |expressi|on. Let|
|00001cf0| 20 75 73 65 72 20 65 64 | 69 74 20 74 68 61 74 20 | user ed|it that |
|00001d00| 65 78 70 72 65 73 73 69 | 6f 6e 20 69 6e 0a 74 68 |expressi|on in.th|
|00001d10| 65 20 6d 69 6e 69 62 75 | 66 66 65 72 2c 20 74 68 |e minibu|ffer, th|
|00001d20| 65 6e 20 72 65 61 64 20 | 61 6e 64 20 65 76 61 6c |en read |and eval|
|00001d30| 75 61 74 65 20 74 68 65 | 20 72 65 73 75 6c 74 2e |uate the| result.|
|00001d40| 22 20 28 62 79 74 65 2d | 63 6f 64 65 20 22 c2 c3 |" (byte-|code "..|
|00001d50| 08 c4 09 21 5c 22 21 87 | 22 20 5b 70 72 6f 6d 70 |...!\"!.|" [promp|
|00001d60| 74 20 63 6f 6d 6d 61 6e | 64 20 65 76 61 6c 20 72 |t comman|d eval r|
|00001d70| 65 61 64 2d 6d 69 6e 69 | 62 75 66 66 65 72 20 70 |ead-mini|buffer p|
|00001d80| 72 69 6e 31 2d 74 6f 2d | 73 74 72 69 6e 67 5d 20 |rin1-to-|string] |
|00001d90| 35 29 29 0a 0a 28 64 65 | 66 76 61 72 20 72 65 70 |5))..(de|fvar rep|
|00001da0| 65 61 74 2d 63 6f 6d 70 | 6c 65 78 2d 63 6f 6d 6d |eat-comp|lex-comm|
|00001db0| 61 6e 64 2d 6d 61 70 20 | 28 63 6f 70 79 2d 61 6c |and-map |(copy-al|
|00001dc0| 69 73 74 20 6d 69 6e 69 | 62 75 66 66 65 72 2d 6c |ist mini|buffer-l|
|00001dd0| 6f 63 61 6c 2d 6d 61 70 | 29 29 0a 0a 28 64 65 66 |ocal-map|))..(def|
|00001de0| 69 6e 65 2d 6b 65 79 20 | 72 65 70 65 61 74 2d 63 |ine-key |repeat-c|
|00001df0| 6f 6d 70 6c 65 78 2d 63 | 6f 6d 6d 61 6e 64 2d 6d |omplex-c|ommand-m|
|00001e00| 61 70 20 22 1b 70 22 20 | 28 71 75 6f 74 65 20 70 |ap ".p" |(quote p|
|00001e10| 72 65 76 69 6f 75 73 2d | 63 6f 6d 70 6c 65 78 2d |revious-|complex-|
|00001e20| 63 6f 6d 6d 61 6e 64 29 | 29 0a 0a 28 64 65 66 69 |command)|)..(defi|
|00001e30| 6e 65 2d 6b 65 79 20 72 | 65 70 65 61 74 2d 63 6f |ne-key r|epeat-co|
|00001e40| 6d 70 6c 65 78 2d 63 6f | 6d 6d 61 6e 64 2d 6d 61 |mplex-co|mmand-ma|
|00001e50| 70 20 22 1b 6e 22 20 28 | 71 75 6f 74 65 20 6e 65 |p ".n" (|quote ne|
|00001e60| 78 74 2d 63 6f 6d 70 6c | 65 78 2d 63 6f 6d 6d 61 |xt-compl|ex-comma|
|00001e70| 6e 64 29 29 0a 0a 28 64 | 65 66 75 6e 20 72 65 70 |nd))..(d|efun rep|
|00001e80| 65 61 74 2d 63 6f 6d 70 | 6c 65 78 2d 63 6f 6d 6d |eat-comp|lex-comm|
|00001e90| 61 6e 64 20 28 72 65 70 | 65 61 74 2d 63 6f 6d 70 |and (rep|eat-comp|
|00001ea0| 6c 65 78 2d 63 6f 6d 6d | 61 6e 64 2d 61 72 67 29 |lex-comm|and-arg)|
|00001eb0| 20 22 5c 0a 45 64 69 74 | 20 61 6e 64 20 72 65 2d | "\.Edit| and re-|
|00001ec0| 65 76 61 6c 75 61 74 65 | 20 6c 61 73 74 20 63 6f |evaluate| last co|
|00001ed0| 6d 70 6c 65 78 20 63 6f | 6d 6d 61 6e 64 2c 20 6f |mplex co|mmand, o|
|00001ee0| 72 20 41 52 47 74 68 20 | 66 72 6f 6d 20 6c 61 73 |r ARGth |from las|
|00001ef0| 74 2e 0a 41 20 63 6f 6d | 70 6c 65 78 20 63 6f 6d |t..A com|plex com|
|00001f00| 6d 61 6e 64 20 69 73 20 | 6f 6e 65 20 77 68 69 63 |mand is |one whic|
|00001f10| 68 20 75 73 65 64 20 74 | 68 65 20 6d 69 6e 69 62 |h used t|he minib|
|00001f20| 75 66 66 65 72 2e 0a 54 | 68 65 20 63 6f 6d 6d 61 |uffer..T|he comma|
|00001f30| 6e 64 20 69 73 20 70 6c | 61 63 65 64 20 69 6e 20 |nd is pl|aced in |
|00001f40| 74 68 65 20 6d 69 6e 69 | 62 75 66 66 65 72 20 61 |the mini|buffer a|
|00001f50| 73 20 61 20 4c 69 73 70 | 20 66 6f 72 6d 20 66 6f |s a Lisp| form fo|
|00001f60| 72 20 65 64 69 74 69 6e | 67 2e 0a 54 68 65 20 72 |r editin|g..The r|
|00001f70| 65 73 75 6c 74 20 69 73 | 20 65 78 65 63 75 74 65 |esult is| execute|
|00001f80| 64 2c 20 72 65 70 65 61 | 74 69 6e 67 20 74 68 65 |d, repea|ting the|
|00001f90| 20 63 6f 6d 6d 61 6e 64 | 20 61 73 20 63 68 61 6e | command| as chan|
|00001fa0| 67 65 64 2e 0a 49 66 20 | 74 68 65 20 63 6f 6d 6d |ged..If |the comm|
|00001fb0| 61 6e 64 20 68 61 73 20 | 62 65 65 6e 20 63 68 61 |and has |been cha|
|00001fc0| 6e 67 65 64 20 6f 72 20 | 69 73 20 6e 6f 74 20 74 |nged or |is not t|
|00001fd0| 68 65 20 6d 6f 73 74 20 | 72 65 63 65 6e 74 20 70 |he most |recent p|
|00001fe0| 72 65 76 69 6f 75 73 20 | 63 6f 6d 6d 61 6e 64 0a |revious |command.|
|00001ff0| 69 74 20 69 73 20 61 64 | 64 65 64 20 74 6f 20 74 |it is ad|ded to t|
|00002000| 68 65 20 66 72 6f 6e 74 | 20 6f 66 20 74 68 65 20 |he front| of the |
|00002010| 63 6f 6d 6d 61 6e 64 20 | 68 69 73 74 6f 72 79 2e |command |history.|
|00002020| 0a 57 68 69 6c 73 74 20 | 65 64 69 74 69 6e 67 20 |.Whilst |editing |
|00002030| 74 68 65 20 63 6f 6d 6d | 61 6e 64 2c 20 74 68 65 |the comm|and, the|
|00002040| 20 66 6f 6c 6c 6f 77 69 | 6e 67 20 63 6f 6d 6d 61 | followi|ng comma|
|00002050| 6e 64 73 20 61 72 65 20 | 61 76 61 69 6c 61 62 6c |nds are |availabl|
|00002060| 65 3a 0a 5c 5c 7b 72 65 | 70 65 61 74 2d 63 6f 6d |e:.\\{re|peat-com|
|00002070| 70 6c 65 78 2d 63 6f 6d | 6d 61 6e 64 2d 6d 61 70 |plex-com|mand-map|
|00002080| 7d 22 20 28 69 6e 74 65 | 72 61 63 74 69 76 65 20 |}" (inte|ractive |
|00002090| 22 70 22 29 20 28 62 79 | 74 65 2d 63 6f 64 65 20 |"p") (by|te-code |
|000020a0| 22 c6 88 09 53 0a 38 c6 | 1b 18 08 83 2c 00 c7 c8 |"...S.8.|....,...|
|000020b0| c9 08 21 0c c5 24 89 13 | 88 ca 0b 0a 40 5c 22 86 |..!..$..|....@\".|
|000020c0| 25 00 0b 0a 42 89 12 88 | cb 0b 21 82 2e 00 cc 20 |%...B...|..!.... |
|000020d0| 2a 87 22 20 5b 65 6c 74 | 20 72 65 70 65 61 74 2d |*." [elt| repeat-|
|000020e0| 63 6f 6d 70 6c 65 78 2d | 63 6f 6d 6d 61 6e 64 2d |complex-|command-|
|000020f0| 61 72 67 20 63 6f 6d 6d | 61 6e 64 2d 68 69 73 74 |arg comm|and-hist|
|00002100| 6f 72 79 20 6e 65 77 63 | 6d 64 20 72 65 70 65 61 |ory newc|md repea|
|00002110| 74 2d 63 6f 6d 70 6c 65 | 78 2d 63 6f 6d 6d 61 6e |t-comple|x-comman|
|00002120| 64 2d 6d 61 70 20 74 20 | 6e 69 6c 20 72 65 61 64 |d-map t |nil read|
|00002130| 2d 66 72 6f 6d 2d 6d 69 | 6e 69 62 75 66 66 65 72 |-from-mi|nibuffer|
|00002140| 20 22 52 65 64 6f 3a 20 | 22 20 70 72 69 6e 31 2d | "Redo: |" prin1-|
|00002150| 74 6f 2d 73 74 72 69 6e | 67 20 65 71 75 61 6c 20 |to-strin|g equal |
|00002160| 65 76 61 6c 20 64 69 6e | 67 5d 20 36 29 29 0a 0a |eval din|g] 6))..|
|00002170| 28 64 65 66 75 6e 20 6e | 65 78 74 2d 63 6f 6d 70 |(defun n|ext-comp|
|00002180| 6c 65 78 2d 63 6f 6d 6d | 61 6e 64 20 28 6e 29 20 |lex-comm|and (n) |
|00002190| 22 5c 0a 49 6e 73 65 72 | 74 73 20 74 68 65 20 6e |"\.Inser|ts the n|
|000021a0| 65 78 74 20 65 6c 65 6d | 65 6e 74 20 6f 66 20 60 |ext elem|ent of `|
|000021b0| 63 6f 6d 6d 61 6e 64 2d | 68 69 73 74 6f 72 79 27 |command-|history'|
|000021c0| 20 69 6e 74 6f 20 74 68 | 65 20 6d 69 6e 69 62 75 | into th|e minibu|
|000021d0| 66 66 65 72 2e 22 20 28 | 69 6e 74 65 72 61 63 74 |ffer." (|interact|
|000021e0| 69 76 65 20 22 70 22 29 | 20 28 62 79 74 65 2d 63 |ive "p")| (byte-c|
|000021f0| 6f 64 65 20 22 c4 88 c5 | 09 0a 5a 5d 0b 47 5e 18 |ode "...|..Z].G^.|
|00002200| 09 08 55 83 21 00 c6 09 | c5 55 83 1c 00 c7 82 1d |..U.!...|.U......|
|00002210| 00 c8 21 82 32 00 c9 20 | 88 08 89 11 88 ca 09 53 |..!.2.. |.......S|
|00002220| 0b 38 21 63 88 65 62 29 | 87 22 20 5b 6e 61 72 67 |.8!c.eb)|." [narg|
|00002230| 20 72 65 70 65 61 74 2d | 63 6f 6d 70 6c 65 78 2d | repeat-|complex-|
|00002240| 63 6f 6d 6d 61 6e 64 2d | 61 72 67 20 6e 20 63 6f |command-|arg n co|
|00002250| 6d 6d 61 6e 64 2d 68 69 | 73 74 6f 72 79 20 6e 69 |mmand-hi|story ni|
|00002260| 6c 20 31 20 65 72 72 6f | 72 20 22 4e 6f 20 66 6f |l 1 erro|r "No fo|
|00002270| 6c 6c 6f 77 69 6e 67 20 | 69 74 65 6d 20 69 6e 20 |llowing |item in |
|00002280| 63 6f 6d 6d 61 6e 64 20 | 68 69 73 74 6f 72 79 22 |command |history"|
|00002290| 20 22 4e 6f 20 70 72 65 | 63 65 65 64 69 6e 67 20 | "No pre|ceeding |
|000022a0| 69 74 65 6d 20 63 6f 6d | 6d 61 6e 64 20 68 69 73 |item com|mand his|
|000022b0| 74 6f 72 79 22 20 65 72 | 61 73 65 2d 62 75 66 66 |tory" er|ase-buff|
|000022c0| 65 72 20 70 72 69 6e 31 | 2d 74 6f 2d 73 74 72 69 |er prin1|-to-stri|
|000022d0| 6e 67 5d 20 35 29 29 0a | 0a 28 64 65 66 75 6e 20 |ng] 5)).|.(defun |
|000022e0| 70 72 65 76 69 6f 75 73 | 2d 63 6f 6d 70 6c 65 78 |previous|-complex|
|000022f0| 2d 63 6f 6d 6d 61 6e 64 | 20 28 6e 29 20 22 5c 0a |-command| (n) "\.|
|00002300| 49 6e 73 65 72 74 73 20 | 74 68 65 20 70 72 65 76 |Inserts |the prev|
|00002310| 69 6f 75 73 20 65 6c 65 | 6d 65 6e 74 20 6f 66 20 |ious ele|ment of |
|00002320| 60 63 6f 6d 6d 61 6e 64 | 2d 68 69 73 74 6f 72 79 |`command|-history|
|00002330| 27 20 69 6e 74 6f 20 74 | 68 65 20 6d 69 6e 69 62 |' into t|he minib|
|00002340| 75 66 66 65 72 2e 22 20 | 28 69 6e 74 65 72 61 63 |uffer." |(interac|
|00002350| 74 69 76 65 20 22 70 22 | 29 20 28 62 79 74 65 2d |tive "p"|) (byte-|
|00002360| 63 6f 64 65 20 22 c1 88 | c2 08 5b 21 87 22 20 5b |code "..|..[!." [|
|00002370| 6e 20 6e 69 6c 20 6e 65 | 78 74 2d 63 6f 6d 70 6c |n nil ne|xt-compl|
|00002380| 65 78 2d 63 6f 6d 6d 61 | 6e 64 5d 20 32 29 29 0a |ex-comma|nd] 2)).|
|00002390| 0a 28 64 65 66 75 6e 20 | 67 6f 74 6f 2d 6c 69 6e |.(defun |goto-lin|
|000023a0| 65 20 28 61 72 67 29 20 | 22 5c 0a 47 6f 74 6f 20 |e (arg) |"\.Goto |
|000023b0| 6c 69 6e 65 20 41 52 47 | 2c 20 63 6f 75 6e 74 69 |line ARG|, counti|
|000023c0| 6e 67 20 66 72 6f 6d 20 | 6c 69 6e 65 20 31 20 61 |ng from |line 1 a|
|000023d0| 74 20 62 65 67 69 6e 6e | 69 6e 67 20 6f 66 20 62 |t beginn|ing of b|
|000023e0| 75 66 66 65 72 2e 22 20 | 28 69 6e 74 65 72 61 63 |uffer." |(interac|
|000023f0| 74 69 76 65 20 22 4e 47 | 6f 74 6f 20 6c 69 6e 65 |tive "NG|oto line|
|00002400| 3a 20 22 29 20 28 62 79 | 74 65 2d 63 6f 64 65 20 |: ") (by|te-code |
|00002410| 22 c2 88 8c c4 20 88 c5 | 62 88 08 c1 3d 83 19 00 |".... ..|b...=...|
|00002420| c6 c7 c2 c8 0b 53 24 82 | 1d 00 c9 0b 53 21 29 87 |.....S$.|....S!).|
|00002430| 22 20 5b 73 65 6c 65 63 | 74 69 76 65 2d 64 69 73 |" [selec|tive-dis|
|00002440| 70 6c 61 79 20 74 20 6e | 69 6c 20 61 72 67 20 77 |play t n|il arg w|
|00002450| 69 64 65 6e 20 31 20 72 | 65 2d 73 65 61 72 63 68 |iden 1 r|e-search|
|00002460| 2d 66 6f 72 77 61 72 64 | 20 22 5b 0a 0d 5d 22 20 |-forward| "[..]" |
|00002470| 65 6e 64 20 66 6f 72 77 | 61 72 64 2d 6c 69 6e 65 |end forw|ard-line|
|00002480| 5d 20 36 29 29 0a 0a 28 | 66 73 65 74 20 28 71 75 |] 6))..(|fset (qu|
|00002490| 6f 74 65 20 61 64 76 65 | 72 74 69 73 65 64 2d 75 |ote adve|rtised-u|
|000024a0| 6e 64 6f 29 20 28 71 75 | 6f 74 65 20 75 6e 64 6f |ndo) (qu|ote undo|
|000024b0| 29 29 0a 0a 28 64 65 66 | 75 6e 20 75 6e 64 6f 20 |))..(def|un undo |
|000024c0| 28 26 6f 70 74 69 6f 6e | 61 6c 20 61 72 67 29 20 |(&option|al arg) |
|000024d0| 22 5c 0a 55 6e 64 6f 20 | 73 6f 6d 65 20 70 72 65 |"\.Undo |some pre|
|000024e0| 76 69 6f 75 73 20 63 68 | 61 6e 67 65 73 2e 0a 52 |vious ch|anges..R|
|000024f0| 65 70 65 61 74 20 74 68 | 69 73 20 63 6f 6d 6d 61 |epeat th|is comma|
|00002500| 6e 64 20 74 6f 20 75 6e | 64 6f 20 6d 6f 72 65 20 |nd to un|do more |
|00002510| 63 68 61 6e 67 65 73 2e | 0a 41 20 6e 75 6d 65 72 |changes.|.A numer|
|00002520| 69 63 20 61 72 67 75 6d | 65 6e 74 20 73 65 72 76 |ic argum|ent serv|
|00002530| 65 73 20 61 73 20 61 20 | 72 65 70 65 61 74 20 63 |es as a |repeat c|
|00002540| 6f 75 6e 74 2e 22 20 28 | 69 6e 74 65 72 61 63 74 |ount." (|interact|
|00002550| 69 76 65 20 22 2a 70 22 | 29 20 28 62 79 74 65 2d |ive "*p"|) (byte-|
|00002560| 63 6f 64 65 20 22 c4 88 | c5 20 18 c6 c7 21 88 09 |code "..|. ...!..|
|00002570| c8 3d 86 15 00 c9 20 88 | ca cb 21 88 c8 89 12 88 |.=.... .|..!.....|
|00002580| ca 0b 86 20 00 cb 21 88 | 08 85 2e 00 c5 20 3f 85 |... ..!.|..... ?.|
|00002590| 2e 00 cc 20 29 87 22 20 | 5b 6d 6f 64 69 66 69 65 |... )." |[modifie|
|000025a0| 64 20 6c 61 73 74 2d 63 | 6f 6d 6d 61 6e 64 20 74 |d last-c|ommand t|
|000025b0| 68 69 73 2d 63 6f 6d 6d | 61 6e 64 20 61 72 67 20 |his-comm|and arg |
|000025c0| 6e 69 6c 20 62 75 66 66 | 65 72 2d 6d 6f 64 69 66 |nil buff|er-modif|
|000025d0| 69 65 64 2d 70 20 6d 65 | 73 73 61 67 65 20 22 55 |ied-p me|ssage "U|
|000025e0| 6e 64 6f 21 22 20 75 6e | 64 6f 20 75 6e 64 6f 2d |ndo!" un|do undo-|
|000025f0| 73 74 61 72 74 20 75 6e | 64 6f 2d 6d 6f 72 65 20 |start un|do-more |
|00002600| 31 20 64 65 6c 65 74 65 | 2d 61 75 74 6f 2d 73 61 |1 delete|-auto-sa|
|00002610| 76 65 2d 66 69 6c 65 2d | 69 66 2d 6e 65 63 65 73 |ve-file-|if-neces|
|00002620| 73 61 72 79 5d 20 38 29 | 29 0a 0a 28 64 65 66 75 |sary] 8)|)..(defu|
|00002630| 6e 20 73 68 65 6c 6c 2d | 63 6f 6d 6d 61 6e 64 20 |n shell-|command |
|00002640| 28 63 6f 6d 6d 61 6e 64 | 20 26 6f 70 74 69 6f 6e |(command| &option|
|00002650| 61 6c 20 66 6c 61 67 29 | 20 22 5c 0a 45 78 65 63 |al flag)| "\.Exec|
|00002660| 75 74 65 20 73 74 72 69 | 6e 67 20 43 4f 4d 4d 41 |ute stri|ng COMMA|
|00002670| 4e 44 20 69 6e 20 69 6e | 66 65 72 69 6f 72 20 73 |ND in in|ferior s|
|00002680| 68 65 6c 6c 3b 20 64 69 | 73 70 6c 61 79 20 6f 75 |hell; di|splay ou|
|00002690| 74 70 75 74 2c 20 69 66 | 20 61 6e 79 2e 0a 4f 70 |tput, if| any..Op|
|000026a0| 74 69 6f 6e 61 6c 20 73 | 65 63 6f 6e 64 20 61 72 |tional s|econd ar|
|000026b0| 67 20 6e 6f 6e 2d 6e 69 | 6c 20 28 70 72 65 66 69 |g non-ni|l (prefi|
|000026c0| 78 20 61 72 67 2c 20 69 | 66 20 69 6e 74 65 72 61 |x arg, i|f intera|
|000026d0| 63 74 69 76 65 29 0a 6d | 65 61 6e 73 20 69 6e 73 |ctive).m|eans ins|
|000026e0| 65 72 74 20 6f 75 74 70 | 75 74 20 69 6e 20 63 75 |ert outp|ut in cu|
|000026f0| 72 72 65 6e 74 20 62 75 | 66 66 65 72 20 61 66 74 |rrent bu|ffer aft|
|00002700| 65 72 20 70 6f 69 6e 74 | 20 28 6c 65 61 76 65 20 |er point| (leave |
|00002710| 6d 61 72 6b 20 61 66 74 | 65 72 20 69 74 29 2e 22 |mark aft|er it)."|
|00002720| 20 28 69 6e 74 65 72 61 | 63 74 69 76 65 20 22 73 | (intera|ctive "s|
|00002730| 53 68 65 6c 6c 20 63 6f | 6d 6d 61 6e 64 3a 20 0a |Shell co|mmand: .|
|00002740| 50 22 29 20 28 62 79 74 | 65 2d 63 6f 64 65 20 22 |P") (byt|e-code "|
|00002750| c2 88 08 83 1c 00 c5 20 | 88 c6 20 88 c7 09 c2 c3 |....... |.. .....|
|00002760| c2 c8 c9 0c 26 07 88 ca | 20 82 5c 22 00 cb 60 60 |....&...| .\"..``|
|00002770| 0c c2 24 87 22 20 5b 66 | 6c 61 67 20 73 68 65 6c |..$." [f|lag shel|
|00002780| 6c 2d 66 69 6c 65 2d 6e | 61 6d 65 20 6e 69 6c 20 |l-file-n|ame nil |
|00002790| 74 20 63 6f 6d 6d 61 6e | 64 20 62 61 72 66 2d 69 |t comman|d barf-i|
|000027a0| 66 2d 62 75 66 66 65 72 | 2d 72 65 61 64 2d 6f 6e |f-buffer|-read-on|
|000027b0| 6c 79 20 70 75 73 68 2d | 6d 61 72 6b 20 63 61 6c |ly push-|mark cal|
|000027c0| 6c 2d 70 72 6f 63 65 73 | 73 20 22 2f 73 22 20 22 |l-proces|s "/s" "|
|000027d0| 2f 63 22 20 65 78 63 68 | 61 6e 67 65 2d 70 6f 69 |/c" exch|ange-poi|
|000027e0| 6e 74 2d 61 6e 64 2d 6d | 61 72 6b 20 73 68 65 6c |nt-and-m|ark shel|
|000027f0| 6c 2d 63 6f 6d 6d 61 6e | 64 2d 6f 6e 2d 72 65 67 |l-comman|d-on-reg|
|00002800| 69 6f 6e 5d 20 31 30 29 | 29 0a 0a 28 64 65 66 75 |ion] 10)|)..(defu|
|00002810| 6e 20 73 68 65 6c 6c 2d | 63 6f 6d 6d 61 6e 64 2d |n shell-|command-|
|00002820| 6f 6e 2d 72 65 67 69 6f | 6e 20 28 73 74 61 72 74 |on-regio|n (start|
|00002830| 20 65 6e 64 20 63 6f 6d | 6d 61 6e 64 20 26 6f 70 | end com|mand &op|
|00002840| 74 69 6f 6e 61 6c 20 66 | 6c 61 67 20 69 6e 74 65 |tional f|lag inte|
|00002850| 72 61 63 74 69 76 65 29 | 20 22 5c 0a 45 78 65 63 |ractive)| "\.Exec|
|00002860| 75 74 65 20 73 74 72 69 | 6e 67 20 43 4f 4d 4d 41 |ute stri|ng COMMA|
|00002870| 4e 44 20 69 6e 20 69 6e | 66 65 72 69 6f 72 20 73 |ND in in|ferior s|
|00002880| 68 65 6c 6c 20 77 69 74 | 68 20 72 65 67 69 6f 6e |hell wit|h region|
|00002890| 20 61 73 20 69 6e 70 75 | 74 2e 0a 4e 6f 72 6d 61 | as inpu|t..Norma|
|000028a0| 6c 6c 79 20 64 69 73 70 | 6c 61 79 20 6f 75 74 70 |lly disp|lay outp|
|000028b0| 75 74 20 28 69 66 20 61 | 6e 79 29 20 69 6e 20 74 |ut (if a|ny) in t|
|000028c0| 65 6d 70 20 62 75 66 66 | 65 72 3b 0a 50 72 65 66 |emp buff|er;.Pref|
|000028d0| 69 78 20 61 72 67 20 6d | 65 61 6e 73 20 72 65 70 |ix arg m|eans rep|
|000028e0| 6c 61 63 65 20 74 68 65 | 20 72 65 67 69 6f 6e 20 |lace the| region |
|000028f0| 77 69 74 68 20 69 74 2e | 0a 4e 6f 6e 69 6e 74 65 |with it.|.Noninte|
|00002900| 72 61 63 74 69 76 65 20 | 61 72 67 73 20 61 72 65 |ractive |args are|
|00002910| 20 53 54 41 52 54 2c 20 | 45 4e 44 2c 20 43 4f 4d | START, |END, COM|
|00002920| 4d 41 4e 44 2c 20 46 4c | 41 47 2e 0a 4e 6f 6e 69 |MAND, FL|AG..Noni|
|00002930| 6e 74 65 72 61 63 74 69 | 76 65 6c 79 20 46 4c 41 |nteracti|vely FLA|
|00002940| 47 20 6d 65 61 6e 73 20 | 69 6e 73 65 72 74 20 6f |G means |insert o|
|00002950| 75 74 70 75 74 20 69 6e | 20 70 6c 61 63 65 20 6f |utput in| place o|
|00002960| 66 20 74 65 78 74 20 66 | 72 6f 6d 20 53 54 41 52 |f text f|rom STAR|
|00002970| 54 20 74 6f 20 45 4e 44 | 2c 0a 61 6e 64 20 70 75 |T to END|,.and pu|
|00002980| 74 20 70 6f 69 6e 74 20 | 61 74 20 74 68 65 20 65 |t point |at the e|
|00002990| 6e 64 2c 20 62 75 74 20 | 64 6f 6e 27 74 20 61 6c |nd, but |don't al|
|000029a0| 74 65 72 20 74 68 65 20 | 6d 61 72 6b 2e 22 20 28 |ter the |mark." (|
|000029b0| 69 6e 74 65 72 61 63 74 | 69 76 65 20 22 72 0a 73 |interact|ive "r.s|
|000029c0| 53 68 65 6c 6c 20 63 6f | 6d 6d 61 6e 64 20 6f 6e |Shell co|mmand on|
|000029d0| 20 72 65 67 69 6f 6e 3a | 20 0a 50 0a 70 22 29 20 | region:| .P.p") |
|000029e0| 28 62 79 74 65 2d 63 6f | 64 65 20 22 c7 88 08 83 |(byte-co|de "....|
|000029f0| 32 00 0a 85 0e 00 60 ca | 20 57 19 0a 85 15 00 cb |2.....`.| W......|
|00002a00| 20 88 cc 0b 0c 0d c6 c6 | c7 cd ce 0e 08 26 09 88 | .......|.....&..|
|00002a10| 0a 85 2e 00 09 85 2e 00 | cf 20 29 82 8b 00 d0 d1 |........|. ).....|
|00002a20| 21 1e 09 0e 09 70 3d 83 | 58 00 d2 0c 64 5c 22 88 |!....p=.|X...d\".|
|00002a30| d2 65 0b 5c 22 88 cc 65 | 64 0d c6 c6 c7 cd ce 0e |.e.\"..e|d.......|
|00002a40| 08 26 09 82 6f 00 8a 0e | 09 71 88 d3 20 29 88 cc |.&..o...|.q.. )..|
|00002a50| 0b 0c 0d c7 0e 09 c7 cd | ce 0e 08 26 09 88 8a 0e |........|...&....|
|00002a60| 09 71 88 d4 20 d5 56 29 | 83 87 00 d6 d7 0e 09 21 |.q.. .V)|.......!|
|00002a70| d8 5c 22 82 8a 00 d9 da | 21 29 87 22 20 5b 66 6c |.\".....|!)." [fl|
|00002a80| 61 67 20 73 77 61 70 20 | 69 6e 74 65 72 61 63 74 |ag swap |interact|
|00002a90| 69 76 65 20 73 74 61 72 | 74 20 65 6e 64 20 73 68 |ive star|t end sh|
|00002aa0| 65 6c 6c 2d 66 69 6c 65 | 2d 6e 61 6d 65 20 74 20 |ell-file|-name t |
|00002ab0| 6e 69 6c 20 63 6f 6d 6d | 61 6e 64 20 62 75 66 66 |nil comm|and buff|
|00002ac0| 65 72 20 6d 61 72 6b 20 | 70 75 73 68 2d 6d 61 72 |er mark |push-mar|
|00002ad0| 6b 20 63 61 6c 6c 2d 70 | 72 6f 63 65 73 73 2d 72 |k call-p|rocess-r|
|00002ae0| 65 67 69 6f 6e 20 22 2f | 73 22 20 22 2f 63 22 20 |egion "/|s" "/c" |
|00002af0| 65 78 63 68 61 6e 67 65 | 2d 70 6f 69 6e 74 2d 61 |exchange|-point-a|
|00002b00| 6e 64 2d 6d 61 72 6b 20 | 67 65 74 2d 62 75 66 66 |nd-mark |get-buff|
|00002b10| 65 72 2d 63 72 65 61 74 | 65 20 22 2a 53 68 65 6c |er-creat|e "*Shel|
|00002b20| 6c 20 43 6f 6d 6d 61 6e | 64 20 4f 75 74 70 75 74 |l Comman|d Output|
|00002b30| 2a 22 20 64 65 6c 65 74 | 65 2d 72 65 67 69 6f 6e |*" delet|e-region|
|00002b40| 20 65 72 61 73 65 2d 62 | 75 66 66 65 72 20 62 75 | erase-b|uffer bu|
|00002b50| 66 66 65 72 2d 73 69 7a | 65 20 30 20 73 65 74 2d |ffer-siz|e 0 set-|
|00002b60| 77 69 6e 64 6f 77 2d 73 | 74 61 72 74 20 64 69 73 |window-s|tart dis|
|00002b70| 70 6c 61 79 2d 62 75 66 | 66 65 72 20 31 20 6d 65 |play-buf|fer 1 me|
|00002b80| 73 73 61 67 65 20 22 28 | 53 68 65 6c 6c 20 63 6f |ssage "(|Shell co|
|00002b90| 6d 6d 61 6e 64 20 63 6f | 6d 70 6c 65 74 65 64 20 |mmand co|mpleted |
|00002ba0| 77 69 74 68 20 6e 6f 20 | 6f 75 74 70 75 74 29 22 |with no |output)"|
|00002bb0| 5d 20 31 39 29 29 0a 0a | 28 64 65 66 75 6e 20 75 |] 19))..|(defun u|
|00002bc0| 6e 69 76 65 72 73 61 6c | 2d 61 72 67 75 6d 65 6e |niversal|-argumen|
|00002bd0| 74 20 6e 69 6c 20 22 5c | 0a 42 65 67 69 6e 20 61 |t nil "\|.Begin a|
|00002be0| 20 6e 75 6d 65 72 69 63 | 20 61 72 67 75 6d 65 6e | numeric| argumen|
|00002bf0| 74 20 66 6f 72 20 74 68 | 65 20 66 6f 6c 6c 6f 77 |t for th|e follow|
|00002c00| 69 6e 67 20 63 6f 6d 6d | 61 6e 64 2e 0a 44 69 67 |ing comm|and..Dig|
|00002c10| 69 74 73 20 6f 72 20 6d | 69 6e 75 73 20 73 69 67 |its or m|inus sig|
|00002c20| 6e 20 66 6f 6c 6c 6f 77 | 69 6e 67 20 5c 5c 5b 75 |n follow|ing \\[u|
|00002c30| 6e 69 76 65 72 73 61 6c | 2d 61 72 67 75 6d 65 6e |niversal|-argumen|
|00002c40| 74 5d 20 6d 61 6b 65 20 | 75 70 20 74 68 65 20 6e |t] make |up the n|
|00002c50| 75 6d 65 72 69 63 20 61 | 72 67 75 6d 65 6e 74 2e |umeric a|rgument.|
|00002c60| 0a 5c 5c 5b 75 6e 69 76 | 65 72 73 61 6c 2d 61 72 |.\\[univ|ersal-ar|
|00002c70| 67 75 6d 65 6e 74 5d 20 | 66 6f 6c 6c 6f 77 69 6e |gument] |followin|
|00002c80| 67 20 74 68 65 20 64 69 | 67 69 74 73 20 6f 72 20 |g the di|gits or |
|00002c90| 6d 69 6e 75 73 20 73 69 | 67 6e 20 65 6e 64 73 20 |minus si|gn ends |
|00002ca0| 74 68 65 20 61 72 67 75 | 6d 65 6e 74 2e 0a 5c 5c |the argu|ment..\\|
|00002cb0| 5b 75 6e 69 76 65 72 73 | 61 6c 2d 61 72 67 75 6d |[univers|al-argum|
|00002cc0| 65 6e 74 5d 20 77 69 74 | 68 6f 75 74 20 64 69 67 |ent] wit|hout dig|
|00002cd0| 69 74 73 20 6f 72 20 6d | 69 6e 75 73 20 73 69 67 |its or m|inus sig|
|00002ce0| 6e 20 70 72 6f 76 69 64 | 65 73 20 34 20 61 73 20 |n provid|es 4 as |
|00002cf0| 61 72 67 75 6d 65 6e 74 | 2e 0a 52 65 70 65 61 74 |argument|..Repeat|
|00002d00| 69 6e 67 20 5c 5c 5b 75 | 6e 69 76 65 72 73 61 6c |ing \\[u|niversal|
|00002d10| 2d 61 72 67 75 6d 65 6e | 74 5d 20 77 69 74 68 6f |-argumen|t] witho|
|00002d20| 75 74 20 64 69 67 69 74 | 73 20 6f 72 20 6d 69 6e |ut digit|s or min|
|00002d30| 75 73 20 73 69 67 6e 0a | 20 6d 75 6c 74 69 70 6c |us sign.| multipl|
|00002d40| 69 65 73 20 74 68 65 20 | 61 72 67 75 6d 65 6e 74 |ies the |argument|
|00002d50| 20 62 79 20 34 20 65 61 | 63 68 20 74 69 6d 65 2e | by 4 ea|ch time.|
|00002d60| 22 20 28 69 6e 74 65 72 | 61 63 74 69 76 65 20 6e |" (inter|active n|
|00002d70| 69 6c 29 20 28 62 79 74 | 65 2d 63 6f 64 65 20 22 |il) (byt|e-code "|
|00002d80| c0 88 c5 0b c0 1c 1a 19 | 72 89 14 88 0c 0a 55 85 |........|r.....U.|
|00002d90| 20 00 c6 c5 09 5c 22 89 | 11 88 72 89 14 88 82 0c | ....\".|..r.....|
|00002da0| 00 88 c7 0c 09 c0 23 2b | 87 22 20 5b 6e 69 6c 20 |......#+|." [nil |
|00002db0| 63 2d 75 20 61 72 67 73 | 74 61 72 74 63 68 61 72 |c-u args|tartchar|
|00002dc0| 20 6c 61 73 74 2d 63 6f | 6d 6d 61 6e 64 2d 63 68 | last-co|mmand-ch|
|00002dd0| 61 72 20 63 68 61 72 20 | 34 20 2a 20 70 72 65 66 |ar char |4 * pref|
|00002de0| 69 78 2d 61 72 67 2d 69 | 6e 74 65 72 6e 61 6c 5d |ix-arg-i|nternal]|
|00002df0| 20 35 29 29 0a 0a 28 64 | 65 66 75 6e 20 70 72 65 | 5))..(d|efun pre|
|00002e00| 66 69 78 2d 61 72 67 2d | 69 6e 74 65 72 6e 61 6c |fix-arg-|internal|
|00002e10| 20 28 63 68 61 72 20 63 | 2d 75 20 76 61 6c 75 65 | (char c|-u value|
|00002e20| 29 20 28 62 79 74 65 2d | 63 6f 64 65 20 22 c8 18 |) (byte-|code "..|
|00002e30| c9 09 21 85 0b 00 09 ca | 57 85 14 00 cb 10 09 5b |..!.....|W......[|
|00002e40| 89 11 88 09 cc 3d 85 20 | 00 cb 10 c2 89 11 88 cd |.....=. |........|
|00002e50| 0b 55 85 35 00 08 5b 10 | c2 89 14 88 72 89 13 88 |.U.5..[.|....r...|
|00002e60| 82 21 00 88 0b ce 59 85 | 3f 00 0b cf 58 85 60 00 |.!....Y.|?...X.`.|
|00002e70| d0 c9 09 21 83 4d 00 09 | 82 4e 00 ca d1 5c 22 0b |...!.M..|.N...\".|
|00002e80| ce 5a 5c 5c 11 c2 89 14 | 88 72 89 13 88 82 36 00 |.Z\\....|.r....6.|
|00002e90| 88 d2 0d d3 c8 0b 5c 22 | 5c 22 d4 3d 85 70 00 72 |......\"|\".=.p.r|
|00002ea0| 89 13 88 0c 83 7a 00 0c | 43 82 8e 00 c9 09 21 83 |.....z..|C.....!.|
|00002eb0| 87 00 d0 09 08 5c 22 82 | 8e 00 08 cb 55 85 8e 00 |.....\".|....U...|
|00002ec0| cc 89 16 06 88 0b 89 16 | 07 29 87 22 20 5b 73 69 |........|.)." [si|
|00002ed0| 67 6e 20 76 61 6c 75 65 | 20 6e 69 6c 20 63 68 61 |gn value| nil cha|
|00002ee0| 72 20 63 2d 75 20 67 6c | 6f 62 61 6c 2d 6d 61 70 |r c-u gl|obal-map|
|00002ef0| 20 70 72 65 66 69 78 2d | 61 72 67 20 75 6e 72 65 | prefix-|arg unre|
|00002f00| 61 64 2d 63 6f 6d 6d 61 | 6e 64 2d 63 68 61 72 20 |ad-comma|nd-char |
|00002f10| 31 20 6e 75 6d 62 65 72 | 70 20 30 20 2d 31 20 2d |1 number|p 0 -1 -|
|00002f20| 20 34 35 20 34 38 20 35 | 37 20 2a 20 31 30 20 6c | 45 48 5|7 * 10 l|
|00002f30| 6f 6f 6b 75 70 2d 6b 65 | 79 20 6d 61 6b 65 2d 73 |ookup-ke|y make-s|
|00002f40| 74 72 69 6e 67 20 75 6e | 69 76 65 72 73 61 6c 2d |tring un|iversal-|
|00002f50| 61 72 67 75 6d 65 6e 74 | 5d 20 39 29 29 0a 0a 28 |argument|] 9))..(|
|00002f60| 64 65 66 75 6e 20 64 69 | 67 69 74 2d 61 72 67 75 |defun di|git-argu|
|00002f70| 6d 65 6e 74 20 28 61 72 | 67 29 20 22 5c 0a 50 61 |ment (ar|g) "\.Pa|
|00002f80| 72 74 20 6f 66 20 74 68 | 65 20 6e 75 6d 65 72 69 |rt of th|e numeri|
|00002f90| 63 20 61 72 67 75 6d 65 | 6e 74 20 66 6f 72 20 74 |c argume|nt for t|
|00002fa0| 68 65 20 6e 65 78 74 20 | 63 6f 6d 6d 61 6e 64 2e |he next |command.|
|00002fb0| 0a 5c 5c 5b 75 6e 69 76 | 65 72 73 61 6c 2d 61 72 |.\\[univ|ersal-ar|
|00002fc0| 67 75 6d 65 6e 74 5d 20 | 66 6f 6c 6c 6f 77 69 6e |gument] |followin|
|00002fd0| 67 20 64 69 67 69 74 73 | 20 6f 72 20 6d 69 6e 75 |g digits| or minu|
|00002fe0| 73 20 73 69 67 6e 20 65 | 6e 64 73 20 74 68 65 20 |s sign e|nds the |
|00002ff0| 61 72 67 75 6d 65 6e 74 | 2e 22 20 28 69 6e 74 65 |argument|." (inte|
|00003000| 72 61 63 74 69 76 65 20 | 22 50 22 29 20 28 62 79 |ractive |"P") (by|
|00003010| 74 65 2d 63 6f 64 65 20 | 22 c1 88 c3 08 c1 0a 23 |te-code |"......#|
|00003020| 87 22 20 5b 6c 61 73 74 | 2d 63 6f 6d 6d 61 6e 64 |." [last|-command|
|00003030| 2d 63 68 61 72 20 6e 69 | 6c 20 61 72 67 20 70 72 |-char ni|l arg pr|
|00003040| 65 66 69 78 2d 61 72 67 | 2d 69 6e 74 65 72 6e 61 |efix-arg|-interna|
|00003050| 6c 5d 20 34 29 29 0a 0a | 28 64 65 66 75 6e 20 6e |l] 4))..|(defun n|
|00003060| 65 67 61 74 69 76 65 2d | 61 72 67 75 6d 65 6e 74 |egative-|argument|
|00003070| 20 28 61 72 67 29 20 22 | 5c 0a 42 65 67 69 6e 20 | (arg) "|\.Begin |
|00003080| 61 20 6e 65 67 61 74 69 | 76 65 20 6e 75 6d 65 72 |a negati|ve numer|
|00003090| 69 63 20 61 72 67 75 6d | 65 6e 74 20 66 6f 72 20 |ic argum|ent for |
|000030a0| 74 68 65 20 6e 65 78 74 | 20 63 6f 6d 6d 61 6e 64 |the next| command|
|000030b0| 2e 0a 5c 5c 5b 75 6e 69 | 76 65 72 73 61 6c 2d 61 |..\\[uni|versal-a|
|000030c0| 72 67 75 6d 65 6e 74 5d | 20 66 6f 6c 6c 6f 77 69 |rgument]| followi|
|000030d0| 6e 67 20 64 69 67 69 74 | 73 20 6f 72 20 6d 69 6e |ng digit|s or min|
|000030e0| 75 73 20 73 69 67 6e 20 | 65 6e 64 73 20 74 68 65 |us sign |ends the|
|000030f0| 20 61 72 67 75 6d 65 6e | 74 2e 22 20 28 69 6e 74 | argumen|t." (int|
|00003100| 65 72 61 63 74 69 76 65 | 20 22 50 22 29 20 28 62 |eractive| "P") (b|
|00003110| 79 74 65 2d 63 6f 64 65 | 20 22 c0 88 c2 c3 c0 09 |yte-code| "......|
|00003120| 23 87 22 20 5b 6e 69 6c | 20 61 72 67 20 70 72 65 |#." [nil| arg pre|
|00003130| 66 69 78 2d 61 72 67 2d | 69 6e 74 65 72 6e 61 6c |fix-arg-|internal|
|00003140| 20 34 35 5d 20 34 29 29 | 0a 0a 28 64 65 66 75 6e | 45] 4))|..(defun|
|00003150| 20 66 6f 72 77 61 72 64 | 2d 74 6f 2d 69 6e 64 65 | forward|-to-inde|
|00003160| 6e 74 61 74 69 6f 6e 20 | 28 61 72 67 29 20 22 5c |ntation |(arg) "\|
|00003170| 0a 4d 6f 76 65 20 66 6f | 72 77 61 72 64 20 41 52 |.Move fo|rward AR|
|00003180| 47 20 6c 69 6e 65 73 20 | 61 6e 64 20 70 6f 73 69 |G lines |and posi|
|00003190| 74 69 6f 6e 20 61 74 20 | 66 69 72 73 74 20 6e 6f |tion at |first no|
|000031a0| 6e 62 6c 61 6e 6b 20 63 | 68 61 72 61 63 74 65 72 |nblank c|haracter|
|000031b0| 2e 22 20 28 69 6e 74 65 | 72 61 63 74 69 76 65 20 |." (inte|ractive |
|000031c0| 22 70 22 29 20 28 62 79 | 74 65 2d 63 6f 64 65 20 |"p") (by|te-code |
|000031d0| 22 c1 88 c2 08 21 88 c3 | c4 21 87 22 20 5b 61 72 |"....!..|.!." [ar|
|000031e0| 67 20 6e 69 6c 20 66 6f | 72 77 61 72 64 2d 6c 69 |g nil fo|rward-li|
|000031f0| 6e 65 20 73 6b 69 70 2d | 63 68 61 72 73 2d 66 6f |ne skip-|chars-fo|
|00003200| 72 77 61 72 64 20 22 20 | 09 22 5d 20 33 29 29 0a |rward " |."] 3)).|
|00003210| 0a 28 64 65 66 75 6e 20 | 62 61 63 6b 77 61 72 64 |.(defun |backward|
|00003220| 2d 74 6f 2d 69 6e 64 65 | 6e 74 61 74 69 6f 6e 20 |-to-inde|ntation |
|00003230| 28 61 72 67 29 20 22 5c | 0a 4d 6f 76 65 20 62 61 |(arg) "\|.Move ba|
|00003240| 63 6b 77 61 72 64 20 41 | 52 47 20 6c 69 6e 65 73 |ckward A|RG lines|
|00003250| 20 61 6e 64 20 70 6f 73 | 69 74 69 6f 6e 20 61 74 | and pos|ition at|
|00003260| 20 66 69 72 73 74 20 6e | 6f 6e 62 6c 61 6e 6b 20 | first n|onblank |
|00003270| 63 68 61 72 61 63 74 65 | 72 2e 22 20 28 69 6e 74 |characte|r." (int|
|00003280| 65 72 61 63 74 69 76 65 | 20 22 70 22 29 20 28 62 |eractive| "p") (b|
|00003290| 79 74 65 2d 63 6f 64 65 | 20 22 c1 88 c2 08 5b 21 |yte-code| "....[!|
|000032a0| 88 c3 c4 21 87 22 20 5b | 61 72 67 20 6e 69 6c 20 |...!." [|arg nil |
|000032b0| 66 6f 72 77 61 72 64 2d | 6c 69 6e 65 20 73 6b 69 |forward-|line ski|
|000032c0| 70 2d 63 68 61 72 73 2d | 66 6f 72 77 61 72 64 20 |p-chars-|forward |
|000032d0| 22 20 09 22 5d 20 33 29 | 29 0a 0a 28 64 65 66 75 |" ."] 3)|)..(defu|
|000032e0| 6e 20 6b 69 6c 6c 2d 6c | 69 6e 65 20 28 26 6f 70 |n kill-l|ine (&op|
|000032f0| 74 69 6f 6e 61 6c 20 61 | 72 67 29 20 22 5c 0a 4b |tional a|rg) "\.K|
|00003300| 69 6c 6c 20 74 68 65 20 | 72 65 73 74 20 6f 66 20 |ill the |rest of |
|00003310| 74 68 65 20 63 75 72 72 | 65 6e 74 20 6c 69 6e 65 |the curr|ent line|
|00003320| 3b 20 69 66 20 6e 6f 20 | 6e 6f 6e 62 6c 61 6e 6b |; if no |nonblank|
|00003330| 73 20 74 68 65 72 65 2c | 20 6b 69 6c 6c 20 74 68 |s there,| kill th|
|00003340| 72 75 20 6e 65 77 6c 69 | 6e 65 2e 0a 57 69 74 68 |ru newli|ne..With|
|00003350| 20 70 72 65 66 69 78 20 | 61 72 67 75 6d 65 6e 74 | prefix |argument|
|00003360| 2c 20 6b 69 6c 6c 20 74 | 68 61 74 20 6d 61 6e 79 |, kill t|hat many|
|00003370| 20 6c 69 6e 65 73 20 66 | 72 6f 6d 20 70 6f 69 6e | lines f|rom poin|
|00003380| 74 2e 0a 4e 65 67 61 74 | 69 76 65 20 61 72 67 75 |t..Negat|ive argu|
|00003390| 6d 65 6e 74 73 20 6b 69 | 6c 6c 20 6c 69 6e 65 73 |ments ki|ll lines|
|000033a0| 20 62 61 63 6b 77 61 72 | 64 2e 0a 0a 57 68 65 6e | backwar|d...When|
|000033b0| 20 63 61 6c 6c 69 6e 67 | 20 66 72 6f 6d 20 61 20 | calling| from a |
|000033c0| 70 72 6f 67 72 61 6d 2c | 20 6e 69 6c 20 6d 65 61 |program,| nil mea|
|000033d0| 6e 73 20 5c 22 6e 6f 20 | 61 72 67 5c 22 2c 0a 61 |ns \"no |arg\",.a|
|000033e0| 20 6e 75 6d 62 65 72 20 | 63 6f 75 6e 74 73 20 61 | number |counts a|
|000033f0| 73 20 61 20 70 72 65 66 | 69 78 20 61 72 67 2e 22 |s a pref|ix arg."|
|00003400| 20 28 69 6e 74 65 72 61 | 63 74 69 76 65 20 22 2a | (intera|ctive "*|
|00003410| 50 22 29 20 28 62 79 74 | 65 2d 63 6f 64 65 20 22 |P") (byt|e-code "|
|00003420| c1 88 c2 60 08 83 10 00 | c3 c4 08 21 21 82 27 00 |...`....|...!!.'.|
|00003430| 6d 85 18 00 c5 c6 c1 5c | 22 88 c7 c8 21 83 25 00 |m......\|"...!.%.|
|00003440| c3 c9 21 82 27 00 ca 20 | 88 60 5c 22 87 22 20 5b |..!.'.. |.`\"." [|
|00003450| 61 72 67 20 6e 69 6c 20 | 6b 69 6c 6c 2d 72 65 67 |arg nil |kill-reg|
|00003460| 69 6f 6e 20 66 6f 72 77 | 61 72 64 2d 6c 69 6e 65 |ion forw|ard-line|
|00003470| 20 70 72 65 66 69 78 2d | 6e 75 6d 65 72 69 63 2d | prefix-|numeric-|
|00003480| 76 61 6c 75 65 20 73 69 | 67 6e 61 6c 20 65 6e 64 |value si|gnal end|
|00003490| 2d 6f 66 2d 62 75 66 66 | 65 72 20 6c 6f 6f 6b 69 |-of-buff|er looki|
|000034a0| 6e 67 2d 61 74 20 22 5b | 20 09 5d 2a 24 22 20 31 |ng-at "[| .]*$" 1|
|000034b0| 20 65 6e 64 2d 6f 66 2d | 6c 69 6e 65 5d 20 39 29 | end-of-|line] 9)|
|000034c0| 29 0a 0a 28 64 65 66 76 | 61 72 20 6b 69 6c 6c 2d |)..(defv|ar kill-|
|000034d0| 72 69 6e 67 20 6e 69 6c | 20 22 5c 0a 4c 69 73 74 |ring nil| "\.List|
|000034e0| 20 6f 66 20 6b 69 6c 6c | 65 64 20 74 65 78 74 20 | of kill|ed text |
|000034f0| 73 65 71 75 65 6e 63 65 | 73 2e 22 29 0a 0a 28 64 |sequence|s.")..(d|
|00003500| 65 66 63 6f 6e 73 74 20 | 6b 69 6c 6c 2d 72 69 6e |efconst |kill-rin|
|00003510| 67 2d 6d 61 78 20 33 30 | 20 22 5c 0a 2a 4d 61 78 |g-max 30| "\.*Max|
|00003520| 69 6d 75 6d 20 6c 65 6e | 67 74 68 20 6f 66 20 6b |imum len|gth of k|
|00003530| 69 6c 6c 20 72 69 6e 67 | 20 62 65 66 6f 72 65 20 |ill ring| before |
|00003540| 6f 6c 64 65 73 74 20 65 | 6c 65 6d 65 6e 74 73 20 |oldest e|lements |
|00003550| 61 72 65 20 74 68 72 6f | 77 6e 20 61 77 61 79 2e |are thro|wn away.|
|00003560| 22 29 0a 0a 28 64 65 66 | 76 61 72 20 6b 69 6c 6c |")..(def|var kill|
|00003570| 2d 72 69 6e 67 2d 79 61 | 6e 6b 2d 70 6f 69 6e 74 |-ring-ya|nk-point|
|00003580| 65 72 20 6e 69 6c 20 22 | 5c 0a 54 68 65 20 74 61 |er nil "|\.The ta|
|00003590| 69 6c 20 6f 66 20 74 68 | 65 20 6b 69 6c 6c 20 72 |il of th|e kill r|
|000035a0| 69 6e 67 20 77 68 6f 73 | 65 20 63 61 72 20 69 73 |ing whos|e car is|
|000035b0| 20 74 68 65 20 6c 61 73 | 74 20 74 68 69 6e 67 20 | the las|t thing |
|000035c0| 79 61 6e 6b 65 64 2e 22 | 29 0a 0a 28 64 65 66 75 |yanked."|)..(defu|
|000035d0| 6e 20 6b 69 6c 6c 2d 61 | 70 70 65 6e 64 20 28 73 |n kill-a|ppend (s|
|000035e0| 74 72 69 6e 67 20 62 65 | 66 6f 72 65 2d 70 29 20 |tring be|fore-p) |
|000035f0| 28 62 79 74 65 2d 63 6f | 64 65 20 22 c3 08 09 83 |(byte-co|de "....|
|00003600| 0d 00 0a 08 40 50 82 11 | 00 08 40 0a 50 5c 22 87 |....@P..|..@.P\".|
|00003610| 22 20 5b 6b 69 6c 6c 2d | 72 69 6e 67 20 62 65 66 |" [kill-|ring bef|
|00003620| 6f 72 65 2d 70 20 73 74 | 72 69 6e 67 20 73 65 74 |ore-p st|ring set|
|00003630| 63 61 72 5d 20 34 29 29 | 0a 0a 28 64 65 66 75 6e |car] 4))|..(defun|
|00003640| 20 6b 69 6c 6c 2d 72 65 | 67 69 6f 6e 20 28 62 65 | kill-re|gion (be|
|00003650| 67 20 65 6e 64 29 20 22 | 5c 0a 4b 69 6c 6c 20 62 |g end) "|\.Kill b|
|00003660| 65 74 77 65 65 6e 20 70 | 6f 69 6e 74 20 61 6e 64 |etween p|oint and|
|00003670| 20 6d 61 72 6b 2e 0a 54 | 68 65 20 74 65 78 74 20 | mark..T|he text |
|00003680| 69 73 20 64 65 6c 65 74 | 65 64 20 62 75 74 20 73 |is delet|ed but s|
|00003690| 61 76 65 64 20 69 6e 20 | 74 68 65 20 6b 69 6c 6c |aved in |the kill|
|000036a0| 20 72 69 6e 67 2e 0a 54 | 68 65 20 63 6f 6d 6d 61 | ring..T|he comma|
|000036b0| 6e 64 20 5c 5c 5b 79 61 | 6e 6b 5d 20 63 61 6e 20 |nd \\[ya|nk] can |
|000036c0| 72 65 74 72 69 65 76 65 | 20 69 74 20 66 72 6f 6d |retrieve| it from|
|000036d0| 20 74 68 65 72 65 2e 0a | 28 49 66 20 79 6f 75 20 | there..|(If you |
|000036e0| 77 61 6e 74 20 74 6f 20 | 6b 69 6c 6c 20 61 6e 64 |want to |kill and|
|000036f0| 20 74 68 65 6e 20 79 61 | 6e 6b 20 69 6d 6d 65 64 | then ya|nk immed|
|00003700| 69 61 74 65 6c 79 2c 20 | 75 73 65 20 5c 5c 5b 63 |iately, |use \\[c|
|00003710| 6f 70 79 2d 72 65 67 69 | 6f 6e 2d 61 73 2d 6b 69 |opy-regi|on-as-ki|
|00003720| 6c 6c 5d 2e 29 0a 0a 54 | 68 69 73 20 69 73 20 74 |ll].)..T|his is t|
|00003730| 68 65 20 70 72 69 6d 69 | 74 69 76 65 20 66 6f 72 |he primi|tive for|
|00003740| 20 70 72 6f 67 72 61 6d | 73 20 74 6f 20 6b 69 6c | program|s to kil|
|00003750| 6c 20 74 65 78 74 20 28 | 61 73 20 6f 70 70 6f 73 |l text (|as oppos|
|00003760| 65 64 20 74 6f 20 64 65 | 6c 65 74 69 6e 67 20 69 |ed to de|leting i|
|00003770| 74 29 2e 0a 53 75 70 70 | 6c 79 20 74 77 6f 20 61 |t)..Supp|ly two a|
|00003780| 72 67 75 6d 65 6e 74 73 | 2c 20 63 68 61 72 61 63 |rguments|, charac|
|00003790| 74 65 72 20 6e 75 6d 62 | 65 72 73 20 69 6e 64 69 |ter numb|ers indi|
|000037a0| 63 61 74 69 6e 67 20 74 | 68 65 20 73 74 72 65 74 |cating t|he stret|
|000037b0| 63 68 20 6f 66 20 74 65 | 78 74 0a 20 74 6f 20 62 |ch of te|xt. to b|
|000037c0| 65 20 6b 69 6c 6c 65 64 | 2e 0a 41 6e 79 20 63 6f |e killed|..Any co|
|000037d0| 6d 6d 61 6e 64 20 74 68 | 61 74 20 63 61 6c 6c 73 |mmand th|at calls|
|000037e0| 20 74 68 69 73 20 66 75 | 6e 63 74 69 6f 6e 20 69 | this fu|nction i|
|000037f0| 73 20 61 20 5c 22 6b 69 | 6c 6c 20 63 6f 6d 6d 61 |s a \"ki|ll comma|
|00003800| 6e 64 5c 22 2e 0a 49 66 | 20 74 68 65 20 70 72 65 |nd\"..If| the pre|
|00003810| 76 69 6f 75 73 20 63 6f | 6d 6d 61 6e 64 20 77 61 |vious co|mmand wa|
|00003820| 73 20 61 6c 73 6f 20 61 | 20 6b 69 6c 6c 20 63 6f |s also a| kill co|
|00003830| 6d 6d 61 6e 64 2c 0a 74 | 68 65 20 74 65 78 74 20 |mmand,.t|he text |
|00003840| 6b 69 6c 6c 65 64 20 74 | 68 69 73 20 74 69 6d 65 |killed t|his time|
|00003850| 20 61 70 70 65 6e 64 73 | 20 74 6f 20 74 68 65 20 | appends| to the |
|00003860| 74 65 78 74 20 6b 69 6c | 6c 65 64 20 6c 61 73 74 |text kil|led last|
|00003870| 20 74 69 6d 65 0a 74 6f | 20 6d 61 6b 65 20 6f 6e | time.to| make on|
|00003880| 65 20 65 6e 74 72 79 20 | 69 6e 20 74 68 65 20 6b |e entry |in the k|
|00003890| 69 6c 6c 20 72 69 6e 67 | 2e 22 20 28 69 6e 74 65 |ill ring|." (inte|
|000038a0| 72 61 63 74 69 76 65 20 | 22 2a 72 22 29 20 28 62 |ractive |"*r") (b|
|000038b0| 79 74 65 2d 63 6f 64 65 | 20 22 c9 88 08 c1 3d 3f |yte-code| "....=?|
|000038c0| 85 19 00 0a cc 3d 3f 85 | 19 00 0b 0c 3d 3f 85 19 |.....=?.|....=?..|
|000038d0| 00 0d 3f 83 58 00 0b 0c | 5d 0b 0c 5e 5a cd 5c 5c |..?.X...|]..^Z.\\|
|000038e0| 1e 06 ce 0b 0c 5c 22 88 | 08 40 40 0e 07 42 89 16 |.....\".|.@@..B..|
|000038f0| 07 88 0e 07 47 0e 08 56 | 85 49 00 cf d0 0e 08 53 |....G..V|.I.....S|
|00003900| 0e 07 5c 22 c9 5c 22 88 | cc 89 16 0a 88 0e 07 89 |..\".\".|........|
|00003910| 16 0b 29 82 61 00 d1 0b | 0c 5c 22 88 ce 0b 0c 5c |..).a...|.\"....\|
|00003920| 22 87 22 20 5b 62 75 66 | 66 65 72 2d 75 6e 64 6f |"." [buf|fer-undo|
|00003930| 2d 6c 69 73 74 20 74 20 | 6c 61 73 74 2d 63 6f 6d |-list t |last-com|
|00003940| 6d 61 6e 64 20 62 65 67 | 20 65 6e 64 20 62 75 66 |mand beg| end buf|
|00003950| 66 65 72 2d 72 65 61 64 | 2d 6f 6e 6c 79 20 75 6e |fer-read|-only un|
|00003960| 64 6f 2d 68 69 67 68 2d | 74 68 72 65 73 68 6f 6c |do-high-|threshol|
|00003970| 64 20 6b 69 6c 6c 2d 72 | 69 6e 67 20 6b 69 6c 6c |d kill-r|ing kill|
|00003980| 2d 72 69 6e 67 2d 6d 61 | 78 20 6e 69 6c 20 74 68 |-ring-ma|x nil th|
|00003990| 69 73 2d 63 6f 6d 6d 61 | 6e 64 20 6b 69 6c 6c 2d |is-comma|nd kill-|
|000039a0| 72 69 6e 67 2d 79 61 6e | 6b 2d 70 6f 69 6e 74 65 |ring-yan|k-pointe|
|000039b0| 72 20 6b 69 6c 6c 2d 72 | 65 67 69 6f 6e 20 31 30 |r kill-r|egion 10|
|000039c0| 30 20 64 65 6c 65 74 65 | 2d 72 65 67 69 6f 6e 20 |0 delete|-region |
|000039d0| 73 65 74 63 64 72 20 6e | 74 68 63 64 72 20 63 6f |setcdr n|thcdr co|
|000039e0| 70 79 2d 72 65 67 69 6f | 6e 2d 61 73 2d 6b 69 6c |py-regio|n-as-kil|
|000039f0| 6c 5d 20 37 29 29 0a 0a | 28 66 73 65 74 20 28 71 |l] 7))..|(fset (q|
|00003a00| 75 6f 74 65 20 6b 69 6c | 6c 2d 72 69 6e 67 2d 73 |uote kil|l-ring-s|
|00003a10| 61 76 65 29 20 28 71 75 | 6f 74 65 20 63 6f 70 79 |ave) (qu|ote copy|
|00003a20| 2d 72 65 67 69 6f 6e 2d | 61 73 2d 6b 69 6c 6c 29 |-region-|as-kill)|
|00003a30| 29 0a 0a 28 64 65 66 75 | 6e 20 63 6f 70 79 2d 72 |)..(defu|n copy-r|
|00003a40| 65 67 69 6f 6e 2d 61 73 | 2d 6b 69 6c 6c 20 28 62 |egion-as|-kill (b|
|00003a50| 65 67 20 65 6e 64 29 20 | 22 5c 0a 53 61 76 65 20 |eg end) |"\.Save |
|00003a60| 74 68 65 20 72 65 67 69 | 6f 6e 20 61 73 20 69 66 |the regi|on as if|
|00003a70| 20 6b 69 6c 6c 65 64 2c | 20 62 75 74 20 64 6f 6e | killed,| but don|
|00003a80| 27 74 20 6b 69 6c 6c 20 | 69 74 2e 22 20 28 69 6e |'t kill |it." (in|
|00003a90| 74 65 72 61 63 74 69 76 | 65 20 22 72 22 29 20 28 |teractiv|e "r") (|
|00003aa0| 62 79 74 65 2d 63 6f 64 | 65 20 22 c5 88 08 c8 3d |byte-cod|e "....=|
|00003ab0| 83 14 00 c9 ca 09 0a 5c | 22 0a 09 57 5c 22 82 2c |.......\|"..W\".,|
|00003ac0| 00 ca 09 0a 5c 22 0b 42 | 89 13 88 0b 47 0c 56 85 |....\".B|....G.V.|
|00003ad0| 2c 00 cb cc 0c 53 0b 5c | 22 c5 5c 22 88 c8 89 16 |,....S.\|".\"....|
|00003ae0| 06 88 0b 89 16 07 87 22 | 20 5b 6c 61 73 74 2d 63 |......."| [last-c|
|00003af0| 6f 6d 6d 61 6e 64 20 62 | 65 67 20 65 6e 64 20 6b |ommand b|eg end k|
|00003b00| 69 6c 6c 2d 72 69 6e 67 | 20 6b 69 6c 6c 2d 72 69 |ill-ring| kill-ri|
|00003b10| 6e 67 2d 6d 61 78 20 6e | 69 6c 20 74 68 69 73 2d |ng-max n|il this-|
|00003b20| 63 6f 6d 6d 61 6e 64 20 | 6b 69 6c 6c 2d 72 69 6e |command |kill-rin|
|00003b30| 67 2d 79 61 6e 6b 2d 70 | 6f 69 6e 74 65 72 20 6b |g-yank-p|ointer k|
|00003b40| 69 6c 6c 2d 72 65 67 69 | 6f 6e 20 6b 69 6c 6c 2d |ill-regi|on kill-|
|00003b50| 61 70 70 65 6e 64 20 62 | 75 66 66 65 72 2d 73 75 |append b|uffer-su|
|00003b60| 62 73 74 72 69 6e 67 20 | 73 65 74 63 64 72 20 6e |bstring |setcdr n|
|00003b70| 74 68 63 64 72 5d 20 37 | 29 29 0a 0a 28 64 65 66 |thcdr] 7|))..(def|
|00003b80| 75 6e 20 61 70 70 65 6e | 64 2d 6e 65 78 74 2d 6b |un appen|d-next-k|
|00003b90| 69 6c 6c 20 6e 69 6c 20 | 22 5c 0a 43 61 75 73 65 |ill nil |"\.Cause|
|00003ba0| 20 66 6f 6c 6c 6f 77 69 | 6e 67 20 63 6f 6d 6d 61 | followi|ng comma|
|00003bb0| 6e 64 2c 20 69 66 20 6b | 69 6c 6c 2c 20 74 6f 20 |nd, if k|ill, to |
|00003bc0| 61 70 70 65 6e 64 20 74 | 6f 20 70 72 65 76 69 6f |append t|o previo|
|00003bd0| 75 73 20 6b 69 6c 6c 2e | 22 20 28 69 6e 74 65 72 |us kill.|" (inter|
|00003be0| 61 63 74 69 76 65 29 20 | 28 62 79 74 65 2d 63 6f |active) |(byte-co|
|00003bf0| 64 65 20 22 c2 88 74 83 | 0c 00 c3 89 10 82 0f 00 |de "..t.|........|
|00003c00| c3 89 11 87 22 20 5b 74 | 68 69 73 2d 63 6f 6d 6d |...." [t|his-comm|
|00003c10| 61 6e 64 20 6c 61 73 74 | 2d 63 6f 6d 6d 61 6e 64 |and last|-command|
|00003c20| 20 6e 69 6c 20 6b 69 6c | 6c 2d 72 65 67 69 6f 6e | nil kil|l-region|
|00003c30| 5d 20 32 29 29 0a 0a 28 | 64 65 66 75 6e 20 72 6f |] 2))..(|defun ro|
|00003c40| 74 61 74 65 2d 79 61 6e | 6b 2d 70 6f 69 6e 74 65 |tate-yan|k-pointe|
|00003c50| 72 20 28 61 72 67 29 20 | 22 5c 0a 52 6f 74 61 74 |r (arg) |"\.Rotat|
|00003c60| 65 20 74 68 65 20 79 61 | 6e 6b 69 6e 67 20 70 6f |e the ya|nking po|
|00003c70| 69 6e 74 20 69 6e 20 74 | 68 65 20 6b 69 6c 6c 20 |int in t|he kill |
|00003c80| 72 69 6e 67 2e 22 20 28 | 69 6e 74 65 72 61 63 74 |ring." (|interact|
|00003c90| 69 76 65 20 22 70 22 29 | 20 28 62 79 74 65 2d 63 |ive "p")| (byte-c|
|00003ca0| 6f 64 65 20 22 c4 88 09 | 47 18 c5 08 21 83 11 00 |ode "...|G...!...|
|00003cb0| c6 c7 21 82 1f 00 c8 c9 | 0b 08 0a 47 5a 5c 5c 08 |..!.....|...GZ\\.|
|00003cc0| 5c 22 09 5c 22 89 12 29 | 87 22 20 5b 6c 65 6e 67 |\".\"..)|." [leng|
|00003cd0| 74 68 20 6b 69 6c 6c 2d | 72 69 6e 67 20 6b 69 6c |th kill-|ring kil|
|00003ce0| 6c 2d 72 69 6e 67 2d 79 | 61 6e 6b 2d 70 6f 69 6e |l-ring-y|ank-poin|
|00003cf0| 74 65 72 20 61 72 67 20 | 6e 69 6c 20 7a 65 72 6f |ter arg |nil zero|
|00003d00| 70 20 65 72 72 6f 72 20 | 22 4b 69 6c 6c 20 72 69 |p error |"Kill ri|
|00003d10| 6e 67 20 69 73 20 65 6d | 70 74 79 22 20 6e 74 68 |ng is em|pty" nth|
|00003d20| 63 64 72 20 25 5d 20 37 | 29 29 0a 0a 28 64 65 66 |cdr %] 7|))..(def|
|00003d30| 75 6e 20 79 61 6e 6b 2d | 70 6f 70 20 28 61 72 67 |un yank-|pop (arg|
|00003d40| 29 20 22 5c 0a 52 65 70 | 6c 61 63 65 20 6a 75 73 |) "\.Rep|lace jus|
|00003d50| 74 2d 79 61 6e 6b 65 64 | 20 73 74 72 65 74 63 68 |t-yanked| stretch|
|00003d60| 20 6f 66 20 6b 69 6c 6c | 65 64 2d 74 65 78 74 20 | of kill|ed-text |
|00003d70| 77 69 74 68 20 61 20 64 | 69 66 66 65 72 65 6e 74 |with a d|ifferent|
|00003d80| 20 73 74 72 65 74 63 68 | 2e 0a 54 68 69 73 20 63 | stretch|..This c|
|00003d90| 6f 6d 6d 61 6e 64 20 69 | 73 20 61 6c 6c 6f 77 65 |ommand i|s allowe|
|00003da0| 64 20 6f 6e 6c 79 20 69 | 6d 6d 65 64 69 61 74 65 |d only i|mmediate|
|00003db0| 6c 79 20 61 66 74 65 72 | 20 61 20 20 79 61 6e 6b |ly after| a yank|
|00003dc0| 20 20 6f 72 20 61 20 20 | 79 61 6e 6b 2d 70 6f 70 | or a |yank-pop|
|00003dd0| 2e 0a 41 74 20 73 75 63 | 68 20 61 20 74 69 6d 65 |..At suc|h a time|
|00003de0| 2c 20 74 68 65 20 72 65 | 67 69 6f 6e 20 63 6f 6e |, the re|gion con|
|00003df0| 74 61 69 6e 73 20 61 20 | 73 74 72 65 74 63 68 20 |tains a |stretch |
|00003e00| 6f 66 20 72 65 69 6e 73 | 65 72 74 65 64 0a 70 72 |of reins|erted.pr|
|00003e10| 65 76 69 6f 75 73 6c 79 | 2d 6b 69 6c 6c 65 64 20 |eviously|-killed |
|00003e20| 74 65 78 74 2e 20 20 79 | 61 6e 6b 2d 70 6f 70 20 |text. y|ank-pop |
|00003e30| 20 64 65 6c 65 74 65 73 | 20 74 68 61 74 20 74 65 | deletes| that te|
|00003e40| 78 74 20 61 6e 64 20 69 | 6e 73 65 72 74 73 20 69 |xt and i|nserts i|
|00003e50| 6e 20 69 74 73 0a 70 6c | 61 63 65 20 61 20 64 69 |n its.pl|ace a di|
|00003e60| 66 66 65 72 65 6e 74 20 | 73 74 72 65 74 63 68 20 |fferent |stretch |
|00003e70| 6f 66 20 6b 69 6c 6c 65 | 64 20 74 65 78 74 2e 0a |of kille|d text..|
|00003e80| 0a 57 69 74 68 20 6e 6f | 20 61 72 67 75 6d 65 6e |.With no| argumen|
|00003e90| 74 2c 20 74 68 65 20 70 | 72 65 76 69 6f 75 73 20 |t, the p|revious |
|00003ea0| 6b 69 6c 6c 20 69 73 20 | 69 6e 73 65 72 74 65 64 |kill is |inserted|
|00003eb0| 2e 0a 57 69 74 68 20 61 | 72 67 75 6d 65 6e 74 20 |..With a|rgument |
|00003ec0| 6e 2c 20 74 68 65 20 6e | 27 74 68 20 70 72 65 76 |n, the n|'th prev|
|00003ed0| 69 6f 75 73 20 6b 69 6c | 6c 20 69 73 20 69 6e 73 |ious kil|l is ins|
|00003ee0| 65 72 74 65 64 2e 0a 49 | 66 20 6e 20 69 73 20 6e |erted..I|f n is n|
|00003ef0| 65 67 61 74 69 76 65 2c | 20 74 68 69 73 20 69 73 |egative,| this is|
|00003f00| 20 61 20 6d 6f 72 65 20 | 72 65 63 65 6e 74 20 6b | a more |recent k|
|00003f10| 69 6c 6c 2e 0a 0a 54 68 | 65 20 73 65 71 75 65 6e |ill...Th|e sequen|
|00003f20| 63 65 20 6f 66 20 6b 69 | 6c 6c 73 20 77 72 61 70 |ce of ki|lls wrap|
|00003f30| 73 20 61 72 6f 75 6e 64 | 2c 20 73 6f 20 74 68 61 |s around|, so tha|
|00003f40| 74 20 61 66 74 65 72 20 | 74 68 65 20 6f 6c 64 65 |t after |the olde|
|00003f50| 73 74 20 6f 6e 65 0a 63 | 6f 6d 65 73 20 74 68 65 |st one.c|omes the|
|00003f60| 20 6e 65 77 65 73 74 20 | 6f 6e 65 2e 22 20 28 69 | newest |one." (i|
|00003f70| 6e 74 65 72 61 63 74 69 | 76 65 20 22 2a 70 22 29 |nteracti|ve "*p")|
|00003f80| 20 28 62 79 74 65 2d 63 | 6f 64 65 20 22 c5 88 08 | (byte-c|ode "...|
|00003f90| c6 3d 3f 85 0c 00 c7 c8 | 21 88 c6 89 11 88 60 c9 |.=?.....|!.....`.|
|00003fa0| 20 57 1a ca 60 c9 20 5c | 22 88 cb 0b 21 88 cc 60 | W..`. \|"...!..`|
|00003fb0| 21 88 0c 40 63 88 0a 85 | 2e 00 cd 20 29 87 22 20 |!..@c...|... )." |
|00003fc0| 5b 6c 61 73 74 2d 63 6f | 6d 6d 61 6e 64 20 74 68 |[last-co|mmand th|
|00003fd0| 69 73 2d 63 6f 6d 6d 61 | 6e 64 20 62 65 66 6f 72 |is-comma|nd befor|
|00003fe0| 65 20 61 72 67 20 6b 69 | 6c 6c 2d 72 69 6e 67 2d |e arg ki|ll-ring-|
|00003ff0| 79 61 6e 6b 2d 70 6f 69 | 6e 74 65 72 20 6e 69 6c |yank-poi|nter nil|
|00004000| 20 79 61 6e 6b 20 65 72 | 72 6f 72 20 22 50 72 65 | yank er|ror "Pre|
|00004010| 76 69 6f 75 73 20 63 6f | 6d 6d 61 6e 64 20 77 61 |vious co|mmand wa|
|00004020| 73 20 6e 6f 74 20 61 20 | 79 61 6e 6b 22 20 6d 61 |s not a |yank" ma|
|00004030| 72 6b 20 64 65 6c 65 74 | 65 2d 72 65 67 69 6f 6e |rk delet|e-region|
|00004040| 20 72 6f 74 61 74 65 2d | 79 61 6e 6b 2d 70 6f 69 | rotate-|yank-poi|
|00004050| 6e 74 65 72 20 73 65 74 | 2d 6d 61 72 6b 20 65 78 |nter set|-mark ex|
|00004060| 63 68 61 6e 67 65 2d 70 | 6f 69 6e 74 2d 61 6e 64 |change-p|oint-and|
|00004070| 2d 6d 61 72 6b 5d 20 38 | 29 29 0a 0a 28 64 65 66 |-mark] 8|))..(def|
|00004080| 75 6e 20 79 61 6e 6b 20 | 28 26 6f 70 74 69 6f 6e |un yank |(&option|
|00004090| 61 6c 20 61 72 67 29 20 | 22 5c 0a 52 65 69 6e 73 |al arg) |"\.Reins|
|000040a0| 65 72 74 20 74 68 65 20 | 6c 61 73 74 20 73 74 72 |ert the |last str|
|000040b0| 65 74 63 68 20 6f 66 20 | 6b 69 6c 6c 65 64 20 74 |etch of |killed t|
|000040c0| 65 78 74 2e 0a 4d 6f 72 | 65 20 70 72 65 63 69 73 |ext..Mor|e precis|
|000040d0| 65 6c 79 2c 20 72 65 69 | 6e 73 65 72 74 20 74 68 |ely, rei|nsert th|
|000040e0| 65 20 73 74 72 65 74 63 | 68 20 6f 66 20 6b 69 6c |e stretc|h of kil|
|000040f0| 6c 65 64 20 74 65 78 74 | 20 6d 6f 73 74 20 72 65 |led text| most re|
|00004100| 63 65 6e 74 6c 79 0a 6b | 69 6c 6c 65 64 20 4f 52 |cently.k|illed OR|
|00004110| 20 79 61 6e 6b 65 64 2e | 0a 57 69 74 68 20 6a 75 | yanked.|.With ju|
|00004120| 73 74 20 43 2d 55 20 61 | 73 20 61 72 67 75 6d 65 |st C-U a|s argume|
|00004130| 6e 74 2c 20 73 61 6d 65 | 20 62 75 74 20 70 75 74 |nt, same| but put|
|00004140| 20 70 6f 69 6e 74 20 69 | 6e 20 66 72 6f 6e 74 20 | point i|n front |
|00004150| 28 61 6e 64 20 6d 61 72 | 6b 20 61 74 20 65 6e 64 |(and mar|k at end|
|00004160| 29 2e 0a 57 69 74 68 20 | 61 72 67 75 6d 65 6e 74 |)..With |argument|
|00004170| 20 6e 2c 20 72 65 69 6e | 73 65 72 74 20 74 68 65 | n, rein|sert the|
|00004180| 20 6e 74 68 20 6d 6f 73 | 74 20 72 65 63 65 6e 74 | nth mos|t recent|
|00004190| 6c 79 20 6b 69 6c 6c 65 | 64 20 73 74 72 65 74 63 |ly kille|d stretc|
|000041a0| 68 20 6f 66 20 6b 69 6c | 6c 65 64 0a 74 65 78 74 |h of kil|led.text|
|000041b0| 2e 0a 53 65 65 20 61 6c | 73 6f 20 74 68 65 20 63 |..See al|so the c|
|000041c0| 6f 6d 6d 61 6e 64 20 5c | 5c 5b 79 61 6e 6b 2d 70 |ommand \|\[yank-p|
|000041d0| 6f 70 5d 2e 22 20 28 69 | 6e 74 65 72 61 63 74 69 |op]." (i|nteracti|
|000041e0| 76 65 20 22 2a 50 22 29 | 20 28 62 79 74 65 2d 63 |ve "*P")| (byte-c|
|000041f0| 6f 64 65 20 22 c2 88 c3 | 08 3c 83 0c 00 c4 82 18 |ode "...|.<......|
|00004200| 00 08 c5 3d 83 16 00 c6 | 82 18 00 08 53 21 88 c7 |...=....|....S!..|
|00004210| 60 21 88 09 40 63 88 08 | 3a 85 29 00 c8 20 87 22 |`!..@c..|:.).. ."|
|00004220| 20 5b 61 72 67 20 6b 69 | 6c 6c 2d 72 69 6e 67 2d | [arg ki|ll-ring-|
|00004230| 79 61 6e 6b 2d 70 6f 69 | 6e 74 65 72 20 6e 69 6c |yank-poi|nter nil|
|00004240| 20 72 6f 74 61 74 65 2d | 79 61 6e 6b 2d 70 6f 69 | rotate-|yank-poi|
|00004250| 6e 74 65 72 20 30 20 2d | 20 2d 31 20 70 75 73 68 |nter 0 -| -1 push|
|00004260| 2d 6d 61 72 6b 20 65 78 | 63 68 61 6e 67 65 2d 70 |-mark ex|change-p|
|00004270| 6f 69 6e 74 2d 61 6e 64 | 2d 6d 61 72 6b 5d 20 34 |oint-and|-mark] 4|
|00004280| 29 29 0a 0a 28 64 65 66 | 75 6e 20 69 6e 73 65 72 |))..(def|un inser|
|00004290| 74 2d 62 75 66 66 65 72 | 20 28 62 75 66 66 65 72 |t-buffer| (buffer|
|000042a0| 29 20 22 5c 0a 49 6e 73 | 65 72 74 20 61 66 74 65 |) "\.Ins|ert afte|
|000042b0| 72 20 70 6f 69 6e 74 20 | 74 68 65 20 63 6f 6e 74 |r point |the cont|
|000042c0| 65 6e 74 73 20 6f 66 20 | 42 55 46 46 45 52 2e 0a |ents of |BUFFER..|
|000042d0| 50 75 74 73 20 6d 61 72 | 6b 20 61 66 74 65 72 20 |Puts mar|k after |
|000042e0| 74 68 65 20 69 6e 73 65 | 72 74 65 64 20 74 65 78 |the inse|rted tex|
|000042f0| 74 2e 0a 42 55 46 46 45 | 52 20 6d 61 79 20 62 65 |t..BUFFE|R may be|
|00004300| 20 61 20 62 75 66 66 65 | 72 20 6f 72 20 61 20 62 | a buffe|r or a b|
|00004310| 75 66 66 65 72 20 6e 61 | 6d 65 2e 22 20 28 69 6e |uffer na|me." (in|
|00004320| 74 65 72 61 63 74 69 76 | 65 20 22 2a 62 49 6e 73 |teractiv|e "*bIns|
|00004330| 65 72 74 20 62 75 66 66 | 65 72 3a 20 22 29 20 28 |ert buff|er: ") (|
|00004340| 62 79 74 65 2d 63 6f 64 | 65 20 22 c4 88 c5 08 21 |byte-cod|e "....!|
|00004350| 86 0d 00 c6 08 21 89 10 | 88 c4 c4 c4 1b 1a 19 8a |.....!..|........|
|00004360| 8a 08 71 88 65 11 64 89 | 12 29 88 c7 08 09 0a 23 |..q.e.d.|.).....#|
|00004370| 88 60 89 13 29 88 c8 0b | 21 2b 87 22 20 5b 62 75 |.`..)...|!+." [bu|
|00004380| 66 66 65 72 20 73 74 61 | 72 74 20 65 6e 64 20 6e |ffer sta|rt end n|
|00004390| 65 77 6d 61 72 6b 20 6e | 69 6c 20 62 75 66 66 65 |ewmark n|il buffe|
|000043a0| 72 70 20 67 65 74 2d 62 | 75 66 66 65 72 20 69 6e |rp get-b|uffer in|
|000043b0| 73 65 72 74 2d 62 75 66 | 66 65 72 2d 73 75 62 73 |sert-buf|fer-subs|
|000043c0| 74 72 69 6e 67 20 70 75 | 73 68 2d 6d 61 72 6b 5d |tring pu|sh-mark]|
|000043d0| 20 36 29 29 0a 0a 28 64 | 65 66 75 6e 20 61 70 70 | 6))..(d|efun app|
|000043e0| 65 6e 64 2d 74 6f 2d 62 | 75 66 66 65 72 20 28 62 |end-to-b|uffer (b|
|000043f0| 75 66 66 65 72 20 73 74 | 61 72 74 20 65 6e 64 29 |uffer st|art end)|
|00004400| 20 22 5c 0a 41 70 70 65 | 6e 64 20 74 6f 20 73 70 | "\.Appe|nd to sp|
|00004410| 65 63 69 66 69 65 64 20 | 62 75 66 66 65 72 20 74 |ecified |buffer t|
|00004420| 68 65 20 74 65 78 74 20 | 6f 66 20 74 68 65 20 72 |he text |of the r|
|00004430| 65 67 69 6f 6e 2e 0a 49 | 74 20 69 73 20 69 6e 73 |egion..I|t is ins|
|00004440| 65 72 74 65 64 20 69 6e | 74 6f 20 74 68 61 74 20 |erted in|to that |
|00004450| 62 75 66 66 65 72 20 62 | 65 66 6f 72 65 20 69 74 |buffer b|efore it|
|00004460| 73 20 70 6f 69 6e 74 2e | 0a 0a 57 68 65 6e 20 63 |s point.|..When c|
|00004470| 61 6c 6c 69 6e 67 20 66 | 72 6f 6d 20 61 20 70 72 |alling f|rom a pr|
|00004480| 6f 67 72 61 6d 2c 20 67 | 69 76 65 20 74 68 72 65 |ogram, g|ive thre|
|00004490| 65 20 61 72 67 75 6d 65 | 6e 74 73 3a 0a 61 20 62 |e argume|nts:.a b|
|000044a0| 75 66 66 65 72 20 6f 72 | 20 74 68 65 20 6e 61 6d |uffer or| the nam|
|000044b0| 65 20 6f 66 20 6f 6e 65 | 2c 20 61 6e 64 20 74 77 |e of one|, and tw|
|000044c0| 6f 20 63 68 61 72 61 63 | 74 65 72 20 6e 75 6d 62 |o charac|ter numb|
|000044d0| 65 72 73 0a 73 70 65 63 | 69 66 79 69 6e 67 20 74 |ers.spec|ifying t|
|000044e0| 68 65 20 70 6f 72 74 69 | 6f 6e 20 6f 66 20 74 68 |he porti|on of th|
|000044f0| 65 20 63 75 72 72 65 6e | 74 20 62 75 66 66 65 72 |e curren|t buffer|
|00004500| 20 74 6f 20 62 65 20 63 | 6f 70 69 65 64 2e 22 20 | to be c|opied." |
|00004510| 28 69 6e 74 65 72 61 63 | 74 69 76 65 20 22 42 41 |(interac|tive "BA|
|00004520| 70 70 65 6e 64 20 74 6f | 20 62 75 66 66 65 72 3a |ppend to| buffer:|
|00004530| 20 0a 72 22 29 20 28 62 | 79 74 65 2d 63 6f 64 65 | .r") (b|yte-code|
|00004540| 20 22 c4 88 70 18 8a c5 | 09 21 71 88 c6 08 0a 0b | "..p...|.!q.....|
|00004550| 23 29 29 87 22 20 5b 6f | 6c 64 62 75 66 20 62 75 |#))." [o|ldbuf bu|
|00004560| 66 66 65 72 20 73 74 61 | 72 74 20 65 6e 64 20 6e |ffer sta|rt end n|
|00004570| 69 6c 20 67 65 74 2d 62 | 75 66 66 65 72 2d 63 72 |il get-b|uffer-cr|
|00004580| 65 61 74 65 20 69 6e 73 | 65 72 74 2d 62 75 66 66 |eate ins|ert-buff|
|00004590| 65 72 2d 73 75 62 73 74 | 72 69 6e 67 5d 20 35 29 |er-subst|ring] 5)|
|000045a0| 29 0a 0a 28 64 65 66 75 | 6e 20 70 72 65 70 65 6e |)..(defu|n prepen|
|000045b0| 64 2d 74 6f 2d 62 75 66 | 66 65 72 20 28 62 75 66 |d-to-buf|fer (buf|
|000045c0| 66 65 72 20 73 74 61 72 | 74 20 65 6e 64 29 20 22 |fer star|t end) "|
|000045d0| 5c 0a 50 72 65 70 65 6e | 64 20 74 6f 20 73 70 65 |\.Prepen|d to spe|
|000045e0| 63 69 66 69 65 64 20 62 | 75 66 66 65 72 20 74 68 |cified b|uffer th|
|000045f0| 65 20 74 65 78 74 20 6f | 66 20 74 68 65 20 72 65 |e text o|f the re|
|00004600| 67 69 6f 6e 2e 0a 49 74 | 20 69 73 20 69 6e 73 65 |gion..It| is inse|
|00004610| 72 74 65 64 20 69 6e 74 | 6f 20 74 68 61 74 20 62 |rted int|o that b|
|00004620| 75 66 66 65 72 20 61 66 | 74 65 72 20 69 74 73 20 |uffer af|ter its |
|00004630| 70 6f 69 6e 74 2e 0a 0a | 57 68 65 6e 20 63 61 6c |point...|When cal|
|00004640| 6c 69 6e 67 20 66 72 6f | 6d 20 61 20 70 72 6f 67 |ling fro|m a prog|
|00004650| 72 61 6d 2c 20 67 69 76 | 65 20 74 68 72 65 65 20 |ram, giv|e three |
|00004660| 61 72 67 75 6d 65 6e 74 | 73 3a 0a 61 20 62 75 66 |argument|s:.a buf|
|00004670| 66 65 72 20 6f 72 20 74 | 68 65 20 6e 61 6d 65 20 |fer or t|he name |
|00004680| 6f 66 20 6f 6e 65 2c 20 | 61 6e 64 20 74 77 6f 20 |of one, |and two |
|00004690| 63 68 61 72 61 63 74 65 | 72 20 6e 75 6d 62 65 72 |characte|r number|
|000046a0| 73 0a 73 70 65 63 69 66 | 79 69 6e 67 20 74 68 65 |s.specif|ying the|
|000046b0| 20 70 6f 72 74 69 6f 6e | 20 6f 66 20 74 68 65 20 | portion| of the |
|000046c0| 63 75 72 72 65 6e 74 20 | 62 75 66 66 65 72 20 74 |current |buffer t|
|000046d0| 6f 20 62 65 20 63 6f 70 | 69 65 64 2e 22 20 28 69 |o be cop|ied." (i|
|000046e0| 6e 74 65 72 61 63 74 69 | 76 65 20 22 42 50 72 65 |nteracti|ve "BPre|
|000046f0| 70 65 6e 64 20 74 6f 20 | 62 75 66 66 65 72 3a 20 |pend to |buffer: |
|00004700| 0a 72 22 29 20 28 62 79 | 74 65 2d 63 6f 64 65 20 |.r") (by|te-code |
|00004710| 22 c4 88 70 18 8a c5 09 | 21 71 88 8a c6 08 0a 0b |"..p....|!q......|
|00004720| 23 29 29 29 87 22 20 5b | 6f 6c 64 62 75 66 20 62 |#)))." [|oldbuf b|
|00004730| 75 66 66 65 72 20 73 74 | 61 72 74 20 65 6e 64 20 |uffer st|art end |
|00004740| 6e 69 6c 20 67 65 74 2d | 62 75 66 66 65 72 2d 63 |nil get-|buffer-c|
|00004750| 72 65 61 74 65 20 69 6e | 73 65 72 74 2d 62 75 66 |reate in|sert-buf|
|00004760| 66 65 72 2d 73 75 62 73 | 74 72 69 6e 67 5d 20 35 |fer-subs|tring] 5|
|00004770| 29 29 0a 0a 28 64 65 66 | 75 6e 20 63 6f 70 79 2d |))..(def|un copy-|
|00004780| 74 6f 2d 62 75 66 66 65 | 72 20 28 62 75 66 66 65 |to-buffe|r (buffe|
|00004790| 72 20 73 74 61 72 74 20 | 65 6e 64 29 20 22 5c 0a |r start |end) "\.|
|000047a0| 43 6f 70 79 20 74 6f 20 | 73 70 65 63 69 66 69 65 |Copy to |specifie|
|000047b0| 64 20 62 75 66 66 65 72 | 20 74 68 65 20 74 65 78 |d buffer| the tex|
|000047c0| 74 20 6f 66 20 74 68 65 | 20 72 65 67 69 6f 6e 2e |t of the| region.|
|000047d0| 0a 49 74 20 69 73 20 69 | 6e 73 65 72 74 65 64 20 |.It is i|nserted |
|000047e0| 69 6e 74 6f 20 74 68 61 | 74 20 62 75 66 66 65 72 |into tha|t buffer|
|000047f0| 2c 20 72 65 70 6c 61 63 | 69 6e 67 20 65 78 69 73 |, replac|ing exis|
|00004800| 74 69 6e 67 20 74 65 78 | 74 20 74 68 65 72 65 2e |ting tex|t there.|
|00004810| 0a 0a 57 68 65 6e 20 63 | 61 6c 6c 69 6e 67 20 66 |..When c|alling f|
|00004820| 72 6f 6d 20 61 20 70 72 | 6f 67 72 61 6d 2c 20 67 |rom a pr|ogram, g|
|00004830| 69 76 65 20 74 68 72 65 | 65 20 61 72 67 75 6d 65 |ive thre|e argume|
|00004840| 6e 74 73 3a 0a 61 20 62 | 75 66 66 65 72 20 6f 72 |nts:.a b|uffer or|
|00004850| 20 74 68 65 20 6e 61 6d | 65 20 6f 66 20 6f 6e 65 | the nam|e of one|
|00004860| 2c 20 61 6e 64 20 74 77 | 6f 20 63 68 61 72 61 63 |, and tw|o charac|
|00004870| 74 65 72 20 6e 75 6d 62 | 65 72 73 0a 73 70 65 63 |ter numb|ers.spec|
|00004880| 69 66 79 69 6e 67 20 74 | 68 65 20 70 6f 72 74 69 |ifying t|he porti|
|00004890| 6f 6e 20 6f 66 20 74 68 | 65 20 63 75 72 72 65 6e |on of th|e curren|
|000048a0| 74 20 62 75 66 66 65 72 | 20 74 6f 20 62 65 20 63 |t buffer| to be c|
|000048b0| 6f 70 69 65 64 2e 22 20 | 28 69 6e 74 65 72 61 63 |opied." |(interac|
|000048c0| 74 69 76 65 20 22 42 43 | 6f 70 79 20 74 6f 20 62 |tive "BC|opy to b|
|000048d0| 75 66 66 65 72 3a 20 0a | 72 22 29 20 28 62 79 74 |uffer: .|r") (byt|
|000048e0| 65 2d 63 6f 64 65 20 22 | c4 88 70 18 8a c5 09 21 |e-code "|..p....!|
|000048f0| 71 88 c6 20 88 8a c7 08 | 0a 0b 23 29 29 29 87 22 |q.. ....|..#)))."|
|00004900| 20 5b 6f 6c 64 62 75 66 | 20 62 75 66 66 65 72 20 | [oldbuf| buffer |
|00004910| 73 74 61 72 74 20 65 6e | 64 20 6e 69 6c 20 67 65 |start en|d nil ge|
|00004920| 74 2d 62 75 66 66 65 72 | 2d 63 72 65 61 74 65 20 |t-buffer|-create |
|00004930| 65 72 61 73 65 2d 62 75 | 66 66 65 72 20 69 6e 73 |erase-bu|ffer ins|
|00004940| 65 72 74 2d 62 75 66 66 | 65 72 2d 73 75 62 73 74 |ert-buff|er-subst|
|00004950| 72 69 6e 67 5d 20 36 29 | 29 0a 0a 28 64 65 66 75 |ring] 6)|)..(defu|
|00004960| 6e 20 6d 61 72 6b 20 6e | 69 6c 20 22 5c 0a 52 65 |n mark n|il "\.Re|
|00004970| 74 75 72 6e 20 74 68 69 | 73 20 62 75 66 66 65 72 |turn thi|s buffer|
|00004980| 27 73 20 6d 61 72 6b 20 | 76 61 6c 75 65 20 61 73 |'s mark |value as|
|00004990| 20 69 6e 74 65 67 65 72 | 2c 20 6f 72 20 6e 69 6c | integer|, or nil|
|000049a0| 20 69 66 20 6e 6f 20 6d | 61 72 6b 2e 0a 49 66 20 | if no m|ark..If |
|000049b0| 79 6f 75 20 61 72 65 20 | 75 73 69 6e 67 20 74 68 |you are |using th|
|000049c0| 69 73 20 69 6e 20 61 6e | 20 65 64 69 74 69 6e 67 |is in an| editing|
|000049d0| 20 63 6f 6d 6d 61 6e 64 | 2c 20 79 6f 75 20 61 72 | command|, you ar|
|000049e0| 65 20 6d 6f 73 74 20 6c | 69 6b 65 6c 79 20 6d 61 |e most l|ikely ma|
|000049f0| 6b 69 6e 67 0a 61 20 6d | 69 73 74 61 6b 65 3b 20 |king.a m|istake; |
|00004a00| 73 65 65 20 74 68 65 20 | 64 6f 63 75 6d 65 6e 74 |see the |document|
|00004a10| 61 74 69 6f 6e 20 6f 66 | 20 60 73 65 74 2d 6d 61 |ation of| `set-ma|
|00004a20| 72 6b 27 2e 22 20 28 62 | 79 74 65 2d 63 6f 64 65 |rk'." (b|yte-code|
|00004a30| 20 22 c0 c1 20 21 87 22 | 20 5b 6d 61 72 6b 65 72 | ".. !."| [marker|
|00004a40| 2d 70 6f 73 69 74 69 6f | 6e 20 6d 61 72 6b 2d 6d |-positio|n mark-m|
|00004a50| 61 72 6b 65 72 5d 20 33 | 29 29 0a 0a 28 64 65 66 |arker] 3|))..(def|
|00004a60| 75 6e 20 73 65 74 2d 6d | 61 72 6b 20 28 70 6f 73 |un set-m|ark (pos|
|00004a70| 29 20 22 5c 0a 53 65 74 | 20 74 68 69 73 20 62 75 |) "\.Set| this bu|
|00004a80| 66 66 65 72 27 73 20 6d | 61 72 6b 20 74 6f 20 50 |ffer's m|ark to P|
|00004a90| 4f 53 2e 20 20 44 6f 6e | 27 74 20 75 73 65 20 74 |OS. Don|'t use t|
|00004aa0| 68 69 73 20 66 75 6e 63 | 74 69 6f 6e 21 0a 54 68 |his func|tion!.Th|
|00004ab0| 61 74 20 69 73 20 74 6f | 20 73 61 79 2c 20 64 6f |at is to| say, do|
|00004ac0| 6e 27 74 20 75 73 65 20 | 74 68 69 73 20 66 75 6e |n't use |this fun|
|00004ad0| 63 74 69 6f 6e 20 75 6e | 6c 65 73 73 20 79 6f 75 |ction un|less you|
|00004ae0| 20 77 61 6e 74 0a 74 68 | 65 20 75 73 65 72 20 74 | want.th|e user t|
|00004af0| 6f 20 73 65 65 20 74 68 | 61 74 20 74 68 65 20 6d |o see th|at the m|
|00004b00| 61 72 6b 20 68 61 73 20 | 6d 6f 76 65 64 2c 20 61 |ark has |moved, a|
|00004b10| 6e 64 20 79 6f 75 20 77 | 61 6e 74 20 74 68 65 20 |nd you w|ant the |
|00004b20| 70 72 65 76 69 6f 75 73 | 0a 6d 61 72 6b 20 70 6f |previous|.mark po|
|00004b30| 73 69 74 69 6f 6e 20 74 | 6f 20 62 65 20 6c 6f 73 |sition t|o be los|
|00004b40| 74 2e 0a 0a 4e 6f 72 6d | 61 6c 6c 79 2c 20 77 68 |t...Norm|ally, wh|
|00004b50| 65 6e 20 61 20 6e 65 77 | 20 6d 61 72 6b 20 69 73 |en a new| mark is|
|00004b60| 20 73 65 74 2c 20 74 68 | 65 20 6f 6c 64 20 6f 6e | set, th|e old on|
|00004b70| 65 20 73 68 6f 75 6c 64 | 20 67 6f 20 6f 6e 20 74 |e should| go on t|
|00004b80| 68 65 20 73 74 61 63 6b | 2e 0a 54 68 69 73 20 69 |he stack|..This i|
|00004b90| 73 20 77 68 79 20 6d 6f | 73 74 20 61 70 70 6c 69 |s why mo|st appli|
|00004ba0| 63 61 74 69 6f 6e 73 20 | 73 68 6f 75 6c 64 20 75 |cations |should u|
|00004bb0| 73 65 20 70 75 73 68 2d | 6d 61 72 6b 2c 20 6e 6f |se push-|mark, no|
|00004bc0| 74 20 73 65 74 2d 6d 61 | 72 6b 2e 0a 0a 4e 6f 76 |t set-ma|rk...Nov|
|00004bd0| 69 63 65 20 65 6d 61 63 | 73 2d 6c 69 73 70 20 70 |ice emac|s-lisp p|
|00004be0| 72 6f 67 72 61 6d 6d 65 | 72 73 20 6f 66 74 65 6e |rogramme|rs often|
|00004bf0| 20 74 72 79 20 74 6f 20 | 75 73 65 20 74 68 65 20 | try to |use the |
|00004c00| 6d 61 72 6b 20 66 6f 72 | 20 74 68 65 20 77 72 6f |mark for| the wro|
|00004c10| 6e 67 0a 70 75 72 70 6f | 73 65 73 2e 20 20 54 68 |ng.purpo|ses. Th|
|00004c20| 65 20 6d 61 72 6b 20 73 | 61 76 65 73 20 61 20 6c |e mark s|aves a l|
|00004c30| 6f 63 61 74 69 6f 6e 20 | 66 6f 72 20 74 68 65 20 |ocation |for the |
|00004c40| 75 73 65 72 27 73 20 63 | 6f 6e 76 65 6e 69 65 6e |user's c|onvenien|
|00004c50| 63 65 2e 0a 4d 6f 73 74 | 20 65 64 69 74 69 6e 67 |ce..Most| editing|
|00004c60| 20 63 6f 6d 6d 61 6e 64 | 73 20 73 68 6f 75 6c 64 | command|s should|
|00004c70| 20 6e 6f 74 20 61 6c 74 | 65 72 20 74 68 65 20 6d | not alt|er the m|
|00004c80| 61 72 6b 2e 0a 54 6f 20 | 72 65 6d 65 6d 62 65 72 |ark..To |remember|
|00004c90| 20 61 20 6c 6f 63 61 74 | 69 6f 6e 20 66 6f 72 20 | a locat|ion for |
|00004ca0| 69 6e 74 65 72 6e 61 6c | 20 75 73 65 20 69 6e 20 |internal| use in |
|00004cb0| 74 68 65 20 4c 69 73 70 | 20 70 72 6f 67 72 61 6d |the Lisp| program|
|00004cc0| 2c 0a 73 74 6f 72 65 20 | 69 74 20 69 6e 20 61 20 |,.store |it in a |
|00004cd0| 4c 69 73 70 20 76 61 72 | 69 61 62 6c 65 2e 20 20 |Lisp var|iable. |
|00004ce0| 45 78 61 6d 70 6c 65 3a | 0a 0a 20 20 20 28 6c 65 |Example:|.. (le|
|00004cf0| 74 20 28 28 62 65 67 20 | 28 70 6f 69 6e 74 29 29 |t ((beg |(point))|
|00004d00| 29 20 28 66 6f 72 77 61 | 72 64 2d 6c 69 6e 65 20 |) (forwa|rd-line |
|00004d10| 31 29 20 28 64 65 6c 65 | 74 65 2d 72 65 67 69 6f |1) (dele|te-regio|
|00004d20| 6e 20 62 65 67 20 28 70 | 6f 69 6e 74 29 29 29 2e |n beg (p|oint))).|
|00004d30| 22 20 28 62 79 74 65 2d | 63 6f 64 65 20 22 c1 c2 |" (byte-|code "..|
|00004d40| 20 08 70 23 87 22 20 5b | 70 6f 73 20 73 65 74 2d | .p#." [|pos set-|
|00004d50| 6d 61 72 6b 65 72 20 6d | 61 72 6b 2d 6d 61 72 6b |marker m|ark-mark|
|00004d60| 65 72 5d 20 35 29 29 0a | 0a 28 64 65 66 76 61 72 |er] 5)).|.(defvar|
|00004d70| 20 6d 61 72 6b 2d 72 69 | 6e 67 20 6e 69 6c 20 22 | mark-ri|ng nil "|
|00004d80| 5c 0a 54 68 65 20 6c 69 | 73 74 20 6f 66 20 73 61 |\.The li|st of sa|
|00004d90| 76 65 64 20 66 6f 72 6d | 65 72 20 6d 61 72 6b 73 |ved form|er marks|
|00004da0| 20 6f 66 20 74 68 65 20 | 63 75 72 72 65 6e 74 20 | of the |current |
|00004db0| 62 75 66 66 65 72 2c 0a | 6d 6f 73 74 20 72 65 63 |buffer,.|most rec|
|00004dc0| 65 6e 74 20 66 69 72 73 | 74 2e 22 29 0a 0a 28 6d |ent firs|t.")..(m|
|00004dd0| 61 6b 65 2d 76 61 72 69 | 61 62 6c 65 2d 62 75 66 |ake-vari|able-buf|
|00004de0| 66 65 72 2d 6c 6f 63 61 | 6c 20 28 71 75 6f 74 65 |fer-loca|l (quote|
|00004df0| 20 6d 61 72 6b 2d 72 69 | 6e 67 29 29 0a 0a 28 64 | mark-ri|ng))..(d|
|00004e00| 65 66 63 6f 6e 73 74 20 | 6d 61 72 6b 2d 72 69 6e |efconst |mark-rin|
|00004e10| 67 2d 6d 61 78 20 31 36 | 20 22 5c 0a 2a 4d 61 78 |g-max 16| "\.*Max|
|00004e20| 69 6d 75 6d 20 73 69 7a | 65 20 6f 66 20 6d 61 72 |imum siz|e of mar|
|00004e30| 6b 20 72 69 6e 67 2e 20 | 20 53 74 61 72 74 20 64 |k ring. | Start d|
|00004e40| 69 73 63 61 72 64 69 6e | 67 20 6f 66 66 20 65 6e |iscardin|g off en|
|00004e50| 64 20 69 66 20 67 65 74 | 73 20 74 68 69 73 20 62 |d if get|s this b|
|00004e60| 69 67 2e 22 29 0a 0a 28 | 64 65 66 75 6e 20 73 65 |ig.")..(|defun se|
|00004e70| 74 2d 6d 61 72 6b 2d 63 | 6f 6d 6d 61 6e 64 20 28 |t-mark-c|ommand (|
|00004e80| 61 72 67 29 20 22 5c 0a | 53 65 74 20 6d 61 72 6b |arg) "\.|Set mark|
|00004e90| 20 61 74 20 77 68 65 72 | 65 20 70 6f 69 6e 74 20 | at wher|e point |
|00004ea0| 69 73 2c 20 6f 72 20 6a | 75 6d 70 20 74 6f 20 6d |is, or j|ump to m|
|00004eb0| 61 72 6b 2e 0a 57 69 74 | 68 20 6e 6f 20 70 72 65 |ark..Wit|h no pre|
|00004ec0| 66 69 78 20 61 72 67 75 | 6d 65 6e 74 2c 20 73 65 |fix argu|ment, se|
|00004ed0| 74 20 6d 61 72 6b 2c 20 | 61 6e 64 20 70 75 73 68 |t mark, |and push|
|00004ee0| 20 70 72 65 76 69 6f 75 | 73 20 6d 61 72 6b 20 6f | previou|s mark o|
|00004ef0| 6e 20 6d 61 72 6b 20 72 | 69 6e 67 2e 0a 57 69 74 |n mark r|ing..Wit|
|00004f00| 68 20 61 72 67 75 6d 65 | 6e 74 2c 20 6a 75 6d 70 |h argume|nt, jump|
|00004f10| 20 74 6f 20 6d 61 72 6b | 2c 20 61 6e 64 20 70 6f | to mark|, and po|
|00004f20| 70 20 69 6e 74 6f 20 6d | 61 72 6b 20 6f 66 66 20 |p into m|ark off |
|00004f30| 74 68 65 20 6d 61 72 6b | 20 72 69 6e 67 2e 0a 0a |the mark| ring...|
|00004f40| 4e 6f 76 69 63 65 20 65 | 6d 61 63 73 2d 6c 69 73 |Novice e|macs-lis|
|00004f50| 70 20 70 72 6f 67 72 61 | 6d 6d 65 72 73 20 6f 66 |p progra|mmers of|
|00004f60| 74 65 6e 20 74 72 79 20 | 74 6f 20 75 73 65 20 74 |ten try |to use t|
|00004f70| 68 65 20 6d 61 72 6b 20 | 66 6f 72 20 74 68 65 20 |he mark |for the |
|00004f80| 77 72 6f 6e 67 0a 70 75 | 72 70 6f 73 65 73 2e 20 |wrong.pu|rposes. |
|00004f90| 20 53 65 65 20 74 68 65 | 20 64 6f 63 75 6d 65 6e | See the| documen|
|00004fa0| 74 61 74 69 6f 6e 20 6f | 66 20 60 73 65 74 2d 6d |tation o|f `set-m|
|00004fb0| 61 72 6b 27 20 66 6f 72 | 20 6d 6f 72 65 20 69 6e |ark' for| more in|
|00004fc0| 66 6f 72 6d 61 74 69 6f | 6e 2e 22 20 28 69 6e 74 |formatio|n." (int|
|00004fd0| 65 72 61 63 74 69 76 65 | 20 22 50 22 29 20 28 62 |eractive| "P") (b|
|00004fe0| 79 74 65 2d 63 6f 64 65 | 20 22 c1 88 08 3f 83 0c |yte-code| "...?..|
|00004ff0| 00 c2 20 82 1e 00 c3 20 | 3f 83 18 00 c4 c5 21 82 |.. .... |?.....!.|
|00005000| 1e 00 c3 20 62 88 c6 20 | 87 22 20 5b 61 72 67 20 |... b.. |." [arg |
|00005010| 6e 69 6c 20 70 75 73 68 | 2d 6d 61 72 6b 20 6d 61 |nil push|-mark ma|
|00005020| 72 6b 20 65 72 72 6f 72 | 20 22 4e 6f 20 6d 61 72 |rk error| "No mar|
|00005030| 6b 20 73 65 74 20 69 6e | 20 74 68 69 73 20 62 75 |k set in| this bu|
|00005040| 66 66 65 72 22 20 70 6f | 70 2d 6d 61 72 6b 5d 20 |ffer" po|p-mark] |
|00005050| 36 29 29 0a 0a 28 64 65 | 66 75 6e 20 70 75 73 68 |6))..(de|fun push|
|00005060| 2d 6d 61 72 6b 20 28 26 | 6f 70 74 69 6f 6e 61 6c |-mark (&|optional|
|00005070| 20 6c 6f 63 61 74 69 6f | 6e 20 6e 6f 6d 73 67 29 | locatio|n nomsg)|
|00005080| 20 22 5c 0a 53 65 74 20 | 6d 61 72 6b 20 61 74 20 | "\.Set |mark at |
|00005090| 4c 4f 43 41 54 49 4f 4e | 20 28 70 6f 69 6e 74 2c |LOCATION| (point,|
|000050a0| 20 62 79 20 64 65 66 61 | 75 6c 74 29 20 61 6e 64 | by defa|ult) and|
|000050b0| 20 70 75 73 68 20 6f 6c | 64 20 6d 61 72 6b 20 6f | push ol|d mark o|
|000050c0| 6e 20 6d 61 72 6b 20 72 | 69 6e 67 2e 0a 44 69 73 |n mark r|ing..Dis|
|000050d0| 70 6c 61 79 73 20 5c 22 | 4d 61 72 6b 20 73 65 74 |plays \"|Mark set|
|000050e0| 5c 22 20 75 6e 6c 65 73 | 73 20 74 68 65 20 6f 70 |\" unles|s the op|
|000050f0| 74 69 6f 6e 61 6c 20 73 | 65 63 6f 6e 64 20 61 72 |tional s|econd ar|
|00005100| 67 20 4e 4f 4d 53 47 20 | 69 73 20 6e 6f 6e 2d 6e |g NOMSG |is non-n|
|00005110| 69 6c 2e 0a 0a 4e 6f 76 | 69 63 65 20 65 6d 61 63 |il...Nov|ice emac|
|00005120| 73 2d 6c 69 73 70 20 70 | 72 6f 67 72 61 6d 6d 65 |s-lisp p|rogramme|
|00005130| 72 73 20 6f 66 74 65 6e | 20 74 72 79 20 74 6f 20 |rs often| try to |
|00005140| 75 73 65 20 74 68 65 20 | 6d 61 72 6b 20 66 6f 72 |use the |mark for|
|00005150| 20 74 68 65 20 77 72 6f | 6e 67 0a 70 75 72 70 6f | the wro|ng.purpo|
|00005160| 73 65 73 2e 20 20 53 65 | 65 20 74 68 65 20 64 6f |ses. Se|e the do|
|00005170| 63 75 6d 65 6e 74 61 74 | 69 6f 6e 20 6f 66 20 60 |cumentat|ion of `|
|00005180| 73 65 74 2d 6d 61 72 6b | 27 20 66 6f 72 20 6d 6f |set-mark|' for mo|
|00005190| 72 65 20 69 6e 66 6f 72 | 6d 61 74 69 6f 6e 2e 22 |re infor|mation."|
|000051a0| 20 28 62 79 74 65 2d 63 | 6f 64 65 20 22 c6 20 3f | (byte-c|ode ". ?|
|000051b0| 83 0a 00 c0 82 2b 00 c7 | c8 20 21 09 42 89 11 88 |.....+..|. !.B...|
|000051c0| 09 47 0a 56 85 2b 00 c9 | ca 0a 09 5c 22 40 c0 5c |.G.V.+..|...\"@.\|
|000051d0| 22 88 cb ca 0a 53 09 5c | 22 c0 5c 22 88 cc 0b 86 |"....S.\|".\"....|
|000051e0| 32 00 60 21 88 0c 86 46 | 00 0d 86 46 00 cd 20 ce |2.`!...F|...F.. .|
|000051f0| 56 86 46 00 cf d0 21 87 | 22 20 5b 6e 69 6c 20 6d |V.F...!.|" [nil m|
|00005200| 61 72 6b 2d 72 69 6e 67 | 20 6d 61 72 6b 2d 72 69 |ark-ring| mark-ri|
|00005210| 6e 67 2d 6d 61 78 20 6c | 6f 63 61 74 69 6f 6e 20 |ng-max l|ocation |
|00005220| 6e 6f 6d 73 67 20 65 78 | 65 63 75 74 69 6e 67 2d |nomsg ex|ecuting-|
|00005230| 6d 61 63 72 6f 20 6d 61 | 72 6b 20 63 6f 70 79 2d |macro ma|rk copy-|
|00005240| 6d 61 72 6b 65 72 20 6d | 61 72 6b 2d 6d 61 72 6b |marker m|ark-mark|
|00005250| 65 72 20 6d 6f 76 65 2d | 6d 61 72 6b 65 72 20 6e |er move-|marker n|
|00005260| 74 68 63 64 72 20 73 65 | 74 63 64 72 20 73 65 74 |thcdr se|tcdr set|
|00005270| 2d 6d 61 72 6b 20 6d 69 | 6e 69 62 75 66 66 65 72 |-mark mi|nibuffer|
|00005280| 2d 64 65 70 74 68 20 30 | 20 6d 65 73 73 61 67 65 |-depth 0| message|
|00005290| 20 22 4d 61 72 6b 20 73 | 65 74 22 5d 20 31 31 29 | "Mark s|et"] 11)|
|000052a0| 29 0a 0a 28 64 65 66 75 | 6e 20 70 6f 70 2d 6d 61 |)..(defu|n pop-ma|
|000052b0| 72 6b 20 6e 69 6c 20 22 | 5c 0a 50 6f 70 20 6f 66 |rk nil "|\.Pop of|
|000052c0| 66 20 6d 61 72 6b 20 72 | 69 6e 67 20 69 6e 74 6f |f mark r|ing into|
|000052d0| 20 74 68 65 20 62 75 66 | 66 65 72 27 73 20 61 63 | the buf|fer's ac|
|000052e0| 74 75 61 6c 20 6d 61 72 | 6b 2e 0a 44 6f 65 73 20 |tual mar|k..Does |
|000052f0| 6e 6f 74 20 73 65 74 20 | 70 6f 69 6e 74 2e 20 20 |not set |point. |
|00005300| 44 6f 65 73 20 6e 6f 74 | 68 69 6e 67 20 69 66 20 |Does not|hing if |
|00005310| 6d 61 72 6b 20 72 69 6e | 67 20 69 73 20 65 6d 70 |mark rin|g is emp|
|00005320| 74 79 2e 22 20 28 62 79 | 74 65 2d 63 6f 64 65 20 |ty." (by|te-code |
|00005330| 22 08 85 29 00 c2 08 c3 | c4 20 21 43 5c 22 89 10 |"..)....|. !C\"..|
|00005340| 88 c5 c6 08 40 5c 5c 21 | 88 c7 08 40 c1 5c 22 88 |....@\\!|...@.\".|
|00005350| c8 20 3f 85 24 00 c9 20 | 88 08 41 89 10 87 22 20 |. ?.$.. |..A..." |
|00005360| 5b 6d 61 72 6b 2d 72 69 | 6e 67 20 6e 69 6c 20 6e |[mark-ri|ng nil n|
|00005370| 63 6f 6e 63 20 63 6f 70 | 79 2d 6d 61 72 6b 65 72 |conc cop|y-marker|
|00005380| 20 6d 61 72 6b 2d 6d 61 | 72 6b 65 72 20 73 65 74 | mark-ma|rker set|
|00005390| 2d 6d 61 72 6b 20 30 20 | 6d 6f 76 65 2d 6d 61 72 |-mark 0 |move-mar|
|000053a0| 6b 65 72 20 6d 61 72 6b | 20 64 69 6e 67 5d 20 39 |ker mark| ding] 9|
|000053b0| 29 29 0a 0a 28 66 73 65 | 74 20 28 71 75 6f 74 65 |))..(fse|t (quote|
|000053c0| 20 65 78 63 68 61 6e 67 | 65 2d 64 6f 74 2d 61 6e | exchang|e-dot-an|
|000053d0| 64 2d 6d 61 72 6b 29 20 | 28 71 75 6f 74 65 20 65 |d-mark) |(quote e|
|000053e0| 78 63 68 61 6e 67 65 2d | 70 6f 69 6e 74 2d 61 6e |xchange-|point-an|
|000053f0| 64 2d 6d 61 72 6b 29 29 | 0a 0a 28 64 65 66 75 6e |d-mark))|..(defun|
|00005400| 20 65 78 63 68 61 6e 67 | 65 2d 70 6f 69 6e 74 2d | exchang|e-point-|
|00005410| 61 6e 64 2d 6d 61 72 6b | 20 6e 69 6c 20 22 5c 0a |and-mark| nil "\.|
|00005420| 50 75 74 20 74 68 65 20 | 6d 61 72 6b 20 77 68 65 |Put the |mark whe|
|00005430| 72 65 20 70 6f 69 6e 74 | 20 69 73 20 6e 6f 77 2c |re point| is now,|
|00005440| 20 61 6e 64 20 70 6f 69 | 6e 74 20 77 68 65 72 65 | and poi|nt where|
|00005450| 20 74 68 65 20 6d 61 72 | 6b 20 69 73 20 6e 6f 77 | the mar|k is now|
|00005460| 2e 22 20 28 69 6e 74 65 | 72 61 63 74 69 76 65 20 |." (inte|ractive |
|00005470| 6e 69 6c 29 20 28 62 79 | 74 65 2d 63 6f 64 65 20 |nil) (by|te-code |
|00005480| 22 c0 88 c2 20 19 09 3f | 85 0d 00 c3 c4 21 88 c5 |"... ..?|.....!..|
|00005490| 60 21 88 09 62 88 c0 29 | 87 22 20 5b 6e 69 6c 20 |`!..b..)|." [nil |
|000054a0| 6f 6d 61 72 6b 20 6d 61 | 72 6b 20 65 72 72 6f 72 |omark ma|rk error|
|000054b0| 20 22 4e 6f 20 6d 61 72 | 6b 20 73 65 74 20 69 6e | "No mar|k set in|
|000054c0| 20 74 68 69 73 20 62 75 | 66 66 65 72 22 20 73 65 | this bu|ffer" se|
|000054d0| 74 2d 6d 61 72 6b 5d 20 | 34 29 29 0a 0a 28 64 65 |t-mark] |4))..(de|
|000054e0| 66 75 6e 20 6e 65 78 74 | 2d 6c 69 6e 65 20 28 61 |fun next|-line (a|
|000054f0| 72 67 29 20 22 5c 0a 4d | 6f 76 65 20 63 75 72 73 |rg) "\.M|ove curs|
|00005500| 6f 72 20 76 65 72 74 69 | 63 61 6c 6c 79 20 64 6f |or verti|cally do|
|00005510| 77 6e 20 41 52 47 20 6c | 69 6e 65 73 2e 0a 49 66 |wn ARG l|ines..If|
|00005520| 20 74 68 65 72 65 20 69 | 73 20 6e 6f 20 63 68 61 | there i|s no cha|
|00005530| 72 61 63 74 65 72 20 69 | 6e 20 74 68 65 20 74 61 |racter i|n the ta|
|00005540| 72 67 65 74 20 6c 69 6e | 65 20 65 78 61 63 74 6c |rget lin|e exactl|
|00005550| 79 20 75 6e 64 65 72 20 | 74 68 65 20 63 75 72 72 |y under |the curr|
|00005560| 65 6e 74 20 63 6f 6c 75 | 6d 6e 2c 0a 74 68 65 20 |ent colu|mn,.the |
|00005570| 63 75 72 73 6f 72 20 69 | 73 20 70 6f 73 69 74 69 |cursor i|s positi|
|00005580| 6f 6e 65 64 20 61 66 74 | 65 72 20 74 68 65 20 63 |oned aft|er the c|
|00005590| 68 61 72 61 63 74 65 72 | 20 69 6e 20 74 68 61 74 |haracter| in that|
|000055a0| 20 6c 69 6e 65 20 77 68 | 69 63 68 20 73 70 61 6e | line wh|ich span|
|000055b0| 73 20 74 68 69 73 0a 63 | 6f 6c 75 6d 6e 2c 20 6f |s this.c|olumn, o|
|000055c0| 72 20 61 74 20 74 68 65 | 20 65 6e 64 20 6f 66 20 |r at the| end of |
|000055d0| 74 68 65 20 6c 69 6e 65 | 20 69 66 20 69 74 20 69 |the line| if it i|
|000055e0| 73 20 6e 6f 74 20 6c 6f | 6e 67 20 65 6e 6f 75 67 |s not lo|ng enoug|
|000055f0| 68 2e 0a 49 66 20 74 68 | 65 72 65 20 69 73 20 6e |h..If th|ere is n|
|00005600| 6f 20 6c 69 6e 65 20 69 | 6e 20 74 68 65 20 62 75 |o line i|n the bu|
|00005610| 66 66 65 72 20 61 66 74 | 65 72 20 74 68 69 73 20 |ffer aft|er this |
|00005620| 6f 6e 65 2c 0a 61 20 6e | 65 77 6c 69 6e 65 20 63 |one,.a n|ewline c|
|00005630| 68 61 72 61 63 74 65 72 | 20 69 73 20 69 6e 73 65 |haracter| is inse|
|00005640| 72 74 65 64 20 74 6f 20 | 63 72 65 61 74 65 20 61 |rted to |create a|
|00005650| 20 6c 69 6e 65 0a 61 6e | 64 20 74 68 65 20 63 75 | line.an|d the cu|
|00005660| 72 73 6f 72 20 6d 6f 76 | 65 73 20 74 6f 20 74 68 |rsor mov|es to th|
|00005670| 61 74 20 6c 69 6e 65 2e | 0a 0a 54 68 65 20 63 6f |at line.|..The co|
|00005680| 6d 6d 61 6e 64 20 5c 5c | 5b 73 65 74 2d 67 6f 61 |mmand \\|[set-goa|
|00005690| 6c 2d 63 6f 6c 75 6d 6e | 5d 20 63 61 6e 20 62 65 |l-column|] can be|
|000056a0| 20 75 73 65 64 20 74 6f | 20 63 72 65 61 74 65 0a | used to| create.|
|000056b0| 61 20 73 65 6d 69 70 65 | 72 6d 61 6e 65 6e 74 20 |a semipe|rmanent |
|000056c0| 67 6f 61 6c 20 63 6f 6c | 75 6d 6e 20 74 6f 20 77 |goal col|umn to w|
|000056d0| 68 69 63 68 20 74 68 69 | 73 20 63 6f 6d 6d 61 6e |hich thi|s comman|
|000056e0| 64 20 61 6c 77 61 79 73 | 20 6d 6f 76 65 73 2e 0a |d always| moves..|
|000056f0| 54 68 65 6e 20 69 74 20 | 64 6f 65 73 20 6e 6f 74 |Then it |does not|
|00005700| 20 74 72 79 20 74 6f 20 | 6d 6f 76 65 20 76 65 72 | try to |move ver|
|00005710| 74 69 63 61 6c 6c 79 2e | 0a 0a 49 66 20 79 6f 75 |tically.|..If you|
|00005720| 20 61 72 65 20 74 68 69 | 6e 6b 69 6e 67 20 6f 66 | are thi|nking of|
|00005730| 20 75 73 69 6e 67 20 74 | 68 69 73 20 69 6e 20 61 | using t|his in a|
|00005740| 20 4c 69 73 70 20 70 72 | 6f 67 72 61 6d 2c 20 63 | Lisp pr|ogram, c|
|00005750| 6f 6e 73 69 64 65 72 0a | 75 73 69 6e 67 20 60 66 |onsider.|using `f|
|00005760| 6f 72 77 61 72 64 2d 6c | 69 6e 65 27 20 69 6e 73 |orward-l|ine' ins|
|00005770| 74 65 61 64 2e 20 20 49 | 74 20 69 73 20 75 73 75 |tead. I|t is usu|
|00005780| 61 6c 6c 79 20 65 61 73 | 69 65 72 20 74 6f 20 75 |ally eas|ier to u|
|00005790| 73 65 0a 61 6e 64 20 6d | 6f 72 65 20 72 65 6c 69 |se.and m|ore reli|
|000057a0| 61 62 6c 65 20 28 6e 6f | 20 64 65 70 65 6e 64 65 |able (no| depende|
|000057b0| 6e 63 65 20 6f 6e 20 67 | 6f 61 6c 20 63 6f 6c 75 |nce on g|oal colu|
|000057c0| 6d 6e 2c 20 65 74 63 2e | 29 2e 22 20 28 69 6e 74 |mn, etc.|)." (int|
|000057d0| 65 72 61 63 74 69 76 65 | 20 22 70 22 29 20 28 62 |eractive| "p") (b|
|000057e0| 79 74 65 2d 63 6f 64 65 | 20 22 c2 88 08 c3 55 83 |yte-code| "....U.|
|000057f0| 2a 00 60 19 c4 c3 21 88 | 09 60 55 86 18 00 68 c5 |*.`...!.|.`U...h.|
|00005800| 3d 3f 83 20 00 c5 63 82 | 26 00 09 62 88 c6 08 21 |=?. ..c.|&..b...!|
|00005810| 29 82 2d 00 c6 08 21 88 | c2 87 22 20 5b 61 72 67 |).-...!.|.." [arg|
|00005820| 20 6f 70 6f 69 6e 74 20 | 6e 69 6c 20 31 20 66 6f | opoint |nil 1 fo|
|00005830| 72 77 61 72 64 2d 6c 69 | 6e 65 20 31 30 20 6e 65 |rward-li|ne 10 ne|
|00005840| 78 74 2d 6c 69 6e 65 2d | 69 6e 74 65 72 6e 61 6c |xt-line-|internal|
|00005850| 5d 20 34 29 29 0a 0a 28 | 64 65 66 75 6e 20 70 72 |] 4))..(|defun pr|
|00005860| 65 76 69 6f 75 73 2d 6c | 69 6e 65 20 28 61 72 67 |evious-l|ine (arg|
|00005870| 29 20 22 5c 0a 4d 6f 76 | 65 20 63 75 72 73 6f 72 |) "\.Mov|e cursor|
|00005880| 20 76 65 72 74 69 63 61 | 6c 6c 79 20 75 70 20 41 | vertica|lly up A|
|00005890| 52 47 20 6c 69 6e 65 73 | 2e 0a 49 66 20 74 68 65 |RG lines|..If the|
|000058a0| 72 65 20 69 73 20 6e 6f | 20 63 68 61 72 61 63 74 |re is no| charact|
|000058b0| 65 72 20 69 6e 20 74 68 | 65 20 74 61 72 67 65 74 |er in th|e target|
|000058c0| 20 6c 69 6e 65 20 65 78 | 61 63 74 6c 79 20 6f 76 | line ex|actly ov|
|000058d0| 65 72 20 74 68 65 20 63 | 75 72 72 65 6e 74 20 63 |er the c|urrent c|
|000058e0| 6f 6c 75 6d 6e 2c 0a 74 | 68 65 20 63 75 72 73 6f |olumn,.t|he curso|
|000058f0| 72 20 69 73 20 70 6f 73 | 69 74 69 6f 6e 65 64 20 |r is pos|itioned |
|00005900| 61 66 74 65 72 20 74 68 | 65 20 63 68 61 72 61 63 |after th|e charac|
|00005910| 74 65 72 20 69 6e 20 74 | 68 61 74 20 6c 69 6e 65 |ter in t|hat line|
|00005920| 20 77 68 69 63 68 20 73 | 70 61 6e 73 20 74 68 69 | which s|pans thi|
|00005930| 73 0a 63 6f 6c 75 6d 6e | 2c 20 6f 72 20 61 74 20 |s.column|, or at |
|00005940| 74 68 65 20 65 6e 64 20 | 6f 66 20 74 68 65 20 6c |the end |of the l|
|00005950| 69 6e 65 20 69 66 20 69 | 74 20 69 73 20 6e 6f 74 |ine if i|t is not|
|00005960| 20 6c 6f 6e 67 20 65 6e | 6f 75 67 68 2e 0a 0a 54 | long en|ough...T|
|00005970| 68 65 20 63 6f 6d 6d 61 | 6e 64 20 5c 5c 5b 73 65 |he comma|nd \\[se|
|00005980| 74 2d 67 6f 61 6c 2d 63 | 6f 6c 75 6d 6e 5d 20 63 |t-goal-c|olumn] c|
|00005990| 61 6e 20 62 65 20 75 73 | 65 64 20 74 6f 20 63 72 |an be us|ed to cr|
|000059a0| 65 61 74 65 0a 61 20 73 | 65 6d 69 70 65 72 6d 61 |eate.a s|emiperma|
|000059b0| 6e 65 6e 74 20 67 6f 61 | 6c 20 63 6f 6c 75 6d 6e |nent goa|l column|
|000059c0| 20 74 6f 20 77 68 69 63 | 68 20 74 68 69 73 20 63 | to whic|h this c|
|000059d0| 6f 6d 6d 61 6e 64 20 61 | 6c 77 61 79 73 20 6d 6f |ommand a|lways mo|
|000059e0| 76 65 73 2e 0a 54 68 65 | 6e 20 69 74 20 64 6f 65 |ves..The|n it doe|
|000059f0| 73 20 6e 6f 74 20 74 72 | 79 20 74 6f 20 6d 6f 76 |s not tr|y to mov|
|00005a00| 65 20 76 65 72 74 69 63 | 61 6c 6c 79 2e 0a 0a 49 |e vertic|ally...I|
|00005a10| 66 20 79 6f 75 20 61 72 | 65 20 74 68 69 6e 6b 69 |f you ar|e thinki|
|00005a20| 6e 67 20 6f 66 20 75 73 | 69 6e 67 20 74 68 69 73 |ng of us|ing this|
|00005a30| 20 69 6e 20 61 20 4c 69 | 73 70 20 70 72 6f 67 72 | in a Li|sp progr|
|00005a40| 61 6d 2c 20 63 6f 6e 73 | 69 64 65 72 20 75 73 69 |am, cons|ider usi|
|00005a50| 6e 67 0a 60 66 6f 72 77 | 61 72 64 2d 6c 69 6e 65 |ng.`forw|ard-line|
|00005a60| 27 20 77 69 74 68 20 6e | 65 67 61 74 69 76 65 20 |' with n|egative |
|00005a70| 61 72 67 75 6d 65 6e 74 | 20 69 6e 73 74 65 61 64 |argument| instead|
|00005a80| 2e 2e 20 20 49 74 20 69 | 73 20 75 73 75 61 6c 6c |.. It i|s usuall|
|00005a90| 79 20 65 61 73 69 65 72 | 0a 74 6f 20 75 73 65 20 |y easier|.to use |
|00005aa0| 61 6e 64 20 6d 6f 72 65 | 20 72 65 6c 69 61 62 6c |and more| reliabl|
|00005ab0| 65 20 28 6e 6f 20 64 65 | 70 65 6e 64 65 6e 63 65 |e (no de|pendence|
|00005ac0| 20 6f 6e 20 67 6f 61 6c | 20 63 6f 6c 75 6d 6e 2c | on goal| column,|
|00005ad0| 20 65 74 63 2e 29 2e 22 | 20 28 69 6e 74 65 72 61 | etc.)."| (intera|
|00005ae0| 63 74 69 76 65 20 22 70 | 22 29 20 28 62 79 74 65 |ctive "p|") (byte|
|00005af0| 2d 63 6f 64 65 20 22 c1 | 88 c2 08 5b 21 88 c1 87 |-code ".|...[!...|
|00005b00| 22 20 5b 61 72 67 20 6e | 69 6c 20 6e 65 78 74 2d |" [arg n|il next-|
|00005b10| 6c 69 6e 65 2d 69 6e 74 | 65 72 6e 61 6c 5d 20 32 |line-int|ernal] 2|
|00005b20| 29 29 0a 0a 28 64 65 66 | 63 6f 6e 73 74 20 74 72 |))..(def|const tr|
|00005b30| 61 63 6b 2d 65 6f 6c 20 | 6e 69 6c 20 22 5c 0a 2a |ack-eol |nil "\.*|
|00005b40| 4e 6f 6e 2d 6e 69 6c 20 | 6d 65 61 6e 73 20 76 65 |Non-nil |means ve|
|00005b50| 72 74 69 63 61 6c 20 6d | 6f 74 69 6f 6e 20 73 74 |rtical m|otion st|
|00005b60| 61 72 74 69 6e 67 20 61 | 74 20 74 68 65 20 65 6e |arting a|t the en|
|00005b70| 64 20 6f 66 20 61 20 6c | 69 6e 65 20 73 68 6f 75 |d of a l|ine shou|
|00005b80| 6c 64 20 6b 65 65 70 20 | 74 6f 20 65 6e 64 73 20 |ld keep |to ends |
|00005b90| 6f 66 20 6c 69 6e 65 73 | 2e 0a 54 68 69 73 20 6d |of lines|..This m|
|00005ba0| 65 61 6e 73 20 6d 6f 76 | 69 6e 67 20 74 6f 20 74 |eans mov|ing to t|
|00005bb0| 68 65 20 65 6e 64 20 6f | 66 20 65 61 63 68 20 6c |he end o|f each l|
|00005bc0| 69 6e 65 20 6d 6f 76 65 | 64 20 6f 6e 74 6f 2e 22 |ine move|d onto."|
|00005bd0| 29 0a 0a 28 64 65 66 76 | 61 72 20 67 6f 61 6c 2d |)..(defv|ar goal-|
|00005be0| 63 6f 6c 75 6d 6e 20 6e | 69 6c 20 22 5c 0a 2a 53 |column n|il "\.*S|
|00005bf0| 65 6d 69 70 65 72 6d 61 | 6e 65 6e 74 20 67 6f 61 |emiperma|nent goa|
|00005c00| 6c 20 63 6f 6c 75 6d 6e | 20 66 6f 72 20 76 65 72 |l column| for ver|
|00005c10| 74 69 63 61 6c 20 6d 6f | 74 69 6f 6e 2c 20 61 73 |tical mo|tion, as|
|00005c20| 20 73 65 74 20 62 79 20 | 5c 5c 5b 73 65 74 2d 67 | set by |\\[set-g|
|00005c30| 6f 61 6c 2d 63 6f 6c 75 | 6d 6e 5d 2c 20 6f 72 20 |oal-colu|mn], or |
|00005c40| 6e 69 6c 2e 22 29 0a 0a | 28 64 65 66 76 61 72 20 |nil.")..|(defvar |
|00005c50| 74 65 6d 70 6f 72 61 72 | 79 2d 67 6f 61 6c 2d 63 |temporar|y-goal-c|
|00005c60| 6f 6c 75 6d 6e 20 30 20 | 22 5c 0a 43 75 72 72 65 |olumn 0 |"\.Curre|
|00005c70| 6e 74 20 67 6f 61 6c 20 | 63 6f 6c 75 6d 6e 20 66 |nt goal |column f|
|00005c80| 6f 72 20 76 65 72 74 69 | 63 61 6c 20 6d 6f 74 69 |or verti|cal moti|
|00005c90| 6f 6e 2e 0a 49 74 20 69 | 73 20 74 68 65 20 63 6f |on..It i|s the co|
|00005ca0| 6c 75 6d 6e 20 77 68 65 | 72 65 20 70 6f 69 6e 74 |lumn whe|re point|
|00005cb0| 20 77 61 73 20 61 74 20 | 74 68 65 20 73 74 61 72 | was at |the star|
|00005cc0| 74 20 6f 66 20 63 75 72 | 72 65 6e 74 20 72 75 6e |t of cur|rent run|
|00005cd0| 20 6f 66 20 76 65 72 74 | 69 63 61 6c 20 6d 6f 74 | of vert|ical mot|
|00005ce0| 69 6f 6e 20 63 6f 6d 6d | 61 6e 64 73 2e 22 29 0a |ion comm|ands.").|
|00005cf0| 0a 28 64 65 66 75 6e 20 | 6e 65 78 74 2d 6c 69 6e |.(defun |next-lin|
|00005d00| 65 2d 69 6e 74 65 72 6e | 61 6c 20 28 61 72 67 29 |e-intern|al (arg)|
|00005d10| 20 28 62 79 74 65 2d 63 | 6f 64 65 20 22 08 c8 3d | (byte-c|ode "..=|
|00005d20| 86 09 00 08 c9 3d 3f 85 | 1c 00 0a 85 12 00 6c 83 |.....=?.|......l.|
|00005d30| 19 00 c3 82 1a 00 69 89 | 11 88 ca 0c 21 3f 83 2a |......i.|....!?.*|
|00005d40| 00 cb 0d 21 82 5a 00 0d | cc 56 85 44 00 cd ce 21 |...!.Z..|.V.D...!|
|00005d50| 88 cf d0 21 88 cb ce 21 | 88 0d 53 89 15 88 82 2a |...!...!|..S....*|
|00005d60| 00 88 0d cc 57 85 5a 00 | cd d0 21 88 d1 20 88 0d |....W.Z.|..!.. ..|
|00005d70| 54 89 15 88 82 45 00 88 | 0e 06 86 61 00 09 c3 3d |T....E..|...a...=|
|00005d80| 83 6b 00 d2 20 82 73 00 | d3 0e 06 86 72 00 09 21 |.k.. .s.|....r..!|
|00005d90| 88 c7 87 22 20 5b 6c 61 | 73 74 2d 63 6f 6d 6d 61 |..." [la|st-comma|
|00005da0| 6e 64 20 74 65 6d 70 6f | 72 61 72 79 2d 67 6f 61 |nd tempo|rary-goa|
|00005db0| 6c 2d 63 6f 6c 75 6d 6e | 20 74 72 61 63 6b 2d 65 |l-column| track-e|
|00005dc0| 6f 6c 20 74 20 73 65 6c | 65 63 74 69 76 65 2d 64 |ol t sel|ective-d|
|00005dd0| 69 73 70 6c 61 79 20 61 | 72 67 20 67 6f 61 6c 2d |isplay a|rg goal-|
|00005de0| 63 6f 6c 75 6d 6e 20 6e | 69 6c 20 6e 65 78 74 2d |column n|il next-|
|00005df0| 6c 69 6e 65 20 70 72 65 | 76 69 6f 75 73 2d 6c 69 |line pre|vious-li|
|00005e00| 6e 65 20 69 6e 74 65 67 | 65 72 70 20 66 6f 72 77 |ne integ|erp forw|
|00005e10| 61 72 64 2d 6c 69 6e 65 | 20 30 20 76 65 72 74 69 |ard-line| 0 verti|
|00005e20| 63 61 6c 2d 6d 6f 74 69 | 6f 6e 20 31 20 66 6f 72 |cal-moti|on 1 for|
|00005e30| 77 61 72 64 2d 63 68 61 | 72 20 2d 31 20 62 65 67 |ward-cha|r -1 beg|
|00005e40| 69 6e 6e 69 6e 67 2d 6f | 66 2d 6c 69 6e 65 20 65 |inning-o|f-line e|
|00005e50| 6e 64 2d 6f 66 2d 6c 69 | 6e 65 20 6d 6f 76 65 2d |nd-of-li|ne move-|
|00005e60| 74 6f 2d 63 6f 6c 75 6d | 6e 5d 20 31 30 29 29 0a |to-colum|n] 10)).|
|00005e70| 0a 28 64 65 66 75 6e 20 | 73 65 74 2d 67 6f 61 6c |.(defun |set-goal|
|00005e80| 2d 63 6f 6c 75 6d 6e 20 | 28 61 72 67 29 20 22 5c |-column |(arg) "\|
|00005e90| 0a 53 65 74 20 74 68 65 | 20 63 75 72 72 65 6e 74 |.Set the| current|
|00005ea0| 20 68 6f 72 69 7a 6f 6e | 74 61 6c 20 70 6f 73 69 | horizon|tal posi|
|00005eb0| 74 69 6f 6e 20 61 73 20 | 61 20 67 6f 61 6c 20 66 |tion as |a goal f|
|00005ec0| 6f 72 20 5c 5c 5b 6e 65 | 78 74 2d 6c 69 6e 65 5d |or \\[ne|xt-line]|
|00005ed0| 20 61 6e 64 20 5c 5c 5b | 70 72 65 76 69 6f 75 73 | and \\[|previous|
|00005ee0| 2d 6c 69 6e 65 5d 2e 0a | 54 68 6f 73 65 20 63 6f |-line]..|Those co|
|00005ef0| 6d 6d 61 6e 64 73 20 77 | 69 6c 6c 20 6d 6f 76 65 |mmands w|ill move|
|00005f00| 20 74 6f 20 74 68 69 73 | 20 70 6f 73 69 74 69 6f | to this| positio|
|00005f10| 6e 20 69 6e 20 74 68 65 | 20 6c 69 6e 65 20 6d 6f |n in the| line mo|
|00005f20| 76 65 64 20 74 6f 0a 72 | 61 74 68 65 72 20 74 68 |ved to.r|ather th|
|00005f30| 61 6e 20 74 72 79 69 6e | 67 20 74 6f 20 6b 65 65 |an tryin|g to kee|
|00005f40| 70 20 74 68 65 20 73 61 | 6d 65 20 68 6f 72 69 7a |p the sa|me horiz|
|00005f50| 6f 6e 74 61 6c 20 70 6f | 73 69 74 69 6f 6e 2e 0a |ontal po|sition..|
|00005f60| 57 69 74 68 20 61 20 6e | 6f 6e 2d 6e 69 6c 20 61 |With a n|on-nil a|
|00005f70| 72 67 75 6d 65 6e 74 2c | 20 63 6c 65 61 72 73 20 |rgument,| clears |
|00005f80| 6f 75 74 20 74 68 65 20 | 67 6f 61 6c 20 63 6f 6c |out the |goal col|
|00005f90| 75 6d 6e 0a 73 6f 20 74 | 68 61 74 20 5c 5c 5b 6e |umn.so t|hat \\[n|
|00005fa0| 65 78 74 2d 6c 69 6e 65 | 5d 20 61 6e 64 20 5c 5c |ext-line|] and \\|
|00005fb0| 5b 70 72 65 76 69 6f 75 | 73 2d 6c 69 6e 65 5d 20 |[previou|s-line] |
|00005fc0| 72 65 73 75 6d 65 20 76 | 65 72 74 69 63 61 6c 20 |resume v|ertical |
|00005fd0| 6d 6f 74 69 6f 6e 2e 22 | 20 28 69 6e 74 65 72 61 |motion."| (intera|
|00005fe0| 63 74 69 76 65 20 22 50 | 22 29 20 28 62 79 74 65 |ctive "P|") (byte|
|00005ff0| 2d 63 6f 64 65 20 22 c2 | 88 08 83 10 00 c2 89 11 |-code ".|........|
|00006000| 88 c3 c4 21 82 1a 00 69 | 89 11 88 c3 c5 c6 21 09 |...!...i|......!.|
|00006010| 5c 22 88 c2 87 22 20 5b | 61 72 67 20 67 6f 61 6c |\"..." [|arg goal|
|00006020| 2d 63 6f 6c 75 6d 6e 20 | 6e 69 6c 20 6d 65 73 73 |-column |nil mess|
|00006030| 61 67 65 20 22 4e 6f 20 | 67 6f 61 6c 20 63 6f 6c |age "No |goal col|
|00006040| 75 6d 6e 22 20 73 75 62 | 73 74 69 74 75 74 65 2d |umn" sub|stitute-|
|00006050| 63 6f 6d 6d 61 6e 64 2d | 6b 65 79 73 20 22 47 6f |command-|keys "Go|
|00006060| 61 6c 20 63 6f 6c 75 6d | 6e 20 25 64 20 28 75 73 |al colum|n %d (us|
|00006070| 65 20 5c 5c 5b 73 65 74 | 2d 67 6f 61 6c 2d 63 6f |e \\[set|-goal-co|
|00006080| 6c 75 6d 6e 5d 20 77 69 | 74 68 20 61 6e 20 61 72 |lumn] wi|th an ar|
|00006090| 67 20 74 6f 20 75 6e 73 | 65 74 20 69 74 29 22 5d |g to uns|et it)"]|
|000060a0| 20 35 29 29 0a 0a 28 64 | 65 66 75 6e 20 74 72 61 | 5))..(d|efun tra|
|000060b0| 6e 73 70 6f 73 65 2d 63 | 68 61 72 73 20 28 61 72 |nspose-c|hars (ar|
|000060c0| 67 29 20 22 5c 0a 49 6e | 74 65 72 63 68 61 6e 67 |g) "\.In|terchang|
|000060d0| 65 20 63 68 61 72 61 63 | 74 65 72 73 20 61 72 6f |e charac|ters aro|
|000060e0| 75 6e 64 20 70 6f 69 6e | 74 2c 20 6d 6f 76 69 6e |und poin|t, movin|
|000060f0| 67 20 66 6f 72 77 61 72 | 64 20 6f 6e 65 20 63 68 |g forwar|d one ch|
|00006100| 61 72 61 63 74 65 72 2e | 0a 57 69 74 68 20 70 72 |aracter.|.With pr|
|00006110| 65 66 69 78 20 61 72 67 | 20 41 52 47 2c 20 65 66 |efix arg| ARG, ef|
|00006120| 66 65 63 74 20 69 73 20 | 74 6f 20 74 61 6b 65 20 |fect is |to take |
|00006130| 63 68 61 72 61 63 74 65 | 72 20 62 65 66 6f 72 65 |characte|r before|
|00006140| 20 70 6f 69 6e 74 0a 61 | 6e 64 20 64 72 61 67 20 | point.a|nd drag |
|00006150| 69 74 20 66 6f 72 77 61 | 72 64 20 70 61 73 74 20 |it forwa|rd past |
|00006160| 41 52 47 20 6f 74 68 65 | 72 20 63 68 61 72 61 63 |ARG othe|r charac|
|00006170| 74 65 72 73 20 28 62 61 | 63 6b 77 61 72 64 20 69 |ters (ba|ckward i|
|00006180| 66 20 41 52 47 20 6e 65 | 67 61 74 69 76 65 29 2e |f ARG ne|gative).|
|00006190| 0a 49 66 20 6e 6f 20 61 | 72 67 75 6d 65 6e 74 20 |.If no a|rgument |
|000061a0| 61 6e 64 20 61 74 20 65 | 6e 64 20 6f 66 20 6c 69 |and at e|nd of li|
|000061b0| 6e 65 2c 20 74 68 65 20 | 70 72 65 76 69 6f 75 73 |ne, the |previous|
|000061c0| 20 74 77 6f 20 63 68 61 | 72 73 20 61 72 65 20 65 | two cha|rs are e|
|000061d0| 78 63 68 61 6e 67 65 64 | 2e 22 20 28 69 6e 74 65 |xchanged|." (inte|
|000061e0| 72 61 63 74 69 76 65 20 | 22 2a 50 22 29 20 28 62 |ractive |"*P") (b|
|000061f0| 79 74 65 2d 63 6f 64 65 | 20 22 c1 88 08 3f 85 0e |yte-code| "...?..|
|00006200| 00 6c 85 0e 00 c2 c3 21 | 88 c4 c2 c5 08 21 5c 22 |.l.....!|.....!\"|
|00006210| 87 22 20 5b 61 72 67 20 | 6e 69 6c 20 66 6f 72 77 |." [arg |nil forw|
|00006220| 61 72 64 2d 63 68 61 72 | 20 2d 31 20 74 72 61 6e |ard-char| -1 tran|
|00006230| 73 70 6f 73 65 2d 73 75 | 62 72 20 70 72 65 66 69 |spose-su|br prefi|
|00006240| 78 2d 6e 75 6d 65 72 69 | 63 2d 76 61 6c 75 65 5d |x-numeri|c-value]|
|00006250| 20 35 29 29 0a 0a 28 64 | 65 66 75 6e 20 74 72 61 | 5))..(d|efun tra|
|00006260| 6e 73 70 6f 73 65 2d 77 | 6f 72 64 73 20 28 61 72 |nspose-w|ords (ar|
|00006270| 67 29 20 22 5c 0a 49 6e | 74 65 72 63 68 61 6e 67 |g) "\.In|terchang|
|00006280| 65 20 77 6f 72 64 73 20 | 61 72 6f 75 6e 64 20 70 |e words |around p|
|00006290| 6f 69 6e 74 2c 20 6c 65 | 61 76 69 6e 67 20 70 6f |oint, le|aving po|
|000062a0| 69 6e 74 20 61 74 20 65 | 6e 64 20 6f 66 20 74 68 |int at e|nd of th|
|000062b0| 65 6d 2e 0a 57 69 74 68 | 20 70 72 65 66 69 78 20 |em..With| prefix |
|000062c0| 61 72 67 20 41 52 47 2c | 20 65 66 66 65 63 74 20 |arg ARG,| effect |
|000062d0| 69 73 20 74 6f 20 74 61 | 6b 65 20 77 6f 72 64 20 |is to ta|ke word |
|000062e0| 62 65 66 6f 72 65 20 6f | 72 20 61 72 6f 75 6e 64 |before o|r around|
|000062f0| 20 70 6f 69 6e 74 0a 61 | 6e 64 20 64 72 61 67 20 | point.a|nd drag |
|00006300| 69 74 20 66 6f 72 77 61 | 72 64 20 70 61 73 74 20 |it forwa|rd past |
|00006310| 41 52 47 20 6f 74 68 65 | 72 20 77 6f 72 64 73 20 |ARG othe|r words |
|00006320| 28 62 61 63 6b 77 61 72 | 64 20 69 66 20 41 52 47 |(backwar|d if ARG|
|00006330| 20 6e 65 67 61 74 69 76 | 65 29 2e 0a 49 66 20 41 | negativ|e)..If A|
|00006340| 52 47 20 69 73 20 7a 65 | 72 6f 2c 20 74 68 65 20 |RG is ze|ro, the |
|00006350| 77 6f 72 64 73 20 61 72 | 6f 75 6e 64 20 6f 72 20 |words ar|ound or |
|00006360| 61 66 74 65 72 20 70 6f | 69 6e 74 20 61 6e 64 20 |after po|int and |
|00006370| 61 72 6f 75 6e 64 20 6f | 72 20 61 66 74 65 72 20 |around o|r after |
|00006380| 6d 61 72 6b 0a 61 72 65 | 20 69 6e 74 65 72 63 68 |mark.are| interch|
|00006390| 61 6e 67 65 64 2e 22 20 | 28 69 6e 74 65 72 61 63 |anged." |(interac|
|000063a0| 74 69 76 65 20 22 2a 70 | 22 29 20 28 62 79 74 65 |tive "*p|") (byte|
|000063b0| 2d 63 6f 64 65 20 22 c1 | 88 c2 c3 08 5c 22 87 22 |-code ".|....\"."|
|000063c0| 20 5b 61 72 67 20 6e 69 | 6c 20 74 72 61 6e 73 70 | [arg ni|l transp|
|000063d0| 6f 73 65 2d 73 75 62 72 | 20 66 6f 72 77 61 72 64 |ose-subr| forward|
|000063e0| 2d 77 6f 72 64 5d 20 33 | 29 29 0a 0a 28 64 65 66 |-word] 3|))..(def|
|000063f0| 75 6e 20 74 72 61 6e 73 | 70 6f 73 65 2d 73 65 78 |un trans|pose-sex|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.