home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Source Code 1993 July / THE_SOURCE_CODE_CD_ROM.iso / gnu / emacs-19.16 / lisp / simple.elc < prev    next >
Emacs Compiled Lisp  |  1993-07-05  |  51.2 KB

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text


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

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



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 3b 45 4c 43 13 00 00 00 | 0a 3b 3b 3b 20 63 6f 6d |;ELC....|.;;; com|
|00000010| 70 69 6c 65 64 20 62 79 | 20 6a 69 6d 62 40 67 65 |piled by| jimb@ge|
|00000020| 65 63 68 2e 67 6e 75 2e | 61 69 2e 6d 69 74 2e 65 |ech.gnu.|ai.mit.e|
|00000030| 64 75 20 6f 6e 20 54 75 | 65 20 4a 75 6c 20 20 36 |du on Tu|e Jul 6|
|00000040| 20 30 30 3a 30 31 3a 34 | 33 20 31 39 39 33 0a 3b | 00:01:4|3 1993.;|
|00000050| 3b 3b 20 66 72 6f 6d 20 | 66 69 6c 65 20 2f 67 64 |;; from |file /gd|
|00000060| 2f 67 6e 75 2f 65 6d 61 | 63 73 2f 31 39 2e 30 2f |/gnu/ema|cs/19.0/|
|00000070| 6c 69 73 70 2f 73 69 6d | 70 6c 65 2e 65 6c 0a 3b |lisp/sim|ple.el.;|
|00000080| 3b 3b 20 65 6d 61 63 73 | 20 76 65 72 73 69 6f 6e |;; emacs| version|
|00000090| 20 31 39 2e 31 35 2e 31 | 36 2e 0a 3b 3b 3b 20 62 | 19.15.1|6..;;; b|
|000000a0| 79 74 65 63 6f 6d 70 20 | 76 65 72 73 69 6f 6e 20 |ytecomp |version |
|000000b0| 46 53 46 20 32 2e 31 30 | 0a 3b 3b 3b 20 6f 70 74 |FSF 2.10|.;;; opt|
|000000c0| 69 6d 69 7a 61 74 69 6f | 6e 20 69 73 20 6f 6e 2e |imizatio|n is on.|
|000000d0| 0a 3b 3b 3b 20 74 68 69 | 73 20 66 69 6c 65 20 75 |.;;; thi|s file u|
|000000e0| 73 65 73 20 6f 70 63 6f | 64 65 73 20 77 68 69 63 |ses opco|des whic|
|000000f0| 68 20 64 6f 20 6e 6f 74 | 20 65 78 69 73 74 20 69 |h do not| exist i|
|00000100| 6e 20 45 6d 61 63 73 20 | 31 38 2e 0a 0a 28 69 66 |n Emacs |18...(if|
|00000110| 20 28 61 6e 64 20 28 62 | 6f 75 6e 64 70 20 27 65 | (and (b|oundp 'e|
|00000120| 6d 61 63 73 2d 76 65 72 | 73 69 6f 6e 29 0a 09 20 |macs-ver|sion).. |
|00000130| 28 6f 72 20 28 61 6e 64 | 20 28 62 6f 75 6e 64 70 |(or (and| (boundp|
|00000140| 20 27 65 70 6f 63 68 3a | 3a 76 65 72 73 69 6f 6e | 'epoch:|:version|
|00000150| 29 20 65 70 6f 63 68 3a | 3a 76 65 72 73 69 6f 6e |) epoch:|:version|
|00000160| 29 0a 09 20 20 20 20 20 | 28 73 74 72 69 6e 67 2d |).. |(string-|
|00000170| 6c 65 73 73 70 20 65 6d | 61 63 73 2d 76 65 72 73 |lessp em|acs-vers|
|00000180| 69 6f 6e 20 22 31 39 22 | 29 29 29 0a 20 20 20 20 |ion "19"|))). |
|00000190| 28 65 72 72 6f 72 20 22 | 54 68 69 73 20 66 69 6c |(error "|This fil|
|000001a0| 65 20 77 61 73 20 63 6f | 6d 70 69 6c 65 64 20 66 |e was co|mpiled f|
|000001b0| 6f 72 20 45 6d 61 63 73 | 20 31 39 22 29 29 0a 0a |or Emacs| 19"))..|
|000001c0| 28 64 65 66 61 6c 69 61 | 73 20 27 6f 70 65 6e 2d |(defalia|s 'open-|
|000001d0| 6c 69 6e 65 20 23 5b 28 | 61 72 67 29 20 22 08 85 |line #[(|arg) "..|
|000001e0| 05 00 6e 89 19 3f 85 11 | 00 6e 85 11 00 6f 3f 89 |..n..?..|.n...o?.|
|000001f0| 1a 83 27 00 0b 83 24 00 | 0b c4 3d 84 24 00 60 0b |..'...$.|..=.$.`.|
|00000200| 42 13 c5 75 88 0e 06 c7 | 56 83 43 00 8a c8 63 88 |B..u....|V.C...c.|
|00000210| 29 09 83 3a 00 08 63 88 | 0e 06 53 89 16 06 82 29 |)..:..c.|..S....)|
|00000220| 00 5c 6e 85 49 00 c9 75 | 2a 87 22 20 5b 66 69 6c |.\n.I..u|*." [fil|
|00000230| 6c 2d 70 72 65 66 69 78 | 20 64 6f 2d 66 69 6c 6c |l-prefix| do-fill|
|00000240| 2d 70 72 65 66 69 78 20 | 66 6c 61 67 20 62 75 66 |-prefix |flag buf|
|00000250| 66 65 72 2d 75 6e 64 6f | 2d 6c 69 73 74 20 74 20 |fer-undo|-list t |
|00000260| 2d 31 20 61 72 67 20 30 | 20 31 30 20 31 5d 20 33 |-1 arg 0| 10 1] 3|
|00000270| 20 22 5c 0a 49 6e 73 65 | 72 74 20 61 20 6e 65 77 | "\.Inse|rt a new|
|00000280| 6c 69 6e 65 20 61 6e 64 | 20 6c 65 61 76 65 20 70 |line and| leave p|
|00000290| 6f 69 6e 74 20 62 65 66 | 6f 72 65 20 69 74 2e 0a |oint bef|ore it..|
|000002a0| 49 66 20 74 68 65 72 65 | 20 69 73 20 61 20 66 69 |If there| is a fi|
|000002b0| 6c 6c 20 70 72 65 66 69 | 78 2c 20 69 6e 73 65 72 |ll prefi|x, inser|
|000002c0| 74 20 74 68 65 20 66 69 | 6c 6c 20 70 72 65 66 69 |t the fi|ll prefi|
|000002d0| 78 20 6f 6e 20 74 68 65 | 20 6e 65 77 20 6c 69 6e |x on the| new lin|
|000002e0| 65 0a 69 66 20 74 68 65 | 20 6c 69 6e 65 20 77 6f |e.if the| line wo|
|000002f0| 75 6c 64 20 68 61 76 65 | 20 62 65 65 6e 20 65 6d |uld have| been em|
|00000300| 70 74 79 2e 0a 57 69 74 | 68 20 61 72 67 20 4e 2c |pty..Wit|h arg N,|
|00000310| 20 69 6e 73 65 72 74 20 | 4e 20 6e 65 77 6c 69 6e | insert |N newlin|
|00000320| 65 73 2e 22 20 22 2a 70 | 22 5d 29 0a 28 64 65 66 |es." "*p|"]).(def|
|00000330| 61 6c 69 61 73 20 27 73 | 70 6c 69 74 2d 6c 69 6e |alias 's|plit-lin|
|00000340| 65 20 23 5b 6e 69 6c 20 | 22 c0 c1 77 88 69 60 1a |e #[nil |"..w.i`.|
|00000350| 1b c4 63 88 c5 0b c6 5c | 22 88 5c 6e 62 2a 87 22 |..c....\|".\nb*."|
|00000360| 20 5b 22 20 09 22 20 6e | 69 6c 20 70 6f 73 20 63 | [" ." n|il pos c|
|00000370| 6f 6c 20 31 30 20 69 6e | 64 65 6e 74 2d 74 6f 20 |ol 10 in|dent-to |
|00000380| 30 5d 20 33 20 22 5c 0a | 53 70 6c 69 74 20 63 75 |0] 3 "\.|Split cu|
|00000390| 72 72 65 6e 74 20 6c 69 | 6e 65 2c 20 6d 6f 76 69 |rrent li|ne, movi|
|000003a0| 6e 67 20 70 6f 72 74 69 | 6f 6e 20 62 65 79 6f 6e |ng porti|on beyon|
|000003b0| 64 20 70 6f 69 6e 74 20 | 76 65 72 74 69 63 61 6c |d point |vertical|
|000003c0| 6c 79 20 64 6f 77 6e 2e | 22 20 22 2a 22 5d 29 0a |ly down.|" "*"]).|
|000003d0| 28 64 65 66 61 6c 69 61 | 73 20 27 71 75 6f 74 65 |(defalia|s 'quote|
|000003e0| 64 2d 69 6e 73 65 72 74 | 20 23 5b 28 61 72 67 29 |d-insert| #[(arg)|
|000003f0| 20 22 08 83 5c 6e 00 08 | c1 3d 83 0f 00 c2 20 82 | "..\n..|.=.... .|
|00000400| 11 00 c3 20 1c 08 c1 3d | 83 1d 00 c5 0e 06 21 88 |... ...=|......!.|
|00000410| c7 0c 0e 06 5c 22 29 87 | 22 20 5b 6f 76 65 72 77 |....\").|" [overw|
|00000420| 72 69 74 65 2d 6d 6f 64 | 65 20 6f 76 65 72 77 72 |rite-mod|e overwr|
|00000430| 69 74 65 2d 6d 6f 64 65 | 2d 62 69 6e 61 72 79 20 |ite-mode|-binary |
|00000440| 72 65 61 64 2d 71 75 6f | 74 65 64 2d 63 68 61 72 |read-quo|ted-char|
|00000450| 20 72 65 61 64 2d 63 68 | 61 72 20 63 68 61 72 20 | read-ch|ar char |
|00000460| 64 65 6c 65 74 65 2d 63 | 68 61 72 20 61 72 67 20 |delete-c|har arg |
|00000470| 69 6e 73 65 72 74 2d 63 | 68 61 72 5d 20 33 20 22 |insert-c|har] 3 "|
|00000480| 5c 0a 52 65 61 64 20 6e | 65 78 74 20 69 6e 70 75 |\.Read n|ext inpu|
|00000490| 74 20 63 68 61 72 61 63 | 74 65 72 20 61 6e 64 20 |t charac|ter and |
|000004a0| 69 6e 73 65 72 74 20 69 | 74 2e 0a 54 68 69 73 20 |insert i|t..This |
|000004b0| 69 73 20 75 73 65 66 75 | 6c 20 66 6f 72 20 69 6e |is usefu|l for in|
|000004c0| 73 65 72 74 69 6e 67 20 | 63 6f 6e 74 72 6f 6c 20 |serting |control |
|000004d0| 63 68 61 72 61 63 74 65 | 72 73 2e 0a 59 6f 75 20 |characte|rs..You |
|000004e0| 6d 61 79 20 61 6c 73 6f | 20 74 79 70 65 20 75 70 |may also| type up|
|000004f0| 20 74 6f 20 33 20 6f 63 | 74 61 6c 20 64 69 67 69 | to 3 oc|tal digi|
|00000500| 74 73 2c 20 74 6f 20 69 | 6e 73 65 72 74 20 61 20 |ts, to i|nsert a |
|00000510| 63 68 61 72 61 63 74 65 | 72 20 77 69 74 68 20 74 |characte|r with t|
|00000520| 68 61 74 20 63 6f 64 65 | 2e 0a 0a 49 6e 20 6f 76 |hat code|...In ov|
|00000530| 65 72 77 72 69 74 65 20 | 6d 6f 64 65 2c 20 74 68 |erwrite |mode, th|
|00000540| 69 73 20 66 75 6e 63 74 | 69 6f 6e 20 69 6e 73 65 |is funct|ion inse|
|00000550| 72 74 73 20 74 68 65 20 | 63 68 61 72 61 63 74 65 |rts the |characte|
|00000560| 72 20 61 6e 79 77 61 79 | 2c 20 61 6e 64 0a 64 6f |r anyway|, and.do|
|00000570| 65 73 20 6e 6f 74 20 68 | 61 6e 64 6c 65 20 6f 63 |es not h|andle oc|
|00000580| 74 61 6c 20 64 69 67 69 | 74 73 20 73 70 65 63 69 |tal digi|ts speci|
|00000590| 61 6c 6c 79 2e 20 20 54 | 68 69 73 20 6d 65 61 6e |ally. T|his mean|
|000005a0| 73 20 74 68 61 74 20 69 | 66 20 79 6f 75 20 75 73 |s that i|f you us|
|000005b0| 65 0a 6f 76 65 72 77 72 | 69 74 65 20 61 73 20 79 |e.overwr|ite as y|
|000005c0| 6f 75 72 20 6e 6f 72 6d | 61 6c 20 65 64 69 74 69 |our norm|al editi|
|000005d0| 6e 67 20 6d 6f 64 65 2c | 20 79 6f 75 20 63 61 6e |ng mode,| you can|
|000005e0| 20 75 73 65 20 74 68 69 | 73 20 66 75 6e 63 74 69 | use thi|s functi|
|000005f0| 6f 6e 20 74 6f 0a 69 6e | 73 65 72 74 20 63 68 61 |on to.in|sert cha|
|00000600| 72 61 63 74 65 72 73 20 | 77 68 65 6e 20 6e 65 63 |racters |when nec|
|00000610| 65 73 73 61 72 79 2e 0a | 0a 49 6e 20 62 69 6e 61 |essary..|.In bina|
|00000620| 72 79 20 6f 76 65 72 77 | 72 69 74 65 20 6d 6f 64 |ry overw|rite mod|
|00000630| 65 2c 20 74 68 69 73 20 | 66 75 6e 63 74 69 6f 6e |e, this |function|
|00000640| 20 64 6f 65 73 20 6f 76 | 65 72 77 72 69 74 65 2c | does ov|erwrite,|
|00000650| 20 61 6e 64 20 6f 63 74 | 61 6c 0a 64 69 67 69 74 | and oct|al.digit|
|00000660| 73 20 61 72 65 20 69 6e | 74 65 72 70 72 65 74 65 |s are in|terprete|
|00000670| 64 20 61 73 20 61 20 63 | 68 61 72 61 63 74 65 72 |d as a c|haracter|
|00000680| 20 63 6f 64 65 2e 20 20 | 54 68 69 73 20 69 73 20 | code. |This is |
|00000690| 73 75 70 70 6f 73 65 64 | 20 74 6f 20 6d 61 6b 65 |supposed| to make|
|000006a0| 0a 74 68 69 73 20 66 75 | 6e 63 74 69 6f 6e 20 75 |.this fu|nction u|
|000006b0| 73 65 66 75 6c 20 69 6e | 20 65 64 69 74 69 6e 67 |seful in| editing|
|000006c0| 20 62 69 6e 61 72 79 20 | 66 69 6c 65 73 2e 22 20 | binary |files." |
|000006d0| 22 2a 70 22 5d 29 0a 28 | 64 65 66 61 6c 69 61 73 |"*p"]).(|defalias|
|000006e0| 20 27 64 65 6c 65 74 65 | 2d 69 6e 64 65 6e 74 61 | 'delete|-indenta|
|000006f0| 74 69 6f 6e 20 23 5b 28 | 26 6f 70 74 69 6f 6e 61 |tion #[(|&optiona|
|00000700| 6c 20 61 72 67 29 20 22 | c0 79 88 09 83 5c 6e 00 |l arg) "|.y...\n.|
|00000710| c2 79 88 68 c3 3d 85 36 | 00 60 60 53 7c 88 0c 83 |.y.h.=.6|.``S|...|
|00000720| 34 00 60 0c 47 5c 5c 64 | 58 83 34 00 0c 60 60 0c |4.`.G\\d|X.4..``.|
|00000730| 47 5c 5c 7b 98 83 34 00 | 60 60 0c 47 5c 5c 7c 88 |G\\{..4.|``.G\\|.|
|00000740| c5 20 87 22 20 5b 30 20 | 61 72 67 20 31 20 31 30 |. ." [0 |arg 1 10|
|00000750| 20 66 69 6c 6c 2d 70 72 | 65 66 69 78 20 66 69 78 | fill-pr|efix fix|
|00000760| 75 70 2d 77 68 69 74 65 | 73 70 61 63 65 5d 20 34 |up-white|space] 4|
|00000770| 20 22 5c 0a 4a 6f 69 6e | 20 74 68 69 73 20 6c 69 | "\.Join| this li|
|00000780| 6e 65 20 74 6f 20 70 72 | 65 76 69 6f 75 73 20 61 |ne to pr|evious a|
|00000790| 6e 64 20 66 69 78 20 75 | 70 20 77 68 69 74 65 73 |nd fix u|p whites|
|000007a0| 70 61 63 65 20 61 74 20 | 6a 6f 69 6e 2e 0a 49 66 |pace at |join..If|
|000007b0| 20 74 68 65 72 65 20 69 | 73 20 61 20 66 69 6c 6c | there i|s a fill|
|000007c0| 20 70 72 65 66 69 78 2c | 20 64 65 6c 65 74 65 20 | prefix,| delete |
|000007d0| 69 74 20 66 72 6f 6d 20 | 74 68 65 20 62 65 67 69 |it from |the begi|
|000007e0| 6e 6e 69 6e 67 20 6f 66 | 20 74 68 69 73 20 6c 69 |nning of| this li|
|000007f0| 6e 65 2e 0a 57 69 74 68 | 20 61 72 67 75 6d 65 6e |ne..With| argumen|
|00000800| 74 2c 20 6a 6f 69 6e 20 | 74 68 69 73 20 6c 69 6e |t, join |this lin|
|00000810| 65 20 74 6f 20 66 6f 6c | 6c 6f 77 69 6e 67 20 6c |e to fol|lowing l|
|00000820| 69 6e 65 2e 22 20 22 2a | 50 22 5d 29 0a 28 64 65 |ine." "*|P"]).(de|
|00000830| 66 61 6c 69 61 73 20 27 | 66 69 78 75 70 2d 77 68 |falias '|fixup-wh|
|00000840| 69 74 65 73 70 61 63 65 | 20 23 5b 6e 69 6c 20 22 |itespace| #[nil "|
|00000850| 8a c0 20 88 c1 c2 21 86 | 12 00 8a c3 75 88 c1 c4 |.. ...!.|....u...|
|00000860| 21 29 3f 85 18 00 c5 63 | 29 87 22 20 5b 64 65 6c |!)?....c|)." [del|
|00000870| 65 74 65 2d 68 6f 72 69 | 7a 6f 6e 74 61 6c 2d 73 |ete-hori|zontal-s|
|00000880| 70 61 63 65 20 6c 6f 6f | 6b 69 6e 67 2d 61 74 20 |pace loo|king-at |
|00000890| 22 5e 5c 5c 7c 5c 5c 73 | 29 22 20 2d 31 20 22 24 |"^\\|\\s|)" -1 "$|
|000008a0| 5c 5c 7c 5c 5c 73 28 5c | 5c 7c 5c 5c 73 27 22 20 |\\|\\s(\|\|\\s'" |
|000008b0| 33 32 5d 20 32 20 22 5c | 0a 46 69 78 75 70 20 77 |32] 2 "\|.Fixup w|
|000008c0| 68 69 74 65 20 73 70 61 | 63 65 20 62 65 74 77 65 |hite spa|ce betwe|
|000008d0| 65 6e 20 6f 62 6a 65 63 | 74 73 20 61 72 6f 75 6e |en objec|ts aroun|
|000008e0| 64 20 70 6f 69 6e 74 2e | 0a 4c 65 61 76 65 20 6f |d point.|.Leave o|
|000008f0| 6e 65 20 73 70 61 63 65 | 20 6f 72 20 6e 6f 6e 65 |ne space| or none|
|00000900| 2c 20 61 63 63 6f 72 64 | 69 6e 67 20 74 6f 20 74 |, accord|ing to t|
|00000910| 68 65 20 63 6f 6e 74 65 | 78 74 2e 22 20 22 2a 22 |he conte|xt." "*"|
|00000920| 5d 29 0a 28 64 65 66 61 | 6c 69 61 73 20 27 64 65 |]).(defa|lias 'de|
|00000930| 6c 65 74 65 2d 68 6f 72 | 69 7a 6f 6e 74 61 6c 2d |lete-hor|izontal-|
|00000940| 73 70 61 63 65 20 23 5b | 6e 69 6c 20 22 c0 c1 78 |space #[|nil "..x|
|00000950| 88 60 c0 c1 77 88 60 7c | 87 22 20 5b 22 20 09 22 |.`..w.`||." [" ."|
|00000960| 20 6e 69 6c 5d 20 33 20 | 22 5c 0a 44 65 6c 65 74 | nil] 3 |"\.Delet|
|00000970| 65 20 61 6c 6c 20 73 70 | 61 63 65 73 20 61 6e 64 |e all sp|aces and|
|00000980| 20 74 61 62 73 20 61 72 | 6f 75 6e 64 20 70 6f 69 | tabs ar|ound poi|
|00000990| 6e 74 2e 22 20 22 2a 22 | 5d 29 0a 28 64 65 66 61 |nt." "*"|]).(defa|
|000009a0| 6c 69 61 73 20 27 6a 75 | 73 74 2d 6f 6e 65 2d 73 |lias 'ju|st-one-s|
|000009b0| 70 61 63 65 20 23 5b 6e | 69 6c 20 22 c0 c1 78 88 |pace #[n|il "..x.|
|000009c0| 67 c2 55 83 10 00 c3 75 | 88 82 13 00 c2 63 88 60 |g.U....u|.....c.`|
|000009d0| c0 c1 77 88 60 7c 87 22 | 20 5b 22 20 09 22 20 6e |..w.`|."| [" ." n|
|000009e0| 69 6c 20 33 32 20 31 5d | 20 33 20 22 5c 0a 44 65 |il 32 1]| 3 "\.De|
|000009f0| 6c 65 74 65 20 61 6c 6c | 20 73 70 61 63 65 73 20 |lete all| spaces |
|00000a00| 61 6e 64 20 74 61 62 73 | 20 61 72 6f 75 6e 64 20 |and tabs| around |
|00000a10| 70 6f 69 6e 74 2c 20 6c | 65 61 76 69 6e 67 20 6f |point, l|eaving o|
|00000a20| 6e 65 20 73 70 61 63 65 | 2e 22 20 22 2a 22 5d 29 |ne space|." "*"])|
|00000a30| 0a 28 64 65 66 61 6c 69 | 61 73 20 27 64 65 6c 65 |.(defali|as 'dele|
|00000a40| 74 65 2d 62 6c 61 6e 6b | 2d 6c 69 6e 65 73 20 23 |te-blank|-lines #|
|00000a50| 5b 6e 69 6c 20 22 c0 89 | 19 1a 8a c3 79 88 c4 c5 |[nil "..|....y...|
|00000a60| 21 89 12 85 5c 22 00 c4 | c6 21 3f 85 5c 22 00 6f |!...\"..|.!?.\".o|
|00000a70| 86 5c 22 00 c7 79 88 c4 | c5 21 3f 11 29 5c 6e 83 |.\"..y..|.!?.)\n.|
|00000a80| 45 00 c3 79 88 09 83 32 | 00 c8 79 88 60 c9 ca c0 |E..y...2|..y.`...|
|00000a90| cb 23 83 42 00 c8 79 88 | 60 82 43 00 65 7c 88 5c |.#.B..y.|`.C.e|.\|
|00000aa0| 6e 83 4d 00 09 84 68 00 | 8a c0 7f 88 c8 79 88 60 |n.M...h.|.....y.`|
|00000ab0| cc ca c0 cb 23 83 64 00 | c3 79 88 60 82 65 00 64 |....#.d.|.y.`.e.d|
|00000ac0| 7c 88 29 c4 cd 21 85 71 | 00 60 64 7c 2a 87 22 20 ||.)..!.q|.`d|*." |
|00000ad0| 5b 6e 69 6c 20 73 69 6e | 67 6c 65 62 6c 61 6e 6b |[nil sin|gleblank|
|00000ae0| 20 74 68 69 73 62 6c 61 | 6e 6b 20 30 20 6c 6f 6f | thisbla|nk 0 loo|
|00000af0| 6b 69 6e 67 2d 61 74 20 | 22 5b 20 09 5d 2a 24 22 |king-at |"[ .]*$"|
|00000b00| 20 22 5b 20 09 5d 2a 5c | 6e 5b 20 09 5d 2a 24 22 | "[ .]*\|n[ .]*$"|
|00000b10| 20 2d 31 20 31 20 72 65 | 2d 73 65 61 72 63 68 2d | -1 1 re|-search-|
|00000b20| 62 61 63 6b 77 61 72 64 | 20 22 5b 5e 20 09 5c 6e |backward| "[^ .\n|
|00000b30| 5d 22 20 74 20 72 65 2d | 73 65 61 72 63 68 2d 66 |]" t re-|search-f|
|00000b40| 6f 72 77 61 72 64 20 22 | 5e 5b 20 09 5d 2a 5c 6e |orward "|^[ .]*\n|
|00000b50| 5c 5c 27 22 5d 20 36 20 | 22 5c 0a 4f 6e 20 62 6c |\\'"] 6 |"\.On bl|
|00000b60| 61 6e 6b 20 6c 69 6e 65 | 2c 20 64 65 6c 65 74 65 |ank line|, delete|
|00000b70| 20 61 6c 6c 20 73 75 72 | 72 6f 75 6e 64 69 6e 67 | all sur|rounding|
|00000b80| 20 62 6c 61 6e 6b 20 6c | 69 6e 65 73 2c 20 6c 65 | blank l|ines, le|
|00000b90| 61 76 69 6e 67 20 6a 75 | 73 74 20 6f 6e 65 2e 0a |aving ju|st one..|
|00000ba0| 4f 6e 20 69 73 6f 6c 61 | 74 65 64 20 62 6c 61 6e |On isola|ted blan|
|00000bb0| 6b 20 6c 69 6e 65 2c 20 | 64 65 6c 65 74 65 20 74 |k line, |delete t|
|00000bc0| 68 61 74 20 6f 6e 65 2e | 0a 4f 6e 20 6e 6f 6e 62 |hat one.|.On nonb|
|00000bd0| 6c 61 6e 6b 20 6c 69 6e | 65 2c 20 64 65 6c 65 74 |lank lin|e, delet|
|00000be0| 65 20 61 6c 6c 20 62 6c | 61 6e 6b 20 6c 69 6e 65 |e all bl|ank line|
|00000bf0| 73 20 74 68 61 74 20 66 | 6f 6c 6c 6f 77 20 69 74 |s that f|ollow it|
|00000c00| 2e 22 20 22 2a 22 5d 29 | 0a 28 64 65 66 61 6c 69 |." "*"])|.(defali|
|00000c10| 61 73 20 27 62 61 63 6b | 2d 74 6f 2d 69 6e 64 65 |as 'back|-to-inde|
|00000c20| 6e 74 61 74 69 6f 6e 20 | 23 5b 6e 69 6c 20 22 c0 |ntation |#[nil ".|
|00000c30| 79 88 c1 c2 77 87 22 20 | 5b 30 20 22 20 09 22 20 |y...w." |[0 " ." |
|00000c40| 6e 69 6c 5d 20 32 20 22 | 5c 0a 4d 6f 76 65 20 70 |nil] 2 "|\.Move p|
|00000c50| 6f 69 6e 74 20 74 6f 20 | 74 68 65 20 66 69 72 73 |oint to |the firs|
|00000c60| 74 20 6e 6f 6e 2d 77 68 | 69 74 65 73 70 61 63 65 |t non-wh|itespace|
|00000c70| 20 63 68 61 72 61 63 74 | 65 72 20 6f 6e 20 74 68 | charact|er on th|
|00000c80| 69 73 20 6c 69 6e 65 2e | 22 20 6e 69 6c 5d 29 0a |is line.|" nil]).|
|00000c90| 28 64 65 66 61 6c 69 61 | 73 20 27 6e 65 77 6c 69 |(defalia|s 'newli|
|00000ca0| 6e 65 2d 61 6e 64 2d 69 | 6e 64 65 6e 74 20 23 5b |ne-and-i|ndent #[|
|00000cb0| 6e 69 6c 20 22 60 c0 c1 | 78 88 60 7c 88 c2 20 88 |nil "`..|x.`|.. .|
|00000cc0| c3 20 87 22 20 5b 22 20 | 09 22 20 6e 69 6c 20 6e |. ." [" |." nil n|
|00000cd0| 65 77 6c 69 6e 65 20 69 | 6e 64 65 6e 74 2d 61 63 |ewline i|ndent-ac|
|00000ce0| 63 6f 72 64 69 6e 67 2d | 74 6f 2d 6d 6f 64 65 5d |cording-|to-mode]|
|00000cf0| 20 33 20 22 5c 0a 49 6e | 73 65 72 74 20 61 20 6e | 3 "\.In|sert a n|
|00000d00| 65 77 6c 69 6e 65 2c 20 | 74 68 65 6e 20 69 6e 64 |ewline, |then ind|
|00000d10| 65 6e 74 20 61 63 63 6f | 72 64 69 6e 67 20 74 6f |ent acco|rding to|
|00000d20| 20 6d 61 6a 6f 72 20 6d | 6f 64 65 2e 0a 49 6e 64 | major m|ode..Ind|
|00000d30| 65 6e 74 61 74 69 6f 6e | 20 69 73 20 64 6f 6e 65 |entation| is done|
|00000d40| 20 75 73 69 6e 67 20 74 | 68 65 20 76 61 6c 75 65 | using t|he value|
|00000d50| 20 6f 66 20 60 69 6e 64 | 65 6e 74 2d 6c 69 6e 65 | of `ind|ent-line|
|00000d60| 2d 66 75 6e 63 74 69 6f | 6e 27 2e 0a 49 6e 20 70 |-functio|n'..In p|
|00000d70| 72 6f 67 72 61 6d 6d 69 | 6e 67 20 6c 61 6e 67 75 |rogrammi|ng langu|
|00000d80| 61 67 65 20 6d 6f 64 65 | 73 2c 20 74 68 69 73 20 |age mode|s, this |
|00000d90| 69 73 20 74 68 65 20 73 | 61 6d 65 20 61 73 20 54 |is the s|ame as T|
|00000da0| 41 42 2e 0a 49 6e 20 73 | 6f 6d 65 20 74 65 78 74 |AB..In s|ome text|
|00000db0| 20 6d 6f 64 65 73 2c 20 | 77 68 65 72 65 20 54 41 | modes, |where TA|
|00000dc0| 42 20 69 6e 73 65 72 74 | 73 20 61 20 74 61 62 2c |B insert|s a tab,|
|00000dd0| 20 74 68 69 73 20 63 6f | 6d 6d 61 6e 64 20 69 6e | this co|mmand in|
|00000de0| 64 65 6e 74 73 20 74 6f | 20 74 68 65 0a 63 6f 6c |dents to| the.col|
|00000df0| 75 6d 6e 20 73 70 65 63 | 69 66 69 65 64 20 62 79 |umn spec|ified by|
|00000e00| 20 74 68 65 20 76 61 72 | 69 61 62 6c 65 20 60 6c | the var|iable `l|
|00000e10| 65 66 74 2d 6d 61 72 67 | 69 6e 27 2e 22 20 22 2a |eft-marg|in'." "*|
|00000e20| 22 5d 29 0a 28 64 65 66 | 61 6c 69 61 73 20 27 72 |"]).(def|alias 'r|
|00000e30| 65 69 6e 64 65 6e 74 2d | 74 68 65 6e 2d 6e 65 77 |eindent-|then-new|
|00000e40| 6c 69 6e 65 2d 61 6e 64 | 2d 69 6e 64 65 6e 74 20 |line-and|-indent |
|00000e50| 23 5b 6e 69 6c 20 22 8a | 60 c0 c1 78 88 60 7c 88 |#[nil ".|`..x.`|.|
|00000e60| c2 20 88 29 c3 20 88 c2 | 20 87 22 20 5b 22 20 09 |. .). ..| ." [" .|
|00000e70| 22 20 6e 69 6c 20 69 6e | 64 65 6e 74 2d 61 63 63 |" nil in|dent-acc|
|00000e80| 6f 72 64 69 6e 67 2d 74 | 6f 2d 6d 6f 64 65 20 6e |ording-t|o-mode n|
|00000e90| 65 77 6c 69 6e 65 5d 20 | 33 20 22 5c 0a 52 65 69 |ewline] |3 "\.Rei|
|00000ea0| 6e 64 65 6e 74 20 63 75 | 72 72 65 6e 74 20 6c 69 |ndent cu|rrent li|
|00000eb0| 6e 65 2c 20 69 6e 73 65 | 72 74 20 6e 65 77 6c 69 |ne, inse|rt newli|
|00000ec0| 6e 65 2c 20 74 68 65 6e | 20 69 6e 64 65 6e 74 20 |ne, then| indent |
|00000ed0| 74 68 65 20 6e 65 77 20 | 6c 69 6e 65 2e 0a 49 6e |the new |line..In|
|00000ee0| 64 65 6e 74 61 74 69 6f | 6e 20 6f 66 20 62 6f 74 |dentatio|n of bot|
|00000ef0| 68 20 6c 69 6e 65 73 20 | 69 73 20 64 6f 6e 65 20 |h lines |is done |
|00000f00| 61 63 63 6f 72 64 69 6e | 67 20 74 6f 20 74 68 65 |accordin|g to the|
|00000f10| 20 63 75 72 72 65 6e 74 | 20 6d 61 6a 6f 72 20 6d | current| major m|
|00000f20| 6f 64 65 2c 0a 77 68 69 | 63 68 20 6d 65 61 6e 73 |ode,.whi|ch means|
|00000f30| 20 63 61 6c 6c 69 6e 67 | 20 74 68 65 20 63 75 72 | calling| the cur|
|00000f40| 72 65 6e 74 20 76 61 6c | 75 65 20 6f 66 20 60 69 |rent val|ue of `i|
|00000f50| 6e 64 65 6e 74 2d 6c 69 | 6e 65 2d 66 75 6e 63 74 |ndent-li|ne-funct|
|00000f60| 69 6f 6e 27 2e 0a 49 6e | 20 70 72 6f 67 72 61 6d |ion'..In| program|
|00000f70| 6d 69 6e 67 20 6c 61 6e | 67 75 61 67 65 20 6d 6f |ming lan|guage mo|
|00000f80| 64 65 73 2c 20 74 68 69 | 73 20 69 73 20 74 68 65 |des, thi|s is the|
|00000f90| 20 73 61 6d 65 20 61 73 | 20 54 41 42 2e 0a 49 6e | same as| TAB..In|
|00000fa0| 20 73 6f 6d 65 20 74 65 | 78 74 20 6d 6f 64 65 73 | some te|xt modes|
|00000fb0| 2c 20 77 68 65 72 65 20 | 54 41 42 20 69 6e 73 65 |, where |TAB inse|
|00000fc0| 72 74 73 20 61 20 74 61 | 62 2c 20 74 68 69 73 20 |rts a ta|b, this |
|00000fd0| 69 6e 64 65 6e 74 73 20 | 74 6f 20 74 68 65 0a 63 |indents |to the.c|
|00000fe0| 6f 6c 75 6d 6e 20 73 70 | 65 63 69 66 69 65 64 20 |olumn sp|ecified |
|00000ff0| 62 79 20 74 68 65 20 76 | 61 72 69 61 62 6c 65 20 |by the v|ariable |
|00001000| 60 6c 65 66 74 2d 6d 61 | 72 67 69 6e 27 2e 22 20 |`left-ma|rgin'." |
|00001010| 22 2a 22 5d 29 0a 28 62 | 79 74 65 2d 63 6f 64 65 |"*"]).(b|yte-code|
|00001020| 20 22 c0 c1 c2 5c 22 88 | c0 c3 c4 5c 22 87 22 20 | "...\".|...\"." |
|00001030| 5b 64 65 66 61 6c 69 61 | 73 20 6b 69 6c 6c 2d 66 |[defalia|s kill-f|
|00001040| 6f 72 77 61 72 64 2d 63 | 68 61 72 73 20 23 5b 28 |orward-c|hars #[(|
|00001050| 61 72 67 29 20 22 08 3c | 83 08 00 08 40 10 08 c1 |arg) ".<|....@...|
|00001060| 3d 83 10 00 c2 10 c3 60 | 60 08 5c 5c 5c 22 87 22 |=......`|`.\\\"."|
|00001070| 20 5b 61 72 67 20 2d 20 | 2d 31 20 6b 69 6c 6c 2d | [arg - |-1 kill-|
|00001080| 72 65 67 69 6f 6e 5d 20 | 34 5d 20 6b 69 6c 6c 2d |region] |4] kill-|
|00001090| 62 61 63 6b 77 61 72 64 | 2d 63 68 61 72 73 20 23 |backward|-chars #|
|000010a0| 5b 28 61 72 67 29 20 22 | 08 3c 83 08 00 08 40 10 |[(arg) "|.<....@.|
|000010b0| 08 c1 3d 83 10 00 c2 10 | c3 60 60 08 5a 5c 22 87 |..=.....|.``.Z\".|
|000010c0| 22 20 5b 61 72 67 20 2d | 20 2d 31 20 6b 69 6c 6c |" [arg -| -1 kill|
|000010d0| 2d 72 65 67 69 6f 6e 5d | 20 34 5d 5d 20 33 29 0a |-region]| 4]] 3).|
|000010e0| 28 64 65 66 61 6c 69 61 | 73 20 27 62 61 63 6b 77 |(defalia|s 'backw|
|000010f0| 61 72 64 2d 64 65 6c 65 | 74 65 2d 63 68 61 72 2d |ard-dele|te-char-|
|00001100| 75 6e 74 61 62 69 66 79 | 20 23 5b 28 61 72 67 20 |untabify| #[(arg |
|00001110| 26 6f 70 74 69 6f 6e 61 | 6c 20 6b 69 6c 6c 70 29 |&optiona|l killp)|
|00001120| 20 22 08 19 8a 09 c2 56 | 83 30 00 6f 84 30 00 68 | ".....V|.0.o.0.h|
|00001130| c3 55 83 26 00 69 1c c5 | 75 88 0c 69 5a 14 c6 c7 |.U.&.i..|u..iZ...|
|00001140| 0c 5c 22 88 c8 c9 21 88 | 29 c5 75 88 09 53 89 11 |.\"...!.|).u..S..|
|00001150| 82 04 00 2a ca 08 0e 0b | 5c 22 88 0e 0c 85 47 00 |...*....|\"....G.|
|00001160| 6c 3f 85 47 00 8a c6 c7 | 08 5c 22 29 87 22 20 5b |l?.G....|.\")." [|
|00001170| 61 72 67 20 63 6f 75 6e | 74 20 30 20 39 20 63 6f |arg coun|t 0 9 co|
|00001180| 6c 20 2d 31 20 69 6e 73 | 65 72 74 2d 63 68 61 72 |l -1 ins|ert-char|
|00001190| 20 33 32 20 64 65 6c 65 | 74 65 2d 63 68 61 72 20 | 32 dele|te-char |
|000011a0| 31 20 64 65 6c 65 74 65 | 2d 62 61 63 6b 77 61 72 |1 delete|-backwar|
|000011b0| 64 2d 63 68 61 72 20 6b | 69 6c 6c 70 20 6f 76 65 |d-char k|illp ove|
|000011c0| 72 77 72 69 74 65 2d 6d | 6f 64 65 5d 20 34 20 22 |rwrite-m|ode] 4 "|
|000011d0| 5c 0a 44 65 6c 65 74 65 | 20 63 68 61 72 61 63 74 |\.Delete| charact|
|000011e0| 65 72 73 20 62 61 63 6b | 77 61 72 64 2c 20 63 68 |ers back|ward, ch|
|000011f0| 61 6e 67 69 6e 67 20 74 | 61 62 73 20 69 6e 74 6f |anging t|abs into|
|00001200| 20 73 70 61 63 65 73 2e | 0a 44 65 6c 65 74 65 20 | spaces.|.Delete |
|00001210| 41 52 47 20 63 68 61 72 | 73 2c 20 61 6e 64 20 6b |ARG char|s, and k|
|00001220| 69 6c 6c 20 28 73 61 76 | 65 20 69 6e 20 6b 69 6c |ill (sav|e in kil|
|00001230| 6c 20 72 69 6e 67 29 20 | 69 66 20 4b 49 4c 4c 50 |l ring) |if KILLP|
|00001240| 20 69 73 20 6e 6f 6e 2d | 6e 69 6c 2e 0a 49 6e 74 | is non-|nil..Int|
|00001250| 65 72 61 63 74 69 76 65 | 6c 79 2c 20 41 52 47 20 |eractive|ly, ARG |
|00001260| 69 73 20 74 68 65 20 70 | 72 65 66 69 78 20 61 72 |is the p|refix ar|
|00001270| 67 20 28 64 65 66 61 75 | 6c 74 20 31 29 0a 61 6e |g (defau|lt 1).an|
|00001280| 64 20 4b 49 4c 4c 50 20 | 69 73 20 74 20 69 66 20 |d KILLP |is t if |
|00001290| 70 72 65 66 69 78 20 61 | 72 67 20 69 73 20 77 61 |prefix a|rg is wa|
|000012a0| 73 20 73 70 65 63 69 66 | 69 65 64 2e 22 20 22 2a |s specif|ied." "*|
|000012b0| 70 5c 6e 50 22 5d 29 0a | 28 64 65 66 61 6c 69 61 |p\nP"]).|(defalia|
|000012c0| 73 20 27 7a 61 70 2d 74 | 6f 2d 63 68 61 72 20 23 |s 'zap-t|o-char #|
|000012d0| 5b 28 61 72 67 20 63 68 | 61 72 29 20 22 c0 60 c1 |[(arg ch|ar) ".`.|
|000012e0| c2 0b 21 c4 89 0d 24 88 | 60 5c 22 87 22 20 5b 6b |..!...$.|`\"." [k|
|000012f0| 69 6c 6c 2d 72 65 67 69 | 6f 6e 20 73 65 61 72 63 |ill-regi|on searc|
|00001300| 68 2d 66 6f 72 77 61 72 | 64 20 63 68 61 72 2d 74 |h-forwar|d char-t|
|00001310| 6f 2d 73 74 72 69 6e 67 | 20 63 68 61 72 20 6e 69 |o-string| char ni|
|00001320| 6c 20 61 72 67 5d 20 37 | 20 22 5c 0a 4b 69 6c 6c |l arg] 7| "\.Kill|
|00001330| 20 75 70 20 74 6f 20 61 | 6e 64 20 69 6e 63 6c 75 | up to a|nd inclu|
|00001340| 64 69 6e 67 20 41 52 47 | 27 74 68 20 6f 63 63 75 |ding ARG|'th occu|
|00001350| 72 72 65 6e 63 65 20 6f | 66 20 43 48 41 52 2e 0a |rrence o|f CHAR..|
|00001360| 47 6f 65 73 20 62 61 63 | 6b 77 61 72 64 20 69 66 |Goes bac|kward if|
|00001370| 20 41 52 47 20 69 73 20 | 6e 65 67 61 74 69 76 65 | ARG is |negative|
|00001380| 3b 20 65 72 72 6f 72 20 | 69 66 20 43 48 41 52 20 |; error |if CHAR |
|00001390| 6e 6f 74 20 66 6f 75 6e | 64 2e 22 20 22 70 5c 6e |not foun|d." "p\n|
|000013a0| 63 5a 61 70 20 74 6f 20 | 63 68 61 72 3a 20 22 5d |cZap to |char: "]|
|000013b0| 29 0a 28 64 65 66 61 6c | 69 61 73 20 27 62 65 67 |).(defal|ias 'beg|
|000013c0| 69 6e 6e 69 6e 67 2d 6f | 66 2d 62 75 66 66 65 72 |inning-o|f-buffer|
|000013d0| 20 23 5b 28 26 6f 70 74 | 69 6f 6e 61 6c 20 61 72 | #[(&opt|ional ar|
|000013e0| 67 29 20 22 c0 20 88 09 | 83 26 00 c2 20 c3 56 83 |g) ". ..|.&.. .V.|
|000013f0| 19 00 c4 09 21 c2 20 c5 | a5 5f 82 27 00 c2 20 c4 |....!. .|._.'.. .|
|00001400| 09 21 5f c5 5c 5c c5 a5 | 82 27 00 65 62 88 09 85 |.!_.\\..|.'.eb...|
|00001410| 2f 00 c6 79 87 22 20 5b | 70 75 73 68 2d 6d 61 72 |/..y." [|push-mar|
|00001420| 6b 20 61 72 67 20 62 75 | 66 66 65 72 2d 73 69 7a |k arg bu|ffer-siz|
|00001430| 65 20 31 30 30 30 30 20 | 70 72 65 66 69 78 2d 6e |e 10000 |prefix-n|
|00001440| 75 6d 65 72 69 63 2d 76 | 61 6c 75 65 20 31 30 20 |umeric-v|alue 10 |
|00001450| 31 5d 20 33 20 22 5c 0a | 4d 6f 76 65 20 70 6f 69 |1] 3 "\.|Move poi|
|00001460| 6e 74 20 74 6f 20 74 68 | 65 20 62 65 67 69 6e 6e |nt to th|e beginn|
|00001470| 69 6e 67 20 6f 66 20 74 | 68 65 20 62 75 66 66 65 |ing of t|he buffe|
|00001480| 72 3b 20 6c 65 61 76 65 | 20 6d 61 72 6b 20 61 74 |r; leave| mark at|
|00001490| 20 70 72 65 76 69 6f 75 | 73 20 70 6f 73 69 74 69 | previou|s positi|
|000014a0| 6f 6e 2e 0a 57 69 74 68 | 20 61 72 67 20 4e 2c 20 |on..With| arg N, |
|000014b0| 70 75 74 20 70 6f 69 6e | 74 20 4e 2f 31 30 20 6f |put poin|t N/10 o|
|000014c0| 66 20 74 68 65 20 77 61 | 79 20 66 72 6f 6d 20 74 |f the wa|y from t|
|000014d0| 68 65 20 74 72 75 65 20 | 62 65 67 69 6e 6e 69 6e |he true |beginnin|
|000014e0| 67 2e 0a 0a 44 6f 6e 27 | 74 20 75 73 65 20 74 68 |g...Don'|t use th|
|000014f0| 69 73 20 63 6f 6d 6d 61 | 6e 64 20 69 6e 20 4c 69 |is comma|nd in Li|
|00001500| 73 70 20 70 72 6f 67 72 | 61 6d 73 21 0a 28 67 6f |sp progr|ams!.(go|
|00001510| 74 6f 2d 63 68 61 72 20 | 28 70 6f 69 6e 74 2d 6d |to-char |(point-m|
|00001520| 69 6e 29 29 20 69 73 20 | 66 61 73 74 65 72 20 61 |in)) is |faster a|
|00001530| 6e 64 20 61 76 6f 69 64 | 73 20 63 6c 6f 62 62 65 |nd avoid|s clobbe|
|00001540| 72 69 6e 67 20 74 68 65 | 20 6d 61 72 6b 2e 22 20 |ring the| mark." |
|00001550| 22 50 22 5d 29 0a 28 64 | 65 66 61 6c 69 61 73 20 |"P"]).(d|efalias |
|00001560| 27 65 6e 64 2d 6f 66 2d | 62 75 66 66 65 72 20 23 |'end-of-|buffer #|
|00001570| 5b 28 26 6f 70 74 69 6f | 6e 61 6c 20 61 72 67 29 |[(&optio|nal arg)|
|00001580| 20 22 c0 20 88 09 83 28 | 00 c2 20 54 c2 20 c3 56 | ". ...(|.. T. .V|
|00001590| 83 1c 00 c4 09 21 c2 20 | c5 a5 5f 82 24 00 c2 20 |.....!. |.._.$.. |
|000015a0| c4 09 21 5f c5 a5 5a 82 | 29 00 64 62 88 09 83 32 |..!_..Z.|).db...2|
|000015b0| 00 c6 79 87 60 1e 07 8a | c8 20 62 88 c9 ca 20 21 |..y.`...|. b... !|
|000015c0| 88 60 0e 07 57 2a 85 4a | 00 cb cc 21 87 22 20 5b |.`..W*.J|...!." [|
|000015d0| 70 75 73 68 2d 6d 61 72 | 6b 20 61 72 67 20 62 75 |push-mar|k arg bu|
|000015e0| 66 66 65 72 2d 73 69 7a | 65 20 31 30 30 30 30 20 |ffer-siz|e 10000 |
|000015f0| 70 72 65 66 69 78 2d 6e | 75 6d 65 72 69 63 2d 76 |prefix-n|umeric-v|
|00001600| 61 6c 75 65 20 31 30 20 | 31 20 6f 6c 64 2d 70 6f |alue 10 |1 old-po|
|00001610| 69 6e 74 20 77 69 6e 64 | 6f 77 2d 73 74 61 72 74 |int wind|ow-start|
|00001620| 20 76 65 72 74 69 63 61 | 6c 2d 6d 6f 74 69 6f 6e | vertica|l-motion|
|00001630| 20 77 69 6e 64 6f 77 2d | 68 65 69 67 68 74 20 72 | window-|height r|
|00001640| 65 63 65 6e 74 65 72 20 | 2d 33 5d 20 34 20 22 5c |ecenter |-3] 4 "\|
|00001650| 0a 4d 6f 76 65 20 70 6f | 69 6e 74 20 74 6f 20 74 |.Move po|int to t|
|00001660| 68 65 20 65 6e 64 20 6f | 66 20 74 68 65 20 62 75 |he end o|f the bu|
|00001670| 66 66 65 72 3b 20 6c 65 | 61 76 65 20 6d 61 72 6b |ffer; le|ave mark|
|00001680| 20 61 74 20 70 72 65 76 | 69 6f 75 73 20 70 6f 73 | at prev|ious pos|
|00001690| 69 74 69 6f 6e 2e 0a 57 | 69 74 68 20 61 72 67 20 |ition..W|ith arg |
|000016a0| 4e 2c 20 70 75 74 20 70 | 6f 69 6e 74 20 4e 2f 31 |N, put p|oint N/1|
|000016b0| 30 20 6f 66 20 74 68 65 | 20 77 61 79 20 66 72 6f |0 of the| way fro|
|000016c0| 6d 20 74 68 65 20 74 72 | 75 65 20 65 6e 64 2e 0a |m the tr|ue end..|
|000016d0| 0a 44 6f 6e 27 74 20 75 | 73 65 20 74 68 69 73 20 |.Don't u|se this |
|000016e0| 63 6f 6d 6d 61 6e 64 20 | 69 6e 20 4c 69 73 70 20 |command |in Lisp |
|000016f0| 70 72 6f 67 72 61 6d 73 | 21 0a 28 67 6f 74 6f 2d |programs|!.(goto-|
|00001700| 63 68 61 72 20 28 70 6f | 69 6e 74 2d 6d 61 78 29 |char (po|int-max)|
|00001710| 29 20 69 73 20 66 61 73 | 74 65 72 20 61 6e 64 20 |) is fas|ter and |
|00001720| 61 76 6f 69 64 73 20 63 | 6c 6f 62 62 65 72 69 6e |avoids c|lobberin|
|00001730| 67 20 74 68 65 20 6d 61 | 72 6b 2e 22 20 22 50 22 |g the ma|rk." "P"|
|00001740| 5d 29 0a 28 64 65 66 61 | 6c 69 61 73 20 27 6d 61 |]).(defa|lias 'ma|
|00001750| 72 6b 2d 77 68 6f 6c 65 | 2d 62 75 66 66 65 72 20 |rk-whole|-buffer |
|00001760| 23 5b 6e 69 6c 20 22 c0 | 60 21 88 c0 64 c1 c2 23 |#[nil ".|`!..d..#|
|00001770| 88 65 62 87 22 20 5b 70 | 75 73 68 2d 6d 61 72 6b |.eb." [p|ush-mark|
|00001780| 20 6e 69 6c 20 74 5d 20 | 34 20 22 5c 0a 50 75 74 | nil t] |4 "\.Put|
|00001790| 20 70 6f 69 6e 74 20 61 | 74 20 62 65 67 69 6e 6e | point a|t beginn|
|000017a0| 69 6e 67 20 61 6e 64 20 | 6d 61 72 6b 20 61 74 20 |ing and |mark at |
|000017b0| 65 6e 64 20 6f 66 20 62 | 75 66 66 65 72 2e 0a 59 |end of b|uffer..Y|
|000017c0| 6f 75 20 70 72 6f 62 61 | 62 6c 79 20 73 68 6f 75 |ou proba|bly shou|
|000017d0| 6c 64 20 6e 6f 74 20 75 | 73 65 20 74 68 69 73 20 |ld not u|se this |
|000017e0| 66 75 6e 63 74 69 6f 6e | 20 69 6e 20 4c 69 73 70 |function| in Lisp|
|000017f0| 20 70 72 6f 67 72 61 6d | 73 3b 0a 69 74 20 69 73 | program|s;.it is|
|00001800| 20 75 73 75 61 6c 6c 79 | 20 61 20 6d 69 73 74 61 | usually| a mista|
|00001810| 6b 65 20 66 6f 72 20 61 | 20 4c 69 73 70 20 66 75 |ke for a| Lisp fu|
|00001820| 6e 63 74 69 6f 6e 20 74 | 6f 20 75 73 65 20 61 6e |nction t|o use an|
|00001830| 79 20 73 75 62 72 6f 75 | 74 69 6e 65 0a 74 68 61 |y subrou|tine.tha|
|00001840| 74 20 75 73 65 73 20 6f | 72 20 73 65 74 73 20 74 |t uses o|r sets t|
|00001850| 68 65 20 6d 61 72 6b 2e | 22 20 6e 69 6c 5d 29 0a |he mark.|" nil]).|
|00001860| 28 64 65 66 61 6c 69 61 | 73 20 27 63 6f 75 6e 74 |(defalia|s 'count|
|00001870| 2d 6c 69 6e 65 73 2d 72 | 65 67 69 6f 6e 20 23 5b |-lines-r|egion #[|
|00001880| 28 73 74 61 72 74 20 65 | 6e 64 29 20 22 c0 c1 c2 |(start e|nd) "...|
|00001890| 0b 0c 5c 22 0c 0b 5a 23 | 87 22 20 5b 6d 65 73 73 |..\"..Z#|." [mess|
|000018a0| 61 67 65 20 22 52 65 67 | 69 6f 6e 20 68 61 73 20 |age "Reg|ion has |
|000018b0| 25 64 20 6c 69 6e 65 73 | 2c 20 25 64 20 63 68 61 |%d lines|, %d cha|
|000018c0| 72 61 63 74 65 72 73 22 | 20 63 6f 75 6e 74 2d 6c |racters"| count-l|
|000018d0| 69 6e 65 73 20 73 74 61 | 72 74 20 65 6e 64 5d 20 |ines sta|rt end] |
|000018e0| 35 20 22 5c 0a 50 72 69 | 6e 74 20 6e 75 6d 62 65 |5 "\.Pri|nt numbe|
|000018f0| 72 20 6f 66 20 6c 69 6e | 65 73 20 61 6e 64 20 63 |r of lin|es and c|
|00001900| 68 61 72 61 63 74 65 72 | 73 20 69 6e 20 74 68 65 |haracter|s in the|
|00001910| 20 72 65 67 69 6f 6e 2e | 22 20 22 72 22 5d 29 0a | region.|" "r"]).|
|00001920| 28 64 65 66 61 6c 69 61 | 73 20 27 77 68 61 74 2d |(defalia|s 'what-|
|00001930| 6c 69 6e 65 20 23 5b 6e | 69 6c 20 22 8c 7e 88 8a |line #[n|il ".~..|
|00001940| c0 79 88 c1 c2 c3 c4 60 | 5c 22 54 5c 22 2a 87 22 |.y.....`|\"T\"*."|
|00001950| 20 5b 30 20 6d 65 73 73 | 61 67 65 20 22 4c 69 6e | [0 mess|age "Lin|
|00001960| 65 20 25 64 22 20 63 6f | 75 6e 74 2d 6c 69 6e 65 |e %d" co|unt-line|
|00001970| 73 20 31 5d 20 35 20 22 | 5c 0a 50 72 69 6e 74 20 |s 1] 5 "|\.Print |
|00001980| 74 68 65 20 63 75 72 72 | 65 6e 74 20 6c 69 6e 65 |the curr|ent line|
|00001990| 20 6e 75 6d 62 65 72 20 | 28 69 6e 20 74 68 65 20 | number |(in the |
|000019a0| 62 75 66 66 65 72 29 20 | 6f 66 20 70 6f 69 6e 74 |buffer) |of point|
|000019b0| 2e 22 20 6e 69 6c 5d 29 | 0a 28 64 65 66 61 6c 69 |." nil])|.(defali|
|000019c0| 61 73 20 27 63 6f 75 6e | 74 2d 6c 69 6e 65 73 20 |as 'coun|t-lines |
|000019d0| 23 5b 28 73 74 61 72 74 | 20 65 6e 64 29 20 22 c0 |#[(start| end) ".|
|000019e0| 20 19 c2 8e 8a 8c 0b 0c | 7d 88 65 62 88 0d c6 3d | .......|}.eb...=|
|000019f0| 83 41 00 c7 1e 08 c9 ca | cb c6 cc 24 83 29 00 0e |.A......|...$.)..|
|00001a00| 08 cc 5c 5c 16 08 82 17 | 00 c9 ca cb c6 cd 24 83 |..\\....|......$.|
|00001a10| 3b 00 0e 08 cd 5c 5c 16 | 08 82 29 00 0e 08 29 82 |;....\\.|..)...).|
|00001a20| 47 00 ce 20 ce 20 79 5a | 2c 87 22 20 5b 6d 61 74 |G.. . yZ|,." [mat|
|00001a30| 63 68 2d 64 61 74 61 20 | 6d 61 74 63 68 2d 64 61 |ch-data |match-da|
|00001a40| 74 61 20 28 28 73 74 6f | 72 65 2d 6d 61 74 63 68 |ta ((sto|re-match|
|00001a50| 2d 64 61 74 61 20 6d 61 | 74 63 68 2d 64 61 74 61 |-data ma|tch-data|
|00001a60| 29 29 20 73 74 61 72 74 | 20 65 6e 64 20 73 65 6c |)) start| end sel|
|00001a70| 65 63 74 69 76 65 2d 64 | 69 73 70 6c 61 79 20 74 |ective-d|isplay t|
|00001a80| 20 30 20 64 6f 6e 65 20 | 72 65 2d 73 65 61 72 63 | 0 done |re-searc|
|00001a90| 68 2d 66 6f 72 77 61 72 | 64 20 22 5b 5c 6e 0d 5d |h-forwar|d "[\n.]|
|00001aa0| 22 20 6e 69 6c 20 34 30 | 20 31 20 62 75 66 66 65 |" nil 40| 1 buffe|
|00001ab0| 72 2d 73 69 7a 65 5d 20 | 35 20 22 5c 0a 52 65 74 |r-size] |5 "\.Ret|
|00001ac0| 75 72 6e 20 6e 75 6d 62 | 65 72 20 6f 66 20 6c 69 |urn numb|er of li|
|00001ad0| 6e 65 73 20 62 65 74 77 | 65 65 6e 20 53 54 41 52 |nes betw|een STAR|
|00001ae0| 54 20 61 6e 64 20 45 4e | 44 2e 0a 54 68 69 73 20 |T and EN|D..This |
|00001af0| 69 73 20 75 73 75 61 6c | 6c 79 20 74 68 65 20 6e |is usual|ly the n|
|00001b00| 75 6d 62 65 72 20 6f 66 | 20 6e 65 77 6c 69 6e 65 |umber of| newline|
|00001b10| 73 20 62 65 74 77 65 65 | 6e 20 74 68 65 6d 2c 0a |s betwee|n them,.|
|00001b20| 62 75 74 20 63 61 6e 20 | 62 65 20 6f 6e 65 20 6d |but can |be one m|
|00001b30| 6f 72 65 20 69 66 20 53 | 54 41 52 54 20 69 73 20 |ore if S|TART is |
|00001b40| 6e 6f 74 20 65 71 75 61 | 6c 20 74 6f 20 45 4e 44 |not equa|l to END|
|00001b50| 0a 61 6e 64 20 74 68 65 | 20 67 72 65 61 74 65 72 |.and the| greater|
|00001b60| 20 6f 66 20 74 68 65 6d | 20 69 73 20 6e 6f 74 20 | of them| is not |
|00001b70| 61 74 20 74 68 65 20 73 | 74 61 72 74 20 6f 66 20 |at the s|tart of |
|00001b80| 61 20 6c 69 6e 65 2e 22 | 5d 29 0a 28 64 65 66 61 |a line."|]).(defa|
|00001b90| 6c 69 61 73 20 27 77 68 | 61 74 2d 63 75 72 73 6f |lias 'wh|at-curso|
|00001ba0| 72 2d 70 6f 73 69 74 69 | 6f 6e 20 23 5b 6e 69 6c |r-positi|on #[nil|
|00001bb0| 20 22 67 18 65 19 64 1a | 60 1b c4 20 89 1d c6 56 | "g.e.d.|`.. ...V|
|00001bc0| 83 20 00 0d c7 a5 0b 53 | 5c 5c 0d c8 a5 c9 5d a5 |. .....S|\\....].|
|00001bd0| 82 2c 00 0d ca a5 0b 53 | c8 5f 5c 5c 0d c9 5d a5 |.,.....S|._\\..].|
|00001be0| 1e 0b cc 20 cd 55 83 39 | 00 ce 82 3e 00 cf d0 cc |... .U.9|...>....|
|00001bf0| 20 5c 22 1e 11 69 1e 12 | 0b 5c 6e 55 83 76 00 09 | \"..i..|.\nU.v..|
|00001c00| c9 55 83 56 00 5c 6e 0d | 54 55 84 67 00 d3 d4 0b |.U.V.\n.|TU.g....|
|00001c10| 0d 0e 0b 09 5c 6e 0e 12 | 0e 11 26 08 82 a8 00 d3 |....\n..|..&.....|
|00001c20| d5 0b 0d 0e 0b 0e 12 0e | 11 26 06 82 a8 00 09 c9 |........|.&......|
|00001c30| 55 83 83 00 5c 6e 0d 54 | 55 84 98 00 d3 d6 d7 08 |U...\n.T|U.......|
|00001c40| 21 08 0b 0d 0e 0b 09 5c | 6e 0e 12 0e 11 26 5c 6e |!......\|n....&\n|
|00001c50| 82 a8 00 d3 d8 d7 08 21 | 08 0b 0d 0e 0b 0e 12 0e |.......!|........|
|00001c60| 11 26 08 2e 08 87 22 20 | 5b 63 68 61 72 20 62 65 |.&...." |[char be|
|00001c70| 67 20 65 6e 64 20 70 6f | 73 20 62 75 66 66 65 72 |g end po|s buffer|
|00001c80| 2d 73 69 7a 65 20 74 6f | 74 61 6c 20 35 30 30 30 |-size to|tal 5000|
|00001c90| 30 20 32 30 30 20 31 30 | 30 20 31 20 32 20 70 65 |0 200 10|0 1 2 pe|
|00001ca0| 72 63 65 6e 74 20 77 69 | 6e 64 6f 77 2d 68 73 63 |rcent wi|ndow-hsc|
|00001cb0| 72 6f 6c 6c 20 30 20 22 | 22 20 66 6f 72 6d 61 74 |roll 0 "|" format|
|00001cc0| 20 22 20 48 73 63 72 6f | 6c 6c 3d 25 64 22 20 68 | " Hscro|ll=%d" h|
|00001cd0| 73 63 72 6f 6c 6c 20 63 | 6f 6c 20 6d 65 73 73 61 |scroll c|ol messa|
|00001ce0| 67 65 20 22 70 6f 69 6e | 74 3d 25 64 20 6f 66 20 |ge "poin|t=%d of |
|00001cf0| 25 64 28 25 64 25 25 29 | 20 3c 25 64 20 2d 20 25 |%d(%d%%)| <%d - %|
|00001d00| 64 3e 20 20 63 6f 6c 75 | 6d 6e 20 25 64 20 25 73 |d> colu|mn %d %s|
|00001d10| 22 20 22 70 6f 69 6e 74 | 3d 25 64 20 6f 66 20 25 |" "point|=%d of %|
|00001d20| 64 28 25 64 25 25 29 20 | 20 63 6f 6c 75 6d 6e 20 |d(%d%%) | column |
|00001d30| 25 64 20 25 73 22 20 22 | 43 68 61 72 3a 20 25 73 |%d %s" "|Char: %s|
|00001d40| 20 28 30 25 6f 29 20 20 | 70 6f 69 6e 74 3d 25 64 | (0%o) |point=%d|
|00001d50| 20 6f 66 20 25 64 28 25 | 64 25 25 29 20 3c 25 64 | of %d(%|d%%) <%d|
|00001d60| 20 2d 20 25 64 3e 20 20 | 63 6f 6c 75 6d 6e 20 25 | - %d> |column %|
|00001d70| 64 20 25 73 22 20 73 69 | 6e 67 6c 65 2d 6b 65 79 |d %s" si|ngle-key|
|00001d80| 2d 64 65 73 63 72 69 70 | 74 69 6f 6e 20 22 43 68 |-descrip|tion "Ch|
|00001d90| 61 72 3a 20 25 73 20 28 | 30 25 6f 29 20 20 70 6f |ar: %s (|0%o) po|
|00001da0| 69 6e 74 3d 25 64 20 6f | 66 20 25 64 28 25 64 25 |int=%d o|f %d(%d%|
|00001db0| 25 29 20 20 63 6f 6c 75 | 6d 6e 20 25 64 20 25 73 |%) colu|mn %d %s|
|00001dc0| 22 5d 20 31 32 20 22 5c | 0a 50 72 69 6e 74 20 69 |"] 12 "\|.Print i|
|00001dd0| 6e 66 6f 20 6f 6e 20 63 | 75 72 73 6f 72 20 70 6f |nfo on c|ursor po|
|00001de0| 73 69 74 69 6f 6e 20 28 | 6f 6e 20 73 63 72 65 65 |sition (|on scree|
|00001df0| 6e 20 61 6e 64 20 77 69 | 74 68 69 6e 20 62 75 66 |n and wi|thin buf|
|00001e00| 66 65 72 29 2e 22 20 6e | 69 6c 5d 29 0a 28 64 65 |fer)." n|il]).(de|
|00001e10| 66 61 6c 69 61 73 20 27 | 66 75 6e 64 61 6d 65 6e |falias '|fundamen|
|00001e20| 74 61 6c 2d 6d 6f 64 65 | 20 23 5b 6e 69 6c 20 22 |tal-mode| #[nil "|
|00001e30| c0 20 87 22 20 5b 6b 69 | 6c 6c 2d 61 6c 6c 2d 6c |. ." [ki|ll-all-l|
|00001e40| 6f 63 61 6c 2d 76 61 72 | 69 61 62 6c 65 73 5d 20 |ocal-var|iables] |
|00001e50| 31 20 22 5c 0a 4d 61 6a | 6f 72 20 6d 6f 64 65 20 |1 "\.Maj|or mode |
|00001e60| 6e 6f 74 20 73 70 65 63 | 69 61 6c 69 7a 65 64 20 |not spec|ialized |
|00001e70| 66 6f 72 20 61 6e 79 74 | 68 69 6e 67 20 69 6e 20 |for anyt|hing in |
|00001e80| 70 61 72 74 69 63 75 6c | 61 72 2e 0a 4f 74 68 65 |particul|ar..Othe|
|00001e90| 72 20 6d 61 6a 6f 72 20 | 6d 6f 64 65 73 20 61 72 |r major |modes ar|
|00001ea0| 65 20 64 65 66 69 6e 65 | 64 20 62 79 20 63 6f 6d |e define|d by com|
|00001eb0| 70 61 72 69 73 6f 6e 20 | 77 69 74 68 20 74 68 69 |parison |with thi|
|00001ec0| 73 20 6f 6e 65 2e 22 20 | 6e 69 6c 5d 29 0a 28 64 |s one." |nil]).(d|
|00001ed0| 65 66 76 61 72 20 72 65 | 61 64 2d 65 78 70 72 65 |efvar re|ad-expre|
|00001ee0| 73 73 69 6f 6e 2d 6d 61 | 70 20 28 63 6f 70 79 2d |ssion-ma|p (copy-|
|00001ef0| 6b 65 79 6d 61 70 20 6d | 69 6e 69 62 75 66 66 65 |keymap m|inibuffe|
|00001f00| 72 2d 6c 6f 63 61 6c 2d | 6d 61 70 29 20 22 5c 0a |r-local-|map) "\.|
|00001f10| 4d 69 6e 69 62 75 66 66 | 65 72 20 6b 65 79 6d 61 |Minibuff|er keyma|
|00001f20| 70 20 75 73 65 64 20 66 | 6f 72 20 72 65 61 64 69 |p used f|or readi|
|00001f30| 6e 67 20 4c 69 73 70 20 | 65 78 70 72 65 73 73 69 |ng Lisp |expressi|
|00001f40| 6f 6e 73 2e 22 29 0a 28 | 62 79 74 65 2d 63 6f 64 |ons.").(|byte-cod|
|00001f50| 65 20 22 c0 09 c2 c3 23 | 88 c4 c5 c6 c7 23 87 22 |e "....#|.....#."|
|00001f60| 20 5b 64 65 66 69 6e 65 | 2d 6b 65 79 20 72 65 61 | [define|-key rea|
|00001f70| 64 2d 65 78 70 72 65 73 | 73 69 6f 6e 2d 6d 61 70 |d-expres|sion-map|
|00001f80| 20 22 89 22 20 6c 69 73 | 70 2d 63 6f 6d 70 6c 65 | "." lis|p-comple|
|00001f90| 74 65 2d 73 79 6d 62 6f | 6c 20 70 75 74 20 65 76 |te-symbo|l put ev|
|00001fa0| 61 6c 2d 65 78 70 72 65 | 73 73 69 6f 6e 20 64 69 |al-expre|ssion di|
|00001fb0| 73 61 62 6c 65 64 20 74 | 5d 20 34 29 0a 28 64 65 |sabled t|] 4).(de|
|00001fc0| 66 61 6c 69 61 73 20 27 | 65 76 61 6c 2d 65 78 70 |falias '|eval-exp|
|00001fd0| 72 65 73 73 69 6f 6e 20 | 23 5b 28 65 78 70 72 65 |ression |#[(expre|
|00001fe0| 73 73 69 6f 6e 29 20 22 | c0 09 21 5c 6e 42 12 c3 |ssion) "|..!\nB..|
|00001ff0| 5c 6e 40 c4 5c 22 87 22 | 20 5b 65 76 61 6c 20 65 |\n@.\"."| [eval e|
|00002000| 78 70 72 65 73 73 69 6f | 6e 20 76 61 6c 75 65 73 |xpressio|n values|
|00002010| 20 70 72 69 6e 31 20 74 | 5d 20 33 20 22 5c 0a 45 | prin1 t|] 3 "\.E|
|00002020| 76 61 6c 75 61 74 65 20 | 45 58 50 52 45 53 53 49 |valuate |EXPRESSI|
|00002030| 4f 4e 20 61 6e 64 20 70 | 72 69 6e 74 20 76 61 6c |ON and p|rint val|
|00002040| 75 65 20 69 6e 20 6d 69 | 6e 69 62 75 66 66 65 72 |ue in mi|nibuffer|
|00002050| 2e 0a 56 61 6c 75 65 20 | 69 73 20 61 6c 73 6f 20 |..Value |is also |
|00002060| 63 6f 6e 73 65 64 20 6f | 6e 20 74 6f 20 66 72 6f |consed o|n to fro|
|00002070| 6e 74 20 6f 66 20 74 68 | 65 20 76 61 72 69 61 62 |nt of th|e variab|
|00002080| 6c 65 20 60 76 61 6c 75 | 65 73 27 2e 22 20 28 6c |le `valu|es'." (l|
|00002090| 69 73 74 20 28 72 65 61 | 64 2d 66 72 6f 6d 2d 6d |ist (rea|d-from-m|
|000020a0| 69 6e 69 62 75 66 66 65 | 72 20 22 45 76 61 6c 3a |inibuffe|r "Eval:|
|000020b0| 20 22 20 6e 69 6c 20 72 | 65 61 64 2d 65 78 70 72 | " nil r|ead-expr|
|000020c0| 65 73 73 69 6f 6e 2d 6d | 61 70 20 74 29 29 5d 29 |ession-m|ap t))])|
|000020d0| 0a 28 64 65 66 61 6c 69 | 61 73 20 27 65 64 69 74 |.(defali|as 'edit|
|000020e0| 2d 61 6e 64 2d 65 76 61 | 6c 2d 63 6f 6d 6d 61 6e |-and-eva|l-comman|
|000020f0| 64 20 23 5b 28 70 72 6f | 6d 70 74 20 63 6f 6d 6d |d #[(pro|mpt comm|
|00002100| 61 6e 64 29 20 22 c0 09 | c2 0b 21 0c c5 24 89 1b |and) "..|..!..$..|
|00002110| 0e 06 40 9a 84 17 00 0b | 0e 06 42 16 06 c7 0b 21 |..@.....|..B....!|
|00002120| 29 87 22 20 5b 72 65 61 | 64 2d 66 72 6f 6d 2d 6d |)." [rea|d-from-m|
|00002130| 69 6e 69 62 75 66 66 65 | 72 20 70 72 6f 6d 70 74 |inibuffe|r prompt|
|00002140| 20 70 72 69 6e 31 2d 74 | 6f 2d 73 74 72 69 6e 67 | prin1-t|o-string|
|00002150| 20 63 6f 6d 6d 61 6e 64 | 20 72 65 61 64 2d 65 78 | command| read-ex|
|00002160| 70 72 65 73 73 69 6f 6e | 2d 6d 61 70 20 74 20 63 |pression|-map t c|
|00002170| 6f 6d 6d 61 6e 64 2d 68 | 69 73 74 6f 72 79 20 65 |ommand-h|istory e|
|00002180| 76 61 6c 5d 20 36 20 22 | 5c 0a 50 72 6f 6d 70 74 |val] 6 "|\.Prompt|
|00002190| 69 6e 67 20 77 69 74 68 | 20 50 52 4f 4d 50 54 2c |ing with| PROMPT,|
|000021a0| 20 6c 65 74 20 75 73 65 | 72 20 65 64 69 74 20 43 | let use|r edit C|
|000021b0| 4f 4d 4d 41 4e 44 20 61 | 6e 64 20 65 76 61 6c 20 |OMMAND a|nd eval |
|000021c0| 72 65 73 75 6c 74 2e 0a | 43 4f 4d 4d 41 4e 44 20 |result..|COMMAND |
|000021d0| 69 73 20 61 20 4c 69 73 | 70 20 65 78 70 72 65 73 |is a Lis|p expres|
|000021e0| 73 69 6f 6e 2e 20 20 4c | 65 74 20 75 73 65 72 20 |sion. L|et user |
|000021f0| 65 64 69 74 20 74 68 61 | 74 20 65 78 70 72 65 73 |edit tha|t expres|
|00002200| 73 69 6f 6e 20 69 6e 0a | 74 68 65 20 6d 69 6e 69 |sion in.|the mini|
|00002210| 62 75 66 66 65 72 2c 20 | 74 68 65 6e 20 72 65 61 |buffer, |then rea|
|00002220| 64 20 61 6e 64 20 65 76 | 61 6c 75 61 74 65 20 74 |d and ev|aluate t|
|00002230| 68 65 20 72 65 73 75 6c | 74 2e 22 5d 29 0a 28 64 |he resul|t."]).(d|
|00002240| 65 66 61 6c 69 61 73 20 | 27 72 65 70 65 61 74 2d |efalias |'repeat-|
|00002250| 63 6f 6d 70 6c 65 78 2d | 63 6f 6d 6d 61 6e 64 20 |complex-|command |
|00002260| 23 5b 28 61 72 67 29 20 | 22 08 53 09 38 08 c2 c3 |#[(arg) |".S.8...|
|00002270| 1c 1d 1e 06 89 1e 07 83 | 39 00 c8 c9 ca 0e 07 21 |........|9......!|
|00002280| 0e 0b c2 c1 08 42 25 14 | 09 40 3b 83 28 00 09 41 |.....B%.|.@;.(..A|
|00002290| 11 0c 09 40 9a 84 33 00 | 0c 09 42 11 cc 0c 21 82 |...@..3.|..B...!.|
|000022a0| 3b 00 cd 20 2c 87 22 20 | 5b 61 72 67 20 63 6f 6d |;.. ,." |[arg com|
|000022b0| 6d 61 6e 64 2d 68 69 73 | 74 6f 72 79 20 74 20 6e |mand-his|tory t n|
|000022c0| 69 6c 20 6e 65 77 63 6d | 64 20 6d 69 6e 69 62 75 |il newcm|d minibu|
|000022d0| 66 66 65 72 2d 68 69 73 | 74 6f 72 79 2d 73 65 78 |ffer-his|tory-sex|
|000022e0| 70 2d 66 6c 61 67 20 6d | 69 6e 69 62 75 66 66 65 |p-flag m|inibuffe|
|000022f0| 72 2d 68 69 73 74 6f 72 | 79 2d 70 6f 73 69 74 69 |r-histor|y-positi|
|00002300| 6f 6e 20 65 6c 74 20 72 | 65 61 64 2d 66 72 6f 6d |on elt r|ead-from|
|00002310| 2d 6d 69 6e 69 62 75 66 | 66 65 72 20 22 52 65 64 |-minibuf|fer "Red|
|00002320| 6f 3a 20 22 20 70 72 69 | 6e 31 2d 74 6f 2d 73 74 |o: " pri|n1-to-st|
|00002330| 72 69 6e 67 20 72 65 61 | 64 2d 65 78 70 72 65 73 |ring rea|d-expres|
|00002340| 73 69 6f 6e 2d 6d 61 70 | 20 65 76 61 6c 20 64 69 |sion-map| eval di|
|00002350| 6e 67 5d 20 38 20 22 5c | 0a 45 64 69 74 20 61 6e |ng] 8 "\|.Edit an|
|00002360| 64 20 72 65 2d 65 76 61 | 6c 75 61 74 65 20 6c 61 |d re-eva|luate la|
|00002370| 73 74 20 63 6f 6d 70 6c | 65 78 20 63 6f 6d 6d 61 |st compl|ex comma|
|00002380| 6e 64 2c 20 6f 72 20 41 | 52 47 74 68 20 66 72 6f |nd, or A|RGth fro|
|00002390| 6d 20 6c 61 73 74 2e 0a | 41 20 63 6f 6d 70 6c 65 |m last..|A comple|
|000023a0| 78 20 63 6f 6d 6d 61 6e | 64 20 69 73 20 6f 6e 65 |x comman|d is one|
|000023b0| 20 77 68 69 63 68 20 75 | 73 65 64 20 74 68 65 20 | which u|sed the |
|000023c0| 6d 69 6e 69 62 75 66 66 | 65 72 2e 0a 54 68 65 20 |minibuff|er..The |
|000023d0| 63 6f 6d 6d 61 6e 64 20 | 69 73 20 70 6c 61 63 65 |command |is place|
|000023e0| 64 20 69 6e 20 74 68 65 | 20 6d 69 6e 69 62 75 66 |d in the| minibuf|
|000023f0| 66 65 72 20 61 73 20 61 | 20 4c 69 73 70 20 66 6f |fer as a| Lisp fo|
|00002400| 72 6d 20 66 6f 72 20 65 | 64 69 74 69 6e 67 2e 0a |rm for e|diting..|
|00002410| 54 68 65 20 72 65 73 75 | 6c 74 20 69 73 20 65 78 |The resu|lt is ex|
|00002420| 65 63 75 74 65 64 2c 20 | 72 65 70 65 61 74 69 6e |ecuted, |repeatin|
|00002430| 67 20 74 68 65 20 63 6f | 6d 6d 61 6e 64 20 61 73 |g the co|mmand as|
|00002440| 20 63 68 61 6e 67 65 64 | 2e 0a 49 66 20 74 68 65 | changed|..If the|
|00002450| 20 63 6f 6d 6d 61 6e 64 | 20 68 61 73 20 62 65 65 | command| has bee|
|00002460| 6e 20 63 68 61 6e 67 65 | 64 20 6f 72 20 69 73 20 |n change|d or is |
|00002470| 6e 6f 74 20 74 68 65 20 | 6d 6f 73 74 20 72 65 63 |not the |most rec|
|00002480| 65 6e 74 20 70 72 65 76 | 69 6f 75 73 20 63 6f 6d |ent prev|ious com|
|00002490| 6d 61 6e 64 0a 69 74 20 | 69 73 20 61 64 64 65 64 |mand.it |is added|
|000024a0| 20 74 6f 20 74 68 65 20 | 66 72 6f 6e 74 20 6f 66 | to the |front of|
|000024b0| 20 74 68 65 20 63 6f 6d | 6d 61 6e 64 20 68 69 73 | the com|mand his|
|000024c0| 74 6f 72 79 2e 0a 59 6f | 75 20 63 61 6e 20 75 73 |tory..Yo|u can us|
|000024d0| 65 20 74 68 65 20 6d 69 | 6e 69 62 75 66 66 65 72 |e the mi|nibuffer|
|000024e0| 20 68 69 73 74 6f 72 79 | 20 63 6f 6d 6d 61 6e 64 | history| command|
|000024f0| 73 20 5c 5c 3c 6d 69 6e | 69 62 75 66 66 65 72 2d |s \\<min|ibuffer-|
|00002500| 6c 6f 63 61 6c 2d 6d 61 | 70 3e 5c 5c 5b 6e 65 78 |local-ma|p>\\[nex|
|00002510| 74 2d 68 69 73 74 6f 72 | 79 2d 65 6c 65 6d 65 6e |t-histor|y-elemen|
|00002520| 74 5d 20 61 6e 64 20 5c | 5c 5b 70 72 65 76 69 6f |t] and \|\[previo|
|00002530| 75 73 2d 68 69 73 74 6f | 72 79 2d 65 6c 65 6d 65 |us-histo|ry-eleme|
|00002540| 6e 74 5d 0a 74 6f 20 67 | 65 74 20 64 69 66 66 65 |nt].to g|et diffe|
|00002550| 72 65 6e 74 20 63 6f 6d | 6d 61 6e 64 73 20 74 6f |rent com|mands to|
|00002560| 20 65 64 69 74 20 61 6e | 64 20 72 65 73 75 62 6d | edit an|d resubm|
|00002570| 69 74 2e 22 20 22 70 22 | 5d 29 0a 28 64 65 66 76 |it." "p"|]).(defv|
|00002580| 61 72 20 6d 69 6e 69 62 | 75 66 66 65 72 2d 68 69 |ar minib|uffer-hi|
|00002590| 73 74 6f 72 79 20 6e 69 | 6c 20 22 5c 0a 44 65 66 |story ni|l "\.Def|
|000025a0| 61 75 6c 74 20 6d 69 6e | 69 62 75 66 66 65 72 20 |ault min|ibuffer |
|000025b0| 68 69 73 74 6f 72 79 20 | 6c 69 73 74 2e 0a 54 68 |history |list..Th|
|000025c0| 69 73 20 69 73 20 75 73 | 65 64 20 66 6f 72 20 61 |is is us|ed for a|
|000025d0| 6c 6c 20 6d 69 6e 69 62 | 75 66 66 65 72 20 69 6e |ll minib|uffer in|
|000025e0| 70 75 74 0a 65 78 63 65 | 70 74 20 77 68 65 6e 20 |put.exce|pt when |
|000025f0| 61 6e 20 61 6c 74 65 72 | 6e 61 74 65 20 68 69 73 |an alter|nate his|
|00002600| 74 6f 72 79 20 6c 69 73 | 74 20 69 73 20 73 70 65 |tory lis|t is spe|
|00002610| 63 69 66 69 65 64 2e 22 | 29 0a 28 64 65 66 76 61 |cified."|).(defva|
|00002620| 72 20 6d 69 6e 69 62 75 | 66 66 65 72 2d 68 69 73 |r minibu|ffer-his|
|00002630| 74 6f 72 79 2d 73 65 78 | 70 2d 66 6c 61 67 20 6e |tory-sex|p-flag n|
|00002640| 69 6c 20 22 5c 0a 4e 6f | 6e 7a 65 72 6f 20 77 68 |il "\.No|nzero wh|
|00002650| 65 6e 20 64 6f 69 6e 67 | 20 68 69 73 74 6f 72 79 |en doing| history|
|00002660| 20 6f 70 65 72 61 74 69 | 6f 6e 73 20 6f 6e 20 60 | operati|ons on `|
|00002670| 63 6f 6d 6d 61 6e 64 2d | 68 69 73 74 6f 72 79 27 |command-|history'|
|00002680| 2e 0a 4d 6f 72 65 20 67 | 65 6e 65 72 61 6c 6c 79 |..More g|enerally|
|00002690| 2c 20 69 6e 64 69 63 61 | 74 65 73 20 74 68 61 74 |, indica|tes that|
|000026a0| 20 74 68 65 20 68 69 73 | 74 6f 72 79 20 6c 69 73 | the his|tory lis|
|000026b0| 74 20 62 65 69 6e 67 20 | 61 63 74 65 64 20 6f 6e |t being |acted on|
|000026c0| 0a 63 6f 6e 74 61 69 6e | 73 20 65 78 70 72 65 73 |.contain|s expres|
|000026d0| 73 69 6f 6e 73 20 72 61 | 74 68 65 72 20 74 68 61 |sions ra|ther tha|
|000026e0| 6e 20 73 74 72 69 6e 67 | 73 2e 22 29 0a 28 62 79 |n string|s.").(by|
|000026f0| 74 65 2d 63 6f 64 65 20 | 22 c0 11 c2 13 c4 c5 21 |te-code |"......!|
|00002700| 84 0c 00 c2 15 c6 c7 c8 | 5c 22 87 22 20 5b 6d 69 |........|\"." [mi|
|00002710| 6e 69 62 75 66 66 65 72 | 2d 68 69 73 74 6f 72 79 |nibuffer|-history|
|00002720| 20 6d 69 6e 69 62 75 66 | 66 65 72 2d 68 69 73 74 | minibuf|fer-hist|
|00002730| 6f 72 79 2d 76 61 72 69 | 61 62 6c 65 20 6e 69 6c |ory-vari|able nil|
|00002740| 20 6d 69 6e 69 62 75 66 | 66 65 72 2d 68 69 73 74 | minibuf|fer-hist|
|00002750| 6f 72 79 2d 70 6f 73 69 | 74 69 6f 6e 20 62 6f 75 |ory-posi|tion bou|
|00002760| 6e 64 70 20 6d 69 6e 69 | 62 75 66 66 65 72 2d 68 |ndp mini|buffer-h|
|00002770| 69 73 74 6f 72 79 2d 73 | 65 61 72 63 68 2d 68 69 |istory-s|earch-hi|
|00002780| 73 74 6f 72 79 20 6d 61 | 70 63 61 72 20 23 5b 28 |story ma|pcar #[(|
|00002790| 6b 65 79 2d 61 6e 64 2d | 63 6f 6d 6d 61 6e 64 29 |key-and-|command)|
|000027a0| 20 22 c0 c1 c2 5c 22 87 | 22 20 5b 6d 61 70 63 61 | "...\".|" [mapca|
|000027b0| 72 20 23 5b 28 6b 65 79 | 6d 61 70 2d 61 6e 64 2d |r #[(key|map-and-|
|000027c0| 63 6f 6d 70 6c 65 74 69 | 6f 6e 70 29 20 22 c0 09 |completi|onp) "..|
|000027d0| 40 4a 5c 6e 40 5c 6e 41 | 89 1b 3a 83 13 00 0b 40 |@J\n@\nA|..:....@|
|000027e0| 82 14 00 0b 29 23 87 22 | 20 5b 64 65 66 69 6e 65 |....)#."| [define|
|000027f0| 2d 6b 65 79 20 6b 65 79 | 6d 61 70 2d 61 6e 64 2d |-key key|map-and-|
|00002800| 63 6f 6d 70 6c 65 74 69 | 6f 6e 70 20 6b 65 79 2d |completi|onp key-|
|00002810| 61 6e 64 2d 63 6f 6d 6d | 61 6e 64 20 63 6f 6d 6d |and-comm|and comm|
|00002820| 61 6e 64 5d 20 35 5d 20 | 28 28 6d 69 6e 69 62 75 |and] 5] |((minibu|
|00002830| 66 66 65 72 2d 6c 6f 63 | 61 6c 2d 6d 61 70 29 20 |ffer-loc|al-map) |
|00002840| 28 6d 69 6e 69 62 75 66 | 66 65 72 2d 6c 6f 63 61 |(minibuf|fer-loca|
|00002850| 6c 2d 6e 73 2d 6d 61 70 | 29 20 28 6d 69 6e 69 62 |l-ns-map|) (minib|
|00002860| 75 66 66 65 72 2d 6c 6f | 63 61 6c 2d 63 6f 6d 70 |uffer-lo|cal-comp|
|00002870| 6c 65 74 69 6f 6e 2d 6d | 61 70 20 2e 20 74 29 20 |letion-m|ap . t) |
|00002880| 28 6d 69 6e 69 62 75 66 | 66 65 72 2d 6c 6f 63 61 |(minibuf|fer-loca|
|00002890| 6c 2d 6d 75 73 74 2d 6d | 61 74 63 68 2d 6d 61 70 |l-must-m|atch-map|
|000028a0| 20 2e 20 74 29 20 28 72 | 65 61 64 2d 65 78 70 72 | . t) (r|ead-expr|
|000028b0| 65 73 73 69 6f 6e 2d 6d | 61 70 29 29 5d 20 33 5d |ession-m|ap))] 3]|
|000028c0| 20 28 28 22 1b 6e 22 20 | 6e 65 78 74 2d 68 69 73 | ((".n" |next-his|
|000028d0| 74 6f 72 79 2d 65 6c 65 | 6d 65 6e 74 20 2e 20 6e |tory-ele|ment . n|
|000028e0| 65 78 74 2d 63 6f 6d 70 | 6c 65 74 65 2d 68 69 73 |ext-comp|lete-his|
|000028f0| 74 6f 72 79 2d 65 6c 65 | 6d 65 6e 74 29 20 28 5b |tory-ele|ment) ([|
|00002900| 6e 65 78 74 5d 20 6e 65 | 78 74 2d 68 69 73 74 6f |next] ne|xt-histo|
|00002910| 72 79 2d 65 6c 65 6d 65 | 6e 74 20 2e 20 6e 65 78 |ry-eleme|nt . nex|
|00002920| 74 2d 63 6f 6d 70 6c 65 | 74 65 2d 68 69 73 74 6f |t-comple|te-histo|
|00002930| 72 79 2d 65 6c 65 6d 65 | 6e 74 29 20 28 22 1b 70 |ry-eleme|nt) (".p|
|00002940| 22 20 70 72 65 76 69 6f | 75 73 2d 68 69 73 74 6f |" previo|us-histo|
|00002950| 72 79 2d 65 6c 65 6d 65 | 6e 74 20 2e 20 70 72 65 |ry-eleme|nt . pre|
|00002960| 76 69 6f 75 73 2d 63 6f | 6d 70 6c 65 74 65 2d 68 |vious-co|mplete-h|
|00002970| 69 73 74 6f 72 79 2d 65 | 6c 65 6d 65 6e 74 29 20 |istory-e|lement) |
|00002980| 28 5b 70 72 69 6f 72 5d | 20 70 72 65 76 69 6f 75 |([prior]| previou|
|00002990| 73 2d 68 69 73 74 6f 72 | 79 2d 65 6c 65 6d 65 6e |s-histor|y-elemen|
|000029a0| 74 20 2e 20 70 72 65 76 | 69 6f 75 73 2d 63 6f 6d |t . prev|ious-com|
|000029b0| 70 6c 65 74 65 2d 68 69 | 73 74 6f 72 79 2d 65 6c |plete-hi|story-el|
|000029c0| 65 6d 65 6e 74 29 20 28 | 22 1b 72 22 20 2e 20 70 |ement) (|".r" . p|
|000029d0| 72 65 76 69 6f 75 73 2d | 6d 61 74 63 68 69 6e 67 |revious-|matching|
|000029e0| 2d 68 69 73 74 6f 72 79 | 2d 65 6c 65 6d 65 6e 74 |-history|-element|
|000029f0| 29 20 28 22 1b 73 22 20 | 2e 20 6e 65 78 74 2d 6d |) (".s" |. next-m|
|00002a00| 61 74 63 68 69 6e 67 2d | 68 69 73 74 6f 72 79 2d |atching-|history-|
|00002a10| 65 6c 65 6d 65 6e 74 29 | 29 5d 20 33 29 0a 28 64 |element)|)] 3).(d|
|00002a20| 65 66 61 6c 69 61 73 20 | 27 70 72 65 76 69 6f 75 |efalias |'previou|
|00002a30| 73 2d 6d 61 74 63 68 69 | 6e 67 2d 68 69 73 74 6f |s-matchi|ng-histo|
|00002a40| 72 79 2d 65 6c 65 6d 65 | 6e 74 20 23 5b 28 72 65 |ry-eleme|nt #[(re|
|00002a50| 67 65 78 70 20 6e 29 20 | 22 08 4a c1 5c 6e 1b 1c |gexp n) |".J.\n..|
|00002a60| 1d 0e 06 c7 55 84 65 00 | 0b 14 c8 0b 0e 06 c7 57 |....U.e.|.......W|
|00002a70| 83 1d 00 c9 82 1e 00 c8 | 5c 5c 5d 0d 47 5e 89 13 |........|\\].G^..|
|00002a80| 0c 55 83 38 00 ca 0b c8 | 55 83 35 00 cb 82 36 00 |.U.8....|U.5...6.|
|00002a90| cc 21 88 cd 0e 0e 0e 0f | 83 49 00 d0 0b 53 0d 38 |.!......|.I...S.8|
|00002aa0| 21 82 4d 00 0b 53 0d 38 | 5c 22 83 07 00 0e 06 89 |!.M..S.8|\"......|
|00002ab0| c7 57 83 5d 00 c8 82 5e | 00 c9 5c 5c 89 16 06 82 |.W.]...^|..\\....|
|00002ac0| 09 00 0b 12 d1 20 88 0b | 53 0d 38 1e 12 0e 0f 83 |..... ..|S.8.....|
|00002ad0| 7c 00 d0 0e 12 21 82 7e | 00 0e 12 63 88 29 65 62 ||....!.~|...c.)eb|
|00002ae0| 88 2b 0e 13 40 40 d4 3d | 84 97 00 0e 13 40 40 d5 |.+..@@.=|.....@@.|
|00002af0| 3d 85 9d 00 0e 13 41 89 | 16 13 87 22 20 5b 6d 69 |=.....A.|..." [mi|
|00002b00| 6e 69 62 75 66 66 65 72 | 2d 68 69 73 74 6f 72 79 |nibuffer|-history|
|00002b10| 2d 76 61 72 69 61 62 6c | 65 20 6e 69 6c 20 6d 69 |-variabl|e nil mi|
|00002b20| 6e 69 62 75 66 66 65 72 | 2d 68 69 73 74 6f 72 79 |nibuffer|-history|
|00002b30| 2d 70 6f 73 69 74 69 6f | 6e 20 70 6f 73 20 70 72 |-positio|n pos pr|
|00002b40| 65 76 70 6f 73 20 68 69 | 73 74 6f 72 79 20 6e 20 |evpos hi|story n |
|00002b50| 30 20 31 20 2d 31 20 65 | 72 72 6f 72 20 22 4e 6f |0 1 -1 e|rror "No|
|00002b60| 20 6c 61 74 65 72 20 6d | 61 74 63 68 69 6e 67 20 | later m|atching |
|00002b70| 68 69 73 74 6f 72 79 20 | 69 74 65 6d 22 20 22 4e |history |item" "N|
|00002b80| 6f 20 65 61 72 6c 69 65 | 72 20 6d 61 74 63 68 69 |o earlie|r matchi|
|00002b90| 6e 67 20 68 69 73 74 6f | 72 79 20 69 74 65 6d 22 |ng histo|ry item"|
|00002ba0| 20 73 74 72 69 6e 67 2d | 6d 61 74 63 68 20 72 65 | string-|match re|
|00002bb0| 67 65 78 70 20 6d 69 6e | 69 62 75 66 66 65 72 2d |gexp min|ibuffer-|
|00002bc0| 68 69 73 74 6f 72 79 2d | 73 65 78 70 2d 66 6c 61 |history-|sexp-fla|
|00002bd0| 67 20 70 72 69 6e 31 2d | 74 6f 2d 73 74 72 69 6e |g prin1-|to-strin|
|00002be0| 67 20 65 72 61 73 65 2d | 62 75 66 66 65 72 20 65 |g erase-|buffer e|
|00002bf0| 6c 74 20 63 6f 6d 6d 61 | 6e 64 2d 68 69 73 74 6f |lt comma|nd-histo|
|00002c00| 72 79 20 70 72 65 76 69 | 6f 75 73 2d 6d 61 74 63 |ry previ|ous-matc|
|00002c10| 68 69 6e 67 2d 68 69 73 | 74 6f 72 79 2d 65 6c 65 |hing-his|tory-ele|
|00002c20| 6d 65 6e 74 20 6e 65 78 | 74 2d 6d 61 74 63 68 69 |ment nex|t-matchi|
|00002c30| 6e 67 2d 68 69 73 74 6f | 72 79 2d 65 6c 65 6d 65 |ng-histo|ry-eleme|
|00002c40| 6e 74 5d 20 36 20 22 5c | 0a 46 69 6e 64 20 74 68 |nt] 6 "\|.Find th|
|00002c50| 65 20 70 72 65 76 69 6f | 75 73 20 68 69 73 74 6f |e previo|us histo|
|00002c60| 72 79 20 65 6c 65 6d 65 | 6e 74 20 74 68 61 74 20 |ry eleme|nt that |
|00002c70| 6d 61 74 63 68 65 73 20 | 52 45 47 45 58 50 2e 0a |matches |REGEXP..|
|00002c80| 28 50 72 65 76 69 6f 75 | 73 20 68 69 73 74 6f 72 |(Previou|s histor|
|00002c90| 79 20 65 6c 65 6d 65 6e | 74 73 20 72 65 66 65 72 |y elemen|ts refer|
|00002ca0| 20 74 6f 20 65 61 72 6c | 69 65 72 20 61 63 74 69 | to earl|ier acti|
|00002cb0| 6f 6e 73 2e 29 0a 57 69 | 74 68 20 70 72 65 66 69 |ons.).Wi|th prefi|
|00002cc0| 78 20 61 72 67 75 6d 65 | 6e 74 20 4e 2c 20 73 65 |x argume|nt N, se|
|00002cd0| 61 72 63 68 20 66 6f 72 | 20 4e 74 68 20 70 72 65 |arch for| Nth pre|
|00002ce0| 76 69 6f 75 73 20 6d 61 | 74 63 68 2e 0a 49 66 20 |vious ma|tch..If |
|00002cf0| 4e 20 69 73 20 6e 65 67 | 61 74 69 76 65 2c 20 66 |N is neg|ative, f|
|00002d00| 69 6e 64 20 74 68 65 20 | 6e 65 78 74 20 6f 72 20 |ind the |next or |
|00002d10| 4e 74 68 20 6e 65 78 74 | 20 6d 61 74 63 68 2e 22 |Nth next| match."|
|00002d20| 20 28 62 79 74 65 2d 63 | 6f 64 65 20 22 c0 19 c2 | (byte-c|ode "...|
|00002d30| 1b c4 c5 c2 0e 06 c2 c7 | 25 89 1e 08 c9 98 83 1d |........|%.......|
|00002d40| 00 0e 07 89 41 40 a0 82 | 1f 00 0e 08 ca 0e 0b 21 |....A@..|.......!|
|00002d50| 2b 44 87 22 20 5b 74 20 | 65 6e 61 62 6c 65 2d 72 |+D." [t |enable-r|
|00002d60| 65 63 75 72 73 69 76 65 | 2d 6d 69 6e 69 62 75 66 |ecursive|-minibuf|
|00002d70| 66 65 72 73 20 6e 69 6c | 20 6d 69 6e 69 62 75 66 |fers nil| minibuf|
|00002d80| 66 65 72 2d 68 69 73 74 | 6f 72 79 2d 73 65 78 70 |fer-hist|ory-sexp|
|00002d90| 2d 66 6c 61 67 20 72 65 | 61 64 2d 66 72 6f 6d 2d |-flag re|ad-from-|
|00002da0| 6d 69 6e 69 62 75 66 66 | 65 72 20 22 50 72 65 76 |minibuff|er "Prev|
|00002db0| 69 6f 75 73 20 65 6c 65 | 6d 65 6e 74 20 6d 61 74 |ious ele|ment mat|
|00002dc0| 63 68 69 6e 67 20 28 72 | 65 67 65 78 70 29 3a 20 |ching (r|egexp): |
|00002dd0| 22 20 6d 69 6e 69 62 75 | 66 66 65 72 2d 6c 6f 63 |" minibu|ffer-loc|
|00002de0| 61 6c 2d 6d 61 70 20 6d | 69 6e 69 62 75 66 66 65 |al-map m|inibuffe|
|00002df0| 72 2d 68 69 73 74 6f 72 | 79 2d 73 65 61 72 63 68 |r-histor|y-search|
|00002e00| 2d 68 69 73 74 6f 72 79 | 20 72 65 67 65 78 70 20 |-history| regexp |
|00002e10| 22 22 20 70 72 65 66 69 | 78 2d 6e 75 6d 65 72 69 |"" prefi|x-numeri|
|00002e20| 63 2d 76 61 6c 75 65 20 | 63 75 72 72 65 6e 74 2d |c-value |current-|
|00002e30| 70 72 65 66 69 78 2d 61 | 72 67 5d 20 37 29 5d 29 |prefix-a|rg] 7)])|
|00002e40| 0a 28 64 65 66 61 6c 69 | 61 73 20 27 6e 65 78 74 |.(defali|as 'next|
|00002e50| 2d 6d 61 74 63 68 69 6e | 67 2d 68 69 73 74 6f 72 |-matchin|g-histor|
|00002e60| 79 2d 65 6c 65 6d 65 6e | 74 20 23 5b 28 72 65 67 |y-elemen|t #[(reg|
|00002e70| 65 78 70 20 6e 29 20 22 | c0 09 5c 6e 5b 5c 22 87 |exp n) "|..\n[\".|
|00002e80| 22 20 5b 70 72 65 76 69 | 6f 75 73 2d 6d 61 74 63 |" [previ|ous-matc|
|00002e90| 68 69 6e 67 2d 68 69 73 | 74 6f 72 79 2d 65 6c 65 |hing-his|tory-ele|
|00002ea0| 6d 65 6e 74 20 72 65 67 | 65 78 70 20 6e 5d 20 33 |ment reg|exp n] 3|
|00002eb0| 20 22 5c 0a 46 69 6e 64 | 20 74 68 65 20 6e 65 78 | "\.Find| the nex|
|00002ec0| 74 20 68 69 73 74 6f 72 | 79 20 65 6c 65 6d 65 6e |t histor|y elemen|
|00002ed0| 74 20 74 68 61 74 20 6d | 61 74 63 68 65 73 20 52 |t that m|atches R|
|00002ee0| 45 47 45 58 50 2e 0a 28 | 54 68 65 20 6e 65 78 74 |EGEXP..(|The next|
|00002ef0| 20 68 69 73 74 6f 72 79 | 20 65 6c 65 6d 65 6e 74 | history| element|
|00002f00| 20 72 65 66 65 72 73 20 | 74 6f 20 61 20 6d 6f 72 | refers |to a mor|
|00002f10| 65 20 72 65 63 65 6e 74 | 20 61 63 74 69 6f 6e 2e |e recent| action.|
|00002f20| 29 0a 57 69 74 68 20 70 | 72 65 66 69 78 20 61 72 |).With p|refix ar|
|00002f30| 67 75 6d 65 6e 74 20 4e | 2c 20 73 65 61 72 63 68 |gument N|, search|
|00002f40| 20 66 6f 72 20 4e 74 68 | 20 6e 65 78 74 20 6d 61 | for Nth| next ma|
|00002f50| 74 63 68 2e 0a 49 66 20 | 4e 20 69 73 20 6e 65 67 |tch..If |N is neg|
|00002f60| 61 74 69 76 65 2c 20 66 | 69 6e 64 20 74 68 65 20 |ative, f|ind the |
|00002f70| 70 72 65 76 69 6f 75 73 | 20 6f 72 20 4e 74 68 20 |previous| or Nth |
|00002f80| 70 72 65 76 69 6f 75 73 | 20 6d 61 74 63 68 2e 22 |previous| match."|
|00002f90| 20 28 62 79 74 65 2d 63 | 6f 64 65 20 22 c0 19 c2 | (byte-c|ode "...|
|00002fa0| 1b c4 c5 c2 0e 06 c2 c7 | 25 89 1e 08 c9 98 83 1d |........|%.......|
|00002fb0| 00 0e 07 89 41 40 a0 82 | 1f 00 0e 08 ca 0e 0b 21 |....A@..|.......!|
|00002fc0| 2b 44 87 22 20 5b 74 20 | 65 6e 61 62 6c 65 2d 72 |+D." [t |enable-r|
|00002fd0| 65 63 75 72 73 69 76 65 | 2d 6d 69 6e 69 62 75 66 |ecursive|-minibuf|
|00002fe0| 66 65 72 73 20 6e 69 6c | 20 6d 69 6e 69 62 75 66 |fers nil| minibuf|
|00002ff0| 66 65 72 2d 68 69 73 74 | 6f 72 79 2d 73 65 78 70 |fer-hist|ory-sexp|
|00003000| 2d 66 6c 61 67 20 72 65 | 61 64 2d 66 72 6f 6d 2d |-flag re|ad-from-|
|00003010| 6d 69 6e 69 62 75 66 66 | 65 72 20 22 4e 65 78 74 |minibuff|er "Next|
|00003020| 20 65 6c 65 6d 65 6e 74 | 20 6d 61 74 63 68 69 6e | element| matchin|
|00003030| 67 20 28 72 65 67 65 78 | 70 29 3a 20 22 20 6d 69 |g (regex|p): " mi|
|00003040| 6e 69 62 75 66 66 65 72 | 2d 6c 6f 63 61 6c 2d 6d |nibuffer|-local-m|
|00003050| 61 70 20 6d 69 6e 69 62 | 75 66 66 65 72 2d 68 69 |ap minib|uffer-hi|
|00003060| 73 74 6f 72 79 2d 73 65 | 61 72 63 68 2d 68 69 73 |story-se|arch-his|
|00003070| 74 6f 72 79 20 72 65 67 | 65 78 70 20 22 22 20 70 |tory reg|exp "" p|
|00003080| 72 65 66 69 78 2d 6e 75 | 6d 65 72 69 63 2d 76 61 |refix-nu|meric-va|
|00003090| 6c 75 65 20 63 75 72 72 | 65 6e 74 2d 70 72 65 66 |lue curr|ent-pref|
|000030a0| 69 78 2d 61 72 67 5d 20 | 37 29 5d 29 0a 28 64 65 |ix-arg] |7)]).(de|
|000030b0| 66 61 6c 69 61 73 20 27 | 6e 65 78 74 2d 68 69 73 |falias '|next-his|
|000030c0| 74 6f 72 79 2d 65 6c 65 | 6d 65 6e 74 20 23 5b 28 |tory-ele|ment #[(|
|000030d0| 6e 29 20 22 c0 09 5c 6e | 5a 5d 0b 4a 47 5e 1c 09 |n) "..\n|Z].JG^..|
|000030e0| 0c 55 83 20 00 c5 09 c0 | 55 83 1b 00 c6 82 1c 00 |.U. ....|U.......|
|000030f0| c7 21 82 3f 00 c8 20 88 | 0c 89 11 53 0b 4a 38 1e |.!.?.. .|...S.J8.|
|00003100| 09 0e 5c 6e 83 38 00 cb | 0e 09 21 82 3a 00 0e 09 |..\n.8..|..!.:...|
|00003110| 63 88 29 65 62 29 87 22 | 20 5b 31 20 6d 69 6e 69 |c.)eb)."| [1 mini|
|00003120| 62 75 66 66 65 72 2d 68 | 69 73 74 6f 72 79 2d 70 |buffer-h|istory-p|
|00003130| 6f 73 69 74 69 6f 6e 20 | 6e 20 6d 69 6e 69 62 75 |osition |n minibu|
|00003140| 66 66 65 72 2d 68 69 73 | 74 6f 72 79 2d 76 61 72 |ffer-his|tory-var|
|00003150| 69 61 62 6c 65 20 6e 61 | 72 67 20 65 72 72 6f 72 |iable na|rg error|
|00003160| 20 22 45 6e 64 20 6f 66 | 20 68 69 73 74 6f 72 79 | "End of| history|
|00003170| 3b 20 6e 6f 20 6e 65 78 | 74 20 69 74 65 6d 22 20 |; no nex|t item" |
|00003180| 22 42 65 67 69 6e 6e 69 | 6e 67 20 6f 66 20 68 69 |"Beginni|ng of hi|
|00003190| 73 74 6f 72 79 3b 20 6e | 6f 20 70 72 65 63 65 64 |story; n|o preced|
|000031a0| 69 6e 67 20 69 74 65 6d | 22 20 65 72 61 73 65 2d |ing item|" erase-|
|000031b0| 62 75 66 66 65 72 20 65 | 6c 74 20 6d 69 6e 69 62 |buffer e|lt minib|
|000031c0| 75 66 66 65 72 2d 68 69 | 73 74 6f 72 79 2d 73 65 |uffer-hi|story-se|
|000031d0| 78 70 2d 66 6c 61 67 20 | 70 72 69 6e 31 2d 74 6f |xp-flag |prin1-to|
|000031e0| 2d 73 74 72 69 6e 67 5d | 20 34 20 22 5c 0a 49 6e |-string]| 4 "\.In|
|000031f0| 73 65 72 74 20 74 68 65 | 20 6e 65 78 74 20 65 6c |sert the| next el|
|00003200| 65 6d 65 6e 74 20 6f 66 | 20 74 68 65 20 6d 69 6e |ement of| the min|
|00003210| 69 62 75 66 66 65 72 20 | 68 69 73 74 6f 72 79 20 |ibuffer |history |
|00003220| 69 6e 74 6f 20 74 68 65 | 20 6d 69 6e 69 62 75 66 |into the| minibuf|
|00003230| 66 65 72 2e 22 20 22 70 | 22 5d 29 0a 28 64 65 66 |fer." "p|"]).(def|
|00003240| 61 6c 69 61 73 20 27 70 | 72 65 76 69 6f 75 73 2d |alias 'p|revious-|
|00003250| 68 69 73 74 6f 72 79 2d | 65 6c 65 6d 65 6e 74 20 |history-|element |
|00003260| 23 5b 28 6e 29 20 22 c0 | 09 5b 21 87 22 20 5b 6e |#[(n) ".|.[!." [n|
|00003270| 65 78 74 2d 68 69 73 74 | 6f 72 79 2d 65 6c 65 6d |ext-hist|ory-elem|
|00003280| 65 6e 74 20 6e 5d 20 32 | 20 22 5c 0a 49 6e 73 65 |ent n] 2| "\.Inse|
|00003290| 72 74 73 20 74 68 65 20 | 70 72 65 76 69 6f 75 73 |rts the |previous|
|000032a0| 20 65 6c 65 6d 65 6e 74 | 20 6f 66 20 74 68 65 20 | element| of the |
|000032b0| 6d 69 6e 69 62 75 66 66 | 65 72 20 68 69 73 74 6f |minibuff|er histo|
|000032c0| 72 79 20 69 6e 74 6f 20 | 74 68 65 20 6d 69 6e 69 |ry into |the mini|
|000032d0| 62 75 66 66 65 72 2e 22 | 20 22 70 22 5d 29 0a 28 |buffer."| "p"]).(|
|000032e0| 64 65 66 61 6c 69 61 73 | 20 27 6e 65 78 74 2d 63 |defalias| 'next-c|
|000032f0| 6f 6d 70 6c 65 74 65 2d | 68 69 73 74 6f 72 79 2d |omplete-|history-|
|00003300| 65 6c 65 6d 65 6e 74 20 | 23 5b 28 6e 29 20 22 60 |element |#[(n) "`|
|00003310| 18 c1 c2 c3 65 60 7b 21 | 50 0c 5c 22 88 08 62 29 |....e`{!|P.\"..b)|
|00003320| 87 22 20 5b 70 6f 69 6e | 74 2d 61 74 2d 73 74 61 |." [poin|t-at-sta|
|00003330| 72 74 20 6e 65 78 74 2d | 6d 61 74 63 68 69 6e 67 |rt next-|matching|
|00003340| 2d 68 69 73 74 6f 72 79 | 2d 65 6c 65 6d 65 6e 74 |-history|-element|
|00003350| 20 22 5e 22 20 72 65 67 | 65 78 70 2d 71 75 6f 74 | "^" reg|exp-quot|
|00003360| 65 20 6e 5d 20 35 20 22 | 5c 0a 47 65 74 20 70 72 |e n] 5 "|\.Get pr|
|00003370| 65 76 69 6f 75 73 20 65 | 6c 65 6d 65 6e 74 20 6f |evious e|lement o|
|00003380| 66 20 68 69 73 74 6f 72 | 79 20 77 68 69 63 68 20 |f histor|y which |
|00003390| 69 73 20 61 20 63 6f 6d | 70 6c 65 74 69 6f 6e 20 |is a com|pletion |
|000033a0| 6f 66 20 6d 69 6e 69 62 | 75 66 66 65 72 20 63 6f |of minib|uffer co|
|000033b0| 6e 74 65 6e 74 73 2e 22 | 20 22 70 22 5d 29 0a 28 |ntents."| "p"]).(|
|000033c0| 64 65 66 61 6c 69 61 73 | 20 27 70 72 65 76 69 6f |defalias| 'previo|
|000033d0| 75 73 2d 63 6f 6d 70 6c | 65 74 65 2d 68 69 73 74 |us-compl|ete-hist|
|000033e0| 6f 72 79 2d 65 6c 65 6d | 65 6e 74 20 23 5b 28 6e |ory-elem|ent #[(n|
|000033f0| 29 20 22 c0 09 5b 21 87 | 22 20 5b 6e 65 78 74 2d |) "..[!.|" [next-|
|00003400| 63 6f 6d 70 6c 65 74 65 | 2d 68 69 73 74 6f 72 79 |complete|-history|
|00003410| 2d 65 6c 65 6d 65 6e 74 | 20 6e 5d 20 32 20 22 5c |-element| n] 2 "\|
|00003420| 0a 47 65 74 20 6e 65 78 | 74 20 65 6c 65 6d 65 6e |.Get nex|t elemen|
|00003430| 74 20 6f 66 20 68 69 73 | 74 6f 72 79 20 77 68 69 |t of his|tory whi|
|00003440| 63 68 20 69 73 20 61 20 | 63 6f 6d 70 6c 65 74 69 |ch is a |completi|
|00003450| 6f 6e 20 6f 66 20 6d 69 | 6e 69 62 75 66 66 65 72 |on of mi|nibuffer|
|00003460| 20 63 6f 6e 74 65 6e 74 | 73 2e 22 20 22 70 22 5d | content|s." "p"]|
|00003470| 29 0a 28 64 65 66 61 6c | 69 61 73 20 27 67 6f 74 |).(defal|ias 'got|
|00003480| 6f 2d 6c 69 6e 65 20 23 | 5b 28 61 72 67 29 20 22 |o-line #|[(arg) "|
|00003490| 8c 7e 88 c0 62 88 09 c2 | 3d 83 17 00 c3 c4 c5 c6 |.~..b...|=.......|
|000034a0| 0e 07 53 24 82 1b 00 0e | 07 53 79 29 87 22 20 5b |..S$....|.Sy)." [|
|000034b0| 31 20 73 65 6c 65 63 74 | 69 76 65 2d 64 69 73 70 |1 select|ive-disp|
|000034c0| 6c 61 79 20 74 20 72 65 | 2d 73 65 61 72 63 68 2d |lay t re|-search-|
|000034d0| 66 6f 72 77 61 72 64 20 | 22 5b 5c 6e 0d 5d 22 20 |forward |"[\n.]" |
|000034e0| 6e 69 6c 20 65 6e 64 20 | 61 72 67 5d 20 35 20 22 |nil end |arg] 5 "|
|000034f0| 5c 0a 47 6f 74 6f 20 6c | 69 6e 65 20 41 52 47 2c |\.Goto l|ine ARG,|
|00003500| 20 63 6f 75 6e 74 69 6e | 67 20 66 72 6f 6d 20 6c | countin|g from l|
|00003510| 69 6e 65 20 31 20 61 74 | 20 62 65 67 69 6e 6e 69 |ine 1 at| beginni|
|00003520| 6e 67 20 6f 66 20 62 75 | 66 66 65 72 2e 22 20 22 |ng of bu|ffer." "|
|00003530| 4e 47 6f 74 6f 20 6c 69 | 6e 65 3a 20 22 5d 29 0a |NGoto li|ne: "]).|
|00003540| 28 64 65 66 69 6e 65 2d | 66 75 6e 63 74 69 6f 6e |(define-|function|
|00003550| 20 28 71 75 6f 74 65 20 | 61 64 76 65 72 74 69 73 | (quote |advertis|
|00003560| 65 64 2d 75 6e 64 6f 29 | 20 28 71 75 6f 74 65 20 |ed-undo)| (quote |
|00003570| 75 6e 64 6f 29 29 0a 28 | 64 65 66 61 6c 69 61 73 |undo)).(|defalias|
|00003580| 20 27 75 6e 64 6f 20 23 | 5b 28 26 6f 70 74 69 6f | 'undo #|[(&optio|
|00003590| 6e 61 6c 20 61 72 67 29 | 20 22 c0 20 c1 20 1a 1b |nal arg)| ". . ..|
|000035a0| c4 20 c5 20 3d 84 12 00 | c6 c7 21 88 0e 08 c9 3d |. . =...|..!....=|
|000035b0| 84 20 00 ca 20 88 cb cc | 21 88 c9 16 0d cb 0e 0e |. .. ...|!.......|
|000035c0| 86 2a 00 cc 21 88 0b 85 | 39 00 c0 20 3f 85 39 00 |.*..!...|9.. ?.9.|
|000035d0| cf 5c 6e 21 2a 87 22 20 | 5b 62 75 66 66 65 72 2d |.\n!*." |[buffer-|
|000035e0| 6d 6f 64 69 66 69 65 64 | 2d 70 20 72 65 63 65 6e |modified|-p recen|
|000035f0| 74 2d 61 75 74 6f 2d 73 | 61 76 65 2d 70 20 72 65 |t-auto-s|ave-p re|
|00003600| 63 65 6e 74 2d 73 61 76 | 65 20 6d 6f 64 69 66 69 |cent-sav|e modifi|
|00003610| 65 64 20 73 65 6c 65 63 | 74 65 64 2d 77 69 6e 64 |ed selec|ted-wind|
|00003620| 6f 77 20 6d 69 6e 69 62 | 75 66 66 65 72 2d 77 69 |ow minib|uffer-wi|
|00003630| 6e 64 6f 77 20 6d 65 73 | 73 61 67 65 20 22 55 6e |ndow mes|sage "Un|
|00003640| 64 6f 21 22 20 6c 61 73 | 74 2d 63 6f 6d 6d 61 6e |do!" las|t-comman|
|00003650| 64 20 75 6e 64 6f 20 75 | 6e 64 6f 2d 73 74 61 72 |d undo u|ndo-star|
|00003660| 74 20 75 6e 64 6f 2d 6d | 6f 72 65 20 31 20 74 68 |t undo-m|ore 1 th|
|00003670| 69 73 2d 63 6f 6d 6d 61 | 6e 64 20 61 72 67 20 64 |is-comma|nd arg d|
|00003680| 65 6c 65 74 65 2d 61 75 | 74 6f 2d 73 61 76 65 2d |elete-au|to-save-|
|00003690| 66 69 6c 65 2d 69 66 2d | 6e 65 63 65 73 73 61 72 |file-if-|necessar|
|000036a0| 79 5d 20 32 20 22 5c 0a | 55 6e 64 6f 20 73 6f 6d |y] 2 "\.|Undo som|
|000036b0| 65 20 70 72 65 76 69 6f | 75 73 20 63 68 61 6e 67 |e previo|us chang|
|000036c0| 65 73 2e 0a 52 65 70 65 | 61 74 20 74 68 69 73 20 |es..Repe|at this |
|000036d0| 63 6f 6d 6d 61 6e 64 20 | 74 6f 20 75 6e 64 6f 20 |command |to undo |
|000036e0| 6d 6f 72 65 20 63 68 61 | 6e 67 65 73 2e 0a 41 20 |more cha|nges..A |
|000036f0| 6e 75 6d 65 72 69 63 20 | 61 72 67 75 6d 65 6e 74 |numeric |argument|
|00003700| 20 73 65 72 76 65 73 20 | 61 73 20 61 20 72 65 70 | serves |as a rep|
|00003710| 65 61 74 20 63 6f 75 6e | 74 2e 22 20 22 2a 70 22 |eat coun|t." "*p"|
|00003720| 5d 29 0a 28 64 65 66 76 | 61 72 20 70 65 6e 64 69 |]).(defv|ar pendi|
|00003730| 6e 67 2d 75 6e 64 6f 2d | 6c 69 73 74 20 6e 69 6c |ng-undo-|list nil|
|00003740| 20 22 5c 0a 57 69 74 68 | 69 6e 20 61 20 72 75 6e | "\.With|in a run|
|00003750| 20 6f 66 20 63 6f 6e 73 | 65 63 75 74 69 76 65 20 | of cons|ecutive |
|00003760| 75 6e 64 6f 20 63 6f 6d | 6d 61 6e 64 73 2c 20 6c |undo com|mands, l|
|00003770| 69 73 74 20 72 65 6d 61 | 69 6e 69 6e 67 20 74 6f |ist rema|ining to|
|00003780| 20 62 65 20 75 6e 64 6f | 6e 65 2e 22 29 0a 28 64 | be undo|ne.").(d|
|00003790| 65 66 61 6c 69 61 73 20 | 27 75 6e 64 6f 2d 73 74 |efalias |'undo-st|
|000037a0| 61 72 74 20 23 5b 6e 69 | 6c 20 22 08 c1 3d 83 5c |art #[ni|l "..=.\|
|000037b0| 6e 00 c2 c3 21 88 08 89 | 14 87 22 20 5b 62 75 66 |n...!...|.." [buf|
|000037c0| 66 65 72 2d 75 6e 64 6f | 2d 6c 69 73 74 20 74 20 |fer-undo|-list t |
|000037d0| 65 72 72 6f 72 20 22 4e | 6f 20 75 6e 64 6f 20 69 |error "N|o undo i|
|000037e0| 6e 66 6f 72 6d 61 74 69 | 6f 6e 20 69 6e 20 74 68 |nformati|on in th|
|000037f0| 69 73 20 62 75 66 66 65 | 72 22 20 70 65 6e 64 69 |is buffe|r" pendi|
|00003800| 6e 67 2d 75 6e 64 6f 2d | 6c 69 73 74 5d 20 32 20 |ng-undo-|list] 2 |
|00003810| 22 5c 0a 53 65 74 20 60 | 70 65 6e 64 69 6e 67 2d |"\.Set `|pending-|
|00003820| 75 6e 64 6f 2d 6c 69 73 | 74 27 20 74 6f 20 74 68 |undo-lis|t' to th|
|00003830| 65 20 66 72 6f 6e 74 20 | 6f 66 20 74 68 65 20 75 |e front |of the u|
|00003840| 6e 64 6f 20 6c 69 73 74 | 2e 0a 54 68 65 20 6e 65 |ndo list|..The ne|
|00003850| 78 74 20 63 61 6c 6c 20 | 74 6f 20 60 75 6e 64 6f |xt call |to `undo|
|00003860| 2d 6d 6f 72 65 27 20 77 | 69 6c 6c 20 75 6e 64 6f |-more' w|ill undo|
|00003870| 20 74 68 65 20 6d 6f 73 | 74 20 72 65 63 65 6e 74 | the mos|t recent|
|00003880| 6c 79 20 6d 61 64 65 20 | 63 68 61 6e 67 65 2e 22 |ly made |change."|
|00003890| 5d 29 0a 28 64 65 66 61 | 6c 69 61 73 20 27 75 6e |]).(defa|lias 'un|
|000038a0| 64 6f 2d 6d 6f 72 65 20 | 23 5b 28 63 6f 75 6e 74 |do-more |#[(count|
|000038b0| 29 20 22 08 84 08 00 c1 | c2 21 88 c3 0c 08 5c 22 |) ".....|.!....\"|
|000038c0| 89 10 87 22 20 5b 70 65 | 6e 64 69 6e 67 2d 75 6e |..." [pe|nding-un|
|000038d0| 64 6f 2d 6c 69 73 74 20 | 65 72 72 6f 72 20 22 4e |do-list |error "N|
|000038e0| 6f 20 66 75 72 74 68 65 | 72 20 75 6e 64 6f 20 69 |o furthe|r undo i|
|000038f0| 6e 66 6f 72 6d 61 74 69 | 6f 6e 22 20 70 72 69 6d |nformati|on" prim|
|00003900| 69 74 69 76 65 2d 75 6e | 64 6f 20 63 6f 75 6e 74 |itive-un|do count|
|00003910| 5d 20 33 20 22 5c 0a 55 | 6e 64 6f 20 62 61 63 6b |] 3 "\.U|ndo back|
|00003920| 20 4e 20 75 6e 64 6f 2d | 62 6f 75 6e 64 61 72 69 | N undo-|boundari|
|00003930| 65 73 20 62 65 79 6f 6e | 64 20 77 68 61 74 20 77 |es beyon|d what w|
|00003940| 61 73 20 61 6c 72 65 61 | 64 79 20 75 6e 64 6f 6e |as alrea|dy undon|
|00003950| 65 20 72 65 63 65 6e 74 | 6c 79 2e 0a 43 61 6c 6c |e recent|ly..Call|
|00003960| 20 60 75 6e 64 6f 2d 73 | 74 61 72 74 27 20 74 6f | `undo-s|tart' to|
|00003970| 20 67 65 74 20 72 65 61 | 64 79 20 74 6f 20 75 6e | get rea|dy to un|
|00003980| 64 6f 20 72 65 63 65 6e | 74 20 63 68 61 6e 67 65 |do recen|t change|
|00003990| 73 2c 0a 74 68 65 6e 20 | 63 61 6c 6c 20 60 75 6e |s,.then |call `un|
|000039a0| 64 6f 2d 6d 6f 72 65 27 | 20 6f 6e 65 20 6f 72 20 |do-more'| one or |
|000039b0| 6d 6f 72 65 20 74 69 6d | 65 73 20 74 6f 20 75 6e |more tim|es to un|
|000039c0| 64 6f 20 74 68 65 6d 2e | 22 5d 29 0a 28 62 79 74 |do them.|"]).(byt|
|000039d0| 65 2d 63 6f 64 65 20 22 | c0 c1 21 84 08 00 c2 11 |e-code "|..!.....|
|000039e0| c0 c3 21 84 10 00 c2 13 | c0 87 22 20 5b 62 6f 75 |..!.....|.." [bou|
|000039f0| 6e 64 70 20 6c 61 73 74 | 2d 73 68 65 6c 6c 2d 63 |ndp last|-shell-c|
|00003a00| 6f 6d 6d 61 6e 64 20 22 | 22 20 6c 61 73 74 2d 73 |ommand "|" last-s|
|00003a10| 68 65 6c 6c 2d 63 6f 6d | 6d 61 6e 64 2d 6f 6e 2d |hell-com|mand-on-|
|00003a20| 72 65 67 69 6f 6e 5d 20 | 32 29 0a 28 64 65 66 61 |region] |2).(defa|
|00003a30| 6c 69 61 73 20 27 73 68 | 65 6c 6c 2d 63 6f 6d 6d |lias 'sh|ell-comm|
|00003a40| 61 6e 64 20 23 5b 28 63 | 6f 6d 6d 61 6e 64 20 26 |and #[(c|ommand &|
|00003a50| 6f 70 74 69 6f 6e 61 6c | 20 66 6c 61 67 29 20 22 |optional| flag) "|
|00003a60| 08 83 20 00 c1 20 88 c2 | 20 88 c3 0c c5 c6 c5 c7 |.. .. ..| .......|
|00003a70| 0e 08 26 06 88 c9 c6 21 | ca 20 60 70 93 88 62 87 |..&....!|. `p..b.|
|00003a80| cb 20 1e 0c cd 8e ce cf | 0e 08 5c 22 83 8c 00 d0 |. ......|..\"....|
|00003a90| d1 21 0e 12 c5 1e 13 1e | 14 1e 15 0e 08 d6 89 94 |.!......|........|
|00003aa0| 4f 16 08 d7 0e 15 21 89 | 16 13 83 5e 00 d8 d9 21 |O.....!.|...^...!|
|00003ab0| 83 5a 00 da 0e 13 21 88 | 82 5e 00 db dc 21 88 8a |.Z....!.|.^...!..|
|00003ac0| 0e 15 71 88 dd 20 88 de | 0e 15 21 88 0e 14 16 12 |..q.. ..|..!.....|
|00003ad0| df e0 0e 15 0c c7 0e 08 | 25 16 13 e1 16 5c 22 e3 |........|%....\".|
|00003ae0| 0e 13 e4 5c 22 88 e5 0e | 13 e6 5c 22 2c 82 93 00 |...\"...|..\",...|
|00003af0| e7 60 60 0e 08 c5 24 2a | 87 22 20 5b 66 6c 61 67 |.``...$*|." [flag|
|00003b00| 20 62 61 72 66 2d 69 66 | 2d 62 75 66 66 65 72 2d | barf-if|-buffer-|
|00003b10| 72 65 61 64 2d 6f 6e 6c | 79 20 70 75 73 68 2d 6d |read-onl|y push-m|
|00003b20| 61 72 6b 20 63 61 6c 6c | 2d 70 72 6f 63 65 73 73 |ark call|-process|
|00003b30| 20 73 68 65 6c 6c 2d 66 | 69 6c 65 2d 6e 61 6d 65 | shell-f|ile-name|
|00003b40| 20 6e 69 6c 20 74 20 22 | 2d 63 22 20 63 6f 6d 6d | nil t "|-c" comm|
|00003b50| 61 6e 64 20 6d 61 72 6b | 20 6d 61 72 6b 2d 6d 61 |and mark| mark-ma|
|00003b60| 72 6b 65 72 20 6d 61 74 | 63 68 2d 64 61 74 61 20 |rker mat|ch-data |
|00003b70| 64 61 74 61 20 28 28 73 | 74 6f 72 65 2d 6d 61 74 |data ((s|tore-mat|
|00003b80| 63 68 2d 64 61 74 61 20 | 64 61 74 61 29 29 20 73 |ch-data |data)) s|
|00003b90| 74 72 69 6e 67 2d 6d 61 | 74 63 68 20 22 5b 20 09 |tring-ma|tch "[ .|
|00003ba0| 5d 2a 26 5b 20 09 5d 2a | 24 22 20 67 65 74 2d 62 |]*&[ .]*|$" get-b|
|00003bb0| 75 66 66 65 72 2d 63 72 | 65 61 74 65 20 22 2a 73 |uffer-cr|eate "*s|
|00003bc0| 68 65 6c 6c 2d 63 6f 6d | 6d 61 6e 64 2a 22 20 64 |hell-com|mand*" d|
|00003bd0| 65 66 61 75 6c 74 2d 64 | 69 72 65 63 74 6f 72 79 |efault-d|irectory|
|00003be0| 20 70 72 6f 63 20 64 69 | 72 65 63 74 6f 72 79 20 | proc di|rectory |
|00003bf0| 62 75 66 66 65 72 20 30 | 20 67 65 74 2d 62 75 66 |buffer 0| get-buf|
|00003c00| 66 65 72 2d 70 72 6f 63 | 65 73 73 20 79 65 73 2d |fer-proc|ess yes-|
|00003c10| 6f 72 2d 6e 6f 2d 70 20 | 22 41 20 63 6f 6d 6d 61 |or-no-p |"A comma|
|00003c20| 6e 64 20 69 73 20 72 75 | 6e 6e 69 6e 67 2e 20 20 |nd is ru|nning. |
|00003c30| 4b 69 6c 6c 20 69 74 3f | 20 22 20 6b 69 6c 6c 2d |Kill it?| " kill-|
|00003c40| 70 72 6f 63 65 73 73 20 | 65 72 72 6f 72 20 22 53 |process |error "S|
|00003c50| 68 65 6c 6c 20 63 6f 6d | 6d 61 6e 64 20 69 6e 20 |hell com|mand in |
|00003c60| 70 72 6f 67 72 65 73 73 | 22 20 65 72 61 73 65 2d |progress|" erase-|
|00003c70| 62 75 66 66 65 72 20 64 | 69 73 70 6c 61 79 2d 62 |buffer d|isplay-b|
|00003c80| 75 66 66 65 72 20 73 74 | 61 72 74 2d 70 72 6f 63 |uffer st|art-proc|
|00003c90| 65 73 73 20 22 53 68 65 | 6c 6c 22 20 28 22 3a 20 |ess "She|ll" (": |
|00003ca0| 25 73 22 29 20 6d 6f 64 | 65 2d 6c 69 6e 65 2d 70 |%s") mod|e-line-p|
|00003cb0| 72 6f 63 65 73 73 20 73 | 65 74 2d 70 72 6f 63 65 |rocess s|et-proce|
|00003cc0| 73 73 2d 73 65 6e 74 69 | 6e 65 6c 20 73 68 65 6c |ss-senti|nel shel|
|00003cd0| 6c 2d 63 6f 6d 6d 61 6e | 64 2d 73 65 6e 74 69 6e |l-comman|d-sentin|
|00003ce0| 65 6c 20 73 65 74 2d 70 | 72 6f 63 65 73 73 2d 66 |el set-p|rocess-f|
|00003cf0| 69 6c 74 65 72 20 73 68 | 65 6c 6c 2d 63 6f 6d 6d |ilter sh|ell-comm|
|00003d00| 61 6e 64 2d 66 69 6c 74 | 65 72 20 73 68 65 6c 6c |and-filt|er shell|
|00003d10| 2d 63 6f 6d 6d 61 6e 64 | 2d 6f 6e 2d 72 65 67 69 |-command|-on-regi|
|00003d20| 6f 6e 5d 20 38 20 22 5c | 0a 45 78 65 63 75 74 65 |on] 8 "\|.Execute|
|00003d30| 20 73 74 72 69 6e 67 20 | 43 4f 4d 4d 41 4e 44 20 | string |COMMAND |
|00003d40| 69 6e 20 69 6e 66 65 72 | 69 6f 72 20 73 68 65 6c |in infer|ior shel|
|00003d50| 6c 3b 20 64 69 73 70 6c | 61 79 20 6f 75 74 70 75 |l; displ|ay outpu|
|00003d60| 74 2c 20 69 66 20 61 6e | 79 2e 0a 49 66 20 43 4f |t, if an|y..If CO|
|00003d70| 4d 4d 41 4e 44 20 65 6e | 64 73 20 69 6e 20 61 6d |MMAND en|ds in am|
|00003d80| 70 65 72 73 61 6e 64 2c | 20 65 78 65 63 75 74 65 |persand,| execute|
|00003d90| 20 69 74 20 61 73 79 6e | 63 68 72 6f 6e 6f 75 73 | it asyn|chronous|
|00003da0| 6c 79 2e 0a 20 0a 4f 70 | 74 69 6f 6e 61 6c 20 73 |ly.. .Op|tional s|
|00003db0| 65 63 6f 6e 64 20 61 72 | 67 20 6e 6f 6e 2d 6e 69 |econd ar|g non-ni|
|00003dc0| 6c 20 28 70 72 65 66 69 | 78 20 61 72 67 2c 20 69 |l (prefi|x arg, i|
|00003dd0| 66 20 69 6e 74 65 72 61 | 63 74 69 76 65 29 0a 6d |f intera|ctive).m|
|00003de0| 65 61 6e 73 20 69 6e 73 | 65 72 74 20 6f 75 74 70 |eans ins|ert outp|
|00003df0| 75 74 20 69 6e 20 63 75 | 72 72 65 6e 74 20 62 75 |ut in cu|rrent bu|
|00003e00| 66 66 65 72 20 61 66 74 | 65 72 20 70 6f 69 6e 74 |ffer aft|er point|
|00003e10| 20 28 6c 65 61 76 65 20 | 6d 61 72 6b 20 61 66 74 | (leave |mark aft|
|00003e20| 65 72 20 69 74 29 2e 0a | 54 68 69 73 20 63 61 6e |er it)..|This can|
|00003e30| 6e 6f 74 20 62 65 20 64 | 6f 6e 65 20 61 73 79 6e |not be d|one asyn|
|00003e40| 63 68 72 6f 6e 6f 75 73 | 6c 79 2e 22 20 28 6c 69 |chronous|ly." (li|
|00003e50| 73 74 20 28 72 65 61 64 | 2d 73 74 72 69 6e 67 20 |st (read|-string |
|00003e60| 22 53 68 65 6c 6c 20 63 | 6f 6d 6d 61 6e 64 3a 20 |"Shell c|ommand: |
|00003e70| 22 20 6c 61 73 74 2d 73 | 68 65 6c 6c 2d 63 6f 6d |" last-s|hell-com|
|00003e80| 6d 61 6e 64 29 20 63 75 | 72 72 65 6e 74 2d 70 72 |mand) cu|rrent-pr|
|00003e90| 65 66 69 78 2d 61 72 67 | 29 5d 29 0a 28 62 79 74 |efix-arg|)]).(byt|
|00003ea0| 65 2d 63 6f 64 65 20 22 | c0 c1 c2 5c 22 88 c0 c3 |e-code "|...\"...|
|00003eb0| c4 5c 22 87 22 20 5b 64 | 65 66 61 6c 69 61 73 20 |.\"." [d|efalias |
|00003ec0| 73 68 65 6c 6c 2d 63 6f | 6d 6d 61 6e 64 2d 73 65 |shell-co|mmand-se|
|00003ed0| 6e 74 69 6e 65 6c 20 23 | 5b 28 70 72 6f 63 65 73 |ntinel #|[(proces|
|00003ee0| 73 20 73 69 67 6e 61 6c | 29 20 22 c0 09 21 c2 3e |s signal|) "..!.>|
|00003ef0| 85 24 00 c3 c4 c5 09 21 | 41 41 40 0e 06 c7 c8 4f |.$.....!|AA@....O|
|00003f00| 23 88 8a c9 09 21 71 88 | ca 16 0b 29 cc 09 21 87 |#....!q.|...)..!.|
|00003f10| 22 20 5b 70 72 6f 63 65 | 73 73 2d 73 74 61 74 75 |" [proce|ss-statu|
|00003f20| 73 20 70 72 6f 63 65 73 | 73 20 28 65 78 69 74 20 |s proces|s (exit |
|00003f30| 73 69 67 6e 61 6c 29 20 | 6d 65 73 73 61 67 65 20 |signal) |message |
|00003f40| 22 25 73 3a 20 25 73 2e | 22 20 70 72 6f 63 65 73 |"%s: %s.|" proces|
|00003f50| 73 2d 63 6f 6d 6d 61 6e | 64 20 73 69 67 6e 61 6c |s-comman|d signal|
|00003f60| 20 30 20 2d 31 20 70 72 | 6f 63 65 73 73 2d 62 75 | 0 -1 pr|ocess-bu|
|00003f70| 66 66 65 72 20 6e 69 6c | 20 6d 6f 64 65 2d 6c 69 |ffer nil| mode-li|
|00003f80| 6e 65 2d 70 72 6f 63 65 | 73 73 20 64 65 6c 65 74 |ne-proce|ss delet|
|00003f90| 65 2d 70 72 6f 63 65 73 | 73 5d 20 36 5d 20 73 68 |e-proces|s] 6] sh|
|00003fa0| 65 6c 6c 2d 63 6f 6d 6d | 61 6e 64 2d 66 69 6c 74 |ell-comm|and-filt|
|00003fb0| 65 72 20 23 5b 28 70 72 | 6f 63 20 73 74 72 69 6e |er #[(pr|oc strin|
|00003fc0| 67 29 20 22 70 18 c1 5c | 6e 21 1b c4 1d c6 0b 21 |g) "p..\|n!.....!|
|00003fd0| 1e 07 c8 0e 07 21 1e 09 | ca 8e 0b 71 88 60 15 64 |.....!..|...q.`.d|
|00003fe0| 62 88 cb 0e 0c 21 2e 06 | 87 22 20 5b 6f 62 75 66 |b....!..|." [obuf|
|00003ff0| 20 70 72 6f 63 65 73 73 | 2d 62 75 66 66 65 72 20 | process|-buffer |
|00004000| 70 72 6f 63 20 62 75 66 | 66 65 72 20 6e 69 6c 20 |proc buf|fer nil |
|00004010| 6f 70 6f 69 6e 74 20 67 | 65 74 2d 62 75 66 66 65 |opoint g|et-buffe|
|00004020| 72 2d 77 69 6e 64 6f 77 | 20 77 69 6e 64 6f 77 20 |r-window| window |
|00004030| 77 69 6e 64 6f 77 2d 73 | 74 61 72 74 20 70 6f 73 |window-s|tart pos|
|00004040| 20 28 28 62 79 74 65 2d | 63 6f 64 65 20 22 c0 09 | ((byte-|code "..|
|00004050| 5c 6e 5c 22 88 0b 62 88 | 0c 71 87 22 20 5b 73 65 |\n\"..b.|.q." [se|
|00004060| 74 2d 77 69 6e 64 6f 77 | 2d 73 74 61 72 74 20 77 |t-window|-start w|
|00004070| 69 6e 64 6f 77 20 70 6f | 73 20 6f 70 6f 69 6e 74 |indow po|s opoint|
|00004080| 20 6f 62 75 66 5d 20 33 | 29 29 20 69 6e 73 65 72 | obuf] 3|)) inser|
|00004090| 74 2d 62 65 66 6f 72 65 | 2d 6d 61 72 6b 65 72 73 |t-before|-markers|
|000040a0| 20 73 74 72 69 6e 67 5d | 20 32 5d 5d 20 33 29 0a | string]| 2]] 3).|
|000040b0| 28 64 65 66 61 6c 69 61 | 73 20 27 73 68 65 6c 6c |(defalia|s 'shell|
|000040c0| 2d 63 6f 6d 6d 61 6e 64 | 2d 6f 6e 2d 72 65 67 69 |-command|-on-regi|
|000040d0| 6f 6e 20 23 5b 28 73 74 | 61 72 74 20 65 6e 64 20 |on #[(st|art end |
|000040e0| 63 6f 6d 6d 61 6e 64 20 | 26 6f 70 74 69 6f 6e 61 |command |&optiona|
|000040f0| 6c 20 66 6c 61 67 20 69 | 6e 74 65 72 61 63 74 69 |l flag i|nteracti|
|00004100| 76 65 29 20 22 08 83 3a | 00 09 85 0c 00 60 c2 20 |ve) "..:|.....`. |
|00004110| 57 1b 09 83 14 00 c4 20 | 88 c5 0e 06 0e 07 0e 08 |W...... |........|
|00004120| c9 89 ca cb 0e 0c 26 08 | 88 cd ce 21 83 2e 00 cf |......&.|...!....|
|00004130| ce 21 88 09 85 38 00 0b | 85 38 00 d0 20 29 87 d1 |.!...8..|.8.. )..|
|00004140| ce 21 89 1e 12 70 3d 83 | 60 00 0e 07 64 7c 88 65 |.!...p=.|`...d|.e|
|00004150| 0e 06 7c 88 c5 65 64 0e | 08 c9 89 ca cb 0e 0c 26 |..|..ed.|.......&|
|00004160| 08 88 82 7a 00 8a 0e 12 | 71 88 d3 20 88 29 c5 0e |...z....|q.. .)..|
|00004170| 06 0e 07 0e 08 ca 0e 12 | ca cb 0e 0c 26 08 88 8a |........|....&...|
|00004180| 0e 12 71 88 d4 20 d5 55 | 83 8a 00 d5 82 8e 00 d6 |..q.. .U|........|
|00004190| 65 64 5c 22 29 89 1e 17 | d5 55 83 a1 00 d8 d9 21 |ed\")...|.U.....!|
|000041a0| 88 cf ce 21 82 c4 00 0e | 17 da 55 83 bd 00 d8 db |...!....|..U.....|
|000041b0| 8a 0e 12 71 88 65 62 88 | 60 ca 7f 88 60 7b 29 5c |...q.eb.|`...`{)\|
|000041c0| 22 82 c4 00 dc dd 0e 12 | 21 da 5c 22 2a 87 22 20 |".......|!.\"*." |
|000041d0| 5b 66 6c 61 67 20 69 6e | 74 65 72 61 63 74 69 76 |[flag in|teractiv|
|000041e0| 65 20 6d 61 72 6b 20 73 | 77 61 70 20 70 75 73 68 |e mark s|wap push|
|000041f0| 2d 6d 61 72 6b 20 63 61 | 6c 6c 2d 70 72 6f 63 65 |-mark ca|ll-proce|
|00004200| 73 73 2d 72 65 67 69 6f | 6e 20 73 74 61 72 74 20 |ss-regio|n start |
|00004210| 65 6e 64 20 73 68 65 6c | 6c 2d 66 69 6c 65 2d 6e |end shel|l-file-n|
|00004220| 61 6d 65 20 74 20 6e 69 | 6c 20 22 2d 63 22 20 63 |ame t ni|l "-c" c|
|00004230| 6f 6d 6d 61 6e 64 20 67 | 65 74 2d 62 75 66 66 65 |ommand g|et-buffe|
|00004240| 72 20 22 2a 53 68 65 6c | 6c 20 43 6f 6d 6d 61 6e |r "*Shel|l Comman|
|00004250| 64 20 4f 75 74 70 75 74 | 2a 22 20 6b 69 6c 6c 2d |d Output|*" kill-|
|00004260| 62 75 66 66 65 72 20 65 | 78 63 68 61 6e 67 65 2d |buffer e|xchange-|
|00004270| 70 6f 69 6e 74 2d 61 6e | 64 2d 6d 61 72 6b 20 67 |point-an|d-mark g|
|00004280| 65 74 2d 62 75 66 66 65 | 72 2d 63 72 65 61 74 65 |et-buffe|r-create|
|00004290| 20 62 75 66 66 65 72 20 | 65 72 61 73 65 2d 62 75 | buffer |erase-bu|
|000042a0| 66 66 65 72 20 62 75 66 | 66 65 72 2d 73 69 7a 65 |ffer buf|fer-size|
|000042b0| 20 30 20 63 6f 75 6e 74 | 2d 6c 69 6e 65 73 20 6c | 0 count|-lines l|
|000042c0| 69 6e 65 73 20 6d 65 73 | 73 61 67 65 20 22 28 53 |ines mes|sage "(S|
|000042d0| 68 65 6c 6c 20 63 6f 6d | 6d 61 6e 64 20 63 6f 6d |hell com|mand com|
|000042e0| 70 6c 65 74 65 64 20 77 | 69 74 68 20 6e 6f 20 6f |pleted w|ith no o|
|000042f0| 75 74 70 75 74 29 22 20 | 31 20 22 25 73 22 20 73 |utput)" |1 "%s" s|
|00004300| 65 74 2d 77 69 6e 64 6f | 77 2d 73 74 61 72 74 20 |et-windo|w-start |
|00004310| 64 69 73 70 6c 61 79 2d | 62 75 66 66 65 72 5d 20 |display-|buffer] |
|00004320| 31 30 20 22 5c 0a 45 78 | 65 63 75 74 65 20 73 74 |10 "\.Ex|ecute st|
|00004330| 72 69 6e 67 20 43 4f 4d | 4d 41 4e 44 20 69 6e 20 |ring COM|MAND in |
|00004340| 69 6e 66 65 72 69 6f 72 | 20 73 68 65 6c 6c 20 77 |inferior| shell w|
|00004350| 69 74 68 20 72 65 67 69 | 6f 6e 20 61 73 20 69 6e |ith regi|on as in|
|00004360| 70 75 74 2e 0a 4e 6f 72 | 6d 61 6c 6c 79 20 64 69 |put..Nor|mally di|
|00004370| 73 70 6c 61 79 20 6f 75 | 74 70 75 74 20 28 69 66 |splay ou|tput (if|
|00004380| 20 61 6e 79 29 20 69 6e | 20 74 65 6d 70 20 62 75 | any) in| temp bu|
|00004390| 66 66 65 72 20 60 2a 53 | 68 65 6c 6c 20 43 6f 6d |ffer `*S|hell Com|
|000043a0| 6d 61 6e 64 20 4f 75 74 | 70 75 74 2a 27 3b 0a 50 |mand Out|put*';.P|
|000043b0| 72 65 66 69 78 20 61 72 | 67 20 6d 65 61 6e 73 20 |refix ar|g means |
|000043c0| 72 65 70 6c 61 63 65 20 | 74 68 65 20 72 65 67 69 |replace |the regi|
|000043d0| 6f 6e 20 77 69 74 68 20 | 69 74 2e 0a 4e 6f 6e 69 |on with |it..Noni|
|000043e0| 6e 74 65 72 61 63 74 69 | 76 65 20 61 72 67 73 20 |nteracti|ve args |
|000043f0| 61 72 65 20 53 54 41 52 | 54 2c 20 45 4e 44 2c 20 |are STAR|T, END, |
|00004400| 43 4f 4d 4d 41 4e 44 2c | 20 46 4c 41 47 2e 0a 4e |COMMAND,| FLAG..N|
|00004410| 6f 6e 69 6e 74 65 72 61 | 63 74 69 76 65 6c 79 20 |onintera|ctively |
|00004420| 46 4c 41 47 20 6d 65 61 | 6e 73 20 69 6e 73 65 72 |FLAG mea|ns inser|
|00004430| 74 20 6f 75 74 70 75 74 | 20 69 6e 20 70 6c 61 63 |t output| in plac|
|00004440| 65 20 6f 66 20 74 65 78 | 74 20 66 72 6f 6d 20 53 |e of tex|t from S|
|00004450| 54 41 52 54 20 74 6f 20 | 45 4e 44 2c 0a 61 6e 64 |TART to |END,.and|
|00004460| 20 70 75 74 20 70 6f 69 | 6e 74 20 61 74 20 74 68 | put poi|nt at th|
|00004470| 65 20 65 6e 64 2c 20 62 | 75 74 20 64 6f 6e 27 74 |e end, b|ut don't|
|00004480| 20 61 6c 74 65 72 20 74 | 68 65 20 6d 61 72 6b 2e | alter t|he mark.|
|00004490| 0a 0a 49 66 20 74 68 65 | 20 6f 75 74 70 75 74 20 |..If the| output |
|000044a0| 69 73 20 6f 6e 65 20 6c | 69 6e 65 2c 20 69 74 20 |is one l|ine, it |
|000044b0| 69 73 20 64 69 73 70 6c | 61 79 65 64 20 69 6e 20 |is displ|ayed in |
|000044c0| 74 68 65 20 65 63 68 6f | 20 61 72 65 61 2c 0a 62 |the echo| area,.b|
|000044d0| 75 74 20 69 74 20 69 73 | 20 6e 6f 6e 65 74 68 65 |ut it is| nonethe|
|000044e0| 6c 65 73 73 20 61 76 61 | 69 6c 61 62 6c 65 20 69 |less ava|ilable i|
|000044f0| 6e 20 62 75 66 66 65 72 | 20 60 2a 53 68 65 6c 6c |n buffer| `*Shell|
|00004500| 20 43 6f 6d 6d 61 6e 64 | 20 4f 75 74 70 75 74 2a | Command| Output*|
|00004510| 27 0a 65 76 65 6e 20 74 | 68 6f 75 67 68 20 74 68 |'.even t|hough th|
|00004520| 61 74 20 62 75 66 66 65 | 72 20 69 73 20 6e 6f 74 |at buffe|r is not|
|00004530| 20 61 75 74 6f 6d 61 74 | 69 63 61 6c 6c 79 20 64 | automat|ically d|
|00004540| 69 73 70 6c 61 79 65 64 | 2e 20 20 49 66 20 74 68 |isplayed|. If th|
|00004550| 65 72 65 20 69 73 20 6e | 6f 20 6f 75 74 70 75 74 |ere is n|o output|
|00004560| 0a 6f 72 20 6f 75 74 70 | 75 74 20 69 73 20 69 6e |.or outp|ut is in|
|00004570| 73 65 72 74 65 64 20 69 | 6e 20 74 68 65 20 63 75 |serted i|n the cu|
|00004580| 72 72 65 6e 74 20 62 75 | 66 66 65 72 20 74 68 65 |rrent bu|ffer the|
|00004590| 6e 20 60 2a 53 68 65 6c | 6c 20 43 6f 6d 6d 61 6e |n `*Shel|l Comman|
|000045a0| 64 20 4f 75 74 70 75 74 | 2a 27 20 69 73 0a 64 65 |d Output|*' is.de|
|000045b0| 6c 65 74 65 64 2e 22 20 | 28 6c 69 73 74 20 28 72 |leted." |(list (r|
|000045c0| 65 67 69 6f 6e 2d 62 65 | 67 69 6e 6e 69 6e 67 29 |egion-be|ginning)|
|000045d0| 20 28 72 65 67 69 6f 6e | 2d 65 6e 64 29 20 28 72 | (region|-end) (r|
|000045e0| 65 61 64 2d 73 74 72 69 | 6e 67 20 22 53 68 65 6c |ead-stri|ng "Shel|
|000045f0| 6c 20 63 6f 6d 6d 61 6e | 64 20 6f 6e 20 72 65 67 |l comman|d on reg|
|00004600| 69 6f 6e 3a 20 22 20 6c | 61 73 74 2d 73 68 65 6c |ion: " l|ast-shel|
|00004610| 6c 2d 63 6f 6d 6d 61 6e | 64 2d 6f 6e 2d 72 65 67 |l-comman|d-on-reg|
|00004620| 69 6f 6e 29 20 63 75 72 | 72 65 6e 74 2d 70 72 65 |ion) cur|rent-pre|
|00004630| 66 69 78 2d 61 72 67 20 | 28 70 72 65 66 69 78 2d |fix-arg |(prefix-|
|00004640| 6e 75 6d 65 72 69 63 2d | 76 61 6c 75 65 20 63 75 |numeric-|value cu|
|00004650| 72 72 65 6e 74 2d 70 72 | 65 66 69 78 2d 61 72 67 |rrent-pr|efix-arg|
|00004660| 29 29 5d 29 0a 28 64 65 | 66 61 6c 69 61 73 20 27 |))]).(de|falias '|
|00004670| 75 6e 69 76 65 72 73 61 | 6c 2d 61 72 67 75 6d 65 |universa|l-argume|
|00004680| 6e 74 20 23 5b 6e 69 6c | 20 22 c0 c1 1a 1b c4 c1 |nt #[nil| "......|
|00004690| c5 5c 22 12 c6 5c 6e 21 | c7 9a 83 1d 00 0b c0 5f |.\"..\n!|......._|
|000046a0| 13 c4 c1 c5 5c 22 12 82 | 09 00 c8 5c 6e 0b c1 23 |....\"..|...\n..#|
|000046b0| 2a 87 22 20 5b 34 20 6e | 69 6c 20 6b 65 79 20 66 |*." [4 n|il key f|
|000046c0| 61 63 74 6f 72 20 72 65 | 61 64 2d 6b 65 79 2d 73 |actor re|ad-key-s|
|000046d0| 65 71 75 65 6e 63 65 20 | 74 20 6b 65 79 2d 62 69 |equence |t key-bi|
|000046e0| 6e 64 69 6e 67 20 75 6e | 69 76 65 72 73 61 6c 2d |nding un|iversal-|
|000046f0| 61 72 67 75 6d 65 6e 74 | 20 70 72 65 66 69 78 2d |argument| prefix-|
|00004700| 61 72 67 2d 69 6e 74 65 | 72 6e 61 6c 5d 20 34 20 |arg-inte|rnal] 4 |
|00004710| 22 5c 0a 42 65 67 69 6e | 20 61 20 6e 75 6d 65 72 |"\.Begin| a numer|
|00004720| 69 63 20 61 72 67 75 6d | 65 6e 74 20 66 6f 72 20 |ic argum|ent for |
|00004730| 74 68 65 20 66 6f 6c 6c | 6f 77 69 6e 67 20 63 6f |the foll|owing co|
|00004740| 6d 6d 61 6e 64 2e 0a 44 | 69 67 69 74 73 20 6f 72 |mmand..D|igits or|
|00004750| 20 6d 69 6e 75 73 20 73 | 69 67 6e 20 66 6f 6c 6c | minus s|ign foll|
|00004760| 6f 77 69 6e 67 20 5c 5c | 5b 75 6e 69 76 65 72 73 |owing \\|[univers|
|00004770| 61 6c 2d 61 72 67 75 6d | 65 6e 74 5d 20 6d 61 6b |al-argum|ent] mak|
|00004780| 65 20 75 70 20 74 68 65 | 20 6e 75 6d 65 72 69 63 |e up the| numeric|
|00004790| 20 61 72 67 75 6d 65 6e | 74 2e 0a 5c 5c 5b 75 6e | argumen|t..\\[un|
|000047a0| 69 76 65 72 73 61 6c 2d | 61 72 67 75 6d 65 6e 74 |iversal-|argument|
|000047b0| 5d 20 66 6f 6c 6c 6f 77 | 69 6e 67 20 74 68 65 20 |] follow|ing the |
|000047c0| 64 69 67 69 74 73 20 6f | 72 20 6d 69 6e 75 73 20 |digits o|r minus |
|000047d0| 73 69 67 6e 20 65 6e 64 | 73 20 74 68 65 20 61 72 |sign end|s the ar|
|000047e0| 67 75 6d 65 6e 74 2e 0a | 5c 5c 5b 75 6e 69 76 65 |gument..|\\[unive|
|000047f0| 72 73 61 6c 2d 61 72 67 | 75 6d 65 6e 74 5d 20 77 |rsal-arg|ument] w|
|00004800| 69 74 68 6f 75 74 20 64 | 69 67 69 74 73 20 6f 72 |ithout d|igits or|
|00004810| 20 6d 69 6e 75 73 20 73 | 69 67 6e 20 70 72 6f 76 | minus s|ign prov|
|00004820| 69 64 65 73 20 34 20 61 | 73 20 61 72 67 75 6d 65 |ides 4 a|s argume|
|00004830| 6e 74 2e 0a 52 65 70 65 | 61 74 69 6e 67 20 5c 5c |nt..Repe|ating \\|
|00004840| 5b 75 6e 69 76 65 72 73 | 61 6c 2d 61 72 67 75 6d |[univers|al-argum|
|00004850| 65 6e 74 5d 20 77 69 74 | 68 6f 75 74 20 64 69 67 |ent] wit|hout dig|
|00004860| 69 74 73 20 6f 72 20 6d | 69 6e 75 73 20 73 69 67 |its or m|inus sig|
|00004870| 6e 0a 20 6d 75 6c 74 69 | 70 6c 69 65 73 20 74 68 |n. multi|plies th|
|00004880| 65 20 61 72 67 75 6d 65 | 6e 74 20 62 79 20 34 20 |e argume|nt by 4 |
|00004890| 65 61 63 68 20 74 69 6d | 65 2e 22 20 6e 69 6c 5d |each tim|e." nil]|
|000048a0| 29 0a 28 62 79 74 65 2d | 63 6f 64 65 20 22 c0 c1 |).(byte-|code "..|
|000048b0| c2 5c 22 88 c0 c3 c4 5c | 22 87 22 20 5b 64 65 66 |.\"....\|"." [def|
|000048c0| 61 6c 69 61 73 20 70 72 | 65 66 69 78 2d 61 72 67 |alias pr|efix-arg|
|000048d0| 2d 69 6e 74 65 72 6e 61 | 6c 20 23 5b 28 6b 65 79 |-interna|l #[(key|
|000048e0| 20 66 61 63 74 6f 72 20 | 76 61 6c 75 65 29 20 22 | factor |value) "|
|000048f0| c0 19 5c 6e a7 83 12 00 | 5c 6e c3 57 83 12 00 c4 |..\n....|\n.W....|
|00004900| 11 5c 6e 5b 12 5c 6e c5 | 3d 83 1c 00 c4 11 c6 12 |.\n[.\n.|=.......|
|00004910| 0e 07 c8 9a 83 33 00 09 | 5b 11 c6 16 09 ca c6 cb |.....3..|[.......|
|00004920| 5c 22 89 16 07 82 1e 00 | 0e 07 3b 83 70 00 0e 07 |\"......|..;.p...|
|00004930| 47 c0 55 83 70 00 0e 07 | cc 99 84 70 00 cd 0e 07 |G.U.p...|...p....|
|00004940| 99 84 70 00 5c 6e a7 83 | 58 00 5c 6e 82 59 00 c3 |..p.\n..|X.\n.Y..|
|00004950| ce 5f 0e 07 c3 48 cf 5a | 5c 5c 12 c6 16 09 ca c6 |._...H.Z|\\......|
|00004960| cb 5c 22 89 16 07 82 35 | 00 0e 09 83 7b 00 0e 09 |.\"....5|....{...|
|00004970| 43 82 8d 00 5c 6e a7 83 | 86 00 5c 6e 09 5f 82 8d |C...\n..|..\n._..|
|00004980| 00 09 c4 55 85 8d 00 c5 | 16 10 d1 0e 07 21 d2 3d |...U....|.....!.=|
|00004990| 83 a3 00 d3 5c 6e 09 5c | 22 88 ca c6 cb 5c 22 16 |....\n.\|"....\".|
|000049a0| 07 d4 0e 07 21 89 16 15 | 29 87 22 20 5b 31 20 73 |....!...|)." [1 s|
|000049b0| 69 67 6e 20 76 61 6c 75 | 65 20 30 20 2d 31 20 2d |ign valu|e 0 -1 -|
|000049c0| 20 6e 69 6c 20 6b 65 79 | 20 22 2d 22 20 66 61 63 | nil key| "-" fac|
|000049d0| 74 6f 72 20 72 65 61 64 | 2d 6b 65 79 2d 73 65 71 |tor read|-key-seq|
|000049e0| 75 65 6e 63 65 20 74 20 | 22 30 22 20 22 39 22 20 |uence t |"0" "9" |
|000049f0| 31 30 20 34 38 20 70 72 | 65 66 69 78 2d 61 72 67 |10 48 pr|efix-arg|
|00004a00| 20 6b 65 79 2d 62 69 6e | 64 69 6e 67 20 75 6e 69 | key-bin|ding uni|
|00004a10| 76 65 72 73 61 6c 2d 61 | 72 67 75 6d 65 6e 74 20 |versal-a|rgument |
|00004a20| 64 65 73 63 72 69 62 65 | 2d 61 72 67 20 6c 69 73 |describe|-arg lis|
|00004a30| 74 69 66 79 2d 6b 65 79 | 2d 73 65 71 75 65 6e 63 |tify-key|-sequenc|
|00004a40| 65 20 75 6e 72 65 61 64 | 2d 63 6f 6d 6d 61 6e 64 |e unread|-command|
|00004a50| 2d 65 76 65 6e 74 73 5d | 20 34 5d 20 64 65 73 63 |-events]| 4] desc|
|00004a60| 72 69 62 65 2d 61 72 67 | 20 23 5b 28 76 61 6c 75 |ribe-arg| #[(valu|
|00004a70| 65 20 73 69 67 6e 29 20 | 22 08 a7 83 0c 00 c1 c2 |e sign) |".......|
|00004a80| 08 0b 5f 5c 22 87 08 3a | 83 17 00 c1 c4 08 40 5c |.._\"..:|......@\|
|00004a90| 22 87 0b c5 57 85 20 00 | c1 c6 21 87 22 20 5b 76 |"...W. .|..!." [v|
|00004aa0| 61 6c 75 65 20 6d 65 73 | 73 61 67 65 20 22 41 72 |alue mes|sage "Ar|
|00004ab0| 67 3a 20 25 64 22 20 73 | 69 67 6e 20 22 41 72 67 |g: %d" s|ign "Arg|
|00004ac0| 3a 20 5b 25 64 5d 22 20 | 30 20 22 41 72 67 3a 20 |: [%d]" |0 "Arg: |
|00004ad0| 2d 22 5d 20 34 5d 5d 20 | 33 29 0a 28 64 65 66 61 |-"] 4]] |3).(defa|
|00004ae0| 6c 69 61 73 20 27 64 69 | 67 69 74 2d 61 72 67 75 |lias 'di|git-argu|
|00004af0| 6d 65 6e 74 20 23 5b 28 | 61 72 67 29 20 22 c0 c1 |ment #[(|arg) "..|
|00004b00| c2 0b c4 5c 22 21 c5 0e | 06 23 87 22 20 5b 70 72 |...\"!..|.#." [pr|
|00004b10| 65 66 69 78 2d 61 72 67 | 2d 69 6e 74 65 72 6e 61 |efix-arg|-interna|
|00004b20| 6c 20 63 68 61 72 2d 74 | 6f 2d 73 74 72 69 6e 67 |l char-t|o-string|
|00004b30| 20 6c 6f 67 61 6e 64 20 | 6c 61 73 74 2d 63 6f 6d | logand |last-com|
|00004b40| 6d 61 6e 64 2d 63 68 61 | 72 20 31 32 37 20 6e 69 |mand-cha|r 127 ni|
|00004b50| 6c 20 61 72 67 5d 20 35 | 20 22 5c 0a 50 61 72 74 |l arg] 5| "\.Part|
|00004b60| 20 6f 66 20 74 68 65 20 | 6e 75 6d 65 72 69 63 20 | of the |numeric |
|00004b70| 61 72 67 75 6d 65 6e 74 | 20 66 6f 72 20 74 68 65 |argument| for the|
|00004b80| 20 6e 65 78 74 20 63 6f | 6d 6d 61 6e 64 2e 0a 5c | next co|mmand..\|
|00004b90| 5c 5b 75 6e 69 76 65 72 | 73 61 6c 2d 61 72 67 75 |\[univer|sal-argu|
|00004ba0| 6d 65 6e 74 5d 20 66 6f | 6c 6c 6f 77 69 6e 67 20 |ment] fo|llowing |
|00004bb0| 64 69 67 69 74 73 20 6f | 72 20 6d 69 6e 75 73 20 |digits o|r minus |
|00004bc0| 73 69 67 6e 20 65 6e 64 | 73 20 74 68 65 20 61 72 |sign end|s the ar|
|00004bd0| 67 75 6d 65 6e 74 2e 22 | 20 22 50 22 5d 29 0a 28 |gument."| "P"]).(|
|00004be0| 64 65 66 61 6c 69 61 73 | 20 27 6e 65 67 61 74 69 |defalias| 'negati|
|00004bf0| 76 65 2d 61 72 67 75 6d | 65 6e 74 20 23 5b 28 61 |ve-argum|ent #[(a|
|00004c00| 72 67 29 20 22 c0 c1 c2 | 0b 23 87 22 20 5b 70 72 |rg) "...|.#." [pr|
|00004c10| 65 66 69 78 2d 61 72 67 | 2d 69 6e 74 65 72 6e 61 |efix-arg|-interna|
|00004c20| 6c 20 22 2d 22 20 6e 69 | 6c 20 61 72 67 5d 20 34 |l "-" ni|l arg] 4|
|00004c30| 20 22 5c 0a 42 65 67 69 | 6e 20 61 20 6e 65 67 61 | "\.Begi|n a nega|
|00004c40| 74 69 76 65 20 6e 75 6d | 65 72 69 63 20 61 72 67 |tive num|eric arg|
|00004c50| 75 6d 65 6e 74 20 66 6f | 72 20 74 68 65 20 6e 65 |ument fo|r the ne|
|00004c60| 78 74 20 63 6f 6d 6d 61 | 6e 64 2e 0a 5c 5c 5b 75 |xt comma|nd..\\[u|
|00004c70| 6e 69 76 65 72 73 61 6c | 2d 61 72 67 75 6d 65 6e |niversal|-argumen|
|00004c80| 74 5d 20 66 6f 6c 6c 6f | 77 69 6e 67 20 64 69 67 |t] follo|wing dig|
|00004c90| 69 74 73 20 6f 72 20 6d | 69 6e 75 73 20 73 69 67 |its or m|inus sig|
|00004ca0| 6e 20 65 6e 64 73 20 74 | 68 65 20 61 72 67 75 6d |n ends t|he argum|
|00004cb0| 65 6e 74 2e 22 20 22 50 | 22 5d 29 0a 28 64 65 66 |ent." "P|"]).(def|
|00004cc0| 61 6c 69 61 73 20 27 66 | 6f 72 77 61 72 64 2d 74 |alias 'f|orward-t|
|00004cd0| 6f 2d 69 6e 64 65 6e 74 | 61 74 69 6f 6e 20 23 5b |o-indent|ation #[|
|00004ce0| 28 61 72 67 29 20 22 08 | 79 88 c1 c2 77 87 22 20 |(arg) ".|y...w." |
|00004cf0| 5b 61 72 67 20 22 20 09 | 22 20 6e 69 6c 5d 20 32 |[arg " .|" nil] 2|
|00004d00| 20 22 5c 0a 4d 6f 76 65 | 20 66 6f 72 77 61 72 64 | "\.Move| forward|
|00004d10| 20 41 52 47 20 6c 69 6e | 65 73 20 61 6e 64 20 70 | ARG lin|es and p|
|00004d20| 6f 73 69 74 69 6f 6e 20 | 61 74 20 66 69 72 73 74 |osition |at first|
|00004d30| 20 6e 6f 6e 62 6c 61 6e | 6b 20 63 68 61 72 61 63 | nonblan|k charac|
|00004d40| 74 65 72 2e 22 20 22 70 | 22 5d 29 0a 28 64 65 66 |ter." "p|"]).(def|
|00004d50| 61 6c 69 61 73 20 27 62 | 61 63 6b 77 61 72 64 2d |alias 'b|ackward-|
|00004d60| 74 6f 2d 69 6e 64 65 6e | 74 61 74 69 6f 6e 20 23 |to-inden|tation #|
|00004d70| 5b 28 61 72 67 29 20 22 | 08 5b 79 88 c1 c2 77 87 |[(arg) "|.[y...w.|
|00004d80| 22 20 5b 61 72 67 20 22 | 20 09 22 20 6e 69 6c 5d |" [arg "| ." nil]|
|00004d90| 20 32 20 22 5c 0a 4d 6f | 76 65 20 62 61 63 6b 77 | 2 "\.Mo|ve backw|
|00004da0| 61 72 64 20 41 52 47 20 | 6c 69 6e 65 73 20 61 6e |ard ARG |lines an|
|00004db0| 64 20 70 6f 73 69 74 69 | 6f 6e 20 61 74 20 66 69 |d positi|on at fi|
|00004dc0| 72 73 74 20 6e 6f 6e 62 | 6c 61 6e 6b 20 63 68 61 |rst nonb|lank cha|
|00004dd0| 72 61 63 74 65 72 2e 22 | 20 22 70 22 5d 29 0a 28 |racter."| "p"]).(|
|00004de0| 64 65 66 76 61 72 20 6b | 69 6c 6c 2d 77 68 6f 6c |defvar k|ill-whol|
|00004df0| 65 2d 6c 69 6e 65 20 6e | 69 6c 20 22 5c 0a 2a 49 |e-line n|il "\.*I|
|00004e00| 66 20 6e 6f 6e 2d 6e 69 | 6c 2c 20 60 6b 69 6c 6c |f non-ni|l, `kill|
|00004e10| 2d 6c 69 6e 65 27 20 77 | 69 74 68 20 6e 6f 20 61 |-line' w|ith no a|
|00004e20| 72 67 20 61 74 20 62 65 | 67 20 6f 66 20 6c 69 6e |rg at be|g of lin|
|00004e30| 65 20 6b 69 6c 6c 73 20 | 74 68 65 20 77 68 6f 6c |e kills |the whol|
|00004e40| 65 20 6c 69 6e 65 2e 22 | 29 0a 28 64 65 66 61 6c |e line."|).(defal|
|00004e50| 69 61 73 20 27 6b 69 6c | 6c 2d 6c 69 6e 65 20 23 |ias 'kil|l-line #|
|00004e60| 5b 28 26 6f 70 74 69 6f | 6e 61 6c 20 61 72 67 29 |[(&optio|nal arg)|
|00004e70| 20 22 c0 60 8a 09 83 0f | 00 c2 09 21 79 88 82 30 | ".`....|...!y..0|
|00004e80| 00 6d 83 18 00 c3 c4 c5 | 5c 22 88 c6 c7 21 84 27 |.m......|\"...!.'|
|00004e90| 00 0e 08 83 2d 00 6e 83 | 2d 00 c9 79 88 82 30 00 |....-.n.|-..y..0.|
|00004ea0| c5 7f 88 60 29 5c 22 87 | 22 20 5b 6b 69 6c 6c 2d |...`)\".|" [kill-|
|00004eb0| 72 65 67 69 6f 6e 20 61 | 72 67 20 70 72 65 66 69 |region a|rg prefi|
|00004ec0| 78 2d 6e 75 6d 65 72 69 | 63 2d 76 61 6c 75 65 20 |x-numeri|c-value |
|00004ed0| 73 69 67 6e 61 6c 20 65 | 6e 64 2d 6f 66 2d 62 75 |signal e|nd-of-bu|
|00004ee0| 66 66 65 72 20 6e 69 6c | 20 6c 6f 6f 6b 69 6e 67 |ffer nil| looking|
|00004ef0| 2d 61 74 20 22 5b 20 09 | 5d 2a 24 22 20 6b 69 6c |-at "[ .|]*$" kil|
|00004f00| 6c 2d 77 68 6f 6c 65 2d | 6c 69 6e 65 20 31 5d 20 |l-whole-|line 1] |
|00004f10| 35 20 22 5c 0a 4b 69 6c | 6c 20 74 68 65 20 72 65 |5 "\.Kil|l the re|
|00004f20| 73 74 20 6f 66 20 74 68 | 65 20 63 75 72 72 65 6e |st of th|e curren|
|00004f30| 74 20 6c 69 6e 65 3b 20 | 69 66 20 6e 6f 20 6e 6f |t line; |if no no|
|00004f40| 6e 62 6c 61 6e 6b 73 20 | 74 68 65 72 65 2c 20 6b |nblanks |there, k|
|00004f50| 69 6c 6c 20 74 68 72 75 | 20 6e 65 77 6c 69 6e 65 |ill thru| newline|
|00004f60| 2e 0a 57 69 74 68 20 70 | 72 65 66 69 78 20 61 72 |..With p|refix ar|
|00004f70| 67 75 6d 65 6e 74 2c 20 | 6b 69 6c 6c 20 74 68 61 |gument, |kill tha|
|00004f80| 74 20 6d 61 6e 79 20 6c | 69 6e 65 73 20 66 72 6f |t many l|ines fro|
|00004f90| 6d 20 70 6f 69 6e 74 2e | 0a 4e 65 67 61 74 69 76 |m point.|.Negativ|
|00004fa0| 65 20 61 72 67 75 6d 65 | 6e 74 73 20 6b 69 6c 6c |e argume|nts kill|
|00004fb0| 20 6c 69 6e 65 73 20 62 | 61 63 6b 77 61 72 64 2e | lines b|ackward.|
|00004fc0| 0a 0a 57 68 65 6e 20 63 | 61 6c 6c 69 6e 67 20 66 |..When c|alling f|
|00004fd0| 72 6f 6d 20 61 20 70 72 | 6f 67 72 61 6d 2c 20 6e |rom a pr|ogram, n|
|00004fe0| 69 6c 20 6d 65 61 6e 73 | 20 5c 22 6e 6f 20 61 72 |il means| \"no ar|
|00004ff0| 67 5c 22 2c 0a 61 20 6e | 75 6d 62 65 72 20 63 6f |g\",.a n|umber co|
|00005000| 75 6e 74 73 20 61 73 20 | 61 20 70 72 65 66 69 78 |unts as |a prefix|
|00005010| 20 61 72 67 2e 0a 0a 49 | 66 20 60 6b 69 6c 6c 2d | arg...I|f `kill-|
|00005020| 77 68 6f 6c 65 2d 6c 69 | 6e 65 27 20 69 73 20 6e |whole-li|ne' is n|
|00005030| 6f 6e 2d 6e 69 6c 2c 20 | 74 68 65 6e 20 6b 69 6c |on-nil, |then kil|
|00005040| 6c 20 74 68 65 20 77 68 | 6f 6c 65 20 6c 69 6e 65 |l the wh|ole line|
|00005050| 0a 77 68 65 6e 20 67 69 | 76 65 6e 20 6e 6f 20 61 |.when gi|ven no a|
|00005060| 72 67 75 6d 65 6e 74 20 | 61 74 20 74 68 65 20 62 |rgument |at the b|
|00005070| 65 67 69 6e 6e 69 6e 67 | 20 6f 66 20 61 20 6c 69 |eginning| of a li|
|00005080| 6e 65 2e 22 20 22 50 22 | 5d 29 0a 28 64 65 66 76 |ne." "P"|]).(defv|
|00005090| 61 72 20 69 6e 74 65 72 | 70 72 6f 67 72 61 6d 2d |ar inter|program-|
|000050a0| 63 75 74 2d 66 75 6e 63 | 74 69 6f 6e 20 6e 69 6c |cut-func|tion nil|
|000050b0| 20 22 5c 0a 46 75 6e 63 | 74 69 6f 6e 20 74 6f 20 | "\.Func|tion to |
|000050c0| 63 61 6c 6c 20 74 6f 20 | 6d 61 6b 65 20 61 20 6b |call to |make a k|
|000050d0| 69 6c 6c 65 64 20 72 65 | 67 69 6f 6e 20 61 76 61 |illed re|gion ava|
|000050e0| 69 6c 61 62 6c 65 20 74 | 6f 20 6f 74 68 65 72 20 |ilable t|o other |
|000050f0| 70 72 6f 67 72 61 6d 73 | 2e 0a 0a 4d 6f 73 74 20 |programs|...Most |
|00005100| 77 69 6e 64 6f 77 20 73 | 79 73 74 65 6d 73 20 70 |window s|ystems p|
|00005110| 72 6f 76 69 64 65 20 73 | 6f 6d 65 20 73 6f 72 74 |rovide s|ome sort|
|00005120| 20 6f 66 20 66 61 63 69 | 6c 69 74 79 20 66 6f 72 | of faci|lity for|
|00005130| 20 63 75 74 74 69 6e 67 | 20 61 6e 64 0a 70 61 73 | cutting| and.pas|
|00005140| 74 69 6e 67 20 74 65 78 | 74 20 62 65 74 77 65 65 |ting tex|t betwee|
|00005150| 6e 20 74 68 65 20 77 69 | 6e 64 6f 77 73 20 6f 66 |n the wi|ndows of|
|00005160| 20 64 69 66 66 65 72 65 | 6e 74 20 70 72 6f 67 72 | differe|nt progr|
|00005170| 61 6d 73 2e 0a 54 68 69 | 73 20 76 61 72 69 61 62 |ams..Thi|s variab|
|00005180| 6c 65 20 68 6f 6c 64 73 | 20 61 20 66 75 6e 63 74 |le holds| a funct|
|00005190| 69 6f 6e 20 74 68 61 74 | 20 45 6d 61 63 73 20 63 |ion that| Emacs c|
|000051a0| 61 6c 6c 73 20 77 68 65 | 6e 65 76 65 72 20 74 65 |alls whe|never te|
|000051b0| 78 74 0a 69 73 20 70 75 | 74 20 69 6e 20 74 68 65 |xt.is pu|t in the|
|000051c0| 20 6b 69 6c 6c 20 72 69 | 6e 67 2c 20 74 6f 20 6d | kill ri|ng, to m|
|000051d0| 61 6b 65 20 74 68 65 20 | 6e 65 77 20 6b 69 6c 6c |ake the |new kill|
|000051e0| 20 61 76 61 69 6c 61 62 | 6c 65 20 74 6f 20 6f 74 | availab|le to ot|
|000051f0| 68 65 72 0a 70 72 6f 67 | 72 61 6d 73 2e 0a 0a 54 |her.prog|rams...T|
|00005200| 68 65 20 66 75 6e 63 74 | 69 6f 6e 20 74 61 6b 65 |he funct|ion take|
|00005210| 73 20 6f 6e 65 20 6f 72 | 20 74 77 6f 20 61 72 67 |s one or| two arg|
|00005220| 75 6d 65 6e 74 73 2e 0a | 54 68 65 20 66 69 72 73 |uments..|The firs|
|00005230| 74 20 61 72 67 75 6d 65 | 6e 74 2c 20 54 45 58 54 |t argume|nt, TEXT|
|00005240| 2c 20 69 73 20 61 20 73 | 74 72 69 6e 67 20 63 6f |, is a s|tring co|
|00005250| 6e 74 61 69 6e 69 6e 67 | 0a 74 68 65 20 74 65 78 |ntaining|.the tex|
|00005260| 74 20 77 68 69 63 68 20 | 73 68 6f 75 6c 64 20 62 |t which |should b|
|00005270| 65 20 6d 61 64 65 20 61 | 76 61 69 6c 61 62 6c 65 |e made a|vailable|
|00005280| 2e 0a 54 68 65 20 73 65 | 63 6f 6e 64 2c 20 50 55 |..The se|cond, PU|
|00005290| 53 48 2c 20 69 66 20 6e | 6f 6e 2d 6e 69 6c 20 6d |SH, if n|on-nil m|
|000052a0| 65 61 6e 73 20 74 68 69 | 73 20 69 73 20 61 20 5c |eans thi|s is a \|
|000052b0| 22 6e 65 77 5c 22 20 6b | 69 6c 6c 3b 0a 6e 69 6c |"new\" k|ill;.nil|
|000052c0| 20 6d 65 61 6e 73 20 61 | 70 70 65 6e 64 69 6e 67 | means a|ppending|
|000052d0| 20 74 6f 20 61 6e 20 5c | 22 6f 6c 64 5c 22 20 6b | to an \|"old\" k|
|000052e0| 69 6c 6c 2e 22 29 0a 28 | 64 65 66 76 61 72 20 69 |ill.").(|defvar i|
|000052f0| 6e 74 65 72 70 72 6f 67 | 72 61 6d 2d 70 61 73 74 |nterprog|ram-past|
|00005300| 65 2d 66 75 6e 63 74 69 | 6f 6e 20 6e 69 6c 20 22 |e-functi|on nil "|
|00005310| 5c 0a 46 75 6e 63 74 69 | 6f 6e 20 74 6f 20 63 61 |\.Functi|on to ca|
|00005320| 6c 6c 20 74 6f 20 67 65 | 74 20 74 65 78 74 20 63 |ll to ge|t text c|
|00005330| 75 74 20 66 72 6f 6d 20 | 6f 74 68 65 72 20 70 72 |ut from |other pr|
|00005340| 6f 67 72 61 6d 73 2e 0a | 0a 4d 6f 73 74 20 77 69 |ograms..|.Most wi|
|00005350| 6e 64 6f 77 20 73 79 73 | 74 65 6d 73 20 70 72 6f |ndow sys|tems pro|
|00005360| 76 69 64 65 20 73 6f 6d | 65 20 73 6f 72 74 20 6f |vide som|e sort o|
|00005370| 66 20 66 61 63 69 6c 69 | 74 79 20 66 6f 72 20 63 |f facili|ty for c|
|00005380| 75 74 74 69 6e 67 20 61 | 6e 64 0a 70 61 73 74 69 |utting a|nd.pasti|
|00005390| 6e 67 20 74 65 78 74 20 | 62 65 74 77 65 65 6e 20 |ng text |between |
|000053a0| 74 68 65 20 77 69 6e 64 | 6f 77 73 20 6f 66 20 64 |the wind|ows of d|
|000053b0| 69 66 66 65 72 65 6e 74 | 20 70 72 6f 67 72 61 6d |ifferent| program|
|000053c0| 73 2e 0a 54 68 69 73 20 | 76 61 72 69 61 62 6c 65 |s..This |variable|
|000053d0| 20 68 6f 6c 64 73 20 61 | 20 66 75 6e 63 74 69 6f | holds a| functio|
|000053e0| 6e 20 74 68 61 74 20 45 | 6d 61 63 73 20 63 61 6c |n that E|macs cal|
|000053f0| 6c 73 20 74 6f 20 6f 62 | 74 61 69 6e 0a 74 65 78 |ls to ob|tain.tex|
|00005400| 74 20 74 68 61 74 20 6f | 74 68 65 72 20 70 72 6f |t that o|ther pro|
|00005410| 67 72 61 6d 73 20 68 61 | 76 65 20 70 72 6f 76 69 |grams ha|ve provi|
|00005420| 64 65 64 20 66 6f 72 20 | 70 61 73 74 69 6e 67 2e |ded for |pasting.|
|00005430| 0a 0a 54 68 65 20 66 75 | 6e 63 74 69 6f 6e 20 73 |..The fu|nction s|
|00005440| 68 6f 75 6c 64 20 62 65 | 20 63 61 6c 6c 65 64 20 |hould be| called |
|00005450| 77 69 74 68 20 6e 6f 20 | 61 72 67 75 6d 65 6e 74 |with no |argument|
|00005460| 73 2e 20 20 49 66 20 74 | 68 65 20 66 75 6e 63 74 |s. If t|he funct|
|00005470| 69 6f 6e 0a 72 65 74 75 | 72 6e 73 20 6e 69 6c 2c |ion.retu|rns nil,|
|00005480| 20 74 68 65 6e 20 6e 6f | 20 6f 74 68 65 72 20 70 | then no| other p|
|00005490| 72 6f 67 72 61 6d 20 68 | 61 73 20 70 72 6f 76 69 |rogram h|as provi|
|000054a0| 64 65 64 20 73 75 63 68 | 20 74 65 78 74 2c 20 61 |ded such| text, a|
|000054b0| 6e 64 20 74 68 65 20 74 | 6f 70 0a 6f 66 20 74 68 |nd the t|op.of th|
|000054c0| 65 20 45 6d 61 63 73 20 | 6b 69 6c 6c 20 72 69 6e |e Emacs |kill rin|
|000054d0| 67 20 73 68 6f 75 6c 64 | 20 62 65 20 75 73 65 64 |g should| be used|
|000054e0| 2e 20 20 49 66 20 74 68 | 65 20 66 75 6e 63 74 69 |. If th|e functi|
|000054f0| 6f 6e 20 72 65 74 75 72 | 6e 73 20 61 0a 73 74 72 |on retur|ns a.str|
|00005500| 69 6e 67 2c 20 74 68 61 | 74 20 73 74 72 69 6e 67 |ing, tha|t string|
|00005510| 20 73 68 6f 75 6c 64 20 | 62 65 20 70 75 74 20 69 | should |be put i|
|00005520| 6e 20 74 68 65 20 6b 69 | 6c 6c 20 72 69 6e 67 20 |n the ki|ll ring |
|00005530| 61 73 20 74 68 65 20 6c | 61 74 65 73 74 20 6b 69 |as the l|atest ki|
|00005540| 6c 6c 2e 0a 0a 4e 6f 74 | 65 20 74 68 61 74 20 74 |ll...Not|e that t|
|00005550| 68 65 20 66 75 6e 63 74 | 69 6f 6e 20 73 68 6f 75 |he funct|ion shou|
|00005560| 6c 64 20 72 65 74 75 72 | 6e 20 61 20 73 74 72 69 |ld retur|n a stri|
|00005570| 6e 67 20 6f 6e 6c 79 20 | 69 66 20 61 20 70 72 6f |ng only |if a pro|
|00005580| 67 72 61 6d 20 6f 74 68 | 65 72 0a 74 68 61 6e 20 |gram oth|er.than |
|00005590| 45 6d 61 63 73 20 68 61 | 73 20 70 72 6f 76 69 64 |Emacs ha|s provid|
|000055a0| 65 64 20 61 20 73 74 72 | 69 6e 67 20 66 6f 72 20 |ed a str|ing for |
|000055b0| 70 61 73 74 69 6e 67 3b | 20 69 66 20 45 6d 61 63 |pasting;| if Emac|
|000055c0| 73 20 70 72 6f 76 69 64 | 65 64 20 74 68 65 0a 6d |s provid|ed the.m|
|000055d0| 6f 73 74 20 72 65 63 65 | 6e 74 20 73 74 72 69 6e |ost rece|nt strin|
|000055e0| 67 2c 20 74 68 65 20 66 | 75 6e 63 74 69 6f 6e 20 |g, the f|unction |
|000055f0| 73 68 6f 75 6c 64 20 72 | 65 74 75 72 6e 20 6e 69 |should r|eturn ni|
|00005600| 6c 2e 20 20 49 66 20 69 | 74 20 69 73 0a 64 69 66 |l. If i|t is.dif|
|00005610| 66 69 63 75 6c 74 20 74 | 6f 20 74 65 6c 6c 20 77 |ficult t|o tell w|
|00005620| 68 65 74 68 65 72 20 45 | 6d 61 63 73 20 6f 72 20 |hether E|macs or |
|00005630| 73 6f 6d 65 20 6f 74 68 | 65 72 20 70 72 6f 67 72 |some oth|er progr|
|00005640| 61 6d 20 70 72 6f 76 69 | 64 65 64 20 74 68 65 0a |am provi|ded the.|
|00005650| 63 75 72 72 65 6e 74 20 | 73 74 72 69 6e 67 2c 20 |current |string, |
|00005660| 69 74 20 69 73 20 70 72 | 6f 62 61 62 6c 79 20 67 |it is pr|obably g|
|00005670| 6f 6f 64 20 65 6e 6f 75 | 67 68 20 74 6f 20 72 65 |ood enou|gh to re|
|00005680| 74 75 72 6e 20 6e 69 6c | 20 69 66 20 74 68 65 20 |turn nil| if the |
|00005690| 73 74 72 69 6e 67 0a 69 | 73 20 65 71 75 61 6c 20 |string.i|s equal |
|000056a0| 28 61 63 63 6f 72 64 69 | 6e 67 20 74 6f 20 60 73 |(accordi|ng to `s|
|000056b0| 74 72 69 6e 67 3d 27 29 | 20 74 6f 20 74 68 65 20 |tring=')| to the |
|000056c0| 6c 61 73 74 20 74 65 78 | 74 20 45 6d 61 63 73 20 |last tex|t Emacs |
|000056d0| 70 72 6f 76 69 64 65 64 | 2e 22 29 0a 28 64 65 66 |provided|.").(def|
|000056e0| 76 61 72 20 6b 69 6c 6c | 2d 72 69 6e 67 20 6e 69 |var kill|-ring ni|
|000056f0| 6c 20 22 5c 0a 4c 69 73 | 74 20 6f 66 20 6b 69 6c |l "\.Lis|t of kil|
|00005700| 6c 65 64 20 74 65 78 74 | 20 73 65 71 75 65 6e 63 |led text| sequenc|
|00005710| 65 73 2e 0a 53 69 6e 63 | 65 20 74 68 65 20 6b 69 |es..Sinc|e the ki|
|00005720| 6c 6c 20 72 69 6e 67 20 | 69 73 20 73 75 70 70 6f |ll ring |is suppo|
|00005730| 73 65 64 20 74 6f 20 69 | 6e 74 65 72 61 63 74 20 |sed to i|nteract |
|00005740| 6e 69 63 65 6c 79 20 77 | 69 74 68 20 63 75 74 2d |nicely w|ith cut-|
|00005750| 61 6e 64 2d 70 61 73 74 | 65 0a 66 61 63 69 6c 69 |and-past|e.facili|
|00005760| 74 69 65 73 20 6f 66 66 | 65 72 65 64 20 62 79 20 |ties off|ered by |
|00005770| 77 69 6e 64 6f 77 20 73 | 79 73 74 65 6d 73 2c 20 |window s|ystems, |
|00005780| 75 73 65 20 6f 66 20 74 | 68 69 73 20 76 61 72 69 |use of t|his vari|
|00005790| 61 62 6c 65 20 73 68 6f | 75 6c 64 0a 69 6e 74 65 |able sho|uld.inte|
|000057a0| 72 61 63 74 20 6e 69 63 | 65 6c 79 20 77 69 74 68 |ract nic|ely with|
|000057b0| 20 60 69 6e 74 65 72 70 | 72 6f 67 72 61 6d 2d 63 | `interp|rogram-c|
|000057c0| 75 74 2d 66 75 6e 63 74 | 69 6f 6e 27 20 61 6e 64 |ut-funct|ion' and|
|000057d0| 0a 60 69 6e 74 65 72 70 | 72 6f 67 72 61 6d 2d 70 |.`interp|rogram-p|
|000057e0| 61 73 74 65 2d 66 75 6e | 63 74 69 6f 6e 27 2e 20 |aste-fun|ction'. |
|000057f0| 20 54 68 65 20 66 75 6e | 63 74 69 6f 6e 73 20 60 | The fun|ctions `|
|00005800| 6b 69 6c 6c 2d 6e 65 77 | 27 2c 0a 60 6b 69 6c 6c |kill-new|',.`kill|
|00005810| 2d 61 70 70 65 6e 64 27 | 2c 20 61 6e 64 20 60 63 |-append'|, and `c|
|00005820| 75 72 72 65 6e 74 2d 6b | 69 6c 6c 27 20 61 72 65 |urrent-k|ill' are|
|00005830| 20 73 75 70 70 6f 73 65 | 64 20 74 6f 20 69 6d 70 | suppose|d to imp|
|00005840| 6c 65 6d 65 6e 74 20 74 | 68 69 73 0a 69 6e 74 65 |lement t|his.inte|
|00005850| 72 61 63 74 69 6f 6e 3b | 20 79 6f 75 20 6d 61 79 |raction;| you may|
|00005860| 20 77 61 6e 74 20 74 6f | 20 75 73 65 20 74 68 65 | want to| use the|
|00005870| 6d 20 69 6e 73 74 65 61 | 64 20 6f 66 20 6d 61 6e |m instea|d of man|
|00005880| 69 70 75 6c 61 74 69 6e | 67 20 74 68 65 20 6b 69 |ipulatin|g the ki|
|00005890| 6c 6c 0a 72 69 6e 67 20 | 64 69 72 65 63 74 6c 79 |ll.ring |directly|
|000058a0| 2e 22 29 0a 28 64 65 66 | 63 6f 6e 73 74 20 6b 69 |.").(def|const ki|
|000058b0| 6c 6c 2d 72 69 6e 67 2d | 6d 61 78 20 33 30 20 22 |ll-ring-|max 30 "|
|000058c0| 5c 0a 2a 4d 61 78 69 6d | 75 6d 20 6c 65 6e 67 74 |\.*Maxim|um lengt|
|000058d0| 68 20 6f 66 20 6b 69 6c | 6c 20 72 69 6e 67 20 62 |h of kil|l ring b|
|000058e0| 65 66 6f 72 65 20 6f 6c | 64 65 73 74 20 65 6c 65 |efore ol|dest ele|
|000058f0| 6d 65 6e 74 73 20 61 72 | 65 20 74 68 72 6f 77 6e |ments ar|e thrown|
|00005900| 20 61 77 61 79 2e 22 29 | 0a 28 64 65 66 76 61 72 | away.")|.(defvar|
|00005910| 20 6b 69 6c 6c 2d 72 69 | 6e 67 2d 79 61 6e 6b 2d | kill-ri|ng-yank-|
|00005920| 70 6f 69 6e 74 65 72 20 | 6e 69 6c 20 22 5c 0a 54 |pointer |nil "\.T|
|00005930| 68 65 20 74 61 69 6c 20 | 6f 66 20 74 68 65 20 6b |he tail |of the k|
|00005940| 69 6c 6c 20 72 69 6e 67 | 20 77 68 6f 73 65 20 63 |ill ring| whose c|
|00005950| 61 72 20 69 73 20 74 68 | 65 20 6c 61 73 74 20 74 |ar is th|e last t|
|00005960| 68 69 6e 67 20 79 61 6e | 6b 65 64 2e 22 29 0a 28 |hing yan|ked.").(|
|00005970| 64 65 66 61 6c 69 61 73 | 20 27 6b 69 6c 6c 2d 6e |defalias| 'kill-n|
|00005980| 65 77 20 23 5b 28 73 74 | 72 69 6e 67 29 20 22 08 |ew #[(st|ring) ".|
|00005990| 09 42 89 11 47 5c 6e 56 | 83 12 00 5c 6e 53 09 9b |.B..G\nV|...\nS..|
|000059a0| c3 a1 88 09 14 0d 85 1c | 00 0d 08 c6 5c 22 87 22 |........|....\"."|
|000059b0| 20 5b 73 74 72 69 6e 67 | 20 6b 69 6c 6c 2d 72 69 | [string| kill-ri|
|000059c0| 6e 67 20 6b 69 6c 6c 2d | 72 69 6e 67 2d 6d 61 78 |ng kill-|ring-max|
|000059d0| 20 6e 69 6c 20 6b 69 6c | 6c 2d 72 69 6e 67 2d 79 | nil kil|l-ring-y|
|000059e0| 61 6e 6b 2d 70 6f 69 6e | 74 65 72 20 69 6e 74 65 |ank-poin|ter inte|
|000059f0| 72 70 72 6f 67 72 61 6d | 2d 63 75 74 2d 66 75 6e |rprogram|-cut-fun|
|00005a00| 63 74 69 6f 6e 20 74 5d | 20 34 20 22 5c 0a 4d 61 |ction t]| 4 "\.Ma|
|00005a10| 6b 65 20 53 54 52 49 4e | 47 20 74 68 65 20 6c 61 |ke STRIN|G the la|
|00005a20| 74 65 73 74 20 6b 69 6c | 6c 20 69 6e 20 74 68 65 |test kil|l in the|
|00005a30| 20 6b 69 6c 6c 20 72 69 | 6e 67 2e 0a 53 65 74 20 | kill ri|ng..Set |
|00005a40| 74 68 65 20 6b 69 6c 6c | 2d 72 69 6e 67 2d 79 61 |the kill|-ring-ya|
|00005a50| 6e 6b 20 70 6f 69 6e 74 | 65 72 20 74 6f 20 70 6f |nk point|er to po|
|00005a60| 69 6e 74 20 74 6f 20 69 | 74 2e 0a 49 66 20 60 69 |int to i|t..If `i|
|00005a70| 6e 74 65 72 70 72 6f 67 | 72 61 6d 2d 63 75 74 2d |nterprog|ram-cut-|
|00005a80| 66 75 6e 63 74 69 6f 6e | 27 20 69 73 20 6e 6f 6e |function|' is non|
|00005a90| 2d 6e 69 6c 2c 20 61 70 | 70 6c 79 20 69 74 20 74 |-nil, ap|ply it t|
|00005aa0| 6f 20 53 54 52 49 4e 47 | 2e 22 5d 29 0a 28 64 65 |o STRING|."]).(de|
|00005ab0| 66 61 6c 69 61 73 20 27 | 6b 69 6c 6c 2d 61 70 70 |falias '|kill-app|
|00005ac0| 65 6e 64 20 23 5b 28 73 | 74 72 69 6e 67 20 62 65 |end #[(s|tring be|
|00005ad0| 66 6f 72 65 2d 70 29 20 | 22 08 09 83 0c 00 5c 6e |fore-p) |".....\n|
|00005ae0| 08 40 50 82 10 00 08 40 | 5c 6e 50 a0 88 0b 85 1a |.@P....@|\nP.....|
|00005af0| 00 0b 08 40 21 87 22 20 | 5b 6b 69 6c 6c 2d 72 69 |...@!." |[kill-ri|
|00005b00| 6e 67 20 62 65 66 6f 72 | 65 2d 70 20 73 74 72 69 |ng befor|e-p stri|
|00005b10| 6e 67 20 69 6e 74 65 72 | 70 72 6f 67 72 61 6d 2d |ng inter|program-|
|00005b20| 63 75 74 2d 66 75 6e 63 | 74 69 6f 6e 5d 20 33 20 |cut-func|tion] 3 |
|00005b30| 22 5c 0a 41 70 70 65 6e | 64 20 53 54 52 49 4e 47 |"\.Appen|d STRING|
|00005b40| 20 74 6f 20 74 68 65 20 | 65 6e 64 20 6f 66 20 74 | to the |end of t|
|00005b50| 68 65 20 6c 61 74 65 73 | 74 20 6b 69 6c 6c 20 69 |he lates|t kill i|
|00005b60| 6e 20 74 68 65 20 6b 69 | 6c 6c 20 72 69 6e 67 2e |n the ki|ll ring.|
|00005b70| 0a 49 66 20 42 45 46 4f | 52 45 2d 50 20 69 73 20 |.If BEFO|RE-P is |
|00005b80| 6e 6f 6e 2d 6e 69 6c 2c | 20 70 72 65 70 65 6e 64 |non-nil,| prepend|
|00005b90| 20 53 54 52 49 4e 47 20 | 74 6f 20 74 68 65 20 6b | STRING |to the k|
|00005ba0| 69 6c 6c 2e 0a 49 66 20 | 60 69 6e 74 65 72 70 72 |ill..If |`interpr|
|00005bb0| 6f 67 72 61 6d 2d 63 75 | 74 2d 66 75 6e 63 74 69 |ogram-cu|t-functi|
|00005bc0| 6f 6e 27 20 69 73 20 73 | 65 74 2c 20 70 61 73 73 |on' is s|et, pass|
|00005bd0| 20 74 68 65 20 72 65 73 | 75 6c 74 69 6e 67 20 6b | the res|ulting k|
|00005be0| 69 6c 6c 20 74 6f 0a 69 | 74 2e 22 5d 29 0a 28 64 |ill to.i|t."]).(d|
|00005bf0| 65 66 61 6c 69 61 73 20 | 27 63 75 72 72 65 6e 74 |efalias |'current|
|00005c00| 2d 6b 69 6c 6c 20 23 5b | 28 6e 20 26 6f 70 74 69 |-kill #[|(n &opti|
|00005c10| 6f 6e 61 6c 20 64 6f 2d | 6e 6f 74 2d 6d 6f 76 65 |onal do-|not-move|
|00005c20| 29 20 22 08 c1 55 85 0c | 00 5c 6e 85 0c 00 5c 6e |) "..U..|.\n...\n|
|00005c30| 20 89 1b 83 1c 00 c4 1d | c6 0b 21 88 29 0b 82 47 | .......|..!.)..G|
|00005c40| 00 0e 07 84 25 00 c8 c9 | 21 88 0e 07 47 1e 5c 6e |....%...|!...G.\n|
|00005c50| 08 0e 5c 6e 0e 0b 47 5a | 5c 5c 0e 5c 6e a6 0e 07 |..\n..GZ|\\.\n...|
|00005c60| 9b 1e 0c 0e 0d 84 43 00 | 0e 0c 16 0b 0e 0c 40 2a |......C.|......@*|
|00005c70| 29 87 22 20 5b 6e 20 30 | 20 69 6e 74 65 72 70 72 |)." [n 0| interpr|
|00005c80| 6f 67 72 61 6d 2d 70 61 | 73 74 65 2d 66 75 6e 63 |ogram-pa|ste-func|
|00005c90| 74 69 6f 6e 20 69 6e 74 | 65 72 70 72 6f 67 72 61 |tion int|erprogra|
|00005ca0| 6d 2d 70 61 73 74 65 20 | 6e 69 6c 20 69 6e 74 65 |m-paste |nil inte|
|00005cb0| 72 70 72 6f 67 72 61 6d | 2d 63 75 74 2d 66 75 6e |rprogram|-cut-fun|
|00005cc0| 63 74 69 6f 6e 20 6b 69 | 6c 6c 2d 6e 65 77 20 6b |ction ki|ll-new k|
|00005cd0| 69 6c 6c 2d 72 69 6e 67 | 20 65 72 72 6f 72 20 22 |ill-ring| error "|
|00005ce0| 4b 69 6c 6c 20 72 69 6e | 67 20 69 73 20 65 6d 70 |Kill rin|g is emp|
|00005cf0| 74 79 22 20 6c 65 6e 67 | 74 68 20 6b 69 6c 6c 2d |ty" leng|th kill-|
|00005d00| 72 69 6e 67 2d 79 61 6e | 6b 2d 70 6f 69 6e 74 65 |ring-yan|k-pointe|
|00005d10| 72 20 41 52 47 74 68 2d | 6b 69 6c 6c 2d 65 6c 65 |r ARGth-|kill-ele|
|00005d20| 6d 65 6e 74 20 64 6f 2d | 6e 6f 74 2d 6d 6f 76 65 |ment do-|not-move|
|00005d30| 5d 20 34 20 22 5c 0a 52 | 6f 74 61 74 65 20 74 68 |] 4 "\.R|otate th|
|00005d40| 65 20 79 61 6e 6b 69 6e | 67 20 70 6f 69 6e 74 20 |e yankin|g point |
|00005d50| 62 79 20 4e 20 70 6c 61 | 63 65 73 2c 20 61 6e 64 |by N pla|ces, and|
|00005d60| 20 74 68 65 6e 20 72 65 | 74 75 72 6e 20 74 68 61 | then re|turn tha|
|00005d70| 74 20 6b 69 6c 6c 2e 0a | 49 66 20 4e 20 69 73 20 |t kill..|If N is |
|00005d80| 7a 65 72 6f 2c 20 60 69 | 6e 74 65 72 70 72 6f 67 |zero, `i|nterprog|
|00005d90| 72 61 6d 2d 70 61 73 74 | 65 2d 66 75 6e 63 74 69 |ram-past|e-functi|
|00005da0| 6f 6e 27 20 69 73 20 73 | 65 74 2c 20 61 6e 64 20 |on' is s|et, and |
|00005db0| 63 61 6c 6c 69 6e 67 20 | 69 74 0a 72 65 74 75 72 |calling |it.retur|
|00005dc0| 6e 73 20 61 20 73 74 72 | 69 6e 67 2c 20 74 68 65 |ns a str|ing, the|
|00005dd0| 6e 20 74 68 61 74 20 73 | 74 72 69 6e 67 20 69 73 |n that s|tring is|
|00005de0| 20 61 64 64 65 64 20 74 | 6f 20 74 68 65 20 66 72 | added t|o the fr|
|00005df0| 6f 6e 74 20 6f 66 20 74 | 68 65 0a 6b 69 6c 6c 20 |ont of t|he.kill |
|00005e00| 72 69 6e 67 20 61 6e 64 | 20 72 65 74 75 72 6e 65 |ring and| returne|
|00005e10| 64 20 61 73 20 74 68 65 | 20 6c 61 74 65 73 74 20 |d as the| latest |
|00005e20| 6b 69 6c 6c 2e 0a 49 66 | 20 6f 70 74 69 6f 6e 61 |kill..If| optiona|
|00005e30| 6c 20 61 72 67 20 44 4f | 2d 4e 4f 54 2d 4d 4f 56 |l arg DO|-NOT-MOV|
|00005e40| 45 20 69 73 20 6e 6f 6e | 2d 6e 69 6c 2c 20 74 68 |E is non|-nil, th|
|00005e50| 65 6e 20 64 6f 6e 27 74 | 20 61 63 74 75 61 6c 6c |en don't| actuall|
|00005e60| 79 20 6d 6f 76 65 20 74 | 68 65 20 0a 79 61 6e 6b |y move t|he .yank|
|00005e70| 69 6e 67 20 70 6f 69 6e | 74 3b 20 6a 75 73 74 20 |ing poin|t; just |
|00005e80| 72 65 74 75 72 6e 20 74 | 68 65 20 4e 74 68 20 6b |return t|he Nth k|
|00005e90| 69 6c 6c 20 66 6f 72 77 | 61 72 64 2e 22 5d 29 0a |ill forw|ard."]).|
|00005ea0| 28 64 65 66 61 6c 69 61 | 73 20 27 6b 69 6c 6c 2d |(defalia|s 'kill-|
|00005eb0| 72 65 67 69 6f 6e 20 23 | 5b 28 62 65 67 20 65 6e |region #|[(beg en|
|00005ec0| 64 29 20 22 08 83 0c 00 | c1 5c 6e 0b 5c 22 88 c4 |d) "....|.\n.\"..|
|00005ed0| 20 87 0d c6 3d 84 54 00 | 0e 07 c8 3d 84 54 00 5c | ...=.T.|...=.T.\|
|00005ee0| 6e 0b 3d 84 54 00 5c 6e | 0b 5d 5c 6e 0b 5e 5a c9 |n.=.T.\n|.]\n.^Z.|
|00005ef0| 5c 5c 0d ca 1e 0b 1e 0c | 1e 0d 5c 6e 0b 7c 88 0d |\\......|..\n.|..|
|00005f00| 89 16 0b 40 40 3b 84 47 | 00 0e 0b 41 89 16 0b 82 |...@@;.G|...A....|
|00005f10| 38 00 ce 0e 0b 40 40 21 | 88 c8 89 16 0f 2b 87 c1 |8....@@!|.....+..|
|00005f20| 5c 6e 0b 5c 22 88 5c 6e | 0b 7c 87 22 20 5b 62 75 |\n.\".\n|.|." [bu|
|00005f30| 66 66 65 72 2d 72 65 61 | 64 2d 6f 6e 6c 79 20 63 |ffer-rea|d-only c|
|00005f40| 6f 70 79 2d 72 65 67 69 | 6f 6e 2d 61 73 2d 6b 69 |opy-regi|on-as-ki|
|00005f50| 6c 6c 20 62 65 67 20 65 | 6e 64 20 62 61 72 66 2d |ll beg e|nd barf-|
|00005f60| 69 66 2d 62 75 66 66 65 | 72 2d 72 65 61 64 2d 6f |if-buffe|r-read-o|
|00005f70| 6e 6c 79 20 62 75 66 66 | 65 72 2d 75 6e 64 6f 2d |nly buff|er-undo-|
|00005f80| 6c 69 73 74 20 74 20 6c | 61 73 74 2d 63 6f 6d 6d |list t l|ast-comm|
|00005f90| 61 6e 64 20 6b 69 6c 6c | 2d 72 65 67 69 6f 6e 20 |and kill|-region |
|00005fa0| 31 30 30 20 6e 69 6c 20 | 74 61 69 6c 20 6f 6c 64 |100 nil |tail old|
|00005fb0| 2d 6c 69 73 74 20 75 6e | 64 6f 2d 73 74 72 6f 6e |-list un|do-stron|
|00005fc0| 67 2d 6c 69 6d 69 74 20 | 6b 69 6c 6c 2d 6e 65 77 |g-limit |kill-new|
|00005fd0| 20 74 68 69 73 2d 63 6f | 6d 6d 61 6e 64 5d 20 34 | this-co|mmand] 4|
|00005fe0| 20 22 5c 0a 4b 69 6c 6c | 20 62 65 74 77 65 65 6e | "\.Kill| between|
|00005ff0| 20 70 6f 69 6e 74 20 61 | 6e 64 20 6d 61 72 6b 2e | point a|nd mark.|
|00006000| 0a 54 68 65 20 74 65 78 | 74 20 69 73 20 64 65 6c |.The tex|t is del|
|00006010| 65 74 65 64 20 62 75 74 | 20 73 61 76 65 64 20 69 |eted but| saved i|
|00006020| 6e 20 74 68 65 20 6b 69 | 6c 6c 20 72 69 6e 67 2e |n the ki|ll ring.|
|00006030| 0a 54 68 65 20 63 6f 6d | 6d 61 6e 64 20 5c 5c 5b |.The com|mand \\[|
|00006040| 79 61 6e 6b 5d 20 63 61 | 6e 20 72 65 74 72 69 65 |yank] ca|n retrie|
|00006050| 76 65 20 69 74 20 66 72 | 6f 6d 20 74 68 65 72 65 |ve it fr|om there|
|00006060| 2e 0a 28 49 66 20 79 6f | 75 20 77 61 6e 74 20 74 |..(If yo|u want t|
|00006070| 6f 20 6b 69 6c 6c 20 61 | 6e 64 20 74 68 65 6e 20 |o kill a|nd then |
|00006080| 79 61 6e 6b 20 69 6d 6d | 65 64 69 61 74 65 6c 79 |yank imm|ediately|
|00006090| 2c 20 75 73 65 20 5c 5c | 5b 63 6f 70 79 2d 72 65 |, use \\|[copy-re|
|000060a0| 67 69 6f 6e 2d 61 73 2d | 6b 69 6c 6c 5d 2e 29 0a |gion-as-|kill].).|
|000060b0| 49 66 20 74 68 65 20 62 | 75 66 66 65 72 20 69 73 |If the b|uffer is|
|000060c0| 20 72 65 61 64 2d 6f 6e | 6c 79 2c 20 45 6d 61 63 | read-on|ly, Emac|
|000060d0| 73 20 77 69 6c 6c 20 62 | 65 65 70 20 61 6e 64 20 |s will b|eep and |
|000060e0| 72 65 66 72 61 69 6e 20 | 66 72 6f 6d 20 64 65 6c |refrain |from del|
|000060f0| 65 74 69 6e 67 0a 74 68 | 65 20 74 65 78 74 2c 20 |eting.th|e text, |
|00006100| 62 75 74 20 70 75 74 20 | 74 68 65 20 74 65 78 74 |but put |the text|
|00006110| 20 69 6e 20 74 68 65 20 | 6b 69 6c 6c 20 72 69 6e | in the |kill rin|
|00006120| 67 20 61 6e 79 77 61 79 | 2e 20 20 54 68 69 73 20 |g anyway|. This |
|00006130| 6d 65 61 6e 73 20 74 68 | 61 74 0a 79 6f 75 20 63 |means th|at.you c|
|00006140| 61 6e 20 75 73 65 20 74 | 68 65 20 6b 69 6c 6c 69 |an use t|he killi|
|00006150| 6e 67 20 63 6f 6d 6d 61 | 6e 64 73 20 74 6f 20 63 |ng comma|nds to c|
|00006160| 6f 70 79 20 74 65 78 74 | 20 66 72 6f 6d 20 61 20 |opy text| from a |
|00006170| 72 65 61 64 2d 6f 6e 6c | 79 20 62 75 66 66 65 72 |read-onl|y buffer|
|00006180| 2e 0a 0a 54 68 69 73 20 | 69 73 20 74 68 65 20 70 |...This |is the p|
|00006190| 72 69 6d 69 74 69 76 65 | 20 66 6f 72 20 70 72 6f |rimitive| for pro|
|000061a0| 67 72 61 6d 73 20 74 6f | 20 6b 69 6c 6c 20 74 65 |grams to| kill te|
|000061b0| 78 74 20 28 61 73 20 6f | 70 70 6f 73 65 64 20 74 |xt (as o|pposed t|
|000061c0| 6f 20 64 65 6c 65 74 69 | 6e 67 20 69 74 29 2e 0a |o deleti|ng it)..|
|000061d0| 53 75 70 70 6c 79 20 74 | 77 6f 20 61 72 67 75 6d |Supply t|wo argum|
|000061e0| 65 6e 74 73 2c 20 63 68 | 61 72 61 63 74 65 72 20 |ents, ch|aracter |
|000061f0| 6e 75 6d 62 65 72 73 20 | 69 6e 64 69 63 61 74 69 |numbers |indicati|
|00006200| 6e 67 20 74 68 65 20 73 | 74 72 65 74 63 68 20 6f |ng the s|tretch o|
|00006210| 66 20 74 65 78 74 0a 20 | 74 6f 20 62 65 20 6b 69 |f text. |to be ki|
|00006220| 6c 6c 65 64 2e 0a 41 6e | 79 20 63 6f 6d 6d 61 6e |lled..An|y comman|
|00006230| 64 20 74 68 61 74 20 63 | 61 6c 6c 73 20 74 68 69 |d that c|alls thi|
|00006240| 73 20 66 75 6e 63 74 69 | 6f 6e 20 69 73 20 61 20 |s functi|on is a |
|00006250| 5c 22 6b 69 6c 6c 20 63 | 6f 6d 6d 61 6e 64 5c 22 |\"kill c|ommand\"|
|00006260| 2e 0a 49 66 20 74 68 65 | 20 70 72 65 76 69 6f 75 |..If the| previou|
|00006270| 73 20 63 6f 6d 6d 61 6e | 64 20 77 61 73 20 61 6c |s comman|d was al|
|00006280| 73 6f 20 61 20 6b 69 6c | 6c 20 63 6f 6d 6d 61 6e |so a kil|l comman|
|00006290| 64 2c 0a 74 68 65 20 74 | 65 78 74 20 6b 69 6c 6c |d,.the t|ext kill|
|000062a0| 65 64 20 74 68 69 73 20 | 74 69 6d 65 20 61 70 70 |ed this |time app|
|000062b0| 65 6e 64 73 20 74 6f 20 | 74 68 65 20 74 65 78 74 |ends to |the text|
|000062c0| 20 6b 69 6c 6c 65 64 20 | 6c 61 73 74 20 74 69 6d | killed |last tim|
|000062d0| 65 0a 74 6f 20 6d 61 6b | 65 20 6f 6e 65 20 65 6e |e.to mak|e one en|
|000062e0| 74 72 79 20 69 6e 20 74 | 68 65 20 6b 69 6c 6c 20 |try in t|he kill |
|000062f0| 72 69 6e 67 2e 22 20 22 | 72 22 5d 29 0a 28 64 65 |ring." "|r"]).(de|
|00006300| 66 61 6c 69 61 73 20 27 | 63 6f 70 79 2d 72 65 67 |falias '|copy-reg|
|00006310| 69 6f 6e 2d 61 73 2d 6b | 69 6c 6c 20 23 5b 28 62 |ion-as-k|ill #[(b|
|00006320| 65 67 20 65 6e 64 29 20 | 22 08 c1 3d 83 12 00 c2 |eg end) |"..=....|
|00006330| 0b 0c 7b 0c 0b 57 5c 22 | 88 82 18 00 c5 0b 0c 7b |..{..W\"|.......{|
|00006340| 21 88 c1 16 06 c7 87 22 | 20 5b 6c 61 73 74 2d 63 |!......"| [last-c|
|00006350| 6f 6d 6d 61 6e 64 20 6b | 69 6c 6c 2d 72 65 67 69 |ommand k|ill-regi|
|00006360| 6f 6e 20 6b 69 6c 6c 2d | 61 70 70 65 6e 64 20 62 |on kill-|append b|
|00006370| 65 67 20 65 6e 64 20 6b | 69 6c 6c 2d 6e 65 77 20 |eg end k|ill-new |
|00006380| 74 68 69 73 2d 63 6f 6d | 6d 61 6e 64 20 6e 69 6c |this-com|mand nil|
|00006390| 5d 20 34 20 22 5c 0a 53 | 61 76 65 20 74 68 65 20 |] 4 "\.S|ave the |
|000063a0| 72 65 67 69 6f 6e 20 61 | 73 20 69 66 20 6b 69 6c |region a|s if kil|
|000063b0| 6c 65 64 2c 20 62 75 74 | 20 64 6f 6e 27 74 20 6b |led, but| don't k|
|000063c0| 69 6c 6c 20 69 74 2e 0a | 49 66 20 60 69 6e 74 65 |ill it..|If `inte|
|000063d0| 72 70 72 6f 67 72 61 6d | 2d 63 75 74 2d 66 75 6e |rprogram|-cut-fun|
|000063e0| 63 74 69 6f 6e 27 20 69 | 73 20 6e 6f 6e 2d 6e 69 |ction' i|s non-ni|
|000063f0| 6c 2c 20 61 6c 73 6f 20 | 73 61 76 65 20 74 68 65 |l, also |save the|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.