home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Source Code 1993 July / THE_SOURCE_CODE_CD_ROM.iso / gnu / lucid / lemacs-19.6 / lisp / prim / simple.elc < prev    next >
Emacs Compiled Lisp  |  1993-04-01  |  35.9 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.

ConfidenceProgramDetectionMatch TypeSupport
1% dexvert Emacs Compiled Lisp (other/emacsCompiledLisp) magic Unsupported
1% dexvert Combustion 2 Particle Library (other/combustion2ParticleLibrary) ext Unsupported
100% file Emacs/XEmacs v19 byte-compiled Lisp data default
99% file data default
55% TrID Emacs/XEmacs byte-compiled Lisp (generic) default
44% TrID Summation Document Image Information Load File default (weak)
100% xdgMime text/x-emacs-lisp default (weak)



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 3b 45 4c 43 13 00 00 00 | 0a 3b 3b 3b 20 63 6f 6d |;ELC....|.;;; com|
|00000010| 70 69 6c 65 64 20 62 79 | 20 6a 6c 7a 40 61 73 68 |piled by| jlz@ash|
|00000020| 77 65 64 6e 65 73 64 61 | 79 20 6f 6e 20 4d 6f 6e |wednesda|y on Mon|
|00000030| 20 4d 61 72 20 31 35 20 | 30 30 3a 31 35 3a 32 36 | Mar 15 |00:15:26|
|00000040| 20 31 39 39 33 0a 3b 3b | 3b 20 66 72 6f 6d 20 66 | 1993.;;|; from f|
|00000050| 69 6c 65 20 2f 63 61 64 | 69 6c 6c 61 63 2d 61 77 |ile /cad|illac-aw|
|00000060| 32 2f 74 65 73 74 62 69 | 6e 2d 62 75 69 6c 64 73 |2/testbi|n-builds|
|00000070| 2f 6c 65 6d 61 63 73 2f | 6c 69 73 70 2f 70 72 69 |/lemacs/|lisp/pri|
|00000080| 6d 2f 73 69 6d 70 6c 65 | 2e 65 6c 0a 3b 3b 3b 20 |m/simple|.el.;;; |
|00000090| 65 6d 61 63 73 20 76 65 | 72 73 69 6f 6e 20 31 39 |emacs ve|rsion 19|
|000000a0| 2e 36 20 28 62 65 74 61 | 32 29 20 4c 75 63 69 64 |.6 (beta|2) Lucid|
|000000b0| 2e 0a 3b 3b 3b 20 62 79 | 74 65 63 6f 6d 70 20 76 |..;;; by|tecomp v|
|000000c0| 65 72 73 69 6f 6e 20 32 | 2e 31 30 3b 20 31 36 2d |ersion 2|.10; 16-|
|000000d0| 66 65 62 2d 39 33 2e 0a | 3b 3b 3b 20 6f 70 74 69 |feb-93..|;;; opti|
|000000e0| 6d 69 7a 61 74 69 6f 6e | 20 69 73 20 6f 6e 2e 0a |mization| is on..|
|000000f0| 3b 3b 3b 20 74 68 69 73 | 20 66 69 6c 65 20 75 73 |;;; this| file us|
|00000100| 65 73 20 6f 70 63 6f 64 | 65 73 20 77 68 69 63 68 |es opcod|es which|
|00000110| 20 64 6f 20 6e 6f 74 20 | 65 78 69 73 74 20 69 6e | do not |exist in|
|00000120| 20 45 6d 61 63 73 31 38 | 2e 0a 0a 28 69 66 20 28 | Emacs18|...(if (|
|00000130| 61 6e 64 20 28 62 6f 75 | 6e 64 70 20 27 65 6d 61 |and (bou|ndp 'ema|
|00000140| 63 73 2d 76 65 72 73 69 | 6f 6e 29 0a 09 20 28 6f |cs-versi|on).. (o|
|00000150| 72 20 28 61 6e 64 20 28 | 62 6f 75 6e 64 70 20 27 |r (and (|boundp '|
|00000160| 65 70 6f 63 68 3a 3a 76 | 65 72 73 69 6f 6e 29 20 |epoch::v|ersion) |
|00000170| 65 70 6f 63 68 3a 3a 76 | 65 72 73 69 6f 6e 29 0a |epoch::v|ersion).|
|00000180| 09 20 20 20 20 20 28 73 | 74 72 69 6e 67 2d 6c 65 |. (s|tring-le|
|00000190| 73 73 70 20 65 6d 61 63 | 73 2d 76 65 72 73 69 6f |ssp emac|s-versio|
|000001a0| 6e 20 22 31 39 22 29 29 | 29 0a 20 20 20 20 28 65 |n "19"))|). (e|
|000001b0| 72 72 6f 72 20 22 54 68 | 69 73 20 66 69 6c 65 20 |rror "Th|is file |
|000001c0| 77 61 73 20 63 6f 6d 70 | 69 6c 65 64 20 66 6f 72 |was comp|iled for|
|000001d0| 20 45 6d 61 63 73 31 39 | 2e 22 29 29 0a 0a 28 66 | Emacs19|."))..(f|
|000001e0| 73 65 74 20 27 6f 70 65 | 6e 2d 6c 69 6e 65 20 23 |set 'ope|n-line #|
|000001f0| 5b 28 61 72 67 29 20 22 | 6e ad 82 6f 3f 89 18 ab |[(arg) "|n..o?...|
|00000200| 83 c1 75 88 5c 6e c3 56 | ab 8b 8a c4 63 88 29 5c |..u.\n.V|....c.)\|
|00000210| 6e 53 89 12 aa 71 08 ad | 82 c5 75 29 87 22 20 5b |nS...q..|..u)." [|
|00000220| 66 6c 61 67 20 2d 31 20 | 61 72 67 20 30 20 31 30 |flag -1 |arg 0 10|
|00000230| 20 31 5d 20 33 20 22 5c | 0a 49 6e 73 65 72 74 20 | 1] 3 "\|.Insert |
|00000240| 61 20 6e 65 77 6c 69 6e | 65 20 61 6e 64 20 6c 65 |a newlin|e and le|
|00000250| 61 76 65 20 70 6f 69 6e | 74 20 62 65 66 6f 72 65 |ave poin|t before|
|00000260| 20 69 74 2e 20 20 49 66 | 20 74 68 65 72 65 20 69 | it. If| there i|
|00000270| 73 20 61 20 66 69 6c 6c | 0a 70 72 65 66 69 78 2c |s a fill|.prefix,|
|00000280| 20 69 6e 73 65 72 74 73 | 20 74 68 65 20 66 69 6c | inserts| the fil|
|00000290| 6c 20 70 72 65 66 69 78 | 20 61 66 74 65 72 20 74 |l prefix| after t|
|000002a0| 68 65 20 6e 65 77 6c 69 | 6e 65 20 74 68 61 74 20 |he newli|ne that |
|000002b0| 69 74 20 69 6e 73 65 72 | 74 73 2e 0a 57 69 74 68 |it inser|ts..With|
|000002c0| 20 61 72 67 2c 20 69 6e | 73 65 72 74 73 20 74 68 | arg, in|serts th|
|000002d0| 61 74 20 6d 61 6e 79 20 | 6e 65 77 6c 69 6e 65 73 |at many |newlines|
|000002e0| 2e 22 20 22 2a 70 22 5d | 29 0a 28 66 73 65 74 20 |." "*p"]|).(fset |
|000002f0| 27 73 70 6c 69 74 2d 6c | 69 6e 65 20 23 5b 6e 69 |'split-l|ine #[ni|
|00000300| 6c 20 22 c0 c1 77 88 69 | 60 1a 1b c4 63 88 c5 0b |l "..w.i|`...c...|
|00000310| c6 5c 22 88 5c 6e 62 2a | 87 22 20 5b 22 20 09 22 |.\".\nb*|." [" ."|
|00000320| 20 6e 69 6c 20 70 6f 73 | 20 63 6f 6c 20 31 30 20 | nil pos| col 10 |
|00000330| 69 6e 64 65 6e 74 2d 74 | 6f 20 30 5d 20 33 20 22 |indent-t|o 0] 3 "|
|00000340| 5c 0a 53 70 6c 69 74 20 | 63 75 72 72 65 6e 74 20 |\.Split |current |
|00000350| 6c 69 6e 65 2c 20 6d 6f | 76 69 6e 67 20 70 6f 72 |line, mo|ving por|
|00000360| 74 69 6f 6e 20 62 65 79 | 6f 6e 64 20 70 6f 69 6e |tion bey|ond poin|
|00000370| 74 20 76 65 72 74 69 63 | 61 6c 6c 79 20 64 6f 77 |t vertic|ally dow|
|00000380| 6e 2e 22 20 22 2a 22 5d | 29 0a 28 66 73 65 74 20 |n." "*"]|).(fset |
|00000390| 27 71 75 6f 74 65 64 2d | 69 6e 73 65 72 74 20 23 |'quoted-|insert #|
|000003a0| 5b 28 61 72 67 29 20 22 | c0 20 19 5c 6e c3 56 ad |[(arg) "|. .\n.V.|
|000003b0| 89 09 63 88 5c 6e 53 89 | 12 aa 73 29 87 22 20 5b |..c.\nS.|..s)." [|
|000003c0| 72 65 61 64 2d 71 75 6f | 74 65 64 2d 63 68 61 72 |read-quo|ted-char|
|000003d0| 20 63 68 61 72 20 61 72 | 67 20 30 5d 20 33 20 22 | char ar|g 0] 3 "|
|000003e0| 5c 0a 52 65 61 64 20 6e | 65 78 74 20 69 6e 70 75 |\.Read n|ext inpu|
|000003f0| 74 20 63 68 61 72 61 63 | 74 65 72 20 61 6e 64 20 |t charac|ter and |
|00000400| 69 6e 73 65 72 74 20 69 | 74 2e 0a 55 73 65 66 75 |insert i|t..Usefu|
|00000410| 6c 20 66 6f 72 20 69 6e | 73 65 72 74 69 6e 67 20 |l for in|serting |
|00000420| 63 6f 6e 74 72 6f 6c 20 | 63 68 61 72 61 63 74 65 |control |characte|
|00000430| 72 73 2e 0a 59 6f 75 20 | 6d 61 79 20 61 6c 73 6f |rs..You |may also|
|00000440| 20 74 79 70 65 20 75 70 | 20 74 6f 20 33 20 6f 63 | type up| to 3 oc|
|00000450| 74 61 6c 20 64 69 67 69 | 74 73 2c 20 74 6f 20 69 |tal digi|ts, to i|
|00000460| 6e 73 65 72 74 20 61 20 | 63 68 61 72 61 63 74 65 |nsert a |characte|
|00000470| 72 20 77 69 74 68 20 74 | 68 61 74 20 63 6f 64 65 |r with t|hat code|
|00000480| 22 20 22 2a 70 22 5d 29 | 0a 28 66 73 65 74 20 27 |" "*p"])|.(fset '|
|00000490| 64 65 6c 65 74 65 2d 69 | 6e 64 65 6e 74 61 74 69 |delete-i|ndentati|
|000004a0| 6f 6e 20 23 5b 28 26 6f | 70 74 69 6f 6e 61 6c 20 |on #[(&o|ptional |
|000004b0| 61 72 67 29 20 22 c0 79 | 88 09 ab 83 c2 79 88 68 |arg) ".y|.....y.h|
|000004c0| c3 3d ad 87 60 60 53 7c | 88 c4 20 87 22 20 5b 30 |.=..``S||.. ." [0|
|000004d0| 20 61 72 67 20 31 20 31 | 30 20 66 69 78 75 70 2d | arg 1 1|0 fixup-|
|000004e0| 77 68 69 74 65 73 70 61 | 63 65 5d 20 32 20 22 5c |whitespa|ce] 2 "\|
|000004f0| 0a 4a 6f 69 6e 20 74 68 | 69 73 20 6c 69 6e 65 20 |.Join th|is line |
|00000500| 74 6f 20 70 72 65 76 69 | 6f 75 73 20 61 6e 64 20 |to previ|ous and |
|00000510| 66 69 78 20 75 70 20 77 | 68 69 74 65 73 70 61 63 |fix up w|hitespac|
|00000520| 65 20 61 74 20 6a 6f 69 | 6e 2e 0a 57 69 74 68 20 |e at joi|n..With |
|00000530| 61 72 67 75 6d 65 6e 74 | 2c 20 6a 6f 69 6e 20 74 |argument|, join t|
|00000540| 68 69 73 20 6c 69 6e 65 | 20 74 6f 20 66 6f 6c 6c |his line| to foll|
|00000550| 6f 77 69 6e 67 20 6c 69 | 6e 65 2e 22 20 22 2a 50 |owing li|ne." "*P|
|00000560| 22 5d 29 0a 28 66 73 65 | 74 20 27 66 69 78 75 70 |"]).(fse|t 'fixup|
|00000570| 2d 77 68 69 74 65 73 70 | 61 63 65 20 23 5b 6e 69 |-whitesp|ace #[ni|
|00000580| 6c 20 22 8a c0 20 88 c1 | c2 21 ae 88 8a c3 75 88 |l ".. ..|.!....u.|
|00000590| c1 c4 21 29 3f ad 82 c5 | 63 29 87 22 20 5b 64 65 |..!)?...|c)." [de|
|000005a0| 6c 65 74 65 2d 68 6f 72 | 69 7a 6f 6e 74 61 6c 2d |lete-hor|izontal-|
|000005b0| 73 70 61 63 65 20 6c 6f | 6f 6b 69 6e 67 2d 61 74 |space lo|oking-at|
|000005c0| 20 22 5e 5c 5c 7c 5c 5c | 73 29 22 20 2d 31 20 22 | "^\\|\\|s)" -1 "|
|000005d0| 24 5c 5c 7c 5c 5c 73 28 | 5c 5c 7c 5c 5c 73 27 22 |$\\|\\s(|\\|\\s'"|
|000005e0| 20 33 32 5d 20 32 20 22 | 5c 0a 46 69 78 75 70 20 | 32] 2 "|\.Fixup |
|000005f0| 77 68 69 74 65 20 73 70 | 61 63 65 20 62 65 74 77 |white sp|ace betw|
|00000600| 65 65 6e 20 6f 62 6a 65 | 63 74 73 20 61 72 6f 75 |een obje|cts arou|
|00000610| 6e 64 20 70 6f 69 6e 74 | 2e 0a 4c 65 61 76 65 20 |nd point|..Leave |
|00000620| 6f 6e 65 20 73 70 61 63 | 65 20 6f 72 20 6e 6f 6e |one spac|e or non|
|00000630| 65 2c 20 61 63 63 6f 72 | 64 69 6e 67 20 74 6f 20 |e, accor|ding to |
|00000640| 74 68 65 20 63 6f 6e 74 | 65 78 74 2e 22 20 22 2a |the cont|ext." "*|
|00000650| 22 5d 29 0a 28 66 73 65 | 74 20 27 64 65 6c 65 74 |"]).(fse|t 'delet|
|00000660| 65 2d 68 6f 72 69 7a 6f | 6e 74 61 6c 2d 73 70 61 |e-horizo|ntal-spa|
|00000670| 63 65 20 23 5b 6e 69 6c | 20 22 c0 c1 78 88 60 c0 |ce #[nil| "..x.`.|
|00000680| c1 77 88 60 7c 87 22 20 | 5b 22 20 09 22 20 6e 69 |.w.`|." |[" ." ni|
|00000690| 6c 5d 20 33 20 22 5c 0a | 44 65 6c 65 74 65 20 61 |l] 3 "\.|Delete a|
|000006a0| 6c 6c 20 73 70 61 63 65 | 73 20 61 6e 64 20 74 61 |ll space|s and ta|
|000006b0| 62 73 20 61 72 6f 75 6e | 64 20 70 6f 69 6e 74 2e |bs aroun|d point.|
|000006c0| 22 20 22 2a 22 5d 29 0a | 28 66 73 65 74 20 27 6a |" "*"]).|(fset 'j|
|000006d0| 75 73 74 2d 6f 6e 65 2d | 73 70 61 63 65 20 23 5b |ust-one-|space #[|
|000006e0| 6e 69 6c 20 22 c0 c1 78 | 88 67 c2 55 ab 85 c3 75 |nil "..x|.g.U...u|
|000006f0| 88 aa 83 c2 63 88 60 c0 | c1 77 88 60 7c 87 22 20 |....c.`.|.w.`|." |
|00000700| 5b 22 20 09 22 20 6e 69 | 6c 20 33 32 20 31 5d 20 |[" ." ni|l 32 1] |
|00000710| 33 20 22 5c 0a 44 65 6c | 65 74 65 20 61 6c 6c 20 |3 "\.Del|ete all |
|00000720| 73 70 61 63 65 73 20 61 | 6e 64 20 74 61 62 73 20 |spaces a|nd tabs |
|00000730| 61 72 6f 75 6e 64 20 70 | 6f 69 6e 74 2c 20 6c 65 |around p|oint, le|
|00000740| 61 76 69 6e 67 20 6f 6e | 65 20 73 70 61 63 65 2e |aving on|e space.|
|00000750| 22 20 22 2a 22 5d 29 0a | 28 66 73 65 74 20 27 64 |" "*"]).|(fset 'd|
|00000760| 65 6c 65 74 65 2d 62 6c | 61 6e 6b 2d 6c 69 6e 65 |elete-bl|ank-line|
|00000770| 73 20 23 5b 6e 69 6c 20 | 22 c0 89 19 1a 8a c3 79 |s #[nil |"......y|
|00000780| 88 c4 c5 21 89 12 ad 90 | c4 c6 21 3f ad 8a 6f ae |...!....|..!?..o.|
|00000790| 87 c7 79 88 c4 c5 21 3f | 11 29 5c 6e ab 9a c3 79 |..y...!?|.)\n...y|
|000007a0| 88 09 ab 83 c8 79 88 60 | c9 ca c0 cb 23 ab 86 c8 |.....y.`|....#...|
|000007b0| 79 88 60 aa 81 65 7c 88 | 5c 6e ad 81 09 3f ad 98 |y.`..e|.|\n...?..|
|000007c0| 8a c0 7f 88 c8 79 88 60 | cc ca c0 cb 23 ab 86 c3 |.....y.`|....#...|
|000007d0| 79 88 60 aa 81 64 7c 29 | 2a 87 22 20 5b 6e 69 6c |y.`..d|)|*." [nil|
|000007e0| 20 73 69 6e 67 6c 65 62 | 6c 61 6e 6b 20 74 68 69 | singleb|lank thi|
|000007f0| 73 62 6c 61 6e 6b 20 30 | 20 6c 6f 6f 6b 69 6e 67 |sblank 0| looking|
|00000800| 2d 61 74 20 22 5b 20 09 | 5d 2a 24 22 20 22 5b 20 |-at "[ .|]*$" "[ |
|00000810| 09 5d 2a 5c 6e 5b 20 09 | 5d 2a 24 22 20 2d 31 20 |.]*\n[ .|]*$" -1 |
|00000820| 31 20 72 65 2d 73 65 61 | 72 63 68 2d 62 61 63 6b |1 re-sea|rch-back|
|00000830| 77 61 72 64 20 22 5b 5e | 20 09 5c 6e 5d 22 20 74 |ward "[^| .\n]" t|
|00000840| 20 72 65 2d 73 65 61 72 | 63 68 2d 66 6f 72 77 61 | re-sear|ch-forwa|
|00000850| 72 64 5d 20 36 20 22 5c | 0a 4f 6e 20 62 6c 61 6e |rd] 6 "\|.On blan|
|00000860| 6b 20 6c 69 6e 65 2c 20 | 64 65 6c 65 74 65 20 61 |k line, |delete a|
|00000870| 6c 6c 20 73 75 72 72 6f | 75 6e 64 69 6e 67 20 62 |ll surro|unding b|
|00000880| 6c 61 6e 6b 20 6c 69 6e | 65 73 2c 20 6c 65 61 76 |lank lin|es, leav|
|00000890| 69 6e 67 20 6a 75 73 74 | 20 6f 6e 65 2e 0a 4f 6e |ing just| one..On|
|000008a0| 20 69 73 6f 6c 61 74 65 | 64 20 62 6c 61 6e 6b 20 | isolate|d blank |
|000008b0| 6c 69 6e 65 2c 20 64 65 | 6c 65 74 65 20 74 68 61 |line, de|lete tha|
|000008c0| 74 20 6f 6e 65 2e 0a 4f | 6e 20 6e 6f 6e 62 6c 61 |t one..O|n nonbla|
|000008d0| 6e 6b 20 6c 69 6e 65 2c | 20 64 65 6c 65 74 65 20 |nk line,| delete |
|000008e0| 61 6c 6c 20 62 6c 61 6e | 6b 20 6c 69 6e 65 73 20 |all blan|k lines |
|000008f0| 74 68 61 74 20 66 6f 6c | 6c 6f 77 20 69 74 2e 22 |that fol|low it."|
|00000900| 20 22 2a 22 5d 29 0a 28 | 66 73 65 74 20 27 62 61 | "*"]).(|fset 'ba|
|00000910| 63 6b 2d 74 6f 2d 69 6e | 64 65 6e 74 61 74 69 6f |ck-to-in|dentatio|
|00000920| 6e 20 23 5b 6e 69 6c 20 | 22 c0 79 88 c1 c2 77 87 |n #[nil |".y...w.|
|00000930| 22 20 5b 30 20 22 20 09 | 22 20 6e 69 6c 5d 20 32 |" [0 " .|" nil] 2|
|00000940| 20 22 5c 0a 4d 6f 76 65 | 20 70 6f 69 6e 74 20 74 | "\.Move| point t|
|00000950| 6f 20 74 68 65 20 66 69 | 72 73 74 20 6e 6f 6e 2d |o the fi|rst non-|
|00000960| 77 68 69 74 65 73 70 61 | 63 65 20 63 68 61 72 61 |whitespa|ce chara|
|00000970| 63 74 65 72 20 6f 6e 20 | 74 68 69 73 20 6c 69 6e |cter on |this lin|
|00000980| 65 2e 22 20 6e 69 6c 5d | 29 0a 28 66 73 65 74 20 |e." nil]|).(fset |
|00000990| 27 6e 65 77 6c 69 6e 65 | 2d 61 6e 64 2d 69 6e 64 |'newline|-and-ind|
|000009a0| 65 6e 74 20 23 5b 6e 69 | 6c 20 22 60 c0 c1 78 88 |ent #[ni|l "`..x.|
|000009b0| 60 7c 88 c2 63 88 c3 20 | 87 22 20 5b 22 20 09 22 |`|..c.. |." [" ."|
|000009c0| 20 6e 69 6c 20 31 30 20 | 69 6e 64 65 6e 74 2d 61 | nil 10 |indent-a|
|000009d0| 63 63 6f 72 64 69 6e 67 | 2d 74 6f 2d 6d 6f 64 65 |ccording|-to-mode|
|000009e0| 5d 20 33 20 22 5c 0a 49 | 6e 73 65 72 74 20 61 20 |] 3 "\.I|nsert a |
|000009f0| 6e 65 77 6c 69 6e 65 2c | 20 74 68 65 6e 20 69 6e |newline,| then in|
|00000a00| 64 65 6e 74 20 61 63 63 | 6f 72 64 69 6e 67 20 74 |dent acc|ording t|
|00000a10| 6f 20 6d 61 6a 6f 72 20 | 6d 6f 64 65 2e 0a 49 6e |o major |mode..In|
|00000a20| 64 65 6e 74 61 74 69 6f | 6e 20 69 73 20 64 6f 6e |dentatio|n is don|
|00000a30| 65 20 75 73 69 6e 67 20 | 74 68 65 20 63 75 72 72 |e using |the curr|
|00000a40| 65 6e 74 20 69 6e 64 65 | 6e 74 2d 6c 69 6e 65 2d |ent inde|nt-line-|
|00000a50| 66 75 6e 63 74 69 6f 6e | 2e 0a 49 6e 20 70 72 6f |function|..In pro|
|00000a60| 67 72 61 6d 6d 69 6e 67 | 20 6c 61 6e 67 75 61 67 |gramming| languag|
|00000a70| 65 20 6d 6f 64 65 73 2c | 20 74 68 69 73 20 69 73 |e modes,| this is|
|00000a80| 20 74 68 65 20 73 61 6d | 65 20 61 73 20 54 41 42 | the sam|e as TAB|
|00000a90| 2e 0a 49 6e 20 73 6f 6d | 65 20 74 65 78 74 20 6d |..In som|e text m|
|00000aa0| 6f 64 65 73 2c 20 77 68 | 65 72 65 20 54 41 42 20 |odes, wh|ere TAB |
|00000ab0| 69 6e 73 65 72 74 73 20 | 61 20 74 61 62 2c 20 74 |inserts |a tab, t|
|00000ac0| 68 69 73 20 69 6e 64 65 | 6e 74 73 20 74 6f 20 74 |his inde|nts to t|
|00000ad0| 68 65 0a 73 70 65 63 69 | 66 69 65 64 20 6c 65 66 |he.speci|fied lef|
|00000ae0| 74 2d 6d 61 72 67 69 6e | 20 63 6f 6c 75 6d 6e 2e |t-margin| column.|
|00000af0| 22 20 22 2a 22 5d 29 0a | 28 66 73 65 74 20 27 72 |" "*"]).|(fset 'r|
|00000b00| 65 69 6e 64 65 6e 74 2d | 74 68 65 6e 2d 6e 65 77 |eindent-|then-new|
|00000b10| 6c 69 6e 65 2d 61 6e 64 | 2d 69 6e 64 65 6e 74 20 |line-and|-indent |
|00000b20| 23 5b 6e 69 6c 20 22 8a | 60 c0 c1 78 88 60 7c 88 |#[nil ".|`..x.`|.|
|00000b30| c2 20 88 29 c3 63 88 c2 | 20 87 22 20 5b 22 20 09 |. .).c..| ." [" .|
|00000b40| 22 20 6e 69 6c 20 69 6e | 64 65 6e 74 2d 61 63 63 |" nil in|dent-acc|
|00000b50| 6f 72 64 69 6e 67 2d 74 | 6f 2d 6d 6f 64 65 20 31 |ording-t|o-mode 1|
|00000b60| 30 5d 20 33 20 22 5c 0a | 52 65 69 6e 64 65 6e 74 |0] 3 "\.|Reindent|
|00000b70| 20 63 75 72 72 65 6e 74 | 20 6c 69 6e 65 2c 20 69 | current| line, i|
|00000b80| 6e 73 65 72 74 20 6e 65 | 77 6c 69 6e 65 2c 20 74 |nsert ne|wline, t|
|00000b90| 68 65 6e 20 69 6e 64 65 | 6e 74 20 74 68 65 20 6e |hen inde|nt the n|
|00000ba0| 65 77 20 6c 69 6e 65 2e | 0a 49 6e 64 65 6e 74 61 |ew line.|.Indenta|
|00000bb0| 74 69 6f 6e 20 6f 66 20 | 62 6f 74 68 20 6c 69 6e |tion of |both lin|
|00000bc0| 65 73 20 69 73 20 64 6f | 6e 65 20 61 63 63 6f 72 |es is do|ne accor|
|00000bd0| 64 69 6e 67 20 74 6f 20 | 74 68 65 20 63 75 72 72 |ding to |the curr|
|00000be0| 65 6e 74 20 6d 61 6a 6f | 72 20 6d 6f 64 65 2c 0a |ent majo|r mode,.|
|00000bf0| 77 68 69 63 68 20 6d 65 | 61 6e 73 20 74 68 61 74 |which me|ans that|
|00000c00| 20 74 68 65 20 63 75 72 | 72 65 6e 74 20 76 61 6c | the cur|rent val|
|00000c10| 75 65 20 6f 66 20 69 6e | 64 65 6e 74 2d 6c 69 6e |ue of in|dent-lin|
|00000c20| 65 2d 66 75 6e 63 74 69 | 6f 6e 20 69 73 20 63 61 |e-functi|on is ca|
|00000c30| 6c 6c 65 64 2e 0a 49 6e | 20 70 72 6f 67 72 61 6d |lled..In| program|
|00000c40| 6d 69 6e 67 20 6c 61 6e | 67 75 61 67 65 20 6d 6f |ming lan|guage mo|
|00000c50| 64 65 73 2c 20 74 68 69 | 73 20 69 73 20 74 68 65 |des, thi|s is the|
|00000c60| 20 73 61 6d 65 20 61 73 | 20 54 41 42 2e 0a 49 6e | same as| TAB..In|
|00000c70| 20 73 6f 6d 65 20 74 65 | 78 74 20 6d 6f 64 65 73 | some te|xt modes|
|00000c80| 2c 20 77 68 65 72 65 20 | 54 41 42 20 69 6e 73 65 |, where |TAB inse|
|00000c90| 72 74 73 20 61 20 74 61 | 62 2c 20 74 68 69 73 20 |rts a ta|b, this |
|00000ca0| 69 6e 64 65 6e 74 73 20 | 74 6f 20 74 68 65 0a 73 |indents |to the.s|
|00000cb0| 70 65 63 69 66 69 65 64 | 20 6c 65 66 74 2d 6d 61 |pecified| left-ma|
|00000cc0| 72 67 69 6e 20 63 6f 6c | 75 6d 6e 2e 22 20 22 2a |rgin col|umn." "*|
|00000cd0| 22 5d 29 0a 28 62 79 74 | 65 2d 63 6f 64 65 20 22 |"]).(byt|e-code "|
|00000ce0| c0 c1 4d 88 c2 c3 4d 87 | 22 20 5b 6b 69 6c 6c 2d |..M...M.|" [kill-|
|00000cf0| 66 6f 72 77 61 72 64 2d | 63 68 61 72 73 20 23 5b |forward-|chars #[|
|00000d00| 28 61 72 67 29 20 22 08 | 3c ab 83 08 40 10 08 c1 |(arg) ".|<...@...|
|00000d10| 3d ab 82 c2 10 c3 60 60 | 08 5c 5c 5c 22 87 22 20 |=.....``|.\\\"." |
|00000d20| 5b 61 72 67 20 2d 20 2d | 31 20 6b 69 6c 6c 2d 72 |[arg - -|1 kill-r|
|00000d30| 65 67 69 6f 6e 5d 20 34 | 5d 20 6b 69 6c 6c 2d 62 |egion] 4|] kill-b|
|00000d40| 61 63 6b 77 61 72 64 2d | 63 68 61 72 73 20 23 5b |ackward-|chars #[|
|00000d50| 28 61 72 67 29 20 22 08 | 3c ab 83 08 40 10 08 c1 |(arg) ".|<...@...|
|00000d60| 3d ab 82 c2 10 c3 60 60 | 08 5a 5c 22 87 22 20 5b |=.....``|.Z\"." [|
|00000d70| 61 72 67 20 2d 20 2d 31 | 20 6b 69 6c 6c 2d 72 65 |arg - -1| kill-re|
|00000d80| 67 69 6f 6e 5d 20 34 5d | 5d 20 32 29 0a 28 66 73 |gion] 4]|] 2).(fs|
|00000d90| 65 74 20 27 62 61 63 6b | 77 61 72 64 2d 64 65 6c |et 'back|ward-del|
|00000da0| 65 74 65 2d 63 68 61 72 | 2d 75 6e 74 61 62 69 66 |ete-char|-untabif|
|00000db0| 79 20 23 5b 28 61 72 67 | 20 26 6f 70 74 69 6f 6e |y #[(arg| &option|
|00000dc0| 61 6c 20 6b 69 6c 6c 70 | 29 20 22 08 19 8a 09 c2 |al killp|) ".....|
|00000dd0| 56 ab a4 6f ac a1 68 c3 | 55 ab 93 69 1c c5 75 88 |V..o..h.|U..i..u.|
|00000de0| 0c 69 5a 14 c6 c7 0c 5c | 22 88 c8 c9 21 88 29 c5 |.iZ....\|"...!.).|
|00000df0| 75 88 09 53 89 11 aa 58 | 2a ca 08 0e 0b 5c 22 88 |u..S...X|*....\".|
|00000e00| 0e 0c ad 8a 6c 3f ad 86 | 8a c6 c7 08 5c 22 29 87 |....l?..|....\").|
|00000e10| 22 20 5b 61 72 67 20 63 | 6f 75 6e 74 20 30 20 39 |" [arg c|ount 0 9|
|00000e20| 20 63 6f 6c 20 2d 31 20 | 69 6e 73 65 72 74 2d 63 | col -1 |insert-c|
|00000e30| 68 61 72 20 33 32 20 64 | 65 6c 65 74 65 2d 63 68 |har 32 d|elete-ch|
|00000e40| 61 72 20 31 20 64 65 6c | 65 74 65 2d 62 61 63 6b |ar 1 del|ete-back|
|00000e50| 77 61 72 64 2d 63 68 61 | 72 20 6b 69 6c 6c 70 20 |ward-cha|r killp |
|00000e60| 6f 76 65 72 77 72 69 74 | 65 2d 6d 6f 64 65 5d 20 |overwrit|e-mode] |
|00000e70| 34 20 22 5c 0a 44 65 6c | 65 74 65 20 63 68 61 72 |4 "\.Del|ete char|
|00000e80| 61 63 74 65 72 73 20 62 | 61 63 6b 77 61 72 64 2c |acters b|ackward,|
|00000e90| 20 63 68 61 6e 67 69 6e | 67 20 74 61 62 73 20 69 | changin|g tabs i|
|00000ea0| 6e 74 6f 20 73 70 61 63 | 65 73 2e 0a 44 65 6c 65 |nto spac|es..Dele|
|00000eb0| 74 65 20 41 52 47 20 63 | 68 61 72 73 2c 20 61 6e |te ARG c|hars, an|
|00000ec0| 64 20 6b 69 6c 6c 20 28 | 73 61 76 65 20 69 6e 20 |d kill (|save in |
|00000ed0| 6b 69 6c 6c 20 72 69 6e | 67 29 20 69 66 20 4b 49 |kill rin|g) if KI|
|00000ee0| 4c 4c 50 20 69 73 20 6e | 6f 6e 2d 6e 69 6c 2e 0a |LLP is n|on-nil..|
|00000ef0| 49 6e 74 65 72 61 63 74 | 69 76 65 6c 79 2c 20 41 |Interact|ively, A|
|00000f00| 52 47 20 69 73 20 74 68 | 65 20 70 72 65 66 69 78 |RG is th|e prefix|
|00000f10| 20 61 72 67 20 28 64 65 | 66 61 75 6c 74 20 31 29 | arg (de|fault 1)|
|00000f20| 0a 61 6e 64 20 4b 49 4c | 4c 50 20 69 73 20 74 20 |.and KIL|LP is t |
|00000f30| 69 66 20 70 72 65 66 69 | 78 20 61 72 67 20 69 73 |if prefi|x arg is|
|00000f40| 20 77 61 73 20 73 70 65 | 63 69 66 69 65 64 2e 22 | was spe|cified."|
|00000f50| 20 22 2a 70 5c 6e 50 22 | 5d 29 0a 28 66 73 65 74 | "*p\nP"|]).(fset|
|00000f60| 20 27 7a 61 70 2d 74 6f | 2d 63 68 61 72 20 23 5b | 'zap-to|-char #[|
|00000f70| 28 61 72 67 20 63 68 61 | 72 29 20 22 c0 60 c1 c2 |(arg cha|r) ".`..|
|00000f80| 0b 21 c4 89 0d 24 88 60 | 5c 22 87 22 20 5b 6b 69 |.!...$.`|\"." [ki|
|00000f90| 6c 6c 2d 72 65 67 69 6f | 6e 20 73 65 61 72 63 68 |ll-regio|n search|
|00000fa0| 2d 66 6f 72 77 61 72 64 | 20 63 68 61 72 2d 74 6f |-forward| char-to|
|00000fb0| 2d 73 74 72 69 6e 67 20 | 63 68 61 72 20 6e 69 6c |-string |char nil|
|00000fc0| 20 61 72 67 5d 20 37 20 | 22 5c 0a 4b 69 6c 6c 20 | arg] 7 |"\.Kill |
|00000fd0| 75 70 20 74 6f 20 61 6e | 64 20 69 6e 63 6c 75 64 |up to an|d includ|
|00000fe0| 69 6e 67 20 41 52 47 27 | 74 68 20 6f 63 63 75 72 |ing ARG'|th occur|
|00000ff0| 72 65 6e 63 65 20 6f 66 | 20 43 48 41 52 2e 0a 47 |rence of| CHAR..G|
|00001000| 6f 65 73 20 62 61 63 6b | 77 61 72 64 20 69 66 20 |oes back|ward if |
|00001010| 41 52 47 20 69 73 20 6e | 65 67 61 74 69 76 65 3b |ARG is n|egative;|
|00001020| 20 65 72 72 6f 72 20 69 | 66 20 43 48 41 52 20 6e | error i|f CHAR n|
|00001030| 6f 74 20 66 6f 75 6e 64 | 2e 22 20 22 2a 70 5c 6e |ot found|." "*p\n|
|00001040| 63 5a 61 70 20 74 6f 20 | 63 68 61 72 3a 20 22 5d |cZap to |char: "]|
|00001050| 29 0a 28 66 73 65 74 20 | 27 62 65 67 69 6e 6e 69 |).(fset |'beginni|
|00001060| 6e 67 2d 6f 66 2d 62 75 | 66 66 65 72 20 23 5b 28 |ng-of-bu|ffer #[(|
|00001070| 26 6f 70 74 69 6f 6e 61 | 6c 20 61 72 67 29 20 22 |&optiona|l arg) "|
|00001080| c0 20 88 09 ab 9c c2 20 | c3 56 ab 8a c4 09 21 c2 |. ..... |.V....!.|
|00001090| 20 c5 a5 5f aa 8d c2 20 | c4 09 21 5f c5 5c 5c c5 | .._... |..!_.\\.|
|000010a0| a5 aa 81 65 62 88 c6 16 | 07 09 ad 82 c8 79 87 22 |...eb...|.....y."|
|000010b0| 20 5b 70 75 73 68 2d 6d | 61 72 6b 20 61 72 67 20 | [push-m|ark arg |
|000010c0| 62 75 66 66 65 72 2d 73 | 69 7a 65 20 31 30 30 30 |buffer-s|ize 1000|
|000010d0| 30 20 70 72 65 66 69 78 | 2d 6e 75 6d 65 72 69 63 |0 prefix|-numeric|
|000010e0| 2d 76 61 6c 75 65 20 31 | 30 20 74 20 7a 6d 61 63 |-value 1|0 t zmac|
|000010f0| 73 2d 72 65 67 69 6f 6e | 2d 73 74 61 79 73 20 31 |s-region|-stays 1|
|00001100| 5d 20 33 20 22 5c 0a 4d | 6f 76 65 20 70 6f 69 6e |] 3 "\.M|ove poin|
|00001110| 74 20 74 6f 20 74 68 65 | 20 62 65 67 69 6e 6e 69 |t to the| beginni|
|00001120| 6e 67 20 6f 66 20 74 68 | 65 20 62 75 66 66 65 72 |ng of th|e buffer|
|00001130| 3b 20 6c 65 61 76 65 20 | 6d 61 72 6b 20 61 74 20 |; leave |mark at |
|00001140| 70 72 65 76 69 6f 75 73 | 20 70 6f 73 69 74 69 6f |previous| positio|
|00001150| 6e 2e 0a 57 69 74 68 20 | 61 72 67 20 4e 2c 20 70 |n..With |arg N, p|
|00001160| 75 74 20 70 6f 69 6e 74 | 20 4e 2f 31 30 20 6f 66 |ut point| N/10 of|
|00001170| 20 74 68 65 20 77 61 79 | 20 66 72 6f 6d 20 74 68 | the way| from th|
|00001180| 65 20 74 72 75 65 20 62 | 65 67 69 6e 6e 69 6e 67 |e true b|eginning|
|00001190| 2e 0a 44 6f 6e 27 74 20 | 75 73 65 20 74 68 69 73 |..Don't |use this|
|000011a0| 20 69 6e 20 4c 69 73 70 | 20 70 72 6f 67 72 61 6d | in Lisp| program|
|000011b0| 73 21 0a 28 67 6f 74 6f | 2d 63 68 61 72 20 28 70 |s!.(goto|-char (p|
|000011c0| 6f 69 6e 74 2d 6d 69 6e | 29 29 20 69 73 20 66 61 |oint-min|)) is fa|
|000011d0| 73 74 65 72 20 61 6e 64 | 20 61 76 6f 69 64 73 20 |ster and| avoids |
|000011e0| 63 6c 6f 62 62 65 72 69 | 6e 67 20 74 68 65 20 6d |clobberi|ng the m|
|000011f0| 61 72 6b 2e 22 20 22 50 | 22 5d 29 0a 28 62 79 74 |ark." "P|"]).(byt|
|00001200| 65 2d 63 6f 64 65 20 22 | c0 c1 21 ac 82 c2 11 c2 |e-code "|..!.....|
|00001210| 87 22 20 5b 62 6f 75 6e | 64 70 20 64 6f 6e 74 2d |." [boun|dp dont-|
|00001220| 72 65 64 69 73 70 6c 61 | 79 2d 77 68 65 6e 2d 6d |redispla|y-when-m|
|00001230| 6f 76 69 6e 67 2d 77 69 | 74 68 69 6e 2d 77 69 6e |oving-wi|thin-win|
|00001240| 64 6f 77 20 6e 69 6c 5d | 20 32 29 0a 28 66 73 65 |dow nil]| 2).(fse|
|00001250| 74 20 27 65 6e 64 2d 6f | 66 2d 62 75 66 66 65 72 |t 'end-o|f-buffer|
|00001260| 20 23 5b 28 26 6f 70 74 | 69 6f 6e 61 6c 20 61 72 | #[(&opt|ional ar|
|00001270| 67 29 20 22 c0 20 88 c1 | 12 c3 64 21 3f 1c 0d ab |g) ". ..|..d!?...|
|00001280| 9e c6 20 54 c6 20 c7 56 | ab 8a c8 0d 21 c6 20 c9 |.. T. .V|....!. .|
|00001290| a5 5f aa 88 c6 20 c8 0d | 21 5f c9 a5 5a aa 81 64 |._... ..|!_..Z..d|
|000012a0| 62 88 0d ab 84 ca 79 aa | 86 0c ad 83 cb cc 21 29 |b.....y.|......!)|
|000012b0| 87 22 20 5b 70 75 73 68 | 2d 6d 61 72 6b 20 74 20 |." [push|-mark t |
|000012c0| 7a 6d 61 63 73 2d 72 65 | 67 69 6f 6e 2d 73 74 61 |zmacs-re|gion-sta|
|000012d0| 79 73 20 70 6f 73 2d 76 | 69 73 69 62 6c 65 2d 69 |ys pos-v|isible-i|
|000012e0| 6e 2d 77 69 6e 64 6f 77 | 2d 70 20 73 63 72 6f 6c |n-window|-p scrol|
|000012f0| 6c 2d 74 6f 2d 65 6e 64 | 20 61 72 67 20 62 75 66 |l-to-end| arg buf|
|00001300| 66 65 72 2d 73 69 7a 65 | 20 31 30 30 30 30 20 70 |fer-size| 10000 p|
|00001310| 72 65 66 69 78 2d 6e 75 | 6d 65 72 69 63 2d 76 61 |refix-nu|meric-va|
|00001320| 6c 75 65 20 31 30 20 31 | 20 72 65 63 65 6e 74 65 |lue 10 1| recente|
|00001330| 72 20 2d 33 5d 20 34 20 | 22 5c 0a 4d 6f 76 65 20 |r -3] 4 |"\.Move |
|00001340| 70 6f 69 6e 74 20 74 6f | 20 74 68 65 20 65 6e 64 |point to| the end|
|00001350| 20 6f 66 20 74 68 65 20 | 62 75 66 66 65 72 3b 20 | of the |buffer; |
|00001360| 6c 65 61 76 65 20 6d 61 | 72 6b 20 61 74 20 70 72 |leave ma|rk at pr|
|00001370| 65 76 69 6f 75 73 20 70 | 6f 73 69 74 69 6f 6e 2e |evious p|osition.|
|00001380| 0a 57 69 74 68 20 61 72 | 67 20 4e 2c 20 70 75 74 |.With ar|g N, put|
|00001390| 20 70 6f 69 6e 74 20 4e | 2f 31 30 20 6f 66 20 74 | point N|/10 of t|
|000013a0| 68 65 20 77 61 79 20 66 | 72 6f 6d 20 74 68 65 20 |he way f|rom the |
|000013b0| 74 72 75 65 20 65 6e 64 | 2e 0a 44 6f 6e 27 74 20 |true end|..Don't |
|000013c0| 75 73 65 20 74 68 69 73 | 20 69 6e 20 4c 69 73 70 |use this| in Lisp|
|000013d0| 20 70 72 6f 67 72 61 6d | 73 21 0a 28 67 6f 74 6f | program|s!.(goto|
|000013e0| 2d 63 68 61 72 20 28 70 | 6f 69 6e 74 2d 6d 61 78 |-char (p|oint-max|
|000013f0| 29 29 20 69 73 20 66 61 | 73 74 65 72 20 61 6e 64 |)) is fa|ster and|
|00001400| 20 61 76 6f 69 64 73 20 | 63 6c 6f 62 62 65 72 69 | avoids |clobberi|
|00001410| 6e 67 20 74 68 65 20 6d | 61 72 6b 2e 22 20 22 50 |ng the m|ark." "P|
|00001420| 22 5d 29 0a 28 66 73 65 | 74 20 27 6d 61 72 6b 2d |"]).(fse|t 'mark-|
|00001430| 62 65 67 69 6e 6e 69 6e | 67 2d 6f 66 2d 62 75 66 |beginnin|g-of-buf|
|00001440| 66 65 72 20 23 5b 28 26 | 6f 70 74 69 6f 6e 61 6c |fer #[(&|optional|
|00001450| 20 61 72 67 29 20 22 c0 | 09 ab 9c c2 20 c3 56 ab | arg) ".|.... .V.|
|00001460| 8a c4 09 21 c2 20 c5 a5 | 5f aa 8d c2 20 c4 09 21 |...!. ..|_... ..!|
|00001470| 5f c5 5c 5c c5 a5 aa 81 | 65 21 88 c6 20 87 22 20 |_.\\....|e!.. ." |
|00001480| 5b 70 75 73 68 2d 6d 61 | 72 6b 20 61 72 67 20 62 |[push-ma|rk arg b|
|00001490| 75 66 66 65 72 2d 73 69 | 7a 65 20 31 30 30 30 30 |uffer-si|ze 10000|
|000014a0| 20 70 72 65 66 69 78 2d | 6e 75 6d 65 72 69 63 2d | prefix-|numeric-|
|000014b0| 76 61 6c 75 65 20 31 30 | 20 7a 6d 61 63 73 2d 61 |value 10| zmacs-a|
|000014c0| 63 74 69 76 61 74 65 2d | 72 65 67 69 6f 6e 5d 20 |ctivate-|region] |
|000014d0| 34 20 22 5c 0a 50 75 73 | 68 20 61 20 6d 61 72 6b |4 "\.Pus|h a mark|
|000014e0| 20 61 74 20 74 68 65 20 | 62 65 67 69 6e 6e 69 6e | at the |beginnin|
|000014f0| 67 20 6f 66 20 74 68 65 | 20 62 75 66 66 65 72 3b |g of the| buffer;|
|00001500| 20 6c 65 61 76 65 20 70 | 6f 69 6e 74 20 77 68 65 | leave p|oint whe|
|00001510| 72 65 20 69 74 20 69 73 | 2e 0a 57 69 74 68 20 61 |re it is|..With a|
|00001520| 72 67 20 4e 2c 20 70 75 | 73 68 20 6d 61 72 6b 20 |rg N, pu|sh mark |
|00001530| 4e 2f 31 30 20 6f 66 20 | 74 68 65 20 77 61 79 20 |N/10 of |the way |
|00001540| 66 72 6f 6d 20 74 68 65 | 20 74 72 75 65 20 62 65 |from the| true be|
|00001550| 67 69 6e 6e 69 6e 67 2e | 22 20 22 50 22 5d 29 0a |ginning.|" "P"]).|
|00001560| 28 66 73 65 74 20 27 6d | 61 72 6b 2d 62 6f 62 20 |(fset 'm|ark-bob |
|00001570| 27 6d 61 72 6b 2d 62 65 | 67 69 6e 6e 69 6e 67 2d |'mark-be|ginning-|
|00001580| 6f 66 2d 62 75 66 66 65 | 72 29 0a 28 66 73 65 74 |of-buffe|r).(fset|
|00001590| 20 27 6d 61 72 6b 2d 65 | 6e 64 2d 6f 66 2d 62 75 | 'mark-e|nd-of-bu|
|000015a0| 66 66 65 72 20 23 5b 28 | 26 6f 70 74 69 6f 6e 61 |ffer #[(|&optiona|
|000015b0| 6c 20 61 72 67 29 20 22 | c0 09 ab 9e c2 20 54 c2 |l arg) "|..... T.|
|000015c0| 20 c3 56 ab 8a c4 09 21 | c2 20 c5 a5 5f aa 88 c2 | .V....!|. .._...|
|000015d0| 20 c4 09 21 5f c5 a5 5a | aa 81 64 21 88 c6 20 87 | ..!_..Z|..d!.. .|
|000015e0| 22 20 5b 70 75 73 68 2d | 6d 61 72 6b 20 61 72 67 |" [push-|mark arg|
|000015f0| 20 62 75 66 66 65 72 2d | 73 69 7a 65 20 31 30 30 | buffer-|size 100|
|00001600| 30 30 20 70 72 65 66 69 | 78 2d 6e 75 6d 65 72 69 |00 prefi|x-numeri|
|00001610| 63 2d 76 61 6c 75 65 20 | 31 30 20 7a 6d 61 63 73 |c-value |10 zmacs|
|00001620| 2d 61 63 74 69 76 61 74 | 65 2d 72 65 67 69 6f 6e |-activat|e-region|
|00001630| 5d 20 35 20 22 5c 0a 50 | 75 73 68 20 61 20 6d 61 |] 5 "\.P|ush a ma|
|00001640| 72 6b 20 61 74 20 74 68 | 65 20 65 6e 64 20 6f 66 |rk at th|e end of|
|00001650| 20 74 68 65 20 62 75 66 | 66 65 72 3b 20 6c 65 61 | the buf|fer; lea|
|00001660| 76 65 20 70 6f 69 6e 74 | 20 77 68 65 72 65 20 69 |ve point| where i|
|00001670| 74 20 69 73 2e 0a 57 69 | 74 68 20 61 72 67 20 4e |t is..Wi|th arg N|
|00001680| 2c 20 70 75 73 68 20 6d | 61 72 6b 20 4e 2f 31 30 |, push m|ark N/10|
|00001690| 20 6f 66 20 74 68 65 20 | 77 61 79 20 66 72 6f 6d | of the |way from|
|000016a0| 20 74 68 65 20 74 72 75 | 65 20 65 6e 64 2e 22 20 | the tru|e end." |
|000016b0| 22 50 22 5d 29 0a 28 66 | 73 65 74 20 27 6d 61 72 |"P"]).(f|set 'mar|
|000016c0| 6b 2d 65 6f 62 20 27 6d | 61 72 6b 2d 65 6e 64 2d |k-eob 'm|ark-end-|
|000016d0| 6f 66 2d 62 75 66 66 65 | 72 29 0a 28 66 73 65 74 |of-buffe|r).(fset|
|000016e0| 20 27 6d 61 72 6b 2d 77 | 68 6f 6c 65 2d 62 75 66 | 'mark-w|hole-buf|
|000016f0| 66 65 72 20 23 5b 6e 69 | 6c 20 22 c0 60 21 88 c0 |fer #[ni|l ".`!..|
|00001700| 64 21 88 65 62 88 c1 20 | 87 22 20 5b 70 75 73 68 |d!.eb.. |." [push|
|00001710| 2d 6d 61 72 6b 20 7a 6d | 61 63 73 2d 61 63 74 69 |-mark zm|acs-acti|
|00001720| 76 61 74 65 2d 72 65 67 | 69 6f 6e 5d 20 32 20 22 |vate-reg|ion] 2 "|
|00001730| 5c 0a 50 75 74 20 70 6f | 69 6e 74 20 61 74 20 62 |\.Put po|int at b|
|00001740| 65 67 69 6e 6e 69 6e 67 | 20 61 6e 64 20 6d 61 72 |eginning| and mar|
|00001750| 6b 20 61 74 20 65 6e 64 | 20 6f 66 20 62 75 66 66 |k at end| of buff|
|00001760| 65 72 2e 22 20 6e 69 6c | 5d 29 0a 28 66 73 65 74 |er." nil|]).(fset|
|00001770| 20 27 65 76 61 6c 2d 63 | 75 72 72 65 6e 74 2d 62 | 'eval-c|urrent-b|
|00001780| 75 66 66 65 72 20 23 5b | 28 26 6f 70 74 69 6f 6e |uffer #[|(&option|
|00001790| 61 6c 20 70 72 69 6e 74 | 66 6c 61 67 29 20 22 c0 |al print|flag) ".|
|000017a0| 70 09 5c 22 87 22 20 5b | 65 76 61 6c 2d 62 75 66 |p.\"." [|eval-buf|
|000017b0| 66 65 72 20 70 72 69 6e | 74 66 6c 61 67 5d 20 33 |fer prin|tflag] 3|
|000017c0| 20 22 5c 0a 45 76 61 6c | 75 61 74 65 20 74 68 65 | "\.Eval|uate the|
|000017d0| 20 63 75 72 72 65 6e 74 | 20 62 75 66 66 65 72 20 | current| buffer |
|000017e0| 61 73 20 4c 69 73 70 20 | 63 6f 64 65 2e 0a 50 72 |as Lisp |code..Pr|
|000017f0| 6f 67 72 61 6d 73 20 63 | 61 6e 20 70 61 73 73 20 |ograms c|an pass |
|00001800| 61 72 67 75 6d 65 6e 74 | 20 50 52 49 4e 54 46 4c |argument| PRINTFL|
|00001810| 41 47 20 77 68 69 63 68 | 20 63 6f 6e 74 72 6f 6c |AG which| control|
|00001820| 73 20 70 72 69 6e 74 69 | 6e 67 20 6f 66 20 6f 75 |s printi|ng of ou|
|00001830| 74 70 75 74 3a 0a 6e 69 | 6c 20 6d 65 61 6e 73 20 |tput:.ni|l means |
|00001840| 64 69 73 63 61 72 64 20 | 69 74 3b 20 61 6e 79 74 |discard |it; anyt|
|00001850| 68 69 6e 67 20 65 6c 73 | 65 20 69 73 20 73 74 72 |hing els|e is str|
|00001860| 65 61 6d 20 66 6f 72 20 | 70 72 69 6e 74 2e 22 20 |eam for |print." |
|00001870| 6e 69 6c 5d 29 0a 28 62 | 79 74 65 2d 63 6f 64 65 |nil]).(b|yte-code|
|00001880| 20 22 c0 c1 4d 88 c2 c3 | 4d 87 22 20 5b 63 6f 75 | "..M...|M." [cou|
|00001890| 6e 74 2d 77 6f 72 64 73 | 2d 62 75 66 66 65 72 20 |nt-words|-buffer |
|000018a0| 23 5b 28 62 29 20 22 8a | 08 ae 81 70 89 19 71 88 |#[(b) ".|...p..q.|
|000018b0| c2 c3 c4 65 64 5c 22 5c | 22 2a 87 22 20 5b 62 20 |...ed\"\|"*." [b |
|000018c0| 62 75 66 20 6d 65 73 73 | 61 67 65 20 22 42 75 66 |buf mess|age "Buf|
|000018d0| 66 65 72 20 68 61 73 20 | 25 64 20 77 6f 72 64 73 |fer has |%d words|
|000018e0| 22 20 63 6f 75 6e 74 2d | 77 6f 72 64 73 2d 72 65 |" count-|words-re|
|000018f0| 67 69 6f 6e 5d 20 36 20 | 6e 69 6c 20 22 62 22 5d |gion] 6 |nil "b"]|
|00001900| 20 63 6f 75 6e 74 2d 77 | 6f 72 64 73 2d 72 65 67 | count-w|ords-reg|
|00001910| 69 6f 6e 20 23 5b 28 64 | 65 62 75 74 20 66 69 6e |ion #[(d|ebut fin|
|00001920| 29 20 22 8a c0 19 5c 6e | 62 88 60 0b 57 ab 89 c4 |) "...\n|b.`.W...|
|00001930| 76 ab 77 09 54 11 aa 72 | c5 c6 09 5c 22 88 09 2a |v.w.T..r|...\"..*|
|00001940| 87 22 20 5b 30 20 63 6e | 74 20 64 65 62 75 74 20 |." [0 cn|t debut |
|00001950| 66 69 6e 20 31 20 6d 65 | 73 73 61 67 65 20 22 52 |fin 1 me|ssage "R|
|00001960| 65 67 69 6f 6e 20 68 61 | 73 20 25 64 20 77 6f 72 |egion ha|s %d wor|
|00001970| 64 73 22 5d 20 33 20 6e | 69 6c 20 22 72 22 5d 5d |ds"] 3 n|il "r"]]|
|00001980| 20 32 29 0a 28 66 73 65 | 74 20 27 63 6f 75 6e 74 | 2).(fse|t 'count|
|00001990| 2d 6c 69 6e 65 73 2d 72 | 65 67 69 6f 6e 20 23 5b |-lines-r|egion #[|
|000019a0| 28 73 74 61 72 74 20 65 | 6e 64 29 20 22 c0 c1 c2 |(start e|nd) "...|
|000019b0| 0b 0c 5c 22 5c 22 c5 16 | 06 87 22 20 5b 6d 65 73 |..\"\"..|.." [mes|
|000019c0| 73 61 67 65 20 22 52 65 | 67 69 6f 6e 20 68 61 73 |sage "Re|gion has|
|000019d0| 20 25 64 20 6c 69 6e 65 | 73 22 20 63 6f 75 6e 74 | %d line|s" count|
|000019e0| 2d 6c 69 6e 65 73 20 73 | 74 61 72 74 20 65 6e 64 |-lines s|tart end|
|000019f0| 20 74 20 7a 6d 61 63 73 | 2d 72 65 67 69 6f 6e 2d | t zmacs|-region-|
|00001a00| 73 74 61 79 73 5d 20 35 | 20 22 5c 0a 50 72 69 6e |stays] 5| "\.Prin|
|00001a10| 74 20 6e 75 6d 62 65 72 | 20 6f 66 20 6c 69 6e 65 |t number| of line|
|00001a20| 73 20 69 6e 20 74 68 65 | 20 72 65 67 69 6f 6e 2e |s in the| region.|
|00001a30| 22 20 22 72 22 5d 29 0a | 28 66 73 65 74 20 27 63 |" "r"]).|(fset 'c|
|00001a40| 6f 75 6e 74 2d 6c 69 6e | 65 73 2d 62 75 66 66 65 |ount-lin|es-buffe|
|00001a50| 72 20 23 5b 28 62 29 20 | 22 8a 08 ae 81 70 89 19 |r #[(b) |"....p..|
|00001a60| 71 88 c2 c3 c4 65 64 5c | 22 5c 22 2a c5 16 06 87 |q....ed\|"\"*....|
|00001a70| 22 20 5b 62 20 62 75 66 | 20 6d 65 73 73 61 67 65 |" [b buf| message|
|00001a80| 20 22 42 75 66 66 65 72 | 20 68 61 73 20 25 64 20 | "Buffer| has %d |
|00001a90| 6c 69 6e 65 73 22 20 63 | 6f 75 6e 74 2d 6c 69 6e |lines" c|ount-lin|
|00001aa0| 65 73 20 74 20 7a 6d 61 | 63 73 2d 72 65 67 69 6f |es t zma|cs-regio|
|00001ab0| 6e 2d 73 74 61 79 73 5d | 20 36 20 6e 69 6c 20 22 |n-stays]| 6 nil "|
|00001ac0| 62 22 5d 29 0a 28 66 73 | 65 74 20 27 77 68 61 74 |b"]).(fs|et 'what|
|00001ad0| 2d 6c 69 6e 65 20 23 5b | 6e 69 6c 20 22 8c 7e 88 |-line #[|nil ".~.|
|00001ae0| 8a c0 79 88 c1 c2 c3 c4 | 60 5c 22 54 5c 22 2a c5 |..y.....|`\"T\"*.|
|00001af0| 16 06 87 22 20 5b 30 20 | 6d 65 73 73 61 67 65 20 |..." [0 |message |
|00001b00| 22 4c 69 6e 65 20 25 64 | 22 20 63 6f 75 6e 74 2d |"Line %d|" count-|
|00001b10| 6c 69 6e 65 73 20 31 20 | 74 20 7a 6d 61 63 73 2d |lines 1 |t zmacs-|
|00001b20| 72 65 67 69 6f 6e 2d 73 | 74 61 79 73 5d 20 35 20 |region-s|tays] 5 |
|00001b30| 22 5c 0a 50 72 69 6e 74 | 20 74 68 65 20 63 75 72 |"\.Print| the cur|
|00001b40| 72 65 6e 74 20 6c 69 6e | 65 20 6e 75 6d 62 65 72 |rent lin|e number|
|00001b50| 20 28 69 6e 20 74 68 65 | 20 62 75 66 66 65 72 29 | (in the| buffer)|
|00001b60| 20 6f 66 20 70 6f 69 6e | 74 2e 22 20 6e 69 6c 5d | of poin|t." nil]|
|00001b70| 29 0a 28 66 73 65 74 20 | 27 63 6f 75 6e 74 2d 6c |).(fset |'count-l|
|00001b80| 69 6e 65 73 20 23 5b 28 | 73 74 61 72 74 20 65 6e |ines #[(|start en|
|00001b90| 64 29 20 22 8a 8c 08 09 | 7d 88 65 62 88 5c 6e c3 |d) "....|}.eb.\n.|
|00001ba0| 3d ab a2 c4 1d c6 c7 c8 | c3 c9 24 ab 86 0d c9 5c |=.......|..$....\|
|00001bb0| 5c 15 aa 72 c6 c7 c8 c3 | ca 24 ab 86 0d ca 5c 5c |\..r....|.$....\\|
|00001bc0| 15 aa 72 0d 29 aa 86 cb | 20 cb 20 79 5a 2a 87 22 |..r.)...| . yZ*."|
|00001bd0| 20 5b 73 74 61 72 74 20 | 65 6e 64 20 73 65 6c 65 | [start |end sele|
|00001be0| 63 74 69 76 65 2d 64 69 | 73 70 6c 61 79 20 74 20 |ctive-di|splay t |
|00001bf0| 30 20 64 6f 6e 65 20 72 | 65 2d 73 65 61 72 63 68 |0 done r|e-search|
|00001c00| 2d 66 6f 72 77 61 72 64 | 20 22 5b 5c 6e 0d 5d 22 |-forward| "[\n.]"|
|00001c10| 20 6e 69 6c 20 34 30 20 | 31 20 62 75 66 66 65 72 | nil 40 |1 buffer|
|00001c20| 2d 73 69 7a 65 5d 20 35 | 20 22 5c 0a 52 65 74 75 |-size] 5| "\.Retu|
|00001c30| 72 6e 20 6e 75 6d 62 65 | 72 20 6f 66 20 6c 69 6e |rn numbe|r of lin|
|00001c40| 65 73 20 62 65 74 77 65 | 65 6e 20 53 54 41 52 54 |es betwe|en START|
|00001c50| 20 61 6e 64 20 45 4e 44 | 2e 0a 54 68 69 73 20 69 | and END|..This i|
|00001c60| 73 20 75 73 75 61 6c 6c | 79 20 74 68 65 20 6e 75 |s usuall|y the nu|
|00001c70| 6d 62 65 72 20 6f 66 20 | 6e 65 77 6c 69 6e 65 73 |mber of |newlines|
|00001c80| 20 62 65 74 77 65 65 6e | 20 74 68 65 6d 2c 0a 62 | between| them,.b|
|00001c90| 75 74 20 77 69 6c 6c 20 | 62 65 20 6f 6e 65 20 6d |ut will |be one m|
|00001ca0| 6f 72 65 20 69 66 20 53 | 54 41 52 54 20 69 73 20 |ore if S|TART is |
|00001cb0| 6e 6f 74 20 65 71 75 61 | 6c 20 74 6f 20 45 4e 44 |not equa|l to END|
|00001cc0| 0a 61 6e 64 20 74 68 65 | 20 67 72 65 61 74 65 72 |.and the| greater|
|00001cd0| 20 6f 66 20 74 68 65 6d | 20 69 73 20 6e 6f 74 20 | of them| is not |
|00001ce0| 61 74 20 74 68 65 20 73 | 74 61 72 74 20 6f 66 20 |at the s|tart of |
|00001cf0| 61 20 6c 69 6e 65 2e 22 | 5d 29 0a 28 66 73 65 74 |a line."|]).(fset|
|00001d00| 20 27 77 68 61 74 2d 63 | 75 72 73 6f 72 2d 70 6f | 'what-c|ursor-po|
|00001d10| 73 69 74 69 6f 6e 20 23 | 5b 6e 69 6c 20 22 67 18 |sition #|[nil "g.|
|00001d20| 65 19 64 1a 60 1b c4 20 | 89 1d c6 56 ab 8e 0d c7 |e.d.`.. |...V....|
|00001d30| a5 0b 53 5c 5c 0d c8 a5 | c9 5d a5 aa 8c 0d ca a5 |..S\\...|.]......|
|00001d40| 0b 53 c8 5f 5c 5c 0d c9 | 5d a5 1e 0b cc 20 cd 55 |.S._\\..|].... .U|
|00001d50| ab 83 ce aa 85 cf d0 cc | 20 5c 22 1e 11 69 1e 12 |........| \"..i..|
|00001d60| 0b 5c 6e 55 ab a9 09 c9 | 55 ab 86 5c 6e 0d 54 55 |.\nU....|U..\n.TU|
|00001d70| ac 90 d3 d4 0b 0d 0e 0b | 09 5c 6e 0e 12 0e 11 26 |........|.\n....&|
|00001d80| 08 aa bd d3 d5 0b 0d 0e | 0b 0e 12 0e 11 26 06 aa |........|.....&..|
|00001d90| af 09 c9 55 ab 86 5c 6e | 0d 54 55 ac 94 d3 d6 d7 |...U..\n|.TU.....|
|00001da0| 08 21 08 0b 0d 0e 0b 09 | 5c 6e 0e 12 0e 11 26 5c |.!......|\n....&\|
|00001db0| 6e aa 90 d3 d8 d7 08 21 | 08 0b 0d 0e 0b 0e 12 0e |n......!|........|
|00001dc0| 11 26 08 2e 08 d9 16 1a | 87 22 20 5b 63 68 61 72 |.&......|." [char|
|00001dd0| 20 62 65 67 20 65 6e 64 | 20 70 6f 73 20 62 75 66 | beg end| pos buf|
|00001de0| 66 65 72 2d 73 69 7a 65 | 20 74 6f 74 61 6c 20 35 |fer-size| total 5|
|00001df0| 30 30 30 30 20 32 30 30 | 20 31 30 30 20 31 20 32 |0000 200| 100 1 2|
|00001e00| 20 70 65 72 63 65 6e 74 | 20 77 69 6e 64 6f 77 2d | percent| window-|
|00001e10| 68 73 63 72 6f 6c 6c 20 | 30 20 22 22 20 66 6f 72 |hscroll |0 "" for|
|00001e20| 6d 61 74 20 22 20 48 73 | 63 72 6f 6c 6c 3d 25 64 |mat " Hs|croll=%d|
|00001e30| 22 20 68 73 63 72 6f 6c | 6c 20 63 6f 6c 20 6d 65 |" hscrol|l col me|
|00001e40| 73 73 61 67 65 20 22 70 | 6f 69 6e 74 3d 25 64 20 |ssage "p|oint=%d |
|00001e50| 6f 66 20 25 64 28 25 64 | 25 25 29 20 3c 25 64 20 |of %d(%d|%%) <%d |
|00001e60| 2d 20 25 64 3e 20 20 63 | 6f 6c 75 6d 6e 20 25 64 |- %d> c|olumn %d|
|00001e70| 20 25 73 22 20 22 70 6f | 69 6e 74 3d 25 64 20 6f | %s" "po|int=%d o|
|00001e80| 66 20 25 64 28 25 64 25 | 25 29 20 20 63 6f 6c 75 |f %d(%d%|%) colu|
|00001e90| 6d 6e 20 25 64 20 25 73 | 22 20 22 43 68 61 72 3a |mn %d %s|" "Char:|
|00001ea0| 20 25 73 20 28 30 25 6f | 29 20 20 70 6f 69 6e 74 | %s (0%o|) point|
|00001eb0| 3d 25 64 20 6f 66 20 25 | 64 28 25 64 25 25 29 20 |=%d of %|d(%d%%) |
|00001ec0| 3c 25 64 20 2d 20 25 64 | 3e 20 20 63 6f 6c 75 6d |<%d - %d|> colum|
|00001ed0| 6e 20 25 64 20 25 73 22 | 20 73 69 6e 67 6c 65 2d |n %d %s"| single-|
|00001ee0| 6b 65 79 2d 64 65 73 63 | 72 69 70 74 69 6f 6e 20 |key-desc|ription |
|00001ef0| 22 43 68 61 72 3a 20 25 | 73 20 28 30 25 6f 29 20 |"Char: %|s (0%o) |
|00001f00| 20 70 6f 69 6e 74 3d 25 | 64 20 6f 66 20 25 64 28 | point=%|d of %d(|
|00001f10| 25 64 25 25 29 20 20 63 | 6f 6c 75 6d 6e 20 25 64 |%d%%) c|olumn %d|
|00001f20| 20 25 73 22 20 74 20 7a | 6d 61 63 73 2d 72 65 67 | %s" t z|macs-reg|
|00001f30| 69 6f 6e 2d 73 74 61 79 | 73 5d 20 31 32 20 22 5c |ion-stay|s] 12 "\|
|00001f40| 0a 50 72 69 6e 74 20 69 | 6e 66 6f 20 6f 6e 20 63 |.Print i|nfo on c|
|00001f50| 75 72 73 6f 72 20 70 6f | 73 69 74 69 6f 6e 20 28 |ursor po|sition (|
|00001f60| 6f 6e 20 73 63 72 65 65 | 6e 20 61 6e 64 20 77 69 |on scree|n and wi|
|00001f70| 74 68 69 6e 20 62 75 66 | 66 65 72 29 2e 22 20 6e |thin buf|fer)." n|
|00001f80| 69 6c 5d 29 0a 28 66 73 | 65 74 20 27 66 75 6e 64 |il]).(fs|et 'fund|
|00001f90| 61 6d 65 6e 74 61 6c 2d | 6d 6f 64 65 20 23 5b 6e |amental-|mode #[n|
|00001fa0| 69 6c 20 22 c0 20 87 22 | 20 5b 6b 69 6c 6c 2d 61 |il ". ."| [kill-a|
|00001fb0| 6c 6c 2d 6c 6f 63 61 6c | 2d 76 61 72 69 61 62 6c |ll-local|-variabl|
|00001fc0| 65 73 5d 20 31 20 22 5c | 0a 4d 61 6a 6f 72 20 6d |es] 1 "\|.Major m|
|00001fd0| 6f 64 65 20 6e 6f 74 20 | 73 70 65 63 69 61 6c 69 |ode not |speciali|
|00001fe0| 7a 65 64 20 66 6f 72 20 | 61 6e 79 74 68 69 6e 67 |zed for |anything|
|00001ff0| 20 69 6e 20 70 61 72 74 | 69 63 75 6c 61 72 2e 0a | in part|icular..|
|00002000| 4f 74 68 65 72 20 6d 61 | 6a 6f 72 20 6d 6f 64 65 |Other ma|jor mode|
|00002010| 73 20 61 72 65 20 64 65 | 66 69 6e 65 64 20 62 79 |s are de|fined by|
|00002020| 20 63 6f 6d 70 61 72 69 | 73 6f 6e 20 77 69 74 68 | compari|son with|
|00002030| 20 74 68 69 73 20 6f 6e | 65 2e 22 20 6e 69 6c 5d | this on|e." nil]|
|00002040| 29 0a 28 70 75 74 20 27 | 65 76 61 6c 2d 65 78 70 |).(put '|eval-exp|
|00002050| 72 65 73 73 69 6f 6e 20 | 27 64 69 73 61 62 6c 65 |ression |'disable|
|00002060| 64 20 74 29 0a 28 66 73 | 65 74 20 27 65 76 61 6c |d t).(fs|et 'eval|
|00002070| 2d 65 78 70 72 65 73 73 | 69 6f 6e 20 23 5b 28 65 |-express|ion #[(e|
|00002080| 78 70 72 65 73 73 69 6f | 6e 29 20 22 c0 09 21 5c |xpressio|n) "..!\|
|00002090| 6e 42 12 c3 5c 6e 40 c4 | 5c 22 87 22 20 5b 65 76 |nB..\n@.|\"." [ev|
|000020a0| 61 6c 20 65 78 70 72 65 | 73 73 69 6f 6e 20 76 61 |al expre|ssion va|
|000020b0| 6c 75 65 73 20 70 72 69 | 6e 31 20 74 5d 20 33 20 |lues pri|n1 t] 3 |
|000020c0| 22 5c 0a 45 76 61 6c 75 | 61 74 65 20 45 58 50 52 |"\.Evalu|ate EXPR|
|000020d0| 45 53 53 49 4f 4e 20 61 | 6e 64 20 70 72 69 6e 74 |ESSION a|nd print|
|000020e0| 20 76 61 6c 75 65 20 69 | 6e 20 6d 69 6e 69 62 75 | value i|n minibu|
|000020f0| 66 66 65 72 2e 0a 56 61 | 6c 75 65 20 69 73 20 61 |ffer..Va|lue is a|
|00002100| 6c 73 6f 20 63 6f 6e 73 | 65 64 20 6f 6e 20 74 6f |lso cons|ed on to|
|00002110| 20 66 72 6f 6e 74 20 6f | 66 20 74 68 65 20 76 61 | front o|f the va|
|00002120| 72 69 61 62 6c 65 20 60 | 76 61 6c 75 65 73 27 2e |riable `|values'.|
|00002130| 22 20 28 62 79 74 65 2d | 63 6f 64 65 20 22 c0 c1 |" (byte-|code "..|
|00002140| c2 0b c4 c5 25 43 87 22 | 20 5b 72 65 61 64 2d 66 |....%C."| [read-f|
|00002150| 72 6f 6d 2d 6d 69 6e 69 | 62 75 66 66 65 72 20 22 |rom-mini|buffer "|
|00002160| 45 76 61 6c 3a 20 22 20 | 6e 69 6c 20 72 65 61 64 |Eval: " |nil read|
|00002170| 2d 65 78 70 72 65 73 73 | 69 6f 6e 2d 6d 61 70 20 |-express|ion-map |
|00002180| 74 20 6d 69 6e 69 62 75 | 66 66 65 72 2d 73 65 78 |t minibu|ffer-sex|
|00002190| 70 2d 68 69 73 74 6f 72 | 79 5d 20 36 29 5d 29 0a |p-histor|y] 6)]).|
|000021a0| 28 66 73 65 74 20 27 65 | 64 69 74 2d 61 6e 64 2d |(fset 'e|dit-and-|
|000021b0| 65 76 61 6c 2d 63 6f 6d | 6d 61 6e 64 20 23 5b 28 |eval-com|mand #[(|
|000021c0| 70 72 6f 6d 70 74 20 63 | 6f 6d 6d 61 6e 64 29 20 |prompt c|ommand) |
|000021d0| 22 c0 09 c2 0b 21 0c c5 | c6 25 89 1b 0e 07 40 9a |"....!..|.%....@.|
|000021e0| ac 86 0b 0e 07 42 16 07 | c8 0b 21 29 87 22 20 5b |.....B..|..!)." [|
|000021f0| 72 65 61 64 2d 66 72 6f | 6d 2d 6d 69 6e 69 62 75 |read-fro|m-minibu|
|00002200| 66 66 65 72 20 70 72 6f | 6d 70 74 20 70 72 69 6e |ffer pro|mpt prin|
|00002210| 31 2d 74 6f 2d 73 74 72 | 69 6e 67 20 63 6f 6d 6d |1-to-str|ing comm|
|00002220| 61 6e 64 20 72 65 61 64 | 2d 65 78 70 72 65 73 73 |and read|-express|
|00002230| 69 6f 6e 2d 6d 61 70 20 | 74 20 6d 69 6e 69 62 75 |ion-map |t minibu|
|00002240| 66 66 65 72 2d 73 65 78 | 70 2d 68 69 73 74 6f 72 |ffer-sex|p-histor|
|00002250| 79 20 63 6f 6d 6d 61 6e | 64 2d 68 69 73 74 6f 72 |y comman|d-histor|
|00002260| 79 20 65 76 61 6c 5d 20 | 37 20 22 5c 0a 50 72 6f |y eval] |7 "\.Pro|
|00002270| 6d 70 74 69 6e 67 20 77 | 69 74 68 20 50 52 4f 4d |mpting w|ith PROM|
|00002280| 50 54 2c 20 6c 65 74 20 | 75 73 65 72 20 65 64 69 |PT, let |user edi|
|00002290| 74 20 43 4f 4d 4d 41 4e | 44 20 61 6e 64 20 65 76 |t COMMAN|D and ev|
|000022a0| 61 6c 20 72 65 73 75 6c | 74 2e 0a 43 4f 4d 4d 41 |al resul|t..COMMA|
|000022b0| 4e 44 20 69 73 20 61 20 | 4c 69 73 70 20 65 78 70 |ND is a |Lisp exp|
|000022c0| 72 65 73 73 69 6f 6e 2e | 20 20 4c 65 74 20 75 73 |ression.| Let us|
|000022d0| 65 72 20 65 64 69 74 20 | 74 68 61 74 20 65 78 70 |er edit |that exp|
|000022e0| 72 65 73 73 69 6f 6e 20 | 69 6e 0a 74 68 65 20 6d |ression |in.the m|
|000022f0| 69 6e 69 62 75 66 66 65 | 72 2c 20 74 68 65 6e 20 |inibuffe|r, then |
|00002300| 72 65 61 64 20 61 6e 64 | 20 65 76 61 6c 75 61 74 |read and| evaluat|
|00002310| 65 20 74 68 65 20 72 65 | 73 75 6c 74 2e 22 5d 29 |e the re|sult."])|
|00002320| 0a 28 66 73 65 74 20 27 | 72 65 70 65 61 74 2d 63 |.(fset '|repeat-c|
|00002330| 6f 6d 70 6c 65 78 2d 63 | 6f 6d 6d 61 6e 64 20 23 |omplex-c|ommand #|
|00002340| 5b 28 61 72 67 29 20 22 | 08 53 09 38 08 c2 c3 1c |[(arg) "|.S.8....|
|00002350| 1d 1e 06 89 1e 07 ab a5 | c8 c9 c3 ca cb 8f 0e 0c |........|........|
|00002360| c2 c1 08 42 25 14 09 40 | 3b ab 83 09 41 11 0c 09 |...B%..@|;...A...|
|00002370| 40 9a ac 84 0c 09 42 11 | cd 0c 21 aa 82 ce 20 2c |@.....B.|..!... ,|
|00002380| 87 22 20 5b 61 72 67 20 | 63 6f 6d 6d 61 6e 64 2d |." [arg |command-|
|00002390| 68 69 73 74 6f 72 79 20 | 74 20 6e 69 6c 20 6e 65 |history |t nil ne|
|000023a0| 77 63 6d 64 20 6d 69 6e | 69 62 75 66 66 65 72 2d |wcmd min|ibuffer-|
|000023b0| 68 69 73 74 6f 72 79 2d | 73 65 78 70 2d 66 6c 61 |history-|sexp-fla|
|000023c0| 67 20 6d 69 6e 69 62 75 | 66 66 65 72 2d 68 69 73 |g minibu|ffer-his|
|000023d0| 74 6f 72 79 2d 70 6f 73 | 69 74 69 6f 6e 20 65 6c |tory-pos|ition el|
|000023e0| 74 20 72 65 61 64 2d 66 | 72 6f 6d 2d 6d 69 6e 69 |t read-f|rom-mini|
|000023f0| 62 75 66 66 65 72 20 22 | 52 65 64 6f 3a 20 22 20 |buffer "|Redo: " |
|00002400| 28 62 79 74 65 2d 63 6f | 64 65 20 22 c0 19 c2 0b |(byte-co|de "....|
|00002410| 21 29 87 22 20 5b 74 20 | 70 72 69 6e 74 2d 72 65 |!)." [t |print-re|
|00002420| 61 64 61 62 6c 79 20 70 | 72 69 6e 31 2d 74 6f 2d |adably p|rin1-to-|
|00002430| 73 74 72 69 6e 67 20 65 | 6c 74 5d 20 32 29 20 28 |string e|lt] 2) (|
|00002440| 28 65 72 72 6f 72 20 28 | 70 72 69 6e 31 2d 74 6f |(error (|prin1-to|
|00002450| 2d 73 74 72 69 6e 67 20 | 65 6c 74 29 29 29 20 72 |-string |elt))) r|
|00002460| 65 61 64 2d 65 78 70 72 | 65 73 73 69 6f 6e 2d 6d |ead-expr|ession-m|
|00002470| 61 70 20 65 76 61 6c 20 | 64 69 6e 67 5d 20 38 20 |ap eval |ding] 8 |
|00002480| 22 5c 0a 45 64 69 74 20 | 61 6e 64 20 72 65 2d 65 |"\.Edit |and re-e|
|00002490| 76 61 6c 75 61 74 65 20 | 6c 61 73 74 20 63 6f 6d |valuate |last com|
|000024a0| 70 6c 65 78 20 63 6f 6d | 6d 61 6e 64 2c 20 6f 72 |plex com|mand, or|
|000024b0| 20 41 52 47 74 68 20 66 | 72 6f 6d 20 6c 61 73 74 | ARGth f|rom last|
|000024c0| 2e 0a 41 20 63 6f 6d 70 | 6c 65 78 20 63 6f 6d 6d |..A comp|lex comm|
|000024d0| 61 6e 64 20 69 73 20 6f | 6e 65 20 77 68 69 63 68 |and is o|ne which|
|000024e0| 20 75 73 65 64 20 74 68 | 65 20 6d 69 6e 69 62 75 | used th|e minibu|
|000024f0| 66 66 65 72 2e 0a 54 68 | 65 20 63 6f 6d 6d 61 6e |ffer..Th|e comman|
|00002500| 64 20 69 73 20 70 6c 61 | 63 65 64 20 69 6e 20 74 |d is pla|ced in t|
|00002510| 68 65 20 6d 69 6e 69 62 | 75 66 66 65 72 20 61 73 |he minib|uffer as|
|00002520| 20 61 20 4c 69 73 70 20 | 66 6f 72 6d 20 66 6f 72 | a Lisp |form for|
|00002530| 20 65 64 69 74 69 6e 67 | 2e 0a 54 68 65 20 72 65 | editing|..The re|
|00002540| 73 75 6c 74 20 69 73 20 | 65 78 65 63 75 74 65 64 |sult is |executed|
|00002550| 2c 20 72 65 70 65 61 74 | 69 6e 67 20 74 68 65 20 |, repeat|ing the |
|00002560| 63 6f 6d 6d 61 6e 64 20 | 61 73 20 63 68 61 6e 67 |command |as chang|
|00002570| 65 64 2e 0a 49 66 20 74 | 68 65 20 63 6f 6d 6d 61 |ed..If t|he comma|
|00002580| 6e 64 20 68 61 73 20 62 | 65 65 6e 20 63 68 61 6e |nd has b|een chan|
|00002590| 67 65 64 20 6f 72 20 69 | 73 20 6e 6f 74 20 74 68 |ged or i|s not th|
|000025a0| 65 20 6d 6f 73 74 20 72 | 65 63 65 6e 74 20 70 72 |e most r|ecent pr|
|000025b0| 65 76 69 6f 75 73 20 63 | 6f 6d 6d 61 6e 64 0a 69 |evious c|ommand.i|
|000025c0| 74 20 69 73 20 61 64 64 | 65 64 20 74 6f 20 74 68 |t is add|ed to th|
|000025d0| 65 20 66 72 6f 6e 74 20 | 6f 66 20 74 68 65 20 63 |e front |of the c|
|000025e0| 6f 6d 6d 61 6e 64 20 68 | 69 73 74 6f 72 79 2e 0a |ommand h|istory..|
|000025f0| 59 6f 75 20 63 61 6e 20 | 75 73 65 20 74 68 65 20 |You can |use the |
|00002600| 6d 69 6e 69 62 75 66 66 | 65 72 20 68 69 73 74 6f |minibuff|er histo|
|00002610| 72 79 20 63 6f 6d 6d 61 | 6e 64 73 20 5c 5c 3c 6d |ry comma|nds \\<m|
|00002620| 69 6e 69 62 75 66 66 65 | 72 2d 6c 6f 63 61 6c 2d |inibuffe|r-local-|
|00002630| 6d 61 70 3e 5c 5c 5b 6e | 65 78 74 2d 68 69 73 74 |map>\\[n|ext-hist|
|00002640| 6f 72 79 2d 65 6c 65 6d | 65 6e 74 5d 20 61 6e 64 |ory-elem|ent] and|
|00002650| 20 5c 5c 5b 70 72 65 76 | 69 6f 75 73 2d 68 69 73 | \\[prev|ious-his|
|00002660| 74 6f 72 79 2d 65 6c 65 | 6d 65 6e 74 5d 0a 74 6f |tory-ele|ment].to|
|00002670| 20 67 65 74 20 64 69 66 | 66 65 72 65 6e 74 20 63 | get dif|ferent c|
|00002680| 6f 6d 6d 61 6e 64 73 20 | 74 6f 20 65 64 69 74 20 |ommands |to edit |
|00002690| 61 6e 64 20 72 65 73 75 | 62 6d 69 74 2e 22 20 22 |and resu|bmit." "|
|000026a0| 70 22 5d 29 0a 28 66 73 | 65 74 20 27 67 6f 74 6f |p"]).(fs|et 'goto|
|000026b0| 2d 6c 69 6e 65 20 23 5b | 28 61 72 67 29 20 22 8c |-line #[|(arg) ".|
|000026c0| 7e 88 c0 62 88 09 c2 3d | ab 8a c3 c4 c5 c6 0e 07 |~..b...=|........|
|000026d0| 53 24 aa 84 0e 07 53 79 | 29 87 22 20 5b 31 20 73 |S$....Sy|)." [1 s|
|000026e0| 65 6c 65 63 74 69 76 65 | 2d 64 69 73 70 6c 61 79 |elective|-display|
|000026f0| 20 74 20 72 65 2d 73 65 | 61 72 63 68 2d 66 6f 72 | t re-se|arch-for|
|00002700| 77 61 72 64 20 22 5b 5c | 6e 0d 5d 22 20 6e 69 6c |ward "[\|n.]" nil|
|00002710| 20 65 6e 64 20 61 72 67 | 5d 20 35 20 22 5c 0a 47 | end arg|] 5 "\.G|
|00002720| 6f 74 6f 20 6c 69 6e 65 | 20 41 52 47 2c 20 63 6f |oto line| ARG, co|
|00002730| 75 6e 74 69 6e 67 20 66 | 72 6f 6d 20 6c 69 6e 65 |unting f|rom line|
|00002740| 20 31 20 61 74 20 62 65 | 67 69 6e 6e 69 6e 67 20 | 1 at be|ginning |
|00002750| 6f 66 20 62 75 66 66 65 | 72 2e 22 20 22 4e 47 6f |of buffe|r." "NGo|
|00002760| 74 6f 20 6c 69 6e 65 3a | 20 22 5d 29 0a 28 66 73 |to line:| "]).(fs|
|00002770| 65 74 20 27 61 64 76 65 | 72 74 69 73 65 64 2d 75 |et 'adve|rtised-u|
|00002780| 6e 64 6f 20 27 75 6e 64 | 6f 29 0a 28 66 73 65 74 |ndo 'und|o).(fset|
|00002790| 20 27 75 6e 64 6f 20 23 | 5b 28 26 6f 70 74 69 6f | 'undo #|[(&optio|
|000027a0| 6e 61 6c 20 61 72 67 29 | 20 22 c0 20 19 c2 c3 21 |nal arg)| ". ...!|
|000027b0| 88 0c c5 3d ac 87 c6 20 | 88 c7 c8 21 88 c5 16 09 |...=... |...!....|
|000027c0| c7 0e 5c 6e ae 81 c8 21 | 88 09 ad 87 c0 20 3f ad |..\n...!|..... ?.|
|000027d0| 82 cb 20 29 87 22 20 5b | 62 75 66 66 65 72 2d 6d |.. )." [|buffer-m|
|000027e0| 6f 64 69 66 69 65 64 2d | 70 20 6d 6f 64 69 66 69 |odified-|p modifi|
|000027f0| 65 64 20 6d 65 73 73 61 | 67 65 20 22 55 6e 64 6f |ed messa|ge "Undo|
|00002800| 21 22 20 6c 61 73 74 2d | 63 6f 6d 6d 61 6e 64 20 |!" last-|command |
|00002810| 75 6e 64 6f 20 75 6e 64 | 6f 2d 73 74 61 72 74 20 |undo und|o-start |
|00002820| 75 6e 64 6f 2d 6d 6f 72 | 65 20 31 20 74 68 69 73 |undo-mor|e 1 this|
|00002830| 2d 63 6f 6d 6d 61 6e 64 | 20 61 72 67 20 64 65 6c |-command| arg del|
|00002840| 65 74 65 2d 61 75 74 6f | 2d 73 61 76 65 2d 66 69 |ete-auto|-save-fi|
|00002850| 6c 65 2d 69 66 2d 6e 65 | 63 65 73 73 61 72 79 5d |le-if-ne|cessary]|
|00002860| 20 32 20 22 5c 0a 55 6e | 64 6f 20 73 6f 6d 65 20 | 2 "\.Un|do some |
|00002870| 70 72 65 76 69 6f 75 73 | 20 63 68 61 6e 67 65 73 |previous| changes|
|00002880| 2e 0a 52 65 70 65 61 74 | 20 74 68 69 73 20 63 6f |..Repeat| this co|
|00002890| 6d 6d 61 6e 64 20 74 6f | 20 75 6e 64 6f 20 6d 6f |mmand to| undo mo|
|000028a0| 72 65 20 63 68 61 6e 67 | 65 73 2e 0a 41 20 6e 75 |re chang|es..A nu|
|000028b0| 6d 65 72 69 63 20 61 72 | 67 75 6d 65 6e 74 20 73 |meric ar|gument s|
|000028c0| 65 72 76 65 73 20 61 73 | 20 61 20 72 65 70 65 61 |erves as| a repea|
|000028d0| 74 20 63 6f 75 6e 74 2e | 22 20 22 2a 70 22 5d 29 |t count.|" "*p"])|
|000028e0| 0a 28 66 73 65 74 20 27 | 75 6e 64 6f 2d 73 74 61 |.(fset '|undo-sta|
|000028f0| 72 74 20 23 5b 6e 69 6c | 20 22 08 c1 3d ab 84 c2 |rt #[nil| "..=...|
|00002900| c3 21 88 08 89 14 87 22 | 20 5b 62 75 66 66 65 72 |.!....."| [buffer|
|00002910| 2d 75 6e 64 6f 2d 6c 69 | 73 74 20 74 20 65 72 72 |-undo-li|st t err|
|00002920| 6f 72 20 22 4e 6f 20 75 | 6e 64 6f 20 69 6e 66 6f |or "No u|ndo info|
|00002930| 72 6d 61 74 69 6f 6e 20 | 69 6e 20 74 68 69 73 20 |rmation |in this |
|00002940| 62 75 66 66 65 72 22 20 | 70 65 6e 64 69 6e 67 2d |buffer" |pending-|
|00002950| 75 6e 64 6f 2d 6c 69 73 | 74 5d 20 32 20 22 5c 0a |undo-lis|t] 2 "\.|
|00002960| 4d 6f 76 65 20 75 6e 64 | 6f 2d 70 6f 69 6e 74 65 |Move und|o-pointe|
|00002970| 72 20 74 6f 20 66 72 6f | 6e 74 20 6f 66 20 75 6e |r to fro|nt of un|
|00002980| 64 6f 20 72 65 63 6f 72 | 64 73 2e 0a 54 68 65 20 |do recor|ds..The |
|00002990| 6e 65 78 74 20 63 61 6c | 6c 20 74 6f 20 75 6e 64 |next cal|l to und|
|000029a0| 6f 2d 6d 6f 72 65 20 77 | 69 6c 6c 20 75 6e 64 6f |o-more w|ill undo|
|000029b0| 20 74 68 65 20 6d 6f 73 | 74 20 72 65 63 65 6e 74 | the mos|t recent|
|000029c0| 6c 79 20 6d 61 64 65 20 | 63 68 61 6e 67 65 2e 22 |ly made |change."|
|000029d0| 5d 29 0a 28 66 73 65 74 | 20 27 75 6e 64 6f 2d 6d |]).(fset| 'undo-m|
|000029e0| 6f 72 65 20 23 5b 28 63 | 6f 75 6e 74 29 20 22 08 |ore #[(c|ount) ".|
|000029f0| ac 84 c1 c2 21 88 c3 0c | 08 5c 22 89 10 87 22 20 |....!...|.\"..." |
|00002a00| 5b 70 65 6e 64 69 6e 67 | 2d 75 6e 64 6f 2d 6c 69 |[pending|-undo-li|
|00002a10| 73 74 20 65 72 72 6f 72 | 20 22 4e 6f 20 66 75 72 |st error| "No fur|
|00002a20| 74 68 65 72 20 75 6e 64 | 6f 20 69 6e 66 6f 72 6d |ther und|o inform|
|00002a30| 61 74 69 6f 6e 22 20 70 | 72 69 6d 69 74 69 76 65 |ation" p|rimitive|
|00002a40| 2d 75 6e 64 6f 20 63 6f | 75 6e 74 5d 20 33 20 22 |-undo co|unt] 3 "|
|00002a50| 5c 0a 55 6e 64 6f 20 62 | 61 63 6b 20 4e 20 75 6e |\.Undo b|ack N un|
|00002a60| 64 6f 2d 62 6f 75 6e 64 | 61 72 69 65 73 20 62 65 |do-bound|aries be|
|00002a70| 79 6f 6e 64 20 77 68 61 | 74 20 77 61 73 20 61 6c |yond wha|t was al|
|00002a80| 72 65 61 64 79 20 75 6e | 64 6f 6e 65 20 72 65 63 |ready un|done rec|
|00002a90| 65 6e 74 6c 79 2e 0a 43 | 61 6c 6c 20 75 6e 64 6f |ently..C|all undo|
|00002aa0| 2d 73 74 61 72 74 20 74 | 6f 20 67 65 74 20 72 65 |-start t|o get re|
|00002ab0| 61 64 79 20 74 6f 20 75 | 6e 64 6f 20 72 65 63 65 |ady to u|ndo rece|
|00002ac0| 6e 74 20 63 68 61 6e 67 | 65 73 2c 0a 74 68 65 6e |nt chang|es,.then|
|00002ad0| 20 63 61 6c 6c 20 75 6e | 64 6f 2d 6d 6f 72 65 20 | call un|do-more |
|00002ae0| 6f 6e 65 20 6f 72 20 6d | 6f 72 65 20 74 69 6d 65 |one or m|ore time|
|00002af0| 73 20 74 6f 20 75 6e 64 | 6f 20 74 68 65 6d 2e 22 |s to und|o them."|
|00002b00| 5d 29 0a 28 62 79 74 65 | 2d 63 6f 64 65 20 22 c0 |]).(byte|-code ".|
|00002b10| c1 21 ac 82 c2 11 c0 c3 | 21 ac 82 c2 13 c0 87 22 |.!......|!......"|
|00002b20| 20 5b 62 6f 75 6e 64 70 | 20 6c 61 73 74 2d 73 68 | [boundp| last-sh|
|00002b30| 65 6c 6c 2d 63 6f 6d 6d | 61 6e 64 20 22 22 20 6c |ell-comm|and "" l|
|00002b40| 61 73 74 2d 73 68 65 6c | 6c 2d 63 6f 6d 6d 61 6e |ast-shel|l-comman|
|00002b50| 64 2d 6f 6e 2d 72 65 67 | 69 6f 6e 5d 20 32 29 0a |d-on-reg|ion] 2).|
|00002b60| 28 66 73 65 74 20 27 73 | 68 65 6c 6c 2d 63 6f 6d |(fset 's|hell-com|
|00002b70| 6d 61 6e 64 20 23 5b 28 | 63 6f 6d 6d 61 6e 64 20 |mand #[(|command |
|00002b80| 26 6f 70 74 69 6f 6e 61 | 6c 20 66 6c 61 67 29 20 |&optiona|l flag) |
|00002b90| 22 08 ab 95 c1 20 88 c2 | 20 88 c3 0c c5 c6 c5 c7 |".... ..| .......|
|00002ba0| 0e 08 26 06 88 c9 c6 21 | 87 ca 20 1e 0b cc 8e cd |..&....!|.. .....|
|00002bb0| ce 0e 08 5c 22 ab 8e cf | d0 21 88 d0 0e 08 d1 89 |...\"...|.!......|
|00002bc0| 94 4f 21 aa 87 d2 60 60 | 0e 08 c5 24 2a 87 22 20 |.O!...``|...$*." |
|00002bd0| 5b 66 6c 61 67 20 62 61 | 72 66 2d 69 66 2d 62 75 |[flag ba|rf-if-bu|
|00002be0| 66 66 65 72 2d 72 65 61 | 64 2d 6f 6e 6c 79 20 70 |ffer-rea|d-only p|
|00002bf0| 75 73 68 2d 6d 61 72 6b | 20 63 61 6c 6c 2d 70 72 |ush-mark| call-pr|
|00002c00| 6f 63 65 73 73 20 73 68 | 65 6c 6c 2d 66 69 6c 65 |ocess sh|ell-file|
|00002c10| 2d 6e 61 6d 65 20 6e 69 | 6c 20 74 20 22 2d 63 22 |-name ni|l t "-c"|
|00002c20| 20 63 6f 6d 6d 61 6e 64 | 20 65 78 63 68 61 6e 67 | command| exchang|
|00002c30| 65 2d 70 6f 69 6e 74 2d | 61 6e 64 2d 6d 61 72 6b |e-point-|and-mark|
|00002c40| 20 6d 61 74 63 68 2d 64 | 61 74 61 20 64 61 74 61 | match-d|ata data|
|00002c50| 20 28 28 73 74 6f 72 65 | 2d 6d 61 74 63 68 2d 64 | ((store|-match-d|
|00002c60| 61 74 61 20 64 61 74 61 | 29 29 20 73 74 72 69 6e |ata data|)) strin|
|00002c70| 67 2d 6d 61 74 63 68 20 | 22 5b 20 09 5d 2a 26 5b |g-match |"[ .]*&[|
|00002c80| 20 09 5d 2a 24 22 20 72 | 65 71 75 69 72 65 20 62 | .]*$" r|equire b|
|00002c90| 61 63 6b 67 72 6f 75 6e | 64 20 30 20 73 68 65 6c |ackgroun|d 0 shel|
|00002ca0| 6c 2d 63 6f 6d 6d 61 6e | 64 2d 6f 6e 2d 72 65 67 |l-comman|d-on-reg|
|00002cb0| 69 6f 6e 5d 20 37 20 22 | 5c 0a 45 78 65 63 75 74 |ion] 7 "|\.Execut|
|00002cc0| 65 20 73 74 72 69 6e 67 | 20 43 4f 4d 4d 41 4e 44 |e string| COMMAND|
|00002cd0| 20 69 6e 20 69 6e 66 65 | 72 69 6f 72 20 73 68 65 | in infe|rior she|
|00002ce0| 6c 6c 3b 20 64 69 73 70 | 6c 61 79 20 6f 75 74 70 |ll; disp|lay outp|
|00002cf0| 75 74 2c 20 69 66 20 61 | 6e 79 2e 0a 49 66 20 43 |ut, if a|ny..If C|
|00002d00| 4f 4d 4d 41 4e 44 20 65 | 6e 64 73 20 69 6e 20 61 |OMMAND e|nds in a|
|00002d10| 6d 70 65 72 73 61 6e 64 | 2c 20 65 78 65 63 75 74 |mpersand|, execut|
|00002d20| 65 20 69 74 20 61 73 79 | 6e 63 68 72 6f 6e 6f 75 |e it asy|nchronou|
|00002d30| 73 6c 79 2e 0a 20 0a 4f | 70 74 69 6f 6e 61 6c 20 |sly.. .O|ptional |
|00002d40| 73 65 63 6f 6e 64 20 61 | 72 67 20 6e 6f 6e 2d 6e |second a|rg non-n|
|00002d50| 69 6c 20 28 70 72 65 66 | 69 78 20 61 72 67 2c 20 |il (pref|ix arg, |
|00002d60| 69 66 20 69 6e 74 65 72 | 61 63 74 69 76 65 29 0a |if inter|active).|
|00002d70| 6d 65 61 6e 73 20 69 6e | 73 65 72 74 20 6f 75 74 |means in|sert out|
|00002d80| 70 75 74 20 69 6e 20 63 | 75 72 72 65 6e 74 20 62 |put in c|urrent b|
|00002d90| 75 66 66 65 72 20 61 66 | 74 65 72 20 70 6f 69 6e |uffer af|ter poin|
|00002da0| 74 20 28 6c 65 61 76 65 | 20 6d 61 72 6b 20 61 66 |t (leave| mark af|
|00002db0| 74 65 72 20 69 74 29 2e | 0a 54 68 69 73 20 63 61 |ter it).|.This ca|
|00002dc0| 6e 6e 6f 74 20 62 65 20 | 64 6f 6e 65 20 61 73 79 |nnot be |done asy|
|00002dd0| 6e 63 68 72 6f 6e 6f 75 | 73 6c 79 2e 22 20 28 62 |nchronou|sly." (b|
|00002de0| 79 74 65 2d 63 6f 64 65 | 20 22 c0 c1 5c 6e 5c 22 |yte-code| "..\n\"|
|00002df0| 0b 44 87 22 20 5b 72 65 | 61 64 2d 73 68 65 6c 6c |.D." [re|ad-shell|
|00002e00| 2d 63 6f 6d 6d 61 6e 64 | 20 22 53 68 65 6c 6c 20 |-command| "Shell |
|00002e10| 63 6f 6d 6d 61 6e 64 3a | 20 22 20 6c 61 73 74 2d |command:| " last-|
|00002e20| 73 68 65 6c 6c 2d 63 6f | 6d 6d 61 6e 64 20 63 75 |shell-co|mmand cu|
|00002e30| 72 72 65 6e 74 2d 70 72 | 65 66 69 78 2d 61 72 67 |rrent-pr|efix-arg|
|00002e40| 5d 20 33 29 5d 29 0a 28 | 66 73 65 74 20 27 73 68 |] 3)]).(|fset 'sh|
|00002e50| 65 6c 6c 2d 63 6f 6d 6d | 61 6e 64 2d 6f 6e 2d 72 |ell-comm|and-on-r|
|00002e60| 65 67 69 6f 6e 20 23 5b | 28 73 74 61 72 74 20 65 |egion #[|(start e|
|00002e70| 6e 64 20 63 6f 6d 6d 61 | 6e 64 20 26 6f 70 74 69 |nd comma|nd &opti|
|00002e80| 6f 6e 61 6c 20 66 6c 61 | 67 20 69 6e 74 65 72 61 |onal fla|g intera|
|00002e90| 63 74 69 76 65 29 20 22 | 08 ab b2 09 ad 84 60 c2 |ctive) "|......`.|
|00002ea0| 20 57 1b 09 ab 83 c4 20 | 88 c5 0e 06 0e 07 0e 08 | W..... |........|
|00002eb0| c9 89 ca cb 0e 0c 26 08 | 88 cd ce 21 ab 84 cf ce |......&.|...!....|
|00002ec0| 21 88 09 ad 86 0b ad 83 | d0 c9 21 29 87 d1 ce 21 |!.......|..!)...!|
|00002ed0| 1e 12 8a 0e 12 71 88 d3 | 20 88 29 0e 12 70 3d ab |.....q..| .)..p=.|
|00002ee0| 86 d4 16 06 d4 16 07 c5 | 0e 06 0e 07 0e 08 ca 0e |........|........|
|00002ef0| 12 ca cb 0e 0c 26 08 88 | 8a 0e 12 71 88 d5 20 d6 |.....&..|...q.. .|
|00002f00| 55 ab 83 d6 aa 84 d7 65 | 64 5c 22 29 89 1e 18 d6 |U......e|d\")....|
|00002f10| 55 ab 89 d9 da 21 88 cf | ce 21 aa a1 0e 18 d4 55 |U....!..|.!.....U|
|00002f20| ab 94 d9 db 8a 0e 12 71 | 88 65 62 88 60 ca 7f 88 |.......q|.eb.`...|
|00002f30| 60 7b 29 5c 22 aa 87 dc | dd 0e 12 21 d4 5c 22 2a |`{)\"...|...!.\"*|
|00002f40| 87 22 20 5b 66 6c 61 67 | 20 69 6e 74 65 72 61 63 |." [flag| interac|
|00002f50| 74 69 76 65 20 6d 61 72 | 6b 20 73 77 61 70 20 70 |tive mar|k swap p|
|00002f60| 75 73 68 2d 6d 61 72 6b | 20 63 61 6c 6c 2d 70 72 |ush-mark| call-pr|
|00002f70| 6f 63 65 73 73 2d 72 65 | 67 69 6f 6e 20 73 74 61 |ocess-re|gion sta|
|00002f80| 72 74 20 65 6e 64 20 73 | 68 65 6c 6c 2d 66 69 6c |rt end s|hell-fil|
|00002f90| 65 2d 6e 61 6d 65 20 74 | 20 6e 69 6c 20 22 2d 63 |e-name t| nil "-c|
|00002fa0| 22 20 63 6f 6d 6d 61 6e | 64 20 67 65 74 2d 62 75 |" comman|d get-bu|
|00002fb0| 66 66 65 72 20 22 2a 53 | 68 65 6c 6c 20 43 6f 6d |ffer "*S|hell Com|
|00002fc0| 6d 61 6e 64 20 4f 75 74 | 70 75 74 2a 22 20 6b 69 |mand Out|put*" ki|
|00002fd0| 6c 6c 2d 62 75 66 66 65 | 72 20 65 78 63 68 61 6e |ll-buffe|r exchan|
|00002fe0| 67 65 2d 70 6f 69 6e 74 | 2d 61 6e 64 2d 6d 61 72 |ge-point|-and-mar|
|00002ff0| 6b 20 67 65 74 2d 62 75 | 66 66 65 72 2d 63 72 65 |k get-bu|ffer-cre|
|00003000| 61 74 65 20 62 75 66 66 | 65 72 20 65 72 61 73 65 |ate buff|er erase|
|00003010| 2d 62 75 66 66 65 72 20 | 31 20 62 75 66 66 65 72 |-buffer |1 buffer|
|00003020| 2d 73 69 7a 65 20 30 20 | 63 6f 75 6e 74 2d 6c 69 |-size 0 |count-li|
|00003030| 6e 65 73 20 6c 69 6e 65 | 73 20 6d 65 73 73 61 67 |nes line|s messag|
|00003040| 65 20 22 28 53 68 65 6c | 6c 20 63 6f 6d 6d 61 6e |e "(Shel|l comman|
|00003050| 64 20 63 6f 6d 70 6c 65 | 74 65 64 20 77 69 74 68 |d comple|ted with|
|00003060| 20 6e 6f 20 6f 75 74 70 | 75 74 29 22 20 22 25 73 | no outp|ut)" "%s|
|00003070| 22 20 73 65 74 2d 77 69 | 6e 64 6f 77 2d 73 74 61 |" set-wi|ndow-sta|
|00003080| 72 74 20 64 69 73 70 6c | 61 79 2d 62 75 66 66 65 |rt displ|ay-buffe|
|00003090| 72 5d 20 31 30 20 22 5c | 0a 45 78 65 63 75 74 65 |r] 10 "\|.Execute|
|000030a0| 20 73 74 72 69 6e 67 20 | 43 4f 4d 4d 41 4e 44 20 | string |COMMAND |
|000030b0| 69 6e 20 69 6e 66 65 72 | 69 6f 72 20 73 68 65 6c |in infer|ior shel|
|000030c0| 6c 20 77 69 74 68 20 72 | 65 67 69 6f 6e 20 61 73 |l with r|egion as|
|000030d0| 20 69 6e 70 75 74 2e 0a | 4e 6f 72 6d 61 6c 6c 79 | input..|Normally|
|000030e0| 20 64 69 73 70 6c 61 79 | 20 6f 75 74 70 75 74 20 | display| output |
|000030f0| 28 69 66 20 61 6e 79 29 | 20 69 6e 20 74 65 6d 70 |(if any)| in temp|
|00003100| 20 62 75 66 66 65 72 20 | 60 2a 53 68 65 6c 6c 20 | buffer |`*Shell |
|00003110| 43 6f 6d 6d 61 6e 64 20 | 4f 75 74 70 75 74 2a 27 |Command |Output*'|
|00003120| 3b 0a 50 72 65 66 69 78 | 20 61 72 67 20 6d 65 61 |;.Prefix| arg mea|
|00003130| 6e 73 20 72 65 70 6c 61 | 63 65 20 74 68 65 20 72 |ns repla|ce the r|
|00003140| 65 67 69 6f 6e 20 77 69 | 74 68 20 69 74 2e 0a 4e |egion wi|th it..N|
|00003150| 6f 6e 69 6e 74 65 72 61 | 63 74 69 76 65 20 61 72 |onintera|ctive ar|
|00003160| 67 73 20 61 72 65 20 53 | 54 41 52 54 2c 20 45 4e |gs are S|TART, EN|
|00003170| 44 2c 20 43 4f 4d 4d 41 | 4e 44 2c 20 46 4c 41 47 |D, COMMA|ND, FLAG|
|00003180| 2e 0a 4e 6f 6e 69 6e 74 | 65 72 61 63 74 69 76 65 |..Nonint|eractive|
|00003190| 6c 79 20 46 4c 41 47 20 | 6d 65 61 6e 73 20 69 6e |ly FLAG |means in|
|000031a0| 73 65 72 74 20 6f 75 74 | 70 75 74 20 69 6e 20 70 |sert out|put in p|
|000031b0| 6c 61 63 65 20 6f 66 20 | 74 65 78 74 20 66 72 6f |lace of |text fro|
|000031c0| 6d 20 53 54 41 52 54 20 | 74 6f 20 45 4e 44 2c 0a |m START |to END,.|
|000031d0| 61 6e 64 20 70 75 74 20 | 70 6f 69 6e 74 20 61 74 |and put |point at|
|000031e0| 20 74 68 65 20 65 6e 64 | 2c 20 62 75 74 20 64 6f | the end|, but do|
|000031f0| 6e 27 74 20 61 6c 74 65 | 72 20 74 68 65 20 6d 61 |n't alte|r the ma|
|00003200| 72 6b 2e 0a 0a 49 66 20 | 74 68 65 20 6f 75 74 70 |rk...If |the outp|
|00003210| 75 74 20 69 73 20 6f 6e | 65 20 6c 69 6e 65 2c 20 |ut is on|e line, |
|00003220| 69 74 20 69 73 20 64 69 | 73 70 6c 61 79 65 64 20 |it is di|splayed |
|00003230| 69 6e 20 74 68 65 20 65 | 63 68 6f 20 61 72 65 61 |in the e|cho area|
|00003240| 2c 0a 62 75 74 20 69 74 | 20 69 73 20 6e 6f 6e 65 |,.but it| is none|
|00003250| 74 68 65 6c 65 73 73 20 | 61 76 61 69 6c 61 62 6c |theless |availabl|
|00003260| 65 20 69 6e 20 62 75 66 | 66 65 72 20 60 2a 53 68 |e in buf|fer `*Sh|
|00003270| 65 6c 6c 20 43 6f 6d 6d | 61 6e 64 20 4f 75 74 70 |ell Comm|and Outp|
|00003280| 75 74 2a 27 0a 65 76 65 | 6e 20 74 68 6f 75 67 68 |ut*'.eve|n though|
|00003290| 20 74 68 61 74 20 62 75 | 66 66 65 72 20 69 73 20 | that bu|ffer is |
|000032a0| 6e 6f 74 20 61 75 74 6f | 6d 61 74 69 63 61 6c 6c |not auto|maticall|
|000032b0| 79 20 64 69 73 70 6c 61 | 79 65 64 2e 20 20 49 66 |y displa|yed. If|
|000032c0| 20 74 68 65 72 65 20 69 | 73 20 6e 6f 20 6f 75 74 | there i|s no out|
|000032d0| 70 75 74 0a 6f 72 20 6f | 75 74 70 75 74 20 69 73 |put.or o|utput is|
|000032e0| 20 69 6e 73 65 72 74 65 | 64 20 69 6e 20 74 68 65 | inserte|d in the|
|000032f0| 20 63 75 72 72 65 6e 74 | 20 62 75 66 66 65 72 20 | current| buffer |
|00003300| 74 68 65 6e 20 60 2a 53 | 68 65 6c 6c 20 43 6f 6d |then `*S|hell Com|
|00003310| 6d 61 6e 64 20 4f 75 74 | 70 75 74 2a 27 20 69 73 |mand Out|put*' is|
|00003320| 0a 64 65 6c 65 74 65 64 | 2e 22 20 28 62 79 74 65 |.deleted|." (byte|
|00003330| 2d 63 6f 64 65 20 22 60 | c0 20 5e 60 c0 20 5d c1 |-code "`|. ^`. ].|
|00003340| c2 0b 5c 22 0c c5 0c 21 | af 05 87 22 20 5b 6d 61 |..\"...!|..." [ma|
|00003350| 72 6b 20 72 65 61 64 2d | 73 68 65 6c 6c 2d 63 6f |rk read-|shell-co|
|00003360| 6d 6d 61 6e 64 20 22 53 | 68 65 6c 6c 20 63 6f 6d |mmand "S|hell com|
|00003370| 6d 61 6e 64 20 6f 6e 20 | 72 65 67 69 6f 6e 3a 20 |mand on |region: |
|00003380| 22 20 6c 61 73 74 2d 73 | 68 65 6c 6c 2d 63 6f 6d |" last-s|hell-com|
|00003390| 6d 61 6e 64 2d 6f 6e 2d | 72 65 67 69 6f 6e 20 63 |mand-on-|region c|
|000033a0| 75 72 72 65 6e 74 2d 70 | 72 65 66 69 78 2d 61 72 |urrent-p|refix-ar|
|000033b0| 67 20 70 72 65 66 69 78 | 2d 6e 75 6d 65 72 69 63 |g prefix|-numeric|
|000033c0| 2d 76 61 6c 75 65 5d 20 | 36 29 5d 29 0a 28 66 73 |-value] |6)]).(fs|
|000033d0| 65 74 20 27 75 6e 69 76 | 65 72 73 61 6c 2d 61 72 |et 'univ|ersal-ar|
|000033e0| 67 75 6d 65 6e 74 20 23 | 5b 6e 69 6c 20 22 c0 19 |gument #|[nil "..|
|000033f0| 5c 6e 1b c4 20 1d 0b c6 | 0d 21 9a ab 86 09 c0 5f |\n.. ...|.!....._|
|00003400| 11 aa 73 c7 0d 09 c8 23 | 2b 87 22 20 5b 34 20 63 |..s....#|+." [4 c|
|00003410| 2d 75 20 6c 61 73 74 2d | 63 6f 6d 6d 61 6e 64 2d |-u last-|command-|
|00003420| 65 76 65 6e 74 20 73 74 | 61 72 74 2d 63 68 61 72 |event st|art-char|
|00003430| 20 61 6c 6c 6f 63 61 74 | 65 2d 65 76 65 6e 74 20 | allocat|e-event |
|00003440| 65 76 65 6e 74 20 6e 65 | 78 74 2d 63 6f 6d 6d 61 |event ne|xt-comma|
|00003450| 6e 64 2d 65 76 65 6e 74 | 20 70 72 65 66 69 78 2d |nd-event| prefix-|
|00003460| 61 72 67 2d 69 6e 74 65 | 72 6e 61 6c 20 6e 69 6c |arg-inte|rnal nil|
|00003470| 5d 20 34 20 22 5c 0a 42 | 65 67 69 6e 20 61 20 6e |] 4 "\.B|egin a n|
|00003480| 75 6d 65 72 69 63 20 61 | 72 67 75 6d 65 6e 74 20 |umeric a|rgument |
|00003490| 66 6f 72 20 74 68 65 20 | 66 6f 6c 6c 6f 77 69 6e |for the |followin|
|000034a0| 67 20 63 6f 6d 6d 61 6e | 64 2e 0a 44 69 67 69 74 |g comman|d..Digit|
|000034b0| 73 20 6f 72 20 6d 69 6e | 75 73 20 73 69 67 6e 20 |s or min|us sign |
|000034c0| 66 6f 6c 6c 6f 77 69 6e | 67 20 74 68 69 73 20 63 |followin|g this c|
|000034d0| 6f 6d 6d 61 6e 64 20 6d | 61 6b 65 20 75 70 20 74 |ommand m|ake up t|
|000034e0| 68 65 20 6e 75 6d 65 72 | 69 63 20 61 72 67 75 6d |he numer|ic argum|
|000034f0| 65 6e 74 2e 0a 49 66 20 | 6e 6f 20 64 69 67 69 74 |ent..If |no digit|
|00003500| 73 20 6f 72 20 6d 69 6e | 75 73 20 73 69 67 6e 20 |s or min|us sign |
|00003510| 66 6f 6c 6c 6f 77 2c 20 | 74 68 69 73 20 63 6f 6d |follow, |this com|
|00003520| 6d 61 6e 64 20 62 79 20 | 69 74 73 65 6c 66 20 70 |mand by |itself p|
|00003530| 72 6f 76 69 64 65 73 20 | 34 20 61 73 20 61 72 67 |rovides |4 as arg|
|00003540| 75 6d 65 6e 74 2e 0a 55 | 73 65 64 20 6d 6f 72 65 |ument..U|sed more|
|00003550| 20 74 68 61 6e 20 6f 6e | 63 65 2c 20 74 68 69 73 | than on|ce, this|
|00003560| 20 63 6f 6d 6d 61 6e 64 | 20 6d 75 6c 74 69 70 6c | command| multipl|
|00003570| 69 65 73 20 74 68 65 20 | 61 72 67 75 6d 65 6e 74 |ies the |argument|
|00003580| 20 62 79 20 34 20 65 61 | 63 68 20 74 69 6d 65 2e | by 4 ea|ch time.|
|00003590| 22 20 6e 69 6c 5d 29 0a | 28 66 73 65 74 20 27 70 |" nil]).|(fset 'p|
|000035a0| 72 65 66 69 78 2d 61 72 | 67 2d 69 6e 74 65 72 6e |refix-ar|g-intern|
|000035b0| 61 6c 20 23 5b 28 65 76 | 65 6e 74 20 63 2d 75 20 |al #[(ev|ent c-u |
|000035c0| 76 61 6c 75 65 29 20 22 | c0 11 c2 c3 1c 1d c6 0e |value) "|........|
|000035d0| 07 21 ab 85 c8 0e 07 21 | 14 0e 09 a7 ab 8d 0e 09 |.!.....!|........|
|000035e0| ca 57 ab 87 cb 15 0e 09 | 5b 16 09 0e 09 cc 3d ab |.W......|[.....=.|
|000035f0| 85 cb 15 c3 16 09 0c cd | 3d ab 99 0d 5b 15 c3 16 |........|=...[...|
|00003600| 0e cf 0e 07 21 88 c6 0e | 07 21 ab 6a c8 0e 07 21 |....!...|.!.j...!|
|00003610| 89 14 aa 63 0c a7 ab b2 | 0c d0 59 ab ad 0c d1 58 |...c....|..Y....X|
|00003620| ab a8 0e 09 a7 ab 84 0e | 09 aa 81 ca d2 5f 0c d0 |........|....._..|
|00003630| 5a 5c 5c 16 09 c3 16 0e | cf 0e 07 21 88 c6 0e 07 |Z\\.....|...!....|
|00003640| 21 ab 52 c8 0e 07 21 89 | 14 aa 4b 0e 0e ab 85 0e |!.R...!.|..K.....|
|00003650| 0e 43 aa 91 0e 09 a7 ab | 86 0e 09 0d 5f aa 86 0d |.C......|...._...|
|00003660| cb 55 ad 81 cc 16 13 0e | 07 89 16 14 2a 87 22 20 |.U......|....*." |
|00003670| 5b 74 20 7a 6d 61 63 73 | 2d 72 65 67 69 6f 6e 2d |[t zmacs|-region-|
|00003680| 73 74 61 79 73 20 31 20 | 6e 69 6c 20 63 68 61 72 |stays 1 |nil char|
|00003690| 20 73 69 67 6e 20 6b 65 | 79 2d 70 72 65 73 73 2d | sign ke|y-press-|
|000036a0| 65 76 65 6e 74 2d 70 20 | 65 76 65 6e 74 20 65 76 |event-p |event ev|
|000036b0| 65 6e 74 2d 6b 65 79 20 | 76 61 6c 75 65 20 30 20 |ent-key |value 0 |
|000036c0| 2d 31 20 2d 20 34 35 20 | 63 2d 75 20 6e 65 78 74 |-1 - 45 |c-u next|
|000036d0| 2d 63 6f 6d 6d 61 6e 64 | 2d 65 76 65 6e 74 20 34 |-command|-event 4|
|000036e0| 38 20 35 37 20 31 30 20 | 70 72 65 66 69 78 2d 61 |8 57 10 |prefix-a|
|000036f0| 72 67 20 75 6e 72 65 61 | 64 2d 63 6f 6d 6d 61 6e |rg unrea|d-comman|
|00003700| 64 2d 65 76 65 6e 74 5d | 20 34 5d 29 0a 28 66 73 |d-event]| 4]).(fs|
|00003710| 65 74 20 27 64 69 67 69 | 74 2d 61 72 67 75 6d 65 |et 'digi|t-argume|
|00003720| 6e 74 20 23 5b 28 61 72 | 67 29 20 22 c0 09 c2 0b |nt #[(ar|g) "....|
|00003730| 23 87 22 20 5b 70 72 65 | 66 69 78 2d 61 72 67 2d |#." [pre|fix-arg-|
|00003740| 69 6e 74 65 72 6e 61 6c | 20 6c 61 73 74 2d 63 6f |internal| last-co|
|00003750| 6d 6d 61 6e 64 2d 65 76 | 65 6e 74 20 6e 69 6c 20 |mmand-ev|ent nil |
|00003760| 61 72 67 5d 20 34 20 22 | 5c 0a 50 61 72 74 20 6f |arg] 4 "|\.Part o|
|00003770| 66 20 74 68 65 20 6e 75 | 6d 65 72 69 63 20 61 72 |f the nu|meric ar|
|00003780| 67 75 6d 65 6e 74 20 66 | 6f 72 20 74 68 65 20 6e |gument f|or the n|
|00003790| 65 78 74 20 63 6f 6d 6d | 61 6e 64 2e 22 20 22 50 |ext comm|and." "P|
|000037a0| 22 5d 29 0a 28 66 73 65 | 74 20 27 6e 65 67 61 74 |"]).(fse|t 'negat|
|000037b0| 69 76 65 2d 61 72 67 75 | 6d 65 6e 74 20 23 5b 28 |ive-argu|ment #[(|
|000037c0| 61 72 67 29 20 22 c0 c1 | c2 c3 20 5c 22 c4 0d 23 |arg) "..|.. \"..#|
|000037d0| 87 22 20 5b 70 72 65 66 | 69 78 2d 61 72 67 2d 69 |." [pref|ix-arg-i|
|000037e0| 6e 74 65 72 6e 61 6c 20 | 63 68 61 72 61 63 74 65 |nternal |characte|
|000037f0| 72 2d 74 6f 2d 65 76 65 | 6e 74 20 34 35 20 61 6c |r-to-eve|nt 45 al|
|00003800| 6c 6f 63 61 74 65 2d 65 | 76 65 6e 74 20 6e 69 6c |locate-e|vent nil|
|00003810| 20 61 72 67 5d 20 34 20 | 22 5c 0a 42 65 67 69 6e | arg] 4 |"\.Begin|
|00003820| 20 61 20 6e 65 67 61 74 | 69 76 65 20 6e 75 6d 65 | a negat|ive nume|
|00003830| 72 69 63 20 61 72 67 75 | 6d 65 6e 74 20 66 6f 72 |ric argu|ment for|
|00003840| 20 74 68 65 20 6e 65 78 | 74 20 63 6f 6d 6d 61 6e | the nex|t comman|
|00003850| 64 2e 22 20 22 50 22 5d | 29 0a 28 66 73 65 74 20 |d." "P"]|).(fset |
|00003860| 27 66 6f 72 77 61 72 64 | 2d 74 6f 2d 69 6e 64 65 |'forward|-to-inde|
|00003870| 6e 74 61 74 69 6f 6e 20 | 23 5b 28 61 72 67 29 20 |ntation |#[(arg) |
|00003880| 22 08 79 88 c1 c2 77 87 | 22 20 5b 61 72 67 20 22 |".y...w.|" [arg "|
|00003890| 20 09 22 20 6e 69 6c 5d | 20 32 20 22 5c 0a 4d 6f | ." nil]| 2 "\.Mo|
|000038a0| 76 65 20 66 6f 72 77 61 | 72 64 20 41 52 47 20 6c |ve forwa|rd ARG l|
|000038b0| 69 6e 65 73 20 61 6e 64 | 20 70 6f 73 69 74 69 6f |ines and| positio|
|000038c0| 6e 20 61 74 20 66 69 72 | 73 74 20 6e 6f 6e 62 6c |n at fir|st nonbl|
|000038d0| 61 6e 6b 20 63 68 61 72 | 61 63 74 65 72 2e 22 20 |ank char|acter." |
|000038e0| 22 70 22 5d 29 0a 28 66 | 73 65 74 20 27 62 61 63 |"p"]).(f|set 'bac|
|000038f0| 6b 77 61 72 64 2d 74 6f | 2d 69 6e 64 65 6e 74 61 |kward-to|-indenta|
|00003900| 74 69 6f 6e 20 23 5b 28 | 61 72 67 29 20 22 08 5b |tion #[(|arg) ".[|
|00003910| 79 88 c1 c2 77 87 22 20 | 5b 61 72 67 20 22 20 09 |y...w." |[arg " .|
|00003920| 22 20 6e 69 6c 5d 20 32 | 20 22 5c 0a 4d 6f 76 65 |" nil] 2| "\.Move|
|00003930| 20 62 61 63 6b 77 61 72 | 64 20 41 52 47 20 6c 69 | backwar|d ARG li|
|00003940| 6e 65 73 20 61 6e 64 20 | 70 6f 73 69 74 69 6f 6e |nes and |position|
|00003950| 20 61 74 20 66 69 72 73 | 74 20 6e 6f 6e 62 6c 61 | at firs|t nonbla|
|00003960| 6e 6b 20 63 68 61 72 61 | 63 74 65 72 2e 22 20 22 |nk chara|cter." "|
|00003970| 70 22 5d 29 0a 28 66 73 | 65 74 20 27 6b 69 6c 6c |p"]).(fs|et 'kill|
|00003980| 2d 6c 69 6e 65 20 23 5b | 28 26 6f 70 74 69 6f 6e |-line #[|(&option|
|00003990| 61 6c 20 61 72 67 29 20 | 22 c0 60 09 ab 87 c2 09 |al arg) |".`.....|
|000039a0| 21 79 88 aa 95 6d ab 85 | c3 c4 c5 5c 22 88 c6 c7 |!y...m..|...\"...|
|000039b0| 21 ab 85 c8 79 88 aa 83 | c5 7f 88 60 5c 22 87 22 |!...y...|...`\"."|
|000039c0| 20 5b 6b 69 6c 6c 2d 72 | 65 67 69 6f 6e 20 61 72 | [kill-r|egion ar|
|000039d0| 67 20 70 72 65 66 69 78 | 2d 6e 75 6d 65 72 69 63 |g prefix|-numeric|
|000039e0| 2d 76 61 6c 75 65 20 73 | 69 67 6e 61 6c 20 65 6e |-value s|ignal en|
|000039f0| 64 2d 6f 66 2d 62 75 66 | 66 65 72 20 6e 69 6c 20 |d-of-buf|fer nil |
|00003a00| 6c 6f 6f 6b 69 6e 67 2d | 61 74 20 22 5b 20 09 5d |looking-|at "[ .]|
|00003a10| 2a 24 22 20 31 5d 20 35 | 20 22 5c 0a 4b 69 6c 6c |*$" 1] 5| "\.Kill|
|00003a20| 20 74 68 65 20 72 65 73 | 74 20 6f 66 20 74 68 65 | the res|t of the|
|00003a30| 20 63 75 72 72 65 6e 74 | 20 6c 69 6e 65 3b 20 69 | current| line; i|
|00003a40| 66 20 6e 6f 20 6e 6f 6e | 62 6c 61 6e 6b 73 20 74 |f no non|blanks t|
|00003a50| 68 65 72 65 2c 20 6b 69 | 6c 6c 20 74 68 72 75 20 |here, ki|ll thru |
|00003a60| 6e 65 77 6c 69 6e 65 2e | 0a 57 69 74 68 20 70 72 |newline.|.With pr|
|00003a70| 65 66 69 78 20 61 72 67 | 75 6d 65 6e 74 2c 20 6b |efix arg|ument, k|
|00003a80| 69 6c 6c 20 74 68 61 74 | 20 6d 61 6e 79 20 6c 69 |ill that| many li|
|00003a90| 6e 65 73 20 66 72 6f 6d | 20 70 6f 69 6e 74 2e 0a |nes from| point..|
|00003aa0| 4e 65 67 61 74 69 76 65 | 20 61 72 67 75 6d 65 6e |Negative| argumen|
|00003ab0| 74 73 20 6b 69 6c 6c 20 | 6c 69 6e 65 73 20 62 61 |ts kill |lines ba|
|00003ac0| 63 6b 77 61 72 64 2e 0a | 0a 57 68 65 6e 20 63 61 |ckward..|.When ca|
|00003ad0| 6c 6c 69 6e 67 20 66 72 | 6f 6d 20 61 20 70 72 6f |lling fr|om a pro|
|00003ae0| 67 72 61 6d 2c 20 6e 69 | 6c 20 6d 65 61 6e 73 20 |gram, ni|l means |
|00003af0| 5c 22 6e 6f 20 61 72 67 | 5c 22 2c 0a 61 20 6e 75 |\"no arg|\",.a nu|
|00003b00| 6d 62 65 72 20 63 6f 75 | 6e 74 73 20 61 73 20 61 |mber cou|nts as a|
|00003b10| 20 70 72 65 66 69 78 20 | 61 72 67 2e 22 20 22 2a | prefix |arg." "*|
|00003b20| 50 22 5d 29 0a 28 64 65 | 66 76 61 72 20 6b 69 6c |P"]).(de|fvar kil|
|00003b30| 6c 2d 72 69 6e 67 20 6e | 69 6c 20 22 5c 0a 4c 69 |l-ring n|il "\.Li|
|00003b40| 73 74 20 6f 66 20 6b 69 | 6c 6c 65 64 20 74 65 78 |st of ki|lled tex|
|00003b50| 74 20 73 65 71 75 65 6e | 63 65 73 2e 22 29 0a 28 |t sequen|ces.").(|
|00003b60| 64 65 66 63 6f 6e 73 74 | 20 6b 69 6c 6c 2d 72 69 |defconst| kill-ri|
|00003b70| 6e 67 2d 6d 61 78 20 33 | 30 20 22 5c 0a 2a 4d 61 |ng-max 3|0 "\.*Ma|
|00003b80| 78 69 6d 75 6d 20 6c 65 | 6e 67 74 68 20 6f 66 20 |ximum le|ngth of |
|00003b90| 6b 69 6c 6c 20 72 69 6e | 67 20 62 65 66 6f 72 65 |kill rin|g before|
|00003ba0| 20 6f 6c 64 65 73 74 20 | 65 6c 65 6d 65 6e 74 73 | oldest |elements|
|00003bb0| 20 61 72 65 20 74 68 72 | 6f 77 6e 20 61 77 61 79 | are thr|own away|
|00003bc0| 2e 22 29 0a 28 64 65 66 | 76 61 72 20 6b 69 6c 6c |.").(def|var kill|
|00003bd0| 2d 72 69 6e 67 2d 79 61 | 6e 6b 2d 70 6f 69 6e 74 |-ring-ya|nk-point|
|00003be0| 65 72 20 6e 69 6c 20 22 | 5c 0a 54 68 65 20 74 61 |er nil "|\.The ta|
|00003bf0| 69 6c 20 6f 66 20 74 68 | 65 20 6b 69 6c 6c 20 72 |il of th|e kill r|
|00003c00| 69 6e 67 20 77 68 6f 73 | 65 20 63 61 72 20 69 73 |ing whos|e car is|
|00003c10| 20 74 68 65 20 6c 61 73 | 74 20 74 68 69 6e 67 20 | the las|t thing |
|00003c20| 79 61 6e 6b 65 64 2e 22 | 29 0a 28 66 73 65 74 20 |yanked."|).(fset |
|00003c30| 27 6b 69 6c 6c 2d 61 70 | 70 65 6e 64 20 23 5b 28 |'kill-ap|pend #[(|
|00003c40| 73 74 72 69 6e 67 20 62 | 65 66 6f 72 65 2d 70 29 |string b|efore-p)|
|00003c50| 20 22 08 09 ab 86 5c 6e | 08 40 50 aa 84 08 40 5c | "....\n|.@P...@\|
|00003c60| 6e 50 a0 87 22 20 5b 6b | 69 6c 6c 2d 72 69 6e 67 |nP.." [k|ill-ring|
|00003c70| 20 62 65 66 6f 72 65 2d | 70 20 73 74 72 69 6e 67 | before-|p string|
|00003c80| 5d 20 33 5d 29 0a 28 66 | 73 65 74 20 27 6b 69 6c |] 3]).(f|set 'kil|
|00003c90| 6c 2d 72 65 67 69 6f 6e | 20 23 5b 28 62 65 67 20 |l-region| #[(beg |
|00003ca0| 65 6e 64 20 26 6f 70 74 | 69 6f 6e 61 6c 20 76 65 |end &opt|ional ve|
|00003cb0| 72 62 6f 73 65 29 20 22 | 08 ab 83 09 ac 8a c2 0b |rbose) "|........|
|00003cc0| ab 83 c4 aa 81 c5 21 88 | 0e 06 ab 8b c7 c8 08 09 |......!.|........|
|00003cd0| 5d 08 09 5e 5a 5c 22 88 | c9 08 09 5c 22 88 08 09 |]..^Z\".|...\"...|
|00003ce0| 7c 87 22 20 5b 62 65 67 | 20 65 6e 64 20 65 72 72 ||." [beg| end err|
|00003cf0| 6f 72 20 7a 6d 61 63 73 | 2d 72 65 67 69 6f 6e 73 |or zmacs|-regions|
|00003d00| 20 22 54 68 65 20 72 65 | 67 69 6f 6e 20 69 73 20 | "The re|gion is |
|00003d10| 6e 6f 74 20 61 63 74 69 | 76 65 20 6e 6f 77 22 20 |not acti|ve now" |
|00003d20| 22 54 68 65 20 6d 61 72 | 6b 20 69 73 20 6e 6f 74 |"The mar|k is not|
|00003d30| 20 73 65 74 20 6e 6f 77 | 22 20 76 65 72 62 6f 73 | set now|" verbos|
|00003d40| 65 20 6d 65 73 73 61 67 | 65 20 22 4b 69 6c 6c 69 |e messag|e "Killi|
|00003d50| 6e 67 20 25 64 20 63 68 | 61 72 61 63 74 65 72 73 |ng %d ch|aracters|
|00003d60| 22 20 63 6f 70 79 2d 72 | 65 67 69 6f 6e 2d 61 73 |" copy-r|egion-as|
|00003d70| 2d 6b 69 6c 6c 5d 20 35 | 20 22 5c 0a 4b 69 6c 6c |-kill] 5| "\.Kill|
|00003d80| 20 62 65 74 77 65 65 6e | 20 70 6f 69 6e 74 20 61 | between| point a|
|00003d90| 6e 64 20 6d 61 72 6b 2e | 0a 54 68 65 20 74 65 78 |nd mark.|.The tex|
|00003da0| 74 20 69 73 20 64 65 6c | 65 74 65 64 20 62 75 74 |t is del|eted but|
|00003db0| 20 73 61 76 65 64 20 69 | 6e 20 74 68 65 20 6b 69 | saved i|n the ki|
|00003dc0| 6c 6c 20 72 69 6e 67 2e | 0a 54 68 65 20 63 6f 6d |ll ring.|.The com|
|00003dd0| 6d 61 6e 64 20 5c 5c 5b | 79 61 6e 6b 5d 20 63 61 |mand \\[|yank] ca|
|00003de0| 6e 20 72 65 74 72 69 65 | 76 65 20 69 74 20 66 72 |n retrie|ve it fr|
|00003df0| 6f 6d 20 74 68 65 72 65 | 2e 0a 28 49 66 20 79 6f |om there|..(If yo|
|00003e00| 75 20 77 61 6e 74 20 74 | 6f 20 6b 69 6c 6c 20 61 |u want t|o kill a|
|00003e10| 6e 64 20 74 68 65 6e 20 | 79 61 6e 6b 20 69 6d 6d |nd then |yank imm|
|00003e20| 65 64 69 61 74 65 6c 79 | 2c 20 75 73 65 20 5c 5c |ediately|, use \\|
|00003e30| 5b 6b 69 6c 6c 2d 72 69 | 6e 67 2d 73 61 76 65 5d |[kill-ri|ng-save]|
|00003e40| 2e 29 0a 0a 54 68 69 73 | 20 69 73 20 74 68 65 20 |.)..This| is the |
|00003e50| 70 72 69 6d 69 74 69 76 | 65 20 66 6f 72 20 70 72 |primitiv|e for pr|
|00003e60| 6f 67 72 61 6d 73 20 74 | 6f 20 6b 69 6c 6c 20 74 |ograms t|o kill t|
|00003e70| 65 78 74 20 28 61 73 20 | 6f 70 70 6f 73 65 64 20 |ext (as |opposed |
|00003e80| 74 6f 20 64 65 6c 65 74 | 69 6e 67 20 69 74 29 2e |to delet|ing it).|
|00003e90| 0a 53 75 70 70 6c 79 20 | 74 77 6f 20 61 72 67 75 |.Supply |two argu|
|00003ea0| 6d 65 6e 74 73 2c 20 63 | 68 61 72 61 63 74 65 72 |ments, c|haracter|
|00003eb0| 20 6e 75 6d 62 65 72 73 | 20 69 6e 64 69 63 61 74 | numbers| indicat|
|00003ec0| 69 6e 67 20 74 68 65 20 | 73 74 72 65 74 63 68 20 |ing the |stretch |
|00003ed0| 6f 66 20 74 65 78 74 0a | 20 74 6f 20 62 65 20 6b |of text.| to be k|
|00003ee0| 69 6c 6c 65 64 2e 0a 41 | 6e 79 20 63 6f 6d 6d 61 |illed..A|ny comma|
|00003ef0| 6e 64 20 74 68 61 74 20 | 63 61 6c 6c 73 20 74 68 |nd that |calls th|
|00003f00| 69 73 20 66 75 6e 63 74 | 69 6f 6e 20 69 73 20 61 |is funct|ion is a|
|00003f10| 20 5c 22 6b 69 6c 6c 20 | 63 6f 6d 6d 61 6e 64 5c | \"kill |command\|
|00003f20| 22 2e 0a 49 66 20 74 68 | 65 20 70 72 65 76 69 6f |"..If th|e previo|
|00003f30| 75 73 20 63 6f 6d 6d 61 | 6e 64 20 77 61 73 20 61 |us comma|nd was a|
|00003f40| 6c 73 6f 20 61 20 6b 69 | 6c 6c 20 63 6f 6d 6d 61 |lso a ki|ll comma|
|00003f50| 6e 64 2c 0a 74 68 65 20 | 74 65 78 74 20 6b 69 6c |nd,.the |text kil|
|00003f60| 6c 65 64 20 74 68 69 73 | 20 74 69 6d 65 20 61 70 |led this| time ap|
|00003f70| 70 65 6e 64 73 20 74 6f | 20 74 68 65 20 74 65 78 |pends to| the tex|
|00003f80| 74 20 6b 69 6c 6c 65 64 | 20 6c 61 73 74 20 74 69 |t killed| last ti|
|00003f90| 6d 65 0a 74 6f 20 6d 61 | 6b 65 20 6f 6e 65 20 65 |me.to ma|ke one e|
|00003fa0| 6e 74 72 79 20 69 6e 20 | 74 68 65 20 6b 69 6c 6c |ntry in |the kill|
|00003fb0| 20 72 69 6e 67 2e 22 20 | 22 2a 72 5c 6e 70 22 5d | ring." |"*r\np"]|
|00003fc0| 29 0a 28 64 65 66 76 61 | 72 20 6b 69 6c 6c 2d 68 |).(defva|r kill-h|
|00003fd0| 6f 6f 6b 73 20 6e 69 6c | 20 22 5c 0a 49 66 20 6e |ooks nil| "\.If n|
|00003fe0| 6f 6e 2d 6e 69 6c 2c 20 | 74 68 69 73 20 73 68 6f |on-nil, |this sho|
|00003ff0| 75 6c 64 20 62 65 20 61 | 20 66 75 6e 63 74 69 6f |uld be a| functio|
|00004000| 6e 20 6f 72 20 66 75 6e | 63 74 69 6f 6e 73 20 6f |n or fun|ctions o|
|00004010| 66 20 6f 6e 65 20 61 72 | 67 75 6d 65 6e 74 20 77 |f one ar|gument w|
|00004020| 68 69 63 68 0a 61 72 65 | 20 63 61 6c 6c 65 64 20 |hich.are| called |
|00004030| 77 69 74 68 20 74 68 65 | 20 73 74 72 69 6e 67 20 |with the| string |
|00004040| 6d 6f 73 74 20 72 65 63 | 65 6e 74 6c 79 20 61 64 |most rec|ently ad|
|00004050| 64 65 64 20 74 6f 20 74 | 68 65 20 6b 69 6c 6c 20 |ded to t|he kill |
|00004060| 72 69 6e 67 2e 20 20 59 | 6f 75 20 63 61 6e 20 75 |ring. Y|ou can u|
|00004070| 73 65 0a 74 68 69 73 20 | 74 6f 2c 20 66 6f 72 20 |se.this |to, for |
|00004080| 65 78 61 6d 70 6c 65 2c | 20 6d 61 6b 65 20 74 68 |example,| make th|
|00004090| 65 20 6d 6f 73 74 20 72 | 65 63 65 6e 74 20 6b 69 |e most r|ecent ki|
|000040a0| 6c 6c 20 62 65 63 6f 6d | 65 20 74 68 65 20 58 20 |ll becom|e the X |
|000040b0| 43 6c 69 70 62 6f 61 72 | 64 0a 73 65 6c 65 63 74 |Clipboar|d.select|
|000040c0| 69 6f 6e 2e 22 29 0a 28 | 66 73 65 74 20 27 63 6f |ion.").(|fset 'co|
|000040d0| 70 79 2d 72 65 67 69 6f | 6e 2d 61 73 2d 6b 69 6c |py-regio|n-as-kil|
|000040e0| 6c 20 23 5b 28 62 65 67 | 20 65 6e 64 29 20 22 08 |l #[(beg| end) ".|
|000040f0| c1 3d ab 8b c2 0b 0c 7b | 0c 0b 57 5c 22 88 aa 95 |.=.....{|..W\"...|
|00004100| 0b 0c 7b 0d 42 89 15 47 | 0e 06 56 ab 88 0e 06 53 |..{.B..G|..V....S|
|00004110| 0d 9b c7 a1 88 0d 16 08 | 0e 09 89 1e 5c 6e 3a ab |........|....\n:.|
|00004120| 87 0e 5c 6e a2 cb 3d ab | 85 0e 5c 6e 43 16 5c 6e |..\n..=.|..\nC.\n|
|00004130| 0e 5c 6e ab 8f 0e 5c 6e | 40 0d 40 21 88 0e 5c 6e |.\n...\n|@.@!..\n|
|00004140| 41 89 16 5c 6e ac 71 29 | c1 16 0c c7 87 22 20 5b |A..\n.q)|....." [|
|00004150| 6c 61 73 74 2d 63 6f 6d | 6d 61 6e 64 20 6b 69 6c |last-com|mand kil|
|00004160| 6c 2d 72 65 67 69 6f 6e | 20 6b 69 6c 6c 2d 61 70 |l-region| kill-ap|
|00004170| 70 65 6e 64 20 62 65 67 | 20 65 6e 64 20 6b 69 6c |pend beg| end kil|
|00004180| 6c 2d 72 69 6e 67 20 6b | 69 6c 6c 2d 72 69 6e 67 |l-ring k|ill-ring|
|00004190| 2d 6d 61 78 20 6e 69 6c | 20 6b 69 6c 6c 2d 72 69 |-max nil| kill-ri|
|000041a0| 6e 67 2d 79 61 6e 6b 2d | 70 6f 69 6e 74 65 72 20 |ng-yank-|pointer |
|000041b0| 6b 69 6c 6c 2d 68 6f 6f | 6b 73 20 72 65 73 74 20 |kill-hoo|ks rest |
|000041c0| 6c 61 6d 62 64 61 20 74 | 68 69 73 2d 63 6f 6d 6d |lambda t|his-comm|
|000041d0| 61 6e 64 5d 20 35 20 22 | 5c 0a 53 61 76 65 20 74 |and] 5 "|\.Save t|
|000041e0| 68 65 20 72 65 67 69 6f | 6e 20 61 73 20 69 66 20 |he regio|n as if |
|000041f0| 6b 69 6c 6c 65 64 2c 20 | 62 75 74 20 64 6f 6e 27 |killed, |but don'|
|00004200| 74 20 6b 69 6c 6c 20 69 | 74 2e 22 20 22 72 22 5d |t kill i|t." "r"]|
|00004210| 29 0a 28 66 73 65 74 20 | 27 6b 69 6c 6c 2d 72 69 |).(fset |'kill-ri|
|00004220| 6e 67 2d 73 61 76 65 20 | 23 5b 28 62 65 67 20 65 |ng-save |#[(beg e|
|00004230| 6e 64 29 20 22 c0 09 5c | 6e 5c 22 88 8a 60 5c 6e |nd) "..\|n\"..`\n|
|00004240| 55 ab 83 09 aa 81 5c 6e | 62 88 c3 60 21 ad 83 c4 |U.....\n|b..`!...|
|00004250| c5 21 29 87 22 20 5b 63 | 6f 70 79 2d 72 65 67 69 |.!)." [c|opy-regi|
|00004260| 6f 6e 2d 61 73 2d 6b 69 | 6c 6c 20 62 65 67 20 65 |on-as-ki|ll beg e|
|00004270| 6e 64 20 70 6f 73 2d 76 | 69 73 69 62 6c 65 2d 69 |nd pos-v|isible-i|
|00004280| 6e 2d 77 69 6e 64 6f 77 | 2d 70 20 73 69 74 2d 66 |n-window|-p sit-f|
|00004290| 6f 72 20 30 5d 20 33 20 | 22 5c 0a 53 61 76 65 20 |or 0] 3 |"\.Save |
|000042a0| 74 68 65 20 72 65 67 69 | 6f 6e 20 61 73 20 69 66 |the regi|on as if|
|000042b0| 20 6b 69 6c 6c 65 64 2c | 20 62 75 74 20 64 6f 6e | killed,| but don|
|000042c0| 27 74 20 6b 69 6c 6c 20 | 69 74 2e 22 20 22 72 22 |'t kill |it." "r"|
|000042d0| 5d 29 0a 28 66 73 65 74 | 20 27 61 70 70 65 6e 64 |]).(fset| 'append|
|000042e0| 2d 6e 65 78 74 2d 6b 69 | 6c 6c 20 23 5b 6e 69 6c |-next-ki|ll #[nil|
|000042f0| 20 22 74 ab 88 c0 11 c2 | c3 21 88 aa 82 c0 14 c5 | "t.....|.!......|
|00004300| 89 16 06 87 22 20 5b 6b | 69 6c 6c 2d 72 65 67 69 |...." [k|ill-regi|
|00004310| 6f 6e 20 74 68 69 73 2d | 63 6f 6d 6d 61 6e 64 20 |on this-|command |
|00004320| 6d 65 73 73 61 67 65 20 | 22 49 66 20 74 68 65 20 |message |"If the |
|00004330| 6e 65 78 74 20 63 6f 6d | 6d 61 6e 64 20 69 73 20 |next com|mand is |
|00004340| 61 20 6b 69 6c 6c 2c 20 | 69 74 20 77 69 6c 6c 20 |a kill, |it will |
|00004350| 61 70 70 65 6e 64 22 20 | 6c 61 73 74 2d 63 6f 6d |append" |last-com|
|00004360| 6d 61 6e 64 20 74 20 7a | 6d 61 63 73 2d 72 65 67 |mand t z|macs-reg|
|00004370| 69 6f 6e 2d 73 74 61 79 | 73 5d 20 32 20 22 5c 0a |ion-stay|s] 2 "\.|
|00004380| 43 61 75 73 65 20 66 6f | 6c 6c 6f 77 69 6e 67 20 |Cause fo|llowing |
|00004390| 63 6f 6d 6d 61 6e 64 2c | 20 69 66 20 6b 69 6c 6c |command,| if kill|
|000043a0| 2c 20 74 6f 20 61 70 70 | 65 6e 64 20 74 6f 20 70 |, to app|end to p|
|000043b0| 72 65 76 69 6f 75 73 20 | 6b 69 6c 6c 2e 22 20 6e |revious |kill." n|
|000043c0| 69 6c 5d 29 0a 28 66 73 | 65 74 20 27 72 6f 74 61 |il]).(fs|et 'rota|
|000043d0| 74 65 2d 79 61 6e 6b 2d | 70 6f 69 6e 74 65 72 20 |te-yank-|pointer |
|000043e0| 23 5b 28 61 72 67 29 20 | 22 08 47 89 19 c2 55 ab |#[(arg) |".G...U.|
|000043f0| 85 c3 c4 21 aa 8e 0d 09 | 0e 06 47 5a 5c 5c 09 a6 |...!....|..GZ\\..|
|00004400| 08 9b 89 16 06 29 87 22 | 20 5b 6b 69 6c 6c 2d 72 |.....)."| [kill-r|
|00004410| 69 6e 67 20 6c 65 6e 67 | 74 68 20 30 20 65 72 72 |ing leng|th 0 err|
|00004420| 6f 72 20 22 4b 69 6c 6c | 20 72 69 6e 67 20 69 73 |or "Kill| ring is|
|00004430| 20 65 6d 70 74 79 22 20 | 61 72 67 20 6b 69 6c 6c | empty" |arg kill|
|00004440| 2d 72 69 6e 67 2d 79 61 | 6e 6b 2d 70 6f 69 6e 74 |-ring-ya|nk-point|
|00004450| 65 72 5d 20 34 20 22 5c | 0a 52 6f 74 61 74 65 20 |er] 4 "\|.Rotate |
|00004460| 74 68 65 20 79 61 6e 6b | 69 6e 67 20 70 6f 69 6e |the yank|ing poin|
|00004470| 74 20 69 6e 20 74 68 65 | 20 6b 69 6c 6c 20 72 69 |t in the| kill ri|
|00004480| 6e 67 2e 22 20 22 70 22 | 5d 29 0a 28 66 73 65 74 |ng." "p"|]).(fset|
|00004490| 20 27 79 61 6e 6b 2d 70 | 6f 70 20 23 5b 28 61 72 | 'yank-p|op #[(ar|
|000044a0| 67 29 20 22 08 c1 3d ac | 84 c2 c3 21 88 c1 14 60 |g) "..=.|...!...`|
|000044b0| c5 c6 21 57 1e 07 60 c5 | c6 21 7c 88 c8 0e 09 21 |..!W..`.|.!|....!|
|000044c0| 88 ca 60 21 88 0e 0b 40 | 63 88 0e 07 ad 83 cc c6 |..`!...@|c.......|
|000044d0| 21 29 87 22 20 5b 6c 61 | 73 74 2d 63 6f 6d 6d 61 |!)." [la|st-comma|
|000044e0| 6e 64 20 79 61 6e 6b 20 | 65 72 72 6f 72 20 22 50 |nd yank |error "P|
|000044f0| 72 65 76 69 6f 75 73 20 | 63 6f 6d 6d 61 6e 64 20 |revious |command |
|00004500| 77 61 73 20 6e 6f 74 20 | 61 20 79 61 6e 6b 22 20 |was not |a yank" |
|00004510| 74 68 69 73 2d 63 6f 6d | 6d 61 6e 64 20 6d 61 72 |this-com|mand mar|
|00004520| 6b 20 74 20 62 65 66 6f | 72 65 20 72 6f 74 61 74 |k t befo|re rotat|
|00004530| 65 2d 79 61 6e 6b 2d 70 | 6f 69 6e 74 65 72 20 61 |e-yank-p|ointer a|
|00004540| 72 67 20 73 65 74 2d 6d | 61 72 6b 20 6b 69 6c 6c |rg set-m|ark kill|
|00004550| 2d 72 69 6e 67 2d 79 61 | 6e 6b 2d 70 6f 69 6e 74 |-ring-ya|nk-point|
|00004560| 65 72 20 65 78 63 68 61 | 6e 67 65 2d 70 6f 69 6e |er excha|nge-poin|
|00004570| 74 2d 61 6e 64 2d 6d 61 | 72 6b 5d 20 33 20 22 5c |t-and-ma|rk] 3 "\|
|00004580| 0a 52 65 70 6c 61 63 65 | 20 6a 75 73 74 2d 79 61 |.Replace| just-ya|
|00004590| 6e 6b 65 64 20 73 74 72 | 65 74 63 68 20 6f 66 20 |nked str|etch of |
|000045a0| 6b 69 6c 6c 65 64 2d 74 | 65 78 74 20 77 69 74 68 |killed-t|ext with|
|000045b0| 20 61 20 64 69 66 66 65 | 72 65 6e 74 20 73 74 72 | a diffe|rent str|
|000045c0| 65 74 63 68 2e 0a 54 68 | 69 73 20 63 6f 6d 6d 61 |etch..Th|is comma|
|000045d0| 6e 64 20 69 73 20 61 6c | 6c 6f 77 65 64 20 6f 6e |nd is al|lowed on|
|000045e0| 6c 79 20 69 6d 6d 65 64 | 69 61 74 65 6c 79 20 61 |ly immed|iately a|
|000045f0| 66 74 65 72 20 61 20 20 | 79 61 6e 6b 20 20 6f 72 |fter a |yank or|
|00004600| 20 61 20 20 79 61 6e 6b | 2d 70 6f 70 2e 0a 41 74 | a yank|-pop..At|
|00004610| 20 73 75 63 68 20 61 20 | 74 69 6d 65 2c 20 74 68 | such a |time, th|
|00004620| 65 20 72 65 67 69 6f 6e | 20 63 6f 6e 74 61 69 6e |e region| contain|
|00004630| 73 20 61 20 73 74 72 65 | 74 63 68 20 6f 66 20 72 |s a stre|tch of r|
|00004640| 65 69 6e 73 65 72 74 65 | 64 0a 70 72 65 76 69 6f |einserte|d.previo|
|00004650| 75 73 6c 79 2d 6b 69 6c | 6c 65 64 20 74 65 78 74 |usly-kil|led text|
|00004660| 2e 20 20 79 61 6e 6b 2d | 70 6f 70 20 20 64 65 6c |. yank-|pop del|
|00004670| 65 74 65 73 20 74 68 61 | 74 20 74 65 78 74 20 61 |etes tha|t text a|
|00004680| 6e 64 20 69 6e 73 65 72 | 74 73 20 69 6e 20 69 74 |nd inser|ts in it|
|00004690| 73 0a 70 6c 61 63 65 20 | 61 20 64 69 66 66 65 72 |s.place |a differ|
|000046a0| 65 6e 74 20 73 74 72 65 | 74 63 68 20 6f 66 20 6b |ent stre|tch of k|
|000046b0| 69 6c 6c 65 64 20 74 65 | 78 74 2e 0a 0a 57 69 74 |illed te|xt...Wit|
|000046c0| 68 20 6e 6f 20 61 72 67 | 75 6d 65 6e 74 2c 20 74 |h no arg|ument, t|
|000046d0| 68 65 20 70 72 65 76 69 | 6f 75 73 20 6b 69 6c 6c |he previ|ous kill|
|000046e0| 20 69 73 20 69 6e 73 65 | 72 74 65 64 2e 0a 57 69 | is inse|rted..Wi|
|000046f0| 74 68 20 61 72 67 75 6d | 65 6e 74 20 6e 2c 20 74 |th argum|ent n, t|
|00004700| 68 65 20 6e 27 74 68 20 | 70 72 65 76 69 6f 75 73 |he n'th |previous|
|00004710| 20 6b 69 6c 6c 20 69 73 | 20 69 6e 73 65 72 74 65 | kill is| inserte|
|00004720| 64 2e 0a 49 66 20 6e 20 | 69 73 20 6e 65 67 61 74 |d..If n |is negat|
|00004730| 69 76 65 2c 20 74 68 69 | 73 20 69 73 20 61 20 6d |ive, thi|s is a m|
|00004740| 6f 72 65 20 72 65 63 65 | 6e 74 20 6b 69 6c 6c 2e |ore rece|nt kill.|
|00004750| 0a 0a 54 68 65 20 73 65 | 71 75 65 6e 63 65 20 6f |..The se|quence o|
|00004760| 66 20 6b 69 6c 6c 73 20 | 77 72 61 70 73 20 61 72 |f kills |wraps ar|
|00004770| 6f 75 6e 64 2c 20 73 6f | 20 74 68 61 74 20 61 66 |ound, so| that af|
|00004780| 74 65 72 20 74 68 65 20 | 6f 6c 64 65 73 74 20 6f |ter the |oldest o|
|00004790| 6e 65 0a 63 6f 6d 65 73 | 20 74 68 65 20 6e 65 77 |ne.comes| the new|
|000047a0| 65 73 74 20 6f 6e 65 2e | 22 20 22 2a 70 22 5d 29 |est one.|" "*p"])|
|000047b0| 0a 28 66 73 65 74 20 27 | 79 61 6e 6b 20 23 5b 28 |.(fset '|yank #[(|
|000047c0| 26 6f 70 74 69 6f 6e 61 | 6c 20 61 72 67 29 20 22 |&optiona|l arg) "|
|000047d0| c0 09 3c ab 83 c2 aa 8a | 09 c3 3d ab 83 c4 aa 82 |..<.....|..=.....|
|000047e0| 09 53 21 88 c5 60 21 88 | 0e 06 40 63 88 09 3a ad |.S!..`!.|..@c..:.|
|000047f0| 83 c7 c8 21 87 22 20 5b | 72 6f 74 61 74 65 2d 79 |...!." [|rotate-y|
|00004800| 61 6e 6b 2d 70 6f 69 6e | 74 65 72 20 61 72 67 20 |ank-poin|ter arg |
|00004810| 30 20 2d 20 2d 31 20 70 | 75 73 68 2d 6d 61 72 6b |0 - -1 p|ush-mark|
|00004820| 20 6b 69 6c 6c 2d 72 69 | 6e 67 2d 79 61 6e 6b 2d | kill-ri|ng-yank-|
|00004830| 70 6f 69 6e 74 65 72 20 | 65 78 63 68 61 6e 67 65 |pointer |exchange|
|00004840| 2d 70 6f 69 6e 74 2d 61 | 6e 64 2d 6d 61 72 6b 20 |-point-a|nd-mark |
|00004850| 74 5d 20 33 20 22 5c 0a | 52 65 69 6e 73 65 72 74 |t] 3 "\.|Reinsert|
|00004860| 20 74 68 65 20 6c 61 73 | 74 20 73 74 72 65 74 63 | the las|t stretc|
|00004870| 68 20 6f 66 20 6b 69 6c | 6c 65 64 20 74 65 78 74 |h of kil|led text|
|00004880| 2e 0a 4d 6f 72 65 20 70 | 72 65 63 69 73 65 6c 79 |..More p|recisely|
|00004890| 2c 20 72 65 69 6e 73 65 | 72 74 20 74 68 65 20 73 |, reinse|rt the s|
|000048a0| 74 72 65 74 63 68 20 6f | 66 20 6b 69 6c 6c 65 64 |tretch o|f killed|
|000048b0| 20 74 65 78 74 20 6d 6f | 73 74 20 72 65 63 65 6e | text mo|st recen|
|000048c0| 74 6c 79 0a 6b 69 6c 6c | 65 64 20 4f 52 20 79 61 |tly.kill|ed OR ya|
|000048d0| 6e 6b 65 64 2e 0a 57 69 | 74 68 20 6a 75 73 74 20 |nked..Wi|th just |
|000048e0| 43 2d 55 20 61 73 20 61 | 72 67 75 6d 65 6e 74 2c |C-U as a|rgument,|
|000048f0| 20 73 61 6d 65 20 62 75 | 74 20 70 75 74 20 70 6f | same bu|t put po|
|00004900| 69 6e 74 20 69 6e 20 66 | 72 6f 6e 74 20 28 61 6e |int in f|ront (an|
|00004910| 64 20 6d 61 72 6b 20 61 | 74 20 65 6e 64 29 2e 0a |d mark a|t end)..|
|00004920| 57 69 74 68 20 61 72 67 | 75 6d 65 6e 74 20 6e 2c |With arg|ument n,|
|00004930| 20 72 65 69 6e 73 65 72 | 74 20 74 68 65 20 6e 74 | reinser|t the nt|
|00004940| 68 20 6d 6f 73 74 20 72 | 65 63 65 6e 74 6c 79 20 |h most r|ecently |
|00004950| 6b 69 6c 6c 65 64 20 73 | 74 72 65 74 63 68 20 6f |killed s|tretch o|
|00004960| 66 20 6b 69 6c 6c 65 64 | 0a 74 65 78 74 2e 0a 53 |f killed|.text..S|
|00004970| 65 65 20 61 6c 73 6f 20 | 74 68 65 20 63 6f 6d 6d |ee also |the comm|
|00004980| 61 6e 64 20 5c 5c 5b 79 | 61 6e 6b 2d 70 6f 70 5d |and \\[y|ank-pop]|
|00004990| 2e 22 20 22 2a 50 22 5d | 29 0a 28 66 73 65 74 20 |." "*P"]|).(fset |
|000049a0| 27 69 6e 73 65 72 74 2d | 62 75 66 66 65 72 20 23 |'insert-|buffer #|
|000049b0| 5b 28 62 75 66 66 65 72 | 29 20 22 c0 09 21 ac 84 |[(buffer|) "..!..|
|000049c0| c2 09 21 11 c3 89 89 1c | 1d 1e 06 8a 8a 09 71 88 |..!.....|......q.|
|000049d0| 65 16 06 64 15 29 c7 09 | 0e 06 0d 23 88 60 14 29 |e..d.)..|...#.`.)|
|000049e0| c8 0c 21 2b 87 22 20 5b | 62 75 66 66 65 72 70 20 |..!+." [|bufferp |
|000049f0| 62 75 66 66 65 72 20 67 | 65 74 2d 62 75 66 66 65 |buffer g|et-buffe|
|00004a00| 72 20 6e 69 6c 20 6e 65 | 77 6d 61 72 6b 20 65 6e |r nil ne|wmark en|
|00004a10| 64 20 73 74 61 72 74 20 | 69 6e 73 65 72 74 2d 62 |d start |insert-b|
|00004a20| 75 66 66 65 72 2d 73 75 | 62 73 74 72 69 6e 67 20 |uffer-su|bstring |
|00004a30| 70 75 73 68 2d 6d 61 72 | 6b 5d 20 34 20 22 5c 0a |push-mar|k] 4 "\.|
|00004a40| 49 6e 73 65 72 74 20 61 | 66 74 65 72 20 70 6f 69 |Insert a|fter poi|
|00004a50| 6e 74 20 74 68 65 20 63 | 6f 6e 74 65 6e 74 73 20 |nt the c|ontents |
|00004a60| 6f 66 20 42 55 46 46 45 | 52 2e 0a 50 75 74 73 20 |of BUFFE|R..Puts |
|00004a70| 6d 61 72 6b 20 61 66 74 | 65 72 20 74 68 65 20 69 |mark aft|er the i|
|00004a80| 6e 73 65 72 74 65 64 20 | 74 65 78 74 2e 0a 42 55 |nserted |text..BU|
|00004a90| 46 46 45 52 20 6d 61 79 | 20 62 65 20 61 20 62 75 |FFER may| be a bu|
|00004aa0| 66 66 65 72 20 6f 72 20 | 61 20 62 75 66 66 65 72 |ffer or |a buffer|
|00004ab0| 20 6e 61 6d 65 2e 22 20 | 28 62 79 74 65 2d 63 6f | name." |(byte-co|
|00004ac0| 64 65 20 22 c0 c1 c2 20 | c3 23 43 87 22 20 5b 72 |de "... |.#C." [r|
|00004ad0| 65 61 64 2d 62 75 66 66 | 65 72 20 22 49 6e 73 65 |ead-buff|er "Inse|
|00004ae0| 72 74 20 62 75 66 66 65 | 72 3a 20 22 20 6f 74 68 |rt buffe|r: " oth|
|00004af0| 65 72 2d 62 75 66 66 65 | 72 20 74 5d 20 34 29 5d |er-buffe|r t] 4)]|
|00004b00| 29 0a 28 66 73 65 74 20 | 27 61 70 70 65 6e 64 2d |).(fset |'append-|
|00004b10| 74 6f 2d 62 75 66 66 65 | 72 20 23 5b 28 62 75 66 |to-buffe|r #[(buf|
|00004b20| 66 65 72 20 73 74 61 72 | 74 20 65 6e 64 29 20 22 |fer star|t end) "|
|00004b30| 70 18 8a c1 5c 6e 21 71 | 88 c3 08 0c 0d 23 2a 87 |p...\n!q|.....#*.|
|00004b40| 22 20 5b 6f 6c 64 62 75 | 66 20 67 65 74 2d 62 75 |" [oldbu|f get-bu|
|00004b50| 66 66 65 72 2d 63 72 65 | 61 74 65 20 62 75 66 66 |ffer-cre|ate buff|
|00004b60| 65 72 20 69 6e 73 65 72 | 74 2d 62 75 66 66 65 72 |er inser|t-buffer|
|00004b70| 2d 73 75 62 73 74 72 69 | 6e 67 20 73 74 61 72 74 |-substri|ng start|
|00004b80| 20 65 6e 64 5d 20 34 20 | 22 5c 0a 41 70 70 65 6e | end] 4 |"\.Appen|
|00004b90| 64 20 74 6f 20 73 70 65 | 63 69 66 69 65 64 20 62 |d to spe|cified b|
|00004ba0| 75 66 66 65 72 20 74 68 | 65 20 74 65 78 74 20 6f |uffer th|e text o|
|00004bb0| 66 20 74 68 65 20 72 65 | 67 69 6f 6e 2e 0a 49 74 |f the re|gion..It|
|00004bc0| 20 69 73 20 69 6e 73 65 | 72 74 65 64 20 69 6e 74 | is inse|rted int|
|00004bd0| 6f 20 74 68 61 74 20 62 | 75 66 66 65 72 20 62 65 |o that b|uffer be|
|00004be0| 66 6f 72 65 20 69 74 73 | 20 70 6f 69 6e 74 2e 0a |fore its| point..|
|00004bf0| 0a 57 68 65 6e 20 63 61 | 6c 6c 69 6e 67 20 66 72 |.When ca|lling fr|
|00004c00| 6f 6d 20 61 20 70 72 6f | 67 72 61 6d 2c 20 67 69 |om a pro|gram, gi|
|00004c10| 76 65 20 74 68 72 65 65 | 20 61 72 67 75 6d 65 6e |ve three| argumen|
|00004c20| 74 73 3a 0a 61 20 62 75 | 66 66 65 72 20 6f 72 20 |ts:.a bu|ffer or |
|00004c30| 74 68 65 20 6e 61 6d 65 | 20 6f 66 20 6f 6e 65 2c |the name| of one,|
|00004c40| 20 61 6e 64 20 74 77 6f | 20 63 68 61 72 61 63 74 | and two| charact|
|00004c50| 65 72 20 6e 75 6d 62 65 | 72 73 0a 73 70 65 63 69 |er numbe|rs.speci|
|00004c60| 66 79 69 6e 67 20 74 68 | 65 20 70 6f 72 74 69 6f |fying th|e portio|
|00004c70| 6e 20 6f 66 20 74 68 65 | 20 63 75 72 72 65 6e 74 |n of the| current|
|00004c80| 20 62 75 66 66 65 72 20 | 74 6f 20 62 65 20 63 6f | buffer |to be co|
|00004c90| 70 69 65 64 2e 22 20 22 | 42 41 70 70 65 6e 64 20 |pied." "|BAppend |
|00004ca0| 74 6f 20 62 75 66 66 65 | 72 3a 20 5c 6e 72 22 5d |to buffe|r: \nr"]|
|00004cb0| 29 0a 28 66 73 65 74 20 | 27 70 72 65 70 65 6e 64 |).(fset |'prepend|
|00004cc0| 2d 74 6f 2d 62 75 66 66 | 65 72 20 23 5b 28 62 75 |-to-buff|er #[(bu|
|00004cd0| 66 66 65 72 20 73 74 61 | 72 74 20 65 6e 64 29 20 |ffer sta|rt end) |
|00004ce0| 22 70 18 8a c1 5c 6e 21 | 71 88 8a c3 08 0c 0d 23 |"p...\n!|q......#|
|00004cf0| 2b 87 22 20 5b 6f 6c 64 | 62 75 66 20 67 65 74 2d |+." [old|buf get-|
|00004d00| 62 75 66 66 65 72 2d 63 | 72 65 61 74 65 20 62 75 |buffer-c|reate bu|
|00004d10| 66 66 65 72 20 69 6e 73 | 65 72 74 2d 62 75 66 66 |ffer ins|ert-buff|
|00004d20| 65 72 2d 73 75 62 73 74 | 72 69 6e 67 20 73 74 61 |er-subst|ring sta|
|00004d30| 72 74 20 65 6e 64 5d 20 | 34 20 22 5c 0a 50 72 65 |rt end] |4 "\.Pre|
|00004d40| 70 65 6e 64 20 74 6f 20 | 73 70 65 63 69 66 69 65 |pend to |specifie|
|00004d50| 64 20 62 75 66 66 65 72 | 20 74 68 65 20 74 65 78 |d buffer| the tex|
|00004d60| 74 20 6f 66 20 74 68 65 | 20 72 65 67 69 6f 6e 2e |t of the| region.|
|00004d70| 0a 49 74 20 69 73 20 69 | 6e 73 65 72 74 65 64 20 |.It is i|nserted |
|00004d80| 69 6e 74 6f 20 74 68 61 | 74 20 62 75 66 66 65 72 |into tha|t buffer|
|00004d90| 20 61 66 74 65 72 20 69 | 74 73 20 70 6f 69 6e 74 | after i|ts point|
|00004da0| 2e 0a 0a 57 68 65 6e 20 | 63 61 6c 6c 69 6e 67 20 |...When |calling |
|00004db0| 66 72 6f 6d 20 61 20 70 | 72 6f 67 72 61 6d 2c 20 |from a p|rogram, |
|00004dc0| 67 69 76 65 20 74 68 72 | 65 65 20 61 72 67 75 6d |give thr|ee argum|
|00004dd0| 65 6e 74 73 3a 0a 61 20 | 62 75 66 66 65 72 20 6f |ents:.a |buffer o|
|00004de0| 72 20 74 68 65 20 6e 61 | 6d 65 20 6f 66 20 6f 6e |r the na|me of on|
|00004df0| 65 2c 20 61 6e 64 20 74 | 77 6f 20 63 68 61 72 61 |e, and t|wo chara|
|00004e00| 63 74 65 72 20 6e 75 6d | 62 65 72 73 0a 73 70 65 |cter num|bers.spe|
|00004e10| 63 69 66 79 69 6e 67 20 | 74 68 65 20 70 6f 72 74 |cifying |the port|
|00004e20| 69 6f 6e 20 6f 66 20 74 | 68 65 20 63 75 72 72 65 |ion of t|he curre|
|00004e30| 6e 74 20 62 75 66 66 65 | 72 20 74 6f 20 62 65 20 |nt buffe|r to be |
|00004e40| 63 6f 70 69 65 64 2e 22 | 20 22 42 50 72 65 70 65 |copied."| "BPrepe|
|00004e50| 6e 64 20 74 6f 20 62 75 | 66 66 65 72 3a 20 5c 6e |nd to bu|ffer: \n|
|00004e60| 72 22 5d 29 0a 28 66 73 | 65 74 20 27 63 6f 70 79 |r"]).(fs|et 'copy|
|00004e70| 2d 74 6f 2d 62 75 66 66 | 65 72 20 23 5b 28 62 75 |-to-buff|er #[(bu|
|00004e80| 66 66 65 72 20 73 74 61 | 72 74 20 65 6e 64 29 20 |ffer sta|rt end) |
|00004e90| 22 70 18 8a c1 5c 6e 21 | 71 88 c3 20 88 8a c4 08 |"p...\n!|q.. ....|
|00004ea0| 0d 0e 06 23 2b 87 22 20 | 5b 6f 6c 64 62 75 66 20 |...#+." |[oldbuf |
|00004eb0| 67 65 74 2d 62 75 66 66 | 65 72 2d 63 72 65 61 74 |get-buff|er-creat|
|00004ec0| 65 20 62 75 66 66 65 72 | 20 65 72 61 73 65 2d 62 |e buffer| erase-b|
|00004ed0| 75 66 66 65 72 20 69 6e | 73 65 72 74 2d 62 75 66 |uffer in|sert-buf|
|00004ee0| 66 65 72 2d 73 75 62 73 | 74 72 69 6e 67 20 73 74 |fer-subs|tring st|
|00004ef0| 61 72 74 20 65 6e 64 5d | 20 34 20 22 5c 0a 43 6f |art end]| 4 "\.Co|
|00004f00| 70 79 20 74 6f 20 73 70 | 65 63 69 66 69 65 64 20 |py to sp|ecified |
|00004f10| 62 75 66 66 65 72 20 74 | 68 65 20 74 65 78 74 20 |buffer t|he text |
|00004f20| 6f 66 20 74 68 65 20 72 | 65 67 69 6f 6e 2e 0a 49 |of the r|egion..I|
|00004f30| 74 20 69 73 20 69 6e 73 | 65 72 74 65 64 20 69 6e |t is ins|erted in|
|00004f40| 74 6f 20 74 68 61 74 20 | 62 75 66 66 65 72 2c 20 |to that |buffer, |
|00004f50| 72 65 70 6c 61 63 69 6e | 67 20 65 78 69 73 74 69 |replacin|g existi|
|00004f60| 6e 67 20 74 65 78 74 20 | 74 68 65 72 65 2e 0a 0a |ng text |there...|
|00004f70| 57 68 65 6e 20 63 61 6c | 6c 69 6e 67 20 66 72 6f |When cal|ling fro|
|00004f80| 6d 20 61 20 70 72 6f 67 | 72 61 6d 2c 20 67 69 76 |m a prog|ram, giv|
|00004f90| 65 20 74 68 72 65 65 20 | 61 72 67 75 6d 65 6e 74 |e three |argument|
|00004fa0| 73 3a 0a 61 20 62 75 66 | 66 65 72 20 6f 72 20 74 |s:.a buf|fer or t|
|00004fb0| 68 65 20 6e 61 6d 65 20 | 6f 66 20 6f 6e 65 2c 20 |he name |of one, |
|00004fc0| 61 6e 64 20 74 77 6f 20 | 63 68 61 72 61 63 74 65 |and two |characte|
|00004fd0| 72 20 6e 75 6d 62 65 72 | 73 0a 73 70 65 63 69 66 |r number|s.specif|
|00004fe0| 79 69 6e 67 20 74 68 65 | 20 70 6f 72 74 69 6f 6e |ying the| portion|
|00004ff0| 20 6f 66 20 74 68 65 20 | 63 75 72 72 65 6e 74 20 | of the |current |
|00005000| 62 75 66 66 65 72 20 74 | 6f 20 62 65 20 63 6f 70 |buffer t|o be cop|
|00005010| 69 65 64 2e 22 20 22 42 | 43 6f 70 79 20 74 6f 20 |ied." "B|Copy to |
|00005020| 62 75 66 66 65 72 3a 20 | 5c 6e 72 22 5d 29 0a 28 |buffer: |\nr"]).(|
|00005030| 66 73 65 74 20 27 6d 61 | 72 6b 20 23 5b 28 26 6f |fset 'ma|rk #[(&o|
|00005040| 70 74 69 6f 6e 61 6c 20 | 69 6e 61 63 74 69 76 65 |ptional |inactive|
|00005050| 2d 70 29 20 22 c0 09 21 | 89 1a ad 83 c3 5c 6e 21 |-p) "..!|.....\n!|
|00005060| 29 87 22 20 5b 6d 61 72 | 6b 2d 6d 61 72 6b 65 72 |)." [mar|k-marker|
|00005070| 20 69 6e 61 63 74 69 76 | 65 2d 70 20 6d 20 6d 61 | inactiv|e-p m ma|
|00005080| 72 6b 65 72 2d 70 6f 73 | 69 74 69 6f 6e 5d 20 33 |rker-pos|ition] 3|
|00005090| 20 22 5c 0a 52 65 74 75 | 72 6e 20 74 68 69 73 20 | "\.Retu|rn this |
|000050a0| 62 75 66 66 65 72 27 73 | 20 6d 61 72 6b 20 76 61 |buffer's| mark va|
|000050b0| 6c 75 65 20 61 73 20 69 | 6e 74 65 67 65 72 2c 20 |lue as i|nteger, |
|000050c0| 6f 72 20 6e 69 6c 20 69 | 66 20 6e 6f 20 6d 61 72 |or nil i|f no mar|
|000050d0| 6b 2e 0a 0a 49 66 20 60 | 7a 6d 61 63 73 2d 72 65 |k...If `|zmacs-re|
|000050e0| 67 69 6f 6e 73 27 20 69 | 73 20 74 72 75 65 2c 20 |gions' i|s true, |
|000050f0| 74 68 65 6e 20 74 68 69 | 73 20 72 65 74 75 72 6e |then thi|s return|
|00005100| 73 20 6e 69 6c 20 75 6e | 6c 65 73 73 20 74 68 65 |s nil un|less the|
|00005110| 20 72 65 67 69 6f 6e 20 | 69 73 0a 63 75 72 72 65 | region |is.curre|
|00005120| 6e 74 6c 79 20 69 6e 20 | 74 68 65 20 61 63 74 69 |ntly in |the acti|
|00005130| 76 65 20 28 68 69 6c 69 | 67 68 74 65 64 29 20 73 |ve (hili|ghted) s|
|00005140| 74 61 74 65 2e 20 20 57 | 69 74 68 20 61 6e 20 61 |tate. W|ith an a|
|00005150| 72 67 75 6d 65 6e 74 20 | 6f 66 20 74 2c 20 74 68 |rgument |of t, th|
|00005160| 69 73 0a 72 65 74 75 72 | 6e 73 20 74 68 65 20 6d |is.retur|ns the m|
|00005170| 61 72 6b 20 28 69 66 20 | 74 68 65 72 65 20 69 73 |ark (if |there is|
|00005180| 20 6f 6e 65 29 20 72 65 | 67 61 72 64 6c 65 73 73 | one) re|gardless|
|00005190| 20 6f 66 20 74 68 65 20 | 61 63 74 69 76 65 2d 72 | of the |active-r|
|000051a0| 65 67 69 6f 6e 20 73 74 | 61 74 65 2e 0a 59 6f 75 |egion st|ate..You|
|000051b0| 20 73 68 6f 75 6c 64 20 | 2a 67 65 6e 65 72 61 6c | should |*general|
|000051c0| 6c 79 2a 20 6e 6f 74 20 | 75 73 65 20 74 68 65 20 |ly* not |use the |
|000051d0| 6d 61 72 6b 20 75 6e 6c | 65 73 73 20 74 68 65 20 |mark unl|ess the |
|000051e0| 72 65 67 69 6f 6e 20 69 | 73 20 61 63 74 69 76 65 |region i|s active|
|000051f0| 2c 20 69 66 0a 74 68 65 | 20 75 73 65 72 20 68 61 |, if.the| user ha|
|00005200| 73 20 65 78 70 72 65 73 | 73 65 64 20 61 20 70 72 |s expres|sed a pr|
|00005210| 65 66 65 72 65 6e 63 65 | 20 66 6f 72 20 74 68 65 |eference| for the|
|00005220| 20 61 63 74 69 76 65 2d | 72 65 67 69 6f 6e 20 6d | active-|region m|
|00005230| 6f 64 65 6c 2e 0a 0a 49 | 66 20 79 6f 75 20 61 72 |odel...I|f you ar|
|00005240| 65 20 75 73 69 6e 67 20 | 74 68 69 73 20 69 6e 20 |e using |this in |
|00005250| 61 6e 20 65 64 69 74 69 | 6e 67 20 63 6f 6d 6d 61 |an editi|ng comma|
|00005260| 6e 64 2c 20 79 6f 75 20 | 61 72 65 20 6d 6f 73 74 |nd, you |are most|
|00005270| 20 6c 69 6b 65 6c 79 20 | 6d 61 6b 69 6e 67 0a 61 | likely |making.a|
|00005280| 20 6d 69 73 74 61 6b 65 | 3b 20 73 65 65 20 74 68 | mistake|; see th|
|00005290| 65 20 64 6f 63 75 6d 65 | 6e 74 61 74 69 6f 6e 20 |e docume|ntation |
|000052a0| 6f 66 20 60 73 65 74 2d | 6d 61 72 6b 27 2e 22 5d |of `set-|mark'."]|
|000052b0| 29 0a 28 66 73 65 74 20 | 27 73 65 74 2d 6d 61 72 |).(fset |'set-mar|
|000052c0| 6b 20 23 5b 28 70 6f 73 | 29 20 22 c0 c1 21 5c 6e |k #[(pos|) "..!\n|
|000052d0| 70 93 87 22 20 5b 6d 61 | 72 6b 2d 6d 61 72 6b 65 |p.." [ma|rk-marke|
|000052e0| 72 20 74 20 70 6f 73 5d | 20 33 20 22 5c 0a 53 65 |r t pos]| 3 "\.Se|
|000052f0| 74 20 74 68 69 73 20 62 | 75 66 66 65 72 27 73 20 |t this b|uffer's |
|00005300| 6d 61 72 6b 20 74 6f 20 | 50 4f 53 2e 20 20 44 6f |mark to |POS. Do|
|00005310| 6e 27 74 20 75 73 65 20 | 74 68 69 73 20 66 75 6e |n't use |this fun|
|00005320| 63 74 69 6f 6e 21 0a 54 | 68 61 74 20 69 73 20 74 |ction!.T|hat is t|
|00005330| 6f 20 73 61 79 2c 20 64 | 6f 6e 27 74 20 75 73 65 |o say, d|on't use|
|00005340| 20 74 68 69 73 20 66 75 | 6e 63 74 69 6f 6e 20 75 | this fu|nction u|
|00005350| 6e 6c 65 73 73 20 79 6f | 75 20 77 61 6e 74 0a 74 |nless yo|u want.t|
|00005360| 68 65 20 75 73 65 72 20 | 74 6f 20 73 65 65 20 74 |he user |to see t|
|00005370| 68 61 74 20 74 68 65 20 | 6d 61 72 6b 20 68 61 73 |hat the |mark has|
|00005380| 20 6d 6f 76 65 64 2c 20 | 61 6e 64 20 79 6f 75 20 | moved, |and you |
|00005390| 77 61 6e 74 20 74 68 65 | 20 70 72 65 76 69 6f 75 |want the| previou|
|000053a0| 73 0a 6d 61 72 6b 20 70 | 6f 73 69 74 69 6f 6e 20 |s.mark p|osition |
|000053b0| 74 6f 20 62 65 20 6c 6f | 73 74 2e 0a 0a 4e 6f 72 |to be lo|st...Nor|
|000053c0| 6d 61 6c 6c 79 2c 20 77 | 68 65 6e 20 61 20 6e 65 |mally, w|hen a ne|
|000053d0| 77 20 6d 61 72 6b 20 69 | 73 20 73 65 74 2c 20 74 |w mark i|s set, t|
|000053e0| 68 65 20 6f 6c 64 20 6f | 6e 65 20 73 68 6f 75 6c |he old o|ne shoul|
|000053f0| 64 20 67 6f 20 6f 6e 20 | 74 68 65 20 73 74 61 63 |d go on |the stac|
|00005400| 6b 2e 0a 54 68 69 73 20 | 69 73 20 77 68 79 20 6d |k..This |is why m|
|00005410| 6f 73 74 20 61 70 70 6c | 69 63 61 74 69 6f 6e 73 |ost appl|ications|
|00005420| 20 73 68 6f 75 6c 64 20 | 75 73 65 20 70 75 73 68 | should |use push|
|00005430| 2d 6d 61 72 6b 2c 20 6e | 6f 74 20 73 65 74 2d 6d |-mark, n|ot set-m|
|00005440| 61 72 6b 2e 0a 0a 4e 6f | 76 69 63 65 20 65 6d 61 |ark...No|vice ema|
|00005450| 63 73 2d 6c 69 73 70 20 | 70 72 6f 67 72 61 6d 6d |cs-lisp |programm|
|00005460| 65 72 73 20 6f 66 74 65 | 6e 20 74 72 79 20 74 6f |ers ofte|n try to|
|00005470| 20 75 73 65 20 74 68 65 | 20 6d 61 72 6b 20 66 6f | use the| mark fo|
|00005480| 72 20 74 68 65 20 77 72 | 6f 6e 67 0a 70 75 72 70 |r the wr|ong.purp|
|00005490| 6f 73 65 73 2e 20 20 54 | 68 65 20 6d 61 72 6b 20 |oses. T|he mark |
|000054a0| 73 61 76 65 73 20 61 20 | 6c 6f 63 61 74 69 6f 6e |saves a |location|
|000054b0| 20 66 6f 72 20 74 68 65 | 20 75 73 65 72 27 73 20 | for the| user's |
|000054c0| 63 6f 6e 76 65 6e 69 65 | 6e 63 65 2e 0a 4d 6f 73 |convenie|nce..Mos|
|000054d0| 74 20 65 64 69 74 69 6e | 67 20 63 6f 6d 6d 61 6e |t editin|g comman|
|000054e0| 64 73 20 73 68 6f 75 6c | 64 20 6e 6f 74 20 61 6c |ds shoul|d not al|
|000054f0| 74 65 72 20 74 68 65 20 | 6d 61 72 6b 2e 0a 54 6f |ter the |mark..To|
|00005500| 20 72 65 6d 65 6d 62 65 | 72 20 61 20 6c 6f 63 61 | remembe|r a loca|
|00005510| 74 69 6f 6e 20 66 6f 72 | 20 69 6e 74 65 72 6e 61 |tion for| interna|
|00005520| 6c 20 75 73 65 20 69 6e | 20 74 68 65 20 4c 69 73 |l use in| the Lis|
|00005530| 70 20 70 72 6f 67 72 61 | 6d 2c 0a 73 74 6f 72 65 |p progra|m,.store|
|00005540| 20 69 74 20 69 6e 20 61 | 20 4c 69 73 70 20 76 61 | it in a| Lisp va|
|00005550| 72 69 61 62 6c 65 2e 20 | 20 45 78 61 6d 70 6c 65 |riable. | Example|
|00005560| 3a 0a 0a 20 20 20 28 6c | 65 74 20 28 28 62 65 67 |:.. (l|et ((beg|
|00005570| 20 28 70 6f 69 6e 74 29 | 29 29 20 28 66 6f 72 77 | (point)|)) (forw|
|00005580| 61 72 64 2d 6c 69 6e 65 | 20 31 29 20 28 64 65 6c |ard-line| 1) (del|
|00005590| 65 74 65 2d 72 65 67 69 | 6f 6e 20 62 65 67 20 28 |ete-regi|on beg (|
|000055a0| 70 6f 69 6e 74 29 29 29 | 2e 22 5d 29 0a 28 64 65 |point)))|."]).(de|
|000055b0| 66 76 61 72 20 6d 61 72 | 6b 2d 72 69 6e 67 20 6e |fvar mar|k-ring n|
|000055c0| 69 6c 20 22 5c 0a 54 68 | 65 20 6c 69 73 74 20 6f |il "\.Th|e list o|
|000055d0| 66 20 73 61 76 65 64 20 | 66 6f 72 6d 65 72 20 6d |f saved |former m|
|000055e0| 61 72 6b 73 20 6f 66 20 | 74 68 65 20 63 75 72 72 |arks of |the curr|
|000055f0| 65 6e 74 20 62 75 66 66 | 65 72 2c 0a 6d 6f 73 74 |ent buff|er,.most|
|00005600| 20 72 65 63 65 6e 74 20 | 66 69 72 73 74 2e 22 29 | recent |first.")|
|00005610| 0a 28 6d 61 6b 65 2d 76 | 61 72 69 61 62 6c 65 2d |.(make-v|ariable-|
|00005620| 62 75 66 66 65 72 2d 6c | 6f 63 61 6c 20 27 6d 61 |buffer-l|ocal 'ma|
|00005630| 72 6b 2d 72 69 6e 67 29 | 0a 28 64 65 66 63 6f 6e |rk-ring)|.(defcon|
|00005640| 73 74 20 6d 61 72 6b 2d | 72 69 6e 67 2d 6d 61 78 |st mark-|ring-max|
|00005650| 20 31 36 20 22 5c 0a 2a | 4d 61 78 69 6d 75 6d 20 | 16 "\.*|Maximum |
|00005660| 73 69 7a 65 20 6f 66 20 | 6d 61 72 6b 20 72 69 6e |size of |mark rin|
|00005670| 67 2e 20 20 53 74 61 72 | 74 20 64 69 73 63 61 72 |g. Star|t discar|
|00005680| 64 69 6e 67 20 6f 66 66 | 20 65 6e 64 20 69 66 20 |ding off| end if |
|00005690| 67 65 74 73 20 74 68 69 | 73 20 62 69 67 2e 22 29 |gets thi|s big.")|
|000056a0| 0a 28 66 73 65 74 20 27 | 73 65 74 2d 6d 61 72 6b |.(fset '|set-mark|
|000056b0| 2d 63 6f 6d 6d 61 6e 64 | 20 23 5b 28 61 72 67 29 |-command| #[(arg)|
|000056c0| 20 22 08 ac 86 c1 20 88 | c2 20 87 c3 c4 21 ac 84 | ".... .|. ...!..|
|000056d0| c5 c6 21 87 c3 c4 21 62 | 88 c7 20 87 22 20 5b 61 |..!...!b|.. ." [a|
|000056e0| 72 67 20 70 75 73 68 2d | 6d 61 72 6b 20 7a 6d 61 |rg push-|mark zma|
|000056f0| 63 73 2d 61 63 74 69 76 | 61 74 65 2d 72 65 67 69 |cs-activ|ate-regi|
|00005700| 6f 6e 20 6d 61 72 6b 20 | 74 20 65 72 72 6f 72 20 |on mark |t error |
|00005710| 22 4e 6f 20 6d 61 72 6b | 20 73 65 74 20 69 6e 20 |"No mark| set in |
|00005720| 74 68 69 73 20 62 75 66 | 66 65 72 22 20 70 6f 70 |this buf|fer" pop|
|00005730| 2d 6d 61 72 6b 5d 20 32 | 20 22 5c 0a 53 65 74 20 |-mark] 2| "\.Set |
|00005740| 6d 61 72 6b 20 61 74 20 | 77 68 65 72 65 20 70 6f |mark at |where po|
|00005750| 69 6e 74 20 69 73 2c 20 | 6f 72 20 6a 75 6d 70 20 |int is, |or jump |
|00005760| 74 6f 20 6d 61 72 6b 2e | 0a 57 69 74 68 20 6e 6f |to mark.|.With no|
|00005770| 20 70 72 65 66 69 78 20 | 61 72 67 75 6d 65 6e 74 | prefix |argument|
|00005780| 2c 20 73 65 74 20 6d 61 | 72 6b 2c 20 61 6e 64 20 |, set ma|rk, and |
|00005790| 70 75 73 68 20 70 72 65 | 76 69 6f 75 73 20 6d 61 |push pre|vious ma|
|000057a0| 72 6b 20 6f 6e 20 6d 61 | 72 6b 20 72 69 6e 67 2e |rk on ma|rk ring.|
|000057b0| 0a 57 69 74 68 20 61 72 | 67 75 6d 65 6e 74 2c 20 |.With ar|gument, |
|000057c0| 6a 75 6d 70 20 74 6f 20 | 6d 61 72 6b 2c 20 61 6e |jump to |mark, an|
|000057d0| 64 20 70 6f 70 20 69 6e | 74 6f 20 6d 61 72 6b 20 |d pop in|to mark |
|000057e0| 6f 66 66 20 74 68 65 20 | 6d 61 72 6b 20 72 69 6e |off the |mark rin|
|000057f0| 67 2e 0a 0a 4e 6f 76 69 | 63 65 20 65 6d 61 63 73 |g...Novi|ce emacs|
|00005800| 2d 6c 69 73 70 20 70 72 | 6f 67 72 61 6d 6d 65 72 |-lisp pr|ogrammer|
|00005810| 73 20 6f 66 74 65 6e 20 | 74 72 79 20 74 6f 20 75 |s often |try to u|
|00005820| 73 65 20 74 68 65 20 6d | 61 72 6b 20 66 6f 72 20 |se the m|ark for |
|00005830| 74 68 65 20 77 72 6f 6e | 67 0a 70 75 72 70 6f 73 |the wron|g.purpos|
|00005840| 65 73 2e 20 20 53 65 65 | 20 74 68 65 20 64 6f 63 |es. See| the doc|
|00005850| 75 6d 65 6e 74 61 74 69 | 6f 6e 20 6f 66 20 60 73 |umentati|on of `s|
|00005860| 65 74 2d 6d 61 72 6b 27 | 20 66 6f 72 20 6d 6f 72 |et-mark'| for mor|
|00005870| 65 20 69 6e 66 6f 72 6d | 61 74 69 6f 6e 2e 22 20 |e inform|ation." |
|00005880| 22 50 22 5d 29 0a 28 66 | 73 65 74 20 27 70 75 73 |"P"]).(f|set 'pus|
|00005890| 68 2d 6d 61 72 6b 20 23 | 5b 28 26 6f 70 74 69 6f |h-mark #|[(&optio|
|000058a0| 6e 61 6c 20 6c 6f 63 61 | 74 69 6f 6e 20 6e 6f 6d |nal loca|tion nom|
|000058b0| 73 67 29 20 22 c0 c1 21 | ab 9d c2 c3 c1 21 21 0c |sg) "..!|.....!!.|
|000058c0| 42 89 14 47 0d 56 ab 8f | 0d 0c 9b 40 c6 89 93 88 |B..G.V..|...@....|
|000058d0| 0d 53 0c 9b c6 a1 88 c7 | 0e 08 ae 81 60 21 88 0e |.S......|....`!..|
|000058e0| 09 ac 8e 0e 5c 6e ac 8a | cb 20 cc 56 ac 84 cd ce |....\n..|. .V....|
|000058f0| 21 88 c6 87 22 20 5b 6d | 61 72 6b 20 74 20 63 6f |!..." [m|ark t co|
|00005900| 70 79 2d 6d 61 72 6b 65 | 72 20 6d 61 72 6b 2d 6d |py-marke|r mark-m|
|00005910| 61 72 6b 65 72 20 6d 61 | 72 6b 2d 72 69 6e 67 20 |arker ma|rk-ring |
|00005920| 6d 61 72 6b 2d 72 69 6e | 67 2d 6d 61 78 20 6e 69 |mark-rin|g-max ni|
|00005930| 6c 20 73 65 74 2d 6d 61 | 72 6b 20 6c 6f 63 61 74 |l set-ma|rk locat|
|00005940| 69 6f 6e 20 6e 6f 6d 73 | 67 20 65 78 65 63 75 74 |ion noms|g execut|
|00005950| 69 6e 67 2d 6d 61 63 72 | 6f 20 6d 69 6e 69 62 75 |ing-macr|o minibu|
|00005960| 66 66 65 72 2d 64 65 70 | 74 68 20 30 20 6d 65 73 |ffer-dep|th 0 mes|
|00005970| 73 61 67 65 20 22 4d 61 | 72 6b 20 73 65 74 22 5d |sage "Ma|rk set"]|
|00005980| 20 34 20 22 5c 0a 53 65 | 74 20 6d 61 72 6b 20 61 | 4 "\.Se|t mark a|
|00005990| 74 20 4c 4f 43 41 54 49 | 4f 4e 20 28 70 6f 69 6e |t LOCATI|ON (poin|
|000059a0| 74 2c 20 62 79 20 64 65 | 66 61 75 6c 74 29 20 61 |t, by de|fault) a|
|000059b0| 6e 64 20 70 75 73 68 20 | 6f 6c 64 20 6d 61 72 6b |nd push |old mark|
|000059c0| 20 6f 6e 20 6d 61 72 6b | 20 72 69 6e 67 2e 0a 44 | on mark| ring..D|
|000059d0| 69 73 70 6c 61 79 73 20 | 5c 22 4d 61 72 6b 20 73 |isplays |\"Mark s|
|000059e0| 65 74 5c 22 20 75 6e 6c | 65 73 73 20 74 68 65 20 |et\" unl|ess the |
|000059f0| 6f 70 74 69 6f 6e 61 6c | 20 73 65 63 6f 6e 64 20 |optional| second |
|00005a00| 61 72 67 20 4e 4f 4d 53 | 47 20 69 73 20 6e 6f 6e |arg NOMS|G is non|
|00005a10| 2d 6e 69 6c 2e 0a 0a 4e | 6f 76 69 63 65 20 65 6d |-nil...N|ovice em|
|00005a20| 61 63 73 2d 6c 69 73 70 | 20 70 72 6f 67 72 61 6d |acs-lisp| program|
|00005a30| 6d 65 72 73 20 6f 66 74 | 65 6e 20 74 72 79 20 74 |mers oft|en try t|
|00005a40| 6f 20 75 73 65 20 74 68 | 65 20 6d 61 72 6b 20 66 |o use th|e mark f|
|00005a50| 6f 72 20 74 68 65 20 77 | 72 6f 6e 67 0a 70 75 72 |or the w|rong.pur|
|00005a60| 70 6f 73 65 73 2e 20 20 | 53 65 65 20 74 68 65 20 |poses. |See the |
|00005a70| 64 6f 63 75 6d 65 6e 74 | 61 74 69 6f 6e 20 6f 66 |document|ation of|
|00005a80| 20 60 73 65 74 2d 6d 61 | 72 6b 27 20 66 6f 72 20 | `set-ma|rk' for |
|00005a90| 6d 6f 72 65 20 69 6e 66 | 6f 72 6d 61 74 69 6f 6e |more inf|ormation|
|00005aa0| 2e 22 5d 29 0a 28 66 73 | 65 74 20 27 70 6f 70 2d |."]).(fs|et 'pop-|
|00005ab0| 6d 61 72 6b 20 23 5b 6e | 69 6c 20 22 08 ad a0 08 |mark #[n|il "....|
|00005ac0| c1 c2 c3 21 21 43 a4 10 | c4 08 40 21 88 08 40 c5 |...!!C..|..@!..@.|
|00005ad0| 89 93 88 c6 c3 21 ac 83 | c7 20 88 08 41 89 10 87 |.....!..|. ..A...|
|00005ae0| 22 20 5b 6d 61 72 6b 2d | 72 69 6e 67 20 63 6f 70 |" [mark-|ring cop|
|00005af0| 79 2d 6d 61 72 6b 65 72 | 20 6d 61 72 6b 2d 6d 61 |y-marker| mark-ma|
|00005b00| 72 6b 65 72 20 74 20 73 | 65 74 2d 6d 61 72 6b 20 |rker t s|et-mark |
|00005b10| 6e 69 6c 20 6d 61 72 6b | 20 64 69 6e 67 5d 20 34 |nil mark| ding] 4|
|00005b20| 20 22 5c 0a 50 6f 70 20 | 6f 66 66 20 6d 61 72 6b | "\.Pop |off mark|
|00005b30| 20 72 69 6e 67 20 69 6e | 74 6f 20 74 68 65 20 62 | ring in|to the b|
|00005b40| 75 66 66 65 72 27 73 20 | 61 63 74 75 61 6c 20 6d |uffer's |actual m|
|00005b50| 61 72 6b 2e 0a 44 6f 65 | 73 20 6e 6f 74 20 73 65 |ark..Doe|s not se|
|00005b60| 74 20 70 6f 69 6e 74 2e | 20 20 44 6f 65 73 20 6e |t point.| Does n|
|00005b70| 6f 74 68 69 6e 67 20 69 | 66 20 6d 61 72 6b 20 72 |othing i|f mark r|
|00005b80| 69 6e 67 20 69 73 20 65 | 6d 70 74 79 2e 22 5d 29 |ing is e|mpty."])|
|00005b90| 0a 28 66 73 65 74 20 27 | 65 78 63 68 61 6e 67 65 |.(fset '|exchange|
|00005ba0| 2d 64 6f 74 2d 61 6e 64 | 2d 6d 61 72 6b 20 27 65 |-dot-and|-mark 'e|
|00005bb0| 78 63 68 61 6e 67 65 2d | 70 6f 69 6e 74 2d 61 6e |xchange-|point-an|
|00005bc0| 64 2d 6d 61 72 6b 29 0a | 28 66 73 65 74 20 27 65 |d-mark).|(fset 'e|
|00005bd0| 78 63 68 61 6e 67 65 2d | 70 6f 69 6e 74 2d 61 6e |xchange-|point-an|
|00005be0| 64 2d 6d 61 72 6b 20 23 | 5b 28 26 6f 70 74 69 6f |d-mark #|[(&optio|
|00005bf0| 6e 61 6c 20 64 6f 6e 74 | 2d 61 63 74 69 76 61 74 |nal dont|-activat|
|00005c00| 65 2d 72 65 67 69 6f 6e | 29 20 22 c0 c1 21 89 1a |e-region|) "..!..|
|00005c10| ac 84 c3 c4 21 88 c5 60 | 21 88 5c 6e 62 88 0e 06 |....!..`|!.\nb...|
|00005c20| ac 83 c7 20 88 29 c8 87 | 22 20 5b 6d 61 72 6b 20 |... .)..|" [mark |
|00005c30| 74 20 6f 6d 61 72 6b 20 | 65 72 72 6f 72 20 22 4e |t omark |error "N|
|00005c40| 6f 20 6d 61 72 6b 20 73 | 65 74 20 69 6e 20 74 68 |o mark s|et in th|
|00005c50| 69 73 20 62 75 66 66 65 | 72 22 20 73 65 74 2d 6d |is buffe|r" set-m|
|00005c60| 61 72 6b 20 64 6f 6e 74 | 2d 61 63 74 69 76 61 74 |ark dont|-activat|
|00005c70| 65 2d 72 65 67 69 6f 6e | 20 7a 6d 61 63 73 2d 61 |e-region| zmacs-a|
|00005c80| 63 74 69 76 61 74 65 2d | 72 65 67 69 6f 6e 20 6e |ctivate-|region n|
|00005c90| 69 6c 5d 20 33 20 22 5c | 0a 50 75 74 20 74 68 65 |il] 3 "\|.Put the|
|00005ca0| 20 6d 61 72 6b 20 77 68 | 65 72 65 20 70 6f 69 6e | mark wh|ere poin|
|00005cb0| 74 20 69 73 20 6e 6f 77 | 2c 20 61 6e 64 20 70 6f |t is now|, and po|
|00005cc0| 69 6e 74 20 77 68 65 72 | 65 20 74 68 65 20 6d 61 |int wher|e the ma|
|00005cd0| 72 6b 20 69 73 20 6e 6f | 77 2e 22 20 6e 69 6c 5d |rk is no|w." nil]|
|00005ce0| 29 0a 28 64 65 66 76 61 | 72 20 6e 65 78 74 2d 6c |).(defva|r next-l|
|00005cf0| 69 6e 65 2d 65 78 74 65 | 6e 64 73 2d 65 6e 64 2d |ine-exte|nds-end-|
|00005d00| 6f 66 2d 62 75 66 66 65 | 72 20 74 20 22 5c 0a 2a |of-buffe|r t "\.*|
|00005d10| 49 66 20 6e 6f 6e 2d 6e | 69 6c 2c 20 77 68 65 6e |If non-n|il, when|
|00005d20| 20 5c 5c 5b 6e 65 78 74 | 2d 6c 69 6e 65 5d 20 69 | \\[next|-line] i|
|00005d30| 73 20 69 6e 76 6f 6b 65 | 64 20 6f 6e 20 74 68 65 |s invoke|d on the|
|00005d40| 20 6c 61 73 74 20 6c 69 | 6e 65 20 6f 66 20 61 20 | last li|ne of a |
|00005d50| 62 75 66 66 65 72 2c 0a | 61 20 6e 65 77 6c 69 6e |buffer,.|a newlin|
|00005d60| 65 20 63 68 61 72 61 63 | 74 65 72 20 69 73 20 69 |e charac|ter is i|
|00005d70| 6e 73 65 72 74 65 64 20 | 74 6f 20 63 72 65 61 74 |nserted |to creat|
|00005d80| 65 20 61 20 6e 65 77 20 | 6c 69 6e 65 2e 0a 49 66 |e a new |line..If|
|00005d90| 20 6e 69 6c 2c 20 5c 5c | 5b 6e 65 78 74 2d 6c 69 | nil, \\|[next-li|
|00005da0| 6e 65 5d 20 73 69 67 6e | 61 6c 73 20 61 6e 20 60 |ne] sign|als an `|
|00005db0| 65 6e 64 2d 6f 66 2d 62 | 75 66 66 65 72 27 20 69 |end-of-b|uffer' i|
|00005dc0| 6e 20 74 68 61 74 20 73 | 69 74 75 61 74 69 6f 6e |n that s|ituation|
|00005dd0| 2e 22 29 0a 28 66 73 65 | 74 20 27 6e 65 78 74 2d |.").(fse|t 'next-|
|00005de0| 6c 69 6e 65 20 23 5b 28 | 61 72 67 29 20 22 08 c1 |line #[(|arg) "..|
|00005df0| 55 ab a9 60 1a c1 79 88 | 5c 6e 60 55 ac 85 68 c3 |U..`..y.|\n`U..h.|
|00005e00| 3d ac 90 0c ac 85 c5 c6 | c7 5c 22 88 c3 63 88 c8 |=.......|.\"..c..|
|00005e10| 16 09 aa 87 5c 6e 62 88 | ca 08 21 88 29 aa 84 ca |....\nb.|..!.)...|
|00005e20| 08 21 88 c7 87 22 20 5b | 61 72 67 20 31 20 6f 70 |.!..." [|arg 1 op|
|00005e30| 6f 69 6e 74 20 31 30 20 | 6e 65 78 74 2d 6c 69 6e |oint 10 |next-lin|
|00005e40| 65 2d 65 78 74 65 6e 64 | 73 2d 65 6e 64 2d 6f 66 |e-extend|s-end-of|
|00005e50| 2d 62 75 66 66 65 72 20 | 73 69 67 6e 61 6c 20 65 |-buffer |signal e|
|00005e60| 6e 64 2d 6f 66 2d 62 75 | 66 66 65 72 20 6e 69 6c |nd-of-bu|ffer nil|
|00005e70| 20 74 20 7a 6d 61 63 73 | 2d 72 65 67 69 6f 6e 2d | t zmacs|-region-|
|00005e80| 73 74 61 79 73 20 6c 69 | 6e 65 2d 6d 6f 76 65 5d |stays li|ne-move]|
|00005e90| 20 33 20 22 5c 0a 4d 6f | 76 65 20 63 75 72 73 6f | 3 "\.Mo|ve curso|
|00005ea0| 72 20 76 65 72 74 69 63 | 61 6c 6c 79 20 64 6f 77 |r vertic|ally dow|
|00005eb0| 6e 20 41 52 47 20 6c 69 | 6e 65 73 2e 0a 49 66 20 |n ARG li|nes..If |
|00005ec0| 74 68 65 72 65 20 69 73 | 20 6e 6f 20 63 68 61 72 |there is| no char|
|00005ed0| 61 63 74 65 72 20 69 6e | 20 74 68 65 20 74 61 72 |acter in| the tar|
|00005ee0| 67 65 74 20 6c 69 6e 65 | 20 65 78 61 63 74 6c 79 |get line| exactly|
|00005ef0| 20 75 6e 64 65 72 20 74 | 68 65 20 63 75 72 72 65 | under t|he curre|
|00005f00| 6e 74 20 63 6f 6c 75 6d | 6e 2c 0a 74 68 65 20 63 |nt colum|n,.the c|
|00005f10| 75 72 73 6f 72 20 69 73 | 20 70 6f 73 69 74 69 6f |ursor is| positio|
|00005f20| 6e 65 64 20 61 66 74 65 | 72 20 74 68 65 20 63 68 |ned afte|r the ch|
|00005f30| 61 72 61 63 74 65 72 20 | 69 6e 20 74 68 61 74 20 |aracter |in that |
|00005f40| 6c 69 6e 65 20 77 68 69 | 63 68 20 73 70 61 6e 73 |line whi|ch spans|
|00005f50| 20 74 68 69 73 0a 63 6f | 6c 75 6d 6e 2c 20 6f 72 | this.co|lumn, or|
|00005f60| 20 61 74 20 74 68 65 20 | 65 6e 64 20 6f 66 20 74 | at the |end of t|
|00005f70| 68 65 20 6c 69 6e 65 20 | 69 66 20 69 74 20 69 73 |he line |if it is|
|00005f80| 20 6e 6f 74 20 6c 6f 6e | 67 20 65 6e 6f 75 67 68 | not lon|g enough|
|00005f90| 2e 0a 0a 49 66 20 74 68 | 65 20 76 61 72 69 61 62 |...If th|e variab|
|00005fa0| 6c 65 20 60 6e 65 78 74 | 2d 6c 69 6e 65 2d 65 78 |le `next|-line-ex|
|00005fb0| 74 65 6e 64 73 2d 65 6e | 64 2d 6f 66 2d 62 75 66 |tends-en|d-of-buf|
|00005fc0| 66 65 72 27 20 69 73 20 | 74 72 75 65 20 61 6e 64 |fer' is |true and|
|00005fd0| 20 74 68 65 72 65 20 69 | 73 20 6e 6f 20 6c 69 6e | there i|s no lin|
|00005fe0| 65 0a 69 6e 20 74 68 65 | 20 62 75 66 66 65 72 20 |e.in the| buffer |
|00005ff0| 61 66 74 65 72 20 74 68 | 69 73 20 6f 6e 65 2c 20 |after th|is one, |
|00006000| 61 20 6e 65 77 6c 69 6e | 65 20 63 68 61 72 61 63 |a newlin|e charac|
|00006010| 74 65 72 20 69 73 20 69 | 6e 73 65 72 74 65 64 20 |ter is i|nserted |
|00006020| 74 6f 20 63 72 65 61 74 | 65 0a 61 20 6c 69 6e 65 |to creat|e.a line|
|00006030| 20 61 6e 64 20 74 68 65 | 20 63 75 72 73 6f 72 20 | and the| cursor |
|00006040| 6d 6f 76 65 73 20 74 6f | 20 74 68 61 74 20 6c 69 |moves to| that li|
|00006050| 6e 65 2e 0a 0a 54 68 65 | 20 63 6f 6d 6d 61 6e 64 |ne...The| command|
|00006060| 20 5c 5c 5b 73 65 74 2d | 67 6f 61 6c 2d 63 6f 6c | \\[set-|goal-col|
|00006070| 75 6d 6e 5d 20 63 61 6e | 20 62 65 20 75 73 65 64 |umn] can| be used|
|00006080| 20 74 6f 20 63 72 65 61 | 74 65 0a 61 20 73 65 6d | to crea|te.a sem|
|00006090| 69 70 65 72 6d 61 6e 65 | 6e 74 20 67 6f 61 6c 20 |ipermane|nt goal |
|000060a0| 63 6f 6c 75 6d 6e 20 74 | 6f 20 77 68 69 63 68 20 |column t|o which |
|000060b0| 74 68 69 73 20 63 6f 6d | 6d 61 6e 64 20 61 6c 77 |this com|mand alw|
|000060c0| 61 79 73 20 6d 6f 76 65 | 73 2e 0a 54 68 65 6e 20 |ays move|s..Then |
|000060d0| 69 74 20 64 6f 65 73 20 | 6e 6f 74 20 74 72 79 20 |it does |not try |
|000060e0| 74 6f 20 6d 6f 76 65 20 | 76 65 72 74 69 63 61 6c |to move |vertical|
|000060f0| 6c 79 2e 20 20 54 68 69 | 73 20 67 6f 61 6c 20 63 |ly. Thi|s goal c|
|00006100| 6f 6c 75 6d 6e 20 69 73 | 20 73 74 6f 72 65 64 0a |olumn is| stored.|
|00006110| 69 6e 20 60 67 6f 61 6c | 2d 63 6f 6c 75 6d 6e 27 |in `goal|-column'|
|00006120| 2c 20 77 68 69 63 68 20 | 69 73 20 6e 69 6c 20 77 |, which |is nil w|
|00006130| 68 65 6e 20 74 68 65 72 | 65 20 69 73 20 6e 6f 6e |hen ther|e is non|
|00006140| 65 2e 0a 0a 49 66 20 79 | 6f 75 20 61 72 65 20 74 |e...If y|ou are t|
|00006150| 68 69 6e 6b 69 6e 67 20 | 6f 66 20 75 73 69 6e 67 |hinking |of using|
|00006160| 20 74 68 69 73 20 69 6e | 20 61 20 4c 69 73 70 20 | this in| a Lisp |
|00006170| 70 72 6f 67 72 61 6d 2c | 20 63 6f 6e 73 69 64 65 |program,| conside|
|00006180| 72 0a 75 73 69 6e 67 20 | 60 66 6f 72 77 61 72 64 |r.using |`forward|
|00006190| 2d 6c 69 6e 65 27 20 69 | 6e 73 74 65 61 64 2e 20 |-line' i|nstead. |
|000061a0| 20 49 74 20 69 73 20 75 | 73 75 61 6c 6c 79 20 65 | It is u|sually e|
|000061b0| 61 73 69 65 72 20 74 6f | 20 75 73 65 0a 61 6e 64 |asier to| use.and|
|000061c0| 20 6d 6f 72 65 20 72 65 | 6c 69 61 62 6c 65 20 28 | more re|liable (|
|000061d0| 6e 6f 20 64 65 70 65 6e | 64 65 6e 63 65 20 6f 6e |no depen|dence on|
|000061e0| 20 67 6f 61 6c 20 63 6f | 6c 75 6d 6e 2c 20 65 74 | goal co|lumn, et|
|000061f0| 63 2e 29 2e 22 20 22 70 | 22 5d 29 0a 28 66 73 65 |c.)." "p|"]).(fse|
|00006200| 74 20 27 70 72 65 76 69 | 6f 75 73 2d 6c 69 6e 65 |t 'previ|ous-line|
|00006210| 20 23 5b 28 61 72 67 29 | 20 22 c0 09 5b 21 88 c2 | #[(arg)| "..[!..|
|00006220| 87 22 20 5b 6c 69 6e 65 | 2d 6d 6f 76 65 20 61 72 |." [line|-move ar|
|00006230| 67 20 6e 69 6c 5d 20 32 | 20 22 5c 0a 4d 6f 76 65 |g nil] 2| "\.Move|
|00006240| 20 63 75 72 73 6f 72 20 | 76 65 72 74 69 63 61 6c | cursor |vertical|
|00006250| 6c 79 20 75 70 20 41 52 | 47 20 6c 69 6e 65 73 2e |ly up AR|G lines.|
|00006260| 0a 49 66 20 74 68 65 72 | 65 20 69 73 20 6e 6f 20 |.If ther|e is no |
|00006270| 63 68 61 72 61 63 74 65 | 72 20 69 6e 20 74 68 65 |characte|r in the|
|00006280| 20 74 61 72 67 65 74 20 | 6c 69 6e 65 20 65 78 61 | target |line exa|
|00006290| 63 74 6c 79 20 6f 76 65 | 72 20 74 68 65 20 63 75 |ctly ove|r the cu|
|000062a0| 72 72 65 6e 74 20 63 6f | 6c 75 6d 6e 2c 0a 74 68 |rrent co|lumn,.th|
|000062b0| 65 20 63 75 72 73 6f 72 | 20 69 73 20 70 6f 73 69 |e cursor| is posi|
|000062c0| 74 69 6f 6e 65 64 20 61 | 66 74 65 72 20 74 68 65 |tioned a|fter the|
|000062d0| 20 63 68 61 72 61 63 74 | 65 72 20 69 6e 20 74 68 | charact|er in th|
|000062e0| 61 74 20 6c 69 6e 65 20 | 77 68 69 63 68 20 73 70 |at line |which sp|
|000062f0| 61 6e 73 20 74 68 69 73 | 0a 63 6f 6c 75 6d 6e 2c |ans this|.column,|
|00006300| 20 6f 72 20 61 74 20 74 | 68 65 20 65 6e 64 20 6f | or at t|he end o|
|00006310| 66 20 74 68 65 20 6c 69 | 6e 65 20 69 66 20 69 74 |f the li|ne if it|
|00006320| 20 69 73 20 6e 6f 74 20 | 6c 6f 6e 67 20 65 6e 6f | is not |long eno|
|00006330| 75 67 68 2e 0a 0a 54 68 | 65 20 63 6f 6d 6d 61 6e |ugh...Th|e comman|
|00006340| 64 20 5c 5c 5b 73 65 74 | 2d 67 6f 61 6c 2d 63 6f |d \\[set|-goal-co|
|00006350| 6c 75 6d 6e 5d 20 63 61 | 6e 20 62 65 20 75 73 65 |lumn] ca|n be use|
|00006360| 64 20 74 6f 20 63 72 65 | 61 74 65 0a 61 20 73 65 |d to cre|ate.a se|
|00006370| 6d 69 70 65 72 6d 61 6e | 65 6e 74 20 67 6f 61 6c |miperman|ent goal|
|00006380| 20 63 6f 6c 75 6d 6e 20 | 74 6f 20 77 68 69 63 68 | column |to which|
|00006390| 20 74 68 69 73 20 63 6f | 6d 6d 61 6e 64 20 61 6c | this co|mmand al|
|000063a0| 77 61 79 73 20 6d 6f 76 | 65 73 2e 0a 54 68 65 6e |ways mov|es..Then|
|000063b0| 20 69 74 20 64 6f 65 73 | 20 6e 6f 74 20 74 72 79 | it does| not try|
|000063c0| 20 74 6f 20 6d 6f 76 65 | 20 76 65 72 74 69 63 61 | to move| vertica|
|000063d0| 6c 6c 79 2e 0a 0a 49 66 | 20 79 6f 75 20 61 72 65 |lly...If| you are|
|000063e0| 20 74 68 69 6e 6b 69 6e | 67 20 6f 66 20 75 73 69 | thinkin|g of usi|
|000063f0| 6e 67 20 74 68 69 73 20 | 69 6e 20 61 20 4c 69 73 |ng this |in a Lis|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.