home *** CD-ROM | disk | FTP | other *** search
Emacs Compiled Lisp | 1993-04-01 | 8.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.
Confidence | Program | Detection | Match Type | Support
|
---|
1%
| dexvert
| Emacs Compiled Lisp (other/emacsCompiledLisp)
| magic
| Unsupported |
1%
| dexvert
| Combustion 2 Particle Library (other/combustion2ParticleLibrary)
| ext
| Unsupported |
100%
| file
| Emacs/XEmacs v19 byte-compiled Lisp data
| default
| |
99%
| file
| data
| default
| |
100%
| TrID
| Emacs/XEmacs byte-compiled Lisp (generic)
| default
| |
100%
| xdgMime
| text/x-emacs-lisp
| default (weak)
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 3b 45 4c 43 13 00 00 00 | 0a 3b 3b 3b 20 63 6f 6d |;ELC....|.;;; com|
|00000010| 70 69 6c 65 64 20 62 79 | 20 6a 6c 7a 40 61 73 68 |piled by| jlz@ash|
|00000020| 77 65 64 6e 65 73 64 61 | 79 20 6f 6e 20 4d 6f 6e |wednesda|y on Mon|
|00000030| 20 4d 61 72 20 31 35 20 | 30 30 3a 31 35 3a 32 30 | Mar 15 |00:15:20|
|00000040| 20 31 39 39 33 0a 3b 3b | 3b 20 66 72 6f 6d 20 66 | 1993.;;|; from f|
|00000050| 69 6c 65 20 2f 63 61 64 | 69 6c 6c 61 63 2d 61 77 |ile /cad|illac-aw|
|00000060| 32 2f 74 65 73 74 62 69 | 6e 2d 62 75 69 6c 64 73 |2/testbi|n-builds|
|00000070| 2f 6c 65 6d 61 63 73 2f | 6c 69 73 70 2f 70 72 69 |/lemacs/|lisp/pri|
|00000080| 6d 2f 72 65 70 6c 61 63 | 65 2e 65 6c 0a 3b 3b 3b |m/replac|e.el.;;;|
|00000090| 20 65 6d 61 63 73 20 76 | 65 72 73 69 6f 6e 20 31 | emacs v|ersion 1|
|000000a0| 39 2e 36 20 28 62 65 74 | 61 32 29 20 4c 75 63 69 |9.6 (bet|a2) Luci|
|000000b0| 64 2e 0a 3b 3b 3b 20 62 | 79 74 65 63 6f 6d 70 20 |d..;;; b|ytecomp |
|000000c0| 76 65 72 73 69 6f 6e 20 | 32 2e 31 30 3b 20 31 36 |version |2.10; 16|
|000000d0| 2d 66 65 62 2d 39 33 2e | 0a 3b 3b 3b 20 6f 70 74 |-feb-93.|.;;; opt|
|000000e0| 69 6d 69 7a 61 74 69 6f | 6e 20 69 73 20 6f 6e 2e |imizatio|n is on.|
|000000f0| 0a 3b 3b 3b 20 74 68 69 | 73 20 66 69 6c 65 20 75 |.;;; thi|s file u|
|00000100| 73 65 73 20 6f 70 63 6f | 64 65 73 20 77 68 69 63 |ses opco|des whic|
|00000110| 68 20 64 6f 20 6e 6f 74 | 20 65 78 69 73 74 20 69 |h do not| exist i|
|00000120| 6e 20 45 6d 61 63 73 31 | 38 2e 0a 0a 28 69 66 20 |n Emacs1|8...(if |
|00000130| 28 61 6e 64 20 28 62 6f | 75 6e 64 70 20 27 65 6d |(and (bo|undp 'em|
|00000140| 61 63 73 2d 76 65 72 73 | 69 6f 6e 29 0a 09 20 28 |acs-vers|ion).. (|
|00000150| 6f 72 20 28 61 6e 64 20 | 28 62 6f 75 6e 64 70 20 |or (and |(boundp |
|00000160| 27 65 70 6f 63 68 3a 3a | 76 65 72 73 69 6f 6e 29 |'epoch::|version)|
|00000170| 20 65 70 6f 63 68 3a 3a | 76 65 72 73 69 6f 6e 29 | epoch::|version)|
|00000180| 0a 09 20 20 20 20 20 28 | 73 74 72 69 6e 67 2d 6c |.. (|string-l|
|00000190| 65 73 73 70 20 65 6d 61 | 63 73 2d 76 65 72 73 69 |essp ema|cs-versi|
|000001a0| 6f 6e 20 22 31 39 22 29 | 29 29 0a 20 20 20 20 28 |on "19")|)). (|
|000001b0| 65 72 72 6f 72 20 22 54 | 68 69 73 20 66 69 6c 65 |error "T|his file|
|000001c0| 20 77 61 73 20 63 6f 6d | 70 69 6c 65 64 20 66 6f | was com|piled fo|
|000001d0| 72 20 45 6d 61 63 73 31 | 39 2e 22 29 29 0a 0a 28 |r Emacs1|9."))..(|
|000001e0| 62 79 74 65 2d 63 6f 64 | 65 20 22 c0 c1 21 ac 82 |byte-cod|e "..!..|
|000001f0| c2 11 c3 c4 4d 87 22 20 | 5b 62 6f 75 6e 64 70 20 |....M." |[boundp |
|00000200| 6d 69 6e 69 62 75 66 66 | 65 72 2d 72 65 67 65 78 |minibuff|er-regex|
|00000210| 70 2d 68 69 73 74 6f 72 | 79 20 6e 69 6c 20 64 65 |p-histor|y nil de|
|00000220| 6c 65 74 65 2d 6e 6f 6e | 2d 6d 61 74 63 68 69 6e |lete-non|-matchin|
|00000230| 67 2d 6c 69 6e 65 73 20 | 6b 65 65 70 2d 6c 69 6e |g-lines |keep-lin|
|00000240| 65 73 5d 20 32 29 0a 28 | 66 73 65 74 20 27 6b 65 |es] 2).(|fset 'ke|
|00000250| 65 70 2d 6c 69 6e 65 73 | 20 23 5b 28 72 65 67 65 |ep-lines| #[(rege|
|00000260| 78 70 29 20 22 8a 6e ac | 83 c0 79 88 60 19 6d 3f |xp) ".n.|..y.`.m?|
|00000270| ad bb c2 0b c4 c5 23 ac | 86 09 64 7c 88 aa 98 8a |......#.|..d|....|
|00000280| c6 94 62 88 c6 79 88 60 | 29 1e 07 09 0e 07 57 ab |..b..y.`|).....W.|
|00000290| 85 09 0e 07 7c 88 29 8a | c0 79 88 60 29 11 6d ac |....|.).|.y.`).m.|
|000002a0| 4d c6 94 c6 95 55 ab 46 | c0 75 88 aa 41 2a 87 22 |M....U.F|.u..A*."|
|000002b0| 20 5b 31 20 73 74 61 72 | 74 20 72 65 2d 73 65 61 | [1 star|t re-sea|
|000002c0| 72 63 68 2d 66 6f 72 77 | 61 72 64 20 72 65 67 65 |rch-forw|ard rege|
|000002d0| 78 70 20 6e 69 6c 20 6d | 6f 76 65 20 30 20 65 6e |xp nil m|ove 0 en|
|000002e0| 64 5d 20 34 20 22 5c 0a | 44 65 6c 65 74 65 20 61 |d] 4 "\.|Delete a|
|000002f0| 6c 6c 20 6c 69 6e 65 73 | 20 65 78 63 65 70 74 20 |ll lines| except |
|00000300| 74 68 6f 73 65 20 63 6f | 6e 74 61 69 6e 69 6e 67 |those co|ntaining|
|00000310| 20 6d 61 74 63 68 65 73 | 20 66 6f 72 20 52 45 47 | matches| for REG|
|00000320| 45 58 50 2e 0a 41 20 6d | 61 74 63 68 20 73 70 6c |EXP..A m|atch spl|
|00000330| 69 74 20 61 63 72 6f 73 | 73 20 6c 69 6e 65 73 20 |it acros|s lines |
|00000340| 70 72 65 73 65 72 76 65 | 73 20 61 6c 6c 20 74 68 |preserve|s all th|
|00000350| 65 20 6c 69 6e 65 73 20 | 69 74 20 6c 69 65 73 20 |e lines |it lies |
|00000360| 69 6e 2e 0a 41 70 70 6c | 69 65 73 20 74 6f 20 61 |in..Appl|ies to a|
|00000370| 6c 6c 20 6c 69 6e 65 73 | 20 61 66 74 65 72 20 70 |ll lines| after p|
|00000380| 6f 69 6e 74 2e 22 20 28 | 62 79 74 65 2d 63 6f 64 |oint." (|byte-cod|
|00000390| 65 20 22 c0 c1 c2 c3 23 | 43 87 22 20 5b 72 65 61 |e "....#|C." [rea|
|000003a0| 64 2d 73 74 72 69 6e 67 | 20 22 4b 65 65 70 20 6c |d-string| "Keep l|
|000003b0| 69 6e 65 73 20 28 63 6f | 6e 74 61 69 6e 69 6e 67 |ines (co|ntaining|
|000003c0| 20 6d 61 74 63 68 20 66 | 6f 72 20 72 65 67 65 78 | match f|or regex|
|000003d0| 70 29 3a 20 22 20 6e 69 | 6c 20 6d 69 6e 69 62 75 |p): " ni|l minibu|
|000003e0| 66 66 65 72 2d 72 65 67 | 65 78 70 2d 68 69 73 74 |ffer-reg|exp-hist|
|000003f0| 6f 72 79 5d 20 34 29 5d | 29 0a 28 66 73 65 74 20 |ory] 4)]|).(fset |
|00000400| 27 64 65 6c 65 74 65 2d | 6d 61 74 63 68 69 6e 67 |'delete-|matching|
|00000410| 2d 6c 69 6e 65 73 20 27 | 66 6c 75 73 68 2d 6c 69 |-lines '|flush-li|
|00000420| 6e 65 73 29 0a 28 66 73 | 65 74 20 27 66 6c 75 73 |nes).(fs|et 'flus|
|00000430| 68 2d 6c 69 6e 65 73 20 | 23 5b 28 72 65 67 65 78 |h-lines |#[(regex|
|00000440| 70 29 20 22 8a 6d 3f ad | 99 c0 09 c2 c3 23 ad 92 |p) ".m?.|.....#..|
|00000450| 8a c4 94 62 88 c4 79 88 | 60 29 c5 79 88 60 7c 88 |...b..y.|`).y.`|.|
|00000460| aa 63 29 87 22 20 5b 72 | 65 2d 73 65 61 72 63 68 |.c)." [r|e-search|
|00000470| 2d 66 6f 72 77 61 72 64 | 20 72 65 67 65 78 70 20 |-forward| regexp |
|00000480| 6e 69 6c 20 74 20 30 20 | 31 5d 20 34 20 22 5c 0a |nil t 0 |1] 4 "\.|
|00000490| 44 65 6c 65 74 65 20 6c | 69 6e 65 73 20 63 6f 6e |Delete l|ines con|
|000004a0| 74 61 69 6e 69 6e 67 20 | 6d 61 74 63 68 65 73 20 |taining |matches |
|000004b0| 66 6f 72 20 52 45 47 45 | 58 50 2e 0a 49 66 20 61 |for REGE|XP..If a|
|000004c0| 20 6d 61 74 63 68 20 69 | 73 20 73 70 6c 69 74 20 | match i|s split |
|000004d0| 61 63 72 6f 73 73 20 6c | 69 6e 65 73 2c 20 61 6c |across l|ines, al|
|000004e0| 6c 20 74 68 65 20 6c 69 | 6e 65 73 20 69 74 20 6c |l the li|nes it l|
|000004f0| 69 65 73 20 69 6e 20 61 | 72 65 20 64 65 6c 65 74 |ies in a|re delet|
|00000500| 65 64 2e 0a 41 70 70 6c | 69 65 73 20 74 6f 20 6c |ed..Appl|ies to l|
|00000510| 69 6e 65 73 20 61 66 74 | 65 72 20 70 6f 69 6e 74 |ines aft|er point|
|00000520| 2e 22 20 28 62 79 74 65 | 2d 63 6f 64 65 20 22 c0 |." (byte|-code ".|
|00000530| c1 c2 c3 23 43 87 22 20 | 5b 72 65 61 64 2d 73 74 |...#C." |[read-st|
|00000540| 72 69 6e 67 20 22 46 6c | 75 73 68 20 6c 69 6e 65 |ring "Fl|ush line|
|00000550| 73 20 28 63 6f 6e 74 61 | 69 6e 69 6e 67 20 6d 61 |s (conta|ining ma|
|00000560| 74 63 68 20 66 6f 72 20 | 72 65 67 65 78 70 29 3a |tch for |regexp):|
|00000570| 20 22 20 6e 69 6c 20 6d | 69 6e 69 62 75 66 66 65 | " nil m|inibuffe|
|00000580| 72 2d 72 65 67 65 78 70 | 2d 68 69 73 74 6f 72 79 |r-regexp|-history|
|00000590| 5d 20 34 29 5d 29 0a 28 | 66 73 65 74 20 27 63 6f |] 4)]).(|fset 'co|
|000005a0| 75 6e 74 2d 6d 61 74 63 | 68 65 73 20 27 68 6f 77 |unt-matc|hes 'how|
|000005b0| 2d 6d 61 6e 79 29 0a 28 | 66 73 65 74 20 27 68 6f |-many).(|fset 'ho|
|000005c0| 77 2d 6d 61 6e 79 20 23 | 5b 28 72 65 67 65 78 70 |w-many #|[(regexp|
|000005d0| 29 20 22 c0 c1 1a 1b 8a | 6d ac 98 60 12 c4 0d c1 |) ".....|m..`....|
|000005e0| c6 23 ab 8f 5c 6e 60 55 | ab 85 c7 75 88 aa 6a 0b |.#..\n`U|...u..j.|
|000005f0| 54 13 aa 65 c8 c9 0b 5c | 22 2b 87 22 20 5b 30 20 |T..e...\|"+." [0 |
|00000600| 6e 69 6c 20 6f 70 6f 69 | 6e 74 20 63 6f 75 6e 74 |nil opoi|nt count|
|00000610| 20 72 65 2d 73 65 61 72 | 63 68 2d 66 6f 72 77 61 | re-sear|ch-forwa|
|00000620| 72 64 20 72 65 67 65 78 | 70 20 74 20 31 20 6d 65 |rd regex|p t 1 me|
|00000630| 73 73 61 67 65 20 22 25 | 64 20 6f 63 63 75 72 72 |ssage "%|d occurr|
|00000640| 65 6e 63 65 73 22 5d 20 | 34 20 22 5c 0a 50 72 69 |ences"] |4 "\.Pri|
|00000650| 6e 74 20 6e 75 6d 62 65 | 72 20 6f 66 20 6d 61 74 |nt numbe|r of mat|
|00000660| 63 68 65 73 20 66 6f 72 | 20 52 45 47 45 58 50 20 |ches for| REGEXP |
|00000670| 66 6f 6c 6c 6f 77 69 6e | 67 20 70 6f 69 6e 74 2e |followin|g point.|
|00000680| 22 20 28 62 79 74 65 2d | 63 6f 64 65 20 22 c0 c1 |" (byte-|code "..|
|00000690| c2 c3 23 43 87 22 20 5b | 72 65 61 64 2d 73 74 72 |..#C." [|read-str|
|000006a0| 69 6e 67 20 22 48 6f 77 | 20 6d 61 6e 79 20 6d 61 |ing "How| many ma|
|000006b0| 74 63 68 65 73 20 66 6f | 72 20 28 72 65 67 65 78 |tches fo|r (regex|
|000006c0| 70 29 3a 20 22 20 6e 69 | 6c 20 6d 69 6e 69 62 75 |p): " ni|l minibu|
|000006d0| 66 66 65 72 2d 72 65 67 | 65 78 70 2d 68 69 73 74 |ffer-reg|exp-hist|
|000006e0| 6f 72 79 5d 20 34 29 5d | 29 0a 28 62 79 74 65 2d |ory] 4)]|).(byte-|
|000006f0| 63 6f 64 65 20 22 c0 c1 | 21 ac 82 c2 11 09 ac 89 |code "..|!.......|
|00000700| c3 20 11 c4 09 c5 c6 23 | 88 c0 c7 21 ac 83 c2 16 |. .....#|...!....|
|00000710| 07 c0 c8 21 ac 83 c2 16 | 08 c0 c9 21 ac 83 c2 16 |...!....|...!....|
|00000720| 09 c0 ca 21 ac 83 cb 16 | 5c 6e c2 87 22 20 5b 62 |...!....|\n.." [b|
|00000730| 6f 75 6e 64 70 20 6f 63 | 63 75 72 2d 6d 6f 64 65 |oundp oc|cur-mode|
|00000740| 2d 6d 61 70 20 6e 69 6c | 20 6d 61 6b 65 2d 73 70 |-map nil| make-sp|
|00000750| 61 72 73 65 2d 6b 65 79 | 6d 61 70 20 64 65 66 69 |arse-key|map defi|
|00000760| 6e 65 2d 6b 65 79 20 22 | 03 03 22 20 6f 63 63 75 |ne-key "|.." occu|
|00000770| 72 2d 6d 6f 64 65 2d 67 | 6f 74 6f 2d 6f 63 63 75 |r-mode-g|oto-occu|
|00000780| 72 72 65 6e 63 65 20 6f | 63 63 75 72 2d 62 75 66 |rrence o|ccur-buf|
|00000790| 66 65 72 20 6f 63 63 75 | 72 2d 6e 6c 69 6e 65 73 |fer occu|r-nlines|
|000007a0| 20 6f 63 63 75 72 2d 70 | 6f 73 2d 6c 69 73 74 20 | occur-p|os-list |
|000007b0| 6f 63 63 75 72 2d 6c 61 | 73 74 2d 73 74 72 69 6e |occur-la|st-strin|
|000007c0| 67 20 22 22 5d 20 34 29 | 0a 28 66 73 65 74 20 27 |g ""] 4)|.(fset '|
|000007d0| 6f 63 63 75 72 2d 6d 6f | 64 65 20 23 5b 6e 69 6c |occur-mo|de #[nil|
|000007e0| 20 22 c0 20 88 c1 5c 6e | 21 88 c3 14 c5 16 06 c7 | ". ..\n|!.......|
|000007f0| c8 21 88 c7 c9 21 88 c7 | ca 21 87 22 20 5b 6b 69 |.!...!..|.!." [ki|
|00000800| 6c 6c 2d 61 6c 6c 2d 6c | 6f 63 61 6c 2d 76 61 72 |ll-all-l|ocal-var|
|00000810| 69 61 62 6c 65 73 20 75 | 73 65 2d 6c 6f 63 61 6c |iables u|se-local|
|00000820| 2d 6d 61 70 20 6f 63 63 | 75 72 2d 6d 6f 64 65 2d |-map occ|ur-mode-|
|00000830| 6d 61 70 20 6f 63 63 75 | 72 2d 6d 6f 64 65 20 6d |map occu|r-mode m|
|00000840| 61 6a 6f 72 2d 6d 6f 64 | 65 20 22 4f 63 63 75 72 |ajor-mod|e "Occur|
|00000850| 22 20 6d 6f 64 65 2d 6e | 61 6d 65 20 6d 61 6b 65 |" mode-n|ame make|
|00000860| 2d 6c 6f 63 61 6c 2d 76 | 61 72 69 61 62 6c 65 20 |-local-v|ariable |
|00000870| 6f 63 63 75 72 2d 62 75 | 66 66 65 72 20 6f 63 63 |occur-bu|ffer occ|
|00000880| 75 72 2d 6e 6c 69 6e 65 | 73 20 6f 63 63 75 72 2d |ur-nline|s occur-|
|00000890| 70 6f 73 2d 6c 69 73 74 | 5d 20 32 20 22 5c 0a 4d |pos-list|] 2 "\.M|
|000008a0| 61 6a 6f 72 20 6d 6f 64 | 65 20 66 6f 72 20 6f 75 |ajor mod|e for ou|
|000008b0| 74 70 75 74 20 66 72 6f | 6d 20 5c 5c 5b 6f 63 63 |tput fro|m \\[occ|
|000008c0| 75 72 5d 2e 0a 4d 6f 76 | 65 20 70 6f 69 6e 74 20 |ur]..Mov|e point |
|000008d0| 74 6f 20 6f 6e 65 20 6f | 66 20 74 68 65 20 6f 63 |to one o|f the oc|
|000008e0| 63 75 72 72 65 6e 63 65 | 73 20 69 6e 20 74 68 69 |currence|s in thi|
|000008f0| 73 20 62 75 66 66 65 72 | 2c 0a 74 68 65 6e 20 75 |s buffer|,.then u|
|00000900| 73 65 20 5c 5c 5b 6f 63 | 63 75 72 2d 6d 6f 64 65 |se \\[oc|cur-mode|
|00000910| 2d 67 6f 74 6f 2d 6f 63 | 63 75 72 72 65 6e 63 65 |-goto-oc|currence|
|00000920| 5d 20 74 6f 20 67 6f 20 | 74 6f 20 74 68 65 20 73 |] to go |to the s|
|00000930| 61 6d 65 20 6f 63 63 75 | 72 72 65 6e 63 65 0a 69 |ame occu|rrence.i|
|00000940| 6e 20 74 68 65 20 62 75 | 66 66 65 72 20 74 68 61 |n the bu|ffer tha|
|00000950| 74 20 74 68 65 20 6f 63 | 63 75 72 72 65 6e 63 65 |t the oc|currence|
|00000960| 73 20 77 65 72 65 20 66 | 6f 75 6e 64 20 69 6e 2e |s were f|ound in.|
|00000970| 0a 5c 5c 7b 6f 63 63 75 | 72 2d 6d 6f 64 65 2d 6d |.\\{occu|r-mode-m|
|00000980| 61 70 7d 22 5d 29 0a 28 | 66 73 65 74 20 27 6f 63 |ap}"]).(|fset 'oc|
|00000990| 63 75 72 2d 6d 6f 64 65 | 2d 67 6f 74 6f 2d 6f 63 |cur-mode|-goto-oc|
|000009a0| 63 75 72 72 65 6e 63 65 | 20 23 5b 6e 69 6c 20 22 |currence| #[nil "|
|000009b0| 08 ab 85 c1 08 21 ac 88 | c2 10 c2 13 c4 c5 21 88 |.....!..|......!.|
|000009c0| 8a c6 79 88 c7 65 8a c6 | 79 88 60 29 5c 22 53 0e |..y..e..|y.`)\"S.|
|000009d0| 08 c6 57 ab 86 c9 0e 08 | 5a aa 8f 0e 08 c6 56 ab |..W.....|Z.....V.|
|000009e0| 88 0e 08 89 5c 5c c9 5c | 5c aa 81 ca a5 29 89 1e |....\\.\|\....)..|
|000009f0| 0b 0b 38 1e 0c cd 08 21 | 88 ce 0e 0c 21 62 2a 87 |..8....!|....!b*.|
|00000a00| 22 20 5b 6f 63 63 75 72 | 2d 62 75 66 66 65 72 20 |" [occur|-buffer |
|00000a10| 62 75 66 66 65 72 2d 6e | 61 6d 65 20 6e 69 6c 20 |buffer-n|ame nil |
|00000a20| 6f 63 63 75 72 2d 70 6f | 73 2d 6c 69 73 74 20 65 |occur-po|s-list e|
|00000a30| 72 72 6f 72 20 22 42 75 | 66 66 65 72 20 69 6e 20 |rror "Bu|ffer in |
|00000a40| 77 68 69 63 68 20 6f 63 | 63 75 72 72 65 6e 63 65 |which oc|currence|
|00000a50| 73 20 77 65 72 65 20 66 | 6f 75 6e 64 20 69 73 20 |s were f|ound is |
|00000a60| 64 65 6c 65 74 65 64 22 | 20 30 20 63 6f 75 6e 74 |deleted"| 0 count|
|00000a70| 2d 6c 69 6e 65 73 20 6f | 63 63 75 72 2d 6e 6c 69 |-lines o|ccur-nli|
|00000a80| 6e 65 73 20 32 20 31 20 | 6f 63 63 75 72 2d 6e 75 |nes 2 1 |occur-nu|
|00000a90| 6d 62 65 72 20 70 6f 73 | 20 70 6f 70 2d 74 6f 2d |mber pos| pop-to-|
|00000aa0| 62 75 66 66 65 72 20 6d | 61 72 6b 65 72 2d 70 6f |buffer m|arker-po|
|00000ab0| 73 69 74 69 6f 6e 5d 20 | 34 20 22 5c 0a 47 6f 20 |sition] |4 "\.Go |
|00000ac0| 74 6f 20 74 68 65 20 6c | 69 6e 65 20 74 68 69 73 |to the l|ine this|
|00000ad0| 20 6f 63 63 75 72 72 65 | 6e 63 65 20 77 61 73 20 | occurre|nce was |
|00000ae0| 66 6f 75 6e 64 20 69 6e | 2c 20 69 6e 20 74 68 65 |found in|, in the|
|00000af0| 20 62 75 66 66 65 72 20 | 69 74 20 77 61 73 20 66 | buffer |it was f|
|00000b00| 6f 75 6e 64 20 69 6e 2e | 22 20 6e 69 6c 5d 29 0a |ound in.|" nil]).|
|00000b10| 28 64 65 66 76 61 72 20 | 6c 69 73 74 2d 6d 61 74 |(defvar |list-mat|
|00000b20| 63 68 69 6e 67 2d 6c 69 | 6e 65 73 2d 64 65 66 61 |ching-li|nes-defa|
|00000b30| 75 6c 74 2d 63 6f 6e 74 | 65 78 74 2d 6c 69 6e 65 |ult-cont|ext-line|
|00000b40| 73 20 30 20 22 5c 0a 2a | 44 65 66 61 75 6c 74 20 |s 0 "\.*|Default |
|00000b50| 6e 75 6d 62 65 72 20 6f | 66 20 63 6f 6e 74 65 78 |number o|f contex|
|00000b60| 74 20 6c 69 6e 65 73 20 | 74 6f 20 69 6e 63 6c 75 |t lines |to inclu|
|00000b70| 64 65 20 61 72 6f 75 6e | 64 20 61 20 6c 69 73 74 |de aroun|d a list|
|00000b80| 2d 6d 61 74 63 68 69 6e | 67 2d 6c 69 6e 65 73 0a |-matchin|g-lines.|
|00000b90| 6d 61 74 63 68 2e 20 20 | 41 20 6e 65 67 61 74 69 |match. |A negati|
|00000ba0| 76 65 20 6e 75 6d 62 65 | 72 20 6d 65 61 6e 73 20 |ve numbe|r means |
|00000bb0| 74 6f 20 69 6e 63 6c 75 | 64 65 20 74 68 61 74 20 |to inclu|de that |
|00000bc0| 6d 61 6e 79 20 6c 69 6e | 65 73 20 62 65 66 6f 72 |many lin|es befor|
|00000bd0| 65 20 74 68 65 20 6d 61 | 74 63 68 2e 0a 41 20 70 |e the ma|tch..A p|
|00000be0| 6f 73 69 74 69 76 65 20 | 6e 75 6d 62 65 72 20 6d |ositive |number m|
|00000bf0| 65 61 6e 73 20 74 6f 20 | 69 6e 63 6c 75 64 65 20 |eans to |include |
|00000c00| 74 68 61 74 20 6d 61 6e | 79 20 6c 69 6e 65 73 20 |that man|y lines |
|00000c10| 62 6f 74 68 20 62 65 66 | 6f 72 65 20 61 6e 64 20 |both bef|ore and |
|00000c20| 61 66 74 65 72 2e 22 29 | 0a 28 64 65 66 76 61 72 |after.")|.(defvar|
|00000c30| 20 6f 63 63 75 72 2d 77 | 68 6f 6c 65 2d 62 75 66 | occur-w|hole-buf|
|00000c40| 66 65 72 20 6e 69 6c 20 | 22 5c 0a 49 66 20 74 2c |fer nil |"\.If t,|
|00000c50| 20 6f 63 63 75 72 20 6f | 70 65 72 61 74 65 73 20 | occur o|perates |
|00000c60| 6f 6e 20 77 68 6f 6c 65 | 20 62 75 66 66 65 72 2c |on whole| buffer,|
|00000c70| 20 6f 74 68 65 72 77 69 | 73 65 20 6f 63 63 75 72 | otherwi|se occur|
|00000c80| 20 73 74 61 72 74 73 20 | 66 72 6f 6d 20 70 6f 69 | starts |from poi|
|00000c90| 6e 74 2e 0a 64 65 66 61 | 75 6c 74 20 69 73 20 6e |nt..defa|ult is n|
|00000ca0| 69 6c 2e 22 29 0a 28 66 | 73 65 74 20 27 6c 69 73 |il.").(f|set 'lis|
|00000cb0| 74 2d 6d 61 74 63 68 69 | 6e 67 2d 6c 69 6e 65 73 |t-matchi|ng-lines|
|00000cc0| 20 27 6f 63 63 75 72 29 | 0a 28 66 73 65 74 20 27 | 'occur)|.(fset '|
|00000cd0| 6f 63 63 75 72 20 23 5b | 28 72 65 67 65 78 70 20 |occur #[|(regexp |
|00000ce0| 26 6f 70 74 69 6f 6e 61 | 6c 20 6e 6c 69 6e 65 73 |&optiona|l nlines|
|00000cf0| 29 20 22 08 ab 85 c1 08 | 21 aa 81 5c 6e 10 c3 70 |) ".....|!..\n..p|
|00000d00| c4 65 1d 1e 06 1e 07 1e | 08 0e 09 ac 8e 8a ca 79 |.e......|.......y|
|00000d10| 88 cb 65 60 5c 22 54 16 | 06 60 15 29 cc 90 8a 0e |..e`\"T.|.`.)....|
|00000d20| 0d 71 88 ce 63 88 cf 0e | 10 21 88 d1 d2 0e 07 21 |.q..c...|.!.....!|
|00000d30| d3 d4 b1 04 88 d5 20 88 | 0e 07 16 16 08 16 17 d8 |...... .|........|
|00000d40| 16 19 29 0e 07 0e 0d 3d | ab 83 64 62 88 8a 0e 09 |..)....=|..db....|
|00000d50| ab 83 da 20 88 0d 64 55 | 84 32 01 db 0e 10 d8 c3 |... ..dU|.2......|
|00000d60| 23 83 32 01 ca 79 88 0e | 06 cb 0d 60 5c 22 5c 5c |#.2..y..|...`\"\\|
|00000d70| 16 06 60 15 8a 08 ca 57 | ab 83 08 aa 82 08 5b 79 |..`....W|......[y|
|00000d80| 88 60 29 1e 1c 8a 08 ca | 56 ab 86 08 54 79 88 aa |.`).....|V...Ty..|
|00000d90| 83 c4 79 88 60 29 1e 1d | de df 0e 06 5c 22 1e 20 |..y.`)..|....\". |
|00000da0| e1 0e 20 47 e2 5c 22 1e | 23 d8 1e 24 8a e5 20 89 |.. G.\".|#..$.. .|
|00000db0| 16 24 60 d8 93 88 0e 0d | 71 88 0e 24 0e 19 42 16 |.$`.....|q..$..B.|
|00000dc0| 19 0e 08 ac 88 e6 08 21 | ac 83 e7 63 88 d8 16 08 |.......!|...c....|
|00000dd0| e8 0e 07 0e 1c 0e 1d 23 | 88 e9 0e 1d 0e 1c 5a 21 |.......#|......Z!|
|00000de0| 88 08 ca 57 ab 84 08 5b | aa 81 08 89 16 24 ca 56 |...W...[|.....$.V|
|00000df0| ab 91 0e 23 ea b1 02 88 | c4 79 88 0e 24 53 89 16 |...#....|.y..$S..|
|00000e00| 24 aa 6b 0e 20 ea b1 02 | 88 c4 79 88 0e 24 08 57 |$.k. ...|..y..$.W|
|00000e10| ab 91 0e 23 ea b1 02 88 | c4 79 88 0e 24 54 89 16 |...#....|.y..$T..|
|00000e20| 24 aa 6b 29 c4 79 88 2d | 82 60 00 0e 0d 71 88 0e |$.k).y.-|.`...q..|
|00000e30| 19 9f 16 19 74 ad 86 eb | ec 0e 19 47 5c 22 29 91 |....t...|...G\").|
|00000e40| 2c 87 22 20 5b 6e 6c 69 | 6e 65 73 20 70 72 65 66 |,." [nli|nes pref|
|00000e50| 69 78 2d 6e 75 6d 65 72 | 69 63 2d 76 61 6c 75 65 |ix-numer|ic-value|
|00000e60| 20 6c 69 73 74 2d 6d 61 | 74 63 68 69 6e 67 2d 6c | list-ma|tching-l|
|00000e70| 69 6e 65 73 2d 64 65 66 | 61 75 6c 74 2d 63 6f 6e |ines-def|ault-con|
|00000e80| 74 65 78 74 2d 6c 69 6e | 65 73 20 74 20 31 20 70 |text-lin|es t 1 p|
|00000e90| 72 65 76 70 6f 73 20 6c | 69 6e 65 6e 75 6d 20 62 |revpos l|inenum b|
|00000ea0| 75 66 66 65 72 20 66 69 | 72 73 74 20 6f 63 63 75 |uffer fi|rst occu|
|00000eb0| 72 2d 77 68 6f 6c 65 2d | 62 75 66 66 65 72 20 30 |r-whole-|buffer 0|
|00000ec0| 20 63 6f 75 6e 74 2d 6c | 69 6e 65 73 20 22 2a 4f | count-l|ines "*O|
|00000ed0| 63 63 75 72 2a 22 20 73 | 74 61 6e 64 61 72 64 2d |ccur*" s|tandard-|
|00000ee0| 6f 75 74 70 75 74 20 22 | 4c 69 6e 65 73 20 6d 61 |output "|Lines ma|
|00000ef0| 74 63 68 69 6e 67 20 22 | 20 70 72 69 6e 31 20 72 |tching "| prin1 r|
|00000f00| 65 67 65 78 70 20 22 20 | 69 6e 20 62 75 66 66 65 |egexp " |in buffe|
|00000f10| 72 20 22 20 62 75 66 66 | 65 72 2d 6e 61 6d 65 20 |r " buff|er-name |
|00000f20| 34 36 20 31 30 20 6f 63 | 63 75 72 2d 6d 6f 64 65 |46 10 oc|cur-mode|
|00000f30| 20 6f 63 63 75 72 2d 62 | 75 66 66 65 72 20 6f 63 | occur-b|uffer oc|
|00000f40| 63 75 72 2d 6e 6c 69 6e | 65 73 20 6e 69 6c 20 6f |cur-nlin|es nil o|
|00000f50| 63 63 75 72 2d 70 6f 73 | 2d 6c 69 73 74 20 62 65 |ccur-pos|-list be|
|00000f60| 67 69 6e 6e 69 6e 67 2d | 6f 66 2d 62 75 66 66 65 |ginning-|of-buffe|
|00000f70| 72 20 72 65 2d 73 65 61 | 72 63 68 2d 66 6f 72 77 |r re-sea|rch-forw|
|00000f80| 61 72 64 20 73 74 61 72 | 74 20 65 6e 64 20 66 6f |ard star|t end fo|
|00000f90| 72 6d 61 74 20 22 25 33 | 64 22 20 74 61 67 20 6d |rmat "%3|d" tag m|
|00000fa0| 61 6b 65 2d 73 74 72 69 | 6e 67 20 33 32 20 65 6d |ake-stri|ng 32 em|
|00000fb0| 70 74 79 20 74 65 6d 20 | 6d 61 6b 65 2d 6d 61 72 |pty tem |make-mar|
|00000fc0| 6b 65 72 20 7a 65 72 6f | 70 20 22 2d 2d 2d 2d 2d |ker zero|p "-----|
|00000fd0| 2d 2d 2d 5c 6e 22 20 69 | 6e 73 65 72 74 2d 62 75 |---\n" i|nsert-bu|
|00000fe0| 66 66 65 72 2d 73 75 62 | 73 74 72 69 6e 67 20 62 |ffer-sub|string b|
|00000ff0| 61 63 6b 77 61 72 64 2d | 63 68 61 72 20 35 38 20 |ackward-|char 58 |
|00001000| 6d 65 73 73 61 67 65 20 | 22 25 64 20 6d 61 74 63 |message |"%d matc|
|00001010| 68 69 6e 67 20 6c 69 6e | 65 73 2e 22 5d 20 36 20 |hing lin|es."] 6 |
|00001020| 22 5c 0a 53 68 6f 77 20 | 6c 69 6e 65 73 20 63 6f |"\.Show |lines co|
|00001030| 6e 74 61 69 6e 69 6e 67 | 20 61 20 6d 61 74 63 68 |ntaining| a match|
|00001040| 20 66 6f 72 20 52 45 47 | 45 58 50 2e 20 20 49 66 | for REG|EXP. If|
|00001050| 20 74 68 65 20 67 6c 6f | 62 61 6c 20 76 61 72 69 | the glo|bal vari|
|00001060| 61 62 6c 65 0a 6f 63 63 | 75 72 2d 77 68 6f 6c 65 |able.occ|ur-whole|
|00001070| 2d 62 75 66 66 65 72 20 | 69 73 20 6e 6f 6e 2d 6e |-buffer |is non-n|
|00001080| 69 6c 2c 20 74 68 65 20 | 65 6e 74 69 72 65 20 62 |il, the |entire b|
|00001090| 75 66 66 65 72 20 69 73 | 20 73 65 61 72 63 68 65 |uffer is| searche|
|000010a0| 64 2c 20 6f 74 68 65 72 | 77 69 73 65 0a 73 65 61 |d, other|wise.sea|
|000010b0| 72 63 68 20 62 65 67 69 | 6e 73 20 61 74 20 70 6f |rch begi|ns at po|
|000010c0| 69 6e 74 2e 20 20 49 6e | 74 65 72 61 63 74 69 76 |int. In|teractiv|
|000010d0| 65 6c 79 2c 20 52 45 47 | 45 58 50 20 64 65 66 61 |ely, REG|EXP defa|
|000010e0| 75 6c 74 73 20 74 6f 20 | 74 68 65 20 6c 61 73 74 |ults to |the last|
|000010f0| 20 52 45 47 45 58 50 0a | 75 73 65 64 20 69 6e 74 | REGEXP.|used int|
|00001100| 65 72 61 63 74 69 76 65 | 6c 79 2e 0a 0a 45 61 63 |eractive|ly...Eac|
|00001110| 68 20 6c 69 6e 65 20 69 | 73 20 64 69 73 70 6c 61 |h line i|s displa|
|00001120| 79 65 64 20 77 69 74 68 | 20 4e 4c 49 4e 45 53 20 |yed with| NLINES |
|00001130| 6c 69 6e 65 73 20 62 65 | 66 6f 72 65 20 61 6e 64 |lines be|fore and|
|00001140| 20 61 66 74 65 72 2c 0a | 6f 72 20 2d 4e 4c 49 4e | after,.|or -NLIN|
|00001150| 45 53 20 62 65 66 6f 72 | 65 20 69 66 20 4e 4c 49 |ES befor|e if NLI|
|00001160| 4e 45 53 20 69 73 20 6e | 65 67 61 74 69 76 65 2e |NES is n|egative.|
|00001170| 0a 4e 4c 49 4e 45 53 20 | 64 65 66 61 75 6c 74 73 |.NLINES |defaults|
|00001180| 20 74 6f 20 6c 69 73 74 | 2d 6d 61 74 63 68 69 6e | to list|-matchin|
|00001190| 67 2d 6c 69 6e 65 73 2d | 64 65 66 61 75 6c 74 2d |g-lines-|default-|
|000011a0| 63 6f 6e 74 65 78 74 2d | 6c 69 6e 65 73 2e 0a 49 |context-|lines..I|
|000011b0| 6e 74 65 72 61 63 74 69 | 76 65 6c 79 20 69 74 20 |nteracti|vely it |
|000011c0| 69 73 20 74 68 65 20 70 | 72 65 66 69 78 20 61 72 |is the p|refix ar|
|000011d0| 67 2e 0a 0a 54 68 65 20 | 6c 69 6e 65 73 20 61 72 |g...The |lines ar|
|000011e0| 65 20 73 68 6f 77 6e 20 | 69 6e 20 61 20 62 75 66 |e shown |in a buf|
|000011f0| 66 65 72 20 6e 61 6d 65 | 64 20 2a 4f 63 63 75 72 |fer name|d *Occur|
|00001200| 2a 2e 0a 49 74 20 73 65 | 72 76 65 73 20 61 73 20 |*..It se|rves as |
|00001210| 61 20 6d 65 6e 75 20 74 | 6f 20 66 69 6e 64 20 61 |a menu t|o find a|
|00001220| 6e 79 20 6f 66 20 74 68 | 65 20 6f 63 63 75 72 72 |ny of th|e occurr|
|00001230| 65 6e 63 65 73 20 69 6e | 20 74 68 69 73 20 62 75 |ences in| this bu|
|00001240| 66 66 65 72 2e 0a 5c 5c | 5b 64 65 73 63 72 69 62 |ffer..\\|[describ|
|00001250| 65 2d 6d 6f 64 65 5d 20 | 69 6e 20 74 68 61 74 20 |e-mode] |in that |
|00001260| 62 75 66 66 65 72 20 77 | 69 6c 6c 20 65 78 70 6c |buffer w|ill expl|
|00001270| 61 69 6e 20 68 6f 77 2e | 22 20 28 62 79 74 65 2d |ain how.|" (byte-|
|00001280| 63 6f 64 65 20 22 c0 c1 | 5c 6e c3 23 89 12 0c 44 |code "..|\n.#...D|
|00001290| 87 22 20 5b 72 65 61 64 | 2d 73 74 72 69 6e 67 20 |." [read|-string |
|000012a0| 22 4c 69 73 74 20 6c 69 | 6e 65 73 20 6d 61 74 63 |"List li|nes matc|
|000012b0| 68 69 6e 67 20 72 65 67 | 65 78 70 3a 20 22 20 6f |hing reg|exp: " o|
|000012c0| 63 63 75 72 2d 6c 61 73 | 74 2d 73 74 72 69 6e 67 |ccur-las|t-string|
|000012d0| 20 6d 69 6e 69 62 75 66 | 66 65 72 2d 72 65 67 65 | minibuf|fer-rege|
|000012e0| 78 70 2d 68 69 73 74 6f | 72 79 20 63 75 72 72 65 |xp-histo|ry curre|
|000012f0| 6e 74 2d 70 72 65 66 69 | 78 2d 61 72 67 5d 20 34 |nt-prefi|x-arg] 4|
|00001300| 29 5d 29 0a 28 64 65 66 | 63 6f 6e 73 74 20 71 75 |)]).(def|const qu|
|00001310| 65 72 79 2d 72 65 70 6c | 61 63 65 2d 68 65 6c 70 |ery-repl|ace-help|
|00001320| 20 22 54 79 70 65 20 53 | 70 61 63 65 20 6f 72 20 | "Type S|pace or |
|00001330| 60 79 27 20 74 6f 20 72 | 65 70 6c 61 63 65 20 6f |`y' to r|eplace o|
|00001340| 6e 65 20 6d 61 74 63 68 | 2c 20 44 65 6c 65 74 65 |ne match|, Delete|
|00001350| 20 6f 72 20 60 6e 27 20 | 74 6f 20 73 6b 69 70 20 | or `n' |to skip |
|00001360| 74 6f 20 6e 65 78 74 2c | 5c 6e 45 53 43 20 6f 72 |to next,|\nESC or|
|00001370| 20 60 71 27 20 74 6f 20 | 65 78 69 74 2c 20 50 65 | `q' to |exit, Pe|
|00001380| 72 69 6f 64 20 74 6f 20 | 72 65 70 6c 61 63 65 20 |riod to |replace |
|00001390| 6f 6e 65 20 6d 61 74 63 | 68 20 61 6e 64 20 65 78 |one matc|h and ex|
|000013a0| 69 74 2c 5c 6e 43 6f 6d | 6d 61 20 74 6f 20 72 65 |it,\nCom|ma to re|
|000013b0| 70 6c 61 63 65 20 62 75 | 74 20 6e 6f 74 20 6d 6f |place bu|t not mo|
|000013c0| 76 65 20 70 6f 69 6e 74 | 20 69 6d 6d 65 64 69 61 |ve point| immedia|
|000013d0| 74 65 6c 79 2c 5c 6e 43 | 2d 72 20 74 6f 20 65 6e |tely,\nC|-r to en|
|000013e0| 74 65 72 20 72 65 63 75 | 72 73 69 76 65 20 65 64 |ter recu|rsive ed|
|000013f0| 69 74 20 28 5c 5c 5b 65 | 78 69 74 2d 72 65 63 75 |it (\\[e|xit-recu|
|00001400| 72 73 69 76 65 2d 65 64 | 69 74 5d 20 74 6f 20 67 |rsive-ed|it] to g|
|00001410| 65 74 20 6f 75 74 20 61 | 67 61 69 6e 29 2c 5c 6e |et out a|gain),\n|
|00001420| 43 2d 77 20 74 6f 20 64 | 65 6c 65 74 65 20 6d 61 |C-w to d|elete ma|
|00001430| 74 63 68 20 61 6e 64 20 | 72 65 63 75 72 73 69 76 |tch and |recursiv|
|00001440| 65 20 65 64 69 74 2c 5c | 6e 43 2d 6c 20 74 6f 20 |e edit,\|nC-l to |
|00001450| 63 6c 65 61 72 20 74 68 | 65 20 73 63 72 65 65 6e |clear th|e screen|
|00001460| 2c 20 72 65 64 69 73 70 | 6c 61 79 2c 20 61 6e 64 |, redisp|lay, and|
|00001470| 20 6f 66 66 65 72 20 73 | 61 6d 65 20 72 65 70 6c | offer s|ame repl|
|00001480| 61 63 65 6d 65 6e 74 20 | 61 67 61 69 6e 2c 5c 6e |acement |again,\n|
|00001490| 21 20 74 6f 20 72 65 70 | 6c 61 63 65 20 61 6c 6c |! to rep|lace all|
|000014a0| 20 72 65 6d 61 69 6e 69 | 6e 67 20 6d 61 74 63 68 | remaini|ng match|
|000014b0| 65 73 20 77 69 74 68 20 | 6e 6f 20 6d 6f 72 65 20 |es with |no more |
|000014c0| 71 75 65 73 74 69 6f 6e | 73 2c 5c 6e 5e 20 74 6f |question|s,\n^ to|
|000014d0| 20 6d 6f 76 65 20 70 6f | 69 6e 74 20 62 61 63 6b | move po|int back|
|000014e0| 20 74 6f 20 70 72 65 76 | 69 6f 75 73 20 6d 61 74 | to prev|ious mat|
|000014f0| 63 68 2e 22 20 22 5c 0a | 48 65 6c 70 20 6d 65 73 |ch." "\.|Help mes|
|00001500| 73 61 67 65 20 77 68 69 | 6c 65 20 69 6e 20 71 75 |sage whi|le in qu|
|00001510| 65 72 79 2d 72 65 70 6c | 61 63 65 22 29 0a 28 62 |ery-repl|ace").(b|
|00001520| 79 74 65 2d 63 6f 64 65 | 20 22 c0 c1 c2 5c 22 88 |yte-code| "...\".|
|00001530| c3 c4 4d 87 22 20 5b 61 | 75 74 6f 6c 6f 61 64 20 |..M." [a|utoload |
|00001540| 69 73 65 61 72 63 68 2d | 68 69 67 68 6c 69 67 68 |isearch-|highligh|
|00001550| 74 20 22 69 73 65 61 72 | 63 68 22 20 70 65 72 66 |t "isear|ch" perf|
|00001560| 6f 72 6d 2d 72 65 70 6c | 61 63 65 2d 6e 65 78 74 |orm-repl|ace-next|
|00001570| 2d 65 76 65 6e 74 20 23 | 5b 28 65 76 65 6e 74 29 |-event #|[(event)|
|00001580| 20 22 08 ab 95 c1 1a c3 | 8e c0 c4 94 c4 95 5c 22 | "......|......\"|
|00001590| 88 c5 0e 06 21 88 c7 89 | 12 2a 87 c5 0e 06 21 87 |....!...|.*....!.|
|000015a0| 22 20 5b 69 73 65 61 72 | 63 68 2d 68 69 67 68 6c |" [isear|ch-highl|
|000015b0| 69 67 68 74 20 74 20 61 | 62 6f 72 74 65 64 20 28 |ight t a|borted (|
|000015c0| 28 69 73 65 61 72 63 68 | 2d 64 65 68 69 67 68 6c |(isearch|-dehighl|
|000015d0| 69 67 68 74 20 61 62 6f | 72 74 65 64 29 29 20 30 |ight abo|rted)) 0|
|000015e0| 20 6e 65 78 74 2d 63 6f | 6d 6d 61 6e 64 2d 65 76 | next-co|mmand-ev|
|000015f0| 65 6e 74 20 65 76 65 6e | 74 20 6e 69 6c 5d 20 33 |ent even|t nil] 3|
|00001600| 5d 5d 20 33 29 0a 28 66 | 73 65 74 20 27 70 65 72 |]] 3).(f|set 'per|
|00001610| 66 6f 72 6d 2d 72 65 70 | 6c 61 63 65 20 23 5b 28 |form-rep|lace #[(|
|00001620| 66 72 6f 6d 2d 73 74 72 | 69 6e 67 20 72 65 70 6c |from-str|ing repl|
|00001630| 61 63 65 6d 65 6e 74 73 | 20 71 75 65 72 79 2d 66 |acements| query-f|
|00001640| 6c 61 67 20 72 65 67 65 | 78 70 2d 66 6c 61 67 20 |lag rege|xp-flag |
|00001650| 64 65 6c 69 6d 69 74 65 | 64 2d 66 6c 61 67 20 26 |delimite|d-flag &|
|00001660| 6f 70 74 69 6f 6e 61 6c | 20 72 65 70 65 61 74 2d |optional| repeat-|
|00001670| 63 6f 75 6e 74 29 20 22 | c0 c1 20 5c 6e ad 87 0b |count) "|.. \n...|
|00001680| ad 84 0c 89 97 98 3f 0d | 3f 0d ab 83 c6 aa 81 c7 |......?.|?.......|
|00001690| 0c c0 c8 c9 c0 c8 89 c0 | 1e 5c 6e 1e 0b 1e 0c 1e |........|.\n.....|
|000016a0| 0d 1e 0e 1e 0f 1e 10 1e | 11 1e 12 1e 13 1e 14 1e |........|........|
|000016b0| 15 1e 16 0e 17 3b ab 86 | 0e 17 16 10 aa 87 0e 18 |.....;..|........|
|000016c0| ac 83 d9 16 18 0e 1a ab | 91 c6 16 12 db 0d ab 83 |........|........|
|000016d0| 0c aa 83 dc 0c 21 db 51 | 16 11 dd 20 88 de 20 88 |.....!.Q|... .. .|
|000016e0| 0e 0e 83 59 02 6d 84 59 | 02 0e 12 0e 11 c0 c9 23 |...Y.m.Y|.......#|
|000016f0| 83 59 02 0e 5c 6e 60 3d | ab 8c d9 75 88 0e 12 0e |.Y..\n`=|...u....|
|00001700| 11 c0 c9 23 aa 81 c9 83 | 59 02 0e 17 3c ab 9e 0e |...#....|Y...<...|
|00001710| 0c 0e 0b 55 ab 97 0e 0c | 0e 18 5c 5c 16 0c 0e 0f |...U....|..\\....|
|00001720| 0e 17 38 16 10 0e 0f 54 | 0e 17 47 a6 16 0f 0e 1f |..8....T|..G.....|
|00001730| ac 91 e0 0e 10 0e 14 0e | 13 23 88 0e 0b 54 16 0b |........|.#...T..|
|00001740| 82 53 02 de 20 88 c0 89 | 1e 21 1e 5c 22 0e 5c 22 |.S.. ...|.!.\".\"|
|00001750| 84 35 02 e3 20 e4 1e 25 | 1e 26 0e 27 16 16 0e 16 |.5.. ..%|.&.'....|
|00001760| a7 ab 87 0e 16 0e 27 55 | ab af e8 e9 0c 0e 10 23 |......'U|.......#|
|00001770| 88 ea 0e 15 21 88 eb 0e | 15 21 ae 82 0e 15 89 16 |....!...|.!......|
|00001780| 16 a7 ab 5a 0e 16 ec 55 | ab 54 ed 0e 27 c1 20 5c |...Z...U|.T..'. \|
|00001790| 22 16 2e 0e 27 89 16 16 | aa 47 ef 0e 26 21 88 2a |"...'...|.G..&!.*|
|000017a0| 0e 16 f0 55 ac 86 0e 16 | f1 55 ab 89 c0 16 0e c9 |...U....|.U......|
|000017b0| 89 16 5c 22 aa 1c 0e 16 | f2 55 ab a2 0e 0d 40 89 |..\"....|.U....@.|
|000017c0| 1e 33 40 62 88 0e 33 41 | c9 3d 89 16 21 ac 86 ef |.3@b..3A|.=..!...|
|000017d0| 0e 33 41 21 88 0e 0d 41 | 16 0d 29 82 d0 00 0e 16 |.3A!...A|..).....|
|000017e0| f4 55 ac 86 0e 16 f5 55 | ab 96 0e 21 ac 89 e0 0e |.U.....U|...!....|
|000017f0| 10 0e 14 0e 13 23 88 c9 | 16 5c 22 c9 16 21 82 d0 |.....#..|.\"..!..|
|00001800| 00 0e 16 f6 55 ab 99 0e | 21 ac 89 e0 0e 10 0e 14 |....U...|!.......|
|00001810| 0e 13 23 88 c0 16 0e c9 | 16 5c 22 c9 16 21 82 d0 |..#.....|.\"..!..|
|00001820| 00 0e 16 f7 55 ab 94 0e | 21 84 d0 00 e0 0e 10 0e |....U...|!.......|
|00001830| 14 0e 13 23 88 c9 16 21 | 82 d0 00 0e 16 f8 55 ab |...#...!|......U.|
|00001840| 99 0e 21 ac 89 e0 0e 10 | 0e 14 0e 13 23 88 c9 16 |..!.....|....#...|
|00001850| 5c 22 c0 16 1f c9 16 21 | 82 d0 00 0e 16 f9 55 ac |\".....!|......U.|
|00001860| 86 0e 16 fa 55 ab 87 c9 | 89 16 5c 22 82 d2 00 0e |....U...|..\"....|
|00001870| 16 fb 55 ab 87 fc c0 21 | 88 82 d0 00 0e 16 fd 55 |..U....!|.......U|
|00001880| ab 8d ef e3 20 8a fe 20 | 88 29 21 88 82 d0 00 0e |.... .. |.)!.....|
|00001890| 16 ff 55 ab 96 c8 94 c8 | 95 7c 88 ef e3 20 8a fe |..U.....|.|... ..|
|000018a0| 20 88 29 21 88 c9 16 21 | 82 d0 00 c0 16 0e 0e 15 | .)!...!|........|
|000018b0| 16 2e c9 89 16 5c 22 83 | d5 00 60 0e 21 ae 89 81 |.....\".|..`.!...|
|000018c0| 40 00 81 41 00 e3 20 5c | 22 42 0e 0d 42 16 0d 0e |@..A.. \|"B..B...|
|000018d0| 21 ab 85 0e 0b 54 16 0b | 2a 60 16 5c 6e 82 66 00 |!....T..|*`.\n.f.|
|000018e0| 0e 0e ad 82 0e 0d 2e 0d | 87 22 20 5b 6e 69 6c 20 |........|." [nil |
|000018f0| 61 6c 6c 6f 63 61 74 65 | 2d 65 76 65 6e 74 20 63 |allocate|-event c|
|00001900| 61 73 65 2d 66 6f 6c 64 | 2d 73 65 61 72 63 68 20 |ase-fold|-search |
|00001910| 63 61 73 65 2d 72 65 70 | 6c 61 63 65 20 66 72 6f |case-rep|lace fro|
|00001920| 6d 2d 73 74 72 69 6e 67 | 20 72 65 67 65 78 70 2d |m-string| regexp-|
|00001930| 66 6c 61 67 20 72 65 2d | 73 65 61 72 63 68 2d 66 |flag re-|search-f|
|00001940| 6f 72 77 61 72 64 20 73 | 65 61 72 63 68 2d 66 6f |orward s|earch-fo|
|00001950| 72 77 61 72 64 20 30 20 | 74 20 6c 61 73 74 72 65 |rward 0 |t lastre|
|00001960| 70 6c 20 72 65 70 6c 61 | 63 65 2d 63 6f 75 6e 74 |pl repla|ce-count|
|00001970| 20 6e 65 78 74 2d 72 6f | 74 61 74 65 2d 63 6f 75 | next-ro|tate-cou|
|00001980| 6e 74 20 73 74 61 63 6b | 20 6b 65 65 70 2d 67 6f |nt stack| keep-go|
|00001990| 69 6e 67 20 72 65 70 6c | 61 63 65 6d 65 6e 74 2d |ing repl|acement-|
|000019a0| 69 6e 64 65 78 20 6e 65 | 78 74 2d 72 65 70 6c 61 |index ne|xt-repla|
|000019b0| 63 65 6d 65 6e 74 20 73 | 65 61 72 63 68 2d 73 74 |cement s|earch-st|
|000019c0| 72 69 6e 67 20 73 65 61 | 72 63 68 2d 66 75 6e 63 |ring sea|rch-func|
|000019d0| 74 69 6f 6e 20 6c 69 74 | 65 72 61 6c 20 6e 6f 63 |tion lit|eral noc|
|000019e0| 61 73 69 66 79 20 65 76 | 65 6e 74 20 63 68 61 72 |asify ev|ent char|
|000019f0| 20 72 65 70 6c 61 63 65 | 6d 65 6e 74 73 20 72 65 | replace|ments re|
|00001a00| 70 65 61 74 2d 63 6f 75 | 6e 74 20 31 20 64 65 6c |peat-cou|nt 1 del|
|00001a10| 69 6d 69 74 65 64 2d 66 | 6c 61 67 20 22 5c 5c 62 |imited-f|lag "\\b|
|00001a20| 22 20 72 65 67 65 78 70 | 2d 71 75 6f 74 65 20 70 |" regexp|-quote p|
|00001a30| 75 73 68 2d 6d 61 72 6b | 20 75 6e 64 6f 2d 62 6f |ush-mark| undo-bo|
|00001a40| 75 6e 64 61 72 79 20 71 | 75 65 72 79 2d 66 6c 61 |undary q|uery-fla|
|00001a50| 67 20 72 65 70 6c 61 63 | 65 2d 6d 61 74 63 68 20 |g replac|e-match |
|00001a60| 72 65 70 6c 61 63 65 64 | 20 64 6f 6e 65 20 6d 61 |replaced| done ma|
|00001a70| 74 63 68 2d 64 61 74 61 | 20 28 63 6f 6e 63 61 74 |tch-data| (concat|
|00001a80| 20 22 51 75 65 72 79 20 | 72 65 70 6c 61 63 69 6e | "Query |replacin|
|00001a90| 67 20 22 20 28 69 66 20 | 72 65 67 65 78 70 2d 66 |g " (if |regexp-f|
|00001aa0| 6c 61 67 20 22 72 65 67 | 65 78 70 20 22 20 22 22 |lag "reg|exp " ""|
|00001ab0| 29 20 66 72 6f 6d 2d 73 | 74 72 69 6e 67 20 22 20 |) from-s|tring " |
|00001ac0| 77 69 74 68 20 22 20 6e | 65 78 74 2d 72 65 70 6c |with " n|ext-repl|
|00001ad0| 61 63 65 6d 65 6e 74 20 | 22 2e 5c 6e 5c 6e 22 20 |acement |".\n\n" |
|00001ae0| 28 73 75 62 73 74 69 74 | 75 74 65 2d 63 6f 6d 6d |(substit|ute-comm|
|00001af0| 61 6e 64 2d 6b 65 79 73 | 20 71 75 65 72 79 2d 72 |and-keys| query-r|
|00001b00| 65 70 6c 61 63 65 2d 68 | 65 6c 70 29 29 20 68 65 |eplace-h|elp)) he|
|00001b10| 6c 70 2d 66 6f 72 6d 20 | 64 61 74 61 20 68 65 6c |lp-form |data hel|
|00001b20| 70 2d 63 68 61 72 20 6d | 65 73 73 61 67 65 20 22 |p-char m|essage "|
|00001b30| 51 75 65 72 79 20 72 65 | 70 6c 61 63 69 6e 67 20 |Query re|placing |
|00001b40| 25 73 20 77 69 74 68 20 | 25 73 3a 20 22 20 70 65 |%s with |%s: " pe|
|00001b50| 72 66 6f 72 6d 2d 72 65 | 70 6c 61 63 65 2d 6e 65 |rform-re|place-ne|
|00001b60| 78 74 2d 65 76 65 6e 74 | 20 65 76 65 6e 74 2d 74 |xt-event| event-t|
|00001b70| 6f 2d 63 68 61 72 61 63 | 74 65 72 20 36 33 20 63 |o-charac|ter 63 c|
|00001b80| 68 61 72 61 63 74 65 72 | 2d 74 6f 2d 65 76 65 6e |haracter|-to-even|
|00001b90| 74 20 75 6e 72 65 61 64 | 2d 63 6f 6d 6d 61 6e 64 |t unread|-command|
|00001ba0| 2d 65 76 65 6e 74 20 73 | 74 6f 72 65 2d 6d 61 74 |-event s|tore-mat|
|00001bb0| 63 68 2d 64 61 74 61 20 | 32 37 20 31 31 33 20 39 |ch-data |27 113 9|
|00001bc0| 34 20 65 6c 74 20 33 32 | 20 31 32 31 20 34 36 20 |4 elt 32| 121 46 |
|00001bd0| 34 34 20 33 33 20 31 32 | 37 20 31 31 30 20 31 32 |44 33 12|7 110 12|
|00001be0| 20 72 65 63 65 6e 74 65 | 72 20 31 38 20 72 65 63 | recente|r 18 rec|
|00001bf0| 75 72 73 69 76 65 2d 65 | 64 69 74 20 32 33 20 6d |ursive-e|dit 23 m|
|00001c00| 61 70 63 61 72 20 23 5b | 28 65 6c 74 29 20 22 c0 |apcar #[|(elt) ".|
|00001c10| 09 21 ab 84 c2 09 21 87 | 09 87 22 20 5b 6d 61 72 |.!....!.|.." [mar|
|00001c20| 6b 65 72 70 20 65 6c 74 | 20 6d 61 72 6b 65 72 2d |kerp elt| marker-|
|00001c30| 70 6f 73 69 74 69 6f 6e | 5d 20 32 5d 5d 20 31 34 |position|] 2]] 14|
|00001c40| 20 22 5c 0a 53 75 62 72 | 6f 75 74 69 6e 65 20 6f | "\.Subr|outine o|
|00001c50| 66 20 60 71 75 65 72 79 | 2d 72 65 70 6c 61 63 65 |f `query|-replace|
|00001c60| 27 2e 20 20 49 74 73 20 | 63 6f 6d 70 6c 65 78 69 |'. Its |complexi|
|00001c70| 74 79 20 68 61 6e 64 6c | 65 73 20 69 6e 74 65 72 |ty handl|es inter|
|00001c80| 61 63 74 69 76 65 20 71 | 75 65 72 69 65 73 2e 0a |active q|ueries..|
|00001c90| 44 6f 6e 27 74 20 75 73 | 65 20 74 68 69 73 20 69 |Don't us|e this i|
|00001ca0| 6e 20 79 6f 75 72 20 6f | 77 6e 20 70 72 6f 67 72 |n your o|wn progr|
|00001cb0| 61 6d 20 75 6e 6c 65 73 | 73 20 79 6f 75 20 77 61 |am unles|s you wa|
|00001cc0| 6e 74 20 74 6f 20 71 75 | 65 72 79 20 61 6e 64 20 |nt to qu|ery and |
|00001cd0| 73 65 74 20 74 68 65 20 | 6d 61 72 6b 0a 6a 75 73 |set the |mark.jus|
|00001ce0| 74 20 61 73 20 60 71 75 | 65 72 79 2d 72 65 70 6c |t as `qu|ery-repl|
|00001cf0| 61 63 65 27 20 64 6f 65 | 73 2e 20 20 49 6e 73 74 |ace' doe|s. Inst|
|00001d00| 65 61 64 2c 20 77 72 69 | 74 65 20 61 20 73 69 6d |ead, wri|te a sim|
|00001d10| 70 6c 65 20 6c 6f 6f 70 | 20 6c 69 6b 65 20 74 68 |ple loop| like th|
|00001d20| 69 73 3a 0a 20 20 28 77 | 68 69 6c 65 20 28 72 65 |is:. (w|hile (re|
|00001d30| 2d 73 65 61 72 63 68 2d | 66 6f 72 77 61 72 64 20 |-search-|forward |
|00001d40| 5c 22 66 6f 6f 5b 20 09 | 5d 2b 62 61 72 5c 22 20 |\"foo[ .|]+bar\" |
|00001d50| 6e 69 6c 20 74 29 0a 20 | 20 20 20 28 72 65 70 6c |nil t). | (repl|
|00001d60| 61 63 65 2d 6d 61 74 63 | 68 20 5c 22 66 6f 6f 62 |ace-matc|h \"foob|
|00001d70| 61 72 5c 22 20 6e 69 6c | 20 6e 69 6c 29 29 0a 77 |ar\" nil| nil)).w|
|00001d80| 68 69 63 68 20 77 69 6c | 6c 20 72 75 6e 20 66 61 |hich wil|l run fa|
|00001d90| 73 74 65 72 20 61 6e 64 | 20 64 6f 20 65 78 61 63 |ster and| do exac|
|00001da0| 74 6c 79 20 77 68 61 74 | 20 79 6f 75 20 70 72 6f |tly what| you pro|
|00001db0| 62 61 62 6c 79 20 77 61 | 6e 74 2e 22 5d 29 0a 28 |bably wa|nt."]).(|
|00001dc0| 66 73 65 74 20 27 6d 61 | 70 2d 71 75 65 72 79 2d |fset 'ma|p-query-|
|00001dd0| 72 65 70 6c 61 63 65 2d | 72 65 67 65 78 70 20 23 |replace-|regexp #|
|00001de0| 5b 28 72 65 67 65 78 70 | 20 74 6f 2d 73 74 72 69 |[(regexp| to-stri|
|00001df0| 6e 67 73 20 26 6f 70 74 | 69 6f 6e 61 6c 20 61 72 |ngs &opt|ional ar|
|00001e00| 67 29 20 22 c0 19 5c 6e | 3c ab 84 5c 6e 11 aa af |g) "..\n|<..\n...|
|00001e10| 5c 6e 47 c3 55 ac a9 c4 | c5 5c 6e 5c 22 ab 98 c6 |\nG.U...|.\n\"...|
|00001e20| 09 5c 6e c3 c4 c5 5c 6e | 5c 22 4f 43 5c 22 11 5c |.\n...\n|\"OC\".\|
|00001e30| 6e c4 c5 5c 6e 5c 22 54 | c0 4f 89 12 aa 5d c6 09 |n..\n\"T|.O...]..|
|00001e40| 5c 6e 43 5c 22 11 c7 89 | 12 aa 52 c8 0e 09 09 ca |\nC\"...|..R.....|
|00001e50| 89 c0 0e 0b 26 06 88 29 | cc cd 21 87 22 20 5b 6e |....&..)|..!." [n|
|00001e60| 69 6c 20 72 65 70 6c 61 | 63 65 6d 65 6e 74 73 20 |il repla|cements |
|00001e70| 74 6f 2d 73 74 72 69 6e | 67 73 20 30 20 73 74 72 |to-strin|gs 0 str|
|00001e80| 69 6e 67 2d 6d 61 74 63 | 68 20 22 20 22 20 61 70 |ing-matc|h " " ap|
|00001e90| 70 65 6e 64 20 22 22 20 | 70 65 72 66 6f 72 6d 2d |pend "" |perform-|
|00001ea0| 72 65 70 6c 61 63 65 20 | 72 65 67 65 78 70 20 74 |replace |regexp t|
|00001eb0| 20 61 72 67 20 6d 65 73 | 73 61 67 65 20 22 44 6f | arg mes|sage "Do|
|00001ec0| 6e 65 22 5d 20 38 20 22 | 5c 0a 52 65 70 6c 61 63 |ne"] 8 "|\.Replac|
|00001ed0| 65 20 73 6f 6d 65 20 6d | 61 74 63 68 65 73 20 66 |e some m|atches f|
|00001ee0| 6f 72 20 52 45 47 45 58 | 50 20 77 69 74 68 20 76 |or REGEX|P with v|
|00001ef0| 61 72 69 6f 75 73 20 73 | 74 72 69 6e 67 73 2c 20 |arious s|trings, |
|00001f00| 69 6e 20 72 6f 74 61 74 | 69 6f 6e 2e 0a 54 68 65 |in rotat|ion..The|
|00001f10| 20 73 65 63 6f 6e 64 20 | 61 72 67 75 6d 65 6e 74 | second |argument|
|00001f20| 20 54 4f 2d 53 54 52 49 | 4e 47 53 20 63 6f 6e 74 | TO-STRI|NGS cont|
|00001f30| 61 69 6e 73 20 74 68 65 | 20 72 65 70 6c 61 63 65 |ains the| replace|
|00001f40| 6d 65 6e 74 20 73 74 72 | 69 6e 67 73 2c 20 73 65 |ment str|ings, se|
|00001f50| 70 61 72 61 74 65 64 0a | 62 79 20 73 70 61 63 65 |parated.|by space|
|00001f60| 73 2e 20 20 54 68 69 73 | 20 63 6f 6d 6d 61 6e 64 |s. This| command|
|00001f70| 20 77 6f 72 6b 73 20 6c | 69 6b 65 20 60 71 75 65 | works l|ike `que|
|00001f80| 72 79 2d 72 65 70 6c 61 | 63 65 2d 72 65 67 65 78 |ry-repla|ce-regex|
|00001f90| 70 27 20 65 78 63 65 70 | 74 0a 74 68 61 74 20 65 |p' excep|t.that e|
|00001fa0| 61 63 68 20 73 75 63 63 | 65 73 73 69 76 65 20 72 |ach succ|essive r|
|00001fb0| 65 70 6c 61 63 65 6d 65 | 6e 74 20 75 73 65 73 20 |eplaceme|nt uses |
|00001fc0| 74 68 65 20 6e 65 78 74 | 20 73 75 63 63 65 73 73 |the next| success|
|00001fd0| 69 76 65 20 72 65 70 6c | 61 63 65 6d 65 6e 74 20 |ive repl|acement |
|00001fe0| 73 74 72 69 6e 67 2c 0a | 77 72 61 70 70 69 6e 67 |string,.|wrapping|
|00001ff0| 20 61 72 6f 75 6e 64 20 | 66 72 6f 6d 20 74 68 65 | around |from the|
|00002000| 20 6c 61 73 74 20 73 75 | 63 68 20 73 74 72 69 6e | last su|ch strin|
|00002010| 67 20 74 6f 20 74 68 65 | 20 66 69 72 73 74 2e 0a |g to the| first..|
|00002020| 0a 4e 6f 6e 2d 69 6e 74 | 65 72 61 63 74 69 76 65 |.Non-int|eractive|
|00002030| 6c 79 2c 20 54 4f 2d 53 | 54 52 49 4e 47 53 20 6d |ly, TO-S|TRINGS m|
|00002040| 61 79 20 62 65 20 61 20 | 6c 69 73 74 20 6f 66 20 |ay be a |list of |
|00002050| 72 65 70 6c 61 63 65 6d | 65 6e 74 20 73 74 72 69 |replacem|ent stri|
|00002060| 6e 67 73 2e 0a 0a 41 20 | 70 72 65 66 69 78 20 61 |ngs...A |prefix a|
|00002070| 72 67 75 6d 65 6e 74 20 | 4e 20 73 61 79 73 20 74 |rgument |N says t|
|00002080| 6f 20 75 73 65 20 65 61 | 63 68 20 72 65 70 6c 61 |o use ea|ch repla|
|00002090| 63 65 6d 65 6e 74 20 73 | 74 72 69 6e 67 20 4e 20 |cement s|tring N |
|000020a0| 74 69 6d 65 73 0a 62 65 | 66 6f 72 65 20 72 6f 74 |times.be|fore rot|
|000020b0| 61 74 69 6e 67 20 74 6f | 20 74 68 65 20 6e 65 78 |ating to| the nex|
|000020c0| 74 2e 22 20 22 73 4d 61 | 70 20 71 75 65 72 79 20 |t." "sMa|p query |
|000020d0| 72 65 70 6c 61 63 65 20 | 28 72 65 67 65 78 70 29 |replace |(regexp)|
|000020e0| 3a 20 5c 6e 73 51 75 65 | 72 79 20 72 65 70 6c 61 |: \nsQue|ry repla|
|000020f0| 63 65 20 25 73 20 77 69 | 74 68 20 28 73 70 61 63 |ce %s wi|th (spac|
|00002100| 65 2d 73 65 70 61 72 61 | 74 65 64 20 73 74 72 69 |e-separa|ted stri|
|00002110| 6e 67 73 29 3a 20 5c 6e | 50 22 5d 29 0a |ngs): \n|P"]). |
+--------+-------------------------+-------------------------+--------+--------+