home *** CD-ROM | disk | FTP | other *** search
Emacs Compiled Lisp | 1991-01-10 | 5.2 KB |
view JSON data
|
view as text
|
open on a Mac
|
open on a PC
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 v18 byte-compiled Lisp data
| default
| |
99%
| file
| data
| default
| |
100%
| gt2
| Kopftext: '(defun forward-sexp ('
| default (weak)
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 0a 28 64 65 66 75 6e 20 | 66 6f 72 77 61 72 64 2d |.(defun |forward-|
|00000010| 73 65 78 70 20 28 26 6f | 70 74 69 6f 6e 61 6c 20 |sexp (&o|ptional |
|00000020| 61 72 67 29 20 22 5c 0a | 4d 6f 76 65 20 66 6f 72 |arg) "\.|Move for|
|00000030| 77 61 72 64 20 61 63 72 | 6f 73 73 20 6f 6e 65 20 |ward acr|oss one |
|00000040| 62 61 6c 61 6e 63 65 64 | 20 65 78 70 72 65 73 73 |balanced| express|
|00000050| 69 6f 6e 2e 0a 57 69 74 | 68 20 61 72 67 75 6d 65 |ion..Wit|h argume|
|00000060| 6e 74 2c 20 64 6f 20 74 | 68 69 73 20 74 68 61 74 |nt, do t|his that|
|00000070| 20 6d 61 6e 79 20 74 69 | 6d 65 73 2e 22 20 28 69 | many ti|mes." (i|
|00000080| 6e 74 65 72 61 63 74 69 | 76 65 20 22 70 22 29 20 |nteracti|ve "p") |
|00000090| 28 62 79 74 65 2d 63 6f | 64 65 20 22 c1 88 08 86 |(byte-co|de "....|
|000000a0| 09 00 c2 89 10 88 c3 60 | 08 5c 22 86 14 00 c4 08 |.......`|.\".....|
|000000b0| 21 62 88 08 c5 57 85 1e | 00 c6 20 87 22 20 5b 61 |!b...W..|.. ." [a|
|000000c0| 72 67 20 6e 69 6c 20 31 | 20 73 63 61 6e 2d 73 65 |rg nil 1| scan-se|
|000000d0| 78 70 73 20 62 75 66 66 | 65 72 2d 65 6e 64 20 30 |xps buff|er-end 0|
|000000e0| 20 62 61 63 6b 77 61 72 | 64 2d 70 72 65 66 69 78 | backwar|d-prefix|
|000000f0| 2d 63 68 61 72 73 5d 20 | 34 29 29 0a 0a 28 64 65 |-chars] |4))..(de|
|00000100| 66 75 6e 20 62 61 63 6b | 77 61 72 64 2d 73 65 78 |fun back|ward-sex|
|00000110| 70 20 28 26 6f 70 74 69 | 6f 6e 61 6c 20 61 72 67 |p (&opti|onal arg|
|00000120| 29 20 22 5c 0a 4d 6f 76 | 65 20 62 61 63 6b 77 61 |) "\.Mov|e backwa|
|00000130| 72 64 20 61 63 72 6f 73 | 73 20 6f 6e 65 20 62 61 |rd acros|s one ba|
|00000140| 6c 61 6e 63 65 64 20 65 | 78 70 72 65 73 73 69 6f |lanced e|xpressio|
|00000150| 6e 2e 0a 57 69 74 68 20 | 61 72 67 75 6d 65 6e 74 |n..With |argument|
|00000160| 2c 20 64 6f 20 74 68 69 | 73 20 74 68 61 74 20 6d |, do thi|s that m|
|00000170| 61 6e 79 20 74 69 6d 65 | 73 2e 22 20 28 69 6e 74 |any time|s." (int|
|00000180| 65 72 61 63 74 69 76 65 | 20 22 70 22 29 20 28 62 |eractive| "p") (b|
|00000190| 79 74 65 2d 63 6f 64 65 | 20 22 c1 88 08 86 09 00 |yte-code| "......|
|000001a0| c2 89 10 88 c3 08 5b 21 | 87 22 20 5b 61 72 67 20 |......[!|." [arg |
|000001b0| 6e 69 6c 20 31 20 66 6f | 72 77 61 72 64 2d 73 65 |nil 1 fo|rward-se|
|000001c0| 78 70 5d 20 32 29 29 0a | 0a 28 64 65 66 75 6e 20 |xp] 2)).|.(defun |
|000001d0| 6d 61 72 6b 2d 73 65 78 | 70 20 28 61 72 67 29 20 |mark-sex|p (arg) |
|000001e0| 22 5c 0a 53 65 74 20 6d | 61 72 6b 20 41 52 47 20 |"\.Set m|ark ARG |
|000001f0| 73 65 78 70 73 20 66 72 | 6f 6d 20 70 6f 69 6e 74 |sexps fr|om point|
|00000200| 2e 22 20 28 69 6e 74 65 | 72 61 63 74 69 76 65 20 |." (inte|ractive |
|00000210| 22 70 22 29 20 28 62 79 | 74 65 2d 63 6f 64 65 20 |"p") (by|te-code |
|00000220| 22 c1 88 c2 8a c3 08 21 | 88 60 29 21 87 22 20 5b |"......!|.`)!." [|
|00000230| 61 72 67 20 6e 69 6c 20 | 70 75 73 68 2d 6d 61 72 |arg nil |push-mar|
|00000240| 6b 20 66 6f 72 77 61 72 | 64 2d 73 65 78 70 5d 20 |k forwar|d-sexp] |
|00000250| 33 29 29 0a 0a 28 64 65 | 66 75 6e 20 66 6f 72 77 |3))..(de|fun forw|
|00000260| 61 72 64 2d 6c 69 73 74 | 20 28 26 6f 70 74 69 6f |ard-list| (&optio|
|00000270| 6e 61 6c 20 61 72 67 29 | 20 22 5c 0a 4d 6f 76 65 |nal arg)| "\.Move|
|00000280| 20 66 6f 72 77 61 72 64 | 20 61 63 72 6f 73 73 20 | forward| across |
|00000290| 6f 6e 65 20 62 61 6c 61 | 6e 63 65 64 20 67 72 6f |one bala|nced gro|
|000002a0| 75 70 20 6f 66 20 70 61 | 72 65 6e 74 68 65 73 65 |up of pa|renthese|
|000002b0| 73 2e 0a 57 69 74 68 20 | 61 72 67 75 6d 65 6e 74 |s..With |argument|
|000002c0| 2c 20 64 6f 20 74 68 69 | 73 20 74 68 61 74 20 6d |, do thi|s that m|
|000002d0| 61 6e 79 20 74 69 6d 65 | 73 2e 22 20 28 69 6e 74 |any time|s." (int|
|000002e0| 65 72 61 63 74 69 76 65 | 20 22 70 22 29 20 28 62 |eractive| "p") (b|
|000002f0| 79 74 65 2d 63 6f 64 65 | 20 22 c1 88 08 86 09 00 |yte-code| "......|
|00000300| c2 89 10 88 c3 60 08 c4 | 23 86 15 00 c5 08 21 62 |.....`..|#.....!b|
|00000310| 87 22 20 5b 61 72 67 20 | 6e 69 6c 20 31 20 73 63 |." [arg |nil 1 sc|
|00000320| 61 6e 2d 6c 69 73 74 73 | 20 30 20 62 75 66 66 65 |an-lists| 0 buffe|
|00000330| 72 2d 65 6e 64 5d 20 34 | 29 29 0a 0a 28 64 65 66 |r-end] 4|))..(def|
|00000340| 75 6e 20 62 61 63 6b 77 | 61 72 64 2d 6c 69 73 74 |un backw|ard-list|
|00000350| 20 28 26 6f 70 74 69 6f | 6e 61 6c 20 61 72 67 29 | (&optio|nal arg)|
|00000360| 20 22 5c 0a 4d 6f 76 65 | 20 62 61 63 6b 77 61 72 | "\.Move| backwar|
|00000370| 64 20 61 63 72 6f 73 73 | 20 6f 6e 65 20 62 61 6c |d across| one bal|
|00000380| 61 6e 63 65 64 20 67 72 | 6f 75 70 20 6f 66 20 70 |anced gr|oup of p|
|00000390| 61 72 65 6e 74 68 65 73 | 65 73 2e 0a 57 69 74 68 |arenthes|es..With|
|000003a0| 20 61 72 67 75 6d 65 6e | 74 2c 20 64 6f 20 74 68 | argumen|t, do th|
|000003b0| 69 73 20 74 68 61 74 20 | 6d 61 6e 79 20 74 69 6d |is that |many tim|
|000003c0| 65 73 2e 22 20 28 69 6e | 74 65 72 61 63 74 69 76 |es." (in|teractiv|
|000003d0| 65 20 22 70 22 29 20 28 | 62 79 74 65 2d 63 6f 64 |e "p") (|byte-cod|
|000003e0| 65 20 22 c1 88 08 86 09 | 00 c2 89 10 88 c3 08 5b |e ".....|.......[|
|000003f0| 21 87 22 20 5b 61 72 67 | 20 6e 69 6c 20 31 20 66 |!." [arg| nil 1 f|
|00000400| 6f 72 77 61 72 64 2d 6c | 69 73 74 5d 20 32 29 29 |orward-l|ist] 2))|
|00000410| 0a 0a 28 64 65 66 75 6e | 20 64 6f 77 6e 2d 6c 69 |..(defun| down-li|
|00000420| 73 74 20 28 61 72 67 29 | 20 22 5c 0a 4d 6f 76 65 |st (arg)| "\.Move|
|00000430| 20 66 6f 72 77 61 72 64 | 20 64 6f 77 6e 20 6f 6e | forward| down on|
|00000440| 65 20 6c 65 76 65 6c 20 | 6f 66 20 70 61 72 65 6e |e level |of paren|
|00000450| 74 68 65 73 65 73 2e 0a | 57 69 74 68 20 61 72 67 |theses..|With arg|
|00000460| 75 6d 65 6e 74 2c 20 64 | 6f 20 74 68 69 73 20 74 |ument, d|o this t|
|00000470| 68 61 74 20 6d 61 6e 79 | 20 74 69 6d 65 73 2e 0a |hat many| times..|
|00000480| 41 20 6e 65 67 61 74 69 | 76 65 20 61 72 67 75 6d |A negati|ve argum|
|00000490| 65 6e 74 20 6d 65 61 6e | 73 20 6d 6f 76 65 20 62 |ent mean|s move b|
|000004a0| 61 63 6b 77 61 72 64 20 | 62 75 74 20 73 74 69 6c |ackward |but stil|
|000004b0| 6c 20 67 6f 20 64 6f 77 | 6e 20 61 20 6c 65 76 65 |l go dow|n a leve|
|000004c0| 6c 2e 22 20 28 69 6e 74 | 65 72 61 63 74 69 76 65 |l." (int|eractive|
|000004d0| 20 22 70 22 29 20 28 62 | 79 74 65 2d 63 6f 64 65 | "p") (b|yte-code|
|000004e0| 20 22 c2 88 09 c3 56 83 | 0c 00 c4 82 0d 00 c5 18 | "....V.|........|
|000004f0| c6 09 c3 5c 22 85 2b 00 | c7 60 08 c5 23 86 20 00 |...\".+.|.`..#. .|
|00000500| c8 09 21 62 88 09 08 5a | 89 11 88 82 0e 00 29 87 |..!b...Z|......).|
|00000510| 22 20 5b 69 6e 63 20 61 | 72 67 20 6e 69 6c 20 30 |" [inc a|rg nil 0|
|00000520| 20 31 20 2d 31 20 2f 3d | 20 73 63 61 6e 2d 6c 69 | 1 -1 /=| scan-li|
|00000530| 73 74 73 20 62 75 66 66 | 65 72 2d 65 6e 64 5d 20 |sts buff|er-end] |
|00000540| 36 29 29 0a 0a 28 64 65 | 66 75 6e 20 62 61 63 6b |6))..(de|fun back|
|00000550| 77 61 72 64 2d 75 70 2d | 6c 69 73 74 20 28 61 72 |ward-up-|list (ar|
|00000560| 67 29 20 22 5c 0a 4d 6f | 76 65 20 62 61 63 6b 77 |g) "\.Mo|ve backw|
|00000570| 61 72 64 20 6f 75 74 20 | 6f 66 20 6f 6e 65 20 6c |ard out |of one l|
|00000580| 65 76 65 6c 20 6f 66 20 | 70 61 72 65 6e 74 68 65 |evel of |parenthe|
|00000590| 73 65 73 2e 0a 57 69 74 | 68 20 61 72 67 75 6d 65 |ses..Wit|h argume|
|000005a0| 6e 74 2c 20 64 6f 20 74 | 68 69 73 20 74 68 61 74 |nt, do t|his that|
|000005b0| 20 6d 61 6e 79 20 74 69 | 6d 65 73 2e 0a 41 20 6e | many ti|mes..A n|
|000005c0| 65 67 61 74 69 76 65 20 | 61 72 67 75 6d 65 6e 74 |egative |argument|
|000005d0| 20 6d 65 61 6e 73 20 6d | 6f 76 65 20 66 6f 72 77 | means m|ove forw|
|000005e0| 61 72 64 20 62 75 74 20 | 73 74 69 6c 6c 20 74 6f |ard but |still to|
|000005f0| 20 61 20 6c 65 73 73 20 | 64 65 65 70 20 73 70 6f | a less |deep spo|
|00000600| 74 2e 22 20 28 69 6e 74 | 65 72 61 63 74 69 76 65 |t." (int|eractive|
|00000610| 20 22 70 22 29 20 28 62 | 79 74 65 2d 63 6f 64 65 | "p") (b|yte-code|
|00000620| 20 22 c1 88 c2 08 5b 21 | 87 22 20 5b 61 72 67 20 | "....[!|." [arg |
|00000630| 6e 69 6c 20 75 70 2d 6c | 69 73 74 5d 20 32 29 29 |nil up-l|ist] 2))|
|00000640| 0a 0a 28 64 65 66 75 6e | 20 75 70 2d 6c 69 73 74 |..(defun| up-list|
|00000650| 20 28 61 72 67 29 20 22 | 5c 0a 4d 6f 76 65 20 66 | (arg) "|\.Move f|
|00000660| 6f 72 77 61 72 64 20 6f | 75 74 20 6f 66 20 6f 6e |orward o|ut of on|
|00000670| 65 20 6c 65 76 65 6c 20 | 6f 66 20 70 61 72 65 6e |e level |of paren|
|00000680| 74 68 65 73 65 73 2e 0a | 57 69 74 68 20 61 72 67 |theses..|With arg|
|00000690| 75 6d 65 6e 74 2c 20 64 | 6f 20 74 68 69 73 20 74 |ument, d|o this t|
|000006a0| 68 61 74 20 6d 61 6e 79 | 20 74 69 6d 65 73 2e 0a |hat many| times..|
|000006b0| 41 20 6e 65 67 61 74 69 | 76 65 20 61 72 67 75 6d |A negati|ve argum|
|000006c0| 65 6e 74 20 6d 65 61 6e | 73 20 6d 6f 76 65 20 62 |ent mean|s move b|
|000006d0| 61 63 6b 77 61 72 64 20 | 62 75 74 20 73 74 69 6c |ackward |but stil|
|000006e0| 6c 20 74 6f 20 61 20 6c | 65 73 73 20 64 65 65 70 |l to a l|ess deep|
|000006f0| 20 73 70 6f 74 2e 22 20 | 28 69 6e 74 65 72 61 63 | spot." |(interac|
|00000700| 74 69 76 65 20 22 70 22 | 29 20 28 62 79 74 65 2d |tive "p"|) (byte-|
|00000710| 63 6f 64 65 20 22 c2 88 | 09 c3 56 83 0c 00 c4 82 |code "..|..V.....|
|00000720| 0d 00 c5 18 c6 09 c3 5c | 22 85 2b 00 c7 60 08 c4 |.......\|".+..`..|
|00000730| 23 86 20 00 c8 09 21 62 | 88 09 08 5a 89 11 88 82 |#. ...!b|...Z....|
|00000740| 0e 00 29 87 22 20 5b 69 | 6e 63 20 61 72 67 20 6e |..)." [i|nc arg n|
|00000750| 69 6c 20 30 20 31 20 2d | 31 20 2f 3d 20 73 63 61 |il 0 1 -|1 /= sca|
|00000760| 6e 2d 6c 69 73 74 73 20 | 62 75 66 66 65 72 2d 65 |n-lists |buffer-e|
|00000770| 6e 64 5d 20 36 29 29 0a | 0a 28 64 65 66 75 6e 20 |nd] 6)).|.(defun |
|00000780| 6b 69 6c 6c 2d 73 65 78 | 70 20 28 61 72 67 29 20 |kill-sex|p (arg) |
|00000790| 22 5c 0a 4b 69 6c 6c 20 | 74 68 65 20 73 79 6e 74 |"\.Kill |the synt|
|000007a0| 61 63 74 69 63 20 65 78 | 70 72 65 73 73 69 6f 6e |actic ex|pression|
|000007b0| 20 66 6f 6c 6c 6f 77 69 | 6e 67 20 74 68 65 20 63 | followi|ng the c|
|000007c0| 75 72 73 6f 72 2e 0a 57 | 69 74 68 20 61 72 67 75 |ursor..W|ith argu|
|000007d0| 6d 65 6e 74 2c 20 6b 69 | 6c 6c 20 74 68 61 74 20 |ment, ki|ll that |
|000007e0| 6d 61 6e 79 20 65 78 70 | 72 65 73 73 69 6f 6e 73 |many exp|ressions|
|000007f0| 20 61 66 74 65 72 20 28 | 6f 72 20 62 65 66 6f 72 | after (|or befor|
|00000800| 65 29 20 74 68 65 20 63 | 75 72 73 6f 72 2e 22 20 |e) the c|ursor." |
|00000810| 28 69 6e 74 65 72 61 63 | 74 69 76 65 20 22 70 22 |(interac|tive "p"|
|00000820| 29 20 28 62 79 74 65 2d | 63 6f 64 65 20 22 c2 88 |) (byte-|code "..|
|00000830| 60 18 c3 09 21 88 c4 08 | 60 5c 22 29 87 22 20 5b |`...!...|`\")." [|
|00000840| 6f 70 6f 69 6e 74 20 61 | 72 67 20 6e 69 6c 20 66 |opoint a|rg nil f|
|00000850| 6f 72 77 61 72 64 2d 73 | 65 78 70 20 6b 69 6c 6c |orward-s|exp kill|
|00000860| 2d 72 65 67 69 6f 6e 5d | 20 34 29 29 0a 0a 28 64 |-region]| 4))..(d|
|00000870| 65 66 75 6e 20 62 61 63 | 6b 77 61 72 64 2d 6b 69 |efun bac|kward-ki|
|00000880| 6c 6c 2d 73 65 78 70 20 | 28 61 72 67 29 20 22 5c |ll-sexp |(arg) "\|
|00000890| 0a 4b 69 6c 6c 20 74 68 | 65 20 73 79 6e 74 61 63 |.Kill th|e syntac|
|000008a0| 74 69 63 20 65 78 70 72 | 65 73 73 69 6f 6e 20 70 |tic expr|ession p|
|000008b0| 72 65 63 65 64 69 6e 67 | 20 74 68 65 20 63 75 72 |receding| the cur|
|000008c0| 73 6f 72 2e 0a 57 69 74 | 68 20 61 72 67 75 6d 65 |sor..Wit|h argume|
|000008d0| 6e 74 2c 20 6b 69 6c 6c | 20 74 68 61 74 20 6d 61 |nt, kill| that ma|
|000008e0| 6e 79 20 65 78 70 72 65 | 73 73 69 6f 6e 73 20 62 |ny expre|ssions b|
|000008f0| 65 66 6f 72 65 20 28 6f | 72 20 61 66 74 65 72 29 |efore (o|r after)|
|00000900| 20 74 68 65 20 63 75 72 | 73 6f 72 2e 22 20 28 69 | the cur|sor." (i|
|00000910| 6e 74 65 72 61 63 74 69 | 76 65 20 22 70 22 29 20 |nteracti|ve "p") |
|00000920| 28 62 79 74 65 2d 63 6f | 64 65 20 22 c1 88 c2 08 |(byte-co|de "....|
|00000930| 5b 21 87 22 20 5b 61 72 | 67 20 6e 69 6c 20 6b 69 |[!." [ar|g nil ki|
|00000940| 6c 6c 2d 73 65 78 70 5d | 20 32 29 29 0a 0a 28 64 |ll-sexp]| 2))..(d|
|00000950| 65 66 75 6e 20 62 65 67 | 69 6e 6e 69 6e 67 2d 6f |efun beg|inning-o|
|00000960| 66 2d 64 65 66 75 6e 20 | 28 26 6f 70 74 69 6f 6e |f-defun |(&option|
|00000970| 61 6c 20 61 72 67 29 20 | 22 5c 0a 4d 6f 76 65 20 |al arg) |"\.Move |
|00000980| 62 61 63 6b 77 61 72 64 | 20 74 6f 20 6e 65 78 74 |backward| to next|
|00000990| 20 62 65 67 69 6e 6e 69 | 6e 67 2d 6f 66 2d 64 65 | beginni|ng-of-de|
|000009a0| 66 75 6e 2e 0a 57 69 74 | 68 20 61 72 67 75 6d 65 |fun..Wit|h argume|
|000009b0| 6e 74 2c 20 64 6f 20 74 | 68 69 73 20 74 68 61 74 |nt, do t|his that|
|000009c0| 20 6d 61 6e 79 20 74 69 | 6d 65 73 2e 0a 52 65 74 | many ti|mes..Ret|
|000009d0| 75 72 6e 73 20 74 20 75 | 6e 6c 65 73 73 20 73 65 |urns t u|nless se|
|000009e0| 61 72 63 68 20 73 74 6f | 70 73 20 64 75 65 20 74 |arch sto|ps due t|
|000009f0| 6f 20 65 6e 64 20 6f 66 | 20 62 75 66 66 65 72 2e |o end of| buffer.|
|00000a00| 22 20 28 69 6e 74 65 72 | 61 63 74 69 76 65 20 22 |" (inter|active "|
|00000a10| 70 22 29 20 28 62 79 74 | 65 2d 63 6f 64 65 20 22 |p") (byt|e-code "|
|00000a20| c1 88 08 85 0f 00 08 c3 | 57 85 0f 00 c4 c5 21 88 |........|W.....!.|
|00000a30| c6 c7 c1 c8 08 86 19 00 | c5 24 85 21 00 c9 20 88 |........|.$.!.. .|
|00000a40| c2 87 22 20 5b 61 72 67 | 20 6e 69 6c 20 74 20 30 |.." [arg| nil t 0|
|00000a50| 20 66 6f 72 77 61 72 64 | 2d 63 68 61 72 20 31 20 | forward|-char 1 |
|00000a60| 72 65 2d 73 65 61 72 63 | 68 2d 62 61 63 6b 77 61 |re-searc|h-backwa|
|00000a70| 72 64 20 22 5e 5c 5c 73 | 28 22 20 6d 6f 76 65 20 |rd "^\\s|(" move |
|00000a80| 62 65 67 69 6e 6e 69 6e | 67 2d 6f 66 2d 6c 69 6e |beginnin|g-of-lin|
|00000a90| 65 5d 20 36 29 29 0a 0a | 28 64 65 66 75 6e 20 62 |e] 6))..|(defun b|
|00000aa0| 75 66 66 65 72 2d 65 6e | 64 20 28 61 72 67 29 20 |uffer-en|d (arg) |
|00000ab0| 28 62 79 74 65 2d 63 6f | 64 65 20 22 08 c1 56 83 |(byte-co|de "..V.|
|00000ac0| 0a 00 64 82 0b 00 65 87 | 22 20 5b 61 72 67 20 30 |..d...e.|" [arg 0|
|00000ad0| 5d 20 32 29 29 0a 0a 28 | 64 65 66 75 6e 20 65 6e |] 2))..(|defun en|
|00000ae0| 64 2d 6f 66 2d 64 65 66 | 75 6e 20 28 26 6f 70 74 |d-of-def|un (&opt|
|00000af0| 69 6f 6e 61 6c 20 61 72 | 67 29 20 22 5c 0a 4d 6f |ional ar|g) "\.Mo|
|00000b00| 76 65 20 66 6f 72 77 61 | 72 64 20 74 6f 20 6e 65 |ve forwa|rd to ne|
|00000b10| 78 74 20 65 6e 64 20 6f | 66 20 64 65 66 75 6e 2e |xt end o|f defun.|
|00000b20| 0a 41 6e 20 65 6e 64 20 | 6f 66 20 61 20 64 65 66 |.An end |of a def|
|00000b30| 75 6e 20 69 73 20 66 6f | 75 6e 64 20 62 79 20 6d |un is fo|und by m|
|00000b40| 6f 76 69 6e 67 20 66 6f | 72 77 61 72 64 20 66 72 |oving fo|rward fr|
|00000b50| 6f 6d 20 74 68 65 20 62 | 65 67 69 6e 6e 69 6e 67 |om the b|eginning|
|00000b60| 20 6f 66 20 6f 6e 65 2e | 22 20 28 69 6e 74 65 72 | of one.|" (inter|
|00000b70| 61 63 74 69 76 65 20 22 | 70 22 29 20 28 62 79 74 |active "|p") (byt|
|00000b80| 65 2d 63 6f 64 65 20 22 | c5 88 08 3f 86 0a 00 08 |e-code "|...?....|
|00000b90| c6 55 85 10 00 c7 89 10 | 88 c2 19 08 c6 56 85 1c |.U......|.....V..|
|00000ba0| 00 60 64 57 85 6c 00 60 | c5 1c 1b 09 85 2e 00 c8 |.`dW.l.`|........|
|00000bb0| c7 21 88 c9 c7 21 83 35 | 00 c5 82 40 00 6f 86 3c |.!...!.5|...@.o.<|
|00000bc0| 00 c8 ca 21 88 c9 ca 21 | 88 c5 89 11 88 cb c7 21 |...!...!|.......!|
|00000bd0| 88 cc cd 21 88 ce cf 21 | 85 56 00 d0 c7 21 88 60 |...!...!|.V...!.`|
|00000be0| 0b 58 85 62 00 c5 88 82 | 23 00 2a 88 08 53 89 10 |.X.b....|#.*..S..|
|00000bf0| 88 82 13 00 88 08 c6 57 | 85 ad 00 60 1b c9 c7 21 |.......W|...`...!|
|00000c00| 88 d1 c7 21 88 d0 c7 21 | 88 60 0b 59 85 a3 00 c9 |...!...!|.`.Y....|
|00000c10| d2 21 83 a1 00 cb c7 21 | 88 cc cd 21 88 ce cf 21 |.!.....!|...!...!|
|00000c20| 85 9e 00 d0 c7 21 82 a3 | 00 65 62 29 88 08 54 89 |.....!..|.eb)..T.|
|00000c30| 10 88 82 6d 00 29 87 22 | 20 5b 61 72 67 20 66 69 |...m.)."| [arg fi|
|00000c40| 72 73 74 20 74 20 70 6f | 73 20 6e 70 6f 73 20 6e |rst t po|s npos n|
|00000c50| 69 6c 20 30 20 31 20 66 | 6f 72 77 61 72 64 2d 63 |il 0 1 f|orward-c|
|00000c60| 68 61 72 20 62 65 67 69 | 6e 6e 69 6e 67 2d 6f 66 |har begi|nning-of|
|00000c70| 2d 64 65 66 75 6e 20 2d | 31 20 66 6f 72 77 61 72 |-defun -|1 forwar|
|00000c80| 64 2d 6c 69 73 74 20 73 | 6b 69 70 2d 63 68 61 72 |d-list s|kip-char|
|00000c90| 73 2d 66 6f 72 77 61 72 | 64 20 22 20 09 22 20 6c |s-forwar|d " ." l|
|00000ca0| 6f 6f 6b 69 6e 67 2d 61 | 74 20 22 5b 3b 0a 5d 22 |ooking-a|t "[;.]"|
|00000cb0| 20 66 6f 72 77 61 72 64 | 2d 6c 69 6e 65 20 66 6f | forward|-line fo|
|00000cc0| 72 77 61 72 64 2d 73 65 | 78 70 20 32 5d 20 31 39 |rward-se|xp 2] 19|
|00000cd0| 29 29 0a 0a 28 64 65 66 | 75 6e 20 6d 61 72 6b 2d |))..(def|un mark-|
|00000ce0| 64 65 66 75 6e 20 6e 69 | 6c 20 22 5c 0a 50 75 74 |defun ni|l "\.Put|
|00000cf0| 20 6d 61 72 6b 20 61 74 | 20 65 6e 64 20 6f 66 20 | mark at| end of |
|00000d00| 64 65 66 75 6e 2c 20 70 | 6f 69 6e 74 20 61 74 20 |defun, p|oint at |
|00000d10| 62 65 67 69 6e 6e 69 6e | 67 2e 22 20 28 69 6e 74 |beginnin|g." (int|
|00000d20| 65 72 61 63 74 69 76 65 | 29 20 28 62 79 74 65 2d |eractive|) (byte-|
|00000d30| 63 6f 64 65 20 22 c1 88 | c2 60 21 88 c3 20 88 c2 |code "..|.`!.. ..|
|00000d40| 60 21 88 c4 20 88 c5 c6 | 60 c7 5a c0 23 87 22 20 |`!.. ...|`.Z.#." |
|00000d50| 5b 74 20 6e 69 6c 20 70 | 75 73 68 2d 6d 61 72 6b |[t nil p|ush-mark|
|00000d60| 20 65 6e 64 2d 6f 66 2d | 64 65 66 75 6e 20 62 65 | end-of-|defun be|
|00000d70| 67 69 6e 6e 69 6e 67 2d | 6f 66 2d 64 65 66 75 6e |ginning-|of-defun|
|00000d80| 20 72 65 2d 73 65 61 72 | 63 68 2d 62 61 63 6b 77 | re-sear|ch-backw|
|00000d90| 61 72 64 20 22 5e 0a 22 | 20 31 5d 20 38 29 29 0a |ard "^."| 1] 8)).|
|00000da0| 0a 28 64 65 66 75 6e 20 | 69 6e 73 65 72 74 2d 70 |.(defun |insert-p|
|00000db0| 61 72 65 6e 74 68 65 73 | 65 73 20 28 61 72 67 29 |arenthes|es (arg)|
|00000dc0| 20 22 5c 0a 50 75 74 20 | 70 61 72 65 6e 74 68 65 | "\.Put |parenthe|
|00000dd0| 73 65 73 20 61 72 6f 75 | 6e 64 20 6e 65 78 74 20 |ses arou|nd next |
|00000de0| 41 52 47 20 73 65 78 70 | 73 2e 20 20 4c 65 61 76 |ARG sexp|s. Leav|
|00000df0| 65 20 70 6f 69 6e 74 20 | 61 66 74 65 72 20 6f 70 |e point |after op|
|00000e00| 65 6e 2d 70 61 72 65 6e | 2e 0a 4e 6f 20 61 72 67 |en-paren|..No arg|
|00000e10| 75 6d 65 6e 74 20 69 73 | 20 65 71 75 69 76 61 6c |ument is| equival|
|00000e20| 65 6e 74 20 74 6f 20 7a | 65 72 6f 3a 20 6a 75 73 |ent to z|ero: jus|
|00000e30| 74 20 69 6e 73 65 72 74 | 20 28 29 20 61 6e 64 20 |t insert| () and |
|00000e40| 6c 65 61 76 65 20 70 6f | 69 6e 74 20 62 65 74 77 |leave po|int betw|
|00000e50| 65 65 6e 2e 22 20 28 69 | 6e 74 65 72 61 63 74 69 |een." (i|nteracti|
|00000e60| 76 65 20 22 50 22 29 20 | 28 62 79 74 65 2d 63 6f |ve "P") |(byte-co|
|00000e70| 64 65 20 22 c1 88 c2 63 | 88 8a 08 85 0f 00 c3 c4 |de "...c|........|
|00000e80| 08 21 21 88 c5 63 29 87 | 22 20 5b 61 72 67 20 6e |.!!..c).|" [arg n|
|00000e90| 69 6c 20 34 30 20 66 6f | 72 77 61 72 64 2d 73 65 |il 40 fo|rward-se|
|00000ea0| 78 70 20 70 72 65 66 69 | 78 2d 6e 75 6d 65 72 69 |xp prefi|x-numeri|
|00000eb0| 63 2d 76 61 6c 75 65 20 | 34 31 5d 20 33 29 29 0a |c-value |41] 3)).|
|00000ec0| 0a 28 64 65 66 75 6e 20 | 6d 6f 76 65 2d 70 61 73 |.(defun |move-pas|
|00000ed0| 74 2d 63 6c 6f 73 65 2d | 61 6e 64 2d 72 65 69 6e |t-close-|and-rein|
|00000ee0| 64 65 6e 74 20 6e 69 6c | 20 22 5c 0a 4d 6f 76 65 |dent nil| "\.Move|
|00000ef0| 20 70 61 73 74 20 6e 65 | 78 74 20 29 2c 20 64 65 | past ne|xt ), de|
|00000f00| 6c 65 74 65 20 69 6e 64 | 65 6e 74 61 74 69 6f 6e |lete ind|entation|
|00000f10| 20 62 65 66 6f 72 65 20 | 69 74 2c 20 74 68 65 6e | before |it, then|
|00000f20| 20 69 6e 64 65 6e 74 20 | 61 66 74 65 72 20 69 74 | indent |after it|
|00000f30| 2e 22 20 28 69 6e 74 65 | 72 61 63 74 69 76 65 29 |." (inte|ractive)|
|00000f40| 20 28 62 79 74 65 2d 63 | 6f 64 65 20 22 c1 88 c2 | (byte-c|ode "...|
|00000f50| c3 21 88 c4 c5 21 88 8a | 60 18 c6 20 88 60 08 55 |.!...!..|`.. .`.U|
|00000f60| 29 29 85 1e 00 c7 20 88 | 82 0a 00 88 c4 c3 21 88 |)).... .|......!.|
|00000f70| c8 20 87 22 20 5b 62 65 | 66 6f 72 65 2d 70 61 72 |. ." [be|fore-par|
|00000f80| 65 6e 20 6e 69 6c 20 75 | 70 2d 6c 69 73 74 20 31 |en nil u|p-list 1|
|00000f90| 20 66 6f 72 77 61 72 64 | 2d 63 68 61 72 20 2d 31 | forward|-char -1|
|00000fa0| 20 62 61 63 6b 2d 74 6f | 2d 69 6e 64 65 6e 74 61 | back-to|-indenta|
|00000fb0| 74 69 6f 6e 20 64 65 6c | 65 74 65 2d 69 6e 64 65 |tion del|ete-inde|
|00000fc0| 6e 74 61 74 69 6f 6e 20 | 6e 65 77 6c 69 6e 65 2d |ntation |newline-|
|00000fd0| 61 6e 64 2d 69 6e 64 65 | 6e 74 5d 20 37 29 29 0a |and-inde|nt] 7)).|
|00000fe0| 0a 28 64 65 66 75 6e 20 | 6c 69 73 70 2d 63 6f 6d |.(defun |lisp-com|
|00000ff0| 70 6c 65 74 65 2d 73 79 | 6d 62 6f 6c 20 6e 69 6c |plete-sy|mbol nil|
|00001000| 20 22 5c 0a 50 65 72 66 | 6f 72 6d 20 63 6f 6d 70 | "\.Perf|orm comp|
|00001010| 6c 65 74 69 6f 6e 20 6f | 6e 20 4c 69 73 70 20 73 |letion o|n Lisp s|
|00001020| 79 6d 62 6f 6c 20 70 72 | 65 63 65 64 69 6e 67 20 |ymbol pr|eceding |
|00001030| 70 6f 69 6e 74 2e 0a 54 | 68 61 74 20 73 79 6d 62 |point..T|hat symb|
|00001040| 6f 6c 20 69 73 20 63 6f | 6d 70 61 72 65 64 20 61 |ol is co|mpared a|
|00001050| 67 61 69 6e 73 74 20 74 | 68 65 20 73 79 6d 62 6f |gainst t|he symbo|
|00001060| 6c 73 20 74 68 61 74 20 | 65 78 69 73 74 0a 61 6e |ls that |exist.an|
|00001070| 64 20 61 6e 79 20 61 64 | 64 69 74 69 6f 6e 61 6c |d any ad|ditional|
|00001080| 20 63 68 61 72 61 63 74 | 65 72 73 20 64 65 74 65 | charact|ers dete|
|00001090| 72 6d 69 6e 65 64 20 62 | 79 20 77 68 61 74 20 69 |rmined b|y what i|
|000010a0| 73 20 74 68 65 72 65 0a | 61 72 65 20 69 6e 73 65 |s there.|are inse|
|000010b0| 72 74 65 64 2e 0a 49 66 | 20 74 68 65 20 73 79 6d |rted..If| the sym|
|000010c0| 62 6f 6c 20 73 74 61 72 | 74 73 20 6a 75 73 74 20 |bol star|ts just |
|000010d0| 61 66 74 65 72 20 61 6e | 20 6f 70 65 6e 2d 70 61 |after an| open-pa|
|000010e0| 72 65 6e 74 68 65 73 69 | 73 2c 0a 6f 6e 6c 79 20 |renthesi|s,.only |
|000010f0| 73 79 6d 62 6f 6c 73 20 | 77 69 74 68 20 66 75 6e |symbols |with fun|
|00001100| 63 74 69 6f 6e 20 64 65 | 66 69 6e 69 74 69 6f 6e |ction de|finition|
|00001110| 73 20 61 72 65 20 63 6f | 6e 73 69 64 65 72 65 64 |s are co|nsidered|
|00001120| 2e 0a 4f 74 68 65 72 77 | 69 73 65 2c 20 61 6c 6c |..Otherw|ise, all|
|00001130| 20 73 79 6d 62 6f 6c 73 | 20 77 69 74 68 20 66 75 | symbols| with fu|
|00001140| 6e 63 74 69 6f 6e 20 64 | 65 66 69 6e 69 74 69 6f |nction d|efinitio|
|00001150| 6e 73 2c 20 76 61 6c 75 | 65 73 0a 6f 72 20 70 72 |ns, valu|es.or pr|
|00001160| 6f 70 65 72 74 69 65 73 | 20 61 72 65 20 63 6f 6e |operties| are con|
|00001170| 73 69 64 65 72 65 64 2e | 22 20 28 69 6e 74 65 72 |sidered.|" (inter|
|00001180| 61 63 74 69 76 65 29 20 | 28 62 79 74 65 2d 63 6f |active) |(byte-co|
|00001190| 64 65 20 22 cb 88 60 18 | cc 20 19 cd 8e 8a ce 0b |de "..`.|. ......|
|000011a0| 21 88 cf d0 21 88 d1 67 | 21 d2 55 85 21 00 d3 d0 |!...!..g|!.U.!...|
|000011b0| 21 88 82 12 00 88 60 29 | 29 1a d4 0a 08 5c 22 1c |!.....`)|)....\".|
|000011c0| 0a 53 66 d5 3d 83 37 00 | d6 82 38 00 d7 1d d8 0c |.Sf.=.7.|..8.....|
|000011d0| 0e 07 0d 23 1e 06 0e 06 | c8 3d 86 c3 00 0e 06 3f |...#....|.=.....?|
|000011e0| 83 58 00 d9 da 0c 5c 22 | 88 db 20 82 c3 00 dc 0c |.X....\"|.. .....|
|000011f0| 0e 06 5c 22 3f 83 6c 00 | dd 0a 08 5c 22 88 0e 06 |..\"?.l.|...\"...|
|00001200| 63 82 c3 00 d9 de 21 88 | df 0c 0e 07 0d 23 1e 09 |c.....!.|.....#..|
|00001210| 0d d6 3d 86 b5 00 cb 1e | 0a 0e 09 85 ac 00 d6 e0 |..=.....|........|
|00001220| 0e 09 40 21 21 83 98 00 | 0e 09 40 e1 44 82 9b 00 |..@!!...|..@.D...|
|00001230| 0e 09 40 0e 0a 42 89 16 | 0a 88 0e 09 41 89 16 09 |..@..B..|....A...|
|00001240| 88 82 81 00 88 e2 0e 0a | 21 89 16 09 29 88 e3 90 |........|!...)...|
|00001250| e4 0e 09 21 91 29 88 d9 | e5 e6 5c 22 2e 06 87 22 |...!.)..|..\"..."|
|00001260| 20 5b 65 6e 64 20 62 75 | 66 66 65 72 2d 73 79 6e | [end bu|ffer-syn|
|00001270| 74 61 78 20 62 65 67 20 | 65 6d 61 63 73 2d 6c 69 |tax beg |emacs-li|
|00001280| 73 70 2d 6d 6f 64 65 2d | 73 79 6e 74 61 78 2d 74 |sp-mode-|syntax-t|
|00001290| 61 62 6c 65 20 70 61 74 | 74 65 72 6e 20 70 72 65 |able pat|tern pre|
|000012a0| 64 69 63 61 74 65 20 63 | 6f 6d 70 6c 65 74 69 6f |dicate c|ompletio|
|000012b0| 6e 20 6f 62 61 72 72 61 | 79 20 74 20 6c 69 73 74 |n obarra|y t list|
|000012c0| 20 6e 65 77 20 6e 69 6c | 20 73 79 6e 74 61 78 2d | new nil| syntax-|
|000012d0| 74 61 62 6c 65 20 28 28 | 62 79 74 65 2d 63 6f 64 |table ((|byte-cod|
|000012e0| 65 20 22 c1 08 21 87 22 | 20 5b 62 75 66 66 65 72 |e "..!."| [buffer|
|000012f0| 2d 73 79 6e 74 61 78 20 | 73 65 74 2d 73 79 6e 74 |-syntax |set-synt|
|00001300| 61 78 2d 74 61 62 6c 65 | 5d 20 32 29 29 20 73 65 |ax-table|] 2)) se|
|00001310| 74 2d 73 79 6e 74 61 78 | 2d 74 61 62 6c 65 20 62 |t-syntax|-table b|
|00001320| 61 63 6b 77 61 72 64 2d | 73 65 78 70 20 31 20 63 |ackward-|sexp 1 c|
|00001330| 68 61 72 2d 73 79 6e 74 | 61 78 20 33 39 20 66 6f |har-synt|ax 39 fo|
|00001340| 72 77 61 72 64 2d 63 68 | 61 72 20 62 75 66 66 65 |rward-ch|ar buffe|
|00001350| 72 2d 73 75 62 73 74 72 | 69 6e 67 20 34 30 20 66 |r-substr|ing 40 f|
|00001360| 62 6f 75 6e 64 70 20 28 | 6c 61 6d 62 64 61 20 28 |boundp (|lambda (|
|00001370| 73 79 6d 29 20 28 62 79 | 74 65 2d 63 6f 64 65 20 |sym) (by|te-code |
|00001380| 22 c1 08 21 86 0f 00 c2 | 08 21 86 0f 00 c3 08 21 |"..!....|.!.....!|
|00001390| 87 22 20 5b 73 79 6d 20 | 62 6f 75 6e 64 70 20 66 |." [sym |boundp f|
|000013a0| 62 6f 75 6e 64 70 20 73 | 79 6d 62 6f 6c 2d 70 6c |boundp s|ymbol-pl|
|000013b0| 69 73 74 5d 20 34 29 29 | 20 74 72 79 2d 63 6f 6d |ist] 4))| try-com|
|000013c0| 70 6c 65 74 69 6f 6e 20 | 6d 65 73 73 61 67 65 20 |pletion |message |
|000013d0| 22 43 61 6e 27 74 20 66 | 69 6e 64 20 63 6f 6d 70 |"Can't f|ind comp|
|000013e0| 6c 65 74 69 6f 6e 20 66 | 6f 72 20 5c 22 25 73 5c |letion f|or \"%s\|
|000013f0| 22 22 20 64 69 6e 67 20 | 73 74 72 69 6e 67 3d 20 |"" ding |string= |
|00001400| 64 65 6c 65 74 65 2d 72 | 65 67 69 6f 6e 20 22 4d |delete-r|egion "M|
|00001410| 61 6b 69 6e 67 20 63 6f | 6d 70 6c 65 74 69 6f 6e |aking co|mpletion|
|00001420| 20 6c 69 73 74 2e 2e 2e | 22 20 61 6c 6c 2d 63 6f | list...|" all-co|
|00001430| 6d 70 6c 65 74 69 6f 6e | 73 20 69 6e 74 65 72 6e |mpletion|s intern|
|00001440| 20 22 20 3c 66 3e 22 20 | 6e 72 65 76 65 72 73 65 | " <f>" |nreverse|
|00001450| 20 22 20 2a 43 6f 6d 70 | 6c 65 74 69 6f 6e 73 2a | " *Comp|letions*|
|00001460| 22 20 64 69 73 70 6c 61 | 79 2d 63 6f 6d 70 6c 65 |" displa|y-comple|
|00001470| 74 69 6f 6e 2d 6c 69 73 | 74 20 22 4d 61 6b 69 6e |tion-lis|t "Makin|
|00001480| 67 20 63 6f 6d 70 6c 65 | 74 69 6f 6e 20 6c 69 73 |g comple|tion lis|
|00001490| 74 2e 2e 2e 25 73 22 20 | 22 64 6f 6e 65 22 5d 20 |t...%s" |"done"] |
|000014a0| 32 30 29 29 0a | |20)). | |
+--------+-------------------------+-------------------------+--------+--------+