home *** CD-ROM | disk | FTP | other *** search
Emacs Compiled Lisp | 1993-11-24 | 5.6 KB |
open in:
MacOS 8.1
|
Win98
|
DOS
view JSON data
|
view as text
This file was processed as: Emacs Compiled Lisp
(other/emacsCompiledLisp).
This format is not currently supported by dexvert.
Confidence | Program | Detection | Match Type | Support
|
---|
1%
| dexvert
| Emacs Compiled Lisp (other/emacsCompiledLisp)
| magic
| Unsupported |
100%
| file
| Emacs/XEmacs v19 byte-compiled Lisp data
| default
| |
99%
| file
| data
| default
| |
100%
| TrID
| Emacs/XEmacs byte-compiled Lisp (generic)
| default
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 3b 45 4c 43 13 00 00 00 | 0a 3b 3b 3b 20 63 6f 6d |;ELC....|.;;; com|
|00000010| 70 69 6c 65 64 20 62 79 | 20 72 6d 73 40 6d 6f 6c |piled by| rms@mol|
|00000020| 65 2e 67 6e 75 2e 61 69 | 2e 6d 69 74 2e 65 64 75 |e.gnu.ai|.mit.edu|
|00000030| 20 6f 6e 20 57 65 64 20 | 4e 6f 76 20 32 34 20 30 | on Wed |Nov 24 0|
|00000040| 34 3a 30 36 3a 32 36 20 | 31 39 39 33 0a 3b 3b 3b |4:06:26 |1993.;;;|
|00000050| 20 66 72 6f 6d 20 66 69 | 6c 65 20 2f 68 6f 6d 65 | from fi|le /home|
|00000060| 2f 66 73 66 2f 72 6d 73 | 2f 65 31 39 2f 6c 69 73 |/fsf/rms|/e19/lis|
|00000070| 70 2f 72 65 67 69 2e 65 | 6c 0a 3b 3b 3b 20 65 6d |p/regi.e|l.;;; em|
|00000080| 61 63 73 20 76 65 72 73 | 69 6f 6e 20 31 39 2e 32 |acs vers|ion 19.2|
|00000090| 31 2e 32 2e 0a 3b 3b 3b | 20 62 79 74 65 63 6f 6d |1.2..;;;| bytecom|
|000000a0| 70 20 76 65 72 73 69 6f | 6e 20 46 53 46 20 32 2e |p versio|n FSF 2.|
|000000b0| 31 30 0a 3b 3b 3b 20 6f | 70 74 69 6d 69 7a 61 74 |10.;;; o|ptimizat|
|000000c0| 69 6f 6e 20 69 73 20 6f | 6e 2e 0a 3b 3b 3b 20 74 |ion is o|n..;;; t|
|000000d0| 68 69 73 20 66 69 6c 65 | 20 75 73 65 73 20 6f 70 |his file| uses op|
|000000e0| 63 6f 64 65 73 20 77 68 | 69 63 68 20 64 6f 20 6e |codes wh|ich do n|
|000000f0| 6f 74 20 65 78 69 73 74 | 20 69 6e 20 45 6d 61 63 |ot exist| in Emac|
|00000100| 73 20 31 38 2e 0a 0a 28 | 69 66 20 28 61 6e 64 20 |s 18...(|if (and |
|00000110| 28 62 6f 75 6e 64 70 20 | 27 65 6d 61 63 73 2d 76 |(boundp |'emacs-v|
|00000120| 65 72 73 69 6f 6e 29 0a | 09 20 28 6f 72 20 28 61 |ersion).|. (or (a|
|00000130| 6e 64 20 28 62 6f 75 6e | 64 70 20 27 65 70 6f 63 |nd (boun|dp 'epoc|
|00000140| 68 3a 3a 76 65 72 73 69 | 6f 6e 29 20 65 70 6f 63 |h::versi|on) epoc|
|00000150| 68 3a 3a 76 65 72 73 69 | 6f 6e 29 0a 09 20 20 20 |h::versi|on).. |
|00000160| 20 20 28 73 74 72 69 6e | 67 2d 6c 65 73 73 70 20 | (strin|g-lessp |
|00000170| 65 6d 61 63 73 2d 76 65 | 72 73 69 6f 6e 20 22 31 |emacs-ve|rsion "1|
|00000180| 39 22 29 29 29 0a 20 20 | 20 20 28 65 72 72 6f 72 |9"))). | (error|
|00000190| 20 22 54 68 69 73 20 66 | 69 6c 65 20 77 61 73 20 | "This f|ile was |
|000001a0| 63 6f 6d 70 69 6c 65 64 | 20 66 6f 72 20 45 6d 61 |compiled| for Ema|
|000001b0| 63 73 20 31 39 22 29 29 | 0a 0a 28 64 65 66 61 6c |cs 19"))|..(defal|
|000001c0| 69 61 73 20 27 72 65 67 | 69 2d 70 6f 73 20 23 5b |ias 'reg|i-pos #[|
|000001d0| 28 26 6f 70 74 69 6f 6e | 61 6c 20 70 6f 73 69 74 |(&option|al posit|
|000001e0| 69 6f 6e 20 63 6f 6c 2d | 70 29 20 22 8a 08 c1 3d |ion col-|p) "...=|
|000001f0| 83 0d 00 c2 79 88 82 34 | 00 08 c3 3d 83 19 00 c4 |....y..4|...=....|
|00000200| 20 88 82 34 00 08 c5 3d | 83 25 00 c6 79 88 82 34 | ..4...=|.%..y..4|
|00000210| 00 08 c7 3d 83 31 00 c8 | 79 88 82 34 00 c9 7f 88 |...=.1..|y..4....|
|00000220| 0e 5c 6e 83 3d 00 69 82 | 3e 00 60 29 87 22 20 5b |.\n.=.i.|>.`)." [|
|00000230| 70 6f 73 69 74 69 6f 6e | 20 62 6f 6c 20 30 20 62 |position| bol 0 b|
|00000240| 6f 69 20 62 61 63 6b 2d | 74 6f 2d 69 6e 64 65 6e |oi back-|to-inden|
|00000250| 74 61 74 69 6f 6e 20 62 | 6f 6e 6c 20 31 20 62 6f |tation b|onl 1 bo|
|00000260| 70 6c 20 2d 31 20 6e 69 | 6c 20 63 6f 6c 2d 70 5d |pl -1 ni|l col-p]|
|00000270| 20 32 20 22 5c 0a 52 65 | 74 75 72 6e 20 74 68 65 | 2 "\.Re|turn the|
|00000280| 20 63 68 61 72 61 63 74 | 65 72 20 70 6f 73 69 74 | charact|er posit|
|00000290| 69 6f 6e 20 61 74 20 76 | 61 72 69 6f 75 73 20 62 |ion at v|arious b|
|000002a0| 75 66 66 65 72 20 70 6f | 73 69 74 69 6f 6e 73 2e |uffer po|sitions.|
|000002b0| 0a 4f 70 74 69 6f 6e 61 | 6c 20 50 4f 53 49 54 49 |.Optiona|l POSITI|
|000002c0| 4f 4e 20 63 61 6e 20 62 | 65 20 6f 6e 65 20 6f 66 |ON can b|e one of|
|000002d0| 20 74 68 65 20 66 6f 6c | 6c 6f 77 69 6e 67 20 73 | the fol|lowing s|
|000002e0| 79 6d 62 6f 6c 73 3a 0a | 0a 60 62 6f 6c 27 20 20 |ymbols:.|.`bol' |
|000002f0| 3d 3d 20 62 65 67 69 6e | 6e 69 6e 67 20 6f 66 20 |== begin|ning of |
|00000300| 6c 69 6e 65 0a 60 62 6f | 69 27 20 20 3d 3d 20 62 |line.`bo|i' == b|
|00000310| 65 67 69 6e 6e 69 6e 67 | 20 6f 66 20 69 6e 64 65 |eginning| of inde|
|00000320| 6e 74 61 74 69 6f 6e 0a | 60 65 6f 6c 27 20 20 3d |ntation.|`eol' =|
|00000330| 3d 20 65 6e 64 20 6f 66 | 20 6c 69 6e 65 20 5b 64 |= end of| line [d|
|00000340| 65 66 61 75 6c 74 5d 0a | 60 62 6f 6e 6c 27 20 3d |efault].|`bonl' =|
|00000350| 3d 20 62 65 67 69 6e 6e | 69 6e 67 20 6f 66 20 6e |= beginn|ing of n|
|00000360| 65 78 74 20 6c 69 6e 65 | 0a 60 62 6f 70 6c 27 20 |ext line|.`bopl' |
|00000370| 3d 3d 20 62 65 67 69 6e | 6e 69 6e 67 20 6f 66 20 |== begin|ning of |
|00000380| 70 72 65 76 69 6f 75 73 | 20 6c 69 6e 65 0a 0a 4f |previous| line..O|
|00000390| 70 74 69 6f 6e 61 6c 20 | 43 4f 4c 2d 50 20 6e 6f |ptional |COL-P no|
|000003a0| 6e 2d 6e 69 6c 20 72 65 | 74 75 72 6e 73 20 60 63 |n-nil re|turns `c|
|000003b0| 75 72 72 65 6e 74 2d 63 | 6f 6c 75 6d 6e 27 20 69 |urrent-c|olumn' i|
|000003c0| 6e 73 74 65 61 64 20 6f | 66 20 63 68 61 72 61 63 |nstead o|f charac|
|000003d0| 74 65 72 20 70 6f 73 69 | 74 69 6f 6e 2e 22 5d 29 |ter posi|tion."])|
|000003e0| 0a 28 64 65 66 61 6c 69 | 61 73 20 27 72 65 67 69 |.(defali|as 'regi|
|000003f0| 2d 6d 61 70 63 61 72 20 | 23 5b 28 70 72 65 64 6c |-mapcar |#[(predl|
|00000400| 69 73 74 20 66 75 6e 63 | 20 26 6f 70 74 69 6f 6e |ist func| &option|
|00000410| 61 6c 20 6e 65 67 61 74 | 65 2d 70 20 63 61 73 65 |al negat|e-p case|
|00000420| 2d 66 6f 6c 64 2d 73 65 | 61 72 63 68 2d 70 29 20 |-fold-se|arch-p) |
|00000430| 22 c0 89 19 1a 0b 84 0c | 00 0c 83 0f 00 0b 43 11 |".......|......C.|
|00000440| 0c 83 19 00 c5 09 0c 43 | 5c 22 11 0e 06 83 41 00 |.......C|\"....A.|
|00000450| 0e 06 40 0e 07 44 1e 08 | 09 83 31 00 c5 0e 08 09 |..@..D..|..1.....|
|00000460| 5c 22 16 08 c5 5c 6e 0e | 08 43 5c 22 12 0e 06 41 |\"...\n.|.C\"...A|
|00000470| 16 06 29 82 19 00 5c 6e | 2a 87 22 20 5b 6e 69 6c |..)...\n|*." [nil|
|00000480| 20 74 61 69 6c 20 66 72 | 61 6d 65 20 6e 65 67 61 | tail fr|ame nega|
|00000490| 74 65 2d 70 20 63 61 73 | 65 2d 66 6f 6c 64 2d 73 |te-p cas|e-fold-s|
|000004a0| 65 61 72 63 68 2d 70 20 | 61 70 70 65 6e 64 20 70 |earch-p |append p|
|000004b0| 72 65 64 6c 69 73 74 20 | 66 75 6e 63 20 65 6c 65 |redlist |func ele|
|000004c0| 6d 65 6e 74 5d 20 33 20 | 22 5c 0a 42 75 69 6c 64 |ment] 3 |"\.Build|
|000004d0| 20 61 20 72 65 67 69 20 | 66 72 61 6d 65 20 77 68 | a regi |frame wh|
|000004e0| 65 72 65 20 65 61 63 68 | 20 65 6c 65 6d 65 6e 74 |ere each| element|
|000004f0| 20 6f 66 20 50 52 45 44 | 4c 49 53 54 20 61 70 70 | of PRED|LIST app|
|00000500| 65 61 72 73 20 65 78 61 | 63 74 6c 79 20 6f 6e 63 |ears exa|ctly onc|
|00000510| 65 2e 0a 54 68 65 20 66 | 72 61 6d 65 20 63 6f 6e |e..The f|rame con|
|00000520| 74 61 69 6e 73 20 65 6c | 65 6d 65 6e 74 73 20 77 |tains el|ements w|
|00000530| 68 65 72 65 20 65 61 63 | 68 20 6d 65 6d 62 65 72 |here eac|h member|
|00000540| 20 6f 66 20 50 52 45 44 | 4c 49 53 54 20 69 73 0a | of PRED|LIST is.|
|00000550| 61 73 73 6f 63 69 61 74 | 65 64 20 77 69 74 68 20 |associat|ed with |
|00000560| 46 55 4e 43 2c 20 61 6e | 64 20 6f 70 74 69 6f 6e |FUNC, an|d option|
|00000570| 61 6c 6c 79 20 4e 45 47 | 41 54 45 2d 50 20 61 6e |ally NEG|ATE-P an|
|00000580| 64 20 43 41 53 45 2d 46 | 4f 4c 44 2d 53 45 41 52 |d CASE-F|OLD-SEAR|
|00000590| 43 48 2d 50 2e 22 5d 29 | 0a 28 64 65 66 61 6c 69 |CH-P."])|.(defali|
|000005a0| 61 73 20 27 72 65 67 69 | 2d 69 6e 74 65 72 70 72 |as 'regi|-interpr|
|000005b0| 65 74 20 23 5b 28 66 72 | 61 6d 65 20 26 6f 70 74 |et #[(fr|ame &opt|
|000005c0| 69 6f 6e 61 6c 20 73 74 | 61 72 74 20 65 6e 64 29 |ional st|art end)|
|000005d0| 20 22 8a 8c c0 89 89 89 | 89 89 19 1a 1b 1c 1d 1e | "......|........|
|000005e0| 06 0e 07 83 3a 00 0e 08 | 83 3a 00 0e 07 1e 09 0e |....:...|.:......|
|000005f0| 07 0e 08 5e 89 1e 07 0e | 08 5d 89 1e 08 62 88 ca |...^....|.]...b..|
|00000600| cb 21 0e 07 62 88 ca cc | 21 7d 88 2b cd ce 0e 0f |.!..b...|!}.+....|
|00000610| 5c 22 88 d0 0e 06 21 88 | 5c 6e 13 09 84 79 00 6d |\"....!.|\n...y.m|
|00000620| 84 79 00 0b 40 89 1e 11 | 40 1e 12 0e 11 41 40 1e |.y..@...|@....A@.|
|00000630| 13 d4 0e 11 38 1e 15 d6 | 0e 11 38 1e 17 c0 1e 18 |....8...|..8.....|
|00000640| d9 da 8d 88 2e 06 d0 0c | 21 88 82 47 00 d0 0d 21 |........|!..G...!|
|00000650| 2e 08 87 22 20 5b 6e 69 | 6c 20 64 6f 6e 65 70 20 |..." [ni|l donep |
|00000660| 77 6f 72 6b 69 6e 67 2d | 66 72 61 6d 65 20 63 75 |working-|frame cu|
|00000670| 72 72 65 6e 74 2d 66 72 | 61 6d 65 20 65 76 65 72 |rrent-fr|ame ever|
|00000680| 79 2d 74 61 67 20 65 6e | 64 2d 74 61 67 20 62 65 |y-tag en|d-tag be|
|00000690| 67 69 6e 2d 74 61 67 20 | 73 74 61 72 74 20 65 6e |gin-tag |start en|
|000006a0| 64 20 74 73 74 61 72 74 | 20 72 65 67 69 2d 70 6f |d tstart| regi-po|
|000006b0| 73 20 62 6f 6e 6c 20 62 | 6f 6c 20 6d 61 70 63 61 |s bonl b|ol mapca|
|000006c0| 72 20 23 5b 28 65 6e 74 | 72 79 29 20 22 08 40 08 |r #[(ent|ry) ".@.|
|000006d0| 41 40 19 89 1a c3 3d 83 | 13 00 09 89 14 82 36 00 |A@....=.|......6.|
|000006e0| 5c 6e c5 3d 83 20 00 09 | 89 16 06 82 36 00 5c 6e |\n.=. ..|....6.\n|
|000006f0| c7 3d 83 2d 00 09 89 16 | 08 82 36 00 c9 0e 5c 6e |.=.-....|..6...\n|
|00000700| 08 43 5c 22 89 16 5c 6e | 2a 87 22 20 5b 65 6e 74 |.C\"..\n|*." [ent|
|00000710| 72 79 20 66 75 6e 63 20 | 70 72 65 64 20 62 65 67 |ry func |pred beg|
|00000720| 69 6e 20 62 65 67 69 6e | 2d 74 61 67 20 65 6e 64 |in begin|-tag end|
|00000730| 20 65 6e 64 2d 74 61 67 | 20 65 76 65 72 79 20 65 | end-tag| every e|
|00000740| 76 65 72 79 2d 74 61 67 | 20 61 70 70 65 6e 64 20 |very-tag| append |
|00000750| 77 6f 72 6b 69 6e 67 2d | 66 72 61 6d 65 5d 20 34 |working-|frame] 4|
|00000760| 5d 20 66 72 61 6d 65 20 | 65 76 61 6c 20 65 6e 74 |] frame |eval ent|
|00000770| 72 79 20 70 72 65 64 20 | 66 75 6e 63 20 32 20 6e |ry pred |func 2 n|
|00000780| 65 67 61 74 65 2d 70 20 | 33 20 63 61 73 65 2d 66 |egate-p |3 case-f|
|00000790| 6f 6c 64 2d 73 65 61 72 | 63 68 20 6d 61 74 63 68 |old-sear|ch match|
|000007a0| 2d 70 20 72 65 67 69 2d | 74 68 72 6f 77 2d 74 6f |-p regi-|throw-to|
|000007b0| 70 20 28 62 79 74 65 2d | 63 6f 64 65 20 22 08 84 |p (byte-|code "..|
|000007c0| 11 00 09 10 c2 79 88 c3 | c4 c5 5c 22 88 82 5c 22 |.....y..|..\"..\"|
|000007d0| 00 c6 0e 07 21 89 16 08 | 3b 83 5c 22 00 c9 0e 08 |....!...|;.\"....|
|000007e0| 21 16 08 0e 5c 6e 83 2c | 00 0e 08 3f 16 08 0e 08 |!...\n.,|...?....|
|000007f0| 83 85 00 cb cc 21 cb cd | 21 7b 1e 0e 08 1e 0f 0e |.....!..|!{......|
|00000800| 10 1e 11 c6 0e 12 21 1e | 13 d4 0e 13 9e 41 86 50 |......!.|.....A.P|
|00000810| 00 c2 1e 14 d5 0e 13 9e | 83 5f 00 d5 0e 13 9e 41 |........|._.....A|
|00000820| 11 d6 0e 13 3e 83 6c 00 | 08 41 10 82 72 00 0e 14 |....>.l.|.A..r...|
|00000830| 79 88 09 10 d7 0e 13 3e | 83 81 00 c5 16 18 c3 c4 |y......>|........|
|00000840| c5 5c 22 88 2d 82 88 00 | 08 41 10 c2 87 22 20 5b |.\".-...|.A..." [|
|00000850| 63 75 72 72 65 6e 74 2d | 66 72 61 6d 65 20 77 6f |current-|frame wo|
|00000860| 72 6b 69 6e 67 2d 66 72 | 61 6d 65 20 31 20 74 68 |rking-fr|ame 1 th|
|00000870| 72 6f 77 20 72 65 67 69 | 2d 74 68 72 6f 77 2d 74 |row regi|-throw-t|
|00000880| 6f 70 20 74 20 65 76 61 | 6c 20 70 72 65 64 20 6d |op t eva|l pred m|
|00000890| 61 74 63 68 2d 70 20 6c | 6f 6f 6b 69 6e 67 2d 61 |atch-p l|ooking-a|
|000008a0| 74 20 6e 65 67 61 74 65 | 2d 70 20 72 65 67 69 2d |t negate|-p regi-|
|000008b0| 70 6f 73 20 62 6f 6c 20 | 65 6f 6c 20 63 75 72 6c |pos bol |eol curl|
|000008c0| 69 6e 65 20 63 75 72 66 | 72 61 6d 65 20 65 6e 74 |ine curf|rame ent|
|000008d0| 72 79 20 63 75 72 65 6e | 74 72 79 20 66 75 6e 63 |ry curen|try func|
|000008e0| 20 72 65 73 75 6c 74 20 | 73 74 65 70 20 66 72 61 | result |step fra|
|000008f0| 6d 65 20 63 6f 6e 74 69 | 6e 75 65 20 61 62 6f 72 |me conti|nue abor|
|00000900| 74 20 64 6f 6e 65 70 5d | 20 33 29 5d 20 37 20 22 |t donep]| 3)] 7 "|
|00000910| 5c 0a 49 6e 74 65 72 70 | 72 65 74 20 74 68 65 20 |\.Interp|ret the |
|00000920| 72 65 67 69 20 66 72 61 | 6d 65 20 46 52 41 4d 45 |regi fra|me FRAME|
|00000930| 2e 0a 49 66 20 6f 70 74 | 69 6f 6e 61 6c 20 53 54 |..If opt|ional ST|
|00000940| 41 52 54 20 61 6e 64 20 | 45 4e 44 20 61 72 65 20 |ART and |END are |
|00000950| 73 75 70 70 6c 69 65 64 | 2c 20 74 68 65 79 20 69 |supplied|, they i|
|00000960| 6e 64 69 63 61 74 65 20 | 74 68 65 20 72 65 67 69 |ndicate |the regi|
|00000970| 6f 6e 20 6f 66 0a 69 6e | 74 65 72 65 73 74 2c 20 |on of.in|terest, |
|00000980| 61 6e 64 20 74 68 65 20 | 62 75 66 66 65 72 20 69 |and the |buffer i|
|00000990| 73 20 6e 61 72 72 6f 77 | 65 64 20 74 6f 20 74 68 |s narrow|ed to th|
|000009a0| 65 20 62 65 67 69 6e 6e | 69 6e 67 20 6f 66 20 74 |e beginn|ing of t|
|000009b0| 68 65 20 6c 69 6e 65 0a | 63 6f 6e 74 61 69 6e 69 |he line.|containi|
|000009c0| 6e 67 20 53 54 41 52 54 | 2c 20 61 6e 64 20 62 65 |ng START|, and be|
|000009d0| 67 69 6e 6e 69 6e 67 20 | 6f 66 20 74 68 65 20 6c |ginning |of the l|
|000009e0| 69 6e 65 20 61 66 74 65 | 72 20 74 68 65 20 6c 69 |ine afte|r the li|
|000009f0| 6e 65 20 63 6f 6e 74 61 | 69 6e 69 6e 67 0a 45 4e |ne conta|ining.EN|
|00000a00| 44 2e 20 20 4f 74 68 65 | 72 77 69 73 65 2c 20 70 |D. Othe|rwise, p|
|00000a10| 6f 69 6e 74 20 61 6e 64 | 20 6d 61 72 6b 20 61 72 |oint and| mark ar|
|00000a20| 65 20 6e 6f 74 20 73 65 | 74 20 61 6e 64 20 70 72 |e not se|t and pr|
|00000a30| 6f 63 65 73 73 69 6e 67 | 20 63 6f 6e 74 69 6e 75 |ocessing| continu|
|00000a40| 65 73 0a 75 6e 74 69 6c | 20 79 6f 75 72 20 46 55 |es.until| your FU|
|00000a50| 4e 43 20 72 65 74 75 72 | 6e 73 20 74 68 65 20 60 |NC retur|ns the `|
|00000a60| 61 62 6f 72 74 27 20 73 | 79 6d 62 6f 6c 20 28 73 |abort' s|ymbol (s|
|00000a70| 65 65 20 62 65 6c 6f 77 | 29 2e 20 20 42 65 77 61 |ee below|). Bewa|
|00000a80| 72 65 21 20 20 4e 6f 74 | 0a 73 75 70 70 6c 79 69 |re! Not|.supplyi|
|00000a90| 6e 67 20 61 20 53 54 41 | 52 54 20 6f 72 20 45 4e |ng a STA|RT or EN|
|00000aa0| 44 20 63 6f 75 6c 64 20 | 70 75 74 20 79 6f 75 20 |D could |put you |
|00000ab0| 69 6e 20 61 6e 20 69 6e | 66 69 6e 69 74 65 20 6c |in an in|finite l|
|00000ac0| 6f 6f 70 2e 0a 0a 41 20 | 72 65 67 69 20 66 72 61 |oop...A |regi fra|
|00000ad0| 6d 65 20 69 73 20 61 20 | 6c 69 73 74 20 6f 66 20 |me is a |list of |
|00000ae0| 65 6e 74 72 69 65 73 20 | 6f 66 20 74 68 65 20 66 |entries |of the f|
|00000af0| 6f 72 6d 3a 0a 0a 20 20 | 20 20 20 28 50 52 45 44 |orm:.. | (PRED|
|00000b00| 20 46 55 4e 43 20 5b 4e | 45 47 41 54 45 2d 50 20 | FUNC [N|EGATE-P |
|00000b10| 5b 43 41 53 45 2d 46 4f | 4c 44 2d 53 45 41 52 43 |[CASE-FO|LD-SEARC|
|00000b20| 48 5d 5d 29 0a 0a 50 52 | 45 44 20 69 73 20 61 20 |H]])..PR|ED is a |
|00000b30| 70 72 65 64 69 63 61 74 | 65 20 61 67 61 69 6e 73 |predicat|e agains|
|00000b40| 74 20 77 68 69 63 68 20 | 65 61 63 68 20 6c 69 6e |t which |each lin|
|00000b50| 65 20 69 6e 20 74 68 65 | 20 72 65 67 69 6f 6e 20 |e in the| region |
|00000b60| 69 73 20 74 65 73 74 65 | 64 2c 0a 61 6e 64 20 69 |is teste|d,.and i|
|00000b70| 66 20 61 20 6d 61 74 63 | 68 20 6f 63 63 75 72 73 |f a matc|h occurs|
|00000b80| 2c 20 46 55 4e 43 20 69 | 73 20 60 65 76 61 6c 27 |, FUNC i|s `eval'|
|00000b90| 64 2e 20 20 50 6f 69 6e | 74 20 69 73 20 74 68 65 |d. Poin|t is the|
|00000ba0| 6e 20 6d 6f 76 65 64 20 | 74 6f 20 74 68 65 0a 62 |n moved |to the.b|
|00000bb0| 65 67 69 6e 6e 69 6e 67 | 20 6f 66 20 74 68 65 20 |eginning| of the |
|00000bc0| 6e 65 78 74 20 6c 69 6e | 65 2c 20 74 68 65 20 66 |next lin|e, the f|
|00000bd0| 72 61 6d 65 20 69 73 20 | 72 65 73 65 74 20 61 6e |rame is |reset an|
|00000be0| 64 20 63 68 65 63 6b 69 | 6e 67 20 63 6f 6e 74 69 |d checki|ng conti|
|00000bf0| 6e 75 65 73 2e 0a 49 66 | 20 61 20 6d 61 74 63 68 |nues..If| a match|
|00000c00| 20 64 6f 65 73 6e 27 74 | 20 6f 63 63 75 72 2c 20 | doesn't| occur, |
|00000c10| 74 68 65 20 6e 65 78 74 | 20 65 6e 74 72 79 20 69 |the next| entry i|
|00000c20| 73 20 63 68 65 63 6b 65 | 64 20 61 67 61 69 6e 73 |s checke|d agains|
|00000c30| 74 20 74 68 65 0a 63 75 | 72 72 65 6e 74 20 6c 69 |t the.cu|rrent li|
|00000c40| 6e 65 20 75 6e 74 69 6c | 20 61 6c 6c 20 65 6e 74 |ne until| all ent|
|00000c50| 72 69 65 73 20 69 6e 20 | 74 68 65 20 66 72 61 6d |ries in |the fram|
|00000c60| 65 20 61 72 65 20 63 68 | 65 63 6b 65 64 2e 20 20 |e are ch|ecked. |
|00000c70| 41 74 20 74 68 69 73 0a | 70 6f 69 6e 74 2c 20 69 |At this.|point, i|
|00000c80| 66 20 6e 6f 20 6d 61 74 | 63 68 20 6f 63 63 75 72 |f no mat|ch occur|
|00000c90| 72 65 64 2c 20 74 68 65 | 20 66 72 61 6d 65 20 69 |red, the| frame i|
|00000ca0| 73 20 72 65 73 65 74 20 | 61 6e 64 20 70 6f 69 6e |s reset |and poin|
|00000cb0| 74 20 69 73 20 6d 6f 76 | 65 64 20 74 6f 0a 74 68 |t is mov|ed to.th|
|00000cc0| 65 20 6e 65 78 74 20 6c | 69 6e 65 2e 20 20 43 68 |e next l|ine. Ch|
|00000cd0| 65 63 6b 69 6e 67 20 63 | 6f 6e 74 69 6e 75 65 73 |ecking c|ontinues|
|00000ce0| 20 75 6e 74 69 6c 20 65 | 76 65 72 79 20 6c 69 6e | until e|very lin|
|00000cf0| 65 20 69 6e 20 74 68 65 | 20 72 65 67 69 6f 6e 20 |e in the| region |
|00000d00| 69 73 0a 63 68 65 63 6b | 65 64 2e 20 20 4f 70 74 |is.check|ed. Opt|
|00000d10| 69 6f 6e 61 6c 20 4e 45 | 47 41 54 45 2d 50 20 69 |ional NE|GATE-P i|
|00000d20| 6e 76 65 72 74 73 20 74 | 68 65 20 72 65 73 75 6c |nverts t|he resul|
|00000d30| 74 20 6f 66 20 50 52 45 | 44 20 62 65 66 6f 72 65 |t of PRE|D before|
|00000d40| 20 46 55 4e 43 20 69 73 | 0a 63 61 6c 6c 65 64 20 | FUNC is|.called |
|00000d50| 61 6e 64 20 60 63 61 73 | 65 2d 66 6f 6c 64 2d 73 |and `cas|e-fold-s|
|00000d60| 65 61 72 63 68 27 20 69 | 73 20 62 6f 75 6e 64 20 |earch' i|s bound |
|00000d70| 74 6f 20 74 68 65 20 6f | 70 74 69 6f 6e 61 6c 20 |to the o|ptional |
|00000d80| 76 61 6c 75 65 20 6f 66 | 0a 43 41 53 45 2d 46 4f |value of|.CASE-FO|
|00000d90| 4c 44 2d 53 45 41 52 43 | 48 20 66 6f 72 20 74 68 |LD-SEARC|H for th|
|00000da0| 65 20 50 52 45 44 20 63 | 68 65 63 6b 2e 0a 0a 50 |e PRED c|heck...P|
|00000db0| 52 45 44 20 63 61 6e 20 | 62 65 20 61 20 73 74 72 |RED can |be a str|
|00000dc0| 69 6e 67 2c 20 76 61 72 | 69 61 62 6c 65 2c 20 66 |ing, var|iable, f|
|00000dd0| 75 6e 63 74 69 6f 6e 20 | 6f 72 20 6f 6e 65 20 6f |unction |or one o|
|00000de0| 66 20 74 68 65 20 66 6f | 6c 6c 6f 77 69 6e 67 0a |f the fo|llowing.|
|00000df0| 73 79 6d 62 6f 6c 73 3a | 20 74 2c 20 6e 69 6c 2c |symbols:| t, nil,|
|00000e00| 20 60 62 65 67 69 6e 27 | 2c 20 60 65 6e 64 27 2c | `begin'|, `end',|
|00000e10| 20 61 6e 64 20 60 65 76 | 65 72 79 27 2e 20 20 49 | and `ev|ery'. I|
|00000e20| 66 20 50 52 45 44 20 69 | 73 20 61 20 73 74 72 69 |f PRED i|s a stri|
|00000e30| 6e 67 2c 20 6f 72 0a 61 | 20 76 61 72 69 61 62 6c |ng, or.a| variabl|
|00000e40| 65 20 6f 72 20 6c 69 73 | 74 20 74 68 61 74 20 65 |e or lis|t that e|
|00000e50| 76 61 6c 75 61 74 65 73 | 20 74 6f 20 61 20 73 74 |valuates| to a st|
|00000e60| 72 69 6e 67 2c 20 69 74 | 20 69 73 20 69 6e 74 65 |ring, it| is inte|
|00000e70| 72 70 72 65 74 65 64 20 | 61 73 20 61 0a 72 65 67 |rpreted |as a.reg|
|00000e80| 75 6c 61 72 20 65 78 70 | 72 65 73 73 69 6f 6e 20 |ular exp|ression |
|00000e90| 61 6e 64 20 69 73 20 6d | 61 74 63 68 65 64 20 61 |and is m|atched a|
|00000ea0| 67 61 69 6e 73 74 20 74 | 68 65 20 63 75 72 72 65 |gainst t|he curre|
|00000eb0| 6e 74 20 6c 69 6e 65 20 | 28 66 72 6f 6d 20 74 68 |nt line |(from th|
|00000ec0| 65 0a 62 65 67 69 6e 6e | 69 6e 67 29 20 75 73 69 |e.beginn|ing) usi|
|00000ed0| 6e 67 20 60 6c 6f 6f 6b | 69 6e 67 2d 61 74 27 2e |ng `look|ing-at'.|
|00000ee0| 20 20 49 66 20 50 52 45 | 44 20 64 6f 65 73 20 6e | If PRE|D does n|
|00000ef0| 6f 74 20 65 76 61 6c 75 | 61 74 65 20 74 6f 20 61 |ot evalu|ate to a|
|00000f00| 20 73 74 72 69 6e 67 2c | 0a 69 74 20 69 73 20 69 | string,|.it is i|
|00000f10| 6e 74 65 72 70 72 65 74 | 65 64 20 61 73 20 61 20 |nterpret|ed as a |
|00000f20| 62 69 6e 61 72 79 20 76 | 61 6c 75 65 20 28 6e 69 |binary v|alue (ni|
|00000f30| 6c 20 6f 72 20 6e 6f 6e | 2d 6e 69 6c 29 2e 0a 0a |l or non|-nil)...|
|00000f40| 50 52 45 44 20 63 61 6e | 20 61 6c 73 6f 20 62 65 |PRED can| also be|
|00000f50| 20 6f 6e 65 20 6f 66 20 | 74 68 65 20 66 6f 6c 6c | one of |the foll|
|00000f60| 6f 77 69 6e 67 20 73 79 | 6d 62 6f 6c 73 3a 0a 0a |owing sy|mbols:..|
|00000f70| 74 20 20 20 20 20 20 20 | 2d 2d 20 61 6c 77 61 79 |t |-- alway|
|00000f80| 73 20 70 72 6f 64 75 63 | 65 73 20 61 20 74 72 75 |s produc|es a tru|
|00000f90| 65 20 6f 75 74 63 6f 6d | 65 0a 60 62 65 67 69 6e |e outcom|e.`begin|
|00000fa0| 27 20 2d 2d 20 61 6c 77 | 61 79 73 20 65 78 65 63 |' -- alw|ays exec|
|00000fb0| 75 74 65 73 20 62 65 66 | 6f 72 65 20 61 6e 79 74 |utes bef|ore anyt|
|00000fc0| 68 69 6e 67 20 65 6c 73 | 65 0a 60 65 6e 64 27 20 |hing els|e.`end' |
|00000fd0| 20 20 2d 2d 20 61 6c 77 | 61 79 73 20 65 78 65 63 | -- alw|ays exec|
|00000fe0| 75 74 65 73 20 61 66 74 | 65 72 20 65 76 65 72 79 |utes aft|er every|
|00000ff0| 74 68 69 6e 67 20 65 6c | 73 65 0a 60 65 76 65 72 |thing el|se.`ever|
|00001000| 79 27 20 2d 2d 20 65 78 | 65 63 75 74 65 20 61 66 |y' -- ex|ecute af|
|00001010| 74 65 72 20 66 72 61 6d | 65 20 69 73 20 6d 61 74 |ter fram|e is mat|
|00001020| 63 68 65 64 20 6f 6e 20 | 61 20 6c 69 6e 65 0a 0a |ched on |a line..|
|00001030| 4e 6f 74 65 20 74 68 61 | 74 20 4e 45 47 41 54 45 |Note tha|t NEGATE|
|00001040| 2d 50 20 61 6e 64 20 43 | 41 53 45 2d 46 4f 4c 44 |-P and C|ASE-FOLD|
|00001050| 2d 53 45 41 52 43 48 20 | 61 72 65 20 6d 65 61 6e |-SEARCH |are mean|
|00001060| 69 6e 67 6c 65 73 73 20 | 69 66 20 50 52 45 44 20 |ingless |if PRED |
|00001070| 69 73 20 6f 6e 65 0a 6f | 66 20 74 68 65 73 65 20 |is one.o|f these |
|00001080| 73 70 65 63 69 61 6c 20 | 73 79 6d 62 6f 6c 73 2e |special |symbols.|
|00001090| 20 20 4f 6e 6c 79 20 74 | 68 65 20 66 69 72 73 74 | Only t|he first|
|000010a0| 20 6f 63 63 75 72 61 6e | 63 65 20 6f 66 20 65 61 | occuran|ce of ea|
|000010b0| 63 68 20 73 79 6d 62 6f | 6c 20 69 6e 0a 61 20 66 |ch symbo|l in.a f|
|000010c0| 72 61 6d 65 20 65 6e 74 | 72 79 20 69 73 20 75 73 |rame ent|ry is us|
|000010d0| 65 64 2c 20 74 68 65 20 | 72 65 73 74 20 61 72 65 |ed, the |rest are|
|000010e0| 20 69 67 6e 6f 72 65 64 | 2e 0a 0a 59 6f 75 72 20 | ignored|...Your |
|000010f0| 46 55 4e 43 20 63 61 6e | 20 72 65 74 75 72 6e 20 |FUNC can| return |
|00001100| 76 61 6c 75 65 73 20 77 | 68 69 63 68 20 63 6f 6e |values w|hich con|
|00001110| 74 72 6f 6c 20 72 65 67 | 69 20 70 72 6f 63 65 73 |trol reg|i proces|
|00001120| 73 69 6e 67 2e 20 20 49 | 66 20 61 20 6c 69 73 74 |sing. I|f a list|
|00001130| 0a 69 73 20 72 65 74 75 | 72 6e 65 64 20 66 72 6f |.is retu|rned fro|
|00001140| 6d 20 79 6f 75 72 20 66 | 75 6e 63 74 69 6f 6e 2c |m your f|unction,|
|00001150| 20 69 74 20 63 61 6e 20 | 63 6f 6e 74 61 69 6e 20 | it can |contain |
|00001160| 61 6e 79 20 63 6f 6d 62 | 69 6e 61 74 69 6f 6e 20 |any comb|ination |
|00001170| 6f 66 20 74 68 65 0a 66 | 6f 6c 6c 6f 77 69 6e 67 |of the.f|ollowing|
|00001180| 20 65 6c 65 6d 65 6e 74 | 73 3a 0a 0a 74 68 65 20 | element|s:..the |
|00001190| 73 79 6d 62 6f 6c 20 60 | 63 6f 6e 74 69 6e 75 65 |symbol `|continue|
|000011a0| 27 0a 20 20 20 20 20 54 | 65 6c 6c 73 20 72 65 67 |'. T|ells reg|
|000011b0| 69 20 74 6f 20 63 6f 6e | 74 69 6e 75 65 20 70 72 |i to con|tinue pr|
|000011c0| 6f 63 65 73 73 69 6e 67 | 20 66 72 61 6d 65 2d 65 |ocessing| frame-e|
|000011d0| 6e 74 72 69 65 73 20 61 | 66 74 65 72 20 61 20 6d |ntries a|fter a m|
|000011e0| 61 74 63 68 2c 0a 20 20 | 20 20 20 69 6e 73 74 65 |atch,. | inste|
|000011f0| 61 64 20 6f 66 20 72 65 | 73 65 74 74 69 6e 67 20 |ad of re|setting |
|00001200| 74 6f 20 74 68 65 20 66 | 69 72 73 74 20 65 6e 74 |to the f|irst ent|
|00001210| 72 79 20 61 6e 64 20 61 | 64 76 61 6e 63 69 6e 67 |ry and a|dvancing|
|00001220| 20 74 6f 20 74 68 65 20 | 6e 65 78 74 0a 20 20 20 | to the |next. |
|00001230| 20 20 6c 69 6e 65 2c 20 | 61 73 20 69 73 20 74 68 | line, |as is th|
|00001240| 65 20 64 65 66 61 75 6c | 74 20 62 65 68 61 76 69 |e defaul|t behavi|
|00001250| 6f 72 2e 20 20 57 68 65 | 6e 20 72 65 74 75 72 6e |or. Whe|n return|
|00001260| 69 6e 67 20 74 68 69 73 | 20 73 79 6d 62 6f 6c 2c |ing this| symbol,|
|00001270| 0a 20 20 20 20 20 79 6f | 75 20 6d 75 73 74 20 74 |. yo|u must t|
|00001280| 61 6b 65 20 63 61 72 65 | 20 6e 6f 74 20 74 6f 20 |ake care| not to |
|00001290| 65 6e 74 65 72 20 61 6e | 20 69 6e 66 69 6e 69 74 |enter an| infinit|
|000012a0| 65 20 6c 6f 6f 70 2e 0a | 0a 74 68 65 20 73 79 6d |e loop..|.the sym|
|000012b0| 62 6f 6c 20 60 61 62 6f | 72 74 27 0a 20 20 20 20 |bol `abo|rt'. |
|000012c0| 20 54 65 6c 6c 73 20 72 | 65 67 69 20 74 6f 20 74 | Tells r|egi to t|
|000012d0| 65 72 6d 69 6e 61 74 65 | 20 70 72 6f 63 65 73 73 |erminate| process|
|000012e0| 69 6e 67 20 74 68 69 73 | 20 66 72 61 6d 65 2e 20 |ing this| frame. |
|000012f0| 20 61 6e 79 20 65 6e 64 | 0a 20 20 20 20 20 66 72 | any end|. fr|
|00001300| 61 6d 65 2d 65 6e 74 72 | 79 20 69 73 20 73 74 69 |ame-entr|y is sti|
|00001310| 6c 6c 20 70 72 6f 63 65 | 73 73 65 64 2e 0a 0a 74 |ll proce|ssed...t|
|00001320| 68 65 20 6c 69 73 74 20 | 60 28 66 72 61 6d 65 20 |he list |`(frame |
|00001330| 2e 20 4e 45 57 46 52 41 | 4d 45 29 27 0a 20 20 20 |. NEWFRA|ME)'. |
|00001340| 20 20 54 65 6c 6c 73 20 | 72 65 67 69 20 74 6f 20 | Tells |regi to |
|00001350| 75 73 65 20 4e 45 57 46 | 52 41 4d 45 20 61 73 20 |use NEWF|RAME as |
|00001360| 69 74 73 20 63 75 72 72 | 65 6e 74 20 66 72 61 6d |its curr|ent fram|
|00001370| 65 2e 20 20 49 6e 20 6f | 74 68 65 72 20 77 6f 72 |e. In o|ther wor|
|00001380| 64 73 2c 0a 20 20 20 20 | 20 79 6f 75 72 20 46 55 |ds,. | your FU|
|00001390| 4e 43 20 63 61 6e 20 6d | 6f 64 69 66 79 20 74 68 |NC can m|odify th|
|000013a0| 65 20 65 78 65 63 75 74 | 69 6e 67 20 72 65 67 69 |e execut|ing regi|
|000013b0| 20 66 72 61 6d 65 20 6f | 6e 20 74 68 65 20 66 6c | frame o|n the fl|
|000013c0| 79 2e 0a 0a 74 68 65 20 | 6c 69 73 74 20 60 28 73 |y...the |list `(s|
|000013d0| 74 65 70 20 2e 20 53 54 | 45 50 29 27 0a 20 20 20 |tep . ST|EP)'. |
|000013e0| 20 20 54 65 6c 6c 73 20 | 72 65 67 69 20 74 6f 20 | Tells |regi to |
|000013f0| 6d 6f 76 65 20 53 54 45 | 50 20 6e 75 6d 62 65 72 |move STE|P number|
|00001400| 20 6f 66 20 6c 69 6e 65 | 73 20 66 6f 72 77 61 72 | of line|s forwar|
|00001410| 64 20 64 75 72 69 6e 67 | 20 6e 6f 72 6d 61 6c 0a |d during| normal.|
|00001420| 20 20 20 20 20 70 72 6f | 63 65 73 73 69 6e 67 2e | pro|cessing.|
|00001430| 20 20 42 79 20 64 65 66 | 61 75 6c 74 2c 20 72 65 | By def|ault, re|
|00001440| 67 69 20 6d 6f 76 65 73 | 20 66 6f 72 77 61 72 64 |gi moves| forward|
|00001450| 20 31 20 6c 69 6e 65 2e | 20 20 53 54 45 50 20 63 | 1 line.| STEP c|
|00001460| 61 6e 20 62 65 0a 20 20 | 20 20 20 6e 65 67 61 74 |an be. | negat|
|00001470| 69 76 65 2c 20 62 75 74 | 20 62 65 20 63 61 72 65 |ive, but| be care|
|00001480| 66 75 6c 20 6f 66 20 69 | 6e 66 69 6e 69 74 65 20 |ful of i|nfinite |
|00001490| 6c 6f 6f 70 73 2e 0a 0a | 59 6f 75 20 73 68 6f 75 |loops...|You shou|
|000014a0| 6c 64 20 75 73 75 61 6c | 6c 79 20 74 61 6b 65 20 |ld usual|ly take |
|000014b0| 63 61 72 65 20 74 6f 20 | 65 78 70 6c 69 63 69 74 |care to |explicit|
|000014c0| 6c 79 20 72 65 74 75 72 | 6e 20 6e 69 6c 20 66 72 |ly retur|n nil fr|
|000014d0| 6f 6d 20 79 6f 75 72 0a | 66 75 6e 63 74 69 6f 6e |om your.|function|
|000014e0| 20 69 66 20 6e 6f 20 61 | 63 74 69 6f 6e 20 69 73 | if no a|ction is|
|000014f0| 20 74 6f 20 74 61 6b 65 | 20 70 6c 61 63 65 2e 20 | to take| place. |
|00001500| 20 59 6f 75 72 20 46 55 | 4e 43 20 77 69 6c 6c 20 | Your FU|NC will |
|00001510| 61 6c 77 61 79 73 20 62 | 65 0a 60 65 76 61 6c 27 |always b|e.`eval'|
|00001520| 65 64 2e 20 20 54 68 65 | 20 66 6f 6c 6c 6f 77 69 |ed. The| followi|
|00001530| 6e 67 20 76 61 72 69 61 | 62 6c 65 73 20 77 69 6c |ng varia|bles wil|
|00001540| 6c 20 62 65 20 74 65 6d | 70 6f 72 61 72 69 6c 79 |l be tem|porarily|
|00001550| 20 62 6f 75 6e 64 20 74 | 6f 20 73 6f 6d 65 0a 75 | bound t|o some.u|
|00001560| 73 65 66 75 6c 20 69 6e | 66 6f 72 6d 61 74 69 6f |seful in|formatio|
|00001570| 6e 3a 0a 0a 60 63 75 72 | 6c 69 6e 65 27 0a 20 20 |n:..`cur|line'. |
|00001580| 20 20 20 74 68 65 20 63 | 75 72 72 65 6e 74 20 6c | the c|urrent l|
|00001590| 69 6e 65 20 69 6e 20 74 | 68 65 20 62 75 66 66 65 |ine in t|he buffe|
|000015a0| 72 2c 20 61 73 20 61 20 | 73 74 72 69 6e 67 0a 0a |r, as a |string..|
|000015b0| 60 63 75 72 66 72 61 6d | 65 27 0a 20 20 20 20 20 |`curfram|e'. |
|000015c0| 74 68 65 20 66 75 6c 6c | 2c 20 63 75 72 72 65 6e |the full|, curren|
|000015d0| 74 20 66 72 61 6d 65 20 | 62 65 69 6e 67 20 65 78 |t frame |being ex|
|000015e0| 65 63 75 74 65 64 0a 0a | 60 63 75 72 65 6e 74 72 |ecuted..|`curentr|
|000015f0| 79 27 0a 20 20 20 20 20 | 74 68 65 20 63 75 72 72 |y'. |the curr|
|00001600| 65 6e 74 20 66 72 61 6d | 65 20 65 6e 74 72 79 20 |ent fram|e entry |
|00001610| 62 65 69 6e 67 20 65 78 | 65 63 75 74 65 64 2e 22 |being ex|ecuted."|
|00001620| 5d 29 0a 28 70 72 6f 76 | 69 64 65 20 28 71 75 6f |]).(prov|ide (quo|
|00001630| 74 65 20 72 65 67 69 29 | 29 0a |te regi)|). |
+--------+-------------------------+-------------------------+--------+--------+