home *** CD-ROM | disk | FTP | other *** search
/ BCI NET 2 / BCI NET 2.iso / archives / programming / source / a2.0bemacs-src.lha / Emacs-19.25 / lisp / simple.elc < prev    next >
Emacs Compiled Lisp  |  1995-01-03  |  56.6 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
100% file Emacs/XEmacs v19 byte-compiled Lisp data default
99% file data default
100% TrID Emacs/XEmacs byte-compiled Lisp (generic) default



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 64 67 69 6c 62 65 72 |piled by| dgilber|
|00000020| 74 40 6a 61 79 77 6f 6e | 2e 70 63 69 2e 6f 6e 2e |t@jaywon|.pci.on.|
|00000030| 63 61 20 6f 6e 20 4d 6f | 6e 20 4a 61 6e 20 20 32 |ca on Mo|n Jan 2|
|00000040| 20 32 32 3a 32 31 3a 31 | 34 20 31 39 39 35 0a 3b | 22:21:1|4 1995.;|
|00000050| 3b 3b 20 66 72 6f 6d 20 | 66 69 6c 65 20 66 69 76 |;; from |file fiv|
|00000060| 65 3a 43 57 6f 72 6b 2f | 65 6d 61 63 73 2d 31 39 |e:CWork/|emacs-19|
|00000070| 2e 32 35 2f 6c 69 73 70 | 2f 73 69 6d 70 6c 65 2e |.25/lisp|/simple.|
|00000080| 65 6c 0a 3b 3b 3b 20 65 | 6d 61 63 73 20 76 65 72 |el.;;; e|macs ver|
|00000090| 73 69 6f 6e 20 31 39 2e | 32 35 2e 31 2e 0a 3b 3b |sion 19.|25.1..;;|
|000000a0| 3b 20 62 79 74 65 63 6f | 6d 70 20 76 65 72 73 69 |; byteco|mp versi|
|000000b0| 6f 6e 20 46 53 46 20 32 | 2e 31 30 0a 3b 3b 3b 20 |on FSF 2|.10.;;; |
|000000c0| 6f 70 74 69 6d 69 7a 61 | 74 69 6f 6e 20 69 73 20 |optimiza|tion is |
|000000d0| 6f 6e 2e 0a 3b 3b 3b 20 | 74 68 69 73 20 66 69 6c |on..;;; |this fil|
|000000e0| 65 20 75 73 65 73 20 6f | 70 63 6f 64 65 73 20 77 |e uses o|pcodes w|
|000000f0| 68 69 63 68 20 64 6f 20 | 6e 6f 74 20 65 78 69 73 |hich do |not exis|
|00000100| 74 20 69 6e 20 45 6d 61 | 63 73 20 31 38 2e 0a 0a |t in Ema|cs 18...|
|00000110| 28 69 66 20 28 61 6e 64 | 20 28 62 6f 75 6e 64 70 |(if (and| (boundp|
|00000120| 20 27 65 6d 61 63 73 2d | 76 65 72 73 69 6f 6e 29 | 'emacs-|version)|
|00000130| 0a 09 20 28 6f 72 20 28 | 61 6e 64 20 28 62 6f 75 |.. (or (|and (bou|
|00000140| 6e 64 70 20 27 65 70 6f | 63 68 3a 3a 76 65 72 73 |ndp 'epo|ch::vers|
|00000150| 69 6f 6e 29 20 65 70 6f | 63 68 3a 3a 76 65 72 73 |ion) epo|ch::vers|
|00000160| 69 6f 6e 29 0a 09 20 20 | 20 20 20 28 73 74 72 69 |ion).. | (stri|
|00000170| 6e 67 2d 6c 65 73 73 70 | 20 65 6d 61 63 73 2d 76 |ng-lessp| emacs-v|
|00000180| 65 72 73 69 6f 6e 20 22 | 31 39 22 29 29 29 0a 20 |ersion "|19"))). |
|00000190| 20 20 20 28 65 72 72 6f | 72 20 22 60 66 69 76 65 | (erro|r "`five|
|000001a0| 3a 43 57 6f 72 6b 2f 65 | 6d 61 63 73 2d 31 39 2e |:CWork/e|macs-19.|
|000001b0| 32 35 2f 6c 69 73 70 2f | 73 69 6d 70 6c 65 2e 65 |25/lisp/|simple.e|
|000001c0| 6c 27 20 77 61 73 20 63 | 6f 6d 70 69 6c 65 64 20 |l' was c|ompiled |
|000001d0| 66 6f 72 20 45 6d 61 63 | 73 20 31 39 22 29 29 0a |for Emac|s 19")).|
|000001e0| 0a 28 64 65 66 61 6c 69 | 61 73 20 27 6f 70 65 6e |.(defali|as 'open|
|000001f0| 2d 6c 69 6e 65 20 23 5b | 28 61 72 67 29 20 22 08 |-line #[|(arg) ".|
|00000200| 85 05 00 6e 89 19 3f 85 | 11 00 6e 85 11 00 6f 3f |...n..?.|..n...o?|
|00000210| 89 1a 83 23 00 0b c4 3d | 84 20 00 60 0b 42 13 c5 |...#...=|. .`.B..|
|00000220| 75 88 8a 0e 06 c7 56 83 | 3e 00 09 83 32 00 08 63 |u.....V.|>...2..c|
|00000230| 88 c8 63 88 0e 06 53 89 | 16 06 82 26 00 29 c9 7f |..c...S.|...&.)..|
|00000240| 88 5c 6e 85 48 00 ca 75 | 2a 87 22 20 5b 66 69 6c |.\n.H..u|*." [fil|
|00000250| 6c 2d 70 72 65 66 69 78 | 20 64 6f 2d 66 69 6c 6c |l-prefix| do-fill|
|00000260| 2d 70 72 65 66 69 78 20 | 66 6c 61 67 20 62 75 66 |-prefix |flag buf|
|00000270| 66 65 72 2d 75 6e 64 6f | 2d 6c 69 73 74 20 74 20 |fer-undo|-list t |
|00000280| 2d 31 20 61 72 67 20 30 | 20 31 30 20 6e 69 6c 20 |-1 arg 0| 10 nil |
|00000290| 31 5d 20 33 20 22 5c 0a | 49 6e 73 65 72 74 20 61 |1] 3 "\.|Insert a|
|000002a0| 20 6e 65 77 6c 69 6e 65 | 20 61 6e 64 20 6c 65 61 | newline| and lea|
|000002b0| 76 65 20 70 6f 69 6e 74 | 20 62 65 66 6f 72 65 20 |ve point| before |
|000002c0| 69 74 2e 0a 49 66 20 74 | 68 65 72 65 20 69 73 20 |it..If t|here is |
|000002d0| 61 20 66 69 6c 6c 20 70 | 72 65 66 69 78 2c 20 69 |a fill p|refix, i|
|000002e0| 6e 73 65 72 74 20 74 68 | 65 20 66 69 6c 6c 20 70 |nsert th|e fill p|
|000002f0| 72 65 66 69 78 20 6f 6e | 20 74 68 65 20 6e 65 77 |refix on| the new|
|00000300| 20 6c 69 6e 65 0a 69 66 | 20 74 68 65 20 6c 69 6e | line.if| the lin|
|00000310| 65 20 77 6f 75 6c 64 20 | 68 61 76 65 20 62 65 65 |e would |have bee|
|00000320| 6e 20 65 6d 70 74 79 2e | 0a 57 69 74 68 20 61 72 |n empty.|.With ar|
|00000330| 67 20 4e 2c 20 69 6e 73 | 65 72 74 20 4e 20 6e 65 |g N, ins|ert N ne|
|00000340| 77 6c 69 6e 65 73 2e 22 | 20 22 2a 70 22 5d 29 0a |wlines."| "*p"]).|
|00000350| 28 64 65 66 61 6c 69 61 | 73 20 27 73 70 6c 69 74 |(defalia|s 'split|
|00000360| 2d 6c 69 6e 65 20 23 5b | 6e 69 6c 20 22 c0 c1 77 |-line #[|nil "..w|
|00000370| 88 69 60 1a 1b c4 63 88 | c5 0b c6 5c 22 88 5c 6e |.i`...c.|...\".\n|
|00000380| 62 2a 87 22 20 5b 22 20 | 09 22 20 6e 69 6c 20 70 |b*." [" |." nil p|
|00000390| 6f 73 20 63 6f 6c 20 31 | 30 20 69 6e 64 65 6e 74 |os col 1|0 indent|
|000003a0| 2d 74 6f 20 30 5d 20 33 | 20 22 5c 0a 53 70 6c 69 |-to 0] 3| "\.Spli|
|000003b0| 74 20 63 75 72 72 65 6e | 74 20 6c 69 6e 65 2c 20 |t curren|t line, |
|000003c0| 6d 6f 76 69 6e 67 20 70 | 6f 72 74 69 6f 6e 20 62 |moving p|ortion b|
|000003d0| 65 79 6f 6e 64 20 70 6f | 69 6e 74 20 76 65 72 74 |eyond po|int vert|
|000003e0| 69 63 61 6c 6c 79 20 64 | 6f 77 6e 2e 22 20 22 2a |ically d|own." "*|
|000003f0| 22 5d 29 0a 28 64 65 66 | 61 6c 69 61 73 20 27 71 |"]).(def|alias 'q|
|00000400| 75 6f 74 65 64 2d 69 6e | 73 65 72 74 20 23 5b 28 |uoted-in|sert #[(|
|00000410| 61 72 67 29 20 22 08 83 | 5c 6e 00 08 c1 3d 83 0f |arg) "..|\n...=..|
|00000420| 00 c2 20 82 11 00 c3 20 | 1c 08 c1 3d 83 1d 00 c5 |.. .... |...=....|
|00000430| 0e 06 21 88 c7 5c 66 0e | 06 5c 22 29 87 22 20 5b |..!..\f.|.\")." [|
|00000440| 6f 76 65 72 77 72 69 74 | 65 2d 6d 6f 64 65 20 6f |overwrit|e-mode o|
|00000450| 76 65 72 77 72 69 74 65 | 2d 6d 6f 64 65 2d 62 69 |verwrite|-mode-bi|
|00000460| 6e 61 72 79 20 72 65 61 | 64 2d 71 75 6f 74 65 64 |nary rea|d-quoted|
|00000470| 2d 63 68 61 72 20 72 65 | 61 64 2d 63 68 61 72 20 |-char re|ad-char |
|00000480| 63 68 61 72 20 64 65 6c | 65 74 65 2d 63 68 61 72 |char del|ete-char|
|00000490| 20 61 72 67 20 69 6e 73 | 65 72 74 2d 63 68 61 72 | arg ins|ert-char|
|000004a0| 5d 20 33 20 22 5c 0a 52 | 65 61 64 20 6e 65 78 74 |] 3 "\.R|ead next|
|000004b0| 20 69 6e 70 75 74 20 63 | 68 61 72 61 63 74 65 72 | input c|haracter|
|000004c0| 20 61 6e 64 20 69 6e 73 | 65 72 74 20 69 74 2e 0a | and ins|ert it..|
|000004d0| 54 68 69 73 20 69 73 20 | 75 73 65 66 75 6c 20 66 |This is |useful f|
|000004e0| 6f 72 20 69 6e 73 65 72 | 74 69 6e 67 20 63 6f 6e |or inser|ting con|
|000004f0| 74 72 6f 6c 20 63 68 61 | 72 61 63 74 65 72 73 2e |trol cha|racters.|
|00000500| 0a 59 6f 75 20 6d 61 79 | 20 61 6c 73 6f 20 74 79 |.You may| also ty|
|00000510| 70 65 20 75 70 20 74 6f | 20 33 20 6f 63 74 61 6c |pe up to| 3 octal|
|00000520| 20 64 69 67 69 74 73 2c | 20 74 6f 20 69 6e 73 65 | digits,| to inse|
|00000530| 72 74 20 61 20 63 68 61 | 72 61 63 74 65 72 20 77 |rt a cha|racter w|
|00000540| 69 74 68 20 74 68 61 74 | 20 63 6f 64 65 2e 0a 0a |ith that| code...|
|00000550| 49 6e 20 6f 76 65 72 77 | 72 69 74 65 20 6d 6f 64 |In overw|rite mod|
|00000560| 65 2c 20 74 68 69 73 20 | 66 75 6e 63 74 69 6f 6e |e, this |function|
|00000570| 20 69 6e 73 65 72 74 73 | 20 74 68 65 20 63 68 61 | inserts| the cha|
|00000580| 72 61 63 74 65 72 20 61 | 6e 79 77 61 79 2c 20 61 |racter a|nyway, a|
|00000590| 6e 64 0a 64 6f 65 73 20 | 6e 6f 74 20 68 61 6e 64 |nd.does |not hand|
|000005a0| 6c 65 20 6f 63 74 61 6c | 20 64 69 67 69 74 73 20 |le octal| digits |
|000005b0| 73 70 65 63 69 61 6c 6c | 79 2e 20 20 54 68 69 73 |speciall|y. This|
|000005c0| 20 6d 65 61 6e 73 20 74 | 68 61 74 20 69 66 20 79 | means t|hat if y|
|000005d0| 6f 75 20 75 73 65 0a 6f | 76 65 72 77 72 69 74 65 |ou use.o|verwrite|
|000005e0| 20 61 73 20 79 6f 75 72 | 20 6e 6f 72 6d 61 6c 20 | as your| normal |
|000005f0| 65 64 69 74 69 6e 67 20 | 6d 6f 64 65 2c 20 79 6f |editing |mode, yo|
|00000600| 75 20 63 61 6e 20 75 73 | 65 20 74 68 69 73 20 66 |u can us|e this f|
|00000610| 75 6e 63 74 69 6f 6e 20 | 74 6f 0a 69 6e 73 65 72 |unction |to.inser|
|00000620| 74 20 63 68 61 72 61 63 | 74 65 72 73 20 77 68 65 |t charac|ters whe|
|00000630| 6e 20 6e 65 63 65 73 73 | 61 72 79 2e 0a 0a 49 6e |n necess|ary...In|
|00000640| 20 62 69 6e 61 72 79 20 | 6f 76 65 72 77 72 69 74 | binary |overwrit|
|00000650| 65 20 6d 6f 64 65 2c 20 | 74 68 69 73 20 66 75 6e |e mode, |this fun|
|00000660| 63 74 69 6f 6e 20 64 6f | 65 73 20 6f 76 65 72 77 |ction do|es overw|
|00000670| 72 69 74 65 2c 20 61 6e | 64 20 6f 63 74 61 6c 0a |rite, an|d octal.|
|00000680| 64 69 67 69 74 73 20 61 | 72 65 20 69 6e 74 65 72 |digits a|re inter|
|00000690| 70 72 65 74 65 64 20 61 | 73 20 61 20 63 68 61 72 |preted a|s a char|
|000006a0| 61 63 74 65 72 20 63 6f | 64 65 2e 20 20 54 68 69 |acter co|de. Thi|
|000006b0| 73 20 69 73 20 73 75 70 | 70 6f 73 65 64 20 74 6f |s is sup|posed to|
|000006c0| 20 6d 61 6b 65 0a 74 68 | 69 73 20 66 75 6e 63 74 | make.th|is funct|
|000006d0| 69 6f 6e 20 75 73 65 66 | 75 6c 20 69 6e 20 65 64 |ion usef|ul in ed|
|000006e0| 69 74 69 6e 67 20 62 69 | 6e 61 72 79 20 66 69 6c |iting bi|nary fil|
|000006f0| 65 73 2e 22 20 22 2a 70 | 22 5d 29 0a 28 64 65 66 |es." "*p|"]).(def|
|00000700| 61 6c 69 61 73 20 27 64 | 65 6c 65 74 65 2d 69 6e |alias 'd|elete-in|
|00000710| 64 65 6e 74 61 74 69 6f | 6e 20 23 5b 28 26 6f 70 |dentatio|n #[(&op|
|00000720| 74 69 6f 6e 61 6c 20 61 | 72 67 29 20 22 c0 79 88 |tional a|rg) ".y.|
|00000730| 09 83 5c 6e 00 c2 79 88 | 68 c3 3d 85 36 00 60 60 |..\n..y.|h.=.6.``|
|00000740| 53 7c 88 5c 66 83 34 00 | 60 5c 66 47 5c 5c 64 58 |S|.\f.4.|`\fG\\dX|
|00000750| 83 34 00 5c 66 60 60 5c | 66 47 5c 5c 7b 98 83 34 |.4.\f``\|fG\\{..4|
|00000760| 00 60 60 5c 66 47 5c 5c | 7c 88 c5 20 87 22 20 5b |.``\fG\\||.. ." [|
|00000770| 30 20 61 72 67 20 31 20 | 31 30 20 66 69 6c 6c 2d |0 arg 1 |10 fill-|
|00000780| 70 72 65 66 69 78 20 66 | 69 78 75 70 2d 77 68 69 |prefix f|ixup-whi|
|00000790| 74 65 73 70 61 63 65 5d | 20 34 20 22 5c 0a 4a 6f |tespace]| 4 "\.Jo|
|000007a0| 69 6e 20 74 68 69 73 20 | 6c 69 6e 65 20 74 6f 20 |in this |line to |
|000007b0| 70 72 65 76 69 6f 75 73 | 20 61 6e 64 20 66 69 78 |previous| and fix|
|000007c0| 20 75 70 20 77 68 69 74 | 65 73 70 61 63 65 20 61 | up whit|espace a|
|000007d0| 74 20 6a 6f 69 6e 2e 0a | 49 66 20 74 68 65 72 65 |t join..|If there|
|000007e0| 20 69 73 20 61 20 66 69 | 6c 6c 20 70 72 65 66 69 | is a fi|ll prefi|
|000007f0| 78 2c 20 64 65 6c 65 74 | 65 20 69 74 20 66 72 6f |x, delet|e it fro|
|00000800| 6d 20 74 68 65 20 62 65 | 67 69 6e 6e 69 6e 67 20 |m the be|ginning |
|00000810| 6f 66 20 74 68 69 73 20 | 6c 69 6e 65 2e 0a 57 69 |of this |line..Wi|
|00000820| 74 68 20 61 72 67 75 6d | 65 6e 74 2c 20 6a 6f 69 |th argum|ent, joi|
|00000830| 6e 20 74 68 69 73 20 6c | 69 6e 65 20 74 6f 20 66 |n this l|ine to f|
|00000840| 6f 6c 6c 6f 77 69 6e 67 | 20 6c 69 6e 65 2e 22 20 |ollowing| line." |
|00000850| 22 2a 50 22 5d 29 0a 28 | 64 65 66 61 6c 69 61 73 |"*P"]).(|defalias|
|00000860| 20 27 66 69 78 75 70 2d | 77 68 69 74 65 73 70 61 | 'fixup-|whitespa|
|00000870| 63 65 20 23 5b 6e 69 6c | 20 22 8a c0 20 88 c1 c2 |ce #[nil| ".. ...|
|00000880| 21 86 12 00 8a c3 75 88 | c1 c4 21 29 3f 85 18 00 |!.....u.|..!)?...|
|00000890| c5 63 29 87 22 20 5b 64 | 65 6c 65 74 65 2d 68 6f |.c)." [d|elete-ho|
|000008a0| 72 69 7a 6f 6e 74 61 6c | 2d 73 70 61 63 65 20 6c |rizontal|-space l|
|000008b0| 6f 6f 6b 69 6e 67 2d 61 | 74 20 22 5e 5c 5c 7c 5c |ooking-a|t "^\\|\|
|000008c0| 5c 73 29 22 20 2d 31 20 | 22 24 5c 5c 7c 5c 5c 73 |\s)" -1 |"$\\|\\s|
|000008d0| 28 5c 5c 7c 5c 5c 73 27 | 22 20 33 32 5d 20 32 20 |(\\|\\s'|" 32] 2 |
|000008e0| 22 5c 0a 46 69 78 75 70 | 20 77 68 69 74 65 20 73 |"\.Fixup| white s|
|000008f0| 70 61 63 65 20 62 65 74 | 77 65 65 6e 20 6f 62 6a |pace bet|ween obj|
|00000900| 65 63 74 73 20 61 72 6f | 75 6e 64 20 70 6f 69 6e |ects aro|und poin|
|00000910| 74 2e 0a 4c 65 61 76 65 | 20 6f 6e 65 20 73 70 61 |t..Leave| one spa|
|00000920| 63 65 20 6f 72 20 6e 6f | 6e 65 2c 20 61 63 63 6f |ce or no|ne, acco|
|00000930| 72 64 69 6e 67 20 74 6f | 20 74 68 65 20 63 6f 6e |rding to| the con|
|00000940| 74 65 78 74 2e 22 20 22 | 2a 22 5d 29 0a 28 64 65 |text." "|*"]).(de|
|00000950| 66 61 6c 69 61 73 20 27 | 64 65 6c 65 74 65 2d 68 |falias '|delete-h|
|00000960| 6f 72 69 7a 6f 6e 74 61 | 6c 2d 73 70 61 63 65 20 |orizonta|l-space |
|00000970| 23 5b 6e 69 6c 20 22 c0 | c1 78 88 60 c0 c1 77 88 |#[nil ".|.x.`..w.|
|00000980| 60 7c 87 22 20 5b 22 20 | 09 22 20 6e 69 6c 5d 20 |`|." [" |." nil] |
|00000990| 33 20 22 5c 0a 44 65 6c | 65 74 65 20 61 6c 6c 20 |3 "\.Del|ete all |
|000009a0| 73 70 61 63 65 73 20 61 | 6e 64 20 74 61 62 73 20 |spaces a|nd tabs |
|000009b0| 61 72 6f 75 6e 64 20 70 | 6f 69 6e 74 2e 22 20 22 |around p|oint." "|
|000009c0| 2a 22 5d 29 0a 28 64 65 | 66 61 6c 69 61 73 20 27 |*"]).(de|falias '|
|000009d0| 6a 75 73 74 2d 6f 6e 65 | 2d 73 70 61 63 65 20 23 |just-one|-space #|
|000009e0| 5b 6e 69 6c 20 22 c0 c1 | 78 88 67 c2 55 83 10 00 |[nil "..|x.g.U...|
|000009f0| c3 75 88 82 13 00 c2 63 | 88 60 c0 c1 77 88 60 7c |.u.....c|.`..w.`||
|00000a00| 87 22 20 5b 22 20 09 22 | 20 6e 69 6c 20 33 32 20 |." [" ."| nil 32 |
|00000a10| 31 5d 20 33 20 22 5c 0a | 44 65 6c 65 74 65 20 61 |1] 3 "\.|Delete a|
|00000a20| 6c 6c 20 73 70 61 63 65 | 73 20 61 6e 64 20 74 61 |ll space|s and ta|
|00000a30| 62 73 20 61 72 6f 75 6e | 64 20 70 6f 69 6e 74 2c |bs aroun|d point,|
|00000a40| 20 6c 65 61 76 69 6e 67 | 20 6f 6e 65 20 73 70 61 | leaving| one spa|
|00000a50| 63 65 2e 22 20 22 2a 22 | 5d 29 0a 28 64 65 66 61 |ce." "*"|]).(defa|
|00000a60| 6c 69 61 73 20 27 64 65 | 6c 65 74 65 2d 62 6c 61 |lias 'de|lete-bla|
|00000a70| 6e 6b 2d 6c 69 6e 65 73 | 20 23 5b 6e 69 6c 20 22 |nk-lines| #[nil "|
|00000a80| c0 89 19 1a 8a c3 79 88 | c4 c5 21 89 12 85 5c 22 |......y.|..!...\"|
|00000a90| 00 c4 c6 21 3f 85 5c 22 | 00 6f 86 5c 22 00 c7 79 |...!?.\"|.o.\"..y|
|00000aa0| 88 c4 c5 21 3f 11 29 5c | 6e 83 45 00 c3 79 88 09 |...!?.)\|n.E..y..|
|00000ab0| 83 32 00 c8 79 88 60 c9 | ca c0 cb 23 83 42 00 c8 |.2..y.`.|...#.B..|
|00000ac0| 79 88 60 82 43 00 65 7c | 88 5c 6e 83 4d 00 09 84 |y.`.C.e||.\n.M...|
|00000ad0| 68 00 8a c0 7f 88 c8 79 | 88 60 cc ca c0 cb 23 83 |h......y|.`....#.|
|00000ae0| 64 00 c3 79 88 60 82 65 | 00 64 7c 88 29 c4 cd 21 |d..y.`.e|.d|.)..!|
|00000af0| 85 71 00 60 64 7c 2a 87 | 22 20 5b 6e 69 6c 20 73 |.q.`d|*.|" [nil s|
|00000b00| 69 6e 67 6c 65 62 6c 61 | 6e 6b 20 74 68 69 73 62 |inglebla|nk thisb|
|00000b10| 6c 61 6e 6b 20 30 20 6c | 6f 6f 6b 69 6e 67 2d 61 |lank 0 l|ooking-a|
|00000b20| 74 20 22 5b 20 09 5d 2a | 24 22 20 22 5b 20 09 5d |t "[ .]*|$" "[ .]|
|00000b30| 2a 5c 6e 5b 20 09 5d 2a | 24 22 20 2d 31 20 31 20 |*\n[ .]*|$" -1 1 |
|00000b40| 72 65 2d 73 65 61 72 63 | 68 2d 62 61 63 6b 77 61 |re-searc|h-backwa|
|00000b50| 72 64 20 22 5b 5e 20 09 | 5c 6e 5d 22 20 74 20 72 |rd "[^ .|\n]" t r|
|00000b60| 65 2d 73 65 61 72 63 68 | 2d 66 6f 72 77 61 72 64 |e-search|-forward|
|00000b70| 20 22 5e 5b 20 09 5d 2a | 5c 6e 5c 5c 27 22 5d 20 | "^[ .]*|\n\\'"] |
|00000b80| 36 20 22 5c 0a 4f 6e 20 | 62 6c 61 6e 6b 20 6c 69 |6 "\.On |blank li|
|00000b90| 6e 65 2c 20 64 65 6c 65 | 74 65 20 61 6c 6c 20 73 |ne, dele|te all s|
|00000ba0| 75 72 72 6f 75 6e 64 69 | 6e 67 20 62 6c 61 6e 6b |urroundi|ng blank|
|00000bb0| 20 6c 69 6e 65 73 2c 20 | 6c 65 61 76 69 6e 67 20 | lines, |leaving |
|00000bc0| 6a 75 73 74 20 6f 6e 65 | 2e 0a 4f 6e 20 69 73 6f |just one|..On iso|
|00000bd0| 6c 61 74 65 64 20 62 6c | 61 6e 6b 20 6c 69 6e 65 |lated bl|ank line|
|00000be0| 2c 20 64 65 6c 65 74 65 | 20 74 68 61 74 20 6f 6e |, delete| that on|
|00000bf0| 65 2e 0a 4f 6e 20 6e 6f | 6e 62 6c 61 6e 6b 20 6c |e..On no|nblank l|
|00000c00| 69 6e 65 2c 20 64 65 6c | 65 74 65 20 61 6c 6c 20 |ine, del|ete all |
|00000c10| 62 6c 61 6e 6b 20 6c 69 | 6e 65 73 20 74 68 61 74 |blank li|nes that|
|00000c20| 20 66 6f 6c 6c 6f 77 20 | 69 74 2e 22 20 22 2a 22 | follow |it." "*"|
|00000c30| 5d 29 0a 28 64 65 66 61 | 6c 69 61 73 20 27 62 61 |]).(defa|lias 'ba|
|00000c40| 63 6b 2d 74 6f 2d 69 6e | 64 65 6e 74 61 74 69 6f |ck-to-in|dentatio|
|00000c50| 6e 20 23 5b 6e 69 6c 20 | 22 c0 79 88 c1 c2 77 87 |n #[nil |".y...w.|
|00000c60| 22 20 5b 30 20 22 20 09 | 22 20 6e 69 6c 5d 20 32 |" [0 " .|" nil] 2|
|00000c70| 20 22 5c 0a 4d 6f 76 65 | 20 70 6f 69 6e 74 20 74 | "\.Move| point t|
|00000c80| 6f 20 74 68 65 20 66 69 | 72 73 74 20 6e 6f 6e 2d |o the fi|rst non-|
|00000c90| 77 68 69 74 65 73 70 61 | 63 65 20 63 68 61 72 61 |whitespa|ce chara|
|00000ca0| 63 74 65 72 20 6f 6e 20 | 74 68 69 73 20 6c 69 6e |cter on |this lin|
|00000cb0| 65 2e 22 20 6e 69 6c 5d | 29 0a 28 64 65 66 61 6c |e." nil]|).(defal|
|00000cc0| 69 61 73 20 27 6e 65 77 | 6c 69 6e 65 2d 61 6e 64 |ias 'new|line-and|
|00000cd0| 2d 69 6e 64 65 6e 74 20 | 23 5b 6e 69 6c 20 22 60 |-indent |#[nil "`|
|00000ce0| c0 c1 78 88 60 7c 88 c2 | 20 88 c3 20 87 22 20 5b |..x.`|..| .. ." [|
|00000cf0| 22 20 09 22 20 6e 69 6c | 20 6e 65 77 6c 69 6e 65 |" ." nil| newline|
|00000d00| 20 69 6e 64 65 6e 74 2d | 61 63 63 6f 72 64 69 6e | indent-|accordin|
|00000d10| 67 2d 74 6f 2d 6d 6f 64 | 65 5d 20 33 20 22 5c 0a |g-to-mod|e] 3 "\.|
|00000d20| 49 6e 73 65 72 74 20 61 | 20 6e 65 77 6c 69 6e 65 |Insert a| newline|
|00000d30| 2c 20 74 68 65 6e 20 69 | 6e 64 65 6e 74 20 61 63 |, then i|ndent ac|
|00000d40| 63 6f 72 64 69 6e 67 20 | 74 6f 20 6d 61 6a 6f 72 |cording |to major|
|00000d50| 20 6d 6f 64 65 2e 0a 49 | 6e 64 65 6e 74 61 74 69 | mode..I|ndentati|
|00000d60| 6f 6e 20 69 73 20 64 6f | 6e 65 20 75 73 69 6e 67 |on is do|ne using|
|00000d70| 20 74 68 65 20 76 61 6c | 75 65 20 6f 66 20 60 69 | the val|ue of `i|
|00000d80| 6e 64 65 6e 74 2d 6c 69 | 6e 65 2d 66 75 6e 63 74 |ndent-li|ne-funct|
|00000d90| 69 6f 6e 27 2e 0a 49 6e | 20 70 72 6f 67 72 61 6d |ion'..In| program|
|00000da0| 6d 69 6e 67 20 6c 61 6e | 67 75 61 67 65 20 6d 6f |ming lan|guage mo|
|00000db0| 64 65 73 2c 20 74 68 69 | 73 20 69 73 20 74 68 65 |des, thi|s is the|
|00000dc0| 20 73 61 6d 65 20 61 73 | 20 54 41 42 2e 0a 49 6e | same as| TAB..In|
|00000dd0| 20 73 6f 6d 65 20 74 65 | 78 74 20 6d 6f 64 65 73 | some te|xt modes|
|00000de0| 2c 20 77 68 65 72 65 20 | 54 41 42 20 69 6e 73 65 |, where |TAB inse|
|00000df0| 72 74 73 20 61 20 74 61 | 62 2c 20 74 68 69 73 20 |rts a ta|b, this |
|00000e00| 63 6f 6d 6d 61 6e 64 20 | 69 6e 64 65 6e 74 73 20 |command |indents |
|00000e10| 74 6f 20 74 68 65 0a 63 | 6f 6c 75 6d 6e 20 73 70 |to the.c|olumn sp|
|00000e20| 65 63 69 66 69 65 64 20 | 62 79 20 74 68 65 20 76 |ecified |by the v|
|00000e30| 61 72 69 61 62 6c 65 20 | 60 6c 65 66 74 2d 6d 61 |ariable |`left-ma|
|00000e40| 72 67 69 6e 27 2e 22 20 | 22 2a 22 5d 29 0a 28 64 |rgin'." |"*"]).(d|
|00000e50| 65 66 61 6c 69 61 73 20 | 27 72 65 69 6e 64 65 6e |efalias |'reinden|
|00000e60| 74 2d 74 68 65 6e 2d 6e | 65 77 6c 69 6e 65 2d 61 |t-then-n|ewline-a|
|00000e70| 6e 64 2d 69 6e 64 65 6e | 74 20 23 5b 6e 69 6c 20 |nd-inden|t #[nil |
|00000e80| 22 8a 60 c0 c1 78 88 60 | 7c 88 c2 20 88 29 c3 20 |".`..x.`||.. .). |
|00000e90| 88 c2 20 87 22 20 5b 22 | 20 09 22 20 6e 69 6c 20 |.. ." ["| ." nil |
|00000ea0| 69 6e 64 65 6e 74 2d 61 | 63 63 6f 72 64 69 6e 67 |indent-a|ccording|
|00000eb0| 2d 74 6f 2d 6d 6f 64 65 | 20 6e 65 77 6c 69 6e 65 |-to-mode| newline|
|00000ec0| 5d 20 33 20 22 5c 0a 52 | 65 69 6e 64 65 6e 74 20 |] 3 "\.R|eindent |
|00000ed0| 63 75 72 72 65 6e 74 20 | 6c 69 6e 65 2c 20 69 6e |current |line, in|
|00000ee0| 73 65 72 74 20 6e 65 77 | 6c 69 6e 65 2c 20 74 68 |sert new|line, th|
|00000ef0| 65 6e 20 69 6e 64 65 6e | 74 20 74 68 65 20 6e 65 |en inden|t the ne|
|00000f00| 77 20 6c 69 6e 65 2e 0a | 49 6e 64 65 6e 74 61 74 |w line..|Indentat|
|00000f10| 69 6f 6e 20 6f 66 20 62 | 6f 74 68 20 6c 69 6e 65 |ion of b|oth line|
|00000f20| 73 20 69 73 20 64 6f 6e | 65 20 61 63 63 6f 72 64 |s is don|e accord|
|00000f30| 69 6e 67 20 74 6f 20 74 | 68 65 20 63 75 72 72 65 |ing to t|he curre|
|00000f40| 6e 74 20 6d 61 6a 6f 72 | 20 6d 6f 64 65 2c 0a 77 |nt major| mode,.w|
|00000f50| 68 69 63 68 20 6d 65 61 | 6e 73 20 63 61 6c 6c 69 |hich mea|ns calli|
|00000f60| 6e 67 20 74 68 65 20 63 | 75 72 72 65 6e 74 20 76 |ng the c|urrent v|
|00000f70| 61 6c 75 65 20 6f 66 20 | 60 69 6e 64 65 6e 74 2d |alue of |`indent-|
|00000f80| 6c 69 6e 65 2d 66 75 6e | 63 74 69 6f 6e 27 2e 0a |line-fun|ction'..|
|00000f90| 49 6e 20 70 72 6f 67 72 | 61 6d 6d 69 6e 67 20 6c |In progr|amming l|
|00000fa0| 61 6e 67 75 61 67 65 20 | 6d 6f 64 65 73 2c 20 74 |anguage |modes, t|
|00000fb0| 68 69 73 20 69 73 20 74 | 68 65 20 73 61 6d 65 20 |his is t|he same |
|00000fc0| 61 73 20 54 41 42 2e 0a | 49 6e 20 73 6f 6d 65 20 |as TAB..|In some |
|00000fd0| 74 65 78 74 20 6d 6f 64 | 65 73 2c 20 77 68 65 72 |text mod|es, wher|
|00000fe0| 65 20 54 41 42 20 69 6e | 73 65 72 74 73 20 61 20 |e TAB in|serts a |
|00000ff0| 74 61 62 2c 20 74 68 69 | 73 20 69 6e 64 65 6e 74 |tab, thi|s indent|
|00001000| 73 20 74 6f 20 74 68 65 | 0a 63 6f 6c 75 6d 6e 20 |s to the|.column |
|00001010| 73 70 65 63 69 66 69 65 | 64 20 62 79 20 74 68 65 |specifie|d by the|
|00001020| 20 76 61 72 69 61 62 6c | 65 20 60 6c 65 66 74 2d | variabl|e `left-|
|00001030| 6d 61 72 67 69 6e 27 2e | 22 20 22 2a 22 5d 29 0a |margin'.|" "*"]).|
|00001040| 28 62 79 74 65 2d 63 6f | 64 65 20 22 c0 c1 c2 5c |(byte-co|de "...\|
|00001050| 22 88 c0 c3 c4 5c 22 87 | 22 20 5b 64 65 66 61 6c |"....\".|" [defal|
|00001060| 69 61 73 20 6b 69 6c 6c | 2d 66 6f 72 77 61 72 64 |ias kill|-forward|
|00001070| 2d 63 68 61 72 73 20 23 | 5b 28 61 72 67 29 20 22 |-chars #|[(arg) "|
|00001080| 08 3c 83 08 00 08 40 10 | 08 c1 3d 83 10 00 c2 10 |.<....@.|..=.....|
|00001090| c3 60 60 08 5c 5c 5c 22 | 87 22 20 5b 61 72 67 20 |.``.\\\"|." [arg |
|000010a0| 2d 20 2d 31 20 6b 69 6c | 6c 2d 72 65 67 69 6f 6e |- -1 kil|l-region|
|000010b0| 5d 20 34 5d 20 6b 69 6c | 6c 2d 62 61 63 6b 77 61 |] 4] kil|l-backwa|
|000010c0| 72 64 2d 63 68 61 72 73 | 20 23 5b 28 61 72 67 29 |rd-chars| #[(arg)|
|000010d0| 20 22 08 3c 83 08 00 08 | 40 10 08 c1 3d 83 10 00 | ".<....|@...=...|
|000010e0| c2 10 c3 60 60 08 5a 5c | 22 87 22 20 5b 61 72 67 |...``.Z\|"." [arg|
|000010f0| 20 2d 20 2d 31 20 6b 69 | 6c 6c 2d 72 65 67 69 6f | - -1 ki|ll-regio|
|00001100| 6e 5d 20 34 5d 5d 20 33 | 29 0a 28 64 65 66 61 6c |n] 4]] 3|).(defal|
|00001110| 69 61 73 20 27 62 61 63 | 6b 77 61 72 64 2d 64 65 |ias 'bac|kward-de|
|00001120| 6c 65 74 65 2d 63 68 61 | 72 2d 75 6e 74 61 62 69 |lete-cha|r-untabi|
|00001130| 66 79 20 23 5b 28 61 72 | 67 20 26 6f 70 74 69 6f |fy #[(ar|g &optio|
|00001140| 6e 61 6c 20 6b 69 6c 6c | 70 29 20 22 08 19 8a 09 |nal kill|p) "....|
|00001150| c2 56 83 30 00 6f 84 30 | 00 68 c3 55 83 26 00 69 |.V.0.o.0|.h.U.&.i|
|00001160| 1c c5 75 88 5c 66 69 5a | 14 c6 c7 5c 66 5c 22 88 |..u.\fiZ|...\f\".|
|00001170| c8 c9 21 88 29 c5 75 88 | 09 53 89 11 82 04 00 2a |..!.).u.|.S.....*|
|00001180| ca 08 0e 0b 5c 22 88 0e | 5c 66 85 47 00 6c 3f 85 |....\"..|\f.G.l?.|
|00001190| 47 00 8a c6 c7 08 5c 22 | 29 87 22 20 5b 61 72 67 |G.....\"|)." [arg|
|000011a0| 20 63 6f 75 6e 74 20 30 | 20 39 20 63 6f 6c 20 2d | count 0| 9 col -|
|000011b0| 31 20 69 6e 73 65 72 74 | 2d 63 68 61 72 20 33 32 |1 insert|-char 32|
|000011c0| 20 64 65 6c 65 74 65 2d | 63 68 61 72 20 31 20 64 | delete-|char 1 d|
|000011d0| 65 6c 65 74 65 2d 62 61 | 63 6b 77 61 72 64 2d 63 |elete-ba|ckward-c|
|000011e0| 68 61 72 20 6b 69 6c 6c | 70 20 6f 76 65 72 77 72 |har kill|p overwr|
|000011f0| 69 74 65 2d 6d 6f 64 65 | 5d 20 34 20 22 5c 0a 44 |ite-mode|] 4 "\.D|
|00001200| 65 6c 65 74 65 20 63 68 | 61 72 61 63 74 65 72 73 |elete ch|aracters|
|00001210| 20 62 61 63 6b 77 61 72 | 64 2c 20 63 68 61 6e 67 | backwar|d, chang|
|00001220| 69 6e 67 20 74 61 62 73 | 20 69 6e 74 6f 20 73 70 |ing tabs| into sp|
|00001230| 61 63 65 73 2e 0a 44 65 | 6c 65 74 65 20 41 52 47 |aces..De|lete ARG|
|00001240| 20 63 68 61 72 73 2c 20 | 61 6e 64 20 6b 69 6c 6c | chars, |and kill|
|00001250| 20 28 73 61 76 65 20 69 | 6e 20 6b 69 6c 6c 20 72 | (save i|n kill r|
|00001260| 69 6e 67 29 20 69 66 20 | 4b 49 4c 4c 50 20 69 73 |ing) if |KILLP is|
|00001270| 20 6e 6f 6e 2d 6e 69 6c | 2e 0a 49 6e 74 65 72 61 | non-nil|..Intera|
|00001280| 63 74 69 76 65 6c 79 2c | 20 41 52 47 20 69 73 20 |ctively,| ARG is |
|00001290| 74 68 65 20 70 72 65 66 | 69 78 20 61 72 67 20 28 |the pref|ix arg (|
|000012a0| 64 65 66 61 75 6c 74 20 | 31 29 0a 61 6e 64 20 4b |default |1).and K|
|000012b0| 49 4c 4c 50 20 69 73 20 | 74 20 69 66 20 70 72 65 |ILLP is |t if pre|
|000012c0| 66 69 78 20 61 72 67 20 | 69 73 20 77 61 73 20 73 |fix arg |is was s|
|000012d0| 70 65 63 69 66 69 65 64 | 2e 22 20 22 2a 70 5c 6e |pecified|." "*p\n|
|000012e0| 50 22 5d 29 0a 28 64 65 | 66 61 6c 69 61 73 20 27 |P"]).(de|falias '|
|000012f0| 7a 61 70 2d 74 6f 2d 63 | 68 61 72 20 23 5b 28 61 |zap-to-c|har #[(a|
|00001300| 72 67 20 63 68 61 72 29 | 20 22 c0 60 c1 c2 0b 21 |rg char)| ".`...!|
|00001310| c4 89 0d 24 88 60 5c 22 | 87 22 20 5b 6b 69 6c 6c |...$.`\"|." [kill|
|00001320| 2d 72 65 67 69 6f 6e 20 | 73 65 61 72 63 68 2d 66 |-region |search-f|
|00001330| 6f 72 77 61 72 64 20 63 | 68 61 72 2d 74 6f 2d 73 |orward c|har-to-s|
|00001340| 74 72 69 6e 67 20 63 68 | 61 72 20 6e 69 6c 20 61 |tring ch|ar nil a|
|00001350| 72 67 5d 20 37 20 22 5c | 0a 4b 69 6c 6c 20 75 70 |rg] 7 "\|.Kill up|
|00001360| 20 74 6f 20 61 6e 64 20 | 69 6e 63 6c 75 64 69 6e | to and |includin|
|00001370| 67 20 41 52 47 27 74 68 | 20 6f 63 63 75 72 72 65 |g ARG'th| occurre|
|00001380| 6e 63 65 20 6f 66 20 43 | 48 41 52 2e 0a 47 6f 65 |nce of C|HAR..Goe|
|00001390| 73 20 62 61 63 6b 77 61 | 72 64 20 69 66 20 41 52 |s backwa|rd if AR|
|000013a0| 47 20 69 73 20 6e 65 67 | 61 74 69 76 65 3b 20 65 |G is neg|ative; e|
|000013b0| 72 72 6f 72 20 69 66 20 | 43 48 41 52 20 6e 6f 74 |rror if |CHAR not|
|000013c0| 20 66 6f 75 6e 64 2e 22 | 20 22 70 5c 6e 63 5a 61 | found."| "p\ncZa|
|000013d0| 70 20 74 6f 20 63 68 61 | 72 3a 20 22 5d 29 0a 28 |p to cha|r: "]).(|
|000013e0| 64 65 66 61 6c 69 61 73 | 20 27 62 65 67 69 6e 6e |defalias| 'beginn|
|000013f0| 69 6e 67 2d 6f 66 2d 62 | 75 66 66 65 72 20 23 5b |ing-of-b|uffer #[|
|00001400| 28 26 6f 70 74 69 6f 6e | 61 6c 20 61 72 67 29 20 |(&option|al arg) |
|00001410| 22 c0 20 88 09 83 26 00 | c2 20 c3 56 83 19 00 c4 |". ...&.|. .V....|
|00001420| 09 21 c2 20 c5 a5 5f 82 | 27 00 c2 20 c4 09 21 5f |.!. .._.|'.. ..!_|
|00001430| c5 5c 5c c5 a5 82 27 00 | 65 62 88 09 85 2f 00 c6 |.\\...'.|eb.../..|
|00001440| 79 87 22 20 5b 70 75 73 | 68 2d 6d 61 72 6b 20 61 |y." [pus|h-mark a|
|00001450| 72 67 20 62 75 66 66 65 | 72 2d 73 69 7a 65 20 31 |rg buffe|r-size 1|
|00001460| 30 30 30 30 20 70 72 65 | 66 69 78 2d 6e 75 6d 65 |0000 pre|fix-nume|
|00001470| 72 69 63 2d 76 61 6c 75 | 65 20 31 30 20 31 5d 20 |ric-valu|e 10 1] |
|00001480| 33 20 22 5c 0a 4d 6f 76 | 65 20 70 6f 69 6e 74 20 |3 "\.Mov|e point |
|00001490| 74 6f 20 74 68 65 20 62 | 65 67 69 6e 6e 69 6e 67 |to the b|eginning|
|000014a0| 20 6f 66 20 74 68 65 20 | 62 75 66 66 65 72 3b 20 | of the |buffer; |
|000014b0| 6c 65 61 76 65 20 6d 61 | 72 6b 20 61 74 20 70 72 |leave ma|rk at pr|
|000014c0| 65 76 69 6f 75 73 20 70 | 6f 73 69 74 69 6f 6e 2e |evious p|osition.|
|000014d0| 0a 57 69 74 68 20 61 72 | 67 20 4e 2c 20 70 75 74 |.With ar|g N, put|
|000014e0| 20 70 6f 69 6e 74 20 4e | 2f 31 30 20 6f 66 20 74 | point N|/10 of t|
|000014f0| 68 65 20 77 61 79 20 66 | 72 6f 6d 20 74 68 65 20 |he way f|rom the |
|00001500| 74 72 75 65 20 62 65 67 | 69 6e 6e 69 6e 67 2e 0a |true beg|inning..|
|00001510| 0a 44 6f 6e 27 74 20 75 | 73 65 20 74 68 69 73 20 |.Don't u|se this |
|00001520| 63 6f 6d 6d 61 6e 64 20 | 69 6e 20 4c 69 73 70 20 |command |in Lisp |
|00001530| 70 72 6f 67 72 61 6d 73 | 21 0a 28 67 6f 74 6f 2d |programs|!.(goto-|
|00001540| 63 68 61 72 20 28 70 6f | 69 6e 74 2d 6d 69 6e 29 |char (po|int-min)|
|00001550| 29 20 69 73 20 66 61 73 | 74 65 72 20 61 6e 64 20 |) is fas|ter and |
|00001560| 61 76 6f 69 64 73 20 63 | 6c 6f 62 62 65 72 69 6e |avoids c|lobberin|
|00001570| 67 20 74 68 65 20 6d 61 | 72 6b 2e 22 20 22 50 22 |g the ma|rk." "P"|
|00001580| 5d 29 0a 28 64 65 66 61 | 6c 69 61 73 20 27 65 6e |]).(defa|lias 'en|
|00001590| 64 2d 6f 66 2d 62 75 66 | 66 65 72 20 23 5b 28 26 |d-of-buf|fer #[(&|
|000015a0| 6f 70 74 69 6f 6e 61 6c | 20 61 72 67 29 20 22 c0 |optional| arg) ".|
|000015b0| 20 88 09 83 28 00 c2 20 | 54 c2 20 c3 56 83 1c 00 | ...(.. |T. .V...|
|000015c0| c4 09 21 c2 20 c5 a5 5f | 82 24 00 c2 20 c4 09 21 |..!. .._|.$.. ..!|
|000015d0| 5f c5 a5 5a 82 29 00 64 | 62 88 09 83 32 00 c6 79 |_..Z.).d|b...2..y|
|000015e0| 87 60 1e 07 8a c8 20 62 | 88 c9 ca 20 21 88 60 0e |.`.... b|... !.`.|
|000015f0| 07 57 2a 85 4a 00 cb cc | 21 87 22 20 5b 70 75 73 |.W*.J...|!." [pus|
|00001600| 68 2d 6d 61 72 6b 20 61 | 72 67 20 62 75 66 66 65 |h-mark a|rg buffe|
|00001610| 72 2d 73 69 7a 65 20 31 | 30 30 30 30 20 70 72 65 |r-size 1|0000 pre|
|00001620| 66 69 78 2d 6e 75 6d 65 | 72 69 63 2d 76 61 6c 75 |fix-nume|ric-valu|
|00001630| 65 20 31 30 20 31 20 6f | 6c 64 2d 70 6f 69 6e 74 |e 10 1 o|ld-point|
|00001640| 20 77 69 6e 64 6f 77 2d | 73 74 61 72 74 20 76 65 | window-|start ve|
|00001650| 72 74 69 63 61 6c 2d 6d | 6f 74 69 6f 6e 20 77 69 |rtical-m|otion wi|
|00001660| 6e 64 6f 77 2d 68 65 69 | 67 68 74 20 72 65 63 65 |ndow-hei|ght rece|
|00001670| 6e 74 65 72 20 2d 33 5d | 20 34 20 22 5c 0a 4d 6f |nter -3]| 4 "\.Mo|
|00001680| 76 65 20 70 6f 69 6e 74 | 20 74 6f 20 74 68 65 20 |ve point| to the |
|00001690| 65 6e 64 20 6f 66 20 74 | 68 65 20 62 75 66 66 65 |end of t|he buffe|
|000016a0| 72 3b 20 6c 65 61 76 65 | 20 6d 61 72 6b 20 61 74 |r; leave| mark at|
|000016b0| 20 70 72 65 76 69 6f 75 | 73 20 70 6f 73 69 74 69 | previou|s positi|
|000016c0| 6f 6e 2e 0a 57 69 74 68 | 20 61 72 67 20 4e 2c 20 |on..With| arg N, |
|000016d0| 70 75 74 20 70 6f 69 6e | 74 20 4e 2f 31 30 20 6f |put poin|t N/10 o|
|000016e0| 66 20 74 68 65 20 77 61 | 79 20 66 72 6f 6d 20 74 |f the wa|y from t|
|000016f0| 68 65 20 74 72 75 65 20 | 65 6e 64 2e 0a 0a 44 6f |he true |end...Do|
|00001700| 6e 27 74 20 75 73 65 20 | 74 68 69 73 20 63 6f 6d |n't use |this com|
|00001710| 6d 61 6e 64 20 69 6e 20 | 4c 69 73 70 20 70 72 6f |mand in |Lisp pro|
|00001720| 67 72 61 6d 73 21 0a 28 | 67 6f 74 6f 2d 63 68 61 |grams!.(|goto-cha|
|00001730| 72 20 28 70 6f 69 6e 74 | 2d 6d 61 78 29 29 20 69 |r (point|-max)) i|
|00001740| 73 20 66 61 73 74 65 72 | 20 61 6e 64 20 61 76 6f |s faster| and avo|
|00001750| 69 64 73 20 63 6c 6f 62 | 62 65 72 69 6e 67 20 74 |ids clob|bering t|
|00001760| 68 65 20 6d 61 72 6b 2e | 22 20 22 50 22 5d 29 0a |he mark.|" "P"]).|
|00001770| 28 64 65 66 61 6c 69 61 | 73 20 27 6d 61 72 6b 2d |(defalia|s 'mark-|
|00001780| 77 68 6f 6c 65 2d 62 75 | 66 66 65 72 20 23 5b 6e |whole-bu|ffer #[n|
|00001790| 69 6c 20 22 c0 60 21 88 | c0 64 c1 c2 23 88 65 62 |il ".`!.|.d..#.eb|
|000017a0| 87 22 20 5b 70 75 73 68 | 2d 6d 61 72 6b 20 6e 69 |." [push|-mark ni|
|000017b0| 6c 20 74 5d 20 34 20 22 | 5c 0a 50 75 74 20 70 6f |l t] 4 "|\.Put po|
|000017c0| 69 6e 74 20 61 74 20 62 | 65 67 69 6e 6e 69 6e 67 |int at b|eginning|
|000017d0| 20 61 6e 64 20 6d 61 72 | 6b 20 61 74 20 65 6e 64 | and mar|k at end|
|000017e0| 20 6f 66 20 62 75 66 66 | 65 72 2e 0a 59 6f 75 20 | of buff|er..You |
|000017f0| 70 72 6f 62 61 62 6c 79 | 20 73 68 6f 75 6c 64 20 |probably| should |
|00001800| 6e 6f 74 20 75 73 65 20 | 74 68 69 73 20 66 75 6e |not use |this fun|
|00001810| 63 74 69 6f 6e 20 69 6e | 20 4c 69 73 70 20 70 72 |ction in| Lisp pr|
|00001820| 6f 67 72 61 6d 73 3b 0a | 69 74 20 69 73 20 75 73 |ograms;.|it is us|
|00001830| 75 61 6c 6c 79 20 61 20 | 6d 69 73 74 61 6b 65 20 |ually a |mistake |
|00001840| 66 6f 72 20 61 20 4c 69 | 73 70 20 66 75 6e 63 74 |for a Li|sp funct|
|00001850| 69 6f 6e 20 74 6f 20 75 | 73 65 20 61 6e 79 20 73 |ion to u|se any s|
|00001860| 75 62 72 6f 75 74 69 6e | 65 0a 74 68 61 74 20 75 |ubroutin|e.that u|
|00001870| 73 65 73 20 6f 72 20 73 | 65 74 73 20 74 68 65 20 |ses or s|ets the |
|00001880| 6d 61 72 6b 2e 22 20 6e | 69 6c 5d 29 0a 28 64 65 |mark." n|il]).(de|
|00001890| 66 61 6c 69 61 73 20 27 | 63 6f 75 6e 74 2d 6c 69 |falias '|count-li|
|000018a0| 6e 65 73 2d 72 65 67 69 | 6f 6e 20 23 5b 28 73 74 |nes-regi|on #[(st|
|000018b0| 61 72 74 20 65 6e 64 29 | 20 22 c0 c1 c2 0b 5c 66 |art end)| "....\f|
|000018c0| 5c 22 5c 66 0b 5a 23 87 | 22 20 5b 6d 65 73 73 61 |\"\f.Z#.|" [messa|
|000018d0| 67 65 20 22 52 65 67 69 | 6f 6e 20 68 61 73 20 25 |ge "Regi|on has %|
|000018e0| 64 20 6c 69 6e 65 73 2c | 20 25 64 20 63 68 61 72 |d lines,| %d char|
|000018f0| 61 63 74 65 72 73 22 20 | 63 6f 75 6e 74 2d 6c 69 |acters" |count-li|
|00001900| 6e 65 73 20 73 74 61 72 | 74 20 65 6e 64 5d 20 35 |nes star|t end] 5|
|00001910| 20 22 5c 0a 50 72 69 6e | 74 20 6e 75 6d 62 65 72 | "\.Prin|t number|
|00001920| 20 6f 66 20 6c 69 6e 65 | 73 20 61 6e 64 20 63 68 | of line|s and ch|
|00001930| 61 72 61 63 74 65 72 73 | 20 69 6e 20 74 68 65 20 |aracters| in the |
|00001940| 72 65 67 69 6f 6e 2e 22 | 20 22 72 22 5d 29 0a 28 |region."| "r"]).(|
|00001950| 64 65 66 61 6c 69 61 73 | 20 27 77 68 61 74 2d 6c |defalias| 'what-l|
|00001960| 69 6e 65 20 23 5b 6e 69 | 6c 20 22 8c 7e 88 8a c0 |ine #[ni|l ".~...|
|00001970| 79 88 c1 c2 c3 c4 60 5c | 22 54 5c 22 2a 87 22 20 |y.....`\|"T\"*." |
|00001980| 5b 30 20 6d 65 73 73 61 | 67 65 20 22 4c 69 6e 65 |[0 messa|ge "Line|
|00001990| 20 25 64 22 20 63 6f 75 | 6e 74 2d 6c 69 6e 65 73 | %d" cou|nt-lines|
|000019a0| 20 31 5d 20 35 20 22 5c | 0a 50 72 69 6e 74 20 74 | 1] 5 "\|.Print t|
|000019b0| 68 65 20 63 75 72 72 65 | 6e 74 20 6c 69 6e 65 20 |he curre|nt line |
|000019c0| 6e 75 6d 62 65 72 20 28 | 69 6e 20 74 68 65 20 62 |number (|in the b|
|000019d0| 75 66 66 65 72 29 20 6f | 66 20 70 6f 69 6e 74 2e |uffer) o|f point.|
|000019e0| 22 20 6e 69 6c 5d 29 0a | 28 64 65 66 61 6c 69 61 |" nil]).|(defalia|
|000019f0| 73 20 27 63 6f 75 6e 74 | 2d 6c 69 6e 65 73 20 23 |s 'count|-lines #|
|00001a00| 5b 28 73 74 61 72 74 20 | 65 6e 64 29 20 22 c0 20 |[(start |end) ". |
|00001a10| 19 c2 8e 8a 8c 0b 5c 66 | 7d 88 65 62 88 0d c6 3d |......\f|}.eb...=|
|00001a20| 83 54 00 c7 1e 08 c9 ca | cb c6 cc 24 83 29 00 0e |.T......|...$.)..|
|00001a30| 08 cc 5c 5c 16 08 82 17 | 00 c9 ca cb c6 cd 24 83 |..\\....|......$.|
|00001a40| 3b 00 0e 08 cd 5c 5c 16 | 08 82 29 00 64 62 88 0b |;....\\.|..).db..|
|00001a50| 5c 66 55 84 4e 00 6e 84 | 4e 00 0e 08 54 82 50 00 |\fU.N.n.|N...T.P.|
|00001a60| 0e 08 29 82 5a 00 ce 20 | ce 20 79 5a 2c 87 22 20 |..).Z.. |. yZ,." |
|00001a70| 5b 6d 61 74 63 68 2d 64 | 61 74 61 20 6d 61 74 63 |[match-d|ata matc|
|00001a80| 68 2d 64 61 74 61 20 28 | 28 73 74 6f 72 65 2d 6d |h-data (|(store-m|
|00001a90| 61 74 63 68 2d 64 61 74 | 61 20 6d 61 74 63 68 2d |atch-dat|a match-|
|00001aa0| 64 61 74 61 29 29 20 73 | 74 61 72 74 20 65 6e 64 |data)) s|tart end|
|00001ab0| 20 73 65 6c 65 63 74 69 | 76 65 2d 64 69 73 70 6c | selecti|ve-displ|
|00001ac0| 61 79 20 74 20 30 20 64 | 6f 6e 65 20 72 65 2d 73 |ay t 0 d|one re-s|
|00001ad0| 65 61 72 63 68 2d 66 6f | 72 77 61 72 64 20 22 5b |earch-fo|rward "[|
|00001ae0| 5c 6e 0d 5d 22 20 6e 69 | 6c 20 34 30 20 31 20 62 |\n.]" ni|l 40 1 b|
|00001af0| 75 66 66 65 72 2d 73 69 | 7a 65 5d 20 35 20 22 5c |uffer-si|ze] 5 "\|
|00001b00| 0a 52 65 74 75 72 6e 20 | 6e 75 6d 62 65 72 20 6f |.Return |number o|
|00001b10| 66 20 6c 69 6e 65 73 20 | 62 65 74 77 65 65 6e 20 |f lines |between |
|00001b20| 53 54 41 52 54 20 61 6e | 64 20 45 4e 44 2e 0a 54 |START an|d END..T|
|00001b30| 68 69 73 20 69 73 20 75 | 73 75 61 6c 6c 79 20 74 |his is u|sually t|
|00001b40| 68 65 20 6e 75 6d 62 65 | 72 20 6f 66 20 6e 65 77 |he numbe|r of new|
|00001b50| 6c 69 6e 65 73 20 62 65 | 74 77 65 65 6e 20 74 68 |lines be|tween th|
|00001b60| 65 6d 2c 0a 62 75 74 20 | 63 61 6e 20 62 65 20 6f |em,.but |can be o|
|00001b70| 6e 65 20 6d 6f 72 65 20 | 69 66 20 53 54 41 52 54 |ne more |if START|
|00001b80| 20 69 73 20 6e 6f 74 20 | 65 71 75 61 6c 20 74 6f | is not |equal to|
|00001b90| 20 45 4e 44 0a 61 6e 64 | 20 74 68 65 20 67 72 65 | END.and| the gre|
|00001ba0| 61 74 65 72 20 6f 66 20 | 74 68 65 6d 20 69 73 20 |ater of |them is |
|00001bb0| 6e 6f 74 20 61 74 20 74 | 68 65 20 73 74 61 72 74 |not at t|he start|
|00001bc0| 20 6f 66 20 61 20 6c 69 | 6e 65 2e 22 5d 29 0a 28 | of a li|ne."]).(|
|00001bd0| 64 65 66 61 6c 69 61 73 | 20 27 77 68 61 74 2d 63 |defalias| 'what-c|
|00001be0| 75 72 73 6f 72 2d 70 6f | 73 69 74 69 6f 6e 20 23 |ursor-po|sition #|
|00001bf0| 5b 6e 69 6c 20 22 67 18 | 65 19 64 1a 60 1b c4 20 |[nil "g.|e.d.`.. |
|00001c00| 89 1d c6 56 83 20 00 0d | c7 a5 0b 53 5c 5c 0d c8 |...V. ..|...S\\..|
|00001c10| a5 c9 5d a5 82 2c 00 0d | ca a5 0b 53 c8 5f 5c 5c |..]..,..|...S._\\|
|00001c20| 0d c9 5d a5 1e 0b cc 20 | cd 55 83 39 00 ce 82 3e |..].... |.U.9...>|
|00001c30| 00 cf d0 cc 20 5c 22 1e | 11 69 1e 12 0b 5c 6e 55 |.... \".|.i...\nU|
|00001c40| 83 76 00 09 c9 55 83 56 | 00 5c 6e 0d 54 55 84 67 |.v...U.V|.\n.TU.g|
|00001c50| 00 d3 d4 0b 0d 0e 0b 09 | 5c 6e 0e 12 0e 11 26 08 |........|\n....&.|
|00001c60| 82 a8 00 d3 d5 0b 0d 0e | 0b 0e 12 0e 11 26 06 82 |........|.....&..|
|00001c70| a8 00 09 c9 55 83 83 00 | 5c 6e 0d 54 55 84 98 00 |....U...|\n.TU...|
|00001c80| d3 d6 d7 08 21 08 0b 0d | 0e 0b 09 5c 6e 0e 12 0e |....!...|...\n...|
|00001c90| 11 26 5c 6e 82 a8 00 d3 | d8 d7 08 21 08 0b 0d 0e |.&\n....|...!....|
|00001ca0| 0b 0e 12 0e 11 26 08 2e | 08 87 22 20 5b 63 68 61 |.....&..|.." [cha|
|00001cb0| 72 20 62 65 67 20 65 6e | 64 20 70 6f 73 20 62 75 |r beg en|d pos bu|
|00001cc0| 66 66 65 72 2d 73 69 7a | 65 20 74 6f 74 61 6c 20 |ffer-siz|e total |
|00001cd0| 35 30 30 30 30 20 32 30 | 30 20 31 30 30 20 31 20 |50000 20|0 100 1 |
|00001ce0| 32 20 70 65 72 63 65 6e | 74 20 77 69 6e 64 6f 77 |2 percen|t window|
|00001cf0| 2d 68 73 63 72 6f 6c 6c | 20 30 20 22 22 20 66 6f |-hscroll| 0 "" fo|
|00001d00| 72 6d 61 74 20 22 20 48 | 73 63 72 6f 6c 6c 3d 25 |rmat " H|scroll=%|
|00001d10| 64 22 20 68 73 63 72 6f | 6c 6c 20 63 6f 6c 20 6d |d" hscro|ll col m|
|00001d20| 65 73 73 61 67 65 20 22 | 70 6f 69 6e 74 3d 25 64 |essage "|point=%d|
|00001d30| 20 6f 66 20 25 64 28 25 | 64 25 25 29 20 3c 25 64 | of %d(%|d%%) <%d|
|00001d40| 20 2d 20 25 64 3e 20 20 | 63 6f 6c 75 6d 6e 20 25 | - %d> |column %|
|00001d50| 64 20 25 73 22 20 22 70 | 6f 69 6e 74 3d 25 64 20 |d %s" "p|oint=%d |
|00001d60| 6f 66 20 25 64 28 25 64 | 25 25 29 20 20 63 6f 6c |of %d(%d|%%) col|
|00001d70| 75 6d 6e 20 25 64 20 25 | 73 22 20 22 43 68 61 72 |umn %d %|s" "Char|
|00001d80| 3a 20 25 73 20 28 30 25 | 6f 29 20 20 70 6f 69 6e |: %s (0%|o) poin|
|00001d90| 74 3d 25 64 20 6f 66 20 | 25 64 28 25 64 25 25 29 |t=%d of |%d(%d%%)|
|00001da0| 20 3c 25 64 20 2d 20 25 | 64 3e 20 20 63 6f 6c 75 | <%d - %|d> colu|
|00001db0| 6d 6e 20 25 64 20 25 73 | 22 20 73 69 6e 67 6c 65 |mn %d %s|" single|
|00001dc0| 2d 6b 65 79 2d 64 65 73 | 63 72 69 70 74 69 6f 6e |-key-des|cription|
|00001dd0| 20 22 43 68 61 72 3a 20 | 25 73 20 28 30 25 6f 29 | "Char: |%s (0%o)|
|00001de0| 20 20 70 6f 69 6e 74 3d | 25 64 20 6f 66 20 25 64 | point=|%d of %d|
|00001df0| 28 25 64 25 25 29 20 20 | 63 6f 6c 75 6d 6e 20 25 |(%d%%) |column %|
|00001e00| 64 20 25 73 22 5d 20 31 | 32 20 22 5c 0a 50 72 69 |d %s"] 1|2 "\.Pri|
|00001e10| 6e 74 20 69 6e 66 6f 20 | 6f 6e 20 63 75 72 73 6f |nt info |on curso|
|00001e20| 72 20 70 6f 73 69 74 69 | 6f 6e 20 28 6f 6e 20 73 |r positi|on (on s|
|00001e30| 63 72 65 65 6e 20 61 6e | 64 20 77 69 74 68 69 6e |creen an|d within|
|00001e40| 20 62 75 66 66 65 72 29 | 2e 22 20 6e 69 6c 5d 29 | buffer)|." nil])|
|00001e50| 0a 28 64 65 66 61 6c 69 | 61 73 20 27 66 75 6e 64 |.(defali|as 'fund|
|00001e60| 61 6d 65 6e 74 61 6c 2d | 6d 6f 64 65 20 23 5b 6e |amental-|mode #[n|
|00001e70| 69 6c 20 22 c0 20 87 22 | 20 5b 6b 69 6c 6c 2d 61 |il ". ."| [kill-a|
|00001e80| 6c 6c 2d 6c 6f 63 61 6c | 2d 76 61 72 69 61 62 6c |ll-local|-variabl|
|00001e90| 65 73 5d 20 31 20 22 5c | 0a 4d 61 6a 6f 72 20 6d |es] 1 "\|.Major m|
|00001ea0| 6f 64 65 20 6e 6f 74 20 | 73 70 65 63 69 61 6c 69 |ode not |speciali|
|00001eb0| 7a 65 64 20 66 6f 72 20 | 61 6e 79 74 68 69 6e 67 |zed for |anything|
|00001ec0| 20 69 6e 20 70 61 72 74 | 69 63 75 6c 61 72 2e 0a | in part|icular..|
|00001ed0| 4f 74 68 65 72 20 6d 61 | 6a 6f 72 20 6d 6f 64 65 |Other ma|jor mode|
|00001ee0| 73 20 61 72 65 20 64 65 | 66 69 6e 65 64 20 62 79 |s are de|fined by|
|00001ef0| 20 63 6f 6d 70 61 72 69 | 73 6f 6e 20 77 69 74 68 | compari|son with|
|00001f00| 20 74 68 69 73 20 6f 6e | 65 2e 22 20 6e 69 6c 5d | this on|e." nil]|
|00001f10| 29 0a 28 64 65 66 76 61 | 72 20 72 65 61 64 2d 65 |).(defva|r read-e|
|00001f20| 78 70 72 65 73 73 69 6f | 6e 2d 6d 61 70 20 28 63 |xpressio|n-map (c|
|00001f30| 6f 6e 73 20 28 71 75 6f | 74 65 20 6b 65 79 6d 61 |ons (quo|te keyma|
|00001f40| 70 29 20 6d 69 6e 69 62 | 75 66 66 65 72 2d 6c 6f |p) minib|uffer-lo|
|00001f50| 63 61 6c 2d 6d 61 70 29 | 20 22 5c 0a 4d 69 6e 69 |cal-map)| "\.Mini|
|00001f60| 62 75 66 66 65 72 20 6b | 65 79 6d 61 70 20 75 73 |buffer k|eymap us|
|00001f70| 65 64 20 66 6f 72 20 72 | 65 61 64 69 6e 67 20 4c |ed for r|eading L|
|00001f80| 69 73 70 20 65 78 70 72 | 65 73 73 69 6f 6e 73 2e |isp expr|essions.|
|00001f90| 22 29 0a 28 62 79 74 65 | 2d 63 6f 64 65 20 22 c0 |").(byte|-code ".|
|00001fa0| 09 c2 c3 23 88 c4 c5 c6 | c7 23 88 c8 c9 21 84 15 |...#....|.#...!..|
|00001fb0| 00 ca 16 09 ca 87 22 20 | 5b 64 65 66 69 6e 65 2d |......" |[define-|
|00001fc0| 6b 65 79 20 72 65 61 64 | 2d 65 78 70 72 65 73 73 |key read|-express|
|00001fd0| 69 6f 6e 2d 6d 61 70 20 | 22 89 22 20 6c 69 73 70 |ion-map |"." lisp|
|00001fe0| 2d 63 6f 6d 70 6c 65 74 | 65 2d 73 79 6d 62 6f 6c |-complet|e-symbol|
|00001ff0| 20 70 75 74 20 65 76 61 | 6c 2d 65 78 70 72 65 73 | put eva|l-expres|
|00002000| 73 69 6f 6e 20 64 69 73 | 61 62 6c 65 64 20 74 20 |sion dis|abled t |
|00002010| 62 6f 75 6e 64 70 20 72 | 65 61 64 2d 65 78 70 72 |boundp r|ead-expr|
|00002020| 65 73 73 69 6f 6e 2d 68 | 69 73 74 6f 72 79 20 6e |ession-h|istory n|
|00002030| 69 6c 5d 20 34 29 0a 28 | 64 65 66 61 6c 69 61 73 |il] 4).(|defalias|
|00002040| 20 27 65 76 61 6c 2d 65 | 78 70 72 65 73 73 69 6f | 'eval-e|xpressio|
|00002050| 6e 20 23 5b 28 65 78 70 | 72 65 73 73 69 6f 6e 29 |n #[(exp|ression)|
|00002060| 20 22 c0 09 21 5c 6e 42 | 12 c3 5c 6e 40 c4 5c 22 | "..!\nB|..\n@.\"|
|00002070| 87 22 20 5b 65 76 61 6c | 20 65 78 70 72 65 73 73 |." [eval| express|
|00002080| 69 6f 6e 20 76 61 6c 75 | 65 73 20 70 72 69 6e 31 |ion valu|es prin1|
|00002090| 20 74 5d 20 33 20 22 5c | 0a 45 76 61 6c 75 61 74 | t] 3 "\|.Evaluat|
|000020a0| 65 20 45 58 50 52 45 53 | 53 49 4f 4e 20 61 6e 64 |e EXPRES|SION and|
|000020b0| 20 70 72 69 6e 74 20 76 | 61 6c 75 65 20 69 6e 20 | print v|alue in |
|000020c0| 6d 69 6e 69 62 75 66 66 | 65 72 2e 0a 56 61 6c 75 |minibuff|er..Valu|
|000020d0| 65 20 69 73 20 61 6c 73 | 6f 20 63 6f 6e 73 65 64 |e is als|o consed|
|000020e0| 20 6f 6e 20 74 6f 20 66 | 72 6f 6e 74 20 6f 66 20 | on to f|ront of |
|000020f0| 74 68 65 20 76 61 72 69 | 61 62 6c 65 20 60 76 61 |the vari|able `va|
|00002100| 6c 75 65 73 27 2e 22 20 | 28 6c 69 73 74 20 28 72 |lues'." |(list (r|
|00002110| 65 61 64 2d 66 72 6f 6d | 2d 6d 69 6e 69 62 75 66 |ead-from|-minibuf|
|00002120| 66 65 72 20 22 45 76 61 | 6c 3a 20 22 20 6e 69 6c |fer "Eva|l: " nil|
|00002130| 20 72 65 61 64 2d 65 78 | 70 72 65 73 73 69 6f 6e | read-ex|pression|
|00002140| 2d 6d 61 70 20 74 20 28 | 71 75 6f 74 65 20 72 65 |-map t (|quote re|
|00002150| 61 64 2d 65 78 70 72 65 | 73 73 69 6f 6e 2d 68 69 |ad-expre|ssion-hi|
|00002160| 73 74 6f 72 79 29 29 29 | 5d 29 0a 28 64 65 66 61 |story)))|]).(defa|
|00002170| 6c 69 61 73 20 27 65 64 | 69 74 2d 61 6e 64 2d 65 |lias 'ed|it-and-e|
|00002180| 76 61 6c 2d 63 6f 6d 6d | 61 6e 64 20 23 5b 28 70 |val-comm|and #[(p|
|00002190| 72 6f 6d 70 74 20 63 6f | 6d 6d 61 6e 64 29 20 22 |rompt co|mmand) "|
|000021a0| c0 09 c2 0b 21 5c 66 c5 | c6 25 1b c7 0b 21 29 87 |....!\f.|.%...!).|
|000021b0| 22 20 5b 72 65 61 64 2d | 66 72 6f 6d 2d 6d 69 6e |" [read-|from-min|
|000021c0| 69 62 75 66 66 65 72 20 | 70 72 6f 6d 70 74 20 70 |ibuffer |prompt p|
|000021d0| 72 69 6e 31 2d 74 6f 2d | 73 74 72 69 6e 67 20 63 |rin1-to-|string c|
|000021e0| 6f 6d 6d 61 6e 64 20 72 | 65 61 64 2d 65 78 70 72 |ommand r|ead-expr|
|000021f0| 65 73 73 69 6f 6e 2d 6d | 61 70 20 74 20 28 63 6f |ession-m|ap t (co|
|00002200| 6d 6d 61 6e 64 2d 68 69 | 73 74 6f 72 79 20 2e 20 |mmand-hi|story . |
|00002210| 31 29 20 65 76 61 6c 5d | 20 36 20 22 5c 0a 50 72 |1) eval]| 6 "\.Pr|
|00002220| 6f 6d 70 74 69 6e 67 20 | 77 69 74 68 20 50 52 4f |ompting |with PRO|
|00002230| 4d 50 54 2c 20 6c 65 74 | 20 75 73 65 72 20 65 64 |MPT, let| user ed|
|00002240| 69 74 20 43 4f 4d 4d 41 | 4e 44 20 61 6e 64 20 65 |it COMMA|ND and e|
|00002250| 76 61 6c 20 72 65 73 75 | 6c 74 2e 0a 43 4f 4d 4d |val resu|lt..COMM|
|00002260| 41 4e 44 20 69 73 20 61 | 20 4c 69 73 70 20 65 78 |AND is a| Lisp ex|
|00002270| 70 72 65 73 73 69 6f 6e | 2e 20 20 4c 65 74 20 75 |pression|. Let u|
|00002280| 73 65 72 20 65 64 69 74 | 20 74 68 61 74 20 65 78 |ser edit| that ex|
|00002290| 70 72 65 73 73 69 6f 6e | 20 69 6e 0a 74 68 65 20 |pression| in.the |
|000022a0| 6d 69 6e 69 62 75 66 66 | 65 72 2c 20 74 68 65 6e |minibuff|er, then|
|000022b0| 20 72 65 61 64 20 61 6e | 64 20 65 76 61 6c 75 61 | read an|d evalua|
|000022c0| 74 65 20 74 68 65 20 72 | 65 73 75 6c 74 2e 22 5d |te the r|esult."]|
|000022d0| 29 0a 28 64 65 66 61 6c | 69 61 73 20 27 72 65 70 |).(defal|ias 'rep|
|000022e0| 65 61 74 2d 63 6f 6d 70 | 6c 65 78 2d 63 6f 6d 6d |eat-comp|lex-comm|
|000022f0| 61 6e 64 20 23 5b 28 61 | 72 67 29 20 22 08 53 09 |and #[(a|rg) ".S.|
|00002300| 38 08 c2 c3 1c 1d 1e 06 | 89 1e 07 83 39 00 c8 c9 |8.......|....9...|
|00002310| ca 0e 07 21 0e 0b c2 c1 | 08 42 25 14 09 40 3b 83 |...!....|.B%..@;.|
|00002320| 28 00 09 41 11 5c 66 09 | 40 9a 84 33 00 5c 66 09 |(..A.\f.|@..3.\f.|
|00002330| 42 11 cc 5c 66 21 82 3b | 00 cd 20 2c 87 22 20 5b |B..\f!.;|.. ,." [|
|00002340| 61 72 67 20 63 6f 6d 6d | 61 6e 64 2d 68 69 73 74 |arg comm|and-hist|
|00002350| 6f 72 79 20 74 20 6e 69 | 6c 20 6e 65 77 63 6d 64 |ory t ni|l newcmd|
|00002360| 20 6d 69 6e 69 62 75 66 | 66 65 72 2d 68 69 73 74 | minibuf|fer-hist|
|00002370| 6f 72 79 2d 73 65 78 70 | 2d 66 6c 61 67 20 6d 69 |ory-sexp|-flag mi|
|00002380| 6e 69 62 75 66 66 65 72 | 2d 68 69 73 74 6f 72 79 |nibuffer|-history|
|00002390| 2d 70 6f 73 69 74 69 6f | 6e 20 65 6c 74 20 72 65 |-positio|n elt re|
|000023a0| 61 64 2d 66 72 6f 6d 2d | 6d 69 6e 69 62 75 66 66 |ad-from-|minibuff|
|000023b0| 65 72 20 22 52 65 64 6f | 3a 20 22 20 70 72 69 6e |er "Redo|: " prin|
|000023c0| 31 2d 74 6f 2d 73 74 72 | 69 6e 67 20 72 65 61 64 |1-to-str|ing read|
|000023d0| 2d 65 78 70 72 65 73 73 | 69 6f 6e 2d 6d 61 70 20 |-express|ion-map |
|000023e0| 65 76 61 6c 20 64 69 6e | 67 5d 20 38 20 22 5c 0a |eval din|g] 8 "\.|
|000023f0| 45 64 69 74 20 61 6e 64 | 20 72 65 2d 65 76 61 6c |Edit and| re-eval|
|00002400| 75 61 74 65 20 6c 61 73 | 74 20 63 6f 6d 70 6c 65 |uate las|t comple|
|00002410| 78 20 63 6f 6d 6d 61 6e | 64 2c 20 6f 72 20 41 52 |x comman|d, or AR|
|00002420| 47 74 68 20 66 72 6f 6d | 20 6c 61 73 74 2e 0a 41 |Gth from| last..A|
|00002430| 20 63 6f 6d 70 6c 65 78 | 20 63 6f 6d 6d 61 6e 64 | complex| command|
|00002440| 20 69 73 20 6f 6e 65 20 | 77 68 69 63 68 20 75 73 | is one |which us|
|00002450| 65 64 20 74 68 65 20 6d | 69 6e 69 62 75 66 66 65 |ed the m|inibuffe|
|00002460| 72 2e 0a 54 68 65 20 63 | 6f 6d 6d 61 6e 64 20 69 |r..The c|ommand i|
|00002470| 73 20 70 6c 61 63 65 64 | 20 69 6e 20 74 68 65 20 |s placed| in the |
|00002480| 6d 69 6e 69 62 75 66 66 | 65 72 20 61 73 20 61 20 |minibuff|er as a |
|00002490| 4c 69 73 70 20 66 6f 72 | 6d 20 66 6f 72 20 65 64 |Lisp for|m for ed|
|000024a0| 69 74 69 6e 67 2e 0a 54 | 68 65 20 72 65 73 75 6c |iting..T|he resul|
|000024b0| 74 20 69 73 20 65 78 65 | 63 75 74 65 64 2c 20 72 |t is exe|cuted, r|
|000024c0| 65 70 65 61 74 69 6e 67 | 20 74 68 65 20 63 6f 6d |epeating| the com|
|000024d0| 6d 61 6e 64 20 61 73 20 | 63 68 61 6e 67 65 64 2e |mand as |changed.|
|000024e0| 0a 49 66 20 74 68 65 20 | 63 6f 6d 6d 61 6e 64 20 |.If the |command |
|000024f0| 68 61 73 20 62 65 65 6e | 20 63 68 61 6e 67 65 64 |has been| changed|
|00002500| 20 6f 72 20 69 73 20 6e | 6f 74 20 74 68 65 20 6d | or is n|ot the m|
|00002510| 6f 73 74 20 72 65 63 65 | 6e 74 20 70 72 65 76 69 |ost rece|nt previ|
|00002520| 6f 75 73 20 63 6f 6d 6d | 61 6e 64 0a 69 74 20 69 |ous comm|and.it i|
|00002530| 73 20 61 64 64 65 64 20 | 74 6f 20 74 68 65 20 66 |s added |to the f|
|00002540| 72 6f 6e 74 20 6f 66 20 | 74 68 65 20 63 6f 6d 6d |ront of |the comm|
|00002550| 61 6e 64 20 68 69 73 74 | 6f 72 79 2e 0a 59 6f 75 |and hist|ory..You|
|00002560| 20 63 61 6e 20 75 73 65 | 20 74 68 65 20 6d 69 6e | can use| the min|
|00002570| 69 62 75 66 66 65 72 20 | 68 69 73 74 6f 72 79 20 |ibuffer |history |
|00002580| 63 6f 6d 6d 61 6e 64 73 | 20 5c 5c 3c 6d 69 6e 69 |commands| \\<mini|
|00002590| 62 75 66 66 65 72 2d 6c | 6f 63 61 6c 2d 6d 61 70 |buffer-l|ocal-map|
|000025a0| 3e 5c 5c 5b 6e 65 78 74 | 2d 68 69 73 74 6f 72 79 |>\\[next|-history|
|000025b0| 2d 65 6c 65 6d 65 6e 74 | 5d 20 61 6e 64 20 5c 5c |-element|] and \\|
|000025c0| 5b 70 72 65 76 69 6f 75 | 73 2d 68 69 73 74 6f 72 |[previou|s-histor|
|000025d0| 79 2d 65 6c 65 6d 65 6e | 74 5d 0a 74 6f 20 67 65 |y-elemen|t].to ge|
|000025e0| 74 20 64 69 66 66 65 72 | 65 6e 74 20 63 6f 6d 6d |t differ|ent comm|
|000025f0| 61 6e 64 73 20 74 6f 20 | 65 64 69 74 20 61 6e 64 |ands to |edit and|
|00002600| 20 72 65 73 75 62 6d 69 | 74 2e 22 20 22 70 22 5d | resubmi|t." "p"]|
|00002610| 29 0a 28 64 65 66 76 61 | 72 20 6d 69 6e 69 62 75 |).(defva|r minibu|
|00002620| 66 66 65 72 2d 68 69 73 | 74 6f 72 79 20 6e 69 6c |ffer-his|tory nil|
|00002630| 20 22 5c 0a 44 65 66 61 | 75 6c 74 20 6d 69 6e 69 | "\.Defa|ult mini|
|00002640| 62 75 66 66 65 72 20 68 | 69 73 74 6f 72 79 20 6c |buffer h|istory l|
|00002650| 69 73 74 2e 0a 54 68 69 | 73 20 69 73 20 75 73 65 |ist..Thi|s is use|
|00002660| 64 20 66 6f 72 20 61 6c | 6c 20 6d 69 6e 69 62 75 |d for al|l minibu|
|00002670| 66 66 65 72 20 69 6e 70 | 75 74 0a 65 78 63 65 70 |ffer inp|ut.excep|
|00002680| 74 20 77 68 65 6e 20 61 | 6e 20 61 6c 74 65 72 6e |t when a|n altern|
|00002690| 61 74 65 20 68 69 73 74 | 6f 72 79 20 6c 69 73 74 |ate hist|ory list|
|000026a0| 20 69 73 20 73 70 65 63 | 69 66 69 65 64 2e 22 29 | is spec|ified.")|
|000026b0| 0a 28 64 65 66 76 61 72 | 20 6d 69 6e 69 62 75 66 |.(defvar| minibuf|
|000026c0| 66 65 72 2d 68 69 73 74 | 6f 72 79 2d 73 65 78 70 |fer-hist|ory-sexp|
|000026d0| 2d 66 6c 61 67 20 6e 69 | 6c 20 22 5c 0a 4e 6f 6e |-flag ni|l "\.Non|
|000026e0| 2d 6e 69 6c 20 77 68 65 | 6e 20 64 6f 69 6e 67 20 |-nil whe|n doing |
|000026f0| 68 69 73 74 6f 72 79 20 | 6f 70 65 72 61 74 69 6f |history |operatio|
|00002700| 6e 73 20 6f 6e 20 60 63 | 6f 6d 6d 61 6e 64 2d 68 |ns on `c|ommand-h|
|00002710| 69 73 74 6f 72 79 27 2e | 0a 4d 6f 72 65 20 67 65 |istory'.|.More ge|
|00002720| 6e 65 72 61 6c 6c 79 2c | 20 69 6e 64 69 63 61 74 |nerally,| indicat|
|00002730| 65 73 20 74 68 61 74 20 | 74 68 65 20 68 69 73 74 |es that |the hist|
|00002740| 6f 72 79 20 6c 69 73 74 | 20 62 65 69 6e 67 20 61 |ory list| being a|
|00002750| 63 74 65 64 20 6f 6e 0a | 63 6f 6e 74 61 69 6e 73 |cted on.|contains|
|00002760| 20 65 78 70 72 65 73 73 | 69 6f 6e 73 20 72 61 74 | express|ions rat|
|00002770| 68 65 72 20 74 68 61 6e | 20 73 74 72 69 6e 67 73 |her than| strings|
|00002780| 2e 22 29 0a 28 62 79 74 | 65 2d 63 6f 64 65 20 22 |.").(byt|e-code "|
|00002790| c0 11 c2 13 c4 c5 21 84 | 5c 66 00 c2 15 c6 c7 c8 |......!.|\f......|
|000027a0| 5c 22 87 22 20 5b 6d 69 | 6e 69 62 75 66 66 65 72 |\"." [mi|nibuffer|
|000027b0| 2d 68 69 73 74 6f 72 79 | 20 6d 69 6e 69 62 75 66 |-history| minibuf|
|000027c0| 66 65 72 2d 68 69 73 74 | 6f 72 79 2d 76 61 72 69 |fer-hist|ory-vari|
|000027d0| 61 62 6c 65 20 6e 69 6c | 20 6d 69 6e 69 62 75 66 |able nil| minibuf|
|000027e0| 66 65 72 2d 68 69 73 74 | 6f 72 79 2d 70 6f 73 69 |fer-hist|ory-posi|
|000027f0| 74 69 6f 6e 20 62 6f 75 | 6e 64 70 20 6d 69 6e 69 |tion bou|ndp mini|
|00002800| 62 75 66 66 65 72 2d 68 | 69 73 74 6f 72 79 2d 73 |buffer-h|istory-s|
|00002810| 65 61 72 63 68 2d 68 69 | 73 74 6f 72 79 20 6d 61 |earch-hi|story ma|
|00002820| 70 63 61 72 20 23 5b 28 | 6b 65 79 2d 61 6e 64 2d |pcar #[(|key-and-|
|00002830| 63 6f 6d 6d 61 6e 64 29 | 20 22 c0 c1 c2 5c 22 87 |command)| "...\".|
|00002840| 22 20 5b 6d 61 70 63 61 | 72 20 23 5b 28 6b 65 79 |" [mapca|r #[(key|
|00002850| 6d 61 70 2d 61 6e 64 2d | 63 6f 6d 70 6c 65 74 69 |map-and-|completi|
|00002860| 6f 6e 70 29 20 22 c0 09 | 40 4a 5c 6e 40 5c 6e 41 |onp) "..|@J\n@\nA|
|00002870| 89 1b 3a 83 13 00 0b 40 | 82 14 00 0b 29 23 87 22 |..:....@|....)#."|
|00002880| 20 5b 64 65 66 69 6e 65 | 2d 6b 65 79 20 6b 65 79 | [define|-key key|
|00002890| 6d 61 70 2d 61 6e 64 2d | 63 6f 6d 70 6c 65 74 69 |map-and-|completi|
|000028a0| 6f 6e 70 20 6b 65 79 2d | 61 6e 64 2d 63 6f 6d 6d |onp key-|and-comm|
|000028b0| 61 6e 64 20 63 6f 6d 6d | 61 6e 64 5d 20 35 5d 20 |and comm|and] 5] |
|000028c0| 28 28 6d 69 6e 69 62 75 | 66 66 65 72 2d 6c 6f 63 |((minibu|ffer-loc|
|000028d0| 61 6c 2d 6d 61 70 29 20 | 28 6d 69 6e 69 62 75 66 |al-map) |(minibuf|
|000028e0| 66 65 72 2d 6c 6f 63 61 | 6c 2d 6e 73 2d 6d 61 70 |fer-loca|l-ns-map|
|000028f0| 29 20 28 6d 69 6e 69 62 | 75 66 66 65 72 2d 6c 6f |) (minib|uffer-lo|
|00002900| 63 61 6c 2d 63 6f 6d 70 | 6c 65 74 69 6f 6e 2d 6d |cal-comp|letion-m|
|00002910| 61 70 20 2e 20 74 29 20 | 28 6d 69 6e 69 62 75 66 |ap . t) |(minibuf|
|00002920| 66 65 72 2d 6c 6f 63 61 | 6c 2d 6d 75 73 74 2d 6d |fer-loca|l-must-m|
|00002930| 61 74 63 68 2d 6d 61 70 | 20 2e 20 74 29 20 28 72 |atch-map| . t) (r|
|00002940| 65 61 64 2d 65 78 70 72 | 65 73 73 69 6f 6e 2d 6d |ead-expr|ession-m|
|00002950| 61 70 29 29 5d 20 33 5d | 20 28 28 22 1b 6e 22 20 |ap))] 3]| ((".n" |
|00002960| 6e 65 78 74 2d 68 69 73 | 74 6f 72 79 2d 65 6c 65 |next-his|tory-ele|
|00002970| 6d 65 6e 74 20 2e 20 6e | 65 78 74 2d 63 6f 6d 70 |ment . n|ext-comp|
|00002980| 6c 65 74 65 2d 68 69 73 | 74 6f 72 79 2d 65 6c 65 |lete-his|tory-ele|
|00002990| 6d 65 6e 74 29 20 28 5b | 6e 65 78 74 5d 20 6e 65 |ment) ([|next] ne|
|000029a0| 78 74 2d 68 69 73 74 6f | 72 79 2d 65 6c 65 6d 65 |xt-histo|ry-eleme|
|000029b0| 6e 74 20 2e 20 6e 65 78 | 74 2d 63 6f 6d 70 6c 65 |nt . nex|t-comple|
|000029c0| 74 65 2d 68 69 73 74 6f | 72 79 2d 65 6c 65 6d 65 |te-histo|ry-eleme|
|000029d0| 6e 74 29 20 28 22 1b 70 | 22 20 70 72 65 76 69 6f |nt) (".p|" previo|
|000029e0| 75 73 2d 68 69 73 74 6f | 72 79 2d 65 6c 65 6d 65 |us-histo|ry-eleme|
|000029f0| 6e 74 20 2e 20 70 72 65 | 76 69 6f 75 73 2d 63 6f |nt . pre|vious-co|
|00002a00| 6d 70 6c 65 74 65 2d 68 | 69 73 74 6f 72 79 2d 65 |mplete-h|istory-e|
|00002a10| 6c 65 6d 65 6e 74 29 20 | 28 5b 70 72 69 6f 72 5d |lement) |([prior]|
|00002a20| 20 70 72 65 76 69 6f 75 | 73 2d 68 69 73 74 6f 72 | previou|s-histor|
|00002a30| 79 2d 65 6c 65 6d 65 6e | 74 20 2e 20 70 72 65 76 |y-elemen|t . prev|
|00002a40| 69 6f 75 73 2d 63 6f 6d | 70 6c 65 74 65 2d 68 69 |ious-com|plete-hi|
|00002a50| 73 74 6f 72 79 2d 65 6c | 65 6d 65 6e 74 29 20 28 |story-el|ement) (|
|00002a60| 22 1b 72 22 20 2e 20 70 | 72 65 76 69 6f 75 73 2d |".r" . p|revious-|
|00002a70| 6d 61 74 63 68 69 6e 67 | 2d 68 69 73 74 6f 72 79 |matching|-history|
|00002a80| 2d 65 6c 65 6d 65 6e 74 | 29 20 28 22 1b 73 22 20 |-element|) (".s" |
|00002a90| 2e 20 6e 65 78 74 2d 6d | 61 74 63 68 69 6e 67 2d |. next-m|atching-|
|00002aa0| 68 69 73 74 6f 72 79 2d | 65 6c 65 6d 65 6e 74 29 |history-|element)|
|00002ab0| 29 5d 20 33 29 0a 28 64 | 65 66 61 6c 69 61 73 20 |)] 3).(d|efalias |
|00002ac0| 27 70 72 65 76 69 6f 75 | 73 2d 6d 61 74 63 68 69 |'previou|s-matchi|
|00002ad0| 6e 67 2d 68 69 73 74 6f | 72 79 2d 65 6c 65 6d 65 |ng-histo|ry-eleme|
|00002ae0| 6e 74 20 23 5b 28 72 65 | 67 65 78 70 20 6e 29 20 |nt #[(re|gexp n) |
|00002af0| 22 08 4a c1 5c 6e 1b 1c | 1d 0e 06 c7 55 84 65 00 |".J.\n..|....U.e.|
|00002b00| 0b 14 c8 0b 0e 06 c7 57 | 83 1d 00 c9 82 1e 00 c8 |.......W|........|
|00002b10| 5c 5c 5d 0d 47 5e 89 13 | 5c 66 55 83 38 00 ca 0b |\\].G^..|\fU.8...|
|00002b20| c8 55 83 35 00 cb 82 36 | 00 cc 21 88 cd 0e 0e 0e |.U.5...6|..!.....|
|00002b30| 0f 83 49 00 d0 0b 53 0d | 38 21 82 4d 00 0b 53 0d |..I...S.|8!.M..S.|
|00002b40| 38 5c 22 83 07 00 0e 06 | 89 c7 57 83 5d 00 c8 82 |8\".....|..W.]...|
|00002b50| 5e 00 c9 5c 5c 89 16 06 | 82 09 00 0b 12 d1 20 88 |^..\\...|...... .|
|00002b60| 0b 53 0d 38 1e 12 0e 0f | 83 7c 00 d0 0e 12 21 82 |.S.8....|.|....!.|
|00002b70| 7e 00 0e 12 63 88 29 65 | 62 88 2b 0e 13 40 40 d4 |~...c.)e|b.+..@@.|
|00002b80| 3d 84 97 00 0e 13 40 40 | d5 3d 85 9d 00 0e 13 41 |=.....@@|.=.....A|
|00002b90| 89 16 13 87 22 20 5b 6d | 69 6e 69 62 75 66 66 65 |...." [m|inibuffe|
|00002ba0| 72 2d 68 69 73 74 6f 72 | 79 2d 76 61 72 69 61 62 |r-histor|y-variab|
|00002bb0| 6c 65 20 6e 69 6c 20 6d | 69 6e 69 62 75 66 66 65 |le nil m|inibuffe|
|00002bc0| 72 2d 68 69 73 74 6f 72 | 79 2d 70 6f 73 69 74 69 |r-histor|y-positi|
|00002bd0| 6f 6e 20 70 6f 73 20 70 | 72 65 76 70 6f 73 20 68 |on pos p|revpos h|
|00002be0| 69 73 74 6f 72 79 20 6e | 20 30 20 31 20 2d 31 20 |istory n| 0 1 -1 |
|00002bf0| 65 72 72 6f 72 20 22 4e | 6f 20 6c 61 74 65 72 20 |error "N|o later |
|00002c00| 6d 61 74 63 68 69 6e 67 | 20 68 69 73 74 6f 72 79 |matching| history|
|00002c10| 20 69 74 65 6d 22 20 22 | 4e 6f 20 65 61 72 6c 69 | item" "|No earli|
|00002c20| 65 72 20 6d 61 74 63 68 | 69 6e 67 20 68 69 73 74 |er match|ing hist|
|00002c30| 6f 72 79 20 69 74 65 6d | 22 20 73 74 72 69 6e 67 |ory item|" string|
|00002c40| 2d 6d 61 74 63 68 20 72 | 65 67 65 78 70 20 6d 69 |-match r|egexp mi|
|00002c50| 6e 69 62 75 66 66 65 72 | 2d 68 69 73 74 6f 72 79 |nibuffer|-history|
|00002c60| 2d 73 65 78 70 2d 66 6c | 61 67 20 70 72 69 6e 31 |-sexp-fl|ag prin1|
|00002c70| 2d 74 6f 2d 73 74 72 69 | 6e 67 20 65 72 61 73 65 |-to-stri|ng erase|
|00002c80| 2d 62 75 66 66 65 72 20 | 65 6c 74 20 63 6f 6d 6d |-buffer |elt comm|
|00002c90| 61 6e 64 2d 68 69 73 74 | 6f 72 79 20 70 72 65 76 |and-hist|ory prev|
|00002ca0| 69 6f 75 73 2d 6d 61 74 | 63 68 69 6e 67 2d 68 69 |ious-mat|ching-hi|
|00002cb0| 73 74 6f 72 79 2d 65 6c | 65 6d 65 6e 74 20 6e 65 |story-el|ement ne|
|00002cc0| 78 74 2d 6d 61 74 63 68 | 69 6e 67 2d 68 69 73 74 |xt-match|ing-hist|
|00002cd0| 6f 72 79 2d 65 6c 65 6d | 65 6e 74 5d 20 36 20 22 |ory-elem|ent] 6 "|
|00002ce0| 5c 0a 46 69 6e 64 20 74 | 68 65 20 70 72 65 76 69 |\.Find t|he previ|
|00002cf0| 6f 75 73 20 68 69 73 74 | 6f 72 79 20 65 6c 65 6d |ous hist|ory elem|
|00002d00| 65 6e 74 20 74 68 61 74 | 20 6d 61 74 63 68 65 73 |ent that| matches|
|00002d10| 20 52 45 47 45 58 50 2e | 0a 28 50 72 65 76 69 6f | REGEXP.|.(Previo|
|00002d20| 75 73 20 68 69 73 74 6f | 72 79 20 65 6c 65 6d 65 |us histo|ry eleme|
|00002d30| 6e 74 73 20 72 65 66 65 | 72 20 74 6f 20 65 61 72 |nts refe|r to ear|
|00002d40| 6c 69 65 72 20 61 63 74 | 69 6f 6e 73 2e 29 0a 57 |lier act|ions.).W|
|00002d50| 69 74 68 20 70 72 65 66 | 69 78 20 61 72 67 75 6d |ith pref|ix argum|
|00002d60| 65 6e 74 20 4e 2c 20 73 | 65 61 72 63 68 20 66 6f |ent N, s|earch fo|
|00002d70| 72 20 4e 74 68 20 70 72 | 65 76 69 6f 75 73 20 6d |r Nth pr|evious m|
|00002d80| 61 74 63 68 2e 0a 49 66 | 20 4e 20 69 73 20 6e 65 |atch..If| N is ne|
|00002d90| 67 61 74 69 76 65 2c 20 | 66 69 6e 64 20 74 68 65 |gative, |find the|
|00002da0| 20 6e 65 78 74 20 6f 72 | 20 4e 74 68 20 6e 65 78 | next or| Nth nex|
|00002db0| 74 20 6d 61 74 63 68 2e | 22 20 28 62 79 74 65 2d |t match.|" (byte-|
|00002dc0| 63 6f 64 65 20 22 c0 19 | c2 1b c4 c5 c2 0e 06 c2 |code "..|........|
|00002dd0| c7 25 89 1e 08 c9 98 83 | 1d 00 0e 07 89 41 40 a0 |.%......|.....A@.|
|00002de0| 82 1f 00 0e 08 ca 0e 0b | 21 2b 44 87 22 20 5b 74 |........|!+D." [t|
|00002df0| 20 65 6e 61 62 6c 65 2d | 72 65 63 75 72 73 69 76 | enable-|recursiv|
|00002e00| 65 2d 6d 69 6e 69 62 75 | 66 66 65 72 73 20 6e 69 |e-minibu|ffers ni|
|00002e10| 6c 20 6d 69 6e 69 62 75 | 66 66 65 72 2d 68 69 73 |l minibu|ffer-his|
|00002e20| 74 6f 72 79 2d 73 65 78 | 70 2d 66 6c 61 67 20 72 |tory-sex|p-flag r|
|00002e30| 65 61 64 2d 66 72 6f 6d | 2d 6d 69 6e 69 62 75 66 |ead-from|-minibuf|
|00002e40| 66 65 72 20 22 50 72 65 | 76 69 6f 75 73 20 65 6c |fer "Pre|vious el|
|00002e50| 65 6d 65 6e 74 20 6d 61 | 74 63 68 69 6e 67 20 28 |ement ma|tching (|
|00002e60| 72 65 67 65 78 70 29 3a | 20 22 20 6d 69 6e 69 62 |regexp):| " minib|
|00002e70| 75 66 66 65 72 2d 6c 6f | 63 61 6c 2d 6d 61 70 20 |uffer-lo|cal-map |
|00002e80| 6d 69 6e 69 62 75 66 66 | 65 72 2d 68 69 73 74 6f |minibuff|er-histo|
|00002e90| 72 79 2d 73 65 61 72 63 | 68 2d 68 69 73 74 6f 72 |ry-searc|h-histor|
|00002ea0| 79 20 72 65 67 65 78 70 | 20 22 22 20 70 72 65 66 |y regexp| "" pref|
|00002eb0| 69 78 2d 6e 75 6d 65 72 | 69 63 2d 76 61 6c 75 65 |ix-numer|ic-value|
|00002ec0| 20 63 75 72 72 65 6e 74 | 2d 70 72 65 66 69 78 2d | current|-prefix-|
|00002ed0| 61 72 67 5d 20 37 29 5d | 29 0a 28 64 65 66 61 6c |arg] 7)]|).(defal|
|00002ee0| 69 61 73 20 27 6e 65 78 | 74 2d 6d 61 74 63 68 69 |ias 'nex|t-matchi|
|00002ef0| 6e 67 2d 68 69 73 74 6f | 72 79 2d 65 6c 65 6d 65 |ng-histo|ry-eleme|
|00002f00| 6e 74 20 23 5b 28 72 65 | 67 65 78 70 20 6e 29 20 |nt #[(re|gexp n) |
|00002f10| 22 c0 09 5c 6e 5b 5c 22 | 87 22 20 5b 70 72 65 76 |"..\n[\"|." [prev|
|00002f20| 69 6f 75 73 2d 6d 61 74 | 63 68 69 6e 67 2d 68 69 |ious-mat|ching-hi|
|00002f30| 73 74 6f 72 79 2d 65 6c | 65 6d 65 6e 74 20 72 65 |story-el|ement re|
|00002f40| 67 65 78 70 20 6e 5d 20 | 33 20 22 5c 0a 46 69 6e |gexp n] |3 "\.Fin|
|00002f50| 64 20 74 68 65 20 6e 65 | 78 74 20 68 69 73 74 6f |d the ne|xt histo|
|00002f60| 72 79 20 65 6c 65 6d 65 | 6e 74 20 74 68 61 74 20 |ry eleme|nt that |
|00002f70| 6d 61 74 63 68 65 73 20 | 52 45 47 45 58 50 2e 0a |matches |REGEXP..|
|00002f80| 28 54 68 65 20 6e 65 78 | 74 20 68 69 73 74 6f 72 |(The nex|t histor|
|00002f90| 79 20 65 6c 65 6d 65 6e | 74 20 72 65 66 65 72 73 |y elemen|t refers|
|00002fa0| 20 74 6f 20 61 20 6d 6f | 72 65 20 72 65 63 65 6e | to a mo|re recen|
|00002fb0| 74 20 61 63 74 69 6f 6e | 2e 29 0a 57 69 74 68 20 |t action|.).With |
|00002fc0| 70 72 65 66 69 78 20 61 | 72 67 75 6d 65 6e 74 20 |prefix a|rgument |
|00002fd0| 4e 2c 20 73 65 61 72 63 | 68 20 66 6f 72 20 4e 74 |N, searc|h for Nt|
|00002fe0| 68 20 6e 65 78 74 20 6d | 61 74 63 68 2e 0a 49 66 |h next m|atch..If|
|00002ff0| 20 4e 20 69 73 20 6e 65 | 67 61 74 69 76 65 2c 20 | N is ne|gative, |
|00003000| 66 69 6e 64 20 74 68 65 | 20 70 72 65 76 69 6f 75 |find the| previou|
|00003010| 73 20 6f 72 20 4e 74 68 | 20 70 72 65 76 69 6f 75 |s or Nth| previou|
|00003020| 73 20 6d 61 74 63 68 2e | 22 20 28 62 79 74 65 2d |s match.|" (byte-|
|00003030| 63 6f 64 65 20 22 c0 19 | c2 1b c4 c5 c2 0e 06 c2 |code "..|........|
|00003040| c7 25 89 1e 08 c9 98 83 | 1d 00 0e 07 89 41 40 a0 |.%......|.....A@.|
|00003050| 82 1f 00 0e 08 ca 0e 0b | 21 2b 44 87 22 20 5b 74 |........|!+D." [t|
|00003060| 20 65 6e 61 62 6c 65 2d | 72 65 63 75 72 73 69 76 | enable-|recursiv|
|00003070| 65 2d 6d 69 6e 69 62 75 | 66 66 65 72 73 20 6e 69 |e-minibu|ffers ni|
|00003080| 6c 20 6d 69 6e 69 62 75 | 66 66 65 72 2d 68 69 73 |l minibu|ffer-his|
|00003090| 74 6f 72 79 2d 73 65 78 | 70 2d 66 6c 61 67 20 72 |tory-sex|p-flag r|
|000030a0| 65 61 64 2d 66 72 6f 6d | 2d 6d 69 6e 69 62 75 66 |ead-from|-minibuf|
|000030b0| 66 65 72 20 22 4e 65 78 | 74 20 65 6c 65 6d 65 6e |fer "Nex|t elemen|
|000030c0| 74 20 6d 61 74 63 68 69 | 6e 67 20 28 72 65 67 65 |t matchi|ng (rege|
|000030d0| 78 70 29 3a 20 22 20 6d | 69 6e 69 62 75 66 66 65 |xp): " m|inibuffe|
|000030e0| 72 2d 6c 6f 63 61 6c 2d | 6d 61 70 20 6d 69 6e 69 |r-local-|map mini|
|000030f0| 62 75 66 66 65 72 2d 68 | 69 73 74 6f 72 79 2d 73 |buffer-h|istory-s|
|00003100| 65 61 72 63 68 2d 68 69 | 73 74 6f 72 79 20 72 65 |earch-hi|story re|
|00003110| 67 65 78 70 20 22 22 20 | 70 72 65 66 69 78 2d 6e |gexp "" |prefix-n|
|00003120| 75 6d 65 72 69 63 2d 76 | 61 6c 75 65 20 63 75 72 |umeric-v|alue cur|
|00003130| 72 65 6e 74 2d 70 72 65 | 66 69 78 2d 61 72 67 5d |rent-pre|fix-arg]|
|00003140| 20 37 29 5d 29 0a 28 64 | 65 66 61 6c 69 61 73 20 | 7)]).(d|efalias |
|00003150| 27 6e 65 78 74 2d 68 69 | 73 74 6f 72 79 2d 65 6c |'next-hi|story-el|
|00003160| 65 6d 65 6e 74 20 23 5b | 28 6e 29 20 22 c0 09 5c |ement #[|(n) "..\|
|00003170| 6e 5a 5d 0b 4a 47 5e 1c | 09 5c 66 55 83 20 00 c5 |nZ].JG^.|.\fU. ..|
|00003180| 09 c0 55 83 1b 00 c6 82 | 1c 00 c7 21 82 3f 00 c8 |..U.....|...!.?..|
|00003190| 20 88 5c 66 89 11 53 0b | 4a 38 1e 09 0e 5c 6e 83 | .\f..S.|J8...\n.|
|000031a0| 38 00 cb 0e 09 21 82 3a | 00 0e 09 63 88 29 65 62 |8....!.:|...c.)eb|
|000031b0| 29 87 22 20 5b 31 20 6d | 69 6e 69 62 75 66 66 65 |)." [1 m|inibuffe|
|000031c0| 72 2d 68 69 73 74 6f 72 | 79 2d 70 6f 73 69 74 69 |r-histor|y-positi|
|000031d0| 6f 6e 20 6e 20 6d 69 6e | 69 62 75 66 66 65 72 2d |on n min|ibuffer-|
|000031e0| 68 69 73 74 6f 72 79 2d | 76 61 72 69 61 62 6c 65 |history-|variable|
|000031f0| 20 6e 61 72 67 20 65 72 | 72 6f 72 20 22 45 6e 64 | narg er|ror "End|
|00003200| 20 6f 66 20 68 69 73 74 | 6f 72 79 3b 20 6e 6f 20 | of hist|ory; no |
|00003210| 6e 65 78 74 20 69 74 65 | 6d 22 20 22 42 65 67 69 |next ite|m" "Begi|
|00003220| 6e 6e 69 6e 67 20 6f 66 | 20 68 69 73 74 6f 72 79 |nning of| history|
|00003230| 3b 20 6e 6f 20 70 72 65 | 63 65 64 69 6e 67 20 69 |; no pre|ceding i|
|00003240| 74 65 6d 22 20 65 72 61 | 73 65 2d 62 75 66 66 65 |tem" era|se-buffe|
|00003250| 72 20 65 6c 74 20 6d 69 | 6e 69 62 75 66 66 65 72 |r elt mi|nibuffer|
|00003260| 2d 68 69 73 74 6f 72 79 | 2d 73 65 78 70 2d 66 6c |-history|-sexp-fl|
|00003270| 61 67 20 70 72 69 6e 31 | 2d 74 6f 2d 73 74 72 69 |ag prin1|-to-stri|
|00003280| 6e 67 5d 20 34 20 22 5c | 0a 49 6e 73 65 72 74 20 |ng] 4 "\|.Insert |
|00003290| 74 68 65 20 6e 65 78 74 | 20 65 6c 65 6d 65 6e 74 |the next| element|
|000032a0| 20 6f 66 20 74 68 65 20 | 6d 69 6e 69 62 75 66 66 | of the |minibuff|
|000032b0| 65 72 20 68 69 73 74 6f | 72 79 20 69 6e 74 6f 20 |er histo|ry into |
|000032c0| 74 68 65 20 6d 69 6e 69 | 62 75 66 66 65 72 2e 22 |the mini|buffer."|
|000032d0| 20 22 70 22 5d 29 0a 28 | 64 65 66 61 6c 69 61 73 | "p"]).(|defalias|
|000032e0| 20 27 70 72 65 76 69 6f | 75 73 2d 68 69 73 74 6f | 'previo|us-histo|
|000032f0| 72 79 2d 65 6c 65 6d 65 | 6e 74 20 23 5b 28 6e 29 |ry-eleme|nt #[(n)|
|00003300| 20 22 c0 09 5b 21 87 22 | 20 5b 6e 65 78 74 2d 68 | "..[!."| [next-h|
|00003310| 69 73 74 6f 72 79 2d 65 | 6c 65 6d 65 6e 74 20 6e |istory-e|lement n|
|00003320| 5d 20 32 20 22 5c 0a 49 | 6e 73 65 72 74 73 20 74 |] 2 "\.I|nserts t|
|00003330| 68 65 20 70 72 65 76 69 | 6f 75 73 20 65 6c 65 6d |he previ|ous elem|
|00003340| 65 6e 74 20 6f 66 20 74 | 68 65 20 6d 69 6e 69 62 |ent of t|he minib|
|00003350| 75 66 66 65 72 20 68 69 | 73 74 6f 72 79 20 69 6e |uffer hi|story in|
|00003360| 74 6f 20 74 68 65 20 6d | 69 6e 69 62 75 66 66 65 |to the m|inibuffe|
|00003370| 72 2e 22 20 22 70 22 5d | 29 0a 28 64 65 66 61 6c |r." "p"]|).(defal|
|00003380| 69 61 73 20 27 6e 65 78 | 74 2d 63 6f 6d 70 6c 65 |ias 'nex|t-comple|
|00003390| 74 65 2d 68 69 73 74 6f | 72 79 2d 65 6c 65 6d 65 |te-histo|ry-eleme|
|000033a0| 6e 74 20 23 5b 28 6e 29 | 20 22 60 18 c1 c2 c3 65 |nt #[(n)| "`....e|
|000033b0| 60 7b 21 50 5c 66 5c 22 | 88 08 62 29 87 22 20 5b |`{!P\f\"|..b)." [|
|000033c0| 70 6f 69 6e 74 2d 61 74 | 2d 73 74 61 72 74 20 6e |point-at|-start n|
|000033d0| 65 78 74 2d 6d 61 74 63 | 68 69 6e 67 2d 68 69 73 |ext-matc|hing-his|
|000033e0| 74 6f 72 79 2d 65 6c 65 | 6d 65 6e 74 20 22 5e 22 |tory-ele|ment "^"|
|000033f0| 20 72 65 67 65 78 70 2d | 71 75 6f 74 65 20 6e 5d | regexp-|quote n]|
|00003400| 20 35 20 22 5c 0a 47 65 | 74 20 6e 65 78 74 20 65 | 5 "\.Ge|t next e|
|00003410| 6c 65 6d 65 6e 74 20 6f | 66 20 68 69 73 74 6f 72 |lement o|f histor|
|00003420| 79 20 77 68 69 63 68 20 | 69 73 20 61 20 63 6f 6d |y which |is a com|
|00003430| 70 6c 65 74 69 6f 6e 20 | 6f 66 20 6d 69 6e 69 62 |pletion |of minib|
|00003440| 75 66 66 65 72 20 63 6f | 6e 74 65 6e 74 73 2e 22 |uffer co|ntents."|
|00003450| 20 22 70 22 5d 29 0a 28 | 64 65 66 61 6c 69 61 73 | "p"]).(|defalias|
|00003460| 20 27 70 72 65 76 69 6f | 75 73 2d 63 6f 6d 70 6c | 'previo|us-compl|
|00003470| 65 74 65 2d 68 69 73 74 | 6f 72 79 2d 65 6c 65 6d |ete-hist|ory-elem|
|00003480| 65 6e 74 20 23 5b 28 6e | 29 20 22 c0 09 5b 21 87 |ent #[(n|) "..[!.|
|00003490| 22 20 5b 6e 65 78 74 2d | 63 6f 6d 70 6c 65 74 65 |" [next-|complete|
|000034a0| 2d 68 69 73 74 6f 72 79 | 2d 65 6c 65 6d 65 6e 74 |-history|-element|
|000034b0| 20 6e 5d 20 32 20 22 5c | 0a 47 65 74 20 70 72 65 | n] 2 "\|.Get pre|
|000034c0| 76 69 6f 75 73 20 65 6c | 65 6d 65 6e 74 20 6f 66 |vious el|ement of|
|000034d0| 20 68 69 73 74 6f 72 79 | 20 77 68 69 63 68 20 69 | history| which i|
|000034e0| 73 20 61 20 63 6f 6d 70 | 6c 65 74 69 6f 6e 20 6f |s a comp|letion o|
|000034f0| 66 20 6d 69 6e 69 62 75 | 66 66 65 72 20 63 6f 6e |f minibu|ffer con|
|00003500| 74 65 6e 74 73 2e 22 20 | 22 70 22 5d 29 0a 28 64 |tents." |"p"]).(d|
|00003510| 65 66 61 6c 69 61 73 20 | 27 67 6f 74 6f 2d 6c 69 |efalias |'goto-li|
|00003520| 6e 65 20 23 5b 28 61 72 | 67 29 20 22 8c 7e 88 c0 |ne #[(ar|g) ".~..|
|00003530| 62 88 09 c2 3d 83 17 00 | c3 c4 c5 c6 0e 07 53 24 |b...=...|......S$|
|00003540| 82 1b 00 0e 07 53 79 29 | 87 22 20 5b 31 20 73 65 |.....Sy)|." [1 se|
|00003550| 6c 65 63 74 69 76 65 2d | 64 69 73 70 6c 61 79 20 |lective-|display |
|00003560| 74 20 72 65 2d 73 65 61 | 72 63 68 2d 66 6f 72 77 |t re-sea|rch-forw|
|00003570| 61 72 64 20 22 5b 5c 6e | 0d 5d 22 20 6e 69 6c 20 |ard "[\n|.]" nil |
|00003580| 65 6e 64 20 61 72 67 5d | 20 35 20 22 5c 0a 47 6f |end arg]| 5 "\.Go|
|00003590| 74 6f 20 6c 69 6e 65 20 | 41 52 47 2c 20 63 6f 75 |to line |ARG, cou|
|000035a0| 6e 74 69 6e 67 20 66 72 | 6f 6d 20 6c 69 6e 65 20 |nting fr|om line |
|000035b0| 31 20 61 74 20 62 65 67 | 69 6e 6e 69 6e 67 20 6f |1 at beg|inning o|
|000035c0| 66 20 62 75 66 66 65 72 | 2e 22 20 22 4e 47 6f 74 |f buffer|." "NGot|
|000035d0| 6f 20 6c 69 6e 65 3a 20 | 22 5d 29 0a 28 64 65 66 |o line: |"]).(def|
|000035e0| 69 6e 65 2d 66 75 6e 63 | 74 69 6f 6e 20 28 71 75 |ine-func|tion (qu|
|000035f0| 6f 74 65 20 61 64 76 65 | 72 74 69 73 65 64 2d 75 |ote adve|rtised-u|
|00003600| 6e 64 6f 29 20 28 71 75 | 6f 74 65 20 75 6e 64 6f |ndo) (qu|ote undo|
|00003610| 29 29 0a 28 64 65 66 61 | 6c 69 61 73 20 27 75 6e |)).(defa|lias 'un|
|00003620| 64 6f 20 23 5b 28 26 6f | 70 74 69 6f 6e 61 6c 20 |do #[(&o|ptional |
|00003630| 61 72 67 29 20 22 c0 11 | c2 20 c3 20 1c 1d c6 20 |arg) "..|. . ... |
|00003640| c7 20 3d 84 14 00 c8 c9 | 21 88 0e 5c 6e cb 3d 84 |. =.....|!..\n.=.|
|00003650| 5c 22 00 cc 20 88 cd ce | 21 88 cd 0e 0f 86 29 00 |\".. ...|!.....).|
|00003660| ce 21 88 0e 10 d1 1e 12 | 89 1e 13 83 5d 00 0e 12 |.!......|....]...|
|00003670| 84 5d 00 0e 13 40 83 5d | 00 0e 13 40 a8 83 54 00 |.]...@.]|...@..T.|
|00003680| c0 16 12 d4 0e 13 40 0e | 10 5c 22 16 10 0e 13 41 |......@.|.\"....A|
|00003690| 89 16 13 84 36 00 2a 0d | 83 6b 00 c2 20 84 6b 00 |....6.*.|.k.. .k.|
|000036a0| d5 5c 66 21 88 2a cb 89 | 11 87 22 20 5b 74 20 74 |.\f!.*..|.." [t t|
|000036b0| 68 69 73 2d 63 6f 6d 6d | 61 6e 64 20 62 75 66 66 |his-comm|and buff|
|000036c0| 65 72 2d 6d 6f 64 69 66 | 69 65 64 2d 70 20 72 65 |er-modif|ied-p re|
|000036d0| 63 65 6e 74 2d 61 75 74 | 6f 2d 73 61 76 65 2d 70 |cent-aut|o-save-p|
|000036e0| 20 72 65 63 65 6e 74 2d | 73 61 76 65 20 6d 6f 64 | recent-|save mod|
|000036f0| 69 66 69 65 64 20 73 65 | 6c 65 63 74 65 64 2d 77 |ified se|lected-w|
|00003700| 69 6e 64 6f 77 20 6d 69 | 6e 69 62 75 66 66 65 72 |indow mi|nibuffer|
|00003710| 2d 77 69 6e 64 6f 77 20 | 6d 65 73 73 61 67 65 20 |-window |message |
|00003720| 22 55 6e 64 6f 21 22 20 | 6c 61 73 74 2d 63 6f 6d |"Undo!" |last-com|
|00003730| 6d 61 6e 64 20 75 6e 64 | 6f 20 75 6e 64 6f 2d 73 |mand und|o undo-s|
|00003740| 74 61 72 74 20 75 6e 64 | 6f 2d 6d 6f 72 65 20 31 |tart und|o-more 1|
|00003750| 20 61 72 67 20 62 75 66 | 66 65 72 2d 75 6e 64 6f | arg buf|fer-undo|
|00003760| 2d 6c 69 73 74 20 6e 69 | 6c 20 64 6f 6e 65 20 74 |-list ni|l done t|
|00003770| 61 69 6c 20 64 65 6c 71 | 20 64 65 6c 65 74 65 2d |ail delq| delete-|
|00003780| 61 75 74 6f 2d 73 61 76 | 65 2d 66 69 6c 65 2d 69 |auto-sav|e-file-i|
|00003790| 66 2d 6e 65 63 65 73 73 | 61 72 79 5d 20 34 20 22 |f-necess|ary] 4 "|
|000037a0| 5c 0a 55 6e 64 6f 20 73 | 6f 6d 65 20 70 72 65 76 |\.Undo s|ome prev|
|000037b0| 69 6f 75 73 20 63 68 61 | 6e 67 65 73 2e 0a 52 65 |ious cha|nges..Re|
|000037c0| 70 65 61 74 20 74 68 69 | 73 20 63 6f 6d 6d 61 6e |peat thi|s comman|
|000037d0| 64 20 74 6f 20 75 6e 64 | 6f 20 6d 6f 72 65 20 63 |d to und|o more c|
|000037e0| 68 61 6e 67 65 73 2e 0a | 41 20 6e 75 6d 65 72 69 |hanges..|A numeri|
|000037f0| 63 20 61 72 67 75 6d 65 | 6e 74 20 73 65 72 76 65 |c argume|nt serve|
|00003800| 73 20 61 73 20 61 20 72 | 65 70 65 61 74 20 63 6f |s as a r|epeat co|
|00003810| 75 6e 74 2e 22 20 22 2a | 70 22 5d 29 0a 28 64 65 |unt." "*|p"]).(de|
|00003820| 66 76 61 72 20 70 65 6e | 64 69 6e 67 2d 75 6e 64 |fvar pen|ding-und|
|00003830| 6f 2d 6c 69 73 74 20 6e | 69 6c 20 22 5c 0a 57 69 |o-list n|il "\.Wi|
|00003840| 74 68 69 6e 20 61 20 72 | 75 6e 20 6f 66 20 63 6f |thin a r|un of co|
|00003850| 6e 73 65 63 75 74 69 76 | 65 20 75 6e 64 6f 20 63 |nsecutiv|e undo c|
|00003860| 6f 6d 6d 61 6e 64 73 2c | 20 6c 69 73 74 20 72 65 |ommands,| list re|
|00003870| 6d 61 69 6e 69 6e 67 20 | 74 6f 20 62 65 20 75 6e |maining |to be un|
|00003880| 64 6f 6e 65 2e 22 29 0a | 28 64 65 66 61 6c 69 61 |done.").|(defalia|
|00003890| 73 20 27 75 6e 64 6f 2d | 73 74 61 72 74 20 23 5b |s 'undo-|start #[|
|000038a0| 6e 69 6c 20 22 08 c1 3d | 83 5c 6e 00 c2 c3 21 88 |nil "..=|.\n...!.|
|000038b0| 08 89 14 87 22 20 5b 62 | 75 66 66 65 72 2d 75 6e |...." [b|uffer-un|
|000038c0| 64 6f 2d 6c 69 73 74 20 | 74 20 65 72 72 6f 72 20 |do-list |t error |
|000038d0| 22 4e 6f 20 75 6e 64 6f | 20 69 6e 66 6f 72 6d 61 |"No undo| informa|
|000038e0| 74 69 6f 6e 20 69 6e 20 | 74 68 69 73 20 62 75 66 |tion in |this buf|
|000038f0| 66 65 72 22 20 70 65 6e | 64 69 6e 67 2d 75 6e 64 |fer" pen|ding-und|
|00003900| 6f 2d 6c 69 73 74 5d 20 | 32 20 22 5c 0a 53 65 74 |o-list] |2 "\.Set|
|00003910| 20 60 70 65 6e 64 69 6e | 67 2d 75 6e 64 6f 2d 6c | `pendin|g-undo-l|
|00003920| 69 73 74 27 20 74 6f 20 | 74 68 65 20 66 72 6f 6e |ist' to |the fron|
|00003930| 74 20 6f 66 20 74 68 65 | 20 75 6e 64 6f 20 6c 69 |t of the| undo li|
|00003940| 73 74 2e 0a 54 68 65 20 | 6e 65 78 74 20 63 61 6c |st..The |next cal|
|00003950| 6c 20 74 6f 20 60 75 6e | 64 6f 2d 6d 6f 72 65 27 |l to `un|do-more'|
|00003960| 20 77 69 6c 6c 20 75 6e | 64 6f 20 74 68 65 20 6d | will un|do the m|
|00003970| 6f 73 74 20 72 65 63 65 | 6e 74 6c 79 20 6d 61 64 |ost rece|ntly mad|
|00003980| 65 20 63 68 61 6e 67 65 | 2e 22 5d 29 0a 28 64 65 |e change|."]).(de|
|00003990| 66 61 6c 69 61 73 20 27 | 75 6e 64 6f 2d 6d 6f 72 |falias '|undo-mor|
|000039a0| 65 20 23 5b 28 63 6f 75 | 6e 74 29 20 22 08 84 08 |e #[(cou|nt) "...|
|000039b0| 00 c1 c2 21 88 c3 5c 66 | 08 5c 22 89 10 87 22 20 |...!..\f|.\"..." |
|000039c0| 5b 70 65 6e 64 69 6e 67 | 2d 75 6e 64 6f 2d 6c 69 |[pending|-undo-li|
|000039d0| 73 74 20 65 72 72 6f 72 | 20 22 4e 6f 20 66 75 72 |st error| "No fur|
|000039e0| 74 68 65 72 20 75 6e 64 | 6f 20 69 6e 66 6f 72 6d |ther und|o inform|
|000039f0| 61 74 69 6f 6e 22 20 70 | 72 69 6d 69 74 69 76 65 |ation" p|rimitive|
|00003a00| 2d 75 6e 64 6f 20 63 6f | 75 6e 74 5d 20 33 20 22 |-undo co|unt] 3 "|
|00003a10| 5c 0a 55 6e 64 6f 20 62 | 61 63 6b 20 4e 20 75 6e |\.Undo b|ack N un|
|00003a20| 64 6f 2d 62 6f 75 6e 64 | 61 72 69 65 73 20 62 65 |do-bound|aries be|
|00003a30| 79 6f 6e 64 20 77 68 61 | 74 20 77 61 73 20 61 6c |yond wha|t was al|
|00003a40| 72 65 61 64 79 20 75 6e | 64 6f 6e 65 20 72 65 63 |ready un|done rec|
|00003a50| 65 6e 74 6c 79 2e 0a 43 | 61 6c 6c 20 60 75 6e 64 |ently..C|all `und|
|00003a60| 6f 2d 73 74 61 72 74 27 | 20 74 6f 20 67 65 74 20 |o-start'| to get |
|00003a70| 72 65 61 64 79 20 74 6f | 20 75 6e 64 6f 20 72 65 |ready to| undo re|
|00003a80| 63 65 6e 74 20 63 68 61 | 6e 67 65 73 2c 0a 74 68 |cent cha|nges,.th|
|00003a90| 65 6e 20 63 61 6c 6c 20 | 60 75 6e 64 6f 2d 6d 6f |en call |`undo-mo|
|00003aa0| 72 65 27 20 6f 6e 65 20 | 6f 72 20 6d 6f 72 65 20 |re' one |or more |
|00003ab0| 74 69 6d 65 73 20 74 6f | 20 75 6e 64 6f 20 74 68 |times to| undo th|
|00003ac0| 65 6d 2e 22 5d 29 0a 28 | 64 65 66 76 61 72 20 73 |em."]).(|defvar s|
|00003ad0| 68 65 6c 6c 2d 63 6f 6d | 6d 61 6e 64 2d 68 69 73 |hell-com|mand-his|
|00003ae0| 74 6f 72 79 20 6e 69 6c | 20 22 5c 0a 48 69 73 74 |tory nil| "\.Hist|
|00003af0| 6f 72 79 20 6c 69 73 74 | 20 66 6f 72 20 73 6f 6d |ory list| for som|
|00003b00| 65 20 63 6f 6d 6d 61 6e | 64 73 20 74 68 61 74 20 |e comman|ds that |
|00003b10| 72 65 61 64 20 73 68 65 | 6c 6c 20 63 6f 6d 6d 61 |read she|ll comma|
|00003b20| 6e 64 73 2e 22 29 0a 28 | 64 65 66 61 6c 69 61 73 |nds.").(|defalias|
|00003b30| 20 27 73 68 65 6c 6c 2d | 63 6f 6d 6d 61 6e 64 20 | 'shell-|command |
|00003b40| 23 5b 28 63 6f 6d 6d 61 | 6e 64 20 26 6f 70 74 69 |#[(comma|nd &opti|
|00003b50| 6f 6e 61 6c 20 66 6c 61 | 67 29 20 22 08 83 20 00 |onal fla|g) ".. .|
|00003b60| c1 20 88 c2 20 88 c3 5c | 66 c5 c6 c5 c7 0e 08 26 |. .. ..\|f......&|
|00003b70| 06 88 c9 c6 21 ca 20 60 | 70 93 88 62 87 cb 20 1e |....!. `|p..b.. .|
|00003b80| 5c 66 cd 8e ce cf 0e 08 | 5c 22 83 8c 00 d0 d1 21 |\f......|\".....!|
|00003b90| 0e 12 c5 1e 13 1e 14 1e | 15 0e 08 d6 89 94 4f 16 |........|......O.|
|00003ba0| 08 d7 0e 15 21 89 16 13 | 83 5e 00 d8 d9 21 83 5a |....!...|.^...!.Z|
|00003bb0| 00 da 0e 13 21 88 82 5e | 00 db dc 21 88 8a 0e 15 |....!..^|...!....|
|00003bc0| 71 88 dd 20 88 de 0e 15 | 21 88 0e 14 16 12 df e0 |q.. ....|!.......|
|00003bd0| 0e 15 5c 66 c7 0e 08 25 | 16 13 e1 16 5c 22 e3 0e |..\f...%|....\"..|
|00003be0| 13 e4 5c 22 88 e5 0e 13 | e6 5c 22 2c 82 93 00 e7 |..\"....|.\",....|
|00003bf0| 60 60 0e 08 c5 24 2a 87 | 22 20 5b 66 6c 61 67 20 |``...$*.|" [flag |
|00003c00| 62 61 72 66 2d 69 66 2d | 62 75 66 66 65 72 2d 72 |barf-if-|buffer-r|
|00003c10| 65 61 64 2d 6f 6e 6c 79 | 20 70 75 73 68 2d 6d 61 |ead-only| push-ma|
|00003c20| 72 6b 20 63 61 6c 6c 2d | 70 72 6f 63 65 73 73 20 |rk call-|process |
|00003c30| 73 68 65 6c 6c 2d 66 69 | 6c 65 2d 6e 61 6d 65 20 |shell-fi|le-name |
|00003c40| 6e 69 6c 20 74 20 22 2d | 63 22 20 63 6f 6d 6d 61 |nil t "-|c" comma|
|00003c50| 6e 64 20 6d 61 72 6b 20 | 6d 61 72 6b 2d 6d 61 72 |nd mark |mark-mar|
|00003c60| 6b 65 72 20 6d 61 74 63 | 68 2d 64 61 74 61 20 64 |ker matc|h-data d|
|00003c70| 61 74 61 20 28 28 73 74 | 6f 72 65 2d 6d 61 74 63 |ata ((st|ore-matc|
|00003c80| 68 2d 64 61 74 61 20 64 | 61 74 61 29 29 20 73 74 |h-data d|ata)) st|
|00003c90| 72 69 6e 67 2d 6d 61 74 | 63 68 20 22 5b 20 09 5d |ring-mat|ch "[ .]|
|00003ca0| 2a 26 5b 20 09 5d 2a 24 | 22 20 67 65 74 2d 62 75 |*&[ .]*$|" get-bu|
|00003cb0| 66 66 65 72 2d 63 72 65 | 61 74 65 20 22 2a 53 68 |ffer-cre|ate "*Sh|
|00003cc0| 65 6c 6c 2d 43 6f 6d 6d | 61 6e 64 2a 22 20 64 65 |ell-Comm|and*" de|
|00003cd0| 66 61 75 6c 74 2d 64 69 | 72 65 63 74 6f 72 79 20 |fault-di|rectory |
|00003ce0| 70 72 6f 63 20 64 69 72 | 65 63 74 6f 72 79 20 62 |proc dir|ectory b|
|00003cf0| 75 66 66 65 72 20 30 20 | 67 65 74 2d 62 75 66 66 |uffer 0 |get-buff|
|00003d00| 65 72 2d 70 72 6f 63 65 | 73 73 20 79 65 73 2d 6f |er-proce|ss yes-o|
|00003d10| 72 2d 6e 6f 2d 70 20 22 | 41 20 63 6f 6d 6d 61 6e |r-no-p "|A comman|
|00003d20| 64 20 69 73 20 72 75 6e | 6e 69 6e 67 2e 20 20 4b |d is run|ning. K|
|00003d30| 69 6c 6c 20 69 74 3f 20 | 22 20 6b 69 6c 6c 2d 70 |ill it? |" kill-p|
|00003d40| 72 6f 63 65 73 73 20 65 | 72 72 6f 72 20 22 53 68 |rocess e|rror "Sh|
|00003d50| 65 6c 6c 20 63 6f 6d 6d | 61 6e 64 20 69 6e 20 70 |ell comm|and in p|
|00003d60| 72 6f 67 72 65 73 73 22 | 20 65 72 61 73 65 2d 62 |rogress"| erase-b|
|00003d70| 75 66 66 65 72 20 64 69 | 73 70 6c 61 79 2d 62 75 |uffer di|splay-bu|
|00003d80| 66 66 65 72 20 73 74 61 | 72 74 2d 70 72 6f 63 65 |ffer sta|rt-proce|
|00003d90| 73 73 20 22 53 68 65 6c | 6c 22 20 28 22 3a 25 73 |ss "Shel|l" (":%s|
|00003da0| 22 29 20 6d 6f 64 65 2d | 6c 69 6e 65 2d 70 72 6f |") mode-|line-pro|
|00003db0| 63 65 73 73 20 73 65 74 | 2d 70 72 6f 63 65 73 73 |cess set|-process|
|00003dc0| 2d 73 65 6e 74 69 6e 65 | 6c 20 73 68 65 6c 6c 2d |-sentine|l shell-|
|00003dd0| 63 6f 6d 6d 61 6e 64 2d | 73 65 6e 74 69 6e 65 6c |command-|sentinel|
|00003de0| 20 73 65 74 2d 70 72 6f | 63 65 73 73 2d 66 69 6c | set-pro|cess-fil|
|00003df0| 74 65 72 20 73 68 65 6c | 6c 2d 63 6f 6d 6d 61 6e |ter shel|l-comman|
|00003e00| 64 2d 66 69 6c 74 65 72 | 20 73 68 65 6c 6c 2d 63 |d-filter| shell-c|
|00003e10| 6f 6d 6d 61 6e 64 2d 6f | 6e 2d 72 65 67 69 6f 6e |ommand-o|n-region|
|00003e20| 5d 20 38 20 22 5c 0a 45 | 78 65 63 75 74 65 20 73 |] 8 "\.E|xecute s|
|00003e30| 74 72 69 6e 67 20 43 4f | 4d 4d 41 4e 44 20 69 6e |tring CO|MMAND in|
|00003e40| 20 69 6e 66 65 72 69 6f | 72 20 73 68 65 6c 6c 3b | inferio|r shell;|
|00003e50| 20 64 69 73 70 6c 61 79 | 20 6f 75 74 70 75 74 2c | display| output,|
|00003e60| 20 69 66 20 61 6e 79 2e | 0a 49 66 20 43 4f 4d 4d | if any.|.If COMM|
|00003e70| 41 4e 44 20 65 6e 64 73 | 20 69 6e 20 61 6d 70 65 |AND ends| in ampe|
|00003e80| 72 73 61 6e 64 2c 20 65 | 78 65 63 75 74 65 20 69 |rsand, e|xecute i|
|00003e90| 74 20 61 73 79 6e 63 68 | 72 6f 6e 6f 75 73 6c 79 |t asynch|ronously|
|00003ea0| 2e 0a 20 0a 4f 70 74 69 | 6f 6e 61 6c 20 73 65 63 |.. .Opti|onal sec|
|00003eb0| 6f 6e 64 20 61 72 67 20 | 6e 6f 6e 2d 6e 69 6c 20 |ond arg |non-nil |
|00003ec0| 28 70 72 65 66 69 78 20 | 61 72 67 2c 20 69 66 20 |(prefix |arg, if |
|00003ed0| 69 6e 74 65 72 61 63 74 | 69 76 65 29 0a 6d 65 61 |interact|ive).mea|
|00003ee0| 6e 73 20 69 6e 73 65 72 | 74 20 6f 75 74 70 75 74 |ns inser|t output|
|00003ef0| 20 69 6e 20 63 75 72 72 | 65 6e 74 20 62 75 66 66 | in curr|ent buff|
|00003f00| 65 72 20 61 66 74 65 72 | 20 70 6f 69 6e 74 20 28 |er after| point (|
|00003f10| 6c 65 61 76 65 20 6d 61 | 72 6b 20 61 66 74 65 72 |leave ma|rk after|
|00003f20| 20 69 74 29 2e 0a 54 68 | 69 73 20 63 61 6e 6e 6f | it)..Th|is canno|
|00003f30| 74 20 62 65 20 64 6f 6e | 65 20 61 73 79 6e 63 68 |t be don|e asynch|
|00003f40| 72 6f 6e 6f 75 73 6c 79 | 2e 22 20 28 6c 69 73 74 |ronously|." (list|
|00003f50| 20 28 72 65 61 64 2d 66 | 72 6f 6d 2d 6d 69 6e 69 | (read-f|rom-mini|
|00003f60| 62 75 66 66 65 72 20 22 | 53 68 65 6c 6c 20 63 6f |buffer "|Shell co|
|00003f70| 6d 6d 61 6e 64 3a 20 22 | 20 6e 69 6c 20 6e 69 6c |mmand: "| nil nil|
|00003f80| 20 6e 69 6c 20 28 71 75 | 6f 74 65 20 73 68 65 6c | nil (qu|ote shel|
|00003f90| 6c 2d 63 6f 6d 6d 61 6e | 64 2d 68 69 73 74 6f 72 |l-comman|d-histor|
|00003fa0| 79 29 29 20 63 75 72 72 | 65 6e 74 2d 70 72 65 66 |y)) curr|ent-pref|
|00003fb0| 69 78 2d 61 72 67 29 5d | 29 0a 28 62 79 74 65 2d |ix-arg)]|).(byte-|
|00003fc0| 63 6f 64 65 20 22 c0 c1 | c2 5c 22 88 c0 c3 c4 5c |code "..|.\"....\|
|00003fd0| 22 87 22 20 5b 64 65 66 | 61 6c 69 61 73 20 73 68 |"." [def|alias sh|
|00003fe0| 65 6c 6c 2d 63 6f 6d 6d | 61 6e 64 2d 73 65 6e 74 |ell-comm|and-sent|
|00003ff0| 69 6e 65 6c 20 23 5b 28 | 70 72 6f 63 65 73 73 20 |inel #[(|process |
|00004000| 73 69 67 6e 61 6c 29 20 | 22 c0 09 21 c2 3e 85 2c |signal) |"..!.>.,|
|00004010| 00 c3 c4 09 21 21 85 2c | 00 c5 c6 c7 09 21 41 41 |....!!.,|.....!AA|
|00004020| 40 0e 08 c9 ca 4f 23 88 | 8a c4 09 21 71 88 cb 16 |@....O#.|...!q...|
|00004030| 5c 66 29 cd 09 21 87 22 | 20 5b 70 72 6f 63 65 73 |\f)..!."| [proces|
|00004040| 73 2d 73 74 61 74 75 73 | 20 70 72 6f 63 65 73 73 |s-status| process|
|00004050| 20 28 65 78 69 74 20 73 | 69 67 6e 61 6c 29 20 62 | (exit s|ignal) b|
|00004060| 75 66 66 65 72 2d 6e 61 | 6d 65 20 70 72 6f 63 65 |uffer-na|me proce|
|00004070| 73 73 2d 62 75 66 66 65 | 72 20 6d 65 73 73 61 67 |ss-buffe|r messag|
|00004080| 65 20 22 25 73 3a 20 25 | 73 2e 22 20 70 72 6f 63 |e "%s: %|s." proc|
|00004090| 65 73 73 2d 63 6f 6d 6d | 61 6e 64 20 73 69 67 6e |ess-comm|and sign|
|000040a0| 61 6c 20 30 20 2d 31 20 | 6e 69 6c 20 6d 6f 64 65 |al 0 -1 |nil mode|
|000040b0| 2d 6c 69 6e 65 2d 70 72 | 6f 63 65 73 73 20 64 65 |-line-pr|ocess de|
|000040c0| 6c 65 74 65 2d 70 72 6f | 63 65 73 73 5d 20 36 5d |lete-pro|cess] 6]|
|000040d0| 20 73 68 65 6c 6c 2d 63 | 6f 6d 6d 61 6e 64 2d 66 | shell-c|ommand-f|
|000040e0| 69 6c 74 65 72 20 23 5b | 28 70 72 6f 63 20 73 74 |ilter #[|(proc st|
|000040f0| 72 69 6e 67 29 20 22 70 | 18 c1 5c 6e 21 1b c4 1d |ring) "p|..\n!...|
|00004100| c6 0b 21 1e 07 c8 0e 07 | 21 1e 09 ca 8e 0b 71 88 |..!.....|!.....q.|
|00004110| 60 64 55 84 20 00 60 15 | 64 62 88 cb 0e 5c 66 21 |`dU. .`.|db...\f!|
|00004120| 2e 06 87 22 20 5b 6f 62 | 75 66 20 70 72 6f 63 65 |..." [ob|uf proce|
|00004130| 73 73 2d 62 75 66 66 65 | 72 20 70 72 6f 63 20 62 |ss-buffe|r proc b|
|00004140| 75 66 66 65 72 20 6e 69 | 6c 20 6f 70 6f 69 6e 74 |uffer ni|l opoint|
|00004150| 20 67 65 74 2d 62 75 66 | 66 65 72 2d 77 69 6e 64 | get-buf|fer-wind|
|00004160| 6f 77 20 77 69 6e 64 6f | 77 20 77 69 6e 64 6f 77 |ow windo|w window|
|00004170| 2d 73 74 61 72 74 20 70 | 6f 73 20 28 28 62 79 74 |-start p|os ((byt|
|00004180| 65 2d 63 6f 64 65 20 22 | c0 09 5c 6e 5c 22 88 0b |e-code "|..\n\"..|
|00004190| 83 5c 66 00 0b 62 88 5c | 66 71 87 22 20 5b 73 65 |.\f..b.\|fq." [se|
|000041a0| 74 2d 77 69 6e 64 6f 77 | 2d 73 74 61 72 74 20 77 |t-window|-start w|
|000041b0| 69 6e 64 6f 77 20 70 6f | 73 20 6f 70 6f 69 6e 74 |indow po|s opoint|
|000041c0| 20 6f 62 75 66 5d 20 33 | 29 29 20 69 6e 73 65 72 | obuf] 3|)) inser|
|000041d0| 74 2d 62 65 66 6f 72 65 | 2d 6d 61 72 6b 65 72 73 |t-before|-markers|
|000041e0| 20 73 74 72 69 6e 67 5d | 20 32 5d 5d 20 33 29 0a | string]| 2]] 3).|
|000041f0| 28 64 65 66 61 6c 69 61 | 73 20 27 73 68 65 6c 6c |(defalia|s 'shell|
|00004200| 2d 63 6f 6d 6d 61 6e 64 | 2d 6f 6e 2d 72 65 67 69 |-command|-on-regi|
|00004210| 6f 6e 20 23 5b 28 73 74 | 61 72 74 20 65 6e 64 20 |on #[(st|art end |
|00004220| 63 6f 6d 6d 61 6e 64 20 | 26 6f 70 74 69 6f 6e 61 |command |&optiona|
|00004230| 6c 20 66 6c 61 67 20 69 | 6e 74 65 72 61 63 74 69 |l flag i|nteracti|
|00004240| 76 65 29 20 22 08 83 3a | 00 09 85 5c 66 00 60 c2 |ve) "..:|...\f.`.|
|00004250| 20 57 1b 09 83 14 00 c4 | 20 88 c5 0e 06 0e 07 0e | W......| .......|
|00004260| 08 c9 89 ca cb 0e 5c 66 | 26 08 88 cd ce 21 83 2e |......\f|&....!..|
|00004270| 00 cf ce 21 88 09 85 38 | 00 0b 85 38 00 d0 20 29 |...!...8|...8.. )|
|00004280| 87 d1 ce 21 ca 1e 12 1e | 13 d4 8e 0e 13 70 3d 83 |...!....|.....p=.|
|00004290| 6a 00 0e 07 64 7c 88 65 | 0e 06 7c 88 c5 65 64 0e |j...d|.e|..|..ed.|
|000042a0| 08 c9 89 ca cb 0e 5c 66 | 26 08 88 c9 89 16 12 82 |......\f|&.......|
|000042b0| 88 00 8a 0e 13 71 88 d5 | 20 88 29 c5 0e 06 0e 07 |.....q..| .).....|
|000042c0| 0e 08 ca 0e 13 ca cb 0e | 5c 66 26 08 88 c9 89 16 |........|\f&.....|
|000042d0| 12 2b 87 22 20 5b 66 6c | 61 67 20 69 6e 74 65 72 |.+." [fl|ag inter|
|000042e0| 61 63 74 69 76 65 20 6d | 61 72 6b 20 73 77 61 70 |active m|ark swap|
|000042f0| 20 70 75 73 68 2d 6d 61 | 72 6b 20 63 61 6c 6c 2d | push-ma|rk call-|
|00004300| 70 72 6f 63 65 73 73 2d | 72 65 67 69 6f 6e 20 73 |process-|region s|
|00004310| 74 61 72 74 20 65 6e 64 | 20 73 68 65 6c 6c 2d 66 |tart end| shell-f|
|00004320| 69 6c 65 2d 6e 61 6d 65 | 20 74 20 6e 69 6c 20 22 |ile-name| t nil "|
|00004330| 2d 63 22 20 63 6f 6d 6d | 61 6e 64 20 67 65 74 2d |-c" comm|and get-|
|00004340| 62 75 66 66 65 72 20 22 | 2a 53 68 65 6c 6c 20 43 |buffer "|*Shell C|
|00004350| 6f 6d 6d 61 6e 64 20 4f | 75 74 70 75 74 2a 22 20 |ommand O|utput*" |
|00004360| 6b 69 6c 6c 2d 62 75 66 | 66 65 72 20 65 78 63 68 |kill-buf|fer exch|
|00004370| 61 6e 67 65 2d 70 6f 69 | 6e 74 2d 61 6e 64 2d 6d |ange-poi|nt-and-m|
|00004380| 61 72 6b 20 67 65 74 2d | 62 75 66 66 65 72 2d 63 |ark get-|buffer-c|
|00004390| 72 65 61 74 65 20 73 75 | 63 63 65 73 73 20 62 75 |reate su|ccess bu|
|000043a0| 66 66 65 72 20 28 28 62 | 79 74 65 2d 63 6f 64 65 |ffer ((b|yte-code|
|000043b0| 20 22 8a 08 71 88 c1 20 | c2 55 83 0f 00 c2 82 13 | "..q.. |.U......|
|000043c0| 00 c3 65 64 5c 22 29 89 | 1c c2 55 83 2a 00 0d 83 |..ed\").|..U.*...|
|000043d0| 23 00 c6 c7 21 88 c8 08 | 21 88 82 50 00 0d 83 49 |#...!...|!..P...I|
|000043e0| 00 5c 66 c9 55 83 49 00 | c6 ca 8a 08 71 88 65 62 |.\f.U.I.|....q.eb|
|000043f0| 88 60 cb 7f 88 60 7b 29 | 5c 22 88 82 50 00 cc cd |.`...`{)|\"..P...|
|00004400| 08 21 c9 5c 22 88 29 cb | 87 22 20 5b 62 75 66 66 |.!.\".).|." [buff|
|00004410| 65 72 20 62 75 66 66 65 | 72 2d 73 69 7a 65 20 30 |er buffe|r-size 0|
|00004420| 20 63 6f 75 6e 74 2d 6c | 69 6e 65 73 20 6c 69 6e | count-l|ines lin|
|00004430| 65 73 20 73 75 63 63 65 | 73 73 20 6d 65 73 73 61 |es succe|ss messa|
|00004440| 67 65 20 22 28 53 68 65 | 6c 6c 20 63 6f 6d 6d 61 |ge "(She|ll comma|
|00004450| 6e 64 20 63 6f 6d 70 6c | 65 74 65 64 20 77 69 74 |nd compl|eted wit|
|00004460| 68 20 6e 6f 20 6f 75 74 | 70 75 74 29 22 20 6b 69 |h no out|put)" ki|
|00004470| 6c 6c 2d 62 75 66 66 65 | 72 20 31 20 22 25 73 22 |ll-buffe|r 1 "%s"|
|00004480| 20 6e 69 6c 20 73 65 74 | 2d 77 69 6e 64 6f 77 2d | nil set|-window-|
|00004490| 73 74 61 72 74 20 64 69 | 73 70 6c 61 79 2d 62 75 |start di|splay-bu|
|000044a0| 66 66 65 72 5d 20 35 29 | 29 20 65 72 61 73 65 2d |ffer] 5)|) erase-|
|000044b0| 62 75 66 66 65 72 5d 20 | 39 20 22 5c 0a 45 78 65 |buffer] |9 "\.Exe|
|000044c0| 63 75 74 65 20 73 74 72 | 69 6e 67 20 43 4f 4d 4d |cute str|ing COMM|
|000044d0| 41 4e 44 20 69 6e 20 69 | 6e 66 65 72 69 6f 72 20 |AND in i|nferior |
|000044e0| 73 68 65 6c 6c 20 77 69 | 74 68 20 72 65 67 69 6f |shell wi|th regio|
|000044f0| 6e 20 61 73 20 69 6e 70 | 75 74 2e 0a 4e 6f 72 6d |n as inp|ut..Norm|
|00004500| 61 6c 6c 79 20 64 69 73 | 70 6c 61 79 20 6f 75 74 |ally dis|play out|
|00004510| 70 75 74 20 28 69 66 20 | 61 6e 79 29 20 69 6e 20 |put (if |any) in |
|00004520| 74 65 6d 70 20 62 75 66 | 66 65 72 20 60 2a 53 68 |temp buf|fer `*Sh|
|00004530| 65 6c 6c 20 43 6f 6d 6d | 61 6e 64 20 4f 75 74 70 |ell Comm|and Outp|
|00004540| 75 74 2a 27 3b 0a 50 72 | 65 66 69 78 20 61 72 67 |ut*';.Pr|efix arg|
|00004550| 20 6d 65 61 6e 73 20 72 | 65 70 6c 61 63 65 20 74 | means r|eplace t|
|00004560| 68 65 20 72 65 67 69 6f | 6e 20 77 69 74 68 20 69 |he regio|n with i|
|00004570| 74 2e 0a 4e 6f 6e 69 6e | 74 65 72 61 63 74 69 76 |t..Nonin|teractiv|
|00004580| 65 20 61 72 67 73 20 61 | 72 65 20 53 54 41 52 54 |e args a|re START|
|00004590| 2c 20 45 4e 44 2c 20 43 | 4f 4d 4d 41 4e 44 2c 20 |, END, C|OMMAND, |
|000045a0| 46 4c 41 47 2e 0a 4e 6f | 6e 69 6e 74 65 72 61 63 |FLAG..No|ninterac|
|000045b0| 74 69 76 65 6c 79 20 46 | 4c 41 47 20 6d 65 61 6e |tively F|LAG mean|
|000045c0| 73 20 69 6e 73 65 72 74 | 20 6f 75 74 70 75 74 20 |s insert| output |
|000045d0| 69 6e 20 70 6c 61 63 65 | 20 6f 66 20 74 65 78 74 |in place| of text|
|000045e0| 20 66 72 6f 6d 20 53 54 | 41 52 54 20 74 6f 20 45 | from ST|ART to E|
|000045f0| 4e 44 2c 0a 61 6e 64 20 | 70 75 74 20 70 6f 69 6e |ND,.and |put poin|
|00004600| 74 20 61 74 20 74 68 65 | 20 65 6e 64 2c 20 62 75 |t at the| end, bu|
|00004610| 74 20 64 6f 6e 27 74 20 | 61 6c 74 65 72 20 74 68 |t don't |alter th|
|00004620| 65 20 6d 61 72 6b 2e 0a | 0a 49 66 20 74 68 65 20 |e mark..|.If the |
|00004630| 6f 75 74 70 75 74 20 69 | 73 20 6f 6e 65 20 6c 69 |output i|s one li|
|00004640| 6e 65 2c 20 69 74 20 69 | 73 20 64 69 73 70 6c 61 |ne, it i|s displa|
|00004650| 79 65 64 20 69 6e 20 74 | 68 65 20 65 63 68 6f 20 |yed in t|he echo |
|00004660| 61 72 65 61 2c 0a 62 75 | 74 20 69 74 20 69 73 20 |area,.bu|t it is |
|00004670| 6e 6f 6e 65 74 68 65 6c | 65 73 73 20 61 76 61 69 |nonethel|ess avai|
|00004680| 6c 61 62 6c 65 20 69 6e | 20 62 75 66 66 65 72 20 |lable in| buffer |
|00004690| 60 2a 53 68 65 6c 6c 20 | 43 6f 6d 6d 61 6e 64 20 |`*Shell |Command |
|000046a0| 4f 75 74 70 75 74 2a 27 | 0a 65 76 65 6e 20 74 68 |Output*'|.even th|
|000046b0| 6f 75 67 68 20 74 68 61 | 74 20 62 75 66 66 65 72 |ough tha|t buffer|
|000046c0| 20 69 73 20 6e 6f 74 20 | 61 75 74 6f 6d 61 74 69 | is not |automati|
|000046d0| 63 61 6c 6c 79 20 64 69 | 73 70 6c 61 79 65 64 2e |cally di|splayed.|
|000046e0| 20 20 49 66 20 74 68 65 | 72 65 20 69 73 20 6e 6f | If the|re is no|
|000046f0| 20 6f 75 74 70 75 74 0a | 6f 72 20 6f 75 74 70 75 | output.|or outpu|
|00004700| 74 20 69 73 20 69 6e 73 | 65 72 74 65 64 20 69 6e |t is ins|erted in|
|00004710| 20 74 68 65 20 63 75 72 | 72 65 6e 74 20 62 75 66 | the cur|rent buf|
|00004720| 66 65 72 20 74 68 65 6e | 20 60 2a 53 68 65 6c 6c |fer then| `*Shell|
|00004730| 20 43 6f 6d 6d 61 6e 64 | 20 4f 75 74 70 75 74 2a | Command| Output*|
|00004740| 27 20 69 73 0a 64 65 6c | 65 74 65 64 2e 22 20 28 |' is.del|eted." (|
|00004750| 6c 69 73 74 20 28 72 65 | 67 69 6f 6e 2d 62 65 67 |list (re|gion-beg|
|00004760| 69 6e 6e 69 6e 67 29 20 | 28 72 65 67 69 6f 6e 2d |inning) |(region-|
|00004770| 65 6e 64 29 20 28 72 65 | 61 64 2d 66 72 6f 6d 2d |end) (re|ad-from-|
|00004780| 6d 69 6e 69 62 75 66 66 | 65 72 20 22 53 68 65 6c |minibuff|er "Shel|
|00004790| 6c 20 63 6f 6d 6d 61 6e | 64 20 6f 6e 20 72 65 67 |l comman|d on reg|
|000047a0| 69 6f 6e 3a 20 22 20 6e | 69 6c 20 6e 69 6c 20 6e |ion: " n|il nil n|
|000047b0| 69 6c 20 28 71 75 6f 74 | 65 20 73 68 65 6c 6c 2d |il (quot|e shell-|
|000047c0| 63 6f 6d 6d 61 6e 64 2d | 68 69 73 74 6f 72 79 29 |command-|history)|
|000047d0| 29 20 63 75 72 72 65 6e | 74 2d 70 72 65 66 69 78 |) curren|t-prefix|
|000047e0| 2d 61 72 67 20 28 70 72 | 65 66 69 78 2d 6e 75 6d |-arg (pr|efix-num|
|000047f0| 65 72 69 63 2d 76 61 6c | 75 65 20 63 75 72 72 65 |eric-val|ue curre|
|00004800| 6e 74 2d 70 72 65 66 69 | 78 2d 61 72 67 29 29 5d |nt-prefi|x-arg))]|
|00004810| 29 0a 28 64 65 66 61 6c | 69 61 73 20 27 75 6e 69 |).(defal|ias 'uni|
|00004820| 76 65 72 73 61 6c 2d 61 | 72 67 75 6d 65 6e 74 20 |versal-a|rgument |
|00004830| 23 5b 6e 69 6c 20 22 c0 | c1 1a 1b c4 c1 c5 5c 22 |#[nil ".|......\"|
|00004840| 12 c6 5c 6e 21 c7 9a 83 | 1d 00 0b c0 5f 13 c4 c1 |..\n!...|...._...|
|00004850| c5 5c 22 12 82 09 00 c8 | 5c 6e 0b c1 23 2a 87 22 |.\".....|\n..#*."|
|00004860| 20 5b 34 20 6e 69 6c 20 | 6b 65 79 20 66 61 63 74 | [4 nil |key fact|
|00004870| 6f 72 20 72 65 61 64 2d | 6b 65 79 2d 73 65 71 75 |or read-|key-sequ|
|00004880| 65 6e 63 65 20 74 20 6b | 65 79 2d 62 69 6e 64 69 |ence t k|ey-bindi|
|00004890| 6e 67 20 75 6e 69 76 65 | 72 73 61 6c 2d 61 72 67 |ng unive|rsal-arg|
|000048a0| 75 6d 65 6e 74 20 70 72 | 65 66 69 78 2d 61 72 67 |ument pr|efix-arg|
|000048b0| 2d 69 6e 74 65 72 6e 61 | 6c 5d 20 34 20 22 5c 0a |-interna|l] 4 "\.|
|000048c0| 42 65 67 69 6e 20 61 20 | 6e 75 6d 65 72 69 63 20 |Begin a |numeric |
|000048d0| 61 72 67 75 6d 65 6e 74 | 20 66 6f 72 20 74 68 65 |argument| for the|
|000048e0| 20 66 6f 6c 6c 6f 77 69 | 6e 67 20 63 6f 6d 6d 61 | followi|ng comma|
|000048f0| 6e 64 2e 0a 44 69 67 69 | 74 73 20 6f 72 20 6d 69 |nd..Digi|ts or mi|
|00004900| 6e 75 73 20 73 69 67 6e | 20 66 6f 6c 6c 6f 77 69 |nus sign| followi|
|00004910| 6e 67 20 5c 5c 5b 75 6e | 69 76 65 72 73 61 6c 2d |ng \\[un|iversal-|
|00004920| 61 72 67 75 6d 65 6e 74 | 5d 20 6d 61 6b 65 20 75 |argument|] make u|
|00004930| 70 20 74 68 65 20 6e 75 | 6d 65 72 69 63 20 61 72 |p the nu|meric ar|
|00004940| 67 75 6d 65 6e 74 2e 0a | 5c 5c 5b 75 6e 69 76 65 |gument..|\\[unive|
|00004950| 72 73 61 6c 2d 61 72 67 | 75 6d 65 6e 74 5d 20 66 |rsal-arg|ument] f|
|00004960| 6f 6c 6c 6f 77 69 6e 67 | 20 74 68 65 20 64 69 67 |ollowing| the dig|
|00004970| 69 74 73 20 6f 72 20 6d | 69 6e 75 73 20 73 69 67 |its or m|inus sig|
|00004980| 6e 20 65 6e 64 73 20 74 | 68 65 20 61 72 67 75 6d |n ends t|he argum|
|00004990| 65 6e 74 2e 0a 5c 5c 5b | 75 6e 69 76 65 72 73 61 |ent..\\[|universa|
|000049a0| 6c 2d 61 72 67 75 6d 65 | 6e 74 5d 20 77 69 74 68 |l-argume|nt] with|
|000049b0| 6f 75 74 20 64 69 67 69 | 74 73 20 6f 72 20 6d 69 |out digi|ts or mi|
|000049c0| 6e 75 73 20 73 69 67 6e | 20 70 72 6f 76 69 64 65 |nus sign| provide|
|000049d0| 73 20 34 20 61 73 20 61 | 72 67 75 6d 65 6e 74 2e |s 4 as a|rgument.|
|000049e0| 0a 52 65 70 65 61 74 69 | 6e 67 20 5c 5c 5b 75 6e |.Repeati|ng \\[un|
|000049f0| 69 76 65 72 73 61 6c 2d | 61 72 67 75 6d 65 6e 74 |iversal-|argument|
|00004a00| 5d 20 77 69 74 68 6f 75 | 74 20 64 69 67 69 74 73 |] withou|t digits|
|00004a10| 20 6f 72 20 6d 69 6e 75 | 73 20 73 69 67 6e 0a 20 | or minu|s sign. |
|00004a20| 6d 75 6c 74 69 70 6c 69 | 65 73 20 74 68 65 20 61 |multipli|es the a|
|00004a30| 72 67 75 6d 65 6e 74 20 | 62 79 20 34 20 65 61 63 |rgument |by 4 eac|
|00004a40| 68 20 74 69 6d 65 2e 22 | 20 6e 69 6c 5d 29 0a 28 |h time."| nil]).(|
|00004a50| 62 79 74 65 2d 63 6f 64 | 65 20 22 c0 c1 c2 5c 22 |byte-cod|e "...\"|
|00004a60| 88 c0 c3 c4 5c 22 87 22 | 20 5b 64 65 66 61 6c 69 |....\"."| [defali|
|00004a70| 61 73 20 70 72 65 66 69 | 78 2d 61 72 67 2d 69 6e |as prefi|x-arg-in|
|00004a80| 74 65 72 6e 61 6c 20 23 | 5b 28 6b 65 79 20 66 61 |ternal #|[(key fa|
|00004a90| 63 74 6f 72 20 76 61 6c | 75 65 29 20 22 c0 19 5c |ctor val|ue) "..\|
|00004aa0| 6e a7 83 12 00 5c 6e c3 | 57 83 12 00 c4 11 5c 6e |n....\n.|W.....\n|
|00004ab0| 5b 12 5c 6e c5 3d 83 1c | 00 c4 11 c6 12 0e 07 c8 |[.\n.=..|........|
|00004ac0| 9a 83 33 00 09 5b 11 c6 | 16 09 ca c6 cb 5c 22 89 |..3..[..|.....\".|
|00004ad0| 16 07 82 1e 00 0e 07 3b | 83 70 00 0e 07 47 c0 55 |.......;|.p...G.U|
|00004ae0| 83 70 00 0e 07 cc 99 84 | 70 00 cd 0e 07 99 84 70 |.p......|p......p|
|00004af0| 00 5c 6e a7 83 58 00 5c | 6e 82 59 00 c3 ce 5f 0e |.\n..X.\|n.Y..._.|
|00004b00| 07 c3 48 cf 5a 5c 5c 12 | c6 16 09 ca c6 cb 5c 22 |..H.Z\\.|......\"|
|00004b10| 89 16 07 82 35 00 0e 09 | 83 7b 00 0e 09 43 82 8d |....5...|.{...C..|
|00004b20| 00 5c 6e a7 83 86 00 5c | 6e 09 5f 82 8d 00 09 c4 |.\n....\|n._.....|
|00004b30| 55 85 8d 00 c5 16 10 d1 | 0e 07 21 d2 3d 83 a3 00 |U.......|..!.=...|
|00004b40| d3 5c 6e 09 5c 22 88 ca | c6 cb 5c 22 16 07 d4 0e |.\n.\"..|..\"....|
|00004b50| 07 21 89 16 15 29 87 22 | 20 5b 31 20 73 69 67 6e |.!...)."| [1 sign|
|00004b60| 20 76 61 6c 75 65 20 30 | 20 2d 31 20 2d 20 6e 69 | value 0| -1 - ni|
|00004b70| 6c 20 6b 65 79 20 22 2d | 22 20 66 61 63 74 6f 72 |l key "-|" factor|
|00004b80| 20 72 65 61 64 2d 6b 65 | 79 2d 73 65 71 75 65 6e | read-ke|y-sequen|
|00004b90| 63 65 20 74 20 22 30 22 | 20 22 39 22 20 31 30 20 |ce t "0"| "9" 10 |
|00004ba0| 34 38 20 70 72 65 66 69 | 78 2d 61 72 67 20 6b 65 |48 prefi|x-arg ke|
|00004bb0| 79 2d 62 69 6e 64 69 6e | 67 20 75 6e 69 76 65 72 |y-bindin|g univer|
|00004bc0| 73 61 6c 2d 61 72 67 75 | 6d 65 6e 74 20 64 65 73 |sal-argu|ment des|
|00004bd0| 63 72 69 62 65 2d 61 72 | 67 20 6c 69 73 74 69 66 |cribe-ar|g listif|
|00004be0| 79 2d 6b 65 79 2d 73 65 | 71 75 65 6e 63 65 20 75 |y-key-se|quence u|
|00004bf0| 6e 72 65 61 64 2d 63 6f | 6d 6d 61 6e 64 2d 65 76 |nread-co|mmand-ev|
|00004c00| 65 6e 74 73 5d 20 34 5d | 20 64 65 73 63 72 69 62 |ents] 4]| describ|
|00004c10| 65 2d 61 72 67 20 23 5b | 28 76 61 6c 75 65 20 73 |e-arg #[|(value s|
|00004c20| 69 67 6e 29 20 22 08 a7 | 83 5c 66 00 c1 c2 08 0b |ign) "..|.\f.....|
|00004c30| 5f 5c 22 87 08 3a 83 17 | 00 c1 c4 08 40 5c 22 87 |_\"..:..|....@\".|
|00004c40| 0b c5 57 85 20 00 c1 c6 | 21 87 22 20 5b 76 61 6c |..W. ...|!." [val|
|00004c50| 75 65 20 6d 65 73 73 61 | 67 65 20 22 41 72 67 3a |ue messa|ge "Arg:|
|00004c60| 20 25 64 22 20 73 69 67 | 6e 20 22 41 72 67 3a 20 | %d" sig|n "Arg: |
|00004c70| 5b 25 64 5d 22 20 30 20 | 22 41 72 67 3a 20 2d 22 |[%d]" 0 |"Arg: -"|
|00004c80| 5d 20 34 5d 5d 20 33 29 | 0a 28 64 65 66 61 6c 69 |] 4]] 3)|.(defali|
|00004c90| 61 73 20 27 64 69 67 69 | 74 2d 61 72 67 75 6d 65 |as 'digi|t-argume|
|00004ca0| 6e 74 20 23 5b 28 61 72 | 67 29 20 22 c0 c1 c2 0b |nt #[(ar|g) "....|
|00004cb0| c4 5c 22 21 c5 0e 06 23 | 87 22 20 5b 70 72 65 66 |.\"!...#|." [pref|
|00004cc0| 69 78 2d 61 72 67 2d 69 | 6e 74 65 72 6e 61 6c 20 |ix-arg-i|nternal |
|00004cd0| 63 68 61 72 2d 74 6f 2d | 73 74 72 69 6e 67 20 6c |char-to-|string l|
|00004ce0| 6f 67 61 6e 64 20 6c 61 | 73 74 2d 63 6f 6d 6d 61 |ogand la|st-comma|
|00004cf0| 6e 64 2d 63 68 61 72 20 | 31 32 37 20 6e 69 6c 20 |nd-char |127 nil |
|00004d00| 61 72 67 5d 20 35 20 22 | 5c 0a 50 61 72 74 20 6f |arg] 5 "|\.Part o|
|00004d10| 66 20 74 68 65 20 6e 75 | 6d 65 72 69 63 20 61 72 |f the nu|meric ar|
|00004d20| 67 75 6d 65 6e 74 20 66 | 6f 72 20 74 68 65 20 6e |gument f|or the n|
|00004d30| 65 78 74 20 63 6f 6d 6d | 61 6e 64 2e 0a 5c 5c 5b |ext comm|and..\\[|
|00004d40| 75 6e 69 76 65 72 73 61 | 6c 2d 61 72 67 75 6d 65 |universa|l-argume|
|00004d50| 6e 74 5d 20 66 6f 6c 6c | 6f 77 69 6e 67 20 64 69 |nt] foll|owing di|
|00004d60| 67 69 74 73 20 6f 72 20 | 6d 69 6e 75 73 20 73 69 |gits or |minus si|
|00004d70| 67 6e 20 65 6e 64 73 20 | 74 68 65 20 61 72 67 75 |gn ends |the argu|
|00004d80| 6d 65 6e 74 2e 22 20 22 | 50 22 5d 29 0a 28 64 65 |ment." "|P"]).(de|
|00004d90| 66 61 6c 69 61 73 20 27 | 6e 65 67 61 74 69 76 65 |falias '|negative|
|00004da0| 2d 61 72 67 75 6d 65 6e | 74 20 23 5b 28 61 72 67 |-argumen|t #[(arg|
|00004db0| 29 20 22 c0 c1 c2 0b 23 | 87 22 20 5b 70 72 65 66 |) "....#|." [pref|
|00004dc0| 69 78 2d 61 72 67 2d 69 | 6e 74 65 72 6e 61 6c 20 |ix-arg-i|nternal |
|00004dd0| 22 2d 22 20 6e 69 6c 20 | 61 72 67 5d 20 34 20 22 |"-" nil |arg] 4 "|
|00004de0| 5c 0a 42 65 67 69 6e 20 | 61 20 6e 65 67 61 74 69 |\.Begin |a negati|
|00004df0| 76 65 20 6e 75 6d 65 72 | 69 63 20 61 72 67 75 6d |ve numer|ic argum|
|00004e00| 65 6e 74 20 66 6f 72 20 | 74 68 65 20 6e 65 78 74 |ent for |the next|
|00004e10| 20 63 6f 6d 6d 61 6e 64 | 2e 0a 5c 5c 5b 75 6e 69 | command|..\\[uni|
|00004e20| 76 65 72 73 61 6c 2d 61 | 72 67 75 6d 65 6e 74 5d |versal-a|rgument]|
|00004e30| 20 66 6f 6c 6c 6f 77 69 | 6e 67 20 64 69 67 69 74 | followi|ng digit|
|00004e40| 73 20 6f 72 20 6d 69 6e | 75 73 20 73 69 67 6e 20 |s or min|us sign |
|00004e50| 65 6e 64 73 20 74 68 65 | 20 61 72 67 75 6d 65 6e |ends the| argumen|
|00004e60| 74 2e 22 20 22 50 22 5d | 29 0a 28 64 65 66 61 6c |t." "P"]|).(defal|
|00004e70| 69 61 73 20 27 66 6f 72 | 77 61 72 64 2d 74 6f 2d |ias 'for|ward-to-|
|00004e80| 69 6e 64 65 6e 74 61 74 | 69 6f 6e 20 23 5b 28 61 |indentat|ion #[(a|
|00004e90| 72 67 29 20 22 08 79 88 | c1 c2 77 87 22 20 5b 61 |rg) ".y.|..w." [a|
|00004ea0| 72 67 20 22 20 09 22 20 | 6e 69 6c 5d 20 32 20 22 |rg " ." |nil] 2 "|
|00004eb0| 5c 0a 4d 6f 76 65 20 66 | 6f 72 77 61 72 64 20 41 |\.Move f|orward A|
|00004ec0| 52 47 20 6c 69 6e 65 73 | 20 61 6e 64 20 70 6f 73 |RG lines| and pos|
|00004ed0| 69 74 69 6f 6e 20 61 74 | 20 66 69 72 73 74 20 6e |ition at| first n|
|00004ee0| 6f 6e 62 6c 61 6e 6b 20 | 63 68 61 72 61 63 74 65 |onblank |characte|
|00004ef0| 72 2e 22 20 22 70 22 5d | 29 0a 28 64 65 66 61 6c |r." "p"]|).(defal|
|00004f00| 69 61 73 20 27 62 61 63 | 6b 77 61 72 64 2d 74 6f |ias 'bac|kward-to|
|00004f10| 2d 69 6e 64 65 6e 74 61 | 74 69 6f 6e 20 23 5b 28 |-indenta|tion #[(|
|00004f20| 61 72 67 29 20 22 08 5b | 79 88 c1 c2 77 87 22 20 |arg) ".[|y...w." |
|00004f30| 5b 61 72 67 20 22 20 09 | 22 20 6e 69 6c 5d 20 32 |[arg " .|" nil] 2|
|00004f40| 20 22 5c 0a 4d 6f 76 65 | 20 62 61 63 6b 77 61 72 | "\.Move| backwar|
|00004f50| 64 20 41 52 47 20 6c 69 | 6e 65 73 20 61 6e 64 20 |d ARG li|nes and |
|00004f60| 70 6f 73 69 74 69 6f 6e | 20 61 74 20 66 69 72 73 |position| at firs|
|00004f70| 74 20 6e 6f 6e 62 6c 61 | 6e 6b 20 63 68 61 72 61 |t nonbla|nk chara|
|00004f80| 63 74 65 72 2e 22 20 22 | 70 22 5d 29 0a 28 64 65 |cter." "|p"]).(de|
|00004f90| 66 76 61 72 20 6b 69 6c | 6c 2d 77 68 6f 6c 65 2d |fvar kil|l-whole-|
|00004fa0| 6c 69 6e 65 20 6e 69 6c | 20 22 5c 0a 2a 49 66 20 |line nil| "\.*If |
|00004fb0| 6e 6f 6e 2d 6e 69 6c 2c | 20 60 6b 69 6c 6c 2d 6c |non-nil,| `kill-l|
|00004fc0| 69 6e 65 27 20 77 69 74 | 68 20 6e 6f 20 61 72 67 |ine' wit|h no arg|
|00004fd0| 20 61 74 20 62 65 67 20 | 6f 66 20 6c 69 6e 65 20 | at beg |of line |
|00004fe0| 6b 69 6c 6c 73 20 74 68 | 65 20 77 68 6f 6c 65 20 |kills th|e whole |
|00004ff0| 6c 69 6e 65 2e 22 29 0a | 28 64 65 66 61 6c 69 61 |line.").|(defalia|
|00005000| 73 20 27 6b 69 6c 6c 2d | 6c 69 6e 65 20 23 5b 28 |s 'kill-|line #[(|
|00005010| 26 6f 70 74 69 6f 6e 61 | 6c 20 61 72 67 29 20 22 |&optiona|l arg) "|
|00005020| c0 60 09 83 0e 00 c2 09 | 21 79 88 82 2f 00 6d 83 |.`......|!y../.m.|
|00005030| 17 00 c3 c4 c5 5c 22 88 | c6 c7 21 84 26 00 0e 08 |.....\".|..!.&...|
|00005040| 83 2c 00 6e 83 2c 00 c9 | 79 88 82 2f 00 c5 7f 88 |.,.n.,..|y../....|
|00005050| 60 5c 22 87 22 20 5b 6b | 69 6c 6c 2d 72 65 67 69 |`\"." [k|ill-regi|
|00005060| 6f 6e 20 61 72 67 20 70 | 72 65 66 69 78 2d 6e 75 |on arg p|refix-nu|
|00005070| 6d 65 72 69 63 2d 76 61 | 6c 75 65 20 73 69 67 6e |meric-va|lue sign|
|00005080| 61 6c 20 65 6e 64 2d 6f | 66 2d 62 75 66 66 65 72 |al end-o|f-buffer|
|00005090| 20 6e 69 6c 20 6c 6f 6f | 6b 69 6e 67 2d 61 74 20 | nil loo|king-at |
|000050a0| 22 5b 20 09 5d 2a 24 22 | 20 6b 69 6c 6c 2d 77 68 |"[ .]*$"| kill-wh|
|000050b0| 6f 6c 65 2d 6c 69 6e 65 | 20 31 5d 20 35 20 22 5c |ole-line| 1] 5 "\|
|000050c0| 0a 4b 69 6c 6c 20 74 68 | 65 20 72 65 73 74 20 6f |.Kill th|e rest o|
|000050d0| 66 20 74 68 65 20 63 75 | 72 72 65 6e 74 20 6c 69 |f the cu|rrent li|
|000050e0| 6e 65 3b 20 69 66 20 6e | 6f 20 6e 6f 6e 62 6c 61 |ne; if n|o nonbla|
|000050f0| 6e 6b 73 20 74 68 65 72 | 65 2c 20 6b 69 6c 6c 20 |nks ther|e, kill |
|00005100| 74 68 72 75 20 6e 65 77 | 6c 69 6e 65 2e 0a 57 69 |thru new|line..Wi|
|00005110| 74 68 20 70 72 65 66 69 | 78 20 61 72 67 75 6d 65 |th prefi|x argume|
|00005120| 6e 74 2c 20 6b 69 6c 6c | 20 74 68 61 74 20 6d 61 |nt, kill| that ma|
|00005130| 6e 79 20 6c 69 6e 65 73 | 20 66 72 6f 6d 20 70 6f |ny lines| from po|
|00005140| 69 6e 74 2e 0a 4e 65 67 | 61 74 69 76 65 20 61 72 |int..Neg|ative ar|
|00005150| 67 75 6d 65 6e 74 73 20 | 6b 69 6c 6c 20 6c 69 6e |guments |kill lin|
|00005160| 65 73 20 62 61 63 6b 77 | 61 72 64 2e 0a 0a 57 68 |es backw|ard...Wh|
|00005170| 65 6e 20 63 61 6c 6c 69 | 6e 67 20 66 72 6f 6d 20 |en calli|ng from |
|00005180| 61 20 70 72 6f 67 72 61 | 6d 2c 20 6e 69 6c 20 6d |a progra|m, nil m|
|00005190| 65 61 6e 73 20 5c 22 6e | 6f 20 61 72 67 5c 22 2c |eans \"n|o arg\",|
|000051a0| 0a 61 20 6e 75 6d 62 65 | 72 20 63 6f 75 6e 74 73 |.a numbe|r counts|
|000051b0| 20 61 73 20 61 20 70 72 | 65 66 69 78 20 61 72 67 | as a pr|efix arg|
|000051c0| 2e 0a 0a 49 66 20 60 6b | 69 6c 6c 2d 77 68 6f 6c |...If `k|ill-whol|
|000051d0| 65 2d 6c 69 6e 65 27 20 | 69 73 20 6e 6f 6e 2d 6e |e-line' |is non-n|
|000051e0| 69 6c 2c 20 74 68 65 6e | 20 6b 69 6c 6c 20 74 68 |il, then| kill th|
|000051f0| 65 20 77 68 6f 6c 65 20 | 6c 69 6e 65 0a 77 68 65 |e whole |line.whe|
|00005200| 6e 20 67 69 76 65 6e 20 | 6e 6f 20 61 72 67 75 6d |n given |no argum|
|00005210| 65 6e 74 20 61 74 20 74 | 68 65 20 62 65 67 69 6e |ent at t|he begin|
|00005220| 6e 69 6e 67 20 6f 66 20 | 61 20 6c 69 6e 65 2e 22 |ning of |a line."|
|00005230| 20 22 50 22 5d 29 0a 28 | 64 65 66 76 61 72 20 69 | "P"]).(|defvar i|
|00005240| 6e 74 65 72 70 72 6f 67 | 72 61 6d 2d 63 75 74 2d |nterprog|ram-cut-|
|00005250| 66 75 6e 63 74 69 6f 6e | 20 6e 69 6c 20 22 5c 0a |function| nil "\.|
|00005260| 46 75 6e 63 74 69 6f 6e | 20 74 6f 20 63 61 6c 6c |Function| to call|
|00005270| 20 74 6f 20 6d 61 6b 65 | 20 61 20 6b 69 6c 6c 65 | to make| a kille|
|00005280| 64 20 72 65 67 69 6f 6e | 20 61 76 61 69 6c 61 62 |d region| availab|
|00005290| 6c 65 20 74 6f 20 6f 74 | 68 65 72 20 70 72 6f 67 |le to ot|her prog|
|000052a0| 72 61 6d 73 2e 0a 0a 4d | 6f 73 74 20 77 69 6e 64 |rams...M|ost wind|
|000052b0| 6f 77 20 73 79 73 74 65 | 6d 73 20 70 72 6f 76 69 |ow syste|ms provi|
|000052c0| 64 65 20 73 6f 6d 65 20 | 73 6f 72 74 20 6f 66 20 |de some |sort of |
|000052d0| 66 61 63 69 6c 69 74 79 | 20 66 6f 72 20 63 75 74 |facility| for cut|
|000052e0| 74 69 6e 67 20 61 6e 64 | 0a 70 61 73 74 69 6e 67 |ting and|.pasting|
|000052f0| 20 74 65 78 74 20 62 65 | 74 77 65 65 6e 20 74 68 | text be|tween th|
|00005300| 65 20 77 69 6e 64 6f 77 | 73 20 6f 66 20 64 69 66 |e window|s of dif|
|00005310| 66 65 72 65 6e 74 20 70 | 72 6f 67 72 61 6d 73 2e |ferent p|rograms.|
|00005320| 0a 54 68 69 73 20 76 61 | 72 69 61 62 6c 65 20 68 |.This va|riable h|
|00005330| 6f 6c 64 73 20 61 20 66 | 75 6e 63 74 69 6f 6e 20 |olds a f|unction |
|00005340| 74 68 61 74 20 45 6d 61 | 63 73 20 63 61 6c 6c 73 |that Ema|cs calls|
|00005350| 20 77 68 65 6e 65 76 65 | 72 20 74 65 78 74 0a 69 | wheneve|r text.i|
|00005360| 73 20 70 75 74 20 69 6e | 20 74 68 65 20 6b 69 6c |s put in| the kil|
|00005370| 6c 20 72 69 6e 67 2c 20 | 74 6f 20 6d 61 6b 65 20 |l ring, |to make |
|00005380| 74 68 65 20 6e 65 77 20 | 6b 69 6c 6c 20 61 76 61 |the new |kill ava|
|00005390| 69 6c 61 62 6c 65 20 74 | 6f 20 6f 74 68 65 72 0a |ilable t|o other.|
|000053a0| 70 72 6f 67 72 61 6d 73 | 2e 0a 0a 54 68 65 20 66 |programs|...The f|
|000053b0| 75 6e 63 74 69 6f 6e 20 | 74 61 6b 65 73 20 6f 6e |unction |takes on|
|000053c0| 65 20 6f 72 20 74 77 6f | 20 61 72 67 75 6d 65 6e |e or two| argumen|
|000053d0| 74 73 2e 0a 54 68 65 20 | 66 69 72 73 74 20 61 72 |ts..The |first ar|
|000053e0| 67 75 6d 65 6e 74 2c 20 | 54 45 58 54 2c 20 69 73 |gument, |TEXT, is|
|000053f0| 20 61 20 73 74 72 69 6e | 67 20 63 6f 6e 74 61 69 | a strin|g contai|
|00005400| 6e 69 6e 67 0a 74 68 65 | 20 74 65 78 74 20 77 68 |ning.the| text wh|
|00005410| 69 63 68 20 73 68 6f 75 | 6c 64 20 62 65 20 6d 61 |ich shou|ld be ma|
|00005420| 64 65 20 61 76 61 69 6c | 61 62 6c 65 2e 0a 54 68 |de avail|able..Th|
|00005430| 65 20 73 65 63 6f 6e 64 | 2c 20 50 55 53 48 2c 20 |e second|, PUSH, |
|00005440| 69 66 20 6e 6f 6e 2d 6e | 69 6c 20 6d 65 61 6e 73 |if non-n|il means|
|00005450| 20 74 68 69 73 20 69 73 | 20 61 20 5c 22 6e 65 77 | this is| a \"new|
|00005460| 5c 22 20 6b 69 6c 6c 3b | 0a 6e 69 6c 20 6d 65 61 |\" kill;|.nil mea|
|00005470| 6e 73 20 61 70 70 65 6e | 64 69 6e 67 20 74 6f 20 |ns appen|ding to |
|00005480| 61 6e 20 5c 22 6f 6c 64 | 5c 22 20 6b 69 6c 6c 2e |an \"old|\" kill.|
|00005490| 22 29 0a 28 64 65 66 76 | 61 72 20 69 6e 74 65 72 |").(defv|ar inter|
|000054a0| 70 72 6f 67 72 61 6d 2d | 70 61 73 74 65 2d 66 75 |program-|paste-fu|
|000054b0| 6e 63 74 69 6f 6e 20 6e | 69 6c 20 22 5c 0a 46 75 |nction n|il "\.Fu|
|000054c0| 6e 63 74 69 6f 6e 20 74 | 6f 20 63 61 6c 6c 20 74 |nction t|o call t|
|000054d0| 6f 20 67 65 74 20 74 65 | 78 74 20 63 75 74 20 66 |o get te|xt cut f|
|000054e0| 72 6f 6d 20 6f 74 68 65 | 72 20 70 72 6f 67 72 61 |rom othe|r progra|
|000054f0| 6d 73 2e 0a 0a 4d 6f 73 | 74 20 77 69 6e 64 6f 77 |ms...Mos|t window|
|00005500| 20 73 79 73 74 65 6d 73 | 20 70 72 6f 76 69 64 65 | systems| provide|
|00005510| 20 73 6f 6d 65 20 73 6f | 72 74 20 6f 66 20 66 61 | some so|rt of fa|
|00005520| 63 69 6c 69 74 79 20 66 | 6f 72 20 63 75 74 74 69 |cility f|or cutti|
|00005530| 6e 67 20 61 6e 64 0a 70 | 61 73 74 69 6e 67 20 74 |ng and.p|asting t|
|00005540| 65 78 74 20 62 65 74 77 | 65 65 6e 20 74 68 65 20 |ext betw|een the |
|00005550| 77 69 6e 64 6f 77 73 20 | 6f 66 20 64 69 66 66 65 |windows |of diffe|
|00005560| 72 65 6e 74 20 70 72 6f | 67 72 61 6d 73 2e 0a 54 |rent pro|grams..T|
|00005570| 68 69 73 20 76 61 72 69 | 61 62 6c 65 20 68 6f 6c |his vari|able hol|
|00005580| 64 73 20 61 20 66 75 6e | 63 74 69 6f 6e 20 74 68 |ds a fun|ction th|
|00005590| 61 74 20 45 6d 61 63 73 | 20 63 61 6c 6c 73 20 74 |at Emacs| calls t|
|000055a0| 6f 20 6f 62 74 61 69 6e | 0a 74 65 78 74 20 74 68 |o obtain|.text th|
|000055b0| 61 74 20 6f 74 68 65 72 | 20 70 72 6f 67 72 61 6d |at other| program|
|000055c0| 73 20 68 61 76 65 20 70 | 72 6f 76 69 64 65 64 20 |s have p|rovided |
|000055d0| 66 6f 72 20 70 61 73 74 | 69 6e 67 2e 0a 0a 54 68 |for past|ing...Th|
|000055e0| 65 20 66 75 6e 63 74 69 | 6f 6e 20 73 68 6f 75 6c |e functi|on shoul|
|000055f0| 64 20 62 65 20 63 61 6c | 6c 65 64 20 77 69 74 68 |d be cal|led with|
|00005600| 20 6e 6f 20 61 72 67 75 | 6d 65 6e 74 73 2e 20 20 | no argu|ments. |
|00005610| 49 66 20 74 68 65 20 66 | 75 6e 63 74 69 6f 6e 0a |If the f|unction.|
|00005620| 72 65 74 75 72 6e 73 20 | 6e 69 6c 2c 20 74 68 65 |returns |nil, the|
|00005630| 6e 20 6e 6f 20 6f 74 68 | 65 72 20 70 72 6f 67 72 |n no oth|er progr|
|00005640| 61 6d 20 68 61 73 20 70 | 72 6f 76 69 64 65 64 20 |am has p|rovided |
|00005650| 73 75 63 68 20 74 65 78 | 74 2c 20 61 6e 64 20 74 |such tex|t, and t|
|00005660| 68 65 20 74 6f 70 0a 6f | 66 20 74 68 65 20 45 6d |he top.o|f the Em|
|00005670| 61 63 73 20 6b 69 6c 6c | 20 72 69 6e 67 20 73 68 |acs kill| ring sh|
|00005680| 6f 75 6c 64 20 62 65 20 | 75 73 65 64 2e 20 20 49 |ould be |used. I|
|00005690| 66 20 74 68 65 20 66 75 | 6e 63 74 69 6f 6e 20 72 |f the fu|nction r|
|000056a0| 65 74 75 72 6e 73 20 61 | 0a 73 74 72 69 6e 67 2c |eturns a|.string,|
|000056b0| 20 74 68 61 74 20 73 74 | 72 69 6e 67 20 73 68 6f | that st|ring sho|
|000056c0| 75 6c 64 20 62 65 20 70 | 75 74 20 69 6e 20 74 68 |uld be p|ut in th|
|000056d0| 65 20 6b 69 6c 6c 20 72 | 69 6e 67 20 61 73 20 74 |e kill r|ing as t|
|000056e0| 68 65 20 6c 61 74 65 73 | 74 20 6b 69 6c 6c 2e 0a |he lates|t kill..|
|000056f0| 0a 4e 6f 74 65 20 74 68 | 61 74 20 74 68 65 20 66 |.Note th|at the f|
|00005700| 75 6e 63 74 69 6f 6e 20 | 73 68 6f 75 6c 64 20 72 |unction |should r|
|00005710| 65 74 75 72 6e 20 61 20 | 73 74 72 69 6e 67 20 6f |eturn a |string o|
|00005720| 6e 6c 79 20 69 66 20 61 | 20 70 72 6f 67 72 61 6d |nly if a| program|
|00005730| 20 6f 74 68 65 72 0a 74 | 68 61 6e 20 45 6d 61 63 | other.t|han Emac|
|00005740| 73 20 68 61 73 20 70 72 | 6f 76 69 64 65 64 20 61 |s has pr|ovided a|
|00005750| 20 73 74 72 69 6e 67 20 | 66 6f 72 20 70 61 73 74 | string |for past|
|00005760| 69 6e 67 3b 20 69 66 20 | 45 6d 61 63 73 20 70 72 |ing; if |Emacs pr|
|00005770| 6f 76 69 64 65 64 20 74 | 68 65 0a 6d 6f 73 74 20 |ovided t|he.most |
|00005780| 72 65 63 65 6e 74 20 73 | 74 72 69 6e 67 2c 20 74 |recent s|tring, t|
|00005790| 68 65 20 66 75 6e 63 74 | 69 6f 6e 20 73 68 6f 75 |he funct|ion shou|
|000057a0| 6c 64 20 72 65 74 75 72 | 6e 20 6e 69 6c 2e 20 20 |ld retur|n nil. |
|000057b0| 49 66 20 69 74 20 69 73 | 0a 64 69 66 66 69 63 75 |If it is|.difficu|
|000057c0| 6c 74 20 74 6f 20 74 65 | 6c 6c 20 77 68 65 74 68 |lt to te|ll wheth|
|000057d0| 65 72 20 45 6d 61 63 73 | 20 6f 72 20 73 6f 6d 65 |er Emacs| or some|
|000057e0| 20 6f 74 68 65 72 20 70 | 72 6f 67 72 61 6d 20 70 | other p|rogram p|
|000057f0| 72 6f 76 69 64 65 64 20 | 74 68 65 0a 63 75 72 72 |rovided |the.curr|
|00005800| 65 6e 74 20 73 74 72 69 | 6e 67 2c 20 69 74 20 69 |ent stri|ng, it i|
|00005810| 73 20 70 72 6f 62 61 62 | 6c 79 20 67 6f 6f 64 20 |s probab|ly good |
|00005820| 65 6e 6f 75 67 68 20 74 | 6f 20 72 65 74 75 72 6e |enough t|o return|
|00005830| 20 6e 69 6c 20 69 66 20 | 74 68 65 20 73 74 72 69 | nil if |the stri|
|00005840| 6e 67 0a 69 73 20 65 71 | 75 61 6c 20 28 61 63 63 |ng.is eq|ual (acc|
|00005850| 6f 72 64 69 6e 67 20 74 | 6f 20 60 73 74 72 69 6e |ording t|o `strin|
|00005860| 67 3d 27 29 20 74 6f 20 | 74 68 65 20 6c 61 73 74 |g=') to |the last|
|00005870| 20 74 65 78 74 20 45 6d | 61 63 73 20 70 72 6f 76 | text Em|acs prov|
|00005880| 69 64 65 64 2e 22 29 0a | 28 64 65 66 76 61 72 20 |ided.").|(defvar |
|00005890| 6b 69 6c 6c 2d 72 69 6e | 67 20 6e 69 6c 20 22 5c |kill-rin|g nil "\|
|000058a0| 0a 4c 69 73 74 20 6f 66 | 20 6b 69 6c 6c 65 64 20 |.List of| killed |
|000058b0| 74 65 78 74 20 73 65 71 | 75 65 6e 63 65 73 2e 0a |text seq|uences..|
|000058c0| 53 69 6e 63 65 20 74 68 | 65 20 6b 69 6c 6c 20 72 |Since th|e kill r|
|000058d0| 69 6e 67 20 69 73 20 73 | 75 70 70 6f 73 65 64 20 |ing is s|upposed |
|000058e0| 74 6f 20 69 6e 74 65 72 | 61 63 74 20 6e 69 63 65 |to inter|act nice|
|000058f0| 6c 79 20 77 69 74 68 20 | 63 75 74 2d 61 6e 64 2d |ly with |cut-and-|
|00005900| 70 61 73 74 65 0a 66 61 | 63 69 6c 69 74 69 65 73 |paste.fa|cilities|
|00005910| 20 6f 66 66 65 72 65 64 | 20 62 79 20 77 69 6e 64 | offered| by wind|
|00005920| 6f 77 20 73 79 73 74 65 | 6d 73 2c 20 75 73 65 20 |ow syste|ms, use |
|00005930| 6f 66 20 74 68 69 73 20 | 76 61 72 69 61 62 6c 65 |of this |variable|
|00005940| 20 73 68 6f 75 6c 64 0a | 69 6e 74 65 72 61 63 74 | should.|interact|
|00005950| 20 6e 69 63 65 6c 79 20 | 77 69 74 68 20 60 69 6e | nicely |with `in|
|00005960| 74 65 72 70 72 6f 67 72 | 61 6d 2d 63 75 74 2d 66 |terprogr|am-cut-f|
|00005970| 75 6e 63 74 69 6f 6e 27 | 20 61 6e 64 0a 60 69 6e |unction'| and.`in|
|00005980| 74 65 72 70 72 6f 67 72 | 61 6d 2d 70 61 73 74 65 |terprogr|am-paste|
|00005990| 2d 66 75 6e 63 74 69 6f | 6e 27 2e 20 20 54 68 65 |-functio|n'. The|
|000059a0| 20 66 75 6e 63 74 69 6f | 6e 73 20 60 6b 69 6c 6c | functio|ns `kill|
|000059b0| 2d 6e 65 77 27 2c 0a 60 | 6b 69 6c 6c 2d 61 70 70 |-new',.`|kill-app|
|000059c0| 65 6e 64 27 2c 20 61 6e | 64 20 60 63 75 72 72 65 |end', an|d `curre|
|000059d0| 6e 74 2d 6b 69 6c 6c 27 | 20 61 72 65 20 73 75 70 |nt-kill'| are sup|
|000059e0| 70 6f 73 65 64 20 74 6f | 20 69 6d 70 6c 65 6d 65 |posed to| impleme|
|000059f0| 6e 74 20 74 68 69 73 0a | 69 6e 74 65 72 61 63 74 |nt this.|interact|
|00005a00| 69 6f 6e 3b 20 79 6f 75 | 20 6d 61 79 20 77 61 6e |ion; you| may wan|
|00005a10| 74 20 74 6f 20 75 73 65 | 20 74 68 65 6d 20 69 6e |t to use| them in|
|00005a20| 73 74 65 61 64 20 6f 66 | 20 6d 61 6e 69 70 75 6c |stead of| manipul|
|00005a30| 61 74 69 6e 67 20 74 68 | 65 20 6b 69 6c 6c 0a 72 |ating th|e kill.r|
|00005a40| 69 6e 67 20 64 69 72 65 | 63 74 6c 79 2e 22 29 0a |ing dire|ctly.").|
|00005a50| 28 64 65 66 63 6f 6e 73 | 74 20 6b 69 6c 6c 2d 72 |(defcons|t kill-r|
|00005a60| 69 6e 67 2d 6d 61 78 20 | 33 30 20 22 5c 0a 2a 4d |ing-max |30 "\.*M|
|00005a70| 61 78 69 6d 75 6d 20 6c | 65 6e 67 74 68 20 6f 66 |aximum l|ength of|
|00005a80| 20 6b 69 6c 6c 20 72 69 | 6e 67 20 62 65 66 6f 72 | kill ri|ng befor|
|00005a90| 65 20 6f 6c 64 65 73 74 | 20 65 6c 65 6d 65 6e 74 |e oldest| element|
|00005aa0| 73 20 61 72 65 20 74 68 | 72 6f 77 6e 20 61 77 61 |s are th|rown awa|
|00005ab0| 79 2e 22 29 0a 28 64 65 | 66 76 61 72 20 6b 69 6c |y.").(de|fvar kil|
|00005ac0| 6c 2d 72 69 6e 67 2d 79 | 61 6e 6b 2d 70 6f 69 6e |l-ring-y|ank-poin|
|00005ad0| 74 65 72 20 6e 69 6c 20 | 22 5c 0a 54 68 65 20 74 |ter nil |"\.The t|
|00005ae0| 61 69 6c 20 6f 66 20 74 | 68 65 20 6b 69 6c 6c 20 |ail of t|he kill |
|00005af0| 72 69 6e 67 20 77 68 6f | 73 65 20 63 61 72 20 69 |ring who|se car i|
|00005b00| 73 20 74 68 65 20 6c 61 | 73 74 20 74 68 69 6e 67 |s the la|st thing|
|00005b10| 20 79 61 6e 6b 65 64 2e | 22 29 0a 28 64 65 66 61 | yanked.|").(defa|
|00005b20| 6c 69 61 73 20 27 6b 69 | 6c 6c 2d 6e 65 77 20 23 |lias 'ki|ll-new #|
|00005b30| 5b 28 73 74 72 69 6e 67 | 29 20 22 08 09 42 89 11 |[(string|) "..B..|
|00005b40| 47 5c 6e 56 83 12 00 5c | 6e 53 09 9b c3 a1 88 09 |G\nV...\|nS......|
|00005b50| 14 0d 85 1c 00 0d 08 c6 | 5c 22 87 22 20 5b 73 74 |........|\"." [st|
|00005b60| 72 69 6e 67 20 6b 69 6c | 6c 2d 72 69 6e 67 20 6b |ring kil|l-ring k|
|00005b70| 69 6c 6c 2d 72 69 6e 67 | 2d 6d 61 78 20 6e 69 6c |ill-ring|-max nil|
|00005b80| 20 6b 69 6c 6c 2d 72 69 | 6e 67 2d 79 61 6e 6b 2d | kill-ri|ng-yank-|
|00005b90| 70 6f 69 6e 74 65 72 20 | 69 6e 74 65 72 70 72 6f |pointer |interpro|
|00005ba0| 67 72 61 6d 2d 63 75 74 | 2d 66 75 6e 63 74 69 6f |gram-cut|-functio|
|00005bb0| 6e 20 74 5d 20 34 20 22 | 5c 0a 4d 61 6b 65 20 53 |n t] 4 "|\.Make S|
|00005bc0| 54 52 49 4e 47 20 74 68 | 65 20 6c 61 74 65 73 74 |TRING th|e latest|
|00005bd0| 20 6b 69 6c 6c 20 69 6e | 20 74 68 65 20 6b 69 6c | kill in| the kil|
|00005be0| 6c 20 72 69 6e 67 2e 0a | 53 65 74 20 74 68 65 20 |l ring..|Set the |
|00005bf0| 6b 69 6c 6c 2d 72 69 6e | 67 2d 79 61 6e 6b 20 70 |kill-rin|g-yank p|
|00005c00| 6f 69 6e 74 65 72 20 74 | 6f 20 70 6f 69 6e 74 20 |ointer t|o point |
|00005c10| 74 6f 20 69 74 2e 0a 49 | 66 20 60 69 6e 74 65 72 |to it..I|f `inter|
|00005c20| 70 72 6f 67 72 61 6d 2d | 63 75 74 2d 66 75 6e 63 |program-|cut-func|
|00005c30| 74 69 6f 6e 27 20 69 73 | 20 6e 6f 6e 2d 6e 69 6c |tion' is| non-nil|
|00005c40| 2c 20 61 70 70 6c 79 20 | 69 74 20 74 6f 20 53 54 |, apply |it to ST|
|00005c50| 52 49 4e 47 2e 22 5d 29 | 0a 28 64 65 66 61 6c 69 |RING."])|.(defali|
|00005c60| 61 73 20 27 6b 69 6c 6c | 2d 61 70 70 65 6e 64 20 |as 'kill|-append |
|00005c70| 23 5b 28 73 74 72 69 6e | 67 20 62 65 66 6f 72 65 |#[(strin|g before|
|00005c80| 2d 70 29 20 22 08 09 83 | 5c 66 00 5c 6e 08 40 50 |-p) "...|\f.\n.@P|
|00005c90| 82 10 00 08 40 5c 6e 50 | a0 88 0b 85 1a 00 0b 08 |....@\nP|........|
|00005ca0| 40 21 87 22 20 5b 6b 69 | 6c 6c 2d 72 69 6e 67 20 |@!." [ki|ll-ring |
|00005cb0| 62 65 66 6f 72 65 2d 70 | 20 73 74 72 69 6e 67 20 |before-p| string |
|00005cc0| 69 6e 74 65 72 70 72 6f | 67 72 61 6d 2d 63 75 74 |interpro|gram-cut|
|00005cd0| 2d 66 75 6e 63 74 69 6f | 6e 5d 20 33 20 22 5c 0a |-functio|n] 3 "\.|
|00005ce0| 41 70 70 65 6e 64 20 53 | 54 52 49 4e 47 20 74 6f |Append S|TRING to|
|00005cf0| 20 74 68 65 20 65 6e 64 | 20 6f 66 20 74 68 65 20 | the end| of the |
|00005d00| 6c 61 74 65 73 74 20 6b | 69 6c 6c 20 69 6e 20 74 |latest k|ill in t|
|00005d10| 68 65 20 6b 69 6c 6c 20 | 72 69 6e 67 2e 0a 49 66 |he kill |ring..If|
|00005d20| 20 42 45 46 4f 52 45 2d | 50 20 69 73 20 6e 6f 6e | BEFORE-|P is non|
|00005d30| 2d 6e 69 6c 2c 20 70 72 | 65 70 65 6e 64 20 53 54 |-nil, pr|epend ST|
|00005d40| 52 49 4e 47 20 74 6f 20 | 74 68 65 20 6b 69 6c 6c |RING to |the kill|
|00005d50| 2e 0a 49 66 20 60 69 6e | 74 65 72 70 72 6f 67 72 |..If `in|terprogr|
|00005d60| 61 6d 2d 63 75 74 2d 66 | 75 6e 63 74 69 6f 6e 27 |am-cut-f|unction'|
|00005d70| 20 69 73 20 73 65 74 2c | 20 70 61 73 73 20 74 68 | is set,| pass th|
|00005d80| 65 20 72 65 73 75 6c 74 | 69 6e 67 20 6b 69 6c 6c |e result|ing kill|
|00005d90| 20 74 6f 0a 69 74 2e 22 | 5d 29 0a 28 64 65 66 61 | to.it."|]).(defa|
|00005da0| 6c 69 61 73 20 27 63 75 | 72 72 65 6e 74 2d 6b 69 |lias 'cu|rrent-ki|
|00005db0| 6c 6c 20 23 5b 28 6e 20 | 26 6f 70 74 69 6f 6e 61 |ll #[(n |&optiona|
|00005dc0| 6c 20 64 6f 2d 6e 6f 74 | 2d 6d 6f 76 65 29 20 22 |l do-not|-move) "|
|00005dd0| 08 c1 55 85 5c 66 00 5c | 6e 85 5c 66 00 5c 6e 20 |..U.\f.\|n.\f.\n |
|00005de0| 89 1b 83 1c 00 c4 1d c6 | 0b 21 88 29 0b 82 41 00 |........|.!.)..A.|
|00005df0| 0e 07 84 25 00 c8 c9 21 | 88 ca 08 0e 0b 47 5a 0e |...%...!|.....GZ.|
|00005e00| 07 47 5c 22 0e 07 9b 1e | 5c 66 0e 0d 84 3d 00 0e |.G\"....|\f...=..|
|00005e10| 5c 66 16 0b 0e 5c 66 40 | 29 29 87 22 20 5b 6e 20 |\f...\f@|))." [n |
|00005e20| 30 20 69 6e 74 65 72 70 | 72 6f 67 72 61 6d 2d 70 |0 interp|rogram-p|
|00005e30| 61 73 74 65 2d 66 75 6e | 63 74 69 6f 6e 20 69 6e |aste-fun|ction in|
|00005e40| 74 65 72 70 72 6f 67 72 | 61 6d 2d 70 61 73 74 65 |terprogr|am-paste|
|00005e50| 20 6e 69 6c 20 69 6e 74 | 65 72 70 72 6f 67 72 61 | nil int|erprogra|
|00005e60| 6d 2d 63 75 74 2d 66 75 | 6e 63 74 69 6f 6e 20 6b |m-cut-fu|nction k|
|00005e70| 69 6c 6c 2d 6e 65 77 20 | 6b 69 6c 6c 2d 72 69 6e |ill-new |kill-rin|
|00005e80| 67 20 65 72 72 6f 72 20 | 22 4b 69 6c 6c 20 72 69 |g error |"Kill ri|
|00005e90| 6e 67 20 69 73 20 65 6d | 70 74 79 22 20 6d 6f 64 |ng is em|pty" mod|
|00005ea0| 20 6b 69 6c 6c 2d 72 69 | 6e 67 2d 79 61 6e 6b 2d | kill-ri|ng-yank-|
|00005eb0| 70 6f 69 6e 74 65 72 20 | 41 52 47 74 68 2d 6b 69 |pointer |ARGth-ki|
|00005ec0| 6c 6c 2d 65 6c 65 6d 65 | 6e 74 20 64 6f 2d 6e 6f |ll-eleme|nt do-no|
|00005ed0| 74 2d 6d 6f 76 65 5d 20 | 34 20 22 5c 0a 52 6f 74 |t-move] |4 "\.Rot|
|00005ee0| 61 74 65 20 74 68 65 20 | 79 61 6e 6b 69 6e 67 20 |ate the |yanking |
|00005ef0| 70 6f 69 6e 74 20 62 79 | 20 4e 20 70 6c 61 63 65 |point by| N place|
|00005f00| 73 2c 20 61 6e 64 20 74 | 68 65 6e 20 72 65 74 75 |s, and t|hen retu|
|00005f10| 72 6e 20 74 68 61 74 20 | 6b 69 6c 6c 2e 0a 49 66 |rn that |kill..If|
|00005f20| 20 4e 20 69 73 20 7a 65 | 72 6f 2c 20 60 69 6e 74 | N is ze|ro, `int|
|00005f30| 65 72 70 72 6f 67 72 61 | 6d 2d 70 61 73 74 65 2d |erprogra|m-paste-|
|00005f40| 66 75 6e 63 74 69 6f 6e | 27 20 69 73 20 73 65 74 |function|' is set|
|00005f50| 2c 20 61 6e 64 20 63 61 | 6c 6c 69 6e 67 20 69 74 |, and ca|lling it|
|00005f60| 0a 72 65 74 75 72 6e 73 | 20 61 20 73 74 72 69 6e |.returns| a strin|
|00005f70| 67 2c 20 74 68 65 6e 20 | 74 68 61 74 20 73 74 72 |g, then |that str|
|00005f80| 69 6e 67 20 69 73 20 61 | 64 64 65 64 20 74 6f 20 |ing is a|dded to |
|00005f90| 74 68 65 20 66 72 6f 6e | 74 20 6f 66 20 74 68 65 |the fron|t of the|
|00005fa0| 0a 6b 69 6c 6c 20 72 69 | 6e 67 20 61 6e 64 20 72 |.kill ri|ng and r|
|00005fb0| 65 74 75 72 6e 65 64 20 | 61 73 20 74 68 65 20 6c |eturned |as the l|
|00005fc0| 61 74 65 73 74 20 6b 69 | 6c 6c 2e 0a 49 66 20 6f |atest ki|ll..If o|
|00005fd0| 70 74 69 6f 6e 61 6c 20 | 61 72 67 20 44 4f 2d 4e |ptional |arg DO-N|
|00005fe0| 4f 54 2d 4d 4f 56 45 20 | 69 73 20 6e 6f 6e 2d 6e |OT-MOVE |is non-n|
|00005ff0| 69 6c 2c 20 74 68 65 6e | 20 64 6f 6e 27 74 20 61 |il, then| don't a|
|00006000| 63 74 75 61 6c 6c 79 20 | 6d 6f 76 65 20 74 68 65 |ctually |move the|
|00006010| 20 0a 79 61 6e 6b 69 6e | 67 20 70 6f 69 6e 74 3b | .yankin|g point;|
|00006020| 20 6a 75 73 74 20 72 65 | 74 75 72 6e 20 74 68 65 | just re|turn the|
|00006030| 20 4e 74 68 20 6b 69 6c | 6c 20 66 6f 72 77 61 72 | Nth kil|l forwar|
|00006040| 64 2e 22 5d 29 0a 28 64 | 65 66 76 61 72 20 6b 69 |d."]).(d|efvar ki|
|00006050| 6c 6c 2d 72 65 61 64 2d | 6f 6e 6c 79 2d 6f 6b 20 |ll-read-|only-ok |
|00006060| 6e 69 6c 20 22 5c 0a 2a | 4e 6f 6e 2d 6e 69 6c 20 |nil "\.*|Non-nil |
|00006070| 6d 65 61 6e 73 20 64 6f | 6e 27 74 20 73 69 67 6e |means do|n't sign|
|00006080| 61 6c 20 61 6e 20 65 72 | 72 6f 72 20 66 6f 72 20 |al an er|ror for |
|00006090| 6b 69 6c 6c 69 6e 67 20 | 72 65 61 64 2d 6f 6e 6c |killing |read-onl|
|000060a0| 79 20 74 65 78 74 2e 22 | 29 0a 28 64 65 66 61 6c |y text."|).(defal|
|000060b0| 69 61 73 20 27 6b 69 6c | 6c 2d 72 65 67 69 6f 6e |ias 'kil|l-region|
|000060c0| 20 23 5b 28 62 65 67 20 | 65 6e 64 29 20 22 08 83 | #[(beg |end) "..|
|000060d0| 08 00 09 83 11 00 c2 0b | 5c 66 c5 c6 24 83 5c 22 |........|\f..$.\"|
|000060e0| 00 c7 0b 5c 66 5c 22 88 | 0e 08 83 1f 00 c9 ca 21 |...\f\".|.......!|
|000060f0| 87 cb 20 87 0e 5c 66 cd | 3d 84 6d 00 0e 0e cf 3d |.. ..\f.|=.m....=|
|00006100| 84 6d 00 0b 5c 66 9a 84 | 6d 00 0b 5c 66 5d 0b 5c |.m..\f..|m..\f].\|
|00006110| 66 5e 5a d0 5c 5c 0e 5c | 66 c6 1e 11 1e 12 1e 13 |f^Z.\\.\|f.......|
|00006120| 0b 5c 66 7c 88 0e 5c 66 | 89 16 11 40 40 3b 84 60 |.\f|..\f|...@@;.`|
|00006130| 00 0e 11 41 89 16 11 82 | 51 00 d4 0e 11 40 40 21 |...A....|Q....@@!|
|00006140| 88 cf 89 16 15 2b 87 c7 | 0b 5c 66 5c 22 88 0b 5c |.....+..|.\f\"..\|
|00006150| 66 7c 87 22 20 5b 62 75 | 66 66 65 72 2d 72 65 61 |f|." [bu|ffer-rea|
|00006160| 64 2d 6f 6e 6c 79 20 69 | 6e 68 69 62 69 74 2d 72 |d-only i|nhibit-r|
|00006170| 65 61 64 2d 6f 6e 6c 79 | 20 74 65 78 74 2d 70 72 |ead-only| text-pr|
|00006180| 6f 70 65 72 74 79 2d 6e | 6f 74 2d 61 6c 6c 20 62 |operty-n|ot-all b|
|00006190| 65 67 20 65 6e 64 20 72 | 65 61 64 2d 6f 6e 6c 79 |eg end r|ead-only|
|000061a0| 20 6e 69 6c 20 63 6f 70 | 79 2d 72 65 67 69 6f 6e | nil cop|y-region|
|000061b0| 2d 61 73 2d 6b 69 6c 6c | 20 6b 69 6c 6c 2d 72 65 |-as-kill| kill-re|
|000061c0| 61 64 2d 6f 6e 6c 79 2d | 6f 6b 20 6d 65 73 73 61 |ad-only-|ok messa|
|000061d0| 67 65 20 22 52 65 61 64 | 20 6f 6e 6c 79 20 74 65 |ge "Read| only te|
|000061e0| 78 74 20 63 6f 70 69 65 | 64 20 74 6f 20 6b 69 6c |xt copie|d to kil|
|000061f0| 6c 20 72 69 6e 67 22 20 | 62 61 72 66 2d 69 66 2d |l ring" |barf-if-|
|00006200| 62 75 66 66 65 72 2d 72 | 65 61 64 2d 6f 6e 6c 79 |buffer-r|ead-only|
|00006210| 20 62 75 66 66 65 72 2d | 75 6e 64 6f 2d 6c 69 73 | buffer-|undo-lis|
|00006220| 74 20 74 20 6c 61 73 74 | 2d 63 6f 6d 6d 61 6e 64 |t t last|-command|
|00006230| 20 6b 69 6c 6c 2d 72 65 | 67 69 6f 6e 20 31 30 30 | kill-re|gion 100|
|00006240| 20 74 61 69 6c 20 6f 6c | 64 2d 6c 69 73 74 20 75 | tail ol|d-list u|
|00006250| 6e 64 6f 2d 73 74 72 6f | 6e 67 2d 6c 69 6d 69 74 |ndo-stro|ng-limit|
|00006260| 20 6b 69 6c 6c 2d 6e 65 | 77 20 74 68 69 73 2d 63 | kill-ne|w this-c|
|00006270| 6f 6d 6d 61 6e 64 5d 20 | 36 20 22 5c 0a 4b 69 6c |ommand] |6 "\.Kil|
|00006280| 6c 20 62 65 74 77 65 65 | 6e 20 70 6f 69 6e 74 20 |l betwee|n point |
|00006290| 61 6e 64 20 6d 61 72 6b | 2e 0a 54 68 65 20 74 65 |and mark|..The te|
|000062a0| 78 74 20 69 73 20 64 65 | 6c 65 74 65 64 20 62 75 |xt is de|leted bu|
|000062b0| 74 20 73 61 76 65 64 20 | 69 6e 20 74 68 65 20 6b |t saved |in the k|
|000062c0| 69 6c 6c 20 72 69 6e 67 | 2e 0a 54 68 65 20 63 6f |ill ring|..The co|
|000062d0| 6d 6d 61 6e 64 20 5c 5c | 5b 79 61 6e 6b 5d 20 63 |mmand \\|[yank] c|
|000062e0| 61 6e 20 72 65 74 72 69 | 65 76 65 20 69 74 20 66 |an retri|eve it f|
|000062f0| 72 6f 6d 20 74 68 65 72 | 65 2e 0a 28 49 66 20 79 |rom ther|e..(If y|
|00006300| 6f 75 20 77 61 6e 74 20 | 74 6f 20 6b 69 6c 6c 20 |ou want |to kill |
|00006310| 61 6e 64 20 74 68 65 6e | 20 79 61 6e 6b 20 69 6d |and then| yank im|
|00006320| 6d 65 64 69 61 74 65 6c | 79 2c 20 75 73 65 20 5c |mediatel|y, use \|
|00006330| 5c 5b 63 6f 70 79 2d 72 | 65 67 69 6f 6e 2d 61 73 |\[copy-r|egion-as|
|00006340| 2d 6b 69 6c 6c 5d 2e 29 | 0a 49 66 20 74 68 65 20 |-kill].)|.If the |
|00006350| 62 75 66 66 65 72 20 69 | 73 20 72 65 61 64 2d 6f |buffer i|s read-o|
|00006360| 6e 6c 79 2c 20 45 6d 61 | 63 73 20 77 69 6c 6c 20 |nly, Ema|cs will |
|00006370| 62 65 65 70 20 61 6e 64 | 20 72 65 66 72 61 69 6e |beep and| refrain|
|00006380| 20 66 72 6f 6d 20 64 65 | 6c 65 74 69 6e 67 0a 74 | from de|leting.t|
|00006390| 68 65 20 74 65 78 74 2c | 20 62 75 74 20 70 75 74 |he text,| but put|
|000063a0| 20 74 68 65 20 74 65 78 | 74 20 69 6e 20 74 68 65 | the tex|t in the|
|000063b0| 20 6b 69 6c 6c 20 72 69 | 6e 67 20 61 6e 79 77 61 | kill ri|ng anywa|
|000063c0| 79 2e 20 20 54 68 69 73 | 20 6d 65 61 6e 73 20 74 |y. This| means t|
|000063d0| 68 61 74 0a 79 6f 75 20 | 63 61 6e 20 75 73 65 20 |hat.you |can use |
|000063e0| 74 68 65 20 6b 69 6c 6c | 69 6e 67 20 63 6f 6d 6d |the kill|ing comm|
|000063f0| 61 6e 64 73 20 74 6f 20 | 63 6f 70 79 20 74 65 78 |ands to |copy tex|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.