home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 2: Applications / Linux Cubed Series 2 - Applications.iso / editors / emacs / xemacs / xemacs-1.006 / xemacs-1 / lib / xemacs-19.13 / lisp / prim / simple.elc < prev    next >
Emacs Compiled Lisp  |  1995-08-31  |  61.3 KB

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text


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

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



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 3b 45 4c 43 13 00 00 00 | 0a 3b 3b 3b 20 63 6f 6d |;ELC....|.;;; com|
|00000010| 70 69 6c 65 64 20 62 79 | 20 63 74 68 6f 6d 70 40 |piled by| cthomp@|
|00000020| 77 69 6c 6c 6f 77 2e 63 | 73 2e 75 69 75 63 2e 65 |willow.c|s.uiuc.e|
|00000030| 64 75 20 6f 6e 20 57 65 | 64 20 41 75 67 20 33 30 |du on We|d Aug 30|
|00000040| 20 31 39 3a 33 33 3a 35 | 39 20 31 39 39 35 0a 3b | 19:33:5|9 1995.;|
|00000050| 3b 3b 20 66 72 6f 6d 20 | 66 69 6c 65 20 2f 78 65 |;; from |file /xe|
|00000060| 6d 61 63 73 2f 78 65 6d | 61 63 73 2d 31 39 2e 31 |macs/xem|acs-19.1|
|00000070| 33 2d 72 65 6c 65 61 73 | 65 2f 65 64 69 74 6f 72 |3-releas|e/editor|
|00000080| 2f 6c 69 73 70 2f 70 72 | 69 6d 2f 73 69 6d 70 6c |/lisp/pr|im/simpl|
|00000090| 65 2e 65 6c 0a 3b 3b 3b | 20 65 6d 61 63 73 20 76 |e.el.;;;| emacs v|
|000000a0| 65 72 73 69 6f 6e 20 31 | 39 2e 31 33 20 58 45 6d |ersion 1|9.13 XEm|
|000000b0| 61 63 73 20 4c 75 63 69 | 64 2e 0a 3b 3b 3b 20 62 |acs Luci|d..;;; b|
|000000c0| 79 74 65 63 6f 6d 70 20 | 76 65 72 73 69 6f 6e 20 |ytecomp |version |
|000000d0| 32 2e 32 35 3b 20 31 2d | 53 65 70 2d 39 34 2e 0a |2.25; 1-|Sep-94..|
|000000e0| 3b 3b 3b 20 6f 70 74 69 | 6d 69 7a 61 74 69 6f 6e |;;; opti|mization|
|000000f0| 20 69 73 20 6f 6e 2e 0a | 3b 3b 3b 20 74 68 69 73 | is on..|;;; this|
|00000100| 20 66 69 6c 65 20 75 73 | 65 73 20 6f 70 63 6f 64 | file us|es opcod|
|00000110| 65 73 20 77 68 69 63 68 | 20 64 6f 20 6e 6f 74 20 |es which| do not |
|00000120| 65 78 69 73 74 20 69 6e | 20 45 6d 61 63 73 20 31 |exist in| Emacs 1|
|00000130| 38 2e 0a 0a 28 69 66 20 | 28 61 6e 64 20 28 62 6f |8...(if |(and (bo|
|00000140| 75 6e 64 70 20 27 65 6d | 61 63 73 2d 76 65 72 73 |undp 'em|acs-vers|
|00000150| 69 6f 6e 29 0a 09 20 28 | 6f 72 20 28 61 6e 64 20 |ion).. (|or (and |
|00000160| 28 62 6f 75 6e 64 70 20 | 27 65 70 6f 63 68 3a 3a |(boundp |'epoch::|
|00000170| 76 65 72 73 69 6f 6e 29 | 20 65 70 6f 63 68 3a 3a |version)| epoch::|
|00000180| 76 65 72 73 69 6f 6e 29 | 0a 09 20 20 20 20 20 28 |version)|.. (|
|00000190| 73 74 72 69 6e 67 2d 6c | 65 73 73 70 20 65 6d 61 |string-l|essp ema|
|000001a0| 63 73 2d 76 65 72 73 69 | 6f 6e 20 22 31 39 22 29 |cs-versi|on "19")|
|000001b0| 29 29 0a 20 20 20 20 28 | 65 72 72 6f 72 20 22 54 |)). (|error "T|
|000001c0| 68 69 73 20 66 69 6c 65 | 20 77 61 73 20 63 6f 6d |his file| was com|
|000001d0| 70 69 6c 65 64 20 66 6f | 72 20 45 6d 61 63 73 20 |piled fo|r Emacs |
|000001e0| 31 39 2e 22 29 29 0a 0a | 28 66 73 65 74 20 27 6f |19."))..|(fset 'o|
|000001f0| 70 65 6e 2d 6c 69 6e 65 | 20 23 5b 28 61 72 67 29 |pen-line| #[(arg)|
|00000200| 20 22 c0 19 c0 3f ad 85 | 6e ad 82 6f 3f 89 1a ab | "...?..|n..o?...|
|00000210| 8c 0b c4 3d ac 84 60 0b | 42 13 c5 75 88 8a 0e 06 |...=..`.|B..u....|
|00000220| c7 56 ab 92 09 ab 84 0e | 08 63 88 c9 63 88 0e 06 |.V......|.c..c...|
|00000230| 53 89 16 06 aa 6a 29 c0 | 7f 88 5c 6e ad 82 ca 75 |S....j).|..\n...u|
|00000240| 2a 87 22 20 5b 6e 69 6c | 20 64 6f 2d 66 69 6c 6c |*." [nil| do-fill|
|00000250| 2d 70 72 65 66 69 78 20 | 66 6c 61 67 20 62 75 66 |-prefix |flag buf|
|00000260| 66 65 72 2d 75 6e 64 6f | 2d 6c 69 73 74 20 74 20 |fer-undo|-list t |
|00000270| 2d 31 20 61 72 67 20 30 | 20 66 69 6c 6c 2d 70 72 |-1 arg 0| fill-pr|
|00000280| 65 66 69 78 20 31 30 20 | 31 5d 20 33 20 22 5c 0a |efix 10 |1] 3 "\.|
|00000290| 49 6e 73 65 72 74 20 61 | 20 6e 65 77 6c 69 6e 65 |Insert a| newline|
|000002a0| 20 61 6e 64 20 6c 65 61 | 76 65 20 70 6f 69 6e 74 | and lea|ve point|
|000002b0| 20 62 65 66 6f 72 65 20 | 69 74 2e 0a 57 69 74 68 | before |it..With|
|000002c0| 20 61 72 67 20 4e 2c 20 | 69 6e 73 65 72 74 20 4e | arg N, |insert N|
|000002d0| 20 6e 65 77 6c 69 6e 65 | 73 2e 22 20 22 2a 70 22 | newline|s." "*p"|
|000002e0| 5d 29 0a 28 66 73 65 74 | 20 27 73 70 6c 69 74 2d |]).(fset| 'split-|
|000002f0| 6c 69 6e 65 20 23 5b 6e | 69 6c 20 22 c0 c1 77 88 |line #[n|il "..w.|
|00000300| 69 60 1a 1b c4 63 88 c5 | 0b c6 5c 22 88 5c 6e 62 |i`...c..|..\".\nb|
|00000310| 2a 87 22 20 5b 22 20 09 | 22 20 6e 69 6c 20 70 6f |*." [" .|" nil po|
|00000320| 73 20 63 6f 6c 20 31 30 | 20 69 6e 64 65 6e 74 2d |s col 10| indent-|
|00000330| 74 6f 20 30 5d 20 33 20 | 22 5c 0a 53 70 6c 69 74 |to 0] 3 |"\.Split|
|00000340| 20 63 75 72 72 65 6e 74 | 20 6c 69 6e 65 2c 20 6d | current| line, m|
|00000350| 6f 76 69 6e 67 20 70 6f | 72 74 69 6f 6e 20 62 65 |oving po|rtion be|
|00000360| 79 6f 6e 64 20 70 6f 69 | 6e 74 20 76 65 72 74 69 |yond poi|nt verti|
|00000370| 63 61 6c 6c 79 20 64 6f | 77 6e 2e 22 20 22 2a 22 |cally do|wn." "*"|
|00000380| 5d 29 0a 28 66 73 65 74 | 20 27 71 75 6f 74 65 64 |]).(fset| 'quoted|
|00000390| 2d 69 6e 73 65 72 74 20 | 23 5b 28 61 72 67 29 20 |-insert |#[(arg) |
|000003a0| 22 08 ab 85 08 c1 3d ab | 84 c2 20 aa 82 c3 20 1c |".....=.|.. ... .|
|000003b0| 08 c1 3d ab 85 c5 0e 06 | 21 88 c7 0c 0e 06 5c 22 |..=.....|!.....\"|
|000003c0| 29 87 22 20 5b 6f 76 65 | 72 77 72 69 74 65 2d 6d |)." [ove|rwrite-m|
|000003d0| 6f 64 65 20 6f 76 65 72 | 77 72 69 74 65 2d 6d 6f |ode over|write-mo|
|000003e0| 64 65 2d 62 69 6e 61 72 | 79 20 72 65 61 64 2d 71 |de-binar|y read-q|
|000003f0| 75 6f 74 65 64 2d 63 68 | 61 72 20 72 65 61 64 2d |uoted-ch|ar read-|
|00000400| 63 68 61 72 20 63 68 61 | 72 20 64 65 6c 65 74 65 |char cha|r delete|
|00000410| 2d 63 68 61 72 20 61 72 | 67 20 69 6e 73 65 72 74 |-char ar|g insert|
|00000420| 2d 63 68 61 72 5d 20 33 | 20 22 5c 0a 52 65 61 64 |-char] 3| "\.Read|
|00000430| 20 6e 65 78 74 20 69 6e | 70 75 74 20 63 68 61 72 | next in|put char|
|00000440| 61 63 74 65 72 20 61 6e | 64 20 69 6e 73 65 72 74 |acter an|d insert|
|00000450| 20 69 74 2e 0a 54 68 69 | 73 20 69 73 20 75 73 65 | it..Thi|s is use|
|00000460| 66 75 6c 20 66 6f 72 20 | 69 6e 73 65 72 74 69 6e |ful for |insertin|
|00000470| 67 20 63 6f 6e 74 72 6f | 6c 20 63 68 61 72 61 63 |g contro|l charac|
|00000480| 74 65 72 73 2e 0a 59 6f | 75 20 6d 61 79 20 61 6c |ters..Yo|u may al|
|00000490| 73 6f 20 74 79 70 65 20 | 75 70 20 74 6f 20 33 20 |so type |up to 3 |
|000004a0| 6f 63 74 61 6c 20 64 69 | 67 69 74 73 2c 20 74 6f |octal di|gits, to|
|000004b0| 20 69 6e 73 65 72 74 20 | 61 20 63 68 61 72 61 63 | insert |a charac|
|000004c0| 74 65 72 20 77 69 74 68 | 20 74 68 61 74 20 63 6f |ter with| that co|
|000004d0| 64 65 2e 0a 0a 49 6e 20 | 6f 76 65 72 77 72 69 74 |de...In |overwrit|
|000004e0| 65 20 6d 6f 64 65 2c 20 | 74 68 69 73 20 66 75 6e |e mode, |this fun|
|000004f0| 63 74 69 6f 6e 20 69 6e | 73 65 72 74 73 20 74 68 |ction in|serts th|
|00000500| 65 20 63 68 61 72 61 63 | 74 65 72 20 61 6e 79 77 |e charac|ter anyw|
|00000510| 61 79 2c 20 61 6e 64 0a | 64 6f 65 73 20 6e 6f 74 |ay, and.|does not|
|00000520| 20 68 61 6e 64 6c 65 20 | 6f 63 74 61 6c 20 64 69 | handle |octal di|
|00000530| 67 69 74 73 20 73 70 65 | 63 69 61 6c 6c 79 2e 20 |gits spe|cially. |
|00000540| 20 54 68 69 73 20 6d 65 | 61 6e 73 20 74 68 61 74 | This me|ans that|
|00000550| 20 69 66 20 79 6f 75 20 | 75 73 65 0a 6f 76 65 72 | if you |use.over|
|00000560| 77 72 69 74 65 20 61 73 | 20 79 6f 75 72 20 6e 6f |write as| your no|
|00000570| 72 6d 61 6c 20 65 64 69 | 74 69 6e 67 20 6d 6f 64 |rmal edi|ting mod|
|00000580| 65 2c 20 79 6f 75 20 63 | 61 6e 20 75 73 65 20 74 |e, you c|an use t|
|00000590| 68 69 73 20 66 75 6e 63 | 74 69 6f 6e 20 74 6f 0a |his func|tion to.|
|000005a0| 69 6e 73 65 72 74 20 63 | 68 61 72 61 63 74 65 72 |insert c|haracter|
|000005b0| 73 20 77 68 65 6e 20 6e | 65 63 65 73 73 61 72 79 |s when n|ecessary|
|000005c0| 2e 0a 0a 49 6e 20 62 69 | 6e 61 72 79 20 6f 76 65 |...In bi|nary ove|
|000005d0| 72 77 72 69 74 65 20 6d | 6f 64 65 2c 20 74 68 69 |rwrite m|ode, thi|
|000005e0| 73 20 66 75 6e 63 74 69 | 6f 6e 20 64 6f 65 73 20 |s functi|on does |
|000005f0| 6f 76 65 72 77 72 69 74 | 65 2c 20 61 6e 64 20 6f |overwrit|e, and o|
|00000600| 63 74 61 6c 0a 64 69 67 | 69 74 73 20 61 72 65 20 |ctal.dig|its are |
|00000610| 69 6e 74 65 72 70 72 65 | 74 65 64 20 61 73 20 61 |interpre|ted as a|
|00000620| 20 63 68 61 72 61 63 74 | 65 72 20 63 6f 64 65 2e | charact|er code.|
|00000630| 20 20 54 68 69 73 20 69 | 73 20 73 75 70 70 6f 73 | This i|s suppos|
|00000640| 65 64 20 74 6f 20 6d 61 | 6b 65 0a 74 68 69 73 20 |ed to ma|ke.this |
|00000650| 66 75 6e 63 74 69 6f 6e | 20 75 73 65 66 75 6c 20 |function| useful |
|00000660| 69 6e 20 65 64 69 74 69 | 6e 67 20 62 69 6e 61 72 |in editi|ng binar|
|00000670| 79 20 66 69 6c 65 73 2e | 22 20 22 2a 70 22 5d 29 |y files.|" "*p"])|
|00000680| 0a 28 66 73 65 74 20 27 | 64 65 6c 65 74 65 2d 69 |.(fset '|delete-i|
|00000690| 6e 64 65 6e 74 61 74 69 | 6f 6e 20 23 5b 28 26 6f |ndentati|on #[(&o|
|000006a0| 70 74 69 6f 6e 61 6c 20 | 61 72 67 29 20 22 c0 79 |ptional |arg) ".y|
|000006b0| 88 09 ab 83 c2 79 88 68 | c3 3d ad a3 60 60 53 7c |.....y.h|.=..``S||
|000006c0| 88 0c ab 99 60 0c 47 5c | 5c 64 58 ab 91 0c 60 60 |....`.G\|\dX...``|
|000006d0| 0c 47 5c 5c 7b 98 ab 87 | 60 60 0c 47 5c 5c 7c 88 |.G\\{...|``.G\\|.|
|000006e0| c5 20 87 22 20 5b 30 20 | 61 72 67 20 31 20 31 30 |. ." [0 |arg 1 10|
|000006f0| 20 66 69 6c 6c 2d 70 72 | 65 66 69 78 20 66 69 78 | fill-pr|efix fix|
|00000700| 75 70 2d 77 68 69 74 65 | 73 70 61 63 65 5d 20 34 |up-white|space] 4|
|00000710| 20 22 5c 0a 4a 6f 69 6e | 20 74 68 69 73 20 6c 69 | "\.Join| this li|
|00000720| 6e 65 20 74 6f 20 70 72 | 65 76 69 6f 75 73 20 61 |ne to pr|evious a|
|00000730| 6e 64 20 66 69 78 20 75 | 70 20 77 68 69 74 65 73 |nd fix u|p whites|
|00000740| 70 61 63 65 20 61 74 20 | 6a 6f 69 6e 2e 0a 49 66 |pace at |join..If|
|00000750| 20 74 68 65 72 65 20 69 | 73 20 61 20 66 69 6c 6c | there i|s a fill|
|00000760| 20 70 72 65 66 69 78 2c | 20 64 65 6c 65 74 65 20 | prefix,| delete |
|00000770| 69 74 20 66 72 6f 6d 20 | 74 68 65 20 62 65 67 69 |it from |the begi|
|00000780| 6e 6e 69 6e 67 20 6f 66 | 20 74 68 69 73 20 6c 69 |nning of| this li|
|00000790| 6e 65 2e 0a 57 69 74 68 | 20 61 72 67 75 6d 65 6e |ne..With| argumen|
|000007a0| 74 2c 20 6a 6f 69 6e 20 | 74 68 69 73 20 6c 69 6e |t, join |this lin|
|000007b0| 65 20 74 6f 20 66 6f 6c | 6c 6f 77 69 6e 67 20 6c |e to fol|lowing l|
|000007c0| 69 6e 65 2e 22 20 22 2a | 50 22 5d 29 0a 28 66 73 |ine." "*|P"]).(fs|
|000007d0| 65 74 20 27 66 69 78 75 | 70 2d 77 68 69 74 65 73 |et 'fixu|p-whites|
|000007e0| 70 61 63 65 20 23 5b 6e | 69 6c 20 22 8a c0 20 88 |pace #[n|il ".. .|
|000007f0| c1 c2 21 ae 88 8a c3 75 | 88 c1 c4 21 29 3f ad 82 |..!....u|...!)?..|
|00000800| c5 63 29 87 22 20 5b 64 | 65 6c 65 74 65 2d 68 6f |.c)." [d|elete-ho|
|00000810| 72 69 7a 6f 6e 74 61 6c | 2d 73 70 61 63 65 20 6c |rizontal|-space l|
|00000820| 6f 6f 6b 69 6e 67 2d 61 | 74 20 22 5e 5c 5c 7c 5c |ooking-a|t "^\\|\|
|00000830| 5c 73 29 22 20 2d 31 20 | 22 24 5c 5c 7c 5c 5c 73 |\s)" -1 |"$\\|\\s|
|00000840| 28 5c 5c 7c 5c 5c 73 27 | 22 20 33 32 5d 20 32 20 |(\\|\\s'|" 32] 2 |
|00000850| 22 5c 0a 46 69 78 75 70 | 20 77 68 69 74 65 20 73 |"\.Fixup| white s|
|00000860| 70 61 63 65 20 62 65 74 | 77 65 65 6e 20 6f 62 6a |pace bet|ween obj|
|00000870| 65 63 74 73 20 61 72 6f | 75 6e 64 20 70 6f 69 6e |ects aro|und poin|
|00000880| 74 2e 0a 4c 65 61 76 65 | 20 6f 6e 65 20 73 70 61 |t..Leave| one spa|
|00000890| 63 65 20 6f 72 20 6e 6f | 6e 65 2c 20 61 63 63 6f |ce or no|ne, acco|
|000008a0| 72 64 69 6e 67 20 74 6f | 20 74 68 65 20 63 6f 6e |rding to| the con|
|000008b0| 74 65 78 74 2e 22 20 22 | 2a 22 5d 29 0a 28 66 73 |text." "|*"]).(fs|
|000008c0| 65 74 20 27 64 65 6c 65 | 74 65 2d 68 6f 72 69 7a |et 'dele|te-horiz|
|000008d0| 6f 6e 74 61 6c 2d 73 70 | 61 63 65 20 23 5b 6e 69 |ontal-sp|ace #[ni|
|000008e0| 6c 20 22 c0 c1 78 88 60 | c0 c1 77 88 60 7c 87 22 |l "..x.`|..w.`|."|
|000008f0| 20 5b 22 20 09 22 20 6e | 69 6c 5d 20 33 20 22 5c | [" ." n|il] 3 "\|
|00000900| 0a 44 65 6c 65 74 65 20 | 61 6c 6c 20 73 70 61 63 |.Delete |all spac|
|00000910| 65 73 20 61 6e 64 20 74 | 61 62 73 20 61 72 6f 75 |es and t|abs arou|
|00000920| 6e 64 20 70 6f 69 6e 74 | 2e 22 20 22 2a 22 5d 29 |nd point|." "*"])|
|00000930| 0a 28 66 73 65 74 20 27 | 6a 75 73 74 2d 6f 6e 65 |.(fset '|just-one|
|00000940| 2d 73 70 61 63 65 20 23 | 5b 6e 69 6c 20 22 c0 20 |-space #|[nil ". |
|00000950| 88 c1 c2 78 88 67 c3 55 | ab 85 c4 75 88 aa 83 c3 |...x.g.U|...u....|
|00000960| 63 88 60 c1 c2 77 88 60 | 7c 87 22 20 5b 65 78 70 |c.`..w.`||." [exp|
|00000970| 61 6e 64 2d 61 62 62 72 | 65 76 20 22 20 09 22 20 |and-abbr|ev " ." |
|00000980| 6e 69 6c 20 33 32 20 31 | 5d 20 33 20 22 5c 0a 44 |nil 32 1|] 3 "\.D|
|00000990| 65 6c 65 74 65 20 61 6c | 6c 20 73 70 61 63 65 73 |elete al|l spaces|
|000009a0| 20 61 6e 64 20 74 61 62 | 73 20 61 72 6f 75 6e 64 | and tab|s around|
|000009b0| 20 70 6f 69 6e 74 2c 20 | 6c 65 61 76 69 6e 67 20 | point, |leaving |
|000009c0| 6f 6e 65 20 73 70 61 63 | 65 2e 22 20 22 2a 22 5d |one spac|e." "*"]|
|000009d0| 29 0a 28 66 73 65 74 20 | 27 64 65 6c 65 74 65 2d |).(fset |'delete-|
|000009e0| 62 6c 61 6e 6b 2d 6c 69 | 6e 65 73 20 23 5b 6e 69 |blank-li|nes #[ni|
|000009f0| 6c 20 22 c0 89 19 1a 8a | c3 79 88 c4 c5 21 89 12 |l ".....|.y...!..|
|00000a00| ad 90 c4 c6 21 3f ad 8a | 6f ae 87 c7 79 88 c4 c5 |....!?..|o...y...|
|00000a10| 21 3f 11 29 5c 6e ab 9a | c3 79 88 09 ab 83 c8 79 |!?.)\n..|.y.....y|
|00000a20| 88 60 c9 ca c0 cb 23 ab | 86 c8 79 88 60 aa 81 65 |.`....#.|..y.`..e|
|00000a30| 7c 88 5c 6e ab 83 09 ac | 99 8a c0 7f 88 c8 79 88 ||.\n....|......y.|
|00000a40| 60 cc ca c0 cb 23 ab 86 | c3 79 88 60 aa 81 64 7c |`....#..|.y.`..d||
|00000a50| 88 29 c4 cd 21 ad 83 60 | 64 7c 2a 87 22 20 5b 6e |.)..!..`|d|*." [n|
|00000a60| 69 6c 20 73 69 6e 67 6c | 65 62 6c 61 6e 6b 20 74 |il singl|eblank t|
|00000a70| 68 69 73 62 6c 61 6e 6b | 20 30 20 6c 6f 6f 6b 69 |hisblank| 0 looki|
|00000a80| 6e 67 2d 61 74 20 22 5b | 20 09 5d 2a 24 22 20 22 |ng-at "[| .]*$" "|
|00000a90| 5b 20 09 5d 2a 5c 6e 5b | 20 09 5d 2a 24 22 20 2d |[ .]*\n[| .]*$" -|
|00000aa0| 31 20 31 20 72 65 2d 73 | 65 61 72 63 68 2d 62 61 |1 1 re-s|earch-ba|
|00000ab0| 63 6b 77 61 72 64 20 22 | 5b 5e 20 09 5c 6e 5d 22 |ckward "|[^ .\n]"|
|00000ac0| 20 74 20 72 65 2d 73 65 | 61 72 63 68 2d 66 6f 72 | t re-se|arch-for|
|00000ad0| 77 61 72 64 20 22 5e 5b | 20 09 5d 2a 5c 6e 5c 5c |ward "^[| .]*\n\\|
|00000ae0| 27 22 5d 20 36 20 22 5c | 0a 4f 6e 20 62 6c 61 6e |'"] 6 "\|.On blan|
|00000af0| 6b 20 6c 69 6e 65 2c 20 | 64 65 6c 65 74 65 20 61 |k line, |delete a|
|00000b00| 6c 6c 20 73 75 72 72 6f | 75 6e 64 69 6e 67 20 62 |ll surro|unding b|
|00000b10| 6c 61 6e 6b 20 6c 69 6e | 65 73 2c 20 6c 65 61 76 |lank lin|es, leav|
|00000b20| 69 6e 67 20 6a 75 73 74 | 20 6f 6e 65 2e 0a 4f 6e |ing just| one..On|
|00000b30| 20 69 73 6f 6c 61 74 65 | 64 20 62 6c 61 6e 6b 20 | isolate|d blank |
|00000b40| 6c 69 6e 65 2c 20 64 65 | 6c 65 74 65 20 74 68 61 |line, de|lete tha|
|00000b50| 74 20 6f 6e 65 2e 0a 4f | 6e 20 6e 6f 6e 62 6c 61 |t one..O|n nonbla|
|00000b60| 6e 6b 20 6c 69 6e 65 2c | 20 64 65 6c 65 74 65 20 |nk line,| delete |
|00000b70| 61 6e 79 20 69 6d 6d 65 | 64 69 61 74 65 6c 79 20 |any imme|diately |
|00000b80| 66 6f 6c 6c 6f 77 69 6e | 67 20 62 6c 61 6e 6b 20 |followin|g blank |
|00000b90| 6c 69 6e 65 73 2e 22 20 | 22 2a 22 5d 29 0a 28 66 |lines." |"*"]).(f|
|00000ba0| 73 65 74 20 27 62 61 63 | 6b 2d 74 6f 2d 69 6e 64 |set 'bac|k-to-ind|
|00000bb0| 65 6e 74 61 74 69 6f 6e | 20 23 5b 6e 69 6c 20 22 |entation| #[nil "|
|00000bc0| c0 79 88 c1 c2 77 87 22 | 20 5b 30 20 22 20 09 22 |.y...w."| [0 " ."|
|00000bd0| 20 6e 69 6c 5d 20 32 20 | 22 5c 0a 4d 6f 76 65 20 | nil] 2 |"\.Move |
|00000be0| 70 6f 69 6e 74 20 74 6f | 20 74 68 65 20 66 69 72 |point to| the fir|
|00000bf0| 73 74 20 6e 6f 6e 2d 77 | 68 69 74 65 73 70 61 63 |st non-w|hitespac|
|00000c00| 65 20 63 68 61 72 61 63 | 74 65 72 20 6f 6e 20 74 |e charac|ter on t|
|00000c10| 68 69 73 20 6c 69 6e 65 | 2e 22 20 22 5f 22 5d 29 |his line|." "_"])|
|00000c20| 0a 28 66 73 65 74 20 27 | 6e 65 77 6c 69 6e 65 2d |.(fset '|newline-|
|00000c30| 61 6e 64 2d 69 6e 64 65 | 6e 74 20 23 5b 6e 69 6c |and-inde|nt #[nil|
|00000c40| 20 22 60 c0 c1 78 88 60 | 7c 88 c2 20 88 c3 20 87 | "`..x.`||.. .. .|
|00000c50| 22 20 5b 22 20 09 22 20 | 6e 69 6c 20 6e 65 77 6c |" [" ." |nil newl|
|00000c60| 69 6e 65 20 69 6e 64 65 | 6e 74 2d 61 63 63 6f 72 |ine inde|nt-accor|
|00000c70| 64 69 6e 67 2d 74 6f 2d | 6d 6f 64 65 5d 20 33 20 |ding-to-|mode] 3 |
|00000c80| 22 5c 0a 49 6e 73 65 72 | 74 20 61 20 6e 65 77 6c |"\.Inser|t a newl|
|00000c90| 69 6e 65 2c 20 74 68 65 | 6e 20 69 6e 64 65 6e 74 |ine, the|n indent|
|00000ca0| 20 61 63 63 6f 72 64 69 | 6e 67 20 74 6f 20 6d 61 | accordi|ng to ma|
|00000cb0| 6a 6f 72 20 6d 6f 64 65 | 2e 0a 49 6e 64 65 6e 74 |jor mode|..Indent|
|00000cc0| 61 74 69 6f 6e 20 69 73 | 20 64 6f 6e 65 20 75 73 |ation is| done us|
|00000cd0| 69 6e 67 20 74 68 65 20 | 76 61 6c 75 65 20 6f 66 |ing the |value of|
|00000ce0| 20 60 69 6e 64 65 6e 74 | 2d 6c 69 6e 65 2d 66 75 | `indent|-line-fu|
|00000cf0| 6e 63 74 69 6f 6e 27 2e | 0a 49 6e 20 70 72 6f 67 |nction'.|.In prog|
|00000d00| 72 61 6d 6d 69 6e 67 20 | 6c 61 6e 67 75 61 67 65 |ramming |language|
|00000d10| 20 6d 6f 64 65 73 2c 20 | 74 68 69 73 20 69 73 20 | modes, |this is |
|00000d20| 74 68 65 20 73 61 6d 65 | 20 61 73 20 54 41 42 2e |the same| as TAB.|
|00000d30| 0a 49 6e 20 73 6f 6d 65 | 20 74 65 78 74 20 6d 6f |.In some| text mo|
|00000d40| 64 65 73 2c 20 77 68 65 | 72 65 20 54 41 42 20 69 |des, whe|re TAB i|
|00000d50| 6e 73 65 72 74 73 20 61 | 20 74 61 62 2c 20 74 68 |nserts a| tab, th|
|00000d60| 69 73 20 63 6f 6d 6d 61 | 6e 64 20 69 6e 64 65 6e |is comma|nd inden|
|00000d70| 74 73 20 74 6f 20 74 68 | 65 0a 63 6f 6c 75 6d 6e |ts to th|e.column|
|00000d80| 20 73 70 65 63 69 66 69 | 65 64 20 62 79 20 74 68 | specifi|ed by th|
|00000d90| 65 20 76 61 72 69 61 62 | 6c 65 20 60 6c 65 66 74 |e variab|le `left|
|00000da0| 2d 6d 61 72 67 69 6e 27 | 2e 22 20 22 2a 22 5d 29 |-margin'|." "*"])|
|00000db0| 0a 28 66 73 65 74 20 27 | 72 65 69 6e 64 65 6e 74 |.(fset '|reindent|
|00000dc0| 2d 74 68 65 6e 2d 6e 65 | 77 6c 69 6e 65 2d 61 6e |-then-ne|wline-an|
|00000dd0| 64 2d 69 6e 64 65 6e 74 | 20 23 5b 6e 69 6c 20 22 |d-indent| #[nil "|
|00000de0| 8a 60 c0 c1 78 88 60 7c | 88 c2 20 88 29 c3 20 88 |.`..x.`||.. .). .|
|00000df0| c2 20 87 22 20 5b 22 20 | 09 22 20 6e 69 6c 20 69 |. ." [" |." nil i|
|00000e00| 6e 64 65 6e 74 2d 61 63 | 63 6f 72 64 69 6e 67 2d |ndent-ac|cording-|
|00000e10| 74 6f 2d 6d 6f 64 65 20 | 6e 65 77 6c 69 6e 65 5d |to-mode |newline]|
|00000e20| 20 33 20 22 5c 0a 52 65 | 69 6e 64 65 6e 74 20 63 | 3 "\.Re|indent c|
|00000e30| 75 72 72 65 6e 74 20 6c | 69 6e 65 2c 20 69 6e 73 |urrent l|ine, ins|
|00000e40| 65 72 74 20 6e 65 77 6c | 69 6e 65 2c 20 74 68 65 |ert newl|ine, the|
|00000e50| 6e 20 69 6e 64 65 6e 74 | 20 74 68 65 20 6e 65 77 |n indent| the new|
|00000e60| 20 6c 69 6e 65 2e 0a 49 | 6e 64 65 6e 74 61 74 69 | line..I|ndentati|
|00000e70| 6f 6e 20 6f 66 20 62 6f | 74 68 20 6c 69 6e 65 73 |on of bo|th lines|
|00000e80| 20 69 73 20 64 6f 6e 65 | 20 61 63 63 6f 72 64 69 | is done| accordi|
|00000e90| 6e 67 20 74 6f 20 74 68 | 65 20 63 75 72 72 65 6e |ng to th|e curren|
|00000ea0| 74 20 6d 61 6a 6f 72 20 | 6d 6f 64 65 2c 0a 77 68 |t major |mode,.wh|
|00000eb0| 69 63 68 20 6d 65 61 6e | 73 20 63 61 6c 6c 69 6e |ich mean|s callin|
|00000ec0| 67 20 74 68 65 20 63 75 | 72 72 65 6e 74 20 76 61 |g the cu|rrent va|
|00000ed0| 6c 75 65 20 6f 66 20 60 | 69 6e 64 65 6e 74 2d 6c |lue of `|indent-l|
|00000ee0| 69 6e 65 2d 66 75 6e 63 | 74 69 6f 6e 27 2e 0a 49 |ine-func|tion'..I|
|00000ef0| 6e 20 70 72 6f 67 72 61 | 6d 6d 69 6e 67 20 6c 61 |n progra|mming la|
|00000f00| 6e 67 75 61 67 65 20 6d | 6f 64 65 73 2c 20 74 68 |nguage m|odes, th|
|00000f10| 69 73 20 69 73 20 74 68 | 65 20 73 61 6d 65 20 61 |is is th|e same a|
|00000f20| 73 20 54 41 42 2e 0a 49 | 6e 20 73 6f 6d 65 20 74 |s TAB..I|n some t|
|00000f30| 65 78 74 20 6d 6f 64 65 | 73 2c 20 77 68 65 72 65 |ext mode|s, where|
|00000f40| 20 54 41 42 20 69 6e 73 | 65 72 74 73 20 61 20 74 | TAB ins|erts a t|
|00000f50| 61 62 2c 20 74 68 69 73 | 20 69 6e 64 65 6e 74 73 |ab, this| indents|
|00000f60| 20 74 6f 20 74 68 65 0a | 63 6f 6c 75 6d 6e 20 73 | to the.|column s|
|00000f70| 70 65 63 69 66 69 65 64 | 20 62 79 20 74 68 65 20 |pecified| by the |
|00000f80| 76 61 72 69 61 62 6c 65 | 20 60 6c 65 66 74 2d 6d |variable| `left-m|
|00000f90| 61 72 67 69 6e 27 2e 22 | 20 22 2a 22 5d 29 0a 28 |argin'."| "*"]).(|
|00000fa0| 62 79 74 65 2d 63 6f 64 | 65 20 22 c0 c1 4d 88 c2 |byte-cod|e "..M..|
|00000fb0| c3 4d 87 22 20 5b 6b 69 | 6c 6c 2d 66 6f 72 77 61 |.M." [ki|ll-forwa|
|00000fc0| 72 64 2d 63 68 61 72 73 | 20 23 5b 28 61 72 67 29 |rd-chars| #[(arg)|
|00000fd0| 20 22 08 3c ab 83 08 40 | 10 08 c1 3d ab 82 c2 10 | ".<...@|...=....|
|00000fe0| c3 60 60 08 5c 5c 5c 22 | 87 22 20 5b 61 72 67 20 |.``.\\\"|." [arg |
|00000ff0| 2d 20 2d 31 20 6b 69 6c | 6c 2d 72 65 67 69 6f 6e |- -1 kil|l-region|
|00001000| 5d 20 34 5d 20 6b 69 6c | 6c 2d 62 61 63 6b 77 61 |] 4] kil|l-backwa|
|00001010| 72 64 2d 63 68 61 72 73 | 20 23 5b 28 61 72 67 29 |rd-chars| #[(arg)|
|00001020| 20 22 08 3c ab 83 08 40 | 10 08 c1 3d ab 82 c2 10 | ".<...@|...=....|
|00001030| c3 60 60 08 5a 5c 22 87 | 22 20 5b 61 72 67 20 2d |.``.Z\".|" [arg -|
|00001040| 20 2d 31 20 6b 69 6c 6c | 2d 72 65 67 69 6f 6e 5d | -1 kill|-region]|
|00001050| 20 34 5d 5d 20 32 29 0a | 28 66 73 65 74 20 27 62 | 4]] 2).|(fset 'b|
|00001060| 61 63 6b 77 61 72 64 2d | 64 65 6c 65 74 65 2d 63 |ackward-|delete-c|
|00001070| 68 61 72 2d 75 6e 74 61 | 62 69 66 79 20 23 5b 28 |har-unta|bify #[(|
|00001080| 61 72 67 20 26 6f 70 74 | 69 6f 6e 61 6c 20 6b 69 |arg &opt|ional ki|
|00001090| 6c 6c 70 29 20 22 08 19 | 8a 09 c2 56 ab a4 6f ac |llp) "..|...V..o.|
|000010a0| a1 68 c3 55 ab 93 69 1c | c5 75 88 0c 69 5a 14 c6 |.h.U..i.|.u..iZ..|
|000010b0| c7 0c 5c 22 88 c8 c9 21 | 88 29 c5 75 88 09 53 89 |..\"...!|.).u..S.|
|000010c0| 11 aa 58 2a ca 08 0e 0b | 5c 22 88 0e 0c ad 8a 6c |..X*....|\".....l|
|000010d0| 3f ad 86 8a c6 c7 08 5c | 22 29 87 22 20 5b 61 72 |?......\|")." [ar|
|000010e0| 67 20 63 6f 75 6e 74 20 | 30 20 39 20 63 6f 6c 20 |g count |0 9 col |
|000010f0| 2d 31 20 69 6e 73 65 72 | 74 2d 63 68 61 72 20 33 |-1 inser|t-char 3|
|00001100| 32 20 64 65 6c 65 74 65 | 2d 63 68 61 72 20 31 20 |2 delete|-char 1 |
|00001110| 64 65 6c 65 74 65 2d 62 | 61 63 6b 77 61 72 64 2d |delete-b|ackward-|
|00001120| 63 68 61 72 20 6b 69 6c | 6c 70 20 6f 76 65 72 77 |char kil|lp overw|
|00001130| 72 69 74 65 2d 6d 6f 64 | 65 5d 20 34 20 22 5c 0a |rite-mod|e] 4 "\.|
|00001140| 44 65 6c 65 74 65 20 63 | 68 61 72 61 63 74 65 72 |Delete c|haracter|
|00001150| 73 20 62 61 63 6b 77 61 | 72 64 2c 20 63 68 61 6e |s backwa|rd, chan|
|00001160| 67 69 6e 67 20 74 61 62 | 73 20 69 6e 74 6f 20 73 |ging tab|s into s|
|00001170| 70 61 63 65 73 2e 0a 44 | 65 6c 65 74 65 20 41 52 |paces..D|elete AR|
|00001180| 47 20 63 68 61 72 73 2c | 20 61 6e 64 20 6b 69 6c |G chars,| and kil|
|00001190| 6c 20 28 73 61 76 65 20 | 69 6e 20 6b 69 6c 6c 20 |l (save |in kill |
|000011a0| 72 69 6e 67 29 20 69 66 | 20 4b 49 4c 4c 50 20 69 |ring) if| KILLP i|
|000011b0| 73 20 6e 6f 6e 2d 6e 69 | 6c 2e 0a 49 6e 74 65 72 |s non-ni|l..Inter|
|000011c0| 61 63 74 69 76 65 6c 79 | 2c 20 41 52 47 20 69 73 |actively|, ARG is|
|000011d0| 20 74 68 65 20 70 72 65 | 66 69 78 20 61 72 67 20 | the pre|fix arg |
|000011e0| 28 64 65 66 61 75 6c 74 | 20 31 29 0a 61 6e 64 20 |(default| 1).and |
|000011f0| 4b 49 4c 4c 50 20 69 73 | 20 74 20 69 66 20 61 20 |KILLP is| t if a |
|00001200| 70 72 65 66 69 78 20 61 | 72 67 20 77 61 73 20 73 |prefix a|rg was s|
|00001210| 70 65 63 69 66 69 65 64 | 2e 22 20 22 2a 70 5c 6e |pecified|." "*p\n|
|00001220| 50 22 5d 29 0a 28 66 73 | 65 74 20 27 7a 61 70 2d |P"]).(fs|et 'zap-|
|00001230| 74 6f 2d 63 68 61 72 20 | 23 5b 28 61 72 67 20 63 |to-char |#[(arg c|
|00001240| 68 61 72 29 20 22 c0 60 | c1 c2 0b 21 c4 89 0d 24 |har) ".`|...!...$|
|00001250| 88 60 5c 22 87 22 20 5b | 6b 69 6c 6c 2d 72 65 67 |.`\"." [|kill-reg|
|00001260| 69 6f 6e 20 73 65 61 72 | 63 68 2d 66 6f 72 77 61 |ion sear|ch-forwa|
|00001270| 72 64 20 63 68 61 72 2d | 74 6f 2d 73 74 72 69 6e |rd char-|to-strin|
|00001280| 67 20 63 68 61 72 20 6e | 69 6c 20 61 72 67 5d 20 |g char n|il arg] |
|00001290| 37 20 22 5c 0a 4b 69 6c | 6c 20 75 70 20 74 6f 20 |7 "\.Kil|l up to |
|000012a0| 61 6e 64 20 69 6e 63 6c | 75 64 69 6e 67 20 41 52 |and incl|uding AR|
|000012b0| 47 27 74 68 20 6f 63 63 | 75 72 72 65 6e 63 65 20 |G'th occ|urrence |
|000012c0| 6f 66 20 43 48 41 52 2e | 0a 47 6f 65 73 20 62 61 |of CHAR.|.Goes ba|
|000012d0| 63 6b 77 61 72 64 20 69 | 66 20 41 52 47 20 69 73 |ckward i|f ARG is|
|000012e0| 20 6e 65 67 61 74 69 76 | 65 3b 20 65 72 72 6f 72 | negativ|e; error|
|000012f0| 20 69 66 20 43 48 41 52 | 20 6e 6f 74 20 66 6f 75 | if CHAR| not fou|
|00001300| 6e 64 2e 22 20 22 2a 70 | 5c 6e 63 5a 61 70 20 74 |nd." "*p|\ncZap t|
|00001310| 6f 20 63 68 61 72 3a 20 | 22 5d 29 0a 28 66 73 65 |o char: |"]).(fse|
|00001320| 74 20 27 62 65 67 69 6e | 6e 69 6e 67 2d 6f 66 2d |t 'begin|ning-of-|
|00001330| 62 75 66 66 65 72 20 23 | 5b 28 26 6f 70 74 69 6f |buffer #|[(&optio|
|00001340| 6e 61 6c 20 61 72 67 29 | 20 22 c0 20 88 09 ab 9c |nal arg)| ". ....|
|00001350| c2 20 c3 56 ab 8a c4 09 | 21 c2 20 c5 a5 5f aa 8d |. .V....|!. .._..|
|00001360| c2 20 c4 09 21 5f c5 5c | 5c c5 a5 aa 81 65 62 88 |. ..!_.\|\....eb.|
|00001370| 09 ad 82 c6 79 87 22 20 | 5b 70 75 73 68 2d 6d 61 |....y." |[push-ma|
|00001380| 72 6b 20 61 72 67 20 62 | 75 66 66 65 72 2d 73 69 |rk arg b|uffer-si|
|00001390| 7a 65 20 31 30 30 30 30 | 20 70 72 65 66 69 78 2d |ze 10000| prefix-|
|000013a0| 6e 75 6d 65 72 69 63 2d | 76 61 6c 75 65 20 31 30 |numeric-|value 10|
|000013b0| 20 31 5d 20 33 20 22 5c | 0a 4d 6f 76 65 20 70 6f | 1] 3 "\|.Move po|
|000013c0| 69 6e 74 20 74 6f 20 74 | 68 65 20 62 65 67 69 6e |int to t|he begin|
|000013d0| 6e 69 6e 67 20 6f 66 20 | 74 68 65 20 62 75 66 66 |ning of |the buff|
|000013e0| 65 72 3b 20 6c 65 61 76 | 65 20 6d 61 72 6b 20 61 |er; leav|e mark a|
|000013f0| 74 20 70 72 65 76 69 6f | 75 73 20 70 6f 73 69 74 |t previo|us posit|
|00001400| 69 6f 6e 2e 0a 57 69 74 | 68 20 61 72 67 20 4e 2c |ion..Wit|h arg N,|
|00001410| 20 70 75 74 20 70 6f 69 | 6e 74 20 4e 2f 31 30 20 | put poi|nt N/10 |
|00001420| 6f 66 20 74 68 65 20 77 | 61 79 20 66 72 6f 6d 20 |of the w|ay from |
|00001430| 74 68 65 20 74 72 75 65 | 20 62 65 67 69 6e 6e 69 |the true| beginni|
|00001440| 6e 67 2e 0a 0a 44 6f 6e | 27 74 20 75 73 65 20 74 |ng...Don|'t use t|
|00001450| 68 69 73 20 63 6f 6d 6d | 61 6e 64 20 69 6e 20 4c |his comm|and in L|
|00001460| 69 73 70 20 70 72 6f 67 | 72 61 6d 73 21 0a 28 67 |isp prog|rams!.(g|
|00001470| 6f 74 6f 2d 63 68 61 72 | 20 28 70 6f 69 6e 74 2d |oto-char| (point-|
|00001480| 6d 69 6e 29 29 20 69 73 | 20 66 61 73 74 65 72 20 |min)) is| faster |
|00001490| 61 6e 64 20 61 76 6f 69 | 64 73 20 63 6c 6f 62 62 |and avoi|ds clobb|
|000014a0| 65 72 69 6e 67 20 74 68 | 65 20 6d 61 72 6b 2e 22 |ering th|e mark."|
|000014b0| 20 22 5f 50 22 5d 29 0a | 28 66 73 65 74 20 27 65 | "_P"]).|(fset 'e|
|000014c0| 6e 64 2d 6f 66 2d 62 75 | 66 66 65 72 20 23 5b 28 |nd-of-bu|ffer #[(|
|000014d0| 26 6f 70 74 69 6f 6e 61 | 6c 20 61 72 67 29 20 22 |&optiona|l arg) "|
|000014e0| c0 20 88 c1 64 21 3f 1a | 0b ab 9e c4 20 54 c4 20 |. ..d!?.|.... T. |
|000014f0| c5 56 ab 8a c6 0b 21 c4 | 20 c7 a5 5f aa 88 c4 20 |.V....!.| .._... |
|00001500| c6 0b 21 5f c7 a5 5a aa | 81 64 62 88 0b ab 84 c8 |..!_..Z.|.db.....|
|00001510| 79 aa 86 5c 6e ad 83 c9 | ca 21 29 87 22 20 5b 70 |y..\n...|.!)." [p|
|00001520| 75 73 68 2d 6d 61 72 6b | 20 70 6f 73 2d 76 69 73 |ush-mark| pos-vis|
|00001530| 69 62 6c 65 2d 69 6e 2d | 77 69 6e 64 6f 77 2d 70 |ible-in-|window-p|
|00001540| 20 73 63 72 6f 6c 6c 2d | 74 6f 2d 65 6e 64 20 61 | scroll-|to-end a|
|00001550| 72 67 20 62 75 66 66 65 | 72 2d 73 69 7a 65 20 31 |rg buffe|r-size 1|
|00001560| 30 30 30 30 20 70 72 65 | 66 69 78 2d 6e 75 6d 65 |0000 pre|fix-nume|
|00001570| 72 69 63 2d 76 61 6c 75 | 65 20 31 30 20 31 20 72 |ric-valu|e 10 1 r|
|00001580| 65 63 65 6e 74 65 72 20 | 2d 33 5d 20 34 20 22 5c |ecenter |-3] 4 "\|
|00001590| 0a 4d 6f 76 65 20 70 6f | 69 6e 74 20 74 6f 20 74 |.Move po|int to t|
|000015a0| 68 65 20 65 6e 64 20 6f | 66 20 74 68 65 20 62 75 |he end o|f the bu|
|000015b0| 66 66 65 72 3b 20 6c 65 | 61 76 65 20 6d 61 72 6b |ffer; le|ave mark|
|000015c0| 20 61 74 20 70 72 65 76 | 69 6f 75 73 20 70 6f 73 | at prev|ious pos|
|000015d0| 69 74 69 6f 6e 2e 0a 57 | 69 74 68 20 61 72 67 20 |ition..W|ith arg |
|000015e0| 4e 2c 20 70 75 74 20 70 | 6f 69 6e 74 20 4e 2f 31 |N, put p|oint N/1|
|000015f0| 30 20 6f 66 20 74 68 65 | 20 77 61 79 20 66 72 6f |0 of the| way fro|
|00001600| 6d 20 74 68 65 20 74 72 | 75 65 20 65 6e 64 2e 0a |m the tr|ue end..|
|00001610| 0a 44 6f 6e 27 74 20 75 | 73 65 20 74 68 69 73 20 |.Don't u|se this |
|00001620| 63 6f 6d 6d 61 6e 64 20 | 69 6e 20 4c 69 73 70 20 |command |in Lisp |
|00001630| 70 72 6f 67 72 61 6d 73 | 21 0a 28 67 6f 74 6f 2d |programs|!.(goto-|
|00001640| 63 68 61 72 20 28 70 6f | 69 6e 74 2d 6d 61 78 29 |char (po|int-max)|
|00001650| 29 20 69 73 20 66 61 73 | 74 65 72 20 61 6e 64 20 |) is fas|ter and |
|00001660| 61 76 6f 69 64 73 20 63 | 6c 6f 62 62 65 72 69 6e |avoids c|lobberin|
|00001670| 67 20 74 68 65 20 6d 61 | 72 6b 2e 22 20 22 5f 50 |g the ma|rk." "_P|
|00001680| 22 5d 29 0a 28 66 73 65 | 74 20 27 6d 61 72 6b 2d |"]).(fse|t 'mark-|
|00001690| 62 65 67 69 6e 6e 69 6e | 67 2d 6f 66 2d 62 75 66 |beginnin|g-of-buf|
|000016a0| 66 65 72 20 23 5b 28 26 | 6f 70 74 69 6f 6e 61 6c |fer #[(&|optional|
|000016b0| 20 61 72 67 29 20 22 c0 | 09 ab 9c c2 20 c3 56 ab | arg) ".|.... .V.|
|000016c0| 8a c4 09 21 c2 20 c5 a5 | 5f aa 8d c2 20 c4 09 21 |...!. ..|_... ..!|
|000016d0| 5f c5 5c 5c c5 a5 aa 81 | 65 c6 c7 23 87 22 20 5b |_.\\....|e..#." [|
|000016e0| 70 75 73 68 2d 6d 61 72 | 6b 20 61 72 67 20 62 75 |push-mar|k arg bu|
|000016f0| 66 66 65 72 2d 73 69 7a | 65 20 31 30 30 30 30 20 |ffer-siz|e 10000 |
|00001700| 70 72 65 66 69 78 2d 6e | 75 6d 65 72 69 63 2d 76 |prefix-n|umeric-v|
|00001710| 61 6c 75 65 20 31 30 20 | 6e 69 6c 20 74 5d 20 34 |alue 10 |nil t] 4|
|00001720| 20 22 5c 0a 50 75 73 68 | 20 61 20 6d 61 72 6b 20 | "\.Push| a mark |
|00001730| 61 74 20 74 68 65 20 62 | 65 67 69 6e 6e 69 6e 67 |at the b|eginning|
|00001740| 20 6f 66 20 74 68 65 20 | 62 75 66 66 65 72 3b 20 | of the |buffer; |
|00001750| 6c 65 61 76 65 20 70 6f | 69 6e 74 20 77 68 65 72 |leave po|int wher|
|00001760| 65 20 69 74 20 69 73 2e | 0a 57 69 74 68 20 61 72 |e it is.|.With ar|
|00001770| 67 20 4e 2c 20 70 75 73 | 68 20 6d 61 72 6b 20 4e |g N, pus|h mark N|
|00001780| 2f 31 30 20 6f 66 20 74 | 68 65 20 77 61 79 20 66 |/10 of t|he way f|
|00001790| 72 6f 6d 20 74 68 65 20 | 74 72 75 65 20 62 65 67 |rom the |true beg|
|000017a0| 69 6e 6e 69 6e 67 2e 22 | 20 22 50 22 5d 29 0a 28 |inning."| "P"]).(|
|000017b0| 64 65 66 69 6e 65 2d 66 | 75 6e 63 74 69 6f 6e 20 |define-f|unction |
|000017c0| 27 6d 61 72 6b 2d 62 6f | 62 20 27 6d 61 72 6b 2d |'mark-bo|b 'mark-|
|000017d0| 62 65 67 69 6e 6e 69 6e | 67 2d 6f 66 2d 62 75 66 |beginnin|g-of-buf|
|000017e0| 66 65 72 29 0a 28 66 73 | 65 74 20 27 6d 61 72 6b |fer).(fs|et 'mark|
|000017f0| 2d 65 6e 64 2d 6f 66 2d | 62 75 66 66 65 72 20 23 |-end-of-|buffer #|
|00001800| 5b 28 26 6f 70 74 69 6f | 6e 61 6c 20 61 72 67 29 |[(&optio|nal arg)|
|00001810| 20 22 c0 09 ab 9e c2 20 | 54 c2 20 c3 56 ab 8a c4 | "..... |T. .V...|
|00001820| 09 21 c2 20 c5 a5 5f aa | 88 c2 20 c4 09 21 5f c5 |.!. .._.|.. ..!_.|
|00001830| a5 5a aa 81 64 c6 c7 23 | 87 22 20 5b 70 75 73 68 |.Z..d..#|." [push|
|00001840| 2d 6d 61 72 6b 20 61 72 | 67 20 62 75 66 66 65 72 |-mark ar|g buffer|
|00001850| 2d 73 69 7a 65 20 31 30 | 30 30 30 20 70 72 65 66 |-size 10|000 pref|
|00001860| 69 78 2d 6e 75 6d 65 72 | 69 63 2d 76 61 6c 75 65 |ix-numer|ic-value|
|00001870| 20 31 30 20 6e 69 6c 20 | 74 5d 20 35 20 22 5c 0a | 10 nil |t] 5 "\.|
|00001880| 50 75 73 68 20 61 20 6d | 61 72 6b 20 61 74 20 74 |Push a m|ark at t|
|00001890| 68 65 20 65 6e 64 20 6f | 66 20 74 68 65 20 62 75 |he end o|f the bu|
|000018a0| 66 66 65 72 3b 20 6c 65 | 61 76 65 20 70 6f 69 6e |ffer; le|ave poin|
|000018b0| 74 20 77 68 65 72 65 20 | 69 74 20 69 73 2e 0a 57 |t where |it is..W|
|000018c0| 69 74 68 20 61 72 67 20 | 4e 2c 20 70 75 73 68 20 |ith arg |N, push |
|000018d0| 6d 61 72 6b 20 4e 2f 31 | 30 20 6f 66 20 74 68 65 |mark N/1|0 of the|
|000018e0| 20 77 61 79 20 66 72 6f | 6d 20 74 68 65 20 74 72 | way fro|m the tr|
|000018f0| 75 65 20 65 6e 64 2e 22 | 20 22 50 22 5d 29 0a 28 |ue end."| "P"]).(|
|00001900| 64 65 66 69 6e 65 2d 66 | 75 6e 63 74 69 6f 6e 20 |define-f|unction |
|00001910| 27 6d 61 72 6b 2d 65 6f | 62 20 27 6d 61 72 6b 2d |'mark-eo|b 'mark-|
|00001920| 65 6e 64 2d 6f 66 2d 62 | 75 66 66 65 72 29 0a 28 |end-of-b|uffer).(|
|00001930| 66 73 65 74 20 27 6d 61 | 72 6b 2d 77 68 6f 6c 65 |fset 'ma|rk-whole|
|00001940| 2d 62 75 66 66 65 72 20 | 23 5b 6e 69 6c 20 22 c0 |-buffer |#[nil ".|
|00001950| 60 21 88 c0 64 c1 c2 23 | 88 65 62 87 22 20 5b 70 |`!..d..#|.eb." [p|
|00001960| 75 73 68 2d 6d 61 72 6b | 20 6e 69 6c 20 74 5d 20 |ush-mark| nil t] |
|00001970| 34 20 22 5c 0a 50 75 74 | 20 70 6f 69 6e 74 20 61 |4 "\.Put| point a|
|00001980| 74 20 62 65 67 69 6e 6e | 69 6e 67 20 61 6e 64 20 |t beginn|ing and |
|00001990| 6d 61 72 6b 20 61 74 20 | 65 6e 64 20 6f 66 20 62 |mark at |end of b|
|000019a0| 75 66 66 65 72 2e 0a 59 | 6f 75 20 70 72 6f 62 61 |uffer..Y|ou proba|
|000019b0| 62 6c 79 20 73 68 6f 75 | 6c 64 20 6e 6f 74 20 75 |bly shou|ld not u|
|000019c0| 73 65 20 74 68 69 73 20 | 66 75 6e 63 74 69 6f 6e |se this |function|
|000019d0| 20 69 6e 20 4c 69 73 70 | 20 70 72 6f 67 72 61 6d | in Lisp| program|
|000019e0| 73 3b 0a 69 74 20 69 73 | 20 75 73 75 61 6c 6c 79 |s;.it is| usually|
|000019f0| 20 61 20 6d 69 73 74 61 | 6b 65 20 66 6f 72 20 61 | a mista|ke for a|
|00001a00| 20 4c 69 73 70 20 66 75 | 6e 63 74 69 6f 6e 20 74 | Lisp fu|nction t|
|00001a10| 6f 20 75 73 65 20 61 6e | 79 20 73 75 62 72 6f 75 |o use an|y subrou|
|00001a20| 74 69 6e 65 0a 74 68 61 | 74 20 75 73 65 73 20 6f |tine.tha|t uses o|
|00001a30| 72 20 73 65 74 73 20 74 | 68 65 20 6d 61 72 6b 2e |r sets t|he mark.|
|00001a40| 22 20 6e 69 6c 5d 29 0a | 28 66 73 65 74 20 27 65 |" nil]).|(fset 'e|
|00001a50| 76 61 6c 2d 63 75 72 72 | 65 6e 74 2d 62 75 66 66 |val-curr|ent-buff|
|00001a60| 65 72 20 23 5b 28 26 6f | 70 74 69 6f 6e 61 6c 20 |er #[(&o|ptional |
|00001a70| 70 72 69 6e 74 66 6c 61 | 67 29 20 22 c0 70 09 5c |printfla|g) ".p.\|
|00001a80| 22 87 22 20 5b 65 76 61 | 6c 2d 62 75 66 66 65 72 |"." [eva|l-buffer|
|00001a90| 20 70 72 69 6e 74 66 6c | 61 67 5d 20 33 20 22 5c | printfl|ag] 3 "\|
|00001aa0| 0a 45 76 61 6c 75 61 74 | 65 20 74 68 65 20 63 75 |.Evaluat|e the cu|
|00001ab0| 72 72 65 6e 74 20 62 75 | 66 66 65 72 20 61 73 20 |rrent bu|ffer as |
|00001ac0| 4c 69 73 70 20 63 6f 64 | 65 2e 0a 50 72 6f 67 72 |Lisp cod|e..Progr|
|00001ad0| 61 6d 73 20 63 61 6e 20 | 70 61 73 73 20 61 72 67 |ams can |pass arg|
|00001ae0| 75 6d 65 6e 74 20 50 52 | 49 4e 54 46 4c 41 47 20 |ument PR|INTFLAG |
|00001af0| 77 68 69 63 68 20 63 6f | 6e 74 72 6f 6c 73 20 70 |which co|ntrols p|
|00001b00| 72 69 6e 74 69 6e 67 20 | 6f 66 20 6f 75 74 70 75 |rinting |of outpu|
|00001b10| 74 3a 0a 6e 69 6c 20 6d | 65 61 6e 73 20 64 69 73 |t:.nil m|eans dis|
|00001b20| 63 61 72 64 20 69 74 3b | 20 61 6e 79 74 68 69 6e |card it;| anythin|
|00001b30| 67 20 65 6c 73 65 20 69 | 73 20 73 74 72 65 61 6d |g else i|s stream|
|00001b40| 20 66 6f 72 20 70 72 69 | 6e 74 2e 22 20 6e 69 6c | for pri|nt." nil|
|00001b50| 5d 29 0a 28 62 79 74 65 | 2d 63 6f 64 65 20 22 c0 |]).(byte|-code ".|
|00001b60| c1 4d 88 c2 c3 4d 87 22 | 20 5b 63 6f 75 6e 74 2d |.M...M."| [count-|
|00001b70| 77 6f 72 64 73 2d 62 75 | 66 66 65 72 20 23 5b 28 |words-bu|ffer #[(|
|00001b80| 62 29 20 22 8a 08 ae 81 | 70 89 19 71 88 c2 c3 c4 |b) "....|p..q....|
|00001b90| 65 64 5c 22 5c 22 2a 87 | 22 20 5b 62 20 62 75 66 |ed\"\"*.|" [b buf|
|00001ba0| 20 6d 65 73 73 61 67 65 | 20 22 42 75 66 66 65 72 | message| "Buffer|
|00001bb0| 20 68 61 73 20 25 64 20 | 77 6f 72 64 73 22 20 63 | has %d |words" c|
|00001bc0| 6f 75 6e 74 2d 77 6f 72 | 64 73 2d 72 65 67 69 6f |ount-wor|ds-regio|
|00001bd0| 6e 5d 20 36 20 6e 69 6c | 20 22 62 22 5d 20 63 6f |n] 6 nil| "b"] co|
|00001be0| 75 6e 74 2d 77 6f 72 64 | 73 2d 72 65 67 69 6f 6e |unt-word|s-region|
|00001bf0| 20 23 5b 28 73 74 61 72 | 74 20 65 6e 64 29 20 22 | #[(star|t end) "|
|00001c00| 8a c0 19 5c 6e 62 88 60 | 0b 57 ab 89 c4 76 ab 77 |...\nb.`|.W...v.w|
|00001c10| 09 54 11 aa 72 c5 c6 09 | 5c 22 88 09 2a 87 22 20 |.T..r...|\"..*." |
|00001c20| 5b 30 20 6e 20 73 74 61 | 72 74 20 65 6e 64 20 31 |[0 n sta|rt end 1|
|00001c30| 20 6d 65 73 73 61 67 65 | 20 22 52 65 67 69 6f 6e | message| "Region|
|00001c40| 20 68 61 73 20 25 64 20 | 77 6f 72 64 73 22 5d 20 | has %d |words"] |
|00001c50| 33 20 6e 69 6c 20 22 72 | 22 5d 5d 20 32 29 0a 28 |3 nil "r|"]] 2).(|
|00001c60| 66 73 65 74 20 27 63 6f | 75 6e 74 2d 6c 69 6e 65 |fset 'co|unt-line|
|00001c70| 73 2d 72 65 67 69 6f 6e | 20 23 5b 28 73 74 61 72 |s-region| #[(star|
|00001c80| 74 20 65 6e 64 29 20 22 | c0 09 5c 6e 5c 22 1b c4 |t end) "|..\n\"..|
|00001c90| c5 0b 5c 6e 09 5a 23 88 | 0b 29 87 22 20 5b 63 6f |..\n.Z#.|.)." [co|
|00001ca0| 75 6e 74 2d 6c 69 6e 65 | 73 20 73 74 61 72 74 20 |unt-line|s start |
|00001cb0| 65 6e 64 20 6e 20 6d 65 | 73 73 61 67 65 20 22 52 |end n me|ssage "R|
|00001cc0| 65 67 69 6f 6e 20 68 61 | 73 20 25 64 20 6c 69 6e |egion ha|s %d lin|
|00001cd0| 65 73 2c 20 25 64 20 63 | 68 61 72 61 63 74 65 72 |es, %d c|haracter|
|00001ce0| 73 22 5d 20 35 20 22 5c | 0a 50 72 69 6e 74 20 6e |s"] 5 "\|.Print n|
|00001cf0| 75 6d 62 65 72 20 6f 66 | 20 6c 69 6e 65 73 20 61 |umber of| lines a|
|00001d00| 6e 64 20 63 68 61 72 61 | 63 74 65 72 73 20 69 6e |nd chara|cters in|
|00001d10| 20 74 68 65 20 72 65 67 | 69 6f 6e 2e 22 20 22 5f | the reg|ion." "_|
|00001d20| 72 22 5d 29 0a 28 66 73 | 65 74 20 27 63 6f 75 6e |r"]).(fs|et 'coun|
|00001d30| 74 2d 6c 69 6e 65 73 2d | 62 75 66 66 65 72 20 23 |t-lines-|buffer #|
|00001d40| 5b 28 62 29 20 22 8a 08 | ae 81 70 c1 1a 89 1b 71 |[(b) "..|..p....q|
|00001d50| 88 c4 65 64 5c 22 12 c5 | c6 5c 6e 64 65 5a 23 88 |..ed\"..|.\ndeZ#.|
|00001d60| 5c 6e 2b 87 22 20 5b 62 | 20 6e 69 6c 20 63 6e 74 |\n+." [b| nil cnt|
|00001d70| 20 62 75 66 20 63 6f 75 | 6e 74 2d 6c 69 6e 65 73 | buf cou|nt-lines|
|00001d80| 20 6d 65 73 73 61 67 65 | 20 22 52 65 67 69 6f 6e | message| "Region|
|00001d90| 20 68 61 73 20 25 64 20 | 6c 69 6e 65 73 2c 20 25 | has %d |lines, %|
|00001da0| 64 20 63 68 61 72 61 63 | 74 65 72 73 22 5d 20 36 |d charac|ters"] 6|
|00001db0| 20 22 5c 0a 50 72 69 6e | 74 20 6e 75 6d 62 65 72 | "\.Prin|t number|
|00001dc0| 20 6f 66 20 6c 69 6e 65 | 73 20 61 6e 64 20 63 68 | of line|s and ch|
|00001dd0| 61 72 63 74 65 72 73 20 | 69 6e 20 74 68 65 20 73 |arcters |in the s|
|00001de0| 70 65 63 69 66 69 65 64 | 20 62 75 66 66 65 72 2e |pecified| buffer.|
|00001df0| 22 20 22 5f 62 22 5d 29 | 0a 28 66 73 65 74 20 27 |" "_b"])|.(fset '|
|00001e00| 77 68 61 74 2d 6c 69 6e | 65 20 23 5b 6e 69 6c 20 |what-lin|e #[nil |
|00001e10| 22 8c 7e 88 8a c0 79 88 | c1 c2 c3 c4 60 5c 22 54 |".~...y.|....`\"T|
|00001e20| 5c 22 2a 87 22 20 5b 30 | 20 6d 65 73 73 61 67 65 |\"*." [0| message|
|00001e30| 20 22 4c 69 6e 65 20 25 | 64 22 20 63 6f 75 6e 74 | "Line %|d" count|
|00001e40| 2d 6c 69 6e 65 73 20 31 | 5d 20 35 20 22 5c 0a 50 |-lines 1|] 5 "\.P|
|00001e50| 72 69 6e 74 20 74 68 65 | 20 63 75 72 72 65 6e 74 |rint the| current|
|00001e60| 20 6c 69 6e 65 20 6e 75 | 6d 62 65 72 20 28 69 6e | line nu|mber (in|
|00001e70| 20 74 68 65 20 62 75 66 | 66 65 72 29 20 6f 66 20 | the buf|fer) of |
|00001e80| 70 6f 69 6e 74 2e 22 20 | 22 5f 22 5d 29 0a 28 66 |point." |"_"]).(f|
|00001e90| 73 65 74 20 27 63 6f 75 | 6e 74 2d 6c 69 6e 65 73 |set 'cou|nt-lines|
|00001ea0| 20 23 5b 28 73 74 61 72 | 74 20 65 6e 64 29 20 22 | #[(star|t end) "|
|00001eb0| c0 20 19 c2 8e 8a 8c 0b | 0c 7d 88 65 62 88 0d c6 |. ......|.}.eb...|
|00001ec0| 3d ab b8 c7 1e 08 c9 ca | cb c6 cc 24 ab 88 0e 08 |=.......|...$....|
|00001ed0| cc 5c 5c 16 08 aa 70 c9 | ca cb c6 cd 24 ab 88 0e |.\\...p.|....$...|
|00001ee0| 08 cd 5c 5c 16 08 aa 70 | 64 62 88 0b 0c 55 ac 88 |..\\...p|db...U..|
|00001ef0| 6e ac 85 0e 08 54 aa 82 | 0e 08 29 aa 86 ce 20 ce |n....T..|..)... .|
|00001f00| 20 79 5a 2c 87 22 20 5b | 6d 61 74 63 68 2d 64 61 | yZ,." [|match-da|
|00001f10| 74 61 20 5f 6d 61 74 63 | 68 5f 64 61 74 61 5f 20 |ta _matc|h_data_ |
|00001f20| 28 28 73 74 6f 72 65 2d | 6d 61 74 63 68 2d 64 61 |((store-|match-da|
|00001f30| 74 61 20 5f 6d 61 74 63 | 68 5f 64 61 74 61 5f 29 |ta _matc|h_data_)|
|00001f40| 29 20 73 74 61 72 74 20 | 65 6e 64 20 73 65 6c 65 |) start |end sele|
|00001f50| 63 74 69 76 65 2d 64 69 | 73 70 6c 61 79 20 74 20 |ctive-di|splay t |
|00001f60| 30 20 64 6f 6e 65 20 72 | 65 2d 73 65 61 72 63 68 |0 done r|e-search|
|00001f70| 2d 66 6f 72 77 61 72 64 | 20 22 5b 5c 6e 0d 5d 22 |-forward| "[\n.]"|
|00001f80| 20 6e 69 6c 20 34 30 20 | 31 20 62 75 66 66 65 72 | nil 40 |1 buffer|
|00001f90| 2d 73 69 7a 65 5d 20 35 | 20 22 5c 0a 52 65 74 75 |-size] 5| "\.Retu|
|00001fa0| 72 6e 20 6e 75 6d 62 65 | 72 20 6f 66 20 6c 69 6e |rn numbe|r of lin|
|00001fb0| 65 73 20 62 65 74 77 65 | 65 6e 20 53 54 41 52 54 |es betwe|en START|
|00001fc0| 20 61 6e 64 20 45 4e 44 | 2e 0a 54 68 69 73 20 69 | and END|..This i|
|00001fd0| 73 20 75 73 75 61 6c 6c | 79 20 74 68 65 20 6e 75 |s usuall|y the nu|
|00001fe0| 6d 62 65 72 20 6f 66 20 | 6e 65 77 6c 69 6e 65 73 |mber of |newlines|
|00001ff0| 20 62 65 74 77 65 65 6e | 20 74 68 65 6d 2c 0a 62 | between| them,.b|
|00002000| 75 74 20 63 61 6e 20 62 | 65 20 6f 6e 65 20 6d 6f |ut can b|e one mo|
|00002010| 72 65 20 69 66 20 53 54 | 41 52 54 20 69 73 20 6e |re if ST|ART is n|
|00002020| 6f 74 20 65 71 75 61 6c | 20 74 6f 20 45 4e 44 0a |ot equal| to END.|
|00002030| 61 6e 64 20 74 68 65 20 | 67 72 65 61 74 65 72 20 |and the |greater |
|00002040| 6f 66 20 74 68 65 6d 20 | 69 73 20 6e 6f 74 20 61 |of them |is not a|
|00002050| 74 20 74 68 65 20 73 74 | 61 72 74 20 6f 66 20 61 |t the st|art of a|
|00002060| 20 6c 69 6e 65 2e 22 5d | 29 0a 28 66 73 65 74 20 | line."]|).(fset |
|00002070| 27 77 68 61 74 2d 63 75 | 72 73 6f 72 2d 70 6f 73 |'what-cu|rsor-pos|
|00002080| 69 74 69 6f 6e 20 23 5b | 6e 69 6c 20 22 67 18 65 |ition #[|nil "g.e|
|00002090| 19 64 1a 60 1b c4 20 89 | 1d c6 56 ab 8e 0d c7 a5 |.d.`.. .|..V.....|
|000020a0| 0b 53 5c 5c 0d c8 a5 c9 | 5d a5 aa 8c 0d ca a5 0b |.S\\....|].......|
|000020b0| 53 c8 5f 5c 5c 0d c9 5d | a5 1e 0b cc 20 cd 55 ab |S._\\..]|.... .U.|
|000020c0| 83 ce aa 85 cf d0 cc 20 | 5c 22 1e 11 69 1e 12 0b |....... |\"..i...|
|000020d0| 5c 6e 55 ab a9 09 c9 55 | ab 86 5c 6e 0d 54 55 ac |\nU....U|..\n.TU.|
|000020e0| 90 d3 d4 0b 0d 0e 0b 09 | 5c 6e 0e 12 0e 11 26 08 |........|\n....&.|
|000020f0| aa bd d3 d5 0b 0d 0e 0b | 0e 12 0e 11 26 06 aa af |........|....&...|
|00002100| 09 c9 55 ab 86 5c 6e 0d | 54 55 ac 94 d3 d6 d7 08 |..U..\n.|TU......|
|00002110| 21 08 0b 0d 0e 0b 09 5c | 6e 0e 12 0e 11 26 5c 6e |!......\|n....&\n|
|00002120| aa 90 d3 d8 d7 08 21 08 | 0b 0d 0e 0b 0e 12 0e 11 |......!.|........|
|00002130| 26 08 2e 08 87 22 20 5b | 63 68 61 72 20 62 65 67 |&...." [|char beg|
|00002140| 20 65 6e 64 20 70 6f 73 | 20 62 75 66 66 65 72 2d | end pos| buffer-|
|00002150| 73 69 7a 65 20 74 6f 74 | 61 6c 20 35 30 30 30 30 |size tot|al 50000|
|00002160| 20 32 30 30 20 31 30 30 | 20 31 20 32 20 70 65 72 | 200 100| 1 2 per|
|00002170| 63 65 6e 74 20 77 69 6e | 64 6f 77 2d 68 73 63 72 |cent win|dow-hscr|
|00002180| 6f 6c 6c 20 30 20 22 22 | 20 66 6f 72 6d 61 74 20 |oll 0 ""| format |
|00002190| 22 20 48 73 63 72 6f 6c | 6c 3d 25 64 22 20 68 73 |" Hscrol|l=%d" hs|
|000021a0| 63 72 6f 6c 6c 20 63 6f | 6c 20 6d 65 73 73 61 67 |croll co|l messag|
|000021b0| 65 20 22 70 6f 69 6e 74 | 3d 25 64 20 6f 66 20 25 |e "point|=%d of %|
|000021c0| 64 28 25 64 25 25 29 20 | 3c 25 64 20 2d 20 25 64 |d(%d%%) |<%d - %d|
|000021d0| 3e 20 20 63 6f 6c 75 6d | 6e 20 25 64 20 25 73 22 |> colum|n %d %s"|
|000021e0| 20 22 70 6f 69 6e 74 3d | 25 64 20 6f 66 20 25 64 | "point=|%d of %d|
|000021f0| 28 25 64 25 25 29 20 20 | 63 6f 6c 75 6d 6e 20 25 |(%d%%) |column %|
|00002200| 64 20 25 73 22 20 22 43 | 68 61 72 3a 20 25 73 20 |d %s" "C|har: %s |
|00002210| 28 30 25 6f 29 20 20 70 | 6f 69 6e 74 3d 25 64 20 |(0%o) p|oint=%d |
|00002220| 6f 66 20 25 64 28 25 64 | 25 25 29 20 3c 25 64 20 |of %d(%d|%%) <%d |
|00002230| 2d 20 25 64 3e 20 20 63 | 6f 6c 75 6d 6e 20 25 64 |- %d> c|olumn %d|
|00002240| 20 25 73 22 20 74 65 78 | 74 2d 63 68 61 72 2d 64 | %s" tex|t-char-d|
|00002250| 65 73 63 72 69 70 74 69 | 6f 6e 20 22 43 68 61 72 |escripti|on "Char|
|00002260| 3a 20 25 73 20 28 30 25 | 6f 29 20 20 70 6f 69 6e |: %s (0%|o) poin|
|00002270| 74 3d 25 64 20 6f 66 20 | 25 64 28 25 64 25 25 29 |t=%d of |%d(%d%%)|
|00002280| 20 20 63 6f 6c 75 6d 6e | 20 25 64 20 25 73 22 5d | column| %d %s"]|
|00002290| 20 31 32 20 22 5c 0a 50 | 72 69 6e 74 20 69 6e 66 | 12 "\.P|rint inf|
|000022a0| 6f 20 6f 6e 20 63 75 72 | 73 6f 72 20 70 6f 73 69 |o on cur|sor posi|
|000022b0| 74 69 6f 6e 20 28 6f 6e | 20 73 63 72 65 65 6e 20 |tion (on| screen |
|000022c0| 61 6e 64 20 77 69 74 68 | 69 6e 20 62 75 66 66 65 |and with|in buffe|
|000022d0| 72 29 2e 22 20 22 5f 22 | 5d 29 0a 28 66 73 65 74 |r)." "_"|]).(fset|
|000022e0| 20 27 66 75 6e 64 61 6d | 65 6e 74 61 6c 2d 6d 6f | 'fundam|ental-mo|
|000022f0| 64 65 20 23 5b 6e 69 6c | 20 22 c0 20 87 22 20 5b |de #[nil| ". ." [|
|00002300| 6b 69 6c 6c 2d 61 6c 6c | 2d 6c 6f 63 61 6c 2d 76 |kill-all|-local-v|
|00002310| 61 72 69 61 62 6c 65 73 | 5d 20 31 20 22 5c 0a 4d |ariables|] 1 "\.M|
|00002320| 61 6a 6f 72 20 6d 6f 64 | 65 20 6e 6f 74 20 73 70 |ajor mod|e not sp|
|00002330| 65 63 69 61 6c 69 7a 65 | 64 20 66 6f 72 20 61 6e |ecialize|d for an|
|00002340| 79 74 68 69 6e 67 20 69 | 6e 20 70 61 72 74 69 63 |ything i|n partic|
|00002350| 75 6c 61 72 2e 0a 4f 74 | 68 65 72 20 6d 61 6a 6f |ular..Ot|her majo|
|00002360| 72 20 6d 6f 64 65 73 20 | 61 72 65 20 64 65 66 69 |r modes |are defi|
|00002370| 6e 65 64 20 62 79 20 63 | 6f 6d 70 61 72 69 73 6f |ned by c|ompariso|
|00002380| 6e 20 77 69 74 68 20 74 | 68 69 73 20 6f 6e 65 2e |n with t|his one.|
|00002390| 22 20 6e 69 6c 5d 29 0a | 28 66 73 65 74 20 27 65 |" nil]).|(fset 'e|
|000023a0| 76 61 6c 2d 65 78 70 72 | 65 73 73 69 6f 6e 20 23 |val-expr|ession #|
|000023b0| 5b 28 65 78 70 72 65 73 | 73 69 6f 6e 29 20 22 c0 |[(expres|sion) ".|
|000023c0| 09 21 5c 6e 42 12 c3 5c | 6e 40 c4 5c 22 87 22 20 |.!\nB..\|n@.\"." |
|000023d0| 5b 65 76 61 6c 20 65 78 | 70 72 65 73 73 69 6f 6e |[eval ex|pression|
|000023e0| 20 76 61 6c 75 65 73 20 | 70 72 69 6e 31 20 74 5d | values |prin1 t]|
|000023f0| 20 33 20 22 5c 0a 45 76 | 61 6c 75 61 74 65 20 45 | 3 "\.Ev|aluate E|
|00002400| 58 50 52 45 53 53 49 4f | 4e 20 61 6e 64 20 70 72 |XPRESSIO|N and pr|
|00002410| 69 6e 74 20 76 61 6c 75 | 65 20 69 6e 20 6d 69 6e |int valu|e in min|
|00002420| 69 62 75 66 66 65 72 2e | 0a 56 61 6c 75 65 20 69 |ibuffer.|.Value i|
|00002430| 73 20 61 6c 73 6f 20 63 | 6f 6e 73 65 64 20 6f 6e |s also c|onsed on|
|00002440| 20 74 6f 20 66 72 6f 6e | 74 20 6f 66 20 74 68 65 | to fron|t of the|
|00002450| 20 76 61 72 69 61 62 6c | 65 20 60 76 61 6c 75 65 | variabl|e `value|
|00002460| 73 27 2e 22 20 22 78 45 | 76 61 6c 3a 20 22 5d 29 |s'." "xE|val: "])|
|00002470| 0a 28 66 73 65 74 20 27 | 65 64 69 74 2d 61 6e 64 |.(fset '|edit-and|
|00002480| 2d 65 76 61 6c 2d 63 6f | 6d 6d 61 6e 64 20 23 5b |-eval-co|mmand #[|
|00002490| 28 70 72 6f 6d 70 74 20 | 63 6f 6d 6d 61 6e 64 20 |(prompt |command |
|000024a0| 26 6f 70 74 69 6f 6e 61 | 6c 20 68 69 73 74 6f 72 |&optiona|l histor|
|000024b0| 79 29 20 22 c0 c1 5c 6e | c3 c4 c5 8f 0e 06 ae 81 |y) "..\n|........|
|000024c0| c7 23 21 87 22 20 5b 65 | 76 61 6c 20 72 65 61 64 |.#!." [e|val read|
|000024d0| 2d 65 78 70 72 65 73 73 | 69 6f 6e 20 70 72 6f 6d |-express|ion prom|
|000024e0| 70 74 20 6e 69 6c 20 28 | 62 79 74 65 2d 63 6f 64 |pt nil (|byte-cod|
|000024f0| 65 20 22 c0 19 c2 0b 21 | 29 87 22 20 5b 74 20 70 |e "....!|)." [t p|
|00002500| 72 69 6e 74 2d 72 65 61 | 64 61 62 6c 79 20 70 72 |rint-rea|dably pr|
|00002510| 69 6e 31 2d 74 6f 2d 73 | 74 72 69 6e 67 20 63 6f |in1-to-s|tring co|
|00002520| 6d 6d 61 6e 64 5d 20 32 | 29 20 28 28 65 72 72 6f |mmand] 2|) ((erro|
|00002530| 72 20 28 70 72 69 6e 31 | 2d 74 6f 2d 73 74 72 69 |r (prin1|-to-stri|
|00002540| 6e 67 20 63 6f 6d 6d 61 | 6e 64 29 29 29 20 68 69 |ng comma|nd))) hi|
|00002550| 73 74 6f 72 79 20 28 63 | 6f 6d 6d 61 6e 64 2d 68 |story (c|ommand-h|
|00002560| 69 73 74 6f 72 79 20 2e | 20 31 29 5d 20 36 20 22 |istory .| 1)] 6 "|
|00002570| 5c 0a 50 72 6f 6d 70 74 | 69 6e 67 20 77 69 74 68 |\.Prompt|ing with|
|00002580| 20 50 52 4f 4d 50 54 2c | 20 6c 65 74 20 75 73 65 | PROMPT,| let use|
|00002590| 72 20 65 64 69 74 20 43 | 4f 4d 4d 41 4e 44 20 61 |r edit C|OMMAND a|
|000025a0| 6e 64 20 65 76 61 6c 20 | 72 65 73 75 6c 74 2e 0a |nd eval |result..|
|000025b0| 43 4f 4d 4d 41 4e 44 20 | 69 73 20 61 20 4c 69 73 |COMMAND |is a Lis|
|000025c0| 70 20 65 78 70 72 65 73 | 73 69 6f 6e 2e 20 20 4c |p expres|sion. L|
|000025d0| 65 74 20 75 73 65 72 20 | 65 64 69 74 20 74 68 61 |et user |edit tha|
|000025e0| 74 20 65 78 70 72 65 73 | 73 69 6f 6e 20 69 6e 0a |t expres|sion in.|
|000025f0| 74 68 65 20 6d 69 6e 69 | 62 75 66 66 65 72 2c 20 |the mini|buffer, |
|00002600| 74 68 65 6e 20 72 65 61 | 64 20 61 6e 64 20 65 76 |then rea|d and ev|
|00002610| 61 6c 75 61 74 65 20 74 | 68 65 20 72 65 73 75 6c |aluate t|he resul|
|00002620| 74 2e 22 5d 29 0a 28 66 | 73 65 74 20 27 72 65 70 |t."]).(f|set 'rep|
|00002630| 65 61 74 2d 63 6f 6d 70 | 6c 65 78 2d 63 6f 6d 6d |eat-comp|lex-comm|
|00002640| 61 6e 64 20 23 5b 28 61 | 72 67 29 20 22 c0 c1 5c |and #[(a|rg) "..\|
|00002650| 6e 53 0b 38 ae 83 c4 c5 | 21 c3 5c 6e 42 23 87 22 |nS.8....|!.\nB#."|
|00002660| 20 5b 65 64 69 74 2d 61 | 6e 64 2d 65 76 61 6c 2d | [edit-a|nd-eval-|
|00002670| 63 6f 6d 6d 61 6e 64 20 | 22 52 65 64 6f 3a 20 22 |command |"Redo: "|
|00002680| 20 61 72 67 20 63 6f 6d | 6d 61 6e 64 2d 68 69 73 | arg com|mand-his|
|00002690| 74 6f 72 79 20 65 72 72 | 6f 72 20 22 22 5d 20 35 |tory err|or ""] 5|
|000026a0| 20 22 5c 0a 45 64 69 74 | 20 61 6e 64 20 72 65 2d | "\.Edit| and re-|
|000026b0| 65 76 61 6c 75 61 74 65 | 20 6c 61 73 74 20 63 6f |evaluate| last co|
|000026c0| 6d 70 6c 65 78 20 63 6f | 6d 6d 61 6e 64 2c 20 6f |mplex co|mmand, o|
|000026d0| 72 20 41 52 47 74 68 20 | 66 72 6f 6d 20 6c 61 73 |r ARGth |from las|
|000026e0| 74 2e 0a 41 20 63 6f 6d | 70 6c 65 78 20 63 6f 6d |t..A com|plex com|
|000026f0| 6d 61 6e 64 20 69 73 20 | 6f 6e 65 20 77 68 69 63 |mand is |one whic|
|00002700| 68 20 75 73 65 64 20 74 | 68 65 20 6d 69 6e 69 62 |h used t|he minib|
|00002710| 75 66 66 65 72 2e 0a 54 | 68 65 20 63 6f 6d 6d 61 |uffer..T|he comma|
|00002720| 6e 64 20 69 73 20 70 6c | 61 63 65 64 20 69 6e 20 |nd is pl|aced in |
|00002730| 74 68 65 20 6d 69 6e 69 | 62 75 66 66 65 72 20 61 |the mini|buffer a|
|00002740| 73 20 61 20 4c 69 73 70 | 20 66 6f 72 6d 20 66 6f |s a Lisp| form fo|
|00002750| 72 20 65 64 69 74 69 6e | 67 2e 0a 54 68 65 20 72 |r editin|g..The r|
|00002760| 65 73 75 6c 74 20 69 73 | 20 65 78 65 63 75 74 65 |esult is| execute|
|00002770| 64 2c 20 72 65 70 65 61 | 74 69 6e 67 20 74 68 65 |d, repea|ting the|
|00002780| 20 63 6f 6d 6d 61 6e 64 | 20 61 73 20 63 68 61 6e | command| as chan|
|00002790| 67 65 64 2e 0a 49 66 20 | 74 68 65 20 63 6f 6d 6d |ged..If |the comm|
|000027a0| 61 6e 64 20 68 61 73 20 | 62 65 65 6e 20 63 68 61 |and has |been cha|
|000027b0| 6e 67 65 64 20 6f 72 20 | 69 73 20 6e 6f 74 20 74 |nged or |is not t|
|000027c0| 68 65 20 6d 6f 73 74 20 | 72 65 63 65 6e 74 20 70 |he most |recent p|
|000027d0| 72 65 76 69 6f 75 73 20 | 63 6f 6d 6d 61 6e 64 0a |revious |command.|
|000027e0| 69 74 20 69 73 20 61 64 | 64 65 64 20 74 6f 20 74 |it is ad|ded to t|
|000027f0| 68 65 20 66 72 6f 6e 74 | 20 6f 66 20 74 68 65 20 |he front| of the |
|00002800| 63 6f 6d 6d 61 6e 64 20 | 68 69 73 74 6f 72 79 2e |command |history.|
|00002810| 0a 59 6f 75 20 63 61 6e | 20 75 73 65 20 74 68 65 |.You can| use the|
|00002820| 20 6d 69 6e 69 62 75 66 | 66 65 72 20 68 69 73 74 | minibuf|fer hist|
|00002830| 6f 72 79 20 63 6f 6d 6d | 61 6e 64 73 20 5c 5c 3c |ory comm|ands \\<|
|00002840| 6d 69 6e 69 62 75 66 66 | 65 72 2d 6c 6f 63 61 6c |minibuff|er-local|
|00002850| 2d 6d 61 70 3e 5c 5c 5b | 6e 65 78 74 2d 68 69 73 |-map>\\[|next-his|
|00002860| 74 6f 72 79 2d 65 6c 65 | 6d 65 6e 74 5d 20 61 6e |tory-ele|ment] an|
|00002870| 64 20 5c 5c 5b 70 72 65 | 76 69 6f 75 73 2d 68 69 |d \\[pre|vious-hi|
|00002880| 73 74 6f 72 79 2d 65 6c | 65 6d 65 6e 74 5d 0a 74 |story-el|ement].t|
|00002890| 6f 20 67 65 74 20 64 69 | 66 66 65 72 65 6e 74 20 |o get di|fferent |
|000028a0| 63 6f 6d 6d 61 6e 64 73 | 20 74 6f 20 65 64 69 74 |commands| to edit|
|000028b0| 20 61 6e 64 20 72 65 73 | 75 62 6d 69 74 2e 22 20 | and res|ubmit." |
|000028c0| 22 70 22 5d 29 0a 28 66 | 73 65 74 20 27 67 6f 74 |"p"]).(f|set 'got|
|000028d0| 6f 2d 6c 69 6e 65 20 23 | 5b 28 61 72 67 29 20 22 |o-line #|[(arg) "|
|000028e0| 8c 7e 88 c0 62 88 09 c2 | 3d ab 8a c3 c4 c5 c6 0e |.~..b...|=.......|
|000028f0| 07 53 24 aa 84 0e 07 53 | 79 29 87 22 20 5b 31 20 |.S$....S|y)." [1 |
|00002900| 73 65 6c 65 63 74 69 76 | 65 2d 64 69 73 70 6c 61 |selectiv|e-displa|
|00002910| 79 20 74 20 72 65 2d 73 | 65 61 72 63 68 2d 66 6f |y t re-s|earch-fo|
|00002920| 72 77 61 72 64 20 22 5b | 5c 6e 0d 5d 22 20 6e 69 |rward "[|\n.]" ni|
|00002930| 6c 20 65 6e 64 20 61 72 | 67 5d 20 35 20 22 5c 0a |l end ar|g] 5 "\.|
|00002940| 47 6f 74 6f 20 6c 69 6e | 65 20 41 52 47 2c 20 63 |Goto lin|e ARG, c|
|00002950| 6f 75 6e 74 69 6e 67 20 | 66 72 6f 6d 20 6c 69 6e |ounting |from lin|
|00002960| 65 20 31 20 61 74 20 62 | 65 67 69 6e 6e 69 6e 67 |e 1 at b|eginning|
|00002970| 20 6f 66 20 62 75 66 66 | 65 72 2e 22 20 22 4e 47 | of buff|er." "NG|
|00002980| 6f 74 6f 20 6c 69 6e 65 | 3a 20 22 5d 29 0a 28 64 |oto line|: "]).(d|
|00002990| 65 66 69 6e 65 2d 66 75 | 6e 63 74 69 6f 6e 20 27 |efine-fu|nction '|
|000029a0| 61 64 76 65 72 74 69 73 | 65 64 2d 75 6e 64 6f 20 |advertis|ed-undo |
|000029b0| 27 75 6e 64 6f 29 0a 28 | 66 73 65 74 20 27 75 6e |'undo).(|fset 'un|
|000029c0| 64 6f 20 23 5b 28 26 6f | 70 74 69 6f 6e 61 6c 20 |do #[(&o|ptional |
|000029d0| 61 72 67 29 20 22 c0 11 | c2 20 c3 20 1c 1d c6 20 |arg) "..|. . ... |
|000029e0| c7 20 3d ac 84 c8 c9 21 | 88 0e 5c 6e cb 3d ab 86 |. =....!|..\n.=..|
|000029f0| 70 0e 0c 3d ac 87 cd 20 | 88 ce cf 21 88 ce 0e 10 |p..=... |...!....|
|00002a00| ae 81 cf 21 88 0e 11 d2 | 1e 13 89 1e 14 ab a3 0e |...!....|........|
|00002a10| 13 ac 9f 0e 14 40 ab 9a | 0e 14 40 a8 ab 8c c0 16 |.....@..|..@.....|
|00002a20| 13 d5 0e 14 40 0e 11 5c | 22 16 11 0e 14 41 89 16 |....@..\|"....A..|
|00002a30| 14 ac 5d 2a 0d ab 88 c2 | 20 ac 84 d6 0c 21 88 2a |..]*....| ....!.*|
|00002a40| cb 89 11 87 22 20 5b 74 | 20 74 68 69 73 2d 63 6f |...." [t| this-co|
|00002a50| 6d 6d 61 6e 64 20 62 75 | 66 66 65 72 2d 6d 6f 64 |mmand bu|ffer-mod|
|00002a60| 69 66 69 65 64 2d 70 20 | 72 65 63 65 6e 74 2d 61 |ified-p |recent-a|
|00002a70| 75 74 6f 2d 73 61 76 65 | 2d 70 20 72 65 63 65 6e |uto-save|-p recen|
|00002a80| 74 2d 73 61 76 65 20 6d | 6f 64 69 66 69 65 64 20 |t-save m|odified |
|00002a90| 73 65 6c 65 63 74 65 64 | 2d 77 69 6e 64 6f 77 20 |selected|-window |
|00002aa0| 6d 69 6e 69 62 75 66 66 | 65 72 2d 77 69 6e 64 6f |minibuff|er-windo|
|00002ab0| 77 20 6d 65 73 73 61 67 | 65 20 22 55 6e 64 6f 21 |w messag|e "Undo!|
|00002ac0| 22 20 6c 61 73 74 2d 63 | 6f 6d 6d 61 6e 64 20 75 |" last-c|ommand u|
|00002ad0| 6e 64 6f 20 6c 61 73 74 | 2d 75 6e 64 6f 2d 62 75 |ndo last|-undo-bu|
|00002ae0| 66 66 65 72 20 75 6e 64 | 6f 2d 73 74 61 72 74 20 |ffer und|o-start |
|00002af0| 75 6e 64 6f 2d 6d 6f 72 | 65 20 31 20 61 72 67 20 |undo-mor|e 1 arg |
|00002b00| 62 75 66 66 65 72 2d 75 | 6e 64 6f 2d 6c 69 73 74 |buffer-u|ndo-list|
|00002b10| 20 6e 69 6c 20 64 6f 6e | 65 20 74 61 69 6c 20 64 | nil don|e tail d|
|00002b20| 65 6c 71 20 64 65 6c 65 | 74 65 2d 61 75 74 6f 2d |elq dele|te-auto-|
|00002b30| 73 61 76 65 2d 66 69 6c | 65 2d 69 66 2d 6e 65 63 |save-fil|e-if-nec|
|00002b40| 65 73 73 61 72 79 5d 20 | 34 20 22 5c 0a 55 6e 64 |essary] |4 "\.Und|
|00002b50| 6f 20 73 6f 6d 65 20 70 | 72 65 76 69 6f 75 73 20 |o some p|revious |
|00002b60| 63 68 61 6e 67 65 73 2e | 0a 52 65 70 65 61 74 20 |changes.|.Repeat |
|00002b70| 74 68 69 73 20 63 6f 6d | 6d 61 6e 64 20 74 6f 20 |this com|mand to |
|00002b80| 75 6e 64 6f 20 6d 6f 72 | 65 20 63 68 61 6e 67 65 |undo mor|e change|
|00002b90| 73 2e 0a 41 20 6e 75 6d | 65 72 69 63 20 61 72 67 |s..A num|eric arg|
|00002ba0| 75 6d 65 6e 74 20 73 65 | 72 76 65 73 20 61 73 20 |ument se|rves as |
|00002bb0| 61 20 72 65 70 65 61 74 | 20 63 6f 75 6e 74 2e 22 |a repeat| count."|
|00002bc0| 20 22 2a 70 22 5d 29 0a | 28 64 65 66 76 61 72 20 | "*p"]).|(defvar |
|00002bd0| 70 65 6e 64 69 6e 67 2d | 75 6e 64 6f 2d 6c 69 73 |pending-|undo-lis|
|00002be0| 74 20 6e 69 6c 20 22 5c | 0a 57 69 74 68 69 6e 20 |t nil "\|.Within |
|00002bf0| 61 20 72 75 6e 20 6f 66 | 20 63 6f 6e 73 65 63 75 |a run of| consecu|
|00002c00| 74 69 76 65 20 75 6e 64 | 6f 20 63 6f 6d 6d 61 6e |tive und|o comman|
|00002c10| 64 73 2c 20 6c 69 73 74 | 20 72 65 6d 61 69 6e 69 |ds, list| remaini|
|00002c20| 6e 67 20 74 6f 20 62 65 | 20 75 6e 64 6f 6e 65 2e |ng to be| undone.|
|00002c30| 22 29 0a 28 62 79 74 65 | 2d 63 6f 64 65 20 22 c0 |").(byte|-code ".|
|00002c40| c1 21 ac 82 c2 11 c2 87 | 22 20 5b 62 6f 75 6e 64 |.!......|" [bound|
|00002c50| 70 20 6c 61 73 74 2d 75 | 6e 64 6f 2d 62 75 66 66 |p last-u|ndo-buff|
|00002c60| 65 72 20 6e 69 6c 5d 20 | 32 29 0a 28 66 73 65 74 |er nil] |2).(fset|
|00002c70| 20 27 75 6e 64 6f 2d 73 | 74 61 72 74 20 23 5b 6e | 'undo-s|tart #[n|
|00002c80| 69 6c 20 22 08 c1 3d ab | 84 c2 c3 21 88 08 89 14 |il "..=.|...!....|
|00002c90| 87 22 20 5b 62 75 66 66 | 65 72 2d 75 6e 64 6f 2d |." [buff|er-undo-|
|00002ca0| 6c 69 73 74 20 74 20 65 | 72 72 6f 72 20 22 4e 6f |list t e|rror "No|
|00002cb0| 20 75 6e 64 6f 20 69 6e | 66 6f 72 6d 61 74 69 6f | undo in|formatio|
|00002cc0| 6e 20 69 6e 20 74 68 69 | 73 20 62 75 66 66 65 72 |n in thi|s buffer|
|00002cd0| 22 20 70 65 6e 64 69 6e | 67 2d 75 6e 64 6f 2d 6c |" pendin|g-undo-l|
|00002ce0| 69 73 74 5d 20 32 20 22 | 5c 0a 53 65 74 20 60 70 |ist] 2 "|\.Set `p|
|00002cf0| 65 6e 64 69 6e 67 2d 75 | 6e 64 6f 2d 6c 69 73 74 |ending-u|ndo-list|
|00002d00| 27 20 74 6f 20 74 68 65 | 20 66 72 6f 6e 74 20 6f |' to the| front o|
|00002d10| 66 20 74 68 65 20 75 6e | 64 6f 20 6c 69 73 74 2e |f the un|do list.|
|00002d20| 0a 54 68 65 20 6e 65 78 | 74 20 63 61 6c 6c 20 74 |.The nex|t call t|
|00002d30| 6f 20 60 75 6e 64 6f 2d | 6d 6f 72 65 27 20 77 69 |o `undo-|more' wi|
|00002d40| 6c 6c 20 75 6e 64 6f 20 | 74 68 65 20 6d 6f 73 74 |ll undo |the most|
|00002d50| 20 72 65 63 65 6e 74 6c | 79 20 6d 61 64 65 20 63 | recentl|y made c|
|00002d60| 68 61 6e 67 65 2e 22 5d | 29 0a 28 66 73 65 74 20 |hange."]|).(fset |
|00002d70| 27 75 6e 64 6f 2d 6d 6f | 72 65 20 23 5b 28 63 6f |'undo-mo|re #[(co|
|00002d80| 75 6e 74 29 20 22 08 ac | 84 c1 c2 21 88 c3 0c 08 |unt) "..|...!....|
|00002d90| 5c 22 10 70 89 15 87 22 | 20 5b 70 65 6e 64 69 6e |\".p..."| [pendin|
|00002da0| 67 2d 75 6e 64 6f 2d 6c | 69 73 74 20 65 72 72 6f |g-undo-l|ist erro|
|00002db0| 72 20 22 4e 6f 20 66 75 | 72 74 68 65 72 20 75 6e |r "No fu|rther un|
|00002dc0| 64 6f 20 69 6e 66 6f 72 | 6d 61 74 69 6f 6e 22 20 |do infor|mation" |
|00002dd0| 70 72 69 6d 69 74 69 76 | 65 2d 75 6e 64 6f 20 63 |primitiv|e-undo c|
|00002de0| 6f 75 6e 74 20 6c 61 73 | 74 2d 75 6e 64 6f 2d 62 |ount las|t-undo-b|
|00002df0| 75 66 66 65 72 5d 20 33 | 20 22 5c 0a 55 6e 64 6f |uffer] 3| "\.Undo|
|00002e00| 20 62 61 63 6b 20 4e 20 | 75 6e 64 6f 2d 62 6f 75 | back N |undo-bou|
|00002e10| 6e 64 61 72 69 65 73 20 | 62 65 79 6f 6e 64 20 77 |ndaries |beyond w|
|00002e20| 68 61 74 20 77 61 73 20 | 61 6c 72 65 61 64 79 20 |hat was |already |
|00002e30| 75 6e 64 6f 6e 65 20 72 | 65 63 65 6e 74 6c 79 2e |undone r|ecently.|
|00002e40| 0a 43 61 6c 6c 20 60 75 | 6e 64 6f 2d 73 74 61 72 |.Call `u|ndo-star|
|00002e50| 74 27 20 74 6f 20 67 65 | 74 20 72 65 61 64 79 20 |t' to ge|t ready |
|00002e60| 74 6f 20 75 6e 64 6f 20 | 72 65 63 65 6e 74 20 63 |to undo |recent c|
|00002e70| 68 61 6e 67 65 73 2c 0a | 74 68 65 6e 20 63 61 6c |hanges,.|then cal|
|00002e80| 6c 20 60 75 6e 64 6f 2d | 6d 6f 72 65 27 20 6f 6e |l `undo-|more' on|
|00002e90| 65 20 6f 72 20 6d 6f 72 | 65 20 74 69 6d 65 73 20 |e or mor|e times |
|00002ea0| 74 6f 20 75 6e 64 6f 20 | 74 68 65 6d 2e 22 5d 29 |to undo |them."])|
|00002eb0| 0a 28 66 73 65 74 20 27 | 63 61 6c 6c 2d 77 69 74 |.(fset '|call-wit|
|00002ec0| 68 2d 74 72 61 6e 73 70 | 61 72 65 6e 74 2d 75 6e |h-transp|arent-un|
|00002ed0| 64 6f 20 23 5b 28 66 6e | 20 26 72 65 73 74 20 61 |do #[(fn| &rest a|
|00002ee0| 72 67 73 29 20 22 c0 c1 | 89 70 1a 1b 1c 1d c6 8e |rgs) "..|.p......|
|00002ef0| c7 0e 08 0e 09 5c 22 2d | 87 22 20 5b 6e 69 6c 20 |.....\"-|." [nil |
|00002f00| 2d 31 20 6f 62 75 66 66 | 65 72 20 75 6e 64 6f 2d |-1 obuff|er undo-|
|00002f10| 74 68 72 65 73 68 6f 6c | 64 20 75 6e 64 6f 2d 68 |threshol|d undo-h|
|00002f20| 69 67 68 2d 74 68 72 65 | 73 68 6f 6c 64 20 62 75 |igh-thre|shold bu|
|00002f30| 66 66 65 72 2d 75 6e 64 | 6f 2d 6c 69 73 74 20 28 |ffer-und|o-list (|
|00002f40| 28 62 79 74 65 2d 63 6f | 64 65 20 22 08 71 88 8a |(byte-co|de ".q..|
|00002f50| c1 1a 8c 7e 88 0b 1c c5 | 13 0c ab 89 c6 0c 47 0c |...~....|......G.|
|00002f60| 5c 22 89 14 ac 77 2c c1 | 87 22 20 5b 6f 62 75 66 |\"...w,.|." [obuf|
|00002f70| 66 65 72 20 6e 69 6c 20 | 62 75 66 66 65 72 2d 72 |fer nil |buffer-r|
|00002f80| 65 61 64 2d 6f 6e 6c 79 | 20 62 75 66 66 65 72 2d |ead-only| buffer-|
|00002f90| 75 6e 64 6f 2d 6c 69 73 | 74 20 74 61 69 6c 20 74 |undo-lis|t tail t|
|00002fa0| 20 70 72 69 6d 69 74 69 | 76 65 2d 75 6e 64 6f 5d | primiti|ve-undo]|
|00002fb0| 20 34 29 29 20 61 70 70 | 6c 79 20 66 6e 20 61 72 | 4)) app|ly fn ar|
|00002fc0| 67 73 5d 20 34 20 22 5c | 0a 41 70 70 6c 79 20 46 |gs] 4 "\|.Apply F|
|00002fd0| 4e 20 74 6f 20 41 52 47 | 53 2c 20 61 6e 64 20 74 |N to ARG|S, and t|
|00002fe0| 68 65 6e 20 75 6e 64 6f | 20 61 6c 6c 20 63 68 61 |hen undo| all cha|
|00002ff0| 6e 67 65 73 20 6d 61 64 | 65 20 62 79 20 46 4e 20 |nges mad|e by FN |
|00003000| 74 6f 20 74 68 65 20 63 | 75 72 72 65 6e 74 0a 62 |to the c|urrent.b|
|00003010| 75 66 66 65 72 2e 20 20 | 54 68 65 20 75 6e 64 6f |uffer. |The undo|
|00003020| 20 72 65 63 6f 72 64 73 | 20 61 72 65 20 70 72 6f | records| are pro|
|00003030| 63 65 73 73 65 64 20 65 | 76 65 6e 20 69 66 20 46 |cessed e|ven if F|
|00003040| 4e 20 72 65 74 75 72 6e | 73 20 6e 6f 6e 2d 6c 6f |N return|s non-lo|
|00003050| 63 61 6c 6c 79 2e 0a 54 | 68 65 72 65 20 69 73 20 |cally..T|here is |
|00003060| 6e 6f 20 74 72 61 63 65 | 20 6f 66 20 74 68 65 20 |no trace| of the |
|00003070| 63 68 61 6e 67 65 73 20 | 6d 61 64 65 20 62 79 20 |changes |made by |
|00003080| 46 4e 20 69 6e 20 74 68 | 65 20 62 75 66 66 65 72 |FN in th|e buffer|
|00003090| 27 73 20 75 6e 64 6f 20 | 68 69 73 74 6f 72 79 2e |'s undo |history.|
|000030a0| 0a 0a 59 6f 75 20 63 61 | 6e 20 75 73 65 20 74 68 |..You ca|n use th|
|000030b0| 69 73 20 69 6e 20 61 20 | 77 72 69 74 65 2d 66 69 |is in a |write-fi|
|000030c0| 6c 65 2d 68 6f 6f 6b 73 | 20 66 75 6e 63 74 69 6f |le-hooks| functio|
|000030d0| 6e 20 77 69 74 68 20 63 | 6f 6e 74 69 6e 75 65 2d |n with c|ontinue-|
|000030e0| 73 61 76 65 2d 62 75 66 | 66 65 72 0a 74 6f 20 6d |save-buf|fer.to m|
|000030f0| 61 6b 65 20 74 68 65 20 | 63 6f 6e 74 65 6e 74 73 |ake the |contents|
|00003100| 20 6f 66 20 61 20 64 69 | 73 6b 20 66 69 6c 65 20 | of a di|sk file |
|00003110| 64 69 66 66 65 72 20 66 | 72 6f 6d 20 69 74 73 20 |differ f|rom its |
|00003120| 69 6e 2d 6d 65 6d 6f 72 | 79 20 62 75 66 66 65 72 |in-memor|y buffer|
|00003130| 2e 22 5d 29 0a 28 66 73 | 65 74 20 27 75 6e 69 76 |."]).(fs|et 'univ|
|00003140| 65 72 73 61 6c 2d 61 72 | 67 75 6d 65 6e 74 20 23 |ersal-ar|gument #|
|00003150| 5b 6e 69 6c 20 22 c0 09 | c2 1b 1c 1d c6 0b 21 89 |[nil "..|......!.|
|00003160| 13 0c 9a ab 86 0d c0 5f | 15 aa 71 c7 0b 0d c2 23 |......._|..q....#|
|00003170| 2b 87 22 20 5b 34 20 6c | 61 73 74 2d 63 6f 6d 6d |+." [4 l|ast-comm|
|00003180| 61 6e 64 2d 65 76 65 6e | 74 20 6e 69 6c 20 6b 65 |and-even|t nil ke|
|00003190| 79 20 73 74 61 72 74 2d | 63 68 61 72 20 66 61 63 |y start-|char fac|
|000031a0| 74 6f 72 20 6e 65 78 74 | 2d 63 6f 6d 6d 61 6e 64 |tor next|-command|
|000031b0| 2d 65 76 65 6e 74 20 70 | 72 65 66 69 78 2d 61 72 |-event p|refix-ar|
|000031c0| 67 2d 69 6e 74 65 72 6e | 61 6c 5d 20 35 20 22 5c |g-intern|al] 5 "\|
|000031d0| 0a 42 65 67 69 6e 20 61 | 20 6e 75 6d 65 72 69 63 |.Begin a| numeric|
|000031e0| 20 61 72 67 75 6d 65 6e | 74 20 66 6f 72 20 74 68 | argumen|t for th|
|000031f0| 65 20 66 6f 6c 6c 6f 77 | 69 6e 67 20 63 6f 6d 6d |e follow|ing comm|
|00003200| 61 6e 64 2e 0a 44 69 67 | 69 74 73 20 6f 72 20 6d |and..Dig|its or m|
|00003210| 69 6e 75 73 20 73 69 67 | 6e 20 66 6f 6c 6c 6f 77 |inus sig|n follow|
|00003220| 69 6e 67 20 5c 5c 5b 75 | 6e 69 76 65 72 73 61 6c |ing \\[u|niversal|
|00003230| 2d 61 72 67 75 6d 65 6e | 74 5d 20 6d 61 6b 65 20 |-argumen|t] make |
|00003240| 75 70 20 74 68 65 20 6e | 75 6d 65 72 69 63 20 61 |up the n|umeric a|
|00003250| 72 67 75 6d 65 6e 74 2e | 0a 5c 5c 5b 75 6e 69 76 |rgument.|.\\[univ|
|00003260| 65 72 73 61 6c 2d 61 72 | 67 75 6d 65 6e 74 5d 20 |ersal-ar|gument] |
|00003270| 66 6f 6c 6c 6f 77 69 6e | 67 20 74 68 65 20 64 69 |followin|g the di|
|00003280| 67 69 74 73 20 6f 72 20 | 6d 69 6e 75 73 20 73 69 |gits or |minus si|
|00003290| 67 6e 20 65 6e 64 73 20 | 74 68 65 20 61 72 67 75 |gn ends |the argu|
|000032a0| 6d 65 6e 74 2e 0a 5c 5c | 5b 75 6e 69 76 65 72 73 |ment..\\|[univers|
|000032b0| 61 6c 2d 61 72 67 75 6d | 65 6e 74 5d 20 77 69 74 |al-argum|ent] wit|
|000032c0| 68 6f 75 74 20 64 69 67 | 69 74 73 20 6f 72 20 6d |hout dig|its or m|
|000032d0| 69 6e 75 73 20 73 69 67 | 6e 20 70 72 6f 76 69 64 |inus sig|n provid|
|000032e0| 65 73 20 34 20 61 73 20 | 61 72 67 75 6d 65 6e 74 |es 4 as |argument|
|000032f0| 2e 0a 52 65 70 65 61 74 | 69 6e 67 20 5c 5c 5b 75 |..Repeat|ing \\[u|
|00003300| 6e 69 76 65 72 73 61 6c | 2d 61 72 67 75 6d 65 6e |niversal|-argumen|
|00003310| 74 5d 20 77 69 74 68 6f | 75 74 20 64 69 67 69 74 |t] witho|ut digit|
|00003320| 73 20 6f 72 20 6d 69 6e | 75 73 20 73 69 67 6e 0a |s or min|us sign.|
|00003330| 20 6d 75 6c 74 69 70 6c | 69 65 73 20 74 68 65 20 | multipl|ies the |
|00003340| 61 72 67 75 6d 65 6e 74 | 20 62 79 20 34 20 65 61 |argument| by 4 ea|
|00003350| 63 68 20 74 69 6d 65 2e | 22 20 6e 69 6c 5d 29 0a |ch time.|" nil]).|
|00003360| 28 62 79 74 65 2d 63 6f | 64 65 20 22 c0 c1 4d 88 |(byte-co|de "..M.|
|00003370| c2 c3 4d 87 22 20 5b 70 | 72 65 66 69 78 2d 61 72 |..M." [p|refix-ar|
|00003380| 67 2d 69 6e 74 65 72 6e | 61 6c 20 23 5b 28 65 76 |g-intern|al #[(ev|
|00003390| 65 6e 74 20 66 61 63 74 | 6f 72 20 76 61 6c 75 65 |ent fact|or value|
|000033a0| 29 20 22 c0 11 c2 c3 1c | 1d c6 0e 07 21 ab 85 c8 |) ".....|....!...|
|000033b0| 0e 07 21 14 0e 09 a7 ab | 8d 0e 09 ca 57 ab 87 cb |..!.....|....W...|
|000033c0| 15 0e 09 5b 16 09 0e 09 | cc 3d ab 85 cb 15 c3 16 |...[....|.=......|
|000033d0| 09 0c cd 3d ab 99 0d 5b | 15 c3 16 0e cf 0e 07 21 |...=...[|.......!|
|000033e0| 88 c6 0e 07 21 ab 6a c8 | 0e 07 21 89 14 aa 63 0c |....!.j.|..!...c.|
|000033f0| a7 ab b2 0c d0 59 ab ad | 0c d1 58 ab a8 0e 09 a7 |.....Y..|..X.....|
|00003400| ab 84 0e 09 aa 81 ca d2 | 5f 0c d0 5a 5c 5c 16 09 |........|_..Z\\..|
|00003410| c3 16 0e cf 0e 07 21 88 | c6 0e 07 21 ab 52 c8 0e |......!.|...!.R..|
|00003420| 07 21 89 14 aa 4b 0e 0e | ab 85 0e 0e 43 aa 91 0e |.!...K..|....C...|
|00003430| 09 a7 ab 86 0e 09 0d 5f | aa 86 0d cb 55 ad 81 cc |......._|....U...|
|00003440| 16 13 c6 0e 07 21 ab 91 | d4 d5 0e 07 21 21 d6 3d |.....!..|....!!.=|
|00003450| ab 87 d7 0e 09 0d 5c 22 | aa 85 0e 07 89 16 18 2a |......\"|.......*|
|00003460| 87 22 20 5b 74 20 7a 6d | 61 63 73 2d 72 65 67 69 |." [t zm|acs-regi|
|00003470| 6f 6e 2d 73 74 61 79 73 | 20 31 20 6e 69 6c 20 63 |on-stays| 1 nil c|
|00003480| 68 61 72 20 73 69 67 6e | 20 6b 65 79 2d 70 72 65 |har sign| key-pre|
|00003490| 73 73 2d 65 76 65 6e 74 | 2d 70 20 65 76 65 6e 74 |ss-event|-p event|
|000034a0| 20 65 76 65 6e 74 2d 6b | 65 79 20 76 61 6c 75 65 | event-k|ey value|
|000034b0| 20 30 20 2d 31 20 2d 20 | 34 35 20 66 61 63 74 6f | 0 -1 - |45 facto|
|000034c0| 72 20 6e 65 78 74 2d 63 | 6f 6d 6d 61 6e 64 2d 65 |r next-c|ommand-e|
|000034d0| 76 65 6e 74 20 34 38 20 | 35 37 20 31 30 20 70 72 |vent 48 |57 10 pr|
|000034e0| 65 66 69 78 2d 61 72 67 | 20 6b 65 79 2d 62 69 6e |efix-arg| key-bin|
|000034f0| 64 69 6e 67 20 76 65 63 | 74 6f 72 20 75 6e 69 76 |ding vec|tor univ|
|00003500| 65 72 73 61 6c 2d 61 72 | 67 75 6d 65 6e 74 20 64 |ersal-ar|gument d|
|00003510| 65 73 63 72 69 62 65 2d | 70 72 65 66 69 78 2d 61 |escribe-|prefix-a|
|00003520| 72 67 20 75 6e 72 65 61 | 64 2d 63 6f 6d 6d 61 6e |rg unrea|d-comman|
|00003530| 64 2d 65 76 65 6e 74 5d | 20 34 5d 20 64 65 73 63 |d-event]| 4] desc|
|00003540| 72 69 62 65 2d 70 72 65 | 66 69 78 2d 61 72 67 20 |ribe-pre|fix-arg |
|00003550| 23 5b 28 76 61 6c 75 65 | 20 73 69 67 6e 29 20 22 |#[(value| sign) "|
|00003560| 08 a7 ab 87 c1 c2 08 0b | 5f 5c 22 87 08 3a ab 86 |........|_\"..:..|
|00003570| c1 c4 08 40 5c 22 87 0b | c5 57 ad 83 c1 c6 21 87 |...@\"..|.W....!.|
|00003580| 22 20 5b 76 61 6c 75 65 | 20 6d 65 73 73 61 67 65 |" [value| message|
|00003590| 20 22 41 72 67 3a 20 25 | 64 22 20 73 69 67 6e 20 | "Arg: %|d" sign |
|000035a0| 22 41 72 67 3a 20 5b 25 | 64 5d 22 20 30 20 22 41 |"Arg: [%|d]" 0 "A|
|000035b0| 72 67 3a 20 2d 22 5d 20 | 34 5d 5d 20 32 29 0a 28 |rg: -"] |4]] 2).(|
|000035c0| 66 73 65 74 20 27 64 69 | 67 69 74 2d 61 72 67 75 |fset 'di|git-argu|
|000035d0| 6d 65 6e 74 20 23 5b 28 | 61 72 67 29 20 22 c0 09 |ment #[(|arg) "..|
|000035e0| c2 0b 23 87 22 20 5b 70 | 72 65 66 69 78 2d 61 72 |..#." [p|refix-ar|
|000035f0| 67 2d 69 6e 74 65 72 6e | 61 6c 20 6c 61 73 74 2d |g-intern|al last-|
|00003600| 63 6f 6d 6d 61 6e 64 2d | 65 76 65 6e 74 20 6e 69 |command-|event ni|
|00003610| 6c 20 61 72 67 5d 20 34 | 20 22 5c 0a 50 61 72 74 |l arg] 4| "\.Part|
|00003620| 20 6f 66 20 74 68 65 20 | 6e 75 6d 65 72 69 63 20 | of the |numeric |
|00003630| 61 72 67 75 6d 65 6e 74 | 20 66 6f 72 20 74 68 65 |argument| for the|
|00003640| 20 6e 65 78 74 20 63 6f | 6d 6d 61 6e 64 2e 0a 5c | next co|mmand..\|
|00003650| 5c 5b 75 6e 69 76 65 72 | 73 61 6c 2d 61 72 67 75 |\[univer|sal-argu|
|00003660| 6d 65 6e 74 5d 20 66 6f | 6c 6c 6f 77 69 6e 67 20 |ment] fo|llowing |
|00003670| 64 69 67 69 74 73 20 6f | 72 20 6d 69 6e 75 73 20 |digits o|r minus |
|00003680| 73 69 67 6e 20 65 6e 64 | 73 20 74 68 65 20 61 72 |sign end|s the ar|
|00003690| 67 75 6d 65 6e 74 2e 22 | 20 22 50 22 5d 29 0a 28 |gument."| "P"]).(|
|000036a0| 66 73 65 74 20 27 6e 65 | 67 61 74 69 76 65 2d 61 |fset 'ne|gative-a|
|000036b0| 72 67 75 6d 65 6e 74 20 | 23 5b 28 61 72 67 29 20 |rgument |#[(arg) |
|000036c0| 22 c0 c1 c2 c3 20 5c 22 | c4 0d 23 87 22 20 5b 70 |".... \"|..#." [p|
|000036d0| 72 65 66 69 78 2d 61 72 | 67 2d 69 6e 74 65 72 6e |refix-ar|g-intern|
|000036e0| 61 6c 20 63 68 61 72 61 | 63 74 65 72 2d 74 6f 2d |al chara|cter-to-|
|000036f0| 65 76 65 6e 74 20 34 35 | 20 61 6c 6c 6f 63 61 74 |event 45| allocat|
|00003700| 65 2d 65 76 65 6e 74 20 | 6e 69 6c 20 61 72 67 5d |e-event |nil arg]|
|00003710| 20 34 20 22 5c 0a 42 65 | 67 69 6e 20 61 20 6e 65 | 4 "\.Be|gin a ne|
|00003720| 67 61 74 69 76 65 20 6e | 75 6d 65 72 69 63 20 61 |gative n|umeric a|
|00003730| 72 67 75 6d 65 6e 74 20 | 66 6f 72 20 74 68 65 20 |rgument |for the |
|00003740| 6e 65 78 74 20 63 6f 6d | 6d 61 6e 64 2e 0a 5c 5c |next com|mand..\\|
|00003750| 5b 75 6e 69 76 65 72 73 | 61 6c 2d 61 72 67 75 6d |[univers|al-argum|
|00003760| 65 6e 74 5d 20 66 6f 6c | 6c 6f 77 69 6e 67 20 64 |ent] fol|lowing d|
|00003770| 69 67 69 74 73 20 6f 72 | 20 6d 69 6e 75 73 20 73 |igits or| minus s|
|00003780| 69 67 6e 20 65 6e 64 73 | 20 74 68 65 20 61 72 67 |ign ends| the arg|
|00003790| 75 6d 65 6e 74 2e 22 20 | 22 50 22 5d 29 0a 28 66 |ument." |"P"]).(f|
|000037a0| 73 65 74 20 27 66 6f 72 | 77 61 72 64 2d 74 6f 2d |set 'for|ward-to-|
|000037b0| 69 6e 64 65 6e 74 61 74 | 69 6f 6e 20 23 5b 28 61 |indentat|ion #[(a|
|000037c0| 72 67 29 20 22 08 79 88 | c1 c2 77 87 22 20 5b 61 |rg) ".y.|..w." [a|
|000037d0| 72 67 20 22 20 09 22 20 | 6e 69 6c 5d 20 32 20 22 |rg " ." |nil] 2 "|
|000037e0| 5c 0a 4d 6f 76 65 20 66 | 6f 72 77 61 72 64 20 41 |\.Move f|orward A|
|000037f0| 52 47 20 6c 69 6e 65 73 | 20 61 6e 64 20 70 6f 73 |RG lines| and pos|
|00003800| 69 74 69 6f 6e 20 61 74 | 20 66 69 72 73 74 20 6e |ition at| first n|
|00003810| 6f 6e 62 6c 61 6e 6b 20 | 63 68 61 72 61 63 74 65 |onblank |characte|
|00003820| 72 2e 22 20 22 70 22 5d | 29 0a 28 66 73 65 74 20 |r." "p"]|).(fset |
|00003830| 27 62 61 63 6b 77 61 72 | 64 2d 74 6f 2d 69 6e 64 |'backwar|d-to-ind|
|00003840| 65 6e 74 61 74 69 6f 6e | 20 23 5b 28 61 72 67 29 |entation| #[(arg)|
|00003850| 20 22 08 5b 79 88 c1 c2 | 77 87 22 20 5b 61 72 67 | ".[y...|w." [arg|
|00003860| 20 22 20 09 22 20 6e 69 | 6c 5d 20 32 20 22 5c 0a | " ." ni|l] 2 "\.|
|00003870| 4d 6f 76 65 20 62 61 63 | 6b 77 61 72 64 20 41 52 |Move bac|kward AR|
|00003880| 47 20 6c 69 6e 65 73 20 | 61 6e 64 20 70 6f 73 69 |G lines |and posi|
|00003890| 74 69 6f 6e 20 61 74 20 | 66 69 72 73 74 20 6e 6f |tion at |first no|
|000038a0| 6e 62 6c 61 6e 6b 20 63 | 68 61 72 61 63 74 65 72 |nblank c|haracter|
|000038b0| 2e 22 20 22 70 22 5d 29 | 0a 28 64 65 66 76 61 72 |." "p"])|.(defvar|
|000038c0| 20 6b 69 6c 6c 2d 77 68 | 6f 6c 65 2d 6c 69 6e 65 | kill-wh|ole-line|
|000038d0| 20 6e 69 6c 20 22 5c 0a | 2a 49 66 20 6e 6f 6e 2d | nil "\.|*If non-|
|000038e0| 6e 69 6c 2c 20 60 6b 69 | 6c 6c 2d 6c 69 6e 65 27 |nil, `ki|ll-line'|
|000038f0| 20 77 69 74 68 20 6e 6f | 20 61 72 67 20 61 74 20 | with no| arg at |
|00003900| 62 65 67 20 6f 66 20 6c | 69 6e 65 20 6b 69 6c 6c |beg of l|ine kill|
|00003910| 73 20 74 68 65 20 77 68 | 6f 6c 65 20 6c 69 6e 65 |s the wh|ole line|
|00003920| 2e 22 29 0a 28 66 73 65 | 74 20 27 6b 69 6c 6c 2d |.").(fse|t 'kill-|
|00003930| 6c 69 6e 65 20 23 5b 28 | 26 6f 70 74 69 6f 6e 61 |line #[(|&optiona|
|00003940| 6c 20 61 72 67 29 20 22 | c0 60 8a 09 ab 87 c2 09 |l arg) "|.`......|
|00003950| 21 79 88 aa 9c 6d ab 85 | c3 c4 c5 5c 22 88 c6 c7 |!y...m..|...\"...|
|00003960| 21 ac 87 0e 08 ab 88 6e | ab 85 c9 79 88 aa 83 c5 |!......n|...y....|
|00003970| 7f 88 60 29 5c 22 87 22 | 20 5b 6b 69 6c 6c 2d 72 |..`)\"."| [kill-r|
|00003980| 65 67 69 6f 6e 20 61 72 | 67 20 70 72 65 66 69 78 |egion ar|g prefix|
|00003990| 2d 6e 75 6d 65 72 69 63 | 2d 76 61 6c 75 65 20 73 |-numeric|-value s|
|000039a0| 69 67 6e 61 6c 20 65 6e | 64 2d 6f 66 2d 62 75 66 |ignal en|d-of-buf|
|000039b0| 66 65 72 20 6e 69 6c 20 | 6c 6f 6f 6b 69 6e 67 2d |fer nil |looking-|
|000039c0| 61 74 20 22 5b 20 09 5d | 2a 24 22 20 6b 69 6c 6c |at "[ .]|*$" kill|
|000039d0| 2d 77 68 6f 6c 65 2d 6c | 69 6e 65 20 31 5d 20 35 |-whole-l|ine 1] 5|
|000039e0| 20 22 5c 0a 4b 69 6c 6c | 20 74 68 65 20 72 65 73 | "\.Kill| the res|
|000039f0| 74 20 6f 66 20 74 68 65 | 20 63 75 72 72 65 6e 74 |t of the| current|
|00003a00| 20 6c 69 6e 65 3b 20 69 | 66 20 6e 6f 20 6e 6f 6e | line; i|f no non|
|00003a10| 62 6c 61 6e 6b 73 20 74 | 68 65 72 65 2c 20 6b 69 |blanks t|here, ki|
|00003a20| 6c 6c 20 74 68 72 75 20 | 6e 65 77 6c 69 6e 65 2e |ll thru |newline.|
|00003a30| 0a 57 69 74 68 20 70 72 | 65 66 69 78 20 61 72 67 |.With pr|efix arg|
|00003a40| 75 6d 65 6e 74 2c 20 6b | 69 6c 6c 20 74 68 61 74 |ument, k|ill that|
|00003a50| 20 6d 61 6e 79 20 6c 69 | 6e 65 73 20 66 72 6f 6d | many li|nes from|
|00003a60| 20 70 6f 69 6e 74 2e 0a | 4e 65 67 61 74 69 76 65 | point..|Negative|
|00003a70| 20 61 72 67 75 6d 65 6e | 74 73 20 6b 69 6c 6c 20 | argumen|ts kill |
|00003a80| 6c 69 6e 65 73 20 62 61 | 63 6b 77 61 72 64 2e 0a |lines ba|ckward..|
|00003a90| 0a 57 68 65 6e 20 63 61 | 6c 6c 69 6e 67 20 66 72 |.When ca|lling fr|
|00003aa0| 6f 6d 20 61 20 70 72 6f | 67 72 61 6d 2c 20 6e 69 |om a pro|gram, ni|
|00003ab0| 6c 20 6d 65 61 6e 73 20 | 5c 22 6e 6f 20 61 72 67 |l means |\"no arg|
|00003ac0| 5c 22 2c 0a 61 20 6e 75 | 6d 62 65 72 20 63 6f 75 |\",.a nu|mber cou|
|00003ad0| 6e 74 73 20 61 73 20 61 | 20 70 72 65 66 69 78 20 |nts as a| prefix |
|00003ae0| 61 72 67 2e 0a 0a 49 66 | 20 60 6b 69 6c 6c 2d 77 |arg...If| `kill-w|
|00003af0| 68 6f 6c 65 2d 6c 69 6e | 65 27 20 69 73 20 6e 6f |hole-lin|e' is no|
|00003b00| 6e 2d 6e 69 6c 2c 20 74 | 68 65 6e 20 6b 69 6c 6c |n-nil, t|hen kill|
|00003b10| 20 74 68 65 20 77 68 6f | 6c 65 20 6c 69 6e 65 0a | the who|le line.|
|00003b20| 77 68 65 6e 20 67 69 76 | 65 6e 20 6e 6f 20 61 72 |when giv|en no ar|
|00003b30| 67 75 6d 65 6e 74 20 61 | 74 20 74 68 65 20 62 65 |gument a|t the be|
|00003b40| 67 69 6e 6e 69 6e 67 20 | 6f 66 20 61 20 6c 69 6e |ginning |of a lin|
|00003b50| 65 2e 22 20 22 2a 50 22 | 5d 29 0a 28 66 73 65 74 |e." "*P"|]).(fset|
|00003b60| 20 27 62 61 63 6b 77 61 | 72 64 2d 6b 69 6c 6c 2d | 'backwa|rd-kill-|
|00003b70| 6c 69 6e 65 20 23 5b 6e | 69 6c 20 22 60 18 c1 79 |line #[n|il "`..y|
|00003b80| 88 c2 60 08 5c 22 29 87 | 22 20 5b 70 6f 69 6e 74 |..`.\").|" [point|
|00003b90| 20 30 20 6b 69 6c 6c 2d | 72 65 67 69 6f 6e 5d 20 | 0 kill-|region] |
|00003ba0| 33 20 22 5c 0a 4b 69 6c | 6c 20 62 61 63 6b 20 74 |3 "\.Kil|l back t|
|00003bb0| 6f 20 74 68 65 20 62 65 | 67 69 6e 6e 69 6e 67 20 |o the be|ginning |
|00003bc0| 6f 66 20 74 68 65 20 6c | 69 6e 65 2e 22 20 6e 69 |of the l|ine." ni|
|00003bd0| 6c 5d 29 0a 28 64 65 66 | 76 61 72 20 6b 69 6c 6c |l]).(def|var kill|
|00003be0| 2d 68 6f 6f 6b 73 20 6e | 69 6c 20 22 5c 0a 46 75 |-hooks n|il "\.Fu|
|00003bf0| 6e 63 74 69 6f 6e 73 20 | 72 75 6e 20 77 68 65 6e |nctions |run when|
|00003c00| 20 73 6f 6d 65 74 68 69 | 6e 67 20 69 73 20 61 64 | somethi|ng is ad|
|00003c10| 64 65 64 20 74 6f 20 74 | 68 65 20 58 45 6d 61 63 |ded to t|he XEmac|
|00003c20| 73 20 6b 69 6c 6c 20 72 | 69 6e 67 2e 0a 54 68 65 |s kill r|ing..The|
|00003c30| 73 65 20 66 75 6e 63 74 | 69 6f 6e 73 20 61 72 65 |se funct|ions are|
|00003c40| 20 63 61 6c 6c 65 64 20 | 77 69 74 68 20 6f 6e 65 | called |with one|
|00003c50| 20 61 72 67 75 6d 65 6e | 74 2c 20 74 68 65 20 73 | argumen|t, the s|
|00003c60| 74 72 69 6e 67 20 6d 6f | 73 74 20 72 65 63 65 6e |tring mo|st recen|
|00003c70| 74 6c 79 0a 63 75 74 20 | 6f 72 20 63 6f 70 69 65 |tly.cut |or copie|
|00003c80| 64 2e 20 20 59 6f 75 20 | 63 61 6e 20 75 73 65 20 |d. You |can use |
|00003c90| 74 68 69 73 20 74 6f 2c | 20 66 6f 72 20 65 78 61 |this to,| for exa|
|00003ca0| 6d 70 6c 65 2c 20 6d 61 | 6b 65 20 74 68 65 20 6d |mple, ma|ke the m|
|00003cb0| 6f 73 74 20 72 65 63 65 | 6e 74 20 0a 6b 69 6c 6c |ost rece|nt .kill|
|00003cc0| 20 62 65 63 6f 6d 65 20 | 74 68 65 20 58 20 43 6c | become |the X Cl|
|00003cd0| 69 70 62 6f 61 72 64 20 | 73 65 6c 65 63 74 69 6f |ipboard |selectio|
|00003ce0| 6e 2e 22 29 0a 28 64 65 | 66 76 61 72 20 6b 69 6c |n.").(de|fvar kil|
|00003cf0| 6c 2d 72 69 6e 67 20 6e | 69 6c 20 22 5c 0a 4c 69 |l-ring n|il "\.Li|
|00003d00| 73 74 20 6f 66 20 6b 69 | 6c 6c 65 64 20 74 65 78 |st of ki|lled tex|
|00003d10| 74 20 73 65 71 75 65 6e | 63 65 73 2e 0a 49 6e 20 |t sequen|ces..In |
|00003d20| 6f 72 64 65 72 20 74 6f | 20 6d 61 69 6e 74 61 69 |order to| maintai|
|00003d30| 6e 20 63 6f 72 72 65 63 | 74 20 69 6e 74 65 72 61 |n correc|t intera|
|00003d40| 63 74 69 6f 6e 20 77 69 | 74 68 20 63 75 74 2d 61 |ction wi|th cut-a|
|00003d50| 6e 64 2d 70 61 73 74 65 | 20 66 61 63 69 6c 69 74 |nd-paste| facilit|
|00003d60| 69 65 73 20 0a 6f 66 66 | 65 72 65 64 20 62 79 20 |ies .off|ered by |
|00003d70| 77 69 6e 64 6f 77 20 73 | 79 73 74 65 6d 73 2c 20 |window s|ystems, |
|00003d80| 74 68 65 20 66 75 6e 63 | 74 69 6f 6e 73 20 60 6b |the func|tions `k|
|00003d90| 69 6c 6c 2d 6e 65 77 27 | 2c 20 60 6b 69 6c 6c 2d |ill-new'|, `kill-|
|00003da0| 61 70 70 65 6e 64 27 2c | 20 61 6e 64 0a 60 63 75 |append',| and.`cu|
|00003db0| 72 72 65 6e 74 2d 6b 69 | 6c 6c 27 20 73 68 6f 75 |rrent-ki|ll' shou|
|00003dc0| 6c 64 20 62 65 20 75 73 | 65 64 20 74 6f 20 61 63 |ld be us|ed to ac|
|00003dd0| 63 65 73 73 20 74 68 65 | 20 6b 69 6c 6c 20 72 69 |cess the| kill ri|
|00003de0| 6e 67 2c 20 69 6e 73 74 | 65 61 64 20 6f 66 20 75 |ng, inst|ead of u|
|00003df0| 73 69 6e 67 0a 74 68 69 | 73 20 76 61 72 69 61 62 |sing.thi|s variab|
|00003e00| 6c 65 20 64 69 72 65 63 | 74 6c 79 2e 22 29 0a 28 |le direc|tly.").(|
|00003e10| 64 65 66 76 61 72 20 6b | 69 6c 6c 2d 72 69 6e 67 |defvar k|ill-ring|
|00003e20| 2d 6d 61 78 20 33 30 20 | 22 5c 0a 2a 4d 61 78 69 |-max 30 |"\.*Maxi|
|00003e30| 6d 75 6d 20 6c 65 6e 67 | 74 68 20 6f 66 20 6b 69 |mum leng|th of ki|
|00003e40| 6c 6c 20 72 69 6e 67 20 | 62 65 66 6f 72 65 20 6f |ll ring |before o|
|00003e50| 6c 64 65 73 74 20 65 6c | 65 6d 65 6e 74 73 20 61 |ldest el|ements a|
|00003e60| 72 65 20 74 68 72 6f 77 | 6e 20 61 77 61 79 2e 22 |re throw|n away."|
|00003e70| 29 0a 28 64 65 66 76 61 | 72 20 6b 69 6c 6c 2d 72 |).(defva|r kill-r|
|00003e80| 69 6e 67 2d 79 61 6e 6b | 2d 70 6f 69 6e 74 65 72 |ing-yank|-pointer|
|00003e90| 20 6e 69 6c 20 22 5c 0a | 54 68 65 20 74 61 69 6c | nil "\.|The tail|
|00003ea0| 20 6f 66 20 74 68 65 20 | 6b 69 6c 6c 20 72 69 6e | of the |kill rin|
|00003eb0| 67 20 77 68 6f 73 65 20 | 63 61 72 20 69 73 20 74 |g whose |car is t|
|00003ec0| 68 65 20 6c 61 73 74 20 | 74 68 69 6e 67 20 79 61 |he last |thing ya|
|00003ed0| 6e 6b 65 64 2e 22 29 0a | 28 66 73 65 74 20 27 6b |nked.").|(fset 'k|
|00003ee0| 69 6c 6c 2d 6e 65 77 20 | 23 5b 28 73 74 72 69 6e |ill-new |#[(strin|
|00003ef0| 67 29 20 22 08 09 42 89 | 11 47 5c 6e 56 ab 87 5c |g) "..B.|.G\nV..\|
|00003f00| 6e 53 09 9b c3 a1 88 09 | 14 c5 c6 08 5c 22 87 22 |nS......|....\"."|
|00003f10| 20 5b 73 74 72 69 6e 67 | 20 6b 69 6c 6c 2d 72 69 | [string| kill-ri|
|00003f20| 6e 67 20 6b 69 6c 6c 2d | 72 69 6e 67 2d 6d 61 78 |ng kill-|ring-max|
|00003f30| 20 6e 69 6c 20 6b 69 6c | 6c 2d 72 69 6e 67 2d 79 | nil kil|l-ring-y|
|00003f40| 61 6e 6b 2d 70 6f 69 6e | 74 65 72 20 72 75 6e 2d |ank-poin|ter run-|
|00003f50| 68 6f 6f 6b 2d 77 69 74 | 68 2d 61 72 67 73 20 6b |hook-wit|h-args k|
|00003f60| 69 6c 6c 2d 68 6f 6f 6b | 73 5d 20 34 20 22 5c 0a |ill-hook|s] 4 "\.|
|00003f70| 4d 61 6b 65 20 53 54 52 | 49 4e 47 20 74 68 65 20 |Make STR|ING the |
|00003f80| 6c 61 74 65 73 74 20 6b | 69 6c 6c 20 69 6e 20 74 |latest k|ill in t|
|00003f90| 68 65 20 6b 69 6c 6c 20 | 72 69 6e 67 2e 0a 53 65 |he kill |ring..Se|
|00003fa0| 74 20 74 68 65 20 6b 69 | 6c 6c 2d 72 69 6e 67 2d |t the ki|ll-ring-|
|00003fb0| 79 61 6e 6b 20 70 6f 69 | 6e 74 65 72 20 74 6f 20 |yank poi|nter to |
|00003fc0| 70 6f 69 6e 74 20 74 6f | 20 69 74 2e 0a 52 75 6e |point to| it..Run|
|00003fd0| 73 20 60 6b 69 6c 6c 2d | 68 6f 6f 6b 73 27 2e 22 |s `kill-|hooks'."|
|00003fe0| 5d 29 0a 28 66 73 65 74 | 20 27 6b 69 6c 6c 2d 61 |]).(fset| 'kill-a|
|00003ff0| 70 70 65 6e 64 20 23 5b | 28 73 74 72 69 6e 67 20 |ppend #[|(string |
|00004000| 62 65 66 6f 72 65 2d 70 | 29 20 22 08 09 ab 86 5c |before-p|) "....\|
|00004010| 6e 08 40 50 aa 84 08 40 | 5c 6e 50 a0 88 c3 c4 5c |n.@P...@|\nP....\|
|00004020| 6e 5c 22 87 22 20 5b 6b | 69 6c 6c 2d 72 69 6e 67 |n\"." [k|ill-ring|
|00004030| 20 62 65 66 6f 72 65 2d | 70 20 73 74 72 69 6e 67 | before-|p string|
|00004040| 20 72 75 6e 2d 68 6f 6f | 6b 2d 77 69 74 68 2d 61 | run-hoo|k-with-a|
|00004050| 72 67 73 20 6b 69 6c 6c | 2d 68 6f 6f 6b 73 5d 20 |rgs kill|-hooks] |
|00004060| 33 20 22 5c 0a 41 70 70 | 65 6e 64 20 53 54 52 49 |3 "\.App|end STRI|
|00004070| 4e 47 20 74 6f 20 74 68 | 65 20 65 6e 64 20 6f 66 |NG to th|e end of|
|00004080| 20 74 68 65 20 6c 61 74 | 65 73 74 20 6b 69 6c 6c | the lat|est kill|
|00004090| 20 69 6e 20 74 68 65 20 | 6b 69 6c 6c 20 72 69 6e | in the |kill rin|
|000040a0| 67 2e 0a 49 66 20 42 45 | 46 4f 52 45 2d 50 20 69 |g..If BE|FORE-P i|
|000040b0| 73 20 6e 6f 6e 2d 6e 69 | 6c 2c 20 70 72 65 70 65 |s non-ni|l, prepe|
|000040c0| 6e 64 20 53 54 52 49 4e | 47 20 74 6f 20 74 68 65 |nd STRIN|G to the|
|000040d0| 20 6b 69 6c 6c 2e 0a 52 | 75 6e 73 20 60 6b 69 6c | kill..R|uns `kil|
|000040e0| 6c 2d 68 6f 6f 6b 73 27 | 2e 22 5d 29 0a 28 66 73 |l-hooks'|."]).(fs|
|000040f0| 65 74 20 27 63 75 72 72 | 65 6e 74 2d 6b 69 6c 6c |et 'curr|ent-kill|
|00004100| 20 23 5b 28 6e 20 26 6f | 70 74 69 6f 6e 61 6c 20 | #[(n &o|ptional |
|00004110| 64 6f 2d 6e 6f 74 2d 6d | 6f 76 65 29 20 22 08 ac |do-not-m|ove) "..|
|00004120| 84 c1 c2 21 88 c3 0c 0d | 47 5a 08 47 5c 22 08 9b |...!....|GZ.G\"..|
|00004130| 1e 06 0e 07 ac 83 0e 06 | 15 0e 06 40 29 87 22 20 |........|...@)." |
|00004140| 5b 6b 69 6c 6c 2d 72 69 | 6e 67 20 65 72 72 6f 72 |[kill-ri|ng error|
|00004150| 20 22 4b 69 6c 6c 20 72 | 69 6e 67 20 69 73 20 65 | "Kill r|ing is e|
|00004160| 6d 70 74 79 22 20 6d 6f | 64 20 6e 20 6b 69 6c 6c |mpty" mo|d n kill|
|00004170| 2d 72 69 6e 67 2d 79 61 | 6e 6b 2d 70 6f 69 6e 74 |-ring-ya|nk-point|
|00004180| 65 72 20 74 65 6d 20 64 | 6f 2d 6e 6f 74 2d 6d 6f |er tem d|o-not-mo|
|00004190| 76 65 5d 20 33 20 22 5c | 0a 52 6f 74 61 74 65 20 |ve] 3 "\|.Rotate |
|000041a0| 74 68 65 20 79 61 6e 6b | 69 6e 67 20 70 6f 69 6e |the yank|ing poin|
|000041b0| 74 20 62 79 20 4e 20 70 | 6c 61 63 65 73 2c 20 61 |t by N p|laces, a|
|000041c0| 6e 64 20 74 68 65 6e 20 | 72 65 74 75 72 6e 20 74 |nd then |return t|
|000041d0| 68 61 74 20 6b 69 6c 6c | 2e 0a 49 66 20 6f 70 74 |hat kill|..If opt|
|000041e0| 69 6f 6e 61 6c 20 61 72 | 67 20 44 4f 2d 4e 4f 54 |ional ar|g DO-NOT|
|000041f0| 2d 4d 4f 56 45 20 69 73 | 20 6e 6f 6e 2d 6e 69 6c |-MOVE is| non-nil|
|00004200| 2c 20 74 68 65 6e 20 64 | 6f 6e 27 74 20 61 63 74 |, then d|on't act|
|00004210| 75 61 6c 6c 79 20 6d 6f | 76 65 20 74 68 65 20 0a |ually mo|ve the .|
|00004220| 79 61 6e 6b 69 6e 67 20 | 70 6f 69 6e 74 3b 20 6a |yanking |point; j|
|00004230| 75 73 74 20 72 65 74 75 | 72 6e 20 74 68 65 20 4e |ust retu|rn the N|
|00004240| 74 68 20 6b 69 6c 6c 20 | 66 6f 72 77 61 72 64 2e |th kill |forward.|
|00004250| 22 5d 29 0a 28 66 73 65 | 74 20 27 6b 69 6c 6c 2d |"]).(fse|t 'kill-|
|00004260| 72 65 67 69 6f 6e 20 23 | 5b 28 62 65 67 20 65 6e |region #|[(beg en|
|00004270| 64 20 26 6f 70 74 69 6f | 6e 61 6c 20 76 65 72 62 |d &optio|nal verb|
|00004280| 6f 73 65 29 20 22 c0 09 | 21 ab 84 c2 09 21 11 c0 |ose) "..|!....!..|
|00004290| 0b 21 ab 84 c2 0b 21 13 | 09 ab 83 0b ac 8d 0c ab |.!....!.|........|
|000042a0| 86 c5 c6 21 88 aa 84 c5 | c7 21 88 0e 08 ab 9c 0e |...!....|.!......|
|000042b0| 09 ab 8d ca cb 09 0b 5d | 09 0b 5e 5a 5c 22 88 aa |.......]|..^Z\"..|
|000042c0| 8b ca cc 09 0b 5d 09 0b | 5e 5a 5c 22 88 0e 0d ce |.....]..|^Z\"....|
|000042d0| 3d ac bc 0e 0f d0 3d ac | b6 09 0b 9a ac b1 09 0b |=.....=.|........|
|000042e0| 5d 09 0b 5e 5a d1 5c 5c | d2 1e 13 1e 14 09 0b 7c |]..^Z.\\|.......||
|000042f0| 88 0e 0d 89 16 13 a2 a2 | 3b ac 88 0e 13 41 89 16 |........|;....A..|
|00004300| 13 aa 73 d5 0e 13 40 40 | 21 88 d0 89 16 16 2a 87 |..s...@@|!.....*.|
|00004310| d7 09 0b 5c 22 88 09 0b | 7c 87 22 20 5b 6d 61 72 |...\"...||." [mar|
|00004320| 6b 65 72 70 20 62 65 67 | 20 6d 61 72 6b 65 72 2d |kerp beg| marker-|
|00004330| 70 6f 73 69 74 69 6f 6e | 20 65 6e 64 20 7a 6d 61 |position| end zma|
|00004340| 63 73 2d 72 65 67 69 6f | 6e 73 20 65 72 72 6f 72 |cs-regio|ns error|
|00004350| 20 22 54 68 65 20 72 65 | 67 69 6f 6e 20 69 73 20 | "The re|gion is |
|00004360| 6e 6f 74 20 61 63 74 69 | 76 65 20 6e 6f 77 22 20 |not acti|ve now" |
|00004370| 22 54 68 65 20 6d 61 72 | 6b 20 69 73 20 6e 6f 74 |"The mar|k is not|
|00004380| 20 73 65 74 20 6e 6f 77 | 22 20 76 65 72 62 6f 73 | set now|" verbos|
|00004390| 65 20 62 75 66 66 65 72 | 2d 72 65 61 64 2d 6f 6e |e buffer|-read-on|
|000043a0| 6c 79 20 6d 65 73 73 61 | 67 65 20 22 43 6f 70 79 |ly messa|ge "Copy|
|000043b0| 69 6e 67 20 25 64 20 63 | 68 61 72 61 63 74 65 72 |ing %d c|haracter|
|000043c0| 73 22 20 22 4b 69 6c 6c | 69 6e 67 20 25 64 20 63 |s" "Kill|ing %d c|
|000043d0| 68 61 72 61 63 74 65 72 | 73 22 20 62 75 66 66 65 |haracter|s" buffe|
|000043e0| 72 2d 75 6e 64 6f 2d 6c | 69 73 74 20 74 20 6c 61 |r-undo-l|ist t la|
|000043f0| 73 74 2d 63 6f 6d 6d 61 | 6e 64 20 6b 69 6c 6c 2d |st-comma|nd kill-|
|00004400| 72 65 67 69 6f 6e 20 31 | 30 30 20 6e 69 6c 20 74 |region 1|00 nil t|
|00004410| 61 69 6c 20 75 6e 64 6f | 2d 68 69 67 68 2d 74 68 |ail undo|-high-th|
|00004420| 72 65 73 68 6f 6c 64 20 | 6b 69 6c 6c 2d 6e 65 77 |reshold |kill-new|
|00004430| 20 74 68 69 73 2d 63 6f | 6d 6d 61 6e 64 20 63 6f | this-co|mmand co|
|00004440| 70 79 2d 72 65 67 69 6f | 6e 2d 61 73 2d 6b 69 6c |py-regio|n-as-kil|
|00004450| 6c 5d 20 36 20 22 5c 0a | 4b 69 6c 6c 20 62 65 74 |l] 6 "\.|Kill bet|
|00004460| 77 65 65 6e 20 70 6f 69 | 6e 74 20 61 6e 64 20 6d |ween poi|nt and m|
|00004470| 61 72 6b 2e 0a 54 68 65 | 20 74 65 78 74 20 69 73 |ark..The| text is|
|00004480| 20 64 65 6c 65 74 65 64 | 20 62 75 74 20 73 61 76 | deleted| but sav|
|00004490| 65 64 20 69 6e 20 74 68 | 65 20 6b 69 6c 6c 20 72 |ed in th|e kill r|
|000044a0| 69 6e 67 2e 0a 54 68 65 | 20 63 6f 6d 6d 61 6e 64 |ing..The| command|
|000044b0| 20 5c 5c 5b 79 61 6e 6b | 5d 20 63 61 6e 20 72 65 | \\[yank|] can re|
|000044c0| 74 72 69 65 76 65 20 69 | 74 20 66 72 6f 6d 20 74 |trieve i|t from t|
|000044d0| 68 65 72 65 2e 0a 28 49 | 66 20 79 6f 75 20 77 61 |here..(I|f you wa|
|000044e0| 6e 74 20 74 6f 20 6b 69 | 6c 6c 20 61 6e 64 20 74 |nt to ki|ll and t|
|000044f0| 68 65 6e 20 79 61 6e 6b | 20 69 6d 6d 65 64 69 61 |hen yank| immedia|
|00004500| 74 65 6c 79 2c 20 75 73 | 65 20 5c 5c 5b 63 6f 70 |tely, us|e \\[cop|
|00004510| 79 2d 72 65 67 69 6f 6e | 2d 61 73 2d 6b 69 6c 6c |y-region|-as-kill|
|00004520| 5d 2e 29 0a 0a 54 68 69 | 73 20 69 73 20 74 68 65 |].)..Thi|s is the|
|00004530| 20 70 72 69 6d 69 74 69 | 76 65 20 66 6f 72 20 70 | primiti|ve for p|
|00004540| 72 6f 67 72 61 6d 73 20 | 74 6f 20 6b 69 6c 6c 20 |rograms |to kill |
|00004550| 74 65 78 74 20 28 61 73 | 20 6f 70 70 6f 73 65 64 |text (as| opposed|
|00004560| 20 74 6f 20 64 65 6c 65 | 74 69 6e 67 20 69 74 29 | to dele|ting it)|
|00004570| 2e 0a 53 75 70 70 6c 79 | 20 74 77 6f 20 61 72 67 |..Supply| two arg|
|00004580| 75 6d 65 6e 74 73 2c 20 | 63 68 61 72 61 63 74 65 |uments, |characte|
|00004590| 72 20 6e 75 6d 62 65 72 | 73 20 69 6e 64 69 63 61 |r number|s indica|
|000045a0| 74 69 6e 67 20 74 68 65 | 20 73 74 72 65 74 63 68 |ting the| stretch|
|000045b0| 20 6f 66 20 74 65 78 74 | 0a 20 74 6f 20 62 65 20 | of text|. to be |
|000045c0| 6b 69 6c 6c 65 64 2e 0a | 41 6e 79 20 63 6f 6d 6d |killed..|Any comm|
|000045d0| 61 6e 64 20 74 68 61 74 | 20 63 61 6c 6c 73 20 74 |and that| calls t|
|000045e0| 68 69 73 20 66 75 6e 63 | 74 69 6f 6e 20 69 73 20 |his func|tion is |
|000045f0| 61 20 5c 22 6b 69 6c 6c | 20 63 6f 6d 6d 61 6e 64 |a \"kill| command|
|00004600| 5c 22 2e 0a 49 66 20 74 | 68 65 20 70 72 65 76 69 |\"..If t|he previ|
|00004610| 6f 75 73 20 63 6f 6d 6d | 61 6e 64 20 77 61 73 20 |ous comm|and was |
|00004620| 61 6c 73 6f 20 61 20 6b | 69 6c 6c 20 63 6f 6d 6d |also a k|ill comm|
|00004630| 61 6e 64 2c 0a 74 68 65 | 20 74 65 78 74 20 6b 69 |and,.the| text ki|
|00004640| 6c 6c 65 64 20 74 68 69 | 73 20 74 69 6d 65 20 61 |lled thi|s time a|
|00004650| 70 70 65 6e 64 73 20 74 | 6f 20 74 68 65 20 74 65 |ppends t|o the te|
|00004660| 78 74 20 6b 69 6c 6c 65 | 64 20 6c 61 73 74 20 74 |xt kille|d last t|
|00004670| 69 6d 65 0a 74 6f 20 6d | 61 6b 65 20 6f 6e 65 20 |ime.to m|ake one |
|00004680| 65 6e 74 72 79 20 69 6e | 20 74 68 65 20 6b 69 6c |entry in| the kil|
|00004690| 6c 20 72 69 6e 67 2e 22 | 20 22 2a 72 5c 6e 70 22 |l ring."| "*r\np"|
|000046a0| 5d 29 0a 28 66 73 65 74 | 20 27 63 6f 70 79 2d 72 |]).(fset| 'copy-r|
|000046b0| 65 67 69 6f 6e 2d 61 73 | 2d 6b 69 6c 6c 20 23 5b |egion-as|-kill #[|
|000046c0| 28 62 65 67 20 65 6e 64 | 29 20 22 08 c1 3d ab 8b |(beg end|) "..=..|
|000046d0| c2 0b 0c 7b 0c 0b 57 5c | 22 88 aa 86 c5 0b 0c 7b |...{..W\|"......{|
|000046e0| 21 88 c1 16 06 c7 87 22 | 20 5b 6c 61 73 74 2d 63 |!......"| [last-c|
|000046f0| 6f 6d 6d 61 6e 64 20 6b | 69 6c 6c 2d 72 65 67 69 |ommand k|ill-regi|
|00004700| 6f 6e 20 6b 69 6c 6c 2d | 61 70 70 65 6e 64 20 62 |on kill-|append b|
|00004710| 65 67 20 65 6e 64 20 6b | 69 6c 6c 2d 6e 65 77 20 |eg end k|ill-new |
|00004720| 74 68 69 73 2d 63 6f 6d | 6d 61 6e 64 20 6e 69 6c |this-com|mand nil|
|00004730| 5d 20 34 20 22 5c 0a 53 | 61 76 65 20 74 68 65 20 |] 4 "\.S|ave the |
|00004740| 72 65 67 69 6f 6e 20 61 | 73 20 69 66 20 6b 69 6c |region a|s if kil|
|00004750| 6c 65 64 2c 20 62 75 74 | 20 64 6f 6e 27 74 20 6b |led, but| don't k|
|00004760| 69 6c 6c 20 69 74 2e 0a | 52 75 6e 73 20 60 6b 69 |ill it..|Runs `ki|
|00004770| 6c 6c 2d 68 6f 6f 6b 73 | 27 2e 22 20 22 72 22 5d |ll-hooks|'." "r"]|
|00004780| 29 0a 28 66 73 65 74 20 | 27 6b 69 6c 6c 2d 72 69 |).(fset |'kill-ri|
|00004790| 6e 67 2d 73 61 76 65 20 | 23 5b 28 62 65 67 20 65 |ng-save |#[(beg e|
|000047a0| 6e 64 29 20 22 c0 09 5c | 6e 5c 22 88 74 ad ad 60 |nd) "..\|n\".t..`|
|000047b0| 09 55 ab 83 5c 6e aa 81 | 09 60 c3 1c 1d 1e 06 c7 |.U..\n..|.`......|
|000047c0| 0e 06 c8 20 5c 22 ad 95 | 0e 06 62 88 c9 ca 21 88 |... \"..|..b...!.|
|000047d0| 0d 62 88 0e 0b ad 86 cc | 20 ad 82 cd 20 2b 87 22 |.b......| ... +."|
|000047e0| 20 5b 63 6f 70 79 2d 72 | 65 67 69 6f 6e 2d 61 73 | [copy-r|egion-as|
|000047f0| 2d 6b 69 6c 6c 20 62 65 | 67 20 65 6e 64 20 74 20 |-kill be|g end t |
|00004800| 69 6e 68 69 62 69 74 2d | 71 75 69 74 20 6f 70 6f |inhibit-|quit opo|
|00004810| 69 6e 74 20 6f 74 68 65 | 72 2d 65 6e 64 20 70 6f |int othe|r-end po|
|00004820| 73 2d 76 69 73 69 62 6c | 65 2d 69 6e 2d 77 69 6e |s-visibl|e-in-win|
|00004830| 64 6f 77 2d 70 20 73 65 | 6c 65 63 74 65 64 2d 77 |dow-p se|lected-w|
|00004840| 69 6e 64 6f 77 20 73 69 | 74 2d 66 6f 72 20 31 20 |indow si|t-for 1 |
|00004850| 71 75 69 74 2d 66 6c 61 | 67 20 6d 61 72 6b 20 7a |quit-fla|g mark z|
|00004860| 6d 61 63 73 2d 64 65 61 | 63 74 69 76 61 74 65 2d |macs-dea|ctivate-|
|00004870| 72 65 67 69 6f 6e 5d 20 | 33 20 22 5c 0a 53 61 76 |region] |3 "\.Sav|
|00004880| 65 20 74 68 65 20 72 65 | 67 69 6f 6e 20 61 73 20 |e the re|gion as |
|00004890| 69 66 20 6b 69 6c 6c 65 | 64 2c 20 62 75 74 20 64 |if kille|d, but d|
|000048a0| 6f 6e 27 74 20 6b 69 6c | 6c 20 69 74 2e 0a 54 68 |on't kil|l it..Th|
|000048b0| 69 73 20 63 6f 6d 6d 61 | 6e 64 20 69 73 20 73 69 |is comma|nd is si|
|000048c0| 6d 69 6c 61 72 20 74 6f | 20 60 63 6f 70 79 2d 72 |milar to| `copy-r|
|000048d0| 65 67 69 6f 6e 2d 61 73 | 2d 6b 69 6c 6c 27 2c 20 |egion-as|-kill', |
|000048e0| 65 78 63 65 70 74 20 74 | 68 61 74 20 69 74 20 67 |except t|hat it g|
|000048f0| 69 76 65 73 0a 76 69 73 | 75 61 6c 20 66 65 65 64 |ives.vis|ual feed|
|00004900| 62 61 63 6b 20 69 6e 64 | 69 63 61 74 69 6e 67 20 |back ind|icating |
|00004910| 74 68 65 20 65 78 74 65 | 6e 74 20 6f 66 20 74 68 |the exte|nt of th|
|00004920| 65 20 72 65 67 69 6f 6e | 20 62 65 69 6e 67 20 63 |e region| being c|
|00004930| 6f 70 69 65 64 2e 22 20 | 22 72 22 5d 29 0a 28 66 |opied." |"r"]).(f|
|00004940| 73 65 74 20 27 61 70 70 | 65 6e 64 2d 6e 65 78 74 |set 'app|end-next|
|00004950| 2d 6b 69 6c 6c 20 23 5b | 6e 69 6c 20 22 74 ab 86 |-kill #[|nil "t..|
|00004960| c0 11 c2 c3 21 87 c0 89 | 14 87 22 20 5b 6b 69 6c |....!...|.." [kil|
|00004970| 6c 2d 72 65 67 69 6f 6e | 20 74 68 69 73 2d 63 6f |l-region| this-co|
|00004980| 6d 6d 61 6e 64 20 6d 65 | 73 73 61 67 65 20 22 49 |mmand me|ssage "I|
|00004990| 66 20 74 68 65 20 6e 65 | 78 74 20 63 6f 6d 6d 61 |f the ne|xt comma|
|000049a0| 6e 64 20 69 73 20 61 20 | 6b 69 6c 6c 2c 20 69 74 |nd is a |kill, it|
|000049b0| 20 77 69 6c 6c 20 61 70 | 70 65 6e 64 22 20 6c 61 | will ap|pend" la|
|000049c0| 73 74 2d 63 6f 6d 6d 61 | 6e 64 5d 20 32 20 22 5c |st-comma|nd] 2 "\|
|000049d0| 0a 43 61 75 73 65 20 66 | 6f 6c 6c 6f 77 69 6e 67 |.Cause f|ollowing|
|000049e0| 20 63 6f 6d 6d 61 6e 64 | 2c 20 69 66 20 69 74 20 | command|, if it |
|000049f0| 6b 69 6c 6c 73 2c 20 74 | 6f 20 61 70 70 65 6e 64 |kills, t|o append|
|00004a00| 20 74 6f 20 70 72 65 76 | 69 6f 75 73 20 6b 69 6c | to prev|ious kil|
|00004a10| 6c 2e 22 20 22 5f 22 5d | 29 0a 28 66 73 65 74 20 |l." "_"]|).(fset |
|00004a20| 27 79 61 6e 6b 2d 70 6f | 70 20 23 5b 28 61 72 67 |'yank-po|p #[(arg|
|00004a30| 29 20 22 08 c1 3d ac 84 | c2 c3 21 88 c1 14 60 c5 |) "..=..|..!...`.|
|00004a40| c6 21 57 1e 07 60 c5 c6 | 21 7c 88 c8 60 21 88 c9 |.!W..`..|!|..`!..|
|00004a50| 0e 5c 6e 21 63 88 0e 07 | ad 83 cb c6 21 29 87 22 |.\n!c...|....!)."|
|00004a60| 20 5b 6c 61 73 74 2d 63 | 6f 6d 6d 61 6e 64 20 79 | [last-c|ommand y|
|00004a70| 61 6e 6b 20 65 72 72 6f | 72 20 22 50 72 65 76 69 |ank erro|r "Previ|
|00004a80| 6f 75 73 20 63 6f 6d 6d | 61 6e 64 20 77 61 73 20 |ous comm|and was |
|00004a90| 6e 6f 74 20 61 20 79 61 | 6e 6b 22 20 74 68 69 73 |not a ya|nk" this|
|00004aa0| 2d 63 6f 6d 6d 61 6e 64 | 20 6d 61 72 6b 20 74 20 |-command| mark t |
|00004ab0| 62 65 66 6f 72 65 20 73 | 65 74 2d 6d 61 72 6b 20 |before s|et-mark |
|00004ac0| 63 75 72 72 65 6e 74 2d | 6b 69 6c 6c 20 61 72 67 |current-|kill arg|
|00004ad0| 20 65 78 63 68 61 6e 67 | 65 2d 70 6f 69 6e 74 2d | exchang|e-point-|
|00004ae0| 61 6e 64 2d 6d 61 72 6b | 5d 20 33 20 22 5c 0a 52 |and-mark|] 3 "\.R|
|00004af0| 65 70 6c 61 63 65 20 6a | 75 73 74 2d 79 61 6e 6b |eplace j|ust-yank|
|00004b00| 65 64 20 73 74 72 65 74 | 63 68 20 6f 66 20 6b 69 |ed stret|ch of ki|
|00004b10| 6c 6c 65 64 20 74 65 78 | 74 20 77 69 74 68 20 61 |lled tex|t with a|
|00004b20| 20 64 69 66 66 65 72 65 | 6e 74 20 73 74 72 65 74 | differe|nt stret|
|00004b30| 63 68 2e 0a 54 68 69 73 | 20 63 6f 6d 6d 61 6e 64 |ch..This| command|
|00004b40| 20 69 73 20 61 6c 6c 6f | 77 65 64 20 6f 6e 6c 79 | is allo|wed only|
|00004b50| 20 69 6d 6d 65 64 69 61 | 74 65 6c 79 20 61 66 74 | immedia|tely aft|
|00004b60| 65 72 20 61 20 60 79 61 | 6e 6b 27 20 6f 72 20 61 |er a `ya|nk' or a|
|00004b70| 20 60 79 61 6e 6b 2d 70 | 6f 70 27 2e 0a 41 74 20 | `yank-p|op'..At |
|00004b80| 73 75 63 68 20 61 20 74 | 69 6d 65 2c 20 74 68 65 |such a t|ime, the|
|00004b90| 20 72 65 67 69 6f 6e 20 | 63 6f 6e 74 61 69 6e 73 | region |contains|
|00004ba0| 20 61 20 73 74 72 65 74 | 63 68 20 6f 66 20 72 65 | a stret|ch of re|
|00004bb0| 69 6e 73 65 72 74 65 64 | 0a 70 72 65 76 69 6f 75 |inserted|.previou|
|00004bc0| 73 6c 79 2d 6b 69 6c 6c | 65 64 20 74 65 78 74 2e |sly-kill|ed text.|
|00004bd0| 20 20 60 79 61 6e 6b 2d | 70 6f 70 27 20 64 65 6c | `yank-|pop' del|
|00004be0| 65 74 65 73 20 74 68 61 | 74 20 74 65 78 74 20 61 |etes tha|t text a|
|00004bf0| 6e 64 20 69 6e 73 65 72 | 74 73 20 69 6e 20 69 74 |nd inser|ts in it|
|00004c00| 73 0a 70 6c 61 63 65 20 | 61 20 64 69 66 66 65 72 |s.place |a differ|
|00004c10| 65 6e 74 20 73 74 72 65 | 74 63 68 20 6f 66 20 6b |ent stre|tch of k|
|00004c20| 69 6c 6c 65 64 20 74 65 | 78 74 2e 0a 0a 57 69 74 |illed te|xt...Wit|
|00004c30| 68 20 6e 6f 20 61 72 67 | 75 6d 65 6e 74 2c 20 74 |h no arg|ument, t|
|00004c40| 68 65 20 70 72 65 76 69 | 6f 75 73 20 6b 69 6c 6c |he previ|ous kill|
|00004c50| 20 69 73 20 69 6e 73 65 | 72 74 65 64 2e 0a 57 69 | is inse|rted..Wi|
|00004c60| 74 68 20 61 72 67 75 6d | 65 6e 74 20 4e 2c 20 69 |th argum|ent N, i|
|00004c70| 6e 73 65 72 74 20 74 68 | 65 20 4e 74 68 20 70 72 |nsert th|e Nth pr|
|00004c80| 65 76 69 6f 75 73 20 6b | 69 6c 6c 2e 0a 49 66 20 |evious k|ill..If |
|00004c90| 4e 20 69 73 20 6e 65 67 | 61 74 69 76 65 2c 20 74 |N is neg|ative, t|
|00004ca0| 68 69 73 20 69 73 20 61 | 20 6d 6f 72 65 20 72 65 |his is a| more re|
|00004cb0| 63 65 6e 74 20 6b 69 6c | 6c 2e 0a 0a 54 68 65 20 |cent kil|l...The |
|00004cc0| 73 65 71 75 65 6e 63 65 | 20 6f 66 20 6b 69 6c 6c |sequence| of kill|
|00004cd0| 73 20 77 72 61 70 73 20 | 61 72 6f 75 6e 64 2c 20 |s wraps |around, |
|00004ce0| 73 6f 20 74 68 61 74 20 | 61 66 74 65 72 20 74 68 |so that |after th|
|00004cf0| 65 20 6f 6c 64 65 73 74 | 20 6f 6e 65 0a 63 6f 6d |e oldest| one.com|
|00004d00| 65 73 20 74 68 65 20 6e | 65 77 65 73 74 20 6f 6e |es the n|ewest on|
|00004d10| 65 2e 22 20 22 2a 70 22 | 5d 29 0a 28 66 73 65 74 |e." "*p"|]).(fset|
|00004d20| 20 27 79 61 6e 6b 20 23 | 5b 28 26 6f 70 74 69 6f | 'yank #|[(&optio|
|00004d30| 6e 61 6c 20 61 72 67 29 | 20 22 c0 11 c2 60 21 88 |nal arg)| "...`!.|
|00004d40| c3 0c 3c ab 83 c5 aa 8a | 0c c6 3d ab 83 c7 aa 82 |..<.....|..=.....|
|00004d50| 0c 53 21 63 88 0c 3a ab | 84 c8 c0 21 88 c9 89 11 |.S!c..:.|...!....|
|00004d60| 87 22 20 5b 74 20 74 68 | 69 73 2d 63 6f 6d 6d 61 |." [t th|is-comma|
|00004d70| 6e 64 20 70 75 73 68 2d | 6d 61 72 6b 20 63 75 72 |nd push-|mark cur|
|00004d80| 72 65 6e 74 2d 6b 69 6c | 6c 20 61 72 67 20 30 20 |rent-kil|l arg 0 |
|00004d90| 2d 20 2d 31 20 65 78 63 | 68 61 6e 67 65 2d 70 6f |- -1 exc|hange-po|
|00004da0| 69 6e 74 2d 61 6e 64 2d | 6d 61 72 6b 20 79 61 6e |int-and-|mark yan|
|00004db0| 6b 5d 20 33 20 22 5c 0a | 52 65 69 6e 73 65 72 74 |k] 3 "\.|Reinsert|
|00004dc0| 20 74 68 65 20 6c 61 73 | 74 20 73 74 72 65 74 63 | the las|t stretc|
|00004dd0| 68 20 6f 66 20 6b 69 6c | 6c 65 64 20 74 65 78 74 |h of kil|led text|
|00004de0| 2e 0a 4d 6f 72 65 20 70 | 72 65 63 69 73 65 6c 79 |..More p|recisely|
|00004df0| 2c 20 72 65 69 6e 73 65 | 72 74 20 74 68 65 20 73 |, reinse|rt the s|
|00004e00| 74 72 65 74 63 68 20 6f | 66 20 6b 69 6c 6c 65 64 |tretch o|f killed|
|00004e10| 20 74 65 78 74 20 6d 6f | 73 74 20 72 65 63 65 6e | text mo|st recen|
|00004e20| 74 6c 79 0a 6b 69 6c 6c | 65 64 20 4f 52 20 79 61 |tly.kill|ed OR ya|
|00004e30| 6e 6b 65 64 2e 20 20 50 | 75 74 20 70 6f 69 6e 74 |nked. P|ut point|
|00004e40| 20 61 74 20 65 6e 64 2c | 20 61 6e 64 20 73 65 74 | at end,| and set|
|00004e50| 20 6d 61 72 6b 20 61 74 | 20 62 65 67 69 6e 6e 69 | mark at| beginni|
|00004e60| 6e 67 2e 0a 57 69 74 68 | 20 6a 75 73 74 20 43 2d |ng..With| just C-|
|00004e70| 75 20 61 73 20 61 72 67 | 75 6d 65 6e 74 2c 20 73 |u as arg|ument, s|
|00004e80| 61 6d 65 20 62 75 74 20 | 70 75 74 20 70 6f 69 6e |ame but |put poin|
|00004e90| 74 20 61 74 20 62 65 67 | 69 6e 6e 69 6e 67 20 28 |t at beg|inning (|
|00004ea0| 61 6e 64 20 6d 61 72 6b | 20 61 74 20 65 6e 64 29 |and mark| at end)|
|00004eb0| 2e 0a 57 69 74 68 20 61 | 72 67 75 6d 65 6e 74 20 |..With a|rgument |
|00004ec0| 4e 2c 20 72 65 69 6e 73 | 65 72 74 20 74 68 65 20 |N, reins|ert the |
|00004ed0| 4e 74 68 20 6d 6f 73 74 | 20 72 65 63 65 6e 74 6c |Nth most| recentl|
|00004ee0| 79 20 6b 69 6c 6c 65 64 | 20 73 74 72 65 74 63 68 |y killed| stretch|
|00004ef0| 20 6f 66 20 6b 69 6c 6c | 65 64 20 74 65 78 74 2e | of kill|ed text.|
|00004f00| 0a 53 65 65 20 61 6c 73 | 6f 20 74 68 65 20 63 6f |.See als|o the co|
|00004f10| 6d 6d 61 6e 64 20 5c 5c | 5b 79 61 6e 6b 2d 70 6f |mmand \\|[yank-po|
|00004f20| 70 5d 2e 22 20 22 2a 50 | 22 5d 29 0a 28 66 73 65 |p]." "*P|"]).(fse|
|00004f30| 74 20 27 72 6f 74 61 74 | 65 2d 79 61 6e 6b 2d 70 |t 'rotat|e-yank-p|
|00004f40| 6f 69 6e 74 65 72 20 23 | 5b 28 61 72 67 29 20 22 |ointer #|[(arg) "|
|00004f50| c0 09 21 87 22 20 5b 63 | 75 72 72 65 6e 74 2d 6b |..!." [c|urrent-k|
|00004f60| 69 6c 6c 20 61 72 67 5d | 20 32 20 22 5c 0a 52 6f |ill arg]| 2 "\.Ro|
|00004f70| 74 61 74 65 20 74 68 65 | 20 79 61 6e 6b 69 6e 67 |tate the| yanking|
|00004f80| 20 70 6f 69 6e 74 20 69 | 6e 20 74 68 65 20 6b 69 | point i|n the ki|
|00004f90| 6c 6c 20 72 69 6e 67 2e | 0a 57 69 74 68 20 61 72 |ll ring.|.With ar|
|00004fa0| 67 75 6d 65 6e 74 2c 20 | 72 6f 74 61 74 65 20 74 |gument, |rotate t|
|00004fb0| 68 61 74 20 6d 61 6e 79 | 20 6b 69 6c 6c 73 20 66 |hat many| kills f|
|00004fc0| 6f 72 77 61 72 64 20 28 | 6f 72 20 62 61 63 6b 77 |orward (|or backw|
|00004fd0| 61 72 64 2c 20 69 66 20 | 6e 65 67 61 74 69 76 65 |ard, if |negative|
|00004fe0| 29 2e 22 20 22 70 22 5d | 29 0a 28 66 73 65 74 20 |)." "p"]|).(fset |
|00004ff0| 27 69 6e 73 65 72 74 2d | 62 75 66 66 65 72 20 23 |'insert-|buffer #|
|00005000| 5b 28 62 75 66 66 65 72 | 29 20 22 c0 09 21 ac 84 |[(buffer|) "..!..|
|00005010| c2 09 21 11 c3 89 89 1c | 1d 1e 06 8a 8a 09 71 88 |..!.....|......q.|
|00005020| 65 16 06 64 15 29 c7 09 | 0e 06 0d 23 88 60 14 29 |e..d.)..|...#.`.)|
|00005030| c8 0c 21 88 2b c3 87 22 | 20 5b 62 75 66 66 65 72 |..!.+.."| [buffer|
|00005040| 70 20 62 75 66 66 65 72 | 20 67 65 74 2d 62 75 66 |p buffer| get-buf|
|00005050| 66 65 72 20 6e 69 6c 20 | 6e 65 77 6d 61 72 6b 20 |fer nil |newmark |
|00005060| 65 6e 64 20 73 74 61 72 | 74 20 69 6e 73 65 72 74 |end star|t insert|
|00005070| 2d 62 75 66 66 65 72 2d | 73 75 62 73 74 72 69 6e |-buffer-|substrin|
|00005080| 67 20 70 75 73 68 2d 6d | 61 72 6b 5d 20 34 20 22 |g push-m|ark] 4 "|
|00005090| 5c 0a 49 6e 73 65 72 74 | 20 61 66 74 65 72 20 70 |\.Insert| after p|
|000050a0| 6f 69 6e 74 20 74 68 65 | 20 63 6f 6e 74 65 6e 74 |oint the| content|
|000050b0| 73 20 6f 66 20 42 55 46 | 46 45 52 2e 0a 50 75 74 |s of BUF|FER..Put|
|000050c0| 73 20 6d 61 72 6b 20 61 | 66 74 65 72 20 74 68 65 |s mark a|fter the|
|000050d0| 20 69 6e 73 65 72 74 65 | 64 20 74 65 78 74 2e 0a | inserte|d text..|
|000050e0| 42 55 46 46 45 52 20 6d | 61 79 20 62 65 20 61 20 |BUFFER m|ay be a |
|000050f0| 62 75 66 66 65 72 20 6f | 72 20 61 20 62 75 66 66 |buffer o|r a buff|
|00005100| 65 72 20 6e 61 6d 65 2e | 22 20 28 62 79 74 65 2d |er name.|" (byte-|
|00005110| 63 6f 64 65 20 22 c0 20 | 88 c1 c2 c3 20 c4 23 43 |code ". |.... .#C|
|00005120| 87 22 20 5b 62 61 72 66 | 2d 69 66 2d 62 75 66 66 |." [barf|-if-buff|
|00005130| 65 72 2d 72 65 61 64 2d | 6f 6e 6c 79 20 72 65 61 |er-read-|only rea|
|00005140| 64 2d 62 75 66 66 65 72 | 20 22 49 6e 73 65 72 74 |d-buffer| "Insert|
|00005150| 20 62 75 66 66 65 72 3a | 20 22 20 6f 74 68 65 72 | buffer:| " other|
|00005160| 2d 62 75 66 66 65 72 20 | 74 5d 20 34 29 5d 29 0a |-buffer |t] 4)]).|
|00005170| 28 66 73 65 74 20 27 61 | 70 70 65 6e 64 2d 74 6f |(fset 'a|ppend-to|
|00005180| 2d 62 75 66 66 65 72 20 | 23 5b 28 62 75 66 66 65 |-buffer |#[(buffe|
|00005190| 72 20 73 74 61 72 74 20 | 65 6e 64 29 20 22 70 18 |r start |end) "p.|
|000051a0| 8a c1 5c 6e 21 71 88 c3 | 08 0c 0d 23 2a 87 22 20 |..\n!q..|...#*." |
|000051b0| 5b 6f 6c 64 62 75 66 20 | 67 65 74 2d 62 75 66 66 |[oldbuf |get-buff|
|000051c0| 65 72 2d 63 72 65 61 74 | 65 20 62 75 66 66 65 72 |er-creat|e buffer|
|000051d0| 20 69 6e 73 65 72 74 2d | 62 75 66 66 65 72 2d 73 | insert-|buffer-s|
|000051e0| 75 62 73 74 72 69 6e 67 | 20 73 74 61 72 74 20 65 |ubstring| start e|
|000051f0| 6e 64 5d 20 34 20 22 5c | 0a 41 70 70 65 6e 64 20 |nd] 4 "\|.Append |
|00005200| 74 6f 20 73 70 65 63 69 | 66 69 65 64 20 62 75 66 |to speci|fied buf|
|00005210| 66 65 72 20 74 68 65 20 | 74 65 78 74 20 6f 66 20 |fer the |text of |
|00005220| 74 68 65 20 72 65 67 69 | 6f 6e 2e 0a 49 74 20 69 |the regi|on..It i|
|00005230| 73 20 69 6e 73 65 72 74 | 65 64 20 69 6e 74 6f 20 |s insert|ed into |
|00005240| 74 68 61 74 20 62 75 66 | 66 65 72 20 62 65 66 6f |that buf|fer befo|
|00005250| 72 65 20 69 74 73 20 70 | 6f 69 6e 74 2e 0a 0a 57 |re its p|oint...W|
|00005260| 68 65 6e 20 63 61 6c 6c | 69 6e 67 20 66 72 6f 6d |hen call|ing from|
|00005270| 20 61 20 70 72 6f 67 72 | 61 6d 2c 20 67 69 76 65 | a progr|am, give|
|00005280| 20 74 68 72 65 65 20 61 | 72 67 75 6d 65 6e 74 73 | three a|rguments|
|00005290| 3a 0a 42 55 46 46 45 52 | 20 28 6f 72 20 62 75 66 |:.BUFFER| (or buf|
|000052a0| 66 65 72 20 6e 61 6d 65 | 29 2c 20 53 54 41 52 54 |fer name|), START|
|000052b0| 20 61 6e 64 20 45 4e 44 | 2e 0a 53 54 41 52 54 20 | and END|..START |
|000052c0| 61 6e 64 20 45 4e 44 20 | 73 70 65 63 69 66 79 20 |and END |specify |
|000052d0| 74 68 65 20 70 6f 72 74 | 69 6f 6e 20 6f 66 20 74 |the port|ion of t|
|000052e0| 68 65 20 63 75 72 72 65 | 6e 74 20 62 75 66 66 65 |he curre|nt buffe|
|000052f0| 72 20 74 6f 20 62 65 20 | 63 6f 70 69 65 64 2e 22 |r to be |copied."|
|00005300| 20 28 62 79 74 65 2d 63 | 6f 64 65 20 22 c0 c1 c2 | (byte-c|ode "...|
|00005310| c3 c4 5c 22 c4 23 c5 20 | c6 20 45 87 22 20 5b 72 |..\".#. |. E." [r|
|00005320| 65 61 64 2d 62 75 66 66 | 65 72 20 22 41 70 70 65 |ead-buff|er "Appe|
|00005330| 6e 64 20 74 6f 20 62 75 | 66 66 65 72 3a 20 22 20 |nd to bu|ffer: " |
|00005340| 6f 74 68 65 72 2d 62 75 | 66 66 65 72 20 6e 69 6c |other-bu|ffer nil|
|00005350| 20 74 20 72 65 67 69 6f | 6e 2d 62 65 67 69 6e 6e | t regio|n-beginn|
|00005360| 69 6e 67 20 72 65 67 69 | 6f 6e 2d 65 6e 64 5d 20 |ing regi|on-end] |
|00005370| 35 29 5d 29 0a 28 66 73 | 65 74 20 27 70 72 65 70 |5)]).(fs|et 'prep|
|00005380| 65 6e 64 2d 74 6f 2d 62 | 75 66 66 65 72 20 23 5b |end-to-b|uffer #[|
|00005390| 28 62 75 66 66 65 72 20 | 73 74 61 72 74 20 65 6e |(buffer |start en|
|000053a0| 64 29 20 22 70 18 8a c1 | 5c 6e 21 71 88 8a c3 08 |d) "p...|\n!q....|
|000053b0| 0c 0d 23 2b 87 22 20 5b | 6f 6c 64 62 75 66 20 67 |..#+." [|oldbuf g|
|000053c0| 65 74 2d 62 75 66 66 65 | 72 2d 63 72 65 61 74 65 |et-buffe|r-create|
|000053d0| 20 62 75 66 66 65 72 20 | 69 6e 73 65 72 74 2d 62 | buffer |insert-b|
|000053e0| 75 66 66 65 72 2d 73 75 | 62 73 74 72 69 6e 67 20 |uffer-su|bstring |
|000053f0| 73 74 61 72 74 20 65 6e | 64 5d 20 34 20 22 5c 0a |start en|d] 4 "\.|
|00005400| 50 72 65 70 65 6e 64 20 | 74 6f 20 73 70 65 63 69 |Prepend |to speci|
|00005410| 66 69 65 64 20 62 75 66 | 66 65 72 20 74 68 65 20 |fied buf|fer the |
|00005420| 74 65 78 74 20 6f 66 20 | 74 68 65 20 72 65 67 69 |text of |the regi|
|00005430| 6f 6e 2e 0a 49 74 20 69 | 73 20 69 6e 73 65 72 74 |on..It i|s insert|
|00005440| 65 64 20 69 6e 74 6f 20 | 74 68 61 74 20 62 75 66 |ed into |that buf|
|00005450| 66 65 72 20 61 66 74 65 | 72 20 69 74 73 20 70 6f |fer afte|r its po|
|00005460| 69 6e 74 2e 0a 0a 57 68 | 65 6e 20 63 61 6c 6c 69 |int...Wh|en calli|
|00005470| 6e 67 20 66 72 6f 6d 20 | 61 20 70 72 6f 67 72 61 |ng from |a progra|
|00005480| 6d 2c 20 67 69 76 65 20 | 74 68 72 65 65 20 61 72 |m, give |three ar|
|00005490| 67 75 6d 65 6e 74 73 3a | 0a 42 55 46 46 45 52 20 |guments:|.BUFFER |
|000054a0| 28 6f 72 20 62 75 66 66 | 65 72 20 6e 61 6d 65 29 |(or buff|er name)|
|000054b0| 2c 20 53 54 41 52 54 20 | 61 6e 64 20 45 4e 44 2e |, START |and END.|
|000054c0| 0a 53 54 41 52 54 20 61 | 6e 64 20 45 4e 44 20 73 |.START a|nd END s|
|000054d0| 70 65 63 69 66 79 20 74 | 68 65 20 70 6f 72 74 69 |pecify t|he porti|
|000054e0| 6f 6e 20 6f 66 20 74 68 | 65 20 63 75 72 72 65 6e |on of th|e curren|
|000054f0| 74 20 62 75 66 66 65 72 | 20 74 6f 20 62 65 20 63 |t buffer| to be c|
|00005500| 6f 70 69 65 64 2e 22 20 | 22 42 50 72 65 70 65 6e |opied." |"BPrepen|
|00005510| 64 20 74 6f 20 62 75 66 | 66 65 72 3a 20 5c 6e 72 |d to buf|fer: \nr|
|00005520| 22 5d 29 0a 28 66 73 65 | 74 20 27 63 6f 70 79 2d |"]).(fse|t 'copy-|
|00005530| 74 6f 2d 62 75 66 66 65 | 72 20 23 5b 28 62 75 66 |to-buffe|r #[(buf|
|00005540| 66 65 72 20 73 74 61 72 | 74 20 65 6e 64 29 20 22 |fer star|t end) "|
|00005550| 70 18 8a c1 5c 6e 21 71 | 88 c3 20 88 8a c4 08 0d |p...\n!q|.. .....|
|00005560| 0e 06 23 2b 87 22 20 5b | 6f 6c 64 62 75 66 20 67 |..#+." [|oldbuf g|
|00005570| 65 74 2d 62 75 66 66 65 | 72 2d 63 72 65 61 74 65 |et-buffe|r-create|
|00005580| 20 62 75 66 66 65 72 20 | 65 72 61 73 65 2d 62 75 | buffer |erase-bu|
|00005590| 66 66 65 72 20 69 6e 73 | 65 72 74 2d 62 75 66 66 |ffer ins|ert-buff|
|000055a0| 65 72 2d 73 75 62 73 74 | 72 69 6e 67 20 73 74 61 |er-subst|ring sta|
|000055b0| 72 74 20 65 6e 64 5d 20 | 34 20 22 5c 0a 43 6f 70 |rt end] |4 "\.Cop|
|000055c0| 79 20 74 6f 20 73 70 65 | 63 69 66 69 65 64 20 62 |y to spe|cified b|
|000055d0| 75 66 66 65 72 20 74 68 | 65 20 74 65 78 74 20 6f |uffer th|e text o|
|000055e0| 66 20 74 68 65 20 72 65 | 67 69 6f 6e 2e 0a 49 74 |f the re|gion..It|
|000055f0| 20 69 73 20 69 6e 73 65 | 72 74 65 64 20 69 6e 74 | is inse|rted int|
|00005600| 6f 20 74 68 61 74 20 62 | 75 66 66 65 72 2c 20 72 |o that b|uffer, r|
|00005610| 65 70 6c 61 63 69 6e 67 | 20 65 78 69 73 74 69 6e |eplacing| existin|
|00005620| 67 20 74 65 78 74 20 74 | 68 65 72 65 2e 0a 0a 57 |g text t|here...W|
|00005630| 68 65 6e 20 63 61 6c 6c | 69 6e 67 20 66 72 6f 6d |hen call|ing from|
|00005640| 20 61 20 70 72 6f 67 72 | 61 6d 2c 20 67 69 76 65 | a progr|am, give|
|00005650| 20 74 68 72 65 65 20 61 | 72 67 75 6d 65 6e 74 73 | three a|rguments|
|00005660| 3a 0a 42 55 46 46 45 52 | 20 28 6f 72 20 62 75 66 |:.BUFFER| (or buf|
|00005670| 66 65 72 20 6e 61 6d 65 | 29 2c 20 53 54 41 52 54 |fer name|), START|
|00005680| 20 61 6e 64 20 45 4e 44 | 2e 0a 53 54 41 52 54 20 | and END|..START |
|00005690| 61 6e 64 20 45 4e 44 20 | 73 70 65 63 69 66 79 20 |and END |specify |
|000056a0| 74 68 65 20 70 6f 72 74 | 69 6f 6e 20 6f 66 20 74 |the port|ion of t|
|000056b0| 68 65 20 63 75 72 72 65 | 6e 74 20 62 75 66 66 65 |he curre|nt buffe|
|000056c0| 72 20 74 6f 20 62 65 20 | 63 6f 70 69 65 64 2e 22 |r to be |copied."|
|000056d0| 20 22 42 43 6f 70 79 20 | 74 6f 20 62 75 66 66 65 | "BCopy |to buffe|
|000056e0| 72 3a 20 5c 6e 72 22 5d | 29 0a 28 66 73 65 74 20 |r: \nr"]|).(fset |
|000056f0| 27 6d 61 72 6b 20 23 5b | 28 26 6f 70 74 69 6f 6e |'mark #[|(&option|
|00005700| 61 6c 20 66 6f 72 63 65 | 20 62 75 66 66 65 72 29 |al force| buffer)|
|00005710| 20 22 c0 09 21 11 c2 0b | 09 5c 22 89 1c ad 83 c5 | "..!...|.\".....|
|00005720| 0c 21 29 87 22 20 5b 64 | 65 63 6f 64 65 2d 62 75 |.!)." [d|ecode-bu|
|00005730| 66 66 65 72 20 62 75 66 | 66 65 72 20 6d 61 72 6b |ffer buf|fer mark|
|00005740| 2d 6d 61 72 6b 65 72 20 | 66 6f 72 63 65 20 6d 20 |-marker |force m |
|00005750| 6d 61 72 6b 65 72 2d 70 | 6f 73 69 74 69 6f 6e 5d |marker-p|osition]|
|00005760| 20 34 20 22 5c 0a 52 65 | 74 75 72 6e 20 74 68 69 | 4 "\.Re|turn thi|
|00005770| 73 20 62 75 66 66 65 72 | 27 73 20 6d 61 72 6b 20 |s buffer|'s mark |
|00005780| 76 61 6c 75 65 20 61 73 | 20 69 6e 74 65 67 65 72 |value as| integer|
|00005790| 2c 20 6f 72 20 6e 69 6c | 20 69 66 20 6e 6f 20 6d |, or nil| if no m|
|000057a0| 61 72 6b 2e 0a 0a 49 66 | 20 60 7a 6d 61 63 73 2d |ark...If| `zmacs-|
|000057b0| 72 65 67 69 6f 6e 73 27 | 20 69 73 20 74 72 75 65 |regions'| is true|
|000057c0| 2c 20 74 68 65 6e 20 74 | 68 69 73 20 72 65 74 75 |, then t|his retu|
|000057d0| 72 6e 73 20 6e 69 6c 20 | 75 6e 6c 65 73 73 20 74 |rns nil |unless t|
|000057e0| 68 65 20 72 65 67 69 6f | 6e 20 69 73 0a 63 75 72 |he regio|n is.cur|
|000057f0| 72 65 6e 74 6c 79 20 69 | 6e 20 74 68 65 20 61 63 |rently i|n the ac|
|00005800| 74 69 76 65 20 28 68 69 | 67 68 6c 69 67 68 74 65 |tive (hi|ghlighte|
|00005810| 64 29 20 73 74 61 74 65 | 2e 20 20 57 69 74 68 20 |d) state|. With |
|00005820| 61 6e 20 61 72 67 75 6d | 65 6e 74 20 6f 66 20 74 |an argum|ent of t|
|00005830| 2c 20 74 68 69 73 0a 72 | 65 74 75 72 6e 73 20 74 |, this.r|eturns t|
|00005840| 68 65 20 6d 61 72 6b 20 | 28 69 66 20 74 68 65 72 |he mark |(if ther|
|00005850| 65 20 69 73 20 6f 6e 65 | 29 20 72 65 67 61 72 64 |e is one|) regard|
|00005860| 6c 65 73 73 20 6f 66 20 | 74 68 65 20 61 63 74 69 |less of |the acti|
|00005870| 76 65 2d 72 65 67 69 6f | 6e 20 73 74 61 74 65 2e |ve-regio|n state.|
|00005880| 0a 59 6f 75 20 73 68 6f | 75 6c 64 20 2a 67 65 6e |.You sho|uld *gen|
|00005890| 65 72 61 6c 6c 79 2a 20 | 6e 6f 74 20 75 73 65 20 |erally* |not use |
|000058a0| 74 68 65 20 6d 61 72 6b | 20 75 6e 6c 65 73 73 20 |the mark| unless |
|000058b0| 74 68 65 20 72 65 67 69 | 6f 6e 20 69 73 20 61 63 |the regi|on is ac|
|000058c0| 74 69 76 65 2c 20 69 66 | 0a 74 68 65 20 75 73 65 |tive, if|.the use|
|000058d0| 72 20 68 61 73 20 65 78 | 70 72 65 73 73 65 64 20 |r has ex|pressed |
|000058e0| 61 20 70 72 65 66 65 72 | 65 6e 63 65 20 66 6f 72 |a prefer|ence for|
|000058f0| 20 74 68 65 20 61 63 74 | 69 76 65 2d 72 65 67 69 | the act|ive-regi|
|00005900| 6f 6e 20 6d 6f 64 65 6c | 2e 0a 0a 49 66 20 79 6f |on model|...If yo|
|00005910| 75 20 61 72 65 20 75 73 | 69 6e 67 20 74 68 69 73 |u are us|ing this|
|00005920| 20 69 6e 20 61 6e 20 65 | 64 69 74 69 6e 67 20 63 | in an e|diting c|
|00005930| 6f 6d 6d 61 6e 64 2c 20 | 79 6f 75 20 61 72 65 20 |ommand, |you are |
|00005940| 6d 6f 73 74 20 6c 69 6b | 65 6c 79 20 6d 61 6b 69 |most lik|ely maki|
|00005950| 6e 67 0a 61 20 6d 69 73 | 74 61 6b 65 3b 20 73 65 |ng.a mis|take; se|
|00005960| 65 20 74 68 65 20 64 6f | 63 75 6d 65 6e 74 61 74 |e the do|cumentat|
|00005970| 69 6f 6e 20 6f 66 20 60 | 73 65 74 2d 6d 61 72 6b |ion of `|set-mark|
|00005980| 27 2e 22 5d 29 0a 28 66 | 73 65 74 20 27 73 65 74 |'."]).(f|set 'set|
|00005990| 2d 6d 61 72 6b 20 23 5b | 28 70 6f 73 20 26 6f 70 |-mark #[|(pos &op|
|000059a0| 74 69 6f 6e 61 6c 20 62 | 75 66 66 65 72 29 20 22 |tional b|uffer) "|
|000059b0| c0 09 21 11 c2 c3 09 5c | 22 0c 09 93 87 22 20 5b |..!....\|"...." [|
|000059c0| 64 65 63 6f 64 65 2d 62 | 75 66 66 65 72 20 62 75 |decode-b|uffer bu|
|000059d0| 66 66 65 72 20 6d 61 72 | 6b 2d 6d 61 72 6b 65 72 |ffer mar|k-marker|
|000059e0| 20 74 20 70 6f 73 5d 20 | 33 20 22 5c 0a 53 65 74 | t pos] |3 "\.Set|
|000059f0| 20 74 68 69 73 20 62 75 | 66 66 65 72 27 73 20 6d | this bu|ffer's m|
|00005a00| 61 72 6b 20 74 6f 20 50 | 4f 53 2e 20 20 44 6f 6e |ark to P|OS. Don|
|00005a10| 27 74 20 75 73 65 20 74 | 68 69 73 20 66 75 6e 63 |'t use t|his func|
|00005a20| 74 69 6f 6e 21 0a 54 68 | 61 74 20 69 73 20 74 6f |tion!.Th|at is to|
|00005a30| 20 73 61 79 2c 20 64 6f | 6e 27 74 20 75 73 65 20 | say, do|n't use |
|00005a40| 74 68 69 73 20 66 75 6e | 63 74 69 6f 6e 20 75 6e |this fun|ction un|
|00005a50| 6c 65 73 73 20 79 6f 75 | 20 77 61 6e 74 0a 74 68 |less you| want.th|
|00005a60| 65 20 75 73 65 72 20 74 | 6f 20 73 65 65 20 74 68 |e user t|o see th|
|00005a70| 61 74 20 74 68 65 20 6d | 61 72 6b 20 68 61 73 20 |at the m|ark has |
|00005a80| 6d 6f 76 65 64 2c 20 61 | 6e 64 20 79 6f 75 20 77 |moved, a|nd you w|
|00005a90| 61 6e 74 20 74 68 65 20 | 70 72 65 76 69 6f 75 73 |ant the |previous|
|00005aa0| 0a 6d 61 72 6b 20 70 6f | 73 69 74 69 6f 6e 20 74 |.mark po|sition t|
|00005ab0| 6f 20 62 65 20 6c 6f 73 | 74 2e 0a 0a 4e 6f 72 6d |o be los|t...Norm|
|00005ac0| 61 6c 6c 79 2c 20 77 68 | 65 6e 20 61 20 6e 65 77 |ally, wh|en a new|
|00005ad0| 20 6d 61 72 6b 20 69 73 | 20 73 65 74 2c 20 74 68 | mark is| set, th|
|00005ae0| 65 20 6f 6c 64 20 6f 6e | 65 20 73 68 6f 75 6c 64 |e old on|e should|
|00005af0| 20 67 6f 20 6f 6e 20 74 | 68 65 20 73 74 61 63 6b | go on t|he stack|
|00005b00| 2e 0a 54 68 69 73 20 69 | 73 20 77 68 79 20 6d 6f |..This i|s why mo|
|00005b10| 73 74 20 61 70 70 6c 69 | 63 61 74 69 6f 6e 73 20 |st appli|cations |
|00005b20| 73 68 6f 75 6c 64 20 75 | 73 65 20 70 75 73 68 2d |should u|se push-|
|00005b30| 6d 61 72 6b 2c 20 6e 6f | 74 20 73 65 74 2d 6d 61 |mark, no|t set-ma|
|00005b40| 72 6b 2e 0a 0a 4e 6f 76 | 69 63 65 20 45 6d 61 63 |rk...Nov|ice Emac|
|00005b50| 73 20 4c 69 73 70 20 70 | 72 6f 67 72 61 6d 6d 65 |s Lisp p|rogramme|
|00005b60| 72 73 20 6f 66 74 65 6e | 20 74 72 79 20 74 6f 20 |rs often| try to |
|00005b70| 75 73 65 20 74 68 65 20 | 6d 61 72 6b 20 66 6f 72 |use the |mark for|
|00005b80| 20 74 68 65 20 77 72 6f | 6e 67 0a 70 75 72 70 6f | the wro|ng.purpo|
|00005b90| 73 65 73 2e 20 20 54 68 | 65 20 6d 61 72 6b 20 73 |ses. Th|e mark s|
|00005ba0| 61 76 65 73 20 61 20 6c | 6f 63 61 74 69 6f 6e 20 |aves a l|ocation |
|00005bb0| 66 6f 72 20 74 68 65 20 | 75 73 65 72 27 73 20 63 |for the |user's c|
|00005bc0| 6f 6e 76 65 6e 69 65 6e | 63 65 2e 0a 4d 6f 73 74 |onvenien|ce..Most|
|00005bd0| 20 65 64 69 74 69 6e 67 | 20 63 6f 6d 6d 61 6e 64 | editing| command|
|00005be0| 73 20 73 68 6f 75 6c 64 | 20 6e 6f 74 20 61 6c 74 |s should| not alt|
|00005bf0| 65 72 20 74 68 65 20 6d | 61 72 6b 2e 0a 54 6f 20 |er the m|ark..To |
|00005c00| 72 65 6d 65 6d 62 65 72 | 20 61 20 6c 6f 63 61 74 |remember| a locat|
|00005c10| 69 6f 6e 20 66 6f 72 20 | 69 6e 74 65 72 6e 61 6c |ion for |internal|
|00005c20| 20 75 73 65 20 69 6e 20 | 74 68 65 20 4c 69 73 70 | use in |the Lisp|
|00005c30| 20 70 72 6f 67 72 61 6d | 2c 0a 73 74 6f 72 65 20 | program|,.store |
|00005c40| 69 74 20 69 6e 20 61 20 | 4c 69 73 70 20 76 61 72 |it in a |Lisp var|
|00005c50| 69 61 62 6c 65 2e 20 20 | 45 78 61 6d 70 6c 65 3a |iable. |Example:|
|00005c60| 0a 0a 20 20 20 28 6c 65 | 74 20 28 28 62 65 67 20 |.. (le|t ((beg |
|00005c70| 28 70 6f 69 6e 74 29 29 | 29 20 28 66 6f 72 77 61 |(point))|) (forwa|
|00005c80| 72 64 2d 6c 69 6e 65 20 | 31 29 20 28 64 65 6c 65 |rd-line |1) (dele|
|00005c90| 74 65 2d 72 65 67 69 6f | 6e 20 62 65 67 20 28 70 |te-regio|n beg (p|
|00005ca0| 6f 69 6e 74 29 29 29 2e | 22 5d 29 0a 28 64 65 66 |oint))).|"]).(def|
|00005cb0| 76 61 72 20 6d 61 72 6b | 2d 72 69 6e 67 20 6e 69 |var mark|-ring ni|
|00005cc0| 6c 20 22 5c 0a 54 68 65 | 20 6c 69 73 74 20 6f 66 |l "\.The| list of|
|00005cd0| 20 66 6f 72 6d 65 72 20 | 6d 61 72 6b 73 20 6f 66 | former |marks of|
|00005ce0| 20 74 68 65 20 63 75 72 | 72 65 6e 74 20 62 75 66 | the cur|rent buf|
|00005cf0| 66 65 72 2c 20 6d 6f 73 | 74 20 72 65 63 65 6e 74 |fer, mos|t recent|
|00005d00| 20 66 69 72 73 74 2e 22 | 29 0a 28 62 79 74 65 2d | first."|).(byte-|
|00005d10| 63 6f 64 65 20 22 c0 c1 | 21 88 c2 c1 c3 c4 23 87 |code "..|!.....#.|
|00005d20| 22 20 5b 6d 61 6b 65 2d | 76 61 72 69 61 62 6c 65 |" [make-|variable|
|00005d30| 2d 62 75 66 66 65 72 2d | 6c 6f 63 61 6c 20 6d 61 |-buffer-|local ma|
|00005d40| 72 6b 2d 72 69 6e 67 20 | 70 75 74 20 70 65 72 6d |rk-ring |put perm|
|00005d50| 61 6e 65 6e 74 2d 6c 6f | 63 61 6c 20 74 5d 20 34 |anent-lo|cal t] 4|
|00005d60| 29 0a 28 64 65 66 76 61 | 72 20 6d 61 72 6b 2d 72 |).(defva|r mark-r|
|00005d70| 69 6e 67 2d 6d 61 78 20 | 31 36 20 22 5c 0a 2a 4d |ing-max |16 "\.*M|
|00005d80| 61 78 69 6d 75 6d 20 73 | 69 7a 65 20 6f 66 20 6d |aximum s|ize of m|
|00005d90| 61 72 6b 20 72 69 6e 67 | 2e 20 20 53 74 61 72 74 |ark ring|. Start|
|00005da0| 20 64 69 73 63 61 72 64 | 69 6e 67 20 6f 66 66 20 | discard|ing off |
|00005db0| 65 6e 64 20 69 66 20 67 | 65 74 73 20 74 68 69 73 |end if g|ets this|
|00005dc0| 20 62 69 67 2e 22 29 0a | 28 64 65 66 76 61 72 20 | big.").|(defvar |
|00005dd0| 67 6c 6f 62 61 6c 2d 6d | 61 72 6b 2d 72 69 6e 67 |global-m|ark-ring|
|00005de0| 20 6e 69 6c 20 22 5c 0a | 54 68 65 20 6c 69 73 74 | nil "\.|The list|
|00005df0| 20 6f 66 20 73 61 76 65 | 64 20 67 6c 6f 62 61 6c | of save|d global|
|00005e00| 20 6d 61 72 6b 73 2c 20 | 6d 6f 73 74 20 72 65 63 | marks, |most rec|
|00005e10| 65 6e 74 20 66 69 72 73 | 74 2e 22 29 0a 28 64 65 |ent firs|t.").(de|
|00005e20| 66 63 6f 6e 73 74 20 67 | 6c 6f 62 61 6c 2d 6d 61 |fconst g|lobal-ma|
|00005e30| 72 6b 2d 72 69 6e 67 2d | 6d 61 78 20 31 36 20 22 |rk-ring-|max 16 "|
|00005e40| 5c 0a 2a 4d 61 78 69 6d | 75 6d 20 73 69 7a 65 20 |\.*Maxim|um size |
|00005e50| 6f 66 20 67 6c 6f 62 61 | 6c 20 6d 61 72 6b 20 72 |of globa|l mark r|
|00005e60| 69 6e 67 2e 20 20 53 74 | 61 72 74 20 64 69 73 63 |ing. St|art disc|
|00005e70| 61 72 64 69 6e 67 20 6f | 66 66 20 65 6e 64 20 69 |arding o|ff end i|
|00005e80| 66 20 67 65 74 73 20 74 | 68 69 73 20 62 69 67 2e |f gets t|his big.|
|00005e90| 22 29 0a 28 66 73 65 74 | 20 27 73 65 74 2d 6d 61 |").(fset| 'set-ma|
|00005ea0| 72 6b 2d 63 6f 6d 6d 61 | 6e 64 20 23 5b 28 61 72 |rk-comma|nd #[(ar|
|00005eb0| 67 29 20 22 08 ac 86 c1 | c2 89 c3 23 87 c4 c3 21 |g) "....|...#...!|
|00005ec0| ac 84 c5 c6 21 87 c4 c3 | 21 62 88 c7 20 87 22 20 |....!...|!b.. ." |
|00005ed0| 5b 61 72 67 20 70 75 73 | 68 2d 6d 61 72 6b 20 6e |[arg pus|h-mark n|
|00005ee0| 69 6c 20 74 20 6d 61 72 | 6b 20 65 72 72 6f 72 20 |il t mar|k error |
|00005ef0| 22 4e 6f 20 6d 61 72 6b | 20 73 65 74 20 69 6e 20 |"No mark| set in |
|00005f00| 74 68 69 73 20 62 75 66 | 66 65 72 22 20 70 6f 70 |this buf|fer" pop|
|00005f10| 2d 6d 61 72 6b 5d 20 34 | 20 22 5c 0a 53 65 74 20 |-mark] 4| "\.Set |
|00005f20| 6d 61 72 6b 20 61 74 20 | 77 68 65 72 65 20 70 6f |mark at |where po|
|00005f30| 69 6e 74 20 69 73 2c 20 | 6f 72 20 6a 75 6d 70 20 |int is, |or jump |
|00005f40| 74 6f 20 6d 61 72 6b 2e | 0a 57 69 74 68 20 6e 6f |to mark.|.With no|
|00005f50| 20 70 72 65 66 69 78 20 | 61 72 67 75 6d 65 6e 74 | prefix |argument|
|00005f60| 2c 20 73 65 74 20 6d 61 | 72 6b 2c 20 20 70 75 73 |, set ma|rk, pus|
|00005f70| 68 20 6f 6c 64 20 6d 61 | 72 6b 20 70 6f 73 69 74 |h old ma|rk posit|
|00005f80| 69 6f 6e 20 6f 6e 20 6c | 6f 63 61 6c 20 6d 61 72 |ion on l|ocal mar|
|00005f90| 6b 0a 72 69 6e 67 2c 20 | 61 6e 64 20 70 75 73 68 |k.ring, |and push|
|00005fa0| 20 6d 61 72 6b 20 6f 6e | 20 67 6c 6f 62 61 6c 20 | mark on| global |
|00005fb0| 6d 61 72 6b 20 72 69 6e | 67 2e 0a 57 69 74 68 20 |mark rin|g..With |
|00005fc0| 61 72 67 75 6d 65 6e 74 | 2c 20 6a 75 6d 70 20 74 |argument|, jump t|
|00005fd0| 6f 20 6d 61 72 6b 2c 20 | 61 6e 64 20 70 6f 70 20 |o mark, |and pop |
|00005fe0| 61 20 6e 65 77 20 70 6f | 73 69 74 69 6f 6e 20 66 |a new po|sition f|
|00005ff0| 6f 72 20 6d 61 72 6b 20 | 6f 66 66 20 74 68 65 20 |or mark |off the |
|00006000| 72 69 6e 67 0a 28 64 6f | 65 73 20 6e 6f 74 20 61 |ring.(do|es not a|
|00006010| 66 66 65 63 74 20 67 6c | 6f 62 61 6c 20 6d 61 72 |ffect gl|obal mar|
|00006020| 6b 20 72 69 6e 67 29 2e | 0a 0a 4e 6f 76 69 63 65 |k ring).|..Novice|
|00006030| 20 45 6d 61 63 73 20 4c | 69 73 70 20 70 72 6f 67 | Emacs L|isp prog|
|00006040| 72 61 6d 6d 65 72 73 20 | 6f 66 74 65 6e 20 74 72 |rammers |often tr|
|00006050| 79 20 74 6f 20 75 73 65 | 20 74 68 65 20 6d 61 72 |y to use| the mar|
|00006060| 6b 20 66 6f 72 20 74 68 | 65 20 77 72 6f 6e 67 0a |k for th|e wrong.|
|00006070| 70 75 72 70 6f 73 65 73 | 2e 20 20 53 65 65 20 74 |purposes|. See t|
|00006080| 68 65 20 64 6f 63 75 6d | 65 6e 74 61 74 69 6f 6e |he docum|entation|
|00006090| 20 6f 66 20 60 73 65 74 | 2d 6d 61 72 6b 27 20 66 | of `set|-mark' f|
|000060a0| 6f 72 20 6d 6f 72 65 20 | 69 6e 66 6f 72 6d 61 74 |or more |informat|
|000060b0| 69 6f 6e 2e 22 20 22 50 | 22 5d 29 0a 28 66 73 65 |ion." "P|"]).(fse|
|000060c0| 74 20 27 70 75 73 68 2d | 6d 61 72 6b 20 23 5b 28 |t 'push-|mark #[(|
|000060d0| 26 6f 70 74 69 6f 6e 61 | 6c 20 6c 6f 63 61 74 69 |&optiona|l locati|
|000060e0| 6f 6e 20 6e 6f 6d 73 67 | 20 61 63 74 69 76 61 74 |on nomsg| activat|
|000060f0| 65 2d 72 65 67 69 6f 6e | 20 62 75 66 66 65 72 29 |e-region| buffer)|
|00006100| 20 22 c0 09 21 11 c2 c3 | 09 5c 22 ab aa 8a 09 71 | "..!...|.\"....q|
|00006110| 88 c4 c5 c3 09 5c 22 21 | 0e 06 42 89 16 06 47 0e |.....\"!|..B...G.|
|00006120| 07 56 ab 93 0e 07 0e 06 | 9b 40 c8 09 93 88 0e 07 |.V......|.@......|
|00006130| 53 0e 06 9b c8 a1 88 29 | c9 0e 5c 6e ae 83 cb 09 |S......)|..\n....|
|00006140| 21 09 5c 22 88 0e 0c ab | 89 cd 0e 0c 40 21 09 3d |!.\"....|....@!.=|
|00006150| ac a5 c4 c5 c3 09 5c 22 | 21 0e 0c 42 89 16 0c 47 |......\"|!..B...G|
|00006160| 0e 0e 56 ab 93 0e 0e 0e | 0c 9b 40 c8 09 93 88 0e |..V.....|..@.....|
|00006170| 0e 53 0e 0c 9b c8 a1 88 | 0e 0f ac 8e 0e 10 ac 8a |.S......|........|
|00006180| d1 20 d2 56 ac 84 d3 d4 | 21 88 0e 15 ab 86 c3 16 |. .V....|!.......|
|00006190| 16 d7 20 88 c8 87 22 20 | 5b 64 65 63 6f 64 65 2d |.. ..." |[decode-|
|000061a0| 62 75 66 66 65 72 20 62 | 75 66 66 65 72 20 6d 61 |buffer b|uffer ma|
|000061b0| 72 6b 20 74 20 63 6f 70 | 79 2d 6d 61 72 6b 65 72 |rk t cop|y-marker|
|000061c0| 20 6d 61 72 6b 2d 6d 61 | 72 6b 65 72 20 6d 61 72 | mark-ma|rker mar|
|000061d0| 6b 2d 72 69 6e 67 20 6d | 61 72 6b 2d 72 69 6e 67 |k-ring m|ark-ring|
|000061e0| 2d 6d 61 78 20 6e 69 6c | 20 73 65 74 2d 6d 61 72 |-max nil| set-mar|
|000061f0| 6b 20 6c 6f 63 61 74 69 | 6f 6e 20 70 6f 69 6e 74 |k locati|on point|
|00006200| 20 67 6c 6f 62 61 6c 2d | 6d 61 72 6b 2d 72 69 6e | global-|mark-rin|
|00006210| 67 20 6d 61 72 6b 65 72 | 2d 62 75 66 66 65 72 20 |g marker|-buffer |
|00006220| 67 6c 6f 62 61 6c 2d 6d | 61 72 6b 2d 72 69 6e 67 |global-m|ark-ring|
|00006230| 2d 6d 61 78 20 6e 6f 6d | 73 67 20 65 78 65 63 75 |-max nom|sg execu|
|00006240| 74 69 6e 67 2d 6d 61 63 | 72 6f 20 6d 69 6e 69 62 |ting-mac|ro minib|
|00006250| 75 66 66 65 72 2d 64 65 | 70 74 68 20 30 20 6d 65 |uffer-de|pth 0 me|
|00006260| 73 73 61 67 65 20 22 4d | 61 72 6b 20 73 65 74 22 |ssage "M|ark set"|
|00006270| 20 61 63 74 69 76 61 74 | 65 2d 72 65 67 69 6f 6e | activat|e-region|
|00006280| 20 7a 6d 61 63 73 2d 72 | 65 67 69 6f 6e 2d 73 74 | zmacs-r|egion-st|
|00006290| 61 79 73 20 7a 6d 61 63 | 73 2d 61 63 74 69 76 61 |ays zmac|s-activa|
|000062a0| 74 65 2d 72 65 67 69 6f | 6e 5d 20 35 20 22 5c 0a |te-regio|n] 5 "\.|
|000062b0| 53 65 74 20 6d 61 72 6b | 20 61 74 20 4c 4f 43 41 |Set mark| at LOCA|
|000062c0| 54 49 4f 4e 20 28 70 6f | 69 6e 74 2c 20 62 79 20 |TION (po|int, by |
|000062d0| 64 65 66 61 75 6c 74 29 | 20 61 6e 64 20 70 75 73 |default)| and pus|
|000062e0| 68 20 6f 6c 64 20 6d 61 | 72 6b 20 6f 6e 20 6d 61 |h old ma|rk on ma|
|000062f0| 72 6b 20 72 69 6e 67 2e | 0a 49 66 20 74 68 65 20 |rk ring.|.If the |
|00006300| 6c 61 73 74 20 67 6c 6f | 62 61 6c 20 6d 61 72 6b |last glo|bal mark|
|00006310| 20 70 75 73 68 65 64 20 | 77 61 73 20 6e 6f 74 20 | pushed |was not |
|00006320| 69 6e 20 74 68 65 20 63 | 75 72 72 65 6e 74 20 62 |in the c|urrent b|
|00006330| 75 66 66 65 72 2c 0a 61 | 6c 73 6f 20 70 75 73 68 |uffer,.a|lso push|
|00006340| 20 4c 4f 43 41 54 49 4f | 4e 20 6f 6e 20 74 68 65 | LOCATIO|N on the|
|00006350| 20 67 6c 6f 62 61 6c 20 | 6d 61 72 6b 20 72 69 6e | global |mark rin|
|00006360| 67 2e 0a 44 69 73 70 6c | 61 79 20 60 4d 61 72 6b |g..Displ|ay `Mark|
|00006370| 20 73 65 74 27 20 75 6e | 6c 65 73 73 20 74 68 65 | set' un|less the|
|00006380| 20 6f 70 74 69 6f 6e 61 | 6c 20 73 65 63 6f 6e 64 | optiona|l second|
|00006390| 20 61 72 67 20 4e 4f 4d | 53 47 20 69 73 20 6e 6f | arg NOM|SG is no|
|000063a0| 6e 2d 6e 69 6c 2e 0a 41 | 63 74 69 76 61 74 65 20 |n-nil..A|ctivate |
|000063b0| 6d 61 72 6b 20 69 66 20 | 6f 70 74 69 6f 6e 61 6c |mark if |optional|
|000063c0| 20 74 68 69 72 64 20 61 | 72 67 20 41 43 54 49 56 | third a|rg ACTIV|
|000063d0| 41 54 45 2d 52 45 47 49 | 4f 4e 20 6e 6f 6e 2d 6e |ATE-REGI|ON non-n|
|000063e0| 69 6c 2e 0a 0a 4e 6f 76 | 69 63 65 20 45 6d 61 63 |il...Nov|ice Emac|
|000063f0| 73 20 4c 69 73 70 20 70 | 72 6f 67 72 61 6d 6d 65 |s Lisp p|rogramme|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.