home *** CD-ROM | disk | FTP | other *** search
Emacs Compiled Lisp | 1998-05-21 | 64.0 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 v20 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 14 00 00 00 | 0a 3b 3b 3b 20 63 6f 6d |;ELC....|.;;; com|
|00000010| 70 69 6c 65 64 20 62 79 | 20 6a 75 73 74 69 6e 62 |piled by| justinb|
|00000020| 40 65 62 6f 6e 79 2e 63 | 72 61 79 2e 63 6f 6d 20 |@ebony.c|ray.com |
|00000030| 6f 6e 20 4d 6f 6e 20 4d | 61 72 20 20 39 20 31 32 |on Mon M|ar 9 12|
|00000040| 3a 35 31 3a 31 39 20 31 | 39 39 38 0a 3b 3b 3b 20 |:51:19 1|998.;;; |
|00000050| 66 72 6f 6d 20 66 69 6c | 65 20 2f 68 6f 6d 65 2f |from fil|e /home/|
|00000060| 61 73 70 65 6e 30 37 2f | 6a 75 73 74 69 6e 62 2f |aspen07/|justinb/|
|00000070| 72 6f 6f 74 73 2f 66 72 | 65 65 77 61 72 65 2f 78 |roots/fr|eeware/x|
|00000080| 65 6d 61 63 73 2f 32 30 | 2e 33 2f 78 65 6d 61 63 |emacs/20|.3/xemac|
|00000090| 73 2d 32 30 2e 33 2f 6c | 69 73 70 2f 6d 6f 64 65 |s-20.3/l|isp/mode|
|000000a0| 73 2f 70 79 74 68 6f 6e | 2d 6d 6f 64 65 2e 65 6c |s/python|-mode.el|
|000000b0| 0a 3b 3b 3b 20 65 6d 61 | 63 73 20 76 65 72 73 69 |.;;; ema|cs versi|
|000000c0| 6f 6e 20 32 30 2e 34 20 | 22 45 6d 65 72 61 6c 64 |on 20.4 |"Emerald|
|000000d0| 22 20 58 45 6d 61 63 73 | 20 20 4c 75 63 69 64 2e |" XEmacs| Lucid.|
|000000e0| 0a 3b 3b 3b 20 62 79 74 | 65 63 6f 6d 70 20 76 65 |.;;; byt|ecomp ve|
|000000f0| 72 73 69 6f 6e 20 32 2e | 32 35 20 58 45 6d 61 63 |rsion 2.|25 XEmac|
|00000100| 73 3b 20 32 32 2d 4d 61 | 72 2d 39 36 2e 0a 3b 3b |s; 22-Ma|r-96..;;|
|00000110| 3b 20 6f 70 74 69 6d 69 | 7a 61 74 69 6f 6e 20 69 |; optimi|zation i|
|00000120| 73 20 6f 6e 2e 0a 3b 3b | 3b 20 74 68 69 73 20 66 |s on..;;|; this f|
|00000130| 69 6c 65 20 75 73 65 73 | 20 6f 70 63 6f 64 65 73 |ile uses| opcodes|
|00000140| 20 77 68 69 63 68 20 64 | 6f 20 6e 6f 74 20 65 78 | which d|o not ex|
|00000150| 69 73 74 20 69 6e 20 45 | 6d 61 63 73 20 31 39 2e |ist in E|macs 19.|
|00000160| 0a 0a 28 69 66 20 28 61 | 6e 64 20 28 62 6f 75 6e |..(if (a|nd (boun|
|00000170| 64 70 20 27 65 6d 61 63 | 73 2d 76 65 72 73 69 6f |dp 'emac|s-versio|
|00000180| 6e 29 0a 09 20 28 6f 72 | 20 28 61 6e 64 20 28 62 |n).. (or| (and (b|
|00000190| 6f 75 6e 64 70 20 27 65 | 70 6f 63 68 3a 3a 76 65 |oundp 'e|poch::ve|
|000001a0| 72 73 69 6f 6e 29 20 65 | 70 6f 63 68 3a 3a 76 65 |rsion) e|poch::ve|
|000001b0| 72 73 69 6f 6e 29 0a 09 | 20 20 20 20 20 28 73 74 |rsion)..| (st|
|000001c0| 72 69 6e 67 2d 6c 65 73 | 73 70 20 65 6d 61 63 73 |ring-les|sp emacs|
|000001d0| 2d 76 65 72 73 69 6f 6e | 20 22 32 30 22 29 29 29 |-version| "20")))|
|000001e0| 0a 20 20 20 20 28 65 72 | 72 6f 72 20 22 60 70 79 |. (er|ror "`py|
|000001f0| 74 68 6f 6e 2d 6d 6f 64 | 65 2e 65 6c 27 20 77 61 |thon-mod|e.el' wa|
|00000200| 73 20 63 6f 6d 70 69 6c | 65 64 20 66 6f 72 20 45 |s compil|ed for E|
|00000210| 6d 61 63 73 20 32 30 22 | 29 29 0a 0a 28 6f 72 20 |macs 20"|))..(or |
|00000220| 28 62 6f 75 6e 64 70 20 | 27 63 75 72 72 65 6e 74 |(boundp |'current|
|00000230| 2d 6c 6f 61 64 2d 6c 69 | 73 74 29 20 28 73 65 74 |-load-li|st) (set|
|00000240| 71 20 63 75 72 72 65 6e | 74 2d 6c 6f 61 64 2d 6c |q curren|t-load-l|
|00000250| 69 73 74 20 6e 69 6c 29 | 29 0a 0a 0a 23 40 33 31 |ist nil)|)...#@31|
|00000260| 20 60 70 79 74 68 6f 6e | 2d 6d 6f 64 65 27 20 76 | `python|-mode' v|
|00000270| 65 72 73 69 6f 6e 20 6e | 75 6d 62 65 72 2e 1f 0a |ersion n|umber...|
|00000280| 28 64 65 66 63 6f 6e 73 | 74 20 70 79 2d 76 65 72 |(defcons|t py-ver|
|00000290| 73 69 6f 6e 20 22 33 2e | 32 38 22 20 28 23 24 20 |sion "3.|28" (#$ |
|000002a0| 2e 20 36 30 39 29 29 0a | 28 62 79 74 65 2d 63 6f |. 609)).|(byte-co|
|000002b0| 64 65 20 22 c0 c1 21 88 | c2 c3 c4 c5 c6 c7 25 87 |de "..!.|......%.|
|000002c0| 22 20 5b 72 65 71 75 69 | 72 65 20 63 75 73 74 6f |" [requi|re custo|
|000002d0| 6d 20 63 75 73 74 6f 6d | 2d 64 65 63 6c 61 72 65 |m custom|-declare|
|000002e0| 2d 67 72 6f 75 70 20 70 | 79 74 68 6f 6e 20 6e 69 |-group p|ython ni|
|000002f0| 6c 20 22 53 75 70 70 6f | 72 74 20 66 6f 72 20 74 |l "Suppo|rt for t|
|00000300| 68 65 20 50 79 74 68 6f | 6e 20 70 72 6f 67 72 61 |he Pytho|n progra|
|00000310| 6d 6d 69 6e 67 20 6c 61 | 6e 67 75 61 67 65 2c 20 |mming la|nguage, |
|00000320| 3c 68 74 74 70 3a 2f 2f | 77 77 77 2e 70 79 74 68 |<http://|www.pyth|
|00000330| 6f 6e 2e 6f 72 67 2f 3e | 22 20 3a 67 72 6f 75 70 |on.org/>|" :group|
|00000340| 20 6c 61 6e 67 75 61 67 | 65 73 5d 20 36 29 0a 28 | languag|es] 6).(|
|00000350| 63 75 73 74 6f 6d 2d 64 | 65 63 6c 61 72 65 2d 76 |custom-d|eclare-v|
|00000360| 61 72 69 61 62 6c 65 20 | 27 70 79 2d 70 79 74 68 |ariable |'py-pyth|
|00000370| 6f 6e 2d 63 6f 6d 6d 61 | 6e 64 20 27 22 70 79 74 |on-comma|nd '"pyt|
|00000380| 68 6f 6e 22 20 22 2a 53 | 68 65 6c 6c 20 63 6f 6d |hon" "*S|hell com|
|00000390| 6d 61 6e 64 20 75 73 65 | 64 20 74 6f 20 73 74 61 |mand use|d to sta|
|000003a0| 72 74 20 50 79 74 68 6f | 6e 20 69 6e 74 65 72 70 |rt Pytho|n interp|
|000003b0| 72 65 74 65 72 2e 22 20 | 3a 74 79 70 65 20 27 73 |reter." |:type 's|
|000003c0| 74 72 69 6e 67 20 3a 67 | 72 6f 75 70 20 27 70 79 |tring :g|roup 'py|
|000003d0| 74 68 6f 6e 29 0a 28 63 | 75 73 74 6f 6d 2d 64 65 |thon).(c|ustom-de|
|000003e0| 63 6c 61 72 65 2d 76 61 | 72 69 61 62 6c 65 20 27 |clare-va|riable '|
|000003f0| 70 79 2d 69 6e 64 65 6e | 74 2d 6f 66 66 73 65 74 |py-inden|t-offset|
|00000400| 20 27 34 20 22 2a 41 6d | 6f 75 6e 74 20 6f 66 20 | '4 "*Am|ount of |
|00000410| 6f 66 66 73 65 74 20 70 | 65 72 20 6c 65 76 65 6c |offset p|er level|
|00000420| 20 6f 66 20 69 6e 64 65 | 6e 74 61 74 69 6f 6e 5c | of inde|ntation\|
|00000430| 6e 4e 6f 74 65 20 74 68 | 61 74 20 60 5c 5c 5b 70 |nNote th|at `\\[p|
|00000440| 79 2d 67 75 65 73 73 2d | 69 6e 64 65 6e 74 2d 6f |y-guess-|indent-o|
|00000450| 66 66 73 65 74 5d 27 20 | 63 61 6e 20 75 73 75 61 |ffset]' |can usua|
|00000460| 6c 6c 79 20 67 75 65 73 | 73 20 61 20 67 6f 6f 64 |lly gues|s a good|
|00000470| 20 76 61 6c 75 65 5c 6e | 77 68 65 6e 20 79 6f 75 | value\n|when you|
|00000480| 27 72 65 20 65 64 69 74 | 69 6e 67 20 73 6f 6d 65 |'re edit|ing some|
|00000490| 6f 6e 65 20 65 6c 73 65 | 27 73 20 50 79 74 68 6f |one else|'s Pytho|
|000004a0| 6e 20 63 6f 64 65 2e 22 | 20 3a 74 79 70 65 20 27 |n code."| :type '|
|000004b0| 69 6e 74 65 67 65 72 20 | 3a 67 72 6f 75 70 20 27 |integer |:group '|
|000004c0| 70 79 74 68 6f 6e 29 0a | 28 63 75 73 74 6f 6d 2d |python).|(custom-|
|000004d0| 64 65 63 6c 61 72 65 2d | 76 61 72 69 61 62 6c 65 |declare-|variable|
|000004e0| 20 27 70 79 2d 61 6c 69 | 67 6e 2d 6d 75 6c 74 69 | 'py-ali|gn-multi|
|000004f0| 6c 69 6e 65 2d 73 74 72 | 69 6e 67 73 2d 70 20 27 |line-str|ings-p '|
|00000500| 74 20 22 2a 46 6c 61 67 | 20 64 65 73 63 72 69 62 |t "*Flag| describ|
|00000510| 69 6e 67 20 68 6f 77 20 | 6d 75 6c 74 69 2d 6c 69 |ing how |multi-li|
|00000520| 6e 65 20 74 72 69 70 6c | 65 20 71 75 6f 74 65 64 |ne tripl|e quoted|
|00000530| 20 73 74 72 69 6e 67 73 | 20 61 72 65 20 61 6c 69 | strings| are ali|
|00000540| 67 6e 65 64 2e 5c 6e 57 | 68 65 6e 20 74 68 69 73 |gned.\nW|hen this|
|00000550| 20 66 6c 61 67 20 69 73 | 20 6e 6f 6e 2d 6e 69 6c | flag is| non-nil|
|00000560| 2c 20 63 6f 6e 74 69 6e | 75 61 74 69 6f 6e 20 6c |, contin|uation l|
|00000570| 69 6e 65 73 20 61 72 65 | 20 6c 69 6e 65 64 20 75 |ines are| lined u|
|00000580| 70 20 75 6e 64 65 72 20 | 74 68 65 5c 6e 70 72 65 |p under |the\npre|
|00000590| 63 65 64 69 6e 67 20 6c | 69 6e 65 27 73 20 69 6e |ceding l|ine's in|
|000005a0| 64 65 6e 74 61 74 69 6f | 6e 2e 20 20 57 68 65 6e |dentatio|n. When|
|000005b0| 20 74 68 69 73 20 66 6c | 61 67 20 69 73 20 6e 69 | this fl|ag is ni|
|000005c0| 6c 2c 20 63 6f 6e 74 69 | 6e 75 61 74 69 6f 6e 5c |l, conti|nuation\|
|000005d0| 6e 6c 69 6e 65 73 20 61 | 72 65 20 61 6c 69 67 6e |nlines a|re align|
|000005e0| 65 64 20 74 6f 20 63 6f | 6c 75 6d 6e 20 7a 65 72 |ed to co|lumn zer|
|000005f0| 6f 2e 22 20 3a 74 79 70 | 65 20 27 28 63 68 6f 69 |o." :typ|e '(choi|
|00000600| 63 65 20 28 63 6f 6e 73 | 74 20 3a 74 61 67 20 22 |ce (cons|t :tag "|
|00000610| 41 6c 69 67 6e 20 75 6e | 64 65 72 20 70 72 65 63 |Align un|der prec|
|00000620| 65 64 69 6e 67 20 6c 69 | 6e 65 22 20 74 29 20 28 |eding li|ne" t) (|
|00000630| 63 6f 6e 73 74 20 3a 74 | 61 67 20 22 41 6c 69 67 |const :t|ag "Alig|
|00000640| 6e 20 74 6f 20 63 6f 6c | 75 6d 6e 20 7a 65 72 6f |n to col|umn zero|
|00000650| 22 20 6e 69 6c 29 29 20 | 3a 67 72 6f 75 70 20 27 |" nil)) |:group '|
|00000660| 70 79 74 68 6f 6e 29 0a | 28 63 75 73 74 6f 6d 2d |python).|(custom-|
|00000670| 64 65 63 6c 61 72 65 2d | 76 61 72 69 61 62 6c 65 |declare-|variable|
|00000680| 20 27 70 79 2d 62 6c 6f | 63 6b 2d 63 6f 6d 6d 65 | 'py-blo|ck-comme|
|00000690| 6e 74 2d 70 72 65 66 69 | 78 20 27 22 23 23 20 22 |nt-prefi|x '"## "|
|000006a0| 20 22 2a 53 74 72 69 6e | 67 20 75 73 65 64 20 62 | "*Strin|g used b|
|000006b0| 79 20 5c 5c 5b 63 6f 6d | 6d 65 6e 74 2d 72 65 67 |y \\[com|ment-reg|
|000006c0| 69 6f 6e 5d 20 74 6f 20 | 63 6f 6d 6d 65 6e 74 20 |ion] to |comment |
|000006d0| 6f 75 74 20 61 20 62 6c | 6f 63 6b 20 6f 66 20 63 |out a bl|ock of c|
|000006e0| 6f 64 65 2e 5c 6e 54 68 | 69 73 20 73 68 6f 75 6c |ode.\nTh|is shoul|
|000006f0| 64 20 66 6f 6c 6c 6f 77 | 20 74 68 65 20 63 6f 6e |d follow| the con|
|00000700| 76 65 6e 74 69 6f 6e 20 | 66 6f 72 20 6e 6f 6e 2d |vention |for non-|
|00000710| 69 6e 64 65 6e 74 69 6e | 67 20 63 6f 6d 6d 65 6e |indentin|g commen|
|00000720| 74 20 6c 69 6e 65 73 20 | 73 6f 5c 6e 74 68 61 74 |t lines |so\nthat|
|00000730| 20 74 68 65 20 69 6e 64 | 65 6e 74 61 74 69 6f 6e | the ind|entation|
|00000740| 20 63 6f 6d 6d 61 6e 64 | 73 20 77 6f 6e 27 74 20 | command|s won't |
|00000750| 67 65 74 20 63 6f 6e 66 | 75 73 65 64 20 28 69 2e |get conf|used (i.|
|00000760| 65 2e 2c 20 74 68 65 20 | 73 74 72 69 6e 67 5c 6e |e., the |string\n|
|00000770| 73 68 6f 75 6c 64 20 62 | 65 20 6f 66 20 74 68 65 |should b|e of the|
|00000780| 20 66 6f 72 6d 20 60 23 | 78 2e 2e 2e 27 20 77 68 | form `#|x...' wh|
|00000790| 65 72 65 20 60 78 27 20 | 69 73 20 6e 6f 74 20 61 |ere `x' |is not a|
|000007a0| 20 62 6c 61 6e 6b 20 6f | 72 20 61 20 74 61 62 2c | blank o|r a tab,|
|000007b0| 20 61 6e 64 5c 6e 60 2e | 2e 2e 27 20 69 73 20 61 | and\n`.|..' is a|
|000007c0| 72 62 69 74 72 61 72 79 | 29 2e 22 20 3a 74 79 70 |rbitrary|)." :typ|
|000007d0| 65 20 27 73 74 72 69 6e | 67 20 3a 67 72 6f 75 70 |e 'strin|g :group|
|000007e0| 20 27 70 79 74 68 6f 6e | 29 0a 28 63 75 73 74 6f | 'python|).(custo|
|000007f0| 6d 2d 64 65 63 6c 61 72 | 65 2d 76 61 72 69 61 62 |m-declar|e-variab|
|00000800| 6c 65 20 27 70 79 2d 68 | 6f 6e 6f 72 2d 63 6f 6d |le 'py-h|onor-com|
|00000810| 6d 65 6e 74 2d 69 6e 64 | 65 6e 74 61 74 69 6f 6e |ment-ind|entation|
|00000820| 20 27 74 20 22 2a 43 6f | 6e 74 72 6f 6c 73 20 68 | 't "*Co|ntrols h|
|00000830| 6f 77 20 63 6f 6d 6d 65 | 6e 74 20 6c 69 6e 65 73 |ow comme|nt lines|
|00000840| 20 69 6e 66 6c 75 65 6e | 63 65 20 73 75 62 73 65 | influen|ce subse|
|00000850| 71 75 65 6e 74 20 69 6e | 64 65 6e 74 61 74 69 6f |quent in|dentatio|
|00000860| 6e 2e 5c 6e 5c 6e 57 68 | 65 6e 20 6e 69 6c 2c 20 |n.\n\nWh|en nil, |
|00000870| 61 6c 6c 20 63 6f 6d 6d | 65 6e 74 20 6c 69 6e 65 |all comm|ent line|
|00000880| 73 20 61 72 65 20 73 6b | 69 70 70 65 64 20 66 6f |s are sk|ipped fo|
|00000890| 72 20 69 6e 64 65 6e 74 | 61 74 69 6f 6e 20 70 75 |r indent|ation pu|
|000008a0| 72 70 6f 73 65 73 2c 20 | 61 6e 64 5c 6e 69 66 20 |rposes, |and\nif |
|000008b0| 70 6f 73 73 69 62 6c 65 | 2c 20 61 20 66 61 73 74 |possible|, a fast|
|000008c0| 65 72 20 61 6c 67 6f 72 | 69 74 68 6d 20 69 73 20 |er algor|ithm is |
|000008d0| 75 73 65 64 20 28 69 2e | 65 2e 20 58 2f 45 6d 61 |used (i.|e. X/Ema|
|000008e0| 63 73 20 31 39 20 61 6e | 64 20 62 65 79 6f 6e 64 |cs 19 an|d beyond|
|000008f0| 29 2e 5c 6e 5c 6e 57 68 | 65 6e 20 74 2c 20 6c 69 |).\n\nWh|en t, li|
|00000900| 6e 65 73 20 74 68 61 74 | 20 62 65 67 69 6e 20 77 |nes that| begin w|
|00000910| 69 74 68 20 61 20 73 69 | 6e 67 6c 65 20 60 23 27 |ith a si|ngle `#'|
|00000920| 20 61 72 65 20 61 20 68 | 69 6e 74 20 74 6f 20 73 | are a h|int to s|
|00000930| 75 62 73 65 71 75 65 6e | 74 5c 6e 6c 69 6e 65 20 |ubsequen|t\nline |
|00000940| 69 6e 64 65 6e 74 61 74 | 69 6f 6e 2e 20 20 49 66 |indentat|ion. If|
|00000950| 20 74 68 65 20 70 72 65 | 76 69 6f 75 73 20 6c 69 | the pre|vious li|
|00000960| 6e 65 20 69 73 20 73 75 | 63 68 20 61 20 63 6f 6d |ne is su|ch a com|
|00000970| 6d 65 6e 74 20 6c 69 6e | 65 20 28 61 73 5c 6e 6f |ment lin|e (as\no|
|00000980| 70 70 6f 73 65 64 20 74 | 6f 20 6f 6e 65 20 74 68 |pposed t|o one th|
|00000990| 61 74 20 73 74 61 72 74 | 73 20 77 69 74 68 20 60 |at start|s with `|
|000009a0| 70 79 2d 62 6c 6f 63 6b | 2d 63 6f 6d 6d 65 6e 74 |py-block|-comment|
|000009b0| 2d 70 72 65 66 69 78 27 | 29 2c 20 74 68 65 6e 20 |-prefix'|), then |
|000009c0| 69 74 27 73 5c 6e 69 6e | 64 65 6e 74 61 74 69 6f |it's\nin|dentatio|
|000009d0| 6e 20 69 73 20 75 73 65 | 64 20 61 73 20 61 20 68 |n is use|d as a h|
|000009e0| 69 6e 74 20 66 6f 72 20 | 74 68 69 73 20 6c 69 6e |int for |this lin|
|000009f0| 65 27 73 20 69 6e 64 65 | 6e 74 61 74 69 6f 6e 2e |e's inde|ntation.|
|00000a00| 20 20 4c 69 6e 65 73 20 | 74 68 61 74 5c 6e 62 65 | Lines |that\nbe|
|00000a10| 67 69 6e 20 77 69 74 68 | 20 60 70 79 2d 62 6c 6f |gin with| `py-blo|
|00000a20| 63 6b 2d 63 6f 6d 6d 65 | 6e 74 2d 70 72 65 66 69 |ck-comme|nt-prefi|
|00000a30| 78 27 20 61 72 65 20 69 | 67 6e 6f 72 65 64 20 66 |x' are i|gnored f|
|00000a40| 6f 72 20 69 6e 64 65 6e | 74 61 74 69 6f 6e 5c 6e |or inden|tation\n|
|00000a50| 70 75 72 70 6f 73 65 73 | 2e 5c 6e 5c 6e 57 68 65 |purposes|.\n\nWhe|
|00000a60| 6e 20 6e 6f 74 20 6e 69 | 6c 20 6f 72 20 74 2c 20 |n not ni|l or t, |
|00000a70| 63 6f 6d 6d 65 6e 74 20 | 6c 69 6e 65 73 20 74 68 |comment |lines th|
|00000a80| 61 74 20 62 65 67 69 6e | 20 77 69 74 68 20 61 20 |at begin| with a |
|00000a90| 60 23 27 20 61 72 65 20 | 75 73 65 64 20 61 73 5c |`#' are |used as\|
|00000aa0| 6e 69 6e 64 65 6e 74 61 | 74 69 6f 6e 20 68 69 6e |nindenta|tion hin|
|00000ab0| 74 73 2c 20 75 6e 6c 65 | 73 73 20 74 68 65 20 63 |ts, unle|ss the c|
|00000ac0| 6f 6d 6d 65 6e 74 20 63 | 68 61 72 61 63 74 65 72 |omment c|haracter|
|00000ad0| 20 69 73 20 69 6e 20 63 | 6f 6c 75 6d 6e 20 7a 65 | is in c|olumn ze|
|00000ae0| 72 6f 2e 22 20 3a 74 79 | 70 65 20 27 28 63 68 6f |ro." :ty|pe '(cho|
|00000af0| 69 63 65 20 28 63 6f 6e | 73 74 20 3a 74 61 67 20 |ice (con|st :tag |
|00000b00| 22 53 6b 69 70 20 61 6c | 6c 20 63 6f 6d 6d 65 6e |"Skip al|l commen|
|00000b10| 74 20 6c 69 6e 65 73 20 | 28 66 61 73 74 29 22 20 |t lines |(fast)" |
|00000b20| 6e 69 6c 29 20 28 63 6f | 6e 73 74 20 3a 74 61 67 |nil) (co|nst :tag|
|00000b30| 20 22 53 69 6e 67 6c 65 | 20 23 20 60 73 65 74 73 | "Single| # `sets|
|00000b40| 27 20 69 6e 64 65 6e 74 | 61 74 69 6f 6e 20 66 6f |' indent|ation fo|
|00000b50| 72 20 6e 65 78 74 20 6c | 69 6e 65 22 20 74 29 20 |r next l|ine" t) |
|00000b60| 28 63 6f 6e 73 74 20 3a | 74 61 67 20 22 53 69 6e |(const :|tag "Sin|
|00000b70| 67 6c 65 20 23 20 60 73 | 65 74 73 27 20 69 6e 64 |gle # `s|ets' ind|
|00000b80| 65 6e 74 61 74 69 6f 6e | 20 65 78 63 65 70 74 20 |entation| except |
|00000b90| 61 74 20 63 6f 6c 75 6d | 6e 20 7a 65 72 6f 22 20 |at colum|n zero" |
|00000ba0| 6f 74 68 65 72 29 29 20 | 3a 67 72 6f 75 70 20 27 |other)) |:group '|
|00000bb0| 70 79 74 68 6f 6e 29 0a | 28 63 75 73 74 6f 6d 2d |python).|(custom-|
|00000bc0| 64 65 63 6c 61 72 65 2d | 76 61 72 69 61 62 6c 65 |declare-|variable|
|00000bd0| 20 27 70 79 2d 73 63 72 | 6f 6c 6c 2d 70 72 6f 63 | 'py-scr|oll-proc|
|00000be0| 65 73 73 2d 62 75 66 66 | 65 72 20 27 74 20 22 2a |ess-buff|er 't "*|
|00000bf0| 53 63 72 6f 6c 6c 20 50 | 79 74 68 6f 6e 20 70 72 |Scroll P|ython pr|
|00000c00| 6f 63 65 73 73 20 62 75 | 66 66 65 72 20 61 73 20 |ocess bu|ffer as |
|00000c10| 6f 75 74 70 75 74 20 61 | 72 72 69 76 65 73 2e 5c |output a|rrives.\|
|00000c20| 6e 49 66 20 6e 69 6c 2c | 20 74 68 65 20 50 79 74 |nIf nil,| the Pyt|
|00000c30| 68 6f 6e 20 70 72 6f 63 | 65 73 73 20 62 75 66 66 |hon proc|ess buff|
|00000c40| 65 72 20 61 63 74 73 2c | 20 77 69 74 68 20 72 65 |er acts,| with re|
|00000c50| 73 70 65 63 74 20 74 6f | 20 73 63 72 6f 6c 6c 69 |spect to| scrolli|
|00000c60| 6e 67 2c 20 6c 69 6b 65 | 5c 6e 53 68 65 6c 6c 2d |ng, like|\nShell-|
|00000c70| 6d 6f 64 65 20 62 75 66 | 66 65 72 73 20 6e 6f 72 |mode buf|fers nor|
|00000c80| 6d 61 6c 6c 79 20 61 63 | 74 2e 20 20 54 68 69 73 |mally ac|t. This|
|00000c90| 20 69 73 20 73 75 72 70 | 72 69 73 69 6e 67 6c 79 | is surp|risingly|
|00000ca0| 20 63 6f 6d 70 6c 69 63 | 61 74 65 64 20 61 6e 64 | complic|ated and|
|00000cb0| 5c 6e 73 6f 20 77 6f 6e | 27 74 20 62 65 20 65 78 |\nso won|'t be ex|
|00000cc0| 70 6c 61 69 6e 65 64 20 | 68 65 72 65 3b 20 69 6e |plained |here; in|
|00000cd0| 20 66 61 63 74 2c 20 79 | 6f 75 20 63 61 6e 27 74 | fact, y|ou can't|
|00000ce0| 20 67 65 74 20 74 68 65 | 20 77 68 6f 6c 65 20 73 | get the| whole s|
|00000cf0| 74 6f 72 79 5c 6e 77 69 | 74 68 6f 75 74 20 73 74 |tory\nwi|thout st|
|00000d00| 75 64 79 69 6e 67 20 74 | 68 65 20 45 6d 61 63 73 |udying t|he Emacs|
|00000d10| 20 43 20 63 6f 64 65 2e | 5c 6e 5c 6e 49 66 20 6e | C code.|\n\nIf n|
|00000d20| 6f 6e 2d 6e 69 6c 2c 20 | 74 68 65 20 62 65 68 61 |on-nil, |the beha|
|00000d30| 76 69 6f 72 20 69 73 20 | 64 69 66 66 65 72 65 6e |vior is |differen|
|00000d40| 74 20 69 6e 20 74 77 6f | 20 72 65 73 70 65 63 74 |t in two| respect|
|00000d50| 73 20 28 77 68 69 63 68 | 20 61 72 65 5c 6e 73 6c |s (which| are\nsl|
|00000d60| 69 67 68 74 6c 79 20 69 | 6e 61 63 63 75 72 61 74 |ightly i|naccurat|
|00000d70| 65 20 69 6e 20 74 68 65 | 20 69 6e 74 65 72 65 73 |e in the| interes|
|00000d80| 74 20 6f 66 20 62 72 65 | 76 69 74 79 29 3a 5c 6e |t of bre|vity):\n|
|00000d90| 5c 6e 20 20 2d 20 49 66 | 20 74 68 65 20 62 75 66 |\n - If| the buf|
|00000da0| 66 65 72 20 69 73 20 69 | 6e 20 61 20 77 69 6e 64 |fer is i|n a wind|
|00000db0| 6f 77 2c 20 61 6e 64 20 | 79 6f 75 20 6c 65 66 74 |ow, and |you left|
|00000dc0| 20 70 6f 69 6e 74 20 61 | 74 20 69 74 73 20 65 6e | point a|t its en|
|00000dd0| 64 2c 20 74 68 65 5c 6e | 20 20 20 20 77 69 6e 64 |d, the\n| wind|
|00000de0| 6f 77 20 77 69 6c 6c 20 | 73 63 72 6f 6c 6c 20 61 |ow will |scroll a|
|00000df0| 73 20 6e 65 77 20 6f 75 | 74 70 75 74 20 61 72 72 |s new ou|tput arr|
|00000e00| 69 76 65 73 2c 20 61 6e | 64 20 70 6f 69 6e 74 20 |ives, an|d point |
|00000e10| 77 69 6c 6c 20 6d 6f 76 | 65 20 74 6f 20 74 68 65 |will mov|e to the|
|00000e20| 5c 6e 20 20 20 20 62 75 | 66 66 65 72 27 73 20 65 |\n bu|ffer's e|
|00000e30| 6e 64 2c 20 65 76 65 6e | 20 69 66 20 74 68 65 20 |nd, even| if the |
|00000e40| 77 69 6e 64 6f 77 20 69 | 73 20 6e 6f 74 20 74 68 |window i|s not th|
|00000e50| 65 20 73 65 6c 65 63 74 | 65 64 20 77 69 6e 64 6f |e select|ed windo|
|00000e60| 77 20 28 74 68 61 74 5c | 6e 20 20 20 20 62 65 69 |w (that\|n bei|
|00000e70| 6e 67 20 74 68 65 20 6f | 6e 65 20 74 68 65 20 63 |ng the o|ne the c|
|00000e80| 75 72 73 6f 72 20 69 73 | 20 69 6e 29 2e 20 20 54 |ursor is| in). T|
|00000e90| 68 65 20 75 73 75 61 6c | 20 62 65 68 61 76 69 6f |he usual| behavio|
|00000ea0| 72 20 66 6f 72 20 73 68 | 65 6c 6c 2d 6d 6f 64 65 |r for sh|ell-mode|
|00000eb0| 5c 6e 20 20 20 20 77 69 | 6e 64 6f 77 73 20 69 73 |\n wi|ndows is|
|00000ec0| 20 6e 6f 74 20 74 6f 20 | 73 63 72 6f 6c 6c 2c 20 | not to |scroll, |
|00000ed0| 61 6e 64 20 74 6f 20 6c | 65 61 76 65 20 70 6f 69 |and to l|eave poi|
|00000ee0| 6e 74 20 77 68 65 72 65 | 20 69 74 20 77 61 73 2c |nt where| it was,|
|00000ef0| 20 69 66 20 74 68 65 5c | 6e 20 20 20 20 62 75 66 | if the\|n buf|
|00000f00| 66 65 72 20 69 73 20 69 | 6e 20 61 20 77 69 6e 64 |fer is i|n a wind|
|00000f10| 6f 77 20 6f 74 68 65 72 | 20 74 68 61 6e 20 74 68 |ow other| than th|
|00000f20| 65 20 73 65 6c 65 63 74 | 65 64 20 77 69 6e 64 6f |e select|ed windo|
|00000f30| 77 2e 5c 6e 5c 6e 20 20 | 2d 20 49 66 20 74 68 65 |w.\n\n |- If the|
|00000f40| 20 62 75 66 66 65 72 20 | 69 73 20 6e 6f 74 20 76 | buffer |is not v|
|00000f50| 69 73 69 62 6c 65 20 69 | 6e 20 61 6e 79 20 77 69 |isible i|n any wi|
|00000f60| 6e 64 6f 77 2c 20 61 6e | 64 20 79 6f 75 20 6c 65 |ndow, an|d you le|
|00000f70| 66 74 20 70 6f 69 6e 74 | 20 61 74 5c 6e 20 20 20 |ft point| at\n |
|00000f80| 20 69 74 73 20 65 6e 64 | 2c 20 74 68 65 20 62 75 | its end|, the bu|
|00000f90| 66 66 65 72 20 77 69 6c | 6c 20 62 65 20 70 6f 70 |ffer wil|l be pop|
|00000fa0| 70 65 64 20 69 6e 74 6f | 20 61 20 77 69 6e 64 6f |ped into| a windo|
|00000fb0| 77 20 61 73 20 73 6f 6f | 6e 20 61 73 20 6d 6f 72 |w as soo|n as mor|
|00000fc0| 65 5c 6e 20 20 20 20 6f | 75 74 70 75 74 20 61 72 |e\n o|utput ar|
|00000fd0| 72 69 76 65 73 2e 20 20 | 54 68 69 73 20 69 73 20 |rives. |This is |
|00000fe0| 68 61 6e 64 79 20 69 66 | 20 79 6f 75 20 68 61 76 |handy if| you hav|
|00000ff0| 65 20 61 20 6c 6f 6e 67 | 2d 72 75 6e 6e 69 6e 67 |e a long|-running|
|00001000| 5c 6e 20 20 20 20 63 6f | 6d 70 75 74 61 74 69 6f |\n co|mputatio|
|00001010| 6e 20 61 6e 64 20 64 6f | 6e 27 74 20 77 61 6e 74 |n and do|n't want|
|00001020| 20 74 6f 20 74 69 65 20 | 75 70 20 73 63 72 65 65 | to tie |up scree|
|00001030| 6e 20 61 72 65 61 20 77 | 61 69 74 69 6e 67 20 66 |n area w|aiting f|
|00001040| 6f 72 20 74 68 65 5c 6e | 20 20 20 20 6f 75 74 70 |or the\n| outp|
|00001050| 75 74 2e 20 20 54 68 65 | 20 75 73 75 61 6c 20 62 |ut. The| usual b|
|00001060| 65 68 61 76 69 6f 72 20 | 66 6f 72 20 61 20 73 68 |ehavior |for a sh|
|00001070| 65 6c 6c 2d 6d 6f 64 65 | 20 62 75 66 66 65 72 20 |ell-mode| buffer |
|00001080| 69 73 20 74 6f 20 73 74 | 61 79 5c 6e 20 20 20 20 |is to st|ay\n |
|00001090| 69 6e 76 69 73 69 62 6c | 65 20 75 6e 74 69 6c 20 |invisibl|e until |
|000010a0| 79 6f 75 20 65 78 70 6c | 69 63 69 74 6c 79 20 76 |you expl|icitly v|
|000010b0| 69 73 69 74 20 69 74 2e | 5c 6e 5c 6e 4e 6f 74 65 |isit it.|\n\nNote|
|000010c0| 20 74 68 65 20 60 61 6e | 64 20 69 66 20 79 6f 75 | the `an|d if you|
|000010d0| 20 6c 65 66 74 20 70 6f | 69 6e 74 20 61 74 20 69 | left po|int at i|
|000010e0| 74 73 20 65 6e 64 27 20 | 63 6c 61 75 73 65 73 20 |ts end' |clauses |
|000010f0| 69 6e 20 62 6f 74 68 20 | 6f 66 20 74 68 65 5c 6e |in both |of the\n|
|00001100| 61 62 6f 76 65 3a 20 20 | 79 6f 75 20 63 61 6e 20 |above: |you can |
|00001110| 60 74 75 72 6e 20 6f 66 | 66 27 20 74 68 65 20 73 |`turn of|f' the s|
|00001120| 70 65 63 69 61 6c 20 62 | 65 68 61 76 69 6f 72 73 |pecial b|ehaviors|
|00001130| 20 77 68 69 6c 65 20 6f | 75 74 70 75 74 20 69 73 | while o|utput is|
|00001140| 20 69 6e 5c 6e 70 72 6f | 67 72 65 73 73 2c 20 62 | in\npro|gress, b|
|00001150| 79 20 76 69 73 69 74 69 | 6e 67 20 74 68 65 20 50 |y visiti|ng the P|
|00001160| 79 74 68 6f 6e 20 62 75 | 66 66 65 72 20 61 6e 64 |ython bu|ffer and|
|00001170| 20 6d 6f 76 69 6e 67 20 | 70 6f 69 6e 74 20 74 6f | moving |point to|
|00001180| 20 61 6e 79 77 68 65 72 | 65 5c 6e 62 65 73 69 64 | anywher|e\nbesid|
|00001190| 65 73 20 74 68 65 20 65 | 6e 64 2e 20 20 54 68 65 |es the e|nd. The|
|000011a0| 6e 20 74 68 65 20 62 75 | 66 66 65 72 20 77 6f 6e |n the bu|ffer won|
|000011b0| 27 74 20 73 63 72 6f 6c | 6c 2c 20 70 6f 69 6e 74 |'t scrol|l, point|
|000011c0| 20 77 69 6c 6c 20 72 65 | 6d 61 69 6e 20 77 68 65 | will re|main whe|
|000011d0| 72 65 5c 6e 79 6f 75 20 | 6c 65 61 76 65 20 69 74 |re\nyou |leave it|
|000011e0| 2c 20 61 6e 64 20 69 66 | 20 79 6f 75 20 68 69 64 |, and if| you hid|
|000011f0| 65 20 74 68 65 20 62 75 | 66 66 65 72 20 69 74 20 |e the bu|ffer it |
|00001200| 77 69 6c 6c 20 73 74 61 | 79 20 68 69 64 64 65 6e |will sta|y hidden|
|00001210| 20 75 6e 74 69 6c 20 79 | 6f 75 5c 6e 76 69 73 69 | until y|ou\nvisi|
|00001220| 74 20 69 74 20 61 67 61 | 69 6e 2e 20 20 59 6f 75 |t it aga|in. You|
|00001230| 20 63 61 6e 20 65 6e 61 | 62 6c 65 20 61 6e 64 20 | can ena|ble and |
|00001240| 64 69 73 61 62 6c 65 20 | 74 68 65 20 73 70 65 63 |disable |the spec|
|00001250| 69 61 6c 20 62 65 68 61 | 76 69 6f 72 73 20 61 73 |ial beha|viors as|
|00001260| 5c 6e 6f 66 74 65 6e 20 | 61 73 20 79 6f 75 20 6c |\noften |as you l|
|00001270| 69 6b 65 2c 20 77 68 69 | 6c 65 20 6f 75 74 70 75 |ike, whi|le outpu|
|00001280| 74 20 69 73 20 69 6e 20 | 70 72 6f 67 72 65 73 73 |t is in |progress|
|00001290| 2c 20 62 79 20 28 72 65 | 73 70 65 63 74 69 76 65 |, by (re|spective|
|000012a0| 6c 79 29 20 6d 6f 76 69 | 6e 67 5c 6e 70 6f 69 6e |ly) movi|ng\npoin|
|000012b0| 74 20 74 6f 2c 20 6f 72 | 20 61 77 61 79 20 66 72 |t to, or| away fr|
|000012c0| 6f 6d 2c 20 74 68 65 20 | 65 6e 64 20 6f 66 20 74 |om, the |end of t|
|000012d0| 68 65 20 62 75 66 66 65 | 72 2e 5c 6e 5c 6e 57 61 |he buffe|r.\n\nWa|
|000012e0| 72 6e 69 6e 67 3a 20 20 | 49 66 20 79 6f 75 20 65 |rning: |If you e|
|000012f0| 78 70 65 63 74 20 61 20 | 6c 61 72 67 65 20 61 6d |xpect a |large am|
|00001300| 6f 75 6e 74 20 6f 66 20 | 6f 75 74 70 75 74 2c 20 |ount of |output, |
|00001310| 79 6f 75 27 6c 6c 20 70 | 72 6f 62 61 62 6c 79 20 |you'll p|robably |
|00001320| 62 65 5c 6e 68 61 70 70 | 69 65 72 20 73 65 74 74 |be\nhapp|ier sett|
|00001330| 69 6e 67 20 74 68 69 73 | 20 6f 70 74 69 6f 6e 20 |ing this| option |
|00001340| 74 6f 20 6e 69 6c 2e 5c | 6e 5c 6e 4f 62 73 63 75 |to nil.\|n\nObscu|
|00001350| 72 65 3a 20 20 60 45 6e | 64 20 6f 66 20 62 75 66 |re: `En|d of buf|
|00001360| 66 65 72 27 20 61 62 6f | 76 65 20 73 68 6f 75 6c |fer' abo|ve shoul|
|00001370| 64 20 72 65 61 6c 6c 79 | 20 73 61 79 20 60 61 74 |d really| say `at|
|00001380| 20 6f 72 20 62 65 79 6f | 6e 64 20 74 68 65 5c 6e | or beyo|nd the\n|
|00001390| 70 72 6f 63 65 73 73 20 | 6d 61 72 6b 27 2c 20 62 |process |mark', b|
|000013a0| 75 74 20 69 66 20 79 6f | 75 20 6b 6e 6f 77 20 77 |ut if yo|u know w|
|000013b0| 68 61 74 20 74 68 61 74 | 20 6d 65 61 6e 73 20 79 |hat that| means y|
|000013c0| 6f 75 20 64 69 64 6e 27 | 74 20 6e 65 65 64 20 74 |ou didn'|t need t|
|000013d0| 6f 20 62 65 5c 6e 74 6f | 6c 64 20 3c 67 72 69 6e |o be\nto|ld <grin|
|000013e0| 3e 2e 22 20 3a 74 79 70 | 65 20 27 62 6f 6f 6c 65 |>." :typ|e 'boole|
|000013f0| 61 6e 20 3a 67 72 6f 75 | 70 20 27 70 79 74 68 6f |an :grou|p 'pytho|
|00001400| 6e 29 0a 28 63 75 73 74 | 6f 6d 2d 64 65 63 6c 61 |n).(cust|om-decla|
|00001410| 72 65 2d 76 61 72 69 61 | 62 6c 65 20 27 70 79 2d |re-varia|ble 'py-|
|00001420| 74 65 6d 70 2d 64 69 72 | 65 63 74 6f 72 79 20 27 |temp-dir|ectory '|
|00001430| 28 6c 65 74 20 28 28 6f | 6b 20 27 28 6c 61 6d 62 |(let ((o|k '(lamb|
|00001440| 64 61 20 28 78 29 20 28 | 61 6e 64 20 78 20 28 73 |da (x) (|and x (s|
|00001450| 65 74 71 20 78 20 28 65 | 78 70 61 6e 64 2d 66 69 |etq x (e|xpand-fi|
|00001460| 6c 65 2d 6e 61 6d 65 20 | 78 29 29 20 28 66 69 6c |le-name |x)) (fil|
|00001470| 65 2d 64 69 72 65 63 74 | 6f 72 79 2d 70 20 78 29 |e-direct|ory-p x)|
|00001480| 20 28 66 69 6c 65 2d 77 | 72 69 74 61 62 6c 65 2d | (file-w|ritable-|
|00001490| 70 20 78 29 20 78 29 29 | 29 29 20 28 6f 72 20 28 |p x) x))|)) (or (|
|000014a0| 66 75 6e 63 61 6c 6c 20 | 6f 6b 20 28 67 65 74 65 |funcall |ok (gete|
|000014b0| 6e 76 20 22 54 4d 50 44 | 49 52 22 29 29 20 28 66 |nv "TMPD|IR")) (f|
|000014c0| 75 6e 63 61 6c 6c 20 6f | 6b 20 22 2f 75 73 72 2f |uncall o|k "/usr/|
|000014d0| 74 6d 70 22 29 20 28 66 | 75 6e 63 61 6c 6c 20 6f |tmp") (f|uncall o|
|000014e0| 6b 20 22 2f 74 6d 70 22 | 29 20 28 66 75 6e 63 61 |k "/tmp"|) (funca|
|000014f0| 6c 6c 20 6f 6b 20 22 2e | 22 29 20 28 65 72 72 6f |ll ok ".|") (erro|
|00001500| 72 20 22 43 6f 75 6c 64 | 6e 27 74 20 66 69 6e 64 |r "Could|n't find|
|00001510| 20 61 20 75 73 61 62 6c | 65 20 74 65 6d 70 20 64 | a usabl|e temp d|
|00001520| 69 72 65 63 74 6f 72 79 | 20 2d 2d 20 73 65 74 20 |irectory| -- set |
|00001530| 70 79 2d 74 65 6d 70 2d | 64 69 72 65 63 74 6f 72 |py-temp-|director|
|00001540| 79 22 29 29 29 20 22 2a | 44 69 72 65 63 74 6f 72 |y"))) "*|Director|
|00001550| 79 20 75 73 65 64 20 66 | 6f 72 20 74 65 6d 70 20 |y used f|or temp |
|00001560| 66 69 6c 65 73 20 63 72 | 65 61 74 65 64 20 62 79 |files cr|eated by|
|00001570| 20 61 20 2a 50 79 74 68 | 6f 6e 2a 20 70 72 6f 63 | a *Pyth|on* proc|
|00001580| 65 73 73 2e 5c 6e 42 79 | 20 64 65 66 61 75 6c 74 |ess.\nBy| default|
|00001590| 2c 20 74 68 65 20 66 69 | 72 73 74 20 64 69 72 65 |, the fi|rst dire|
|000015a0| 63 74 6f 72 79 20 66 72 | 6f 6d 20 74 68 69 73 20 |ctory fr|om this |
|000015b0| 6c 69 73 74 20 74 68 61 | 74 20 65 78 69 73 74 73 |list tha|t exists|
|000015c0| 20 61 6e 64 20 74 68 61 | 74 20 79 6f 75 5c 6e 63 | and tha|t you\nc|
|000015d0| 61 6e 20 77 72 69 74 65 | 20 69 6e 74 6f 3a 20 20 |an write| into: |
|000015e0| 74 68 65 20 76 61 6c 75 | 65 20 28 69 66 20 61 6e |the valu|e (if an|
|000015f0| 79 29 20 6f 66 20 74 68 | 65 20 65 6e 76 69 72 6f |y) of th|e enviro|
|00001600| 6e 6d 65 6e 74 20 76 61 | 72 69 61 62 6c 65 20 54 |nment va|riable T|
|00001610| 4d 50 44 49 52 2c 5c 6e | 2f 75 73 72 2f 74 6d 70 |MPDIR,\n|/usr/tmp|
|00001620| 2c 20 2f 74 6d 70 2c 20 | 6f 72 20 74 68 65 20 63 |, /tmp, |or the c|
|00001630| 75 72 72 65 6e 74 20 64 | 69 72 65 63 74 6f 72 79 |urrent d|irectory|
|00001640| 2e 22 20 3a 74 79 70 65 | 20 27 73 74 72 69 6e 67 |." :type| 'string|
|00001650| 20 3a 67 72 6f 75 70 20 | 27 70 79 74 68 6f 6e 29 | :group |'python)|
|00001660| 0a 28 63 75 73 74 6f 6d | 2d 64 65 63 6c 61 72 65 |.(custom|-declare|
|00001670| 2d 76 61 72 69 61 62 6c | 65 20 27 70 79 2d 62 65 |-variabl|e 'py-be|
|00001680| 65 70 2d 69 66 2d 74 61 | 62 2d 63 68 61 6e 67 65 |ep-if-ta|b-change|
|00001690| 20 27 74 20 22 2a 52 69 | 6e 67 20 74 68 65 20 62 | 't "*Ri|ng the b|
|000016a0| 65 6c 6c 20 69 66 20 74 | 61 62 2d 77 69 64 74 68 |ell if t|ab-width|
|000016b0| 20 69 73 20 63 68 61 6e | 67 65 64 2e 5c 6e 49 66 | is chan|ged.\nIf|
|000016c0| 20 61 20 63 6f 6d 6d 65 | 6e 74 20 6f 66 20 74 68 | a comme|nt of th|
|000016d0| 65 20 66 6f 72 6d 5c 6e | 5c 6e 20 20 09 23 20 76 |e form\n|\n .# v|
|000016e0| 69 3a 73 65 74 20 74 61 | 62 73 69 7a 65 3d 3c 6e |i:set ta|bsize=<n|
|000016f0| 75 6d 62 65 72 3e 3a 5c | 6e 5c 6e 69 73 20 66 6f |umber>:\|n\nis fo|
|00001700| 75 6e 64 20 62 65 66 6f | 72 65 20 74 68 65 20 66 |und befo|re the f|
|00001710| 69 72 73 74 20 63 6f 64 | 65 20 6c 69 6e 65 20 77 |irst cod|e line w|
|00001720| 68 65 6e 20 74 68 65 20 | 66 69 6c 65 20 69 73 20 |hen the |file is |
|00001730| 65 6e 74 65 72 65 64 2c | 20 61 6e 64 20 74 68 65 |entered,| and the|
|00001740| 5c 6e 63 75 72 72 65 6e | 74 20 76 61 6c 75 65 20 |\ncurren|t value |
|00001750| 6f 66 20 28 74 68 65 20 | 67 65 6e 65 72 61 6c 20 |of (the |general |
|00001760| 45 6d 61 63 73 20 76 61 | 72 69 61 62 6c 65 29 20 |Emacs va|riable) |
|00001770| 60 74 61 62 2d 77 69 64 | 74 68 27 20 64 6f 65 73 |`tab-wid|th' does|
|00001780| 20 6e 6f 74 5c 6e 65 71 | 75 61 6c 20 3c 6e 75 6d | not\neq|ual <num|
|00001790| 62 65 72 3e 2c 20 60 74 | 61 62 2d 77 69 64 74 68 |ber>, `t|ab-width|
|000017a0| 27 20 69 73 20 73 65 74 | 20 74 6f 20 3c 6e 75 6d |' is set| to <num|
|000017b0| 62 65 72 3e 2c 20 61 20 | 6d 65 73 73 61 67 65 20 |ber>, a |message |
|000017c0| 73 61 79 69 6e 67 20 73 | 6f 20 69 73 5c 6e 64 69 |saying s|o is\ndi|
|000017d0| 73 70 6c 61 79 65 64 20 | 69 6e 20 74 68 65 20 65 |splayed |in the e|
|000017e0| 63 68 6f 20 61 72 65 61 | 2c 20 61 6e 64 20 69 66 |cho area|, and if|
|000017f0| 20 60 70 79 2d 62 65 65 | 70 2d 69 66 2d 74 61 62 | `py-bee|p-if-tab|
|00001800| 2d 63 68 61 6e 67 65 27 | 20 69 73 20 6e 6f 6e 2d |-change'| is non-|
|00001810| 6e 69 6c 5c 6e 74 68 65 | 20 45 6d 61 63 73 20 62 |nil\nthe| Emacs b|
|00001820| 65 6c 6c 20 69 73 20 61 | 6c 73 6f 20 72 75 6e 67 |ell is a|lso rung|
|00001830| 20 61 73 20 61 20 77 61 | 72 6e 69 6e 67 2e 22 20 | as a wa|rning." |
|00001840| 3a 74 79 70 65 20 27 62 | 6f 6f 6c 65 61 6e 20 3a |:type 'b|oolean :|
|00001850| 67 72 6f 75 70 20 27 70 | 79 74 68 6f 6e 29 0a 28 |group 'p|ython).(|
|00001860| 63 75 73 74 6f 6d 2d 64 | 65 63 6c 61 72 65 2d 76 |custom-d|eclare-v|
|00001870| 61 72 69 61 62 6c 65 20 | 27 70 79 2d 6a 75 6d 70 |ariable |'py-jump|
|00001880| 2d 6f 6e 2d 65 78 63 65 | 70 74 69 6f 6e 20 27 74 |-on-exce|ption 't|
|00001890| 20 22 2a 4a 75 6d 70 20 | 74 6f 20 69 6e 6e 65 72 | "*Jump |to inner|
|000018a0| 6d 6f 73 74 20 65 78 63 | 65 70 74 69 6f 6e 20 66 |most exc|eption f|
|000018b0| 72 61 6d 65 20 69 6e 20 | 2a 50 79 74 68 6f 6e 20 |rame in |*Python |
|000018c0| 4f 75 74 70 75 74 2a 20 | 62 75 66 66 65 72 2e 5c |Output* |buffer.\|
|000018d0| 6e 57 68 65 6e 20 74 68 | 69 73 20 76 61 72 69 61 |nWhen th|is varia|
|000018e0| 62 6c 65 20 69 73 20 6e | 6f 6e 2d 6e 69 6c 20 61 |ble is n|on-nil a|
|000018f0| 6e 64 20 61 6e 65 20 65 | 78 63 65 70 74 69 6f 6e |nd ane e|xception|
|00001900| 20 6f 63 63 75 72 73 20 | 77 68 65 6e 20 72 75 6e | occurs |when run|
|00001910| 6e 69 6e 67 5c 6e 50 79 | 74 68 6f 6e 20 63 6f 64 |ning\nPy|thon cod|
|00001920| 65 20 73 79 6e 63 68 72 | 6f 6e 6f 75 73 6c 79 20 |e synchr|onously |
|00001930| 69 6e 20 61 20 73 75 62 | 70 72 6f 63 65 73 73 2c |in a sub|process,|
|00001940| 20 6a 75 6d 70 20 69 6d | 6d 65 64 69 61 74 65 6c | jump im|mediatel|
|00001950| 79 20 74 6f 20 74 68 65 | 5c 6e 73 6f 75 72 63 65 |y to the|\nsource|
|00001960| 20 63 6f 64 65 20 6f 66 | 20 74 68 65 20 69 6e 6e | code of| the inn|
|00001970| 65 72 6d 6f 73 74 20 66 | 72 61 6d 65 2e 22 29 0a |ermost f|rame.").|
|00001980| 28 63 75 73 74 6f 6d 2d | 64 65 63 6c 61 72 65 2d |(custom-|declare-|
|00001990| 76 61 72 69 61 62 6c 65 | 20 27 70 79 2d 62 61 63 |variable| 'py-bac|
|000019a0| 6b 73 70 61 63 65 2d 66 | 75 6e 63 74 69 6f 6e 20 |kspace-f|unction |
|000019b0| 27 27 62 61 63 6b 77 61 | 72 64 2d 64 65 6c 65 74 |''backwa|rd-delet|
|000019c0| 65 2d 63 68 61 72 2d 75 | 6e 74 61 62 69 66 79 20 |e-char-u|ntabify |
|000019d0| 22 2a 46 75 6e 63 74 69 | 6f 6e 20 63 61 6c 6c 65 |"*Functi|on calle|
|000019e0| 64 20 62 79 20 60 70 79 | 2d 65 6c 65 63 74 72 69 |d by `py|-electri|
|000019f0| 63 2d 62 61 63 6b 73 70 | 61 63 65 27 20 77 68 65 |c-backsp|ace' whe|
|00001a00| 6e 20 64 65 6c 65 74 69 | 6e 67 20 62 61 63 6b 77 |n deleti|ng backw|
|00001a10| 61 72 64 73 2e 22 20 3a | 74 79 70 65 20 27 66 75 |ards." :|type 'fu|
|00001a20| 6e 63 74 69 6f 6e 20 3a | 67 72 6f 75 70 20 27 70 |nction :|group 'p|
|00001a30| 79 74 68 6f 6e 29 0a 28 | 63 75 73 74 6f 6d 2d 64 |ython).(|custom-d|
|00001a40| 65 63 6c 61 72 65 2d 76 | 61 72 69 61 62 6c 65 20 |eclare-v|ariable |
|00001a50| 27 70 79 2d 64 65 6c 65 | 74 65 2d 66 75 6e 63 74 |'py-dele|te-funct|
|00001a60| 69 6f 6e 20 27 27 64 65 | 6c 65 74 65 2d 63 68 61 |ion ''de|lete-cha|
|00001a70| 72 20 22 2a 46 75 6e 63 | 74 69 6f 6e 20 63 61 6c |r "*Func|tion cal|
|00001a80| 6c 65 64 20 62 79 20 60 | 70 79 2d 65 6c 65 63 74 |led by `|py-elect|
|00001a90| 72 69 63 2d 64 65 6c 65 | 74 65 27 20 77 68 65 6e |ric-dele|te' when|
|00001aa0| 20 64 65 6c 65 74 69 6e | 67 20 66 6f 72 77 61 72 | deletin|g forwar|
|00001ab0| 64 73 2e 22 20 3a 74 79 | 70 65 20 27 66 75 6e 63 |ds." :ty|pe 'func|
|00001ac0| 74 69 6f 6e 20 3a 67 72 | 6f 75 70 20 27 70 79 74 |tion :gr|oup 'pyt|
|00001ad0| 68 6f 6e 29 0a 23 40 31 | 36 39 20 41 20 6c 69 73 |hon).#@1|69 A lis|
|00001ae0| 74 20 6f 66 20 66 65 61 | 74 75 72 65 73 20 65 78 |t of fea|tures ex|
|00001af0| 74 61 6e 74 20 69 6e 20 | 74 68 65 20 45 6d 61 63 |tant in |the Emac|
|00001b00| 73 20 79 6f 75 20 61 72 | 65 20 75 73 69 6e 67 2e |s you ar|e using.|
|00001b10| 0a 54 68 65 72 65 20 61 | 72 65 20 6d 61 6e 79 20 |.There a|re many |
|00001b20| 66 6c 61 76 6f 72 73 20 | 6f 66 20 45 6d 61 63 73 |flavors |of Emacs|
|00001b30| 20 6f 75 74 20 74 68 65 | 72 65 2c 20 77 69 74 68 | out the|re, with|
|00001b40| 20 64 69 66 66 65 72 65 | 6e 74 20 6c 65 76 65 6c | differe|nt level|
|00001b50| 73 20 6f 66 0a 73 75 70 | 70 6f 72 74 20 66 6f 72 |s of.sup|port for|
|00001b60| 20 66 65 61 74 75 72 65 | 73 20 6e 65 65 64 65 64 | feature|s needed|
|00001b70| 20 62 79 20 60 70 79 74 | 68 6f 6e 2d 6d 6f 64 65 | by `pyt|hon-mode|
|00001b80| 27 2e 1f 0a 28 64 65 66 | 63 6f 6e 73 74 20 70 79 |'...(def|const py|
|00001b90| 2d 65 6d 61 63 73 2d 66 | 65 61 74 75 72 65 73 20 |-emacs-f|eatures |
|00001ba0| 28 62 79 74 65 2d 63 6f | 64 65 20 22 c0 19 c2 c3 |(byte-co|de "....|
|00001bb0| 21 c2 c3 21 1c 89 1d 0c | 98 ab 84 c6 09 42 11 2a |!..!....|.....B.*|
|00001bc0| 09 29 87 22 20 5b 6e 69 | 6c 20 66 65 61 74 75 72 |.)." [ni|l featur|
|00001bd0| 65 73 20 6d 61 6b 65 2d | 74 65 6d 70 2d 6e 61 6d |es make-|temp-nam|
|00001be0| 65 20 22 22 20 74 6d 70 | 32 20 74 6d 70 31 20 62 |e "" tmp|2 tmp1 b|
|00001bf0| 72 6f 6b 65 6e 2d 74 65 | 6d 70 2d 6e 61 6d 65 73 |roken-te|mp-names|
|00001c00| 5d 20 34 29 20 28 23 24 | 20 2e 20 36 38 37 35 29 |] 4) (#$| . 6875)|
|00001c10| 29 0a 23 40 35 33 20 41 | 64 64 69 74 69 6f 6e 61 |).#@53 A|dditiona|
|00001c20| 6c 20 65 78 70 72 65 73 | 73 69 6f 6e 73 20 74 6f |l expres|sions to|
|00001c30| 20 68 69 67 68 6c 69 67 | 68 74 20 69 6e 20 50 79 | highlig|ht in Py|
|00001c40| 74 68 6f 6e 20 6d 6f 64 | 65 2e 1f 0a 28 64 65 66 |thon mod|e...(def|
|00001c50| 76 61 72 20 70 79 74 68 | 6f 6e 2d 66 6f 6e 74 2d |var pyth|on-font-|
|00001c60| 6c 6f 63 6b 2d 6b 65 79 | 77 6f 72 64 73 20 28 62 |lock-key|words (b|
|00001c70| 79 74 65 2d 63 6f 64 65 | 20 22 c0 c1 c2 c3 23 c0 |yte-code| "....#.|
|00001c80| c1 c4 c3 23 1d 1e 06 c7 | 0e 06 c8 51 c9 42 c7 0d |...#....|...Q.B..|
|00001c90| ca 51 c9 42 cb cc 46 2a | 87 22 20 5b 6d 61 70 63 |.Q.B..F*|." [mapc|
|00001ca0| 6f 6e 63 61 74 20 69 64 | 65 6e 74 69 74 79 20 28 |oncat id|entity (|
|00001cb0| 22 61 6e 64 22 20 22 61 | 73 73 65 72 74 22 20 22 |"and" "a|ssert" "|
|00001cc0| 62 72 65 61 6b 22 20 22 | 63 6c 61 73 73 22 20 22 |break" "|class" "|
|00001cd0| 63 6f 6e 74 69 6e 75 65 | 22 20 22 64 65 66 22 20 |continue|" "def" |
|00001ce0| 22 64 65 6c 22 20 22 65 | 6c 69 66 22 20 22 65 6c |"del" "e|lif" "el|
|00001cf0| 73 65 22 20 22 65 78 63 | 65 70 74 22 20 22 65 78 |se" "exc|ept" "ex|
|00001d00| 65 63 22 20 22 66 6f 72 | 22 20 22 66 72 6f 6d 22 |ec" "for|" "from"|
|00001d10| 20 22 67 6c 6f 62 61 6c | 22 20 22 69 66 22 20 22 | "global|" "if" "|
|00001d20| 69 6d 70 6f 72 74 22 20 | 22 69 6e 22 20 22 69 73 |import" |"in" "is|
|00001d30| 22 20 22 6c 61 6d 62 64 | 61 22 20 22 6e 6f 74 22 |" "lambd|a" "not"|
|00001d40| 20 22 6f 72 22 20 22 70 | 61 73 73 22 20 22 70 72 | "or" "p|ass" "pr|
|00001d50| 69 6e 74 22 20 22 72 61 | 69 73 65 22 20 22 72 65 |int" "ra|ise" "re|
|00001d60| 74 75 72 6e 22 20 22 77 | 68 69 6c 65 22 29 20 22 |turn" "w|hile") "|
|00001d70| 5c 5c 7c 22 20 28 22 65 | 6c 73 65 3a 22 20 22 65 |\\|" ("e|lse:" "e|
|00001d80| 78 63 65 70 74 3a 22 20 | 22 66 69 6e 61 6c 6c 79 |xcept:" |"finally|
|00001d90| 3a 22 20 22 74 72 79 3a | 22 29 20 6b 77 32 20 6b |:" "try:|") kw2 k|
|00001da0| 77 31 20 22 5c 5c 62 5c | 5c 28 22 20 22 5c 5c 29 |w1 "\\b\|\(" "\\)|
|00001db0| 5c 5c 62 5b 20 5c 6e 09 | 28 5d 22 20 31 20 22 5c |\\b[ \n.|(]" 1 "\|
|00001dc0| 5c 29 5b 20 5c 6e 09 28 | 5d 22 20 28 22 5c 5c 62 |\)[ \n.(|]" ("\\b|
|00001dd0| 63 6c 61 73 73 5b 20 09 | 5d 2b 5c 5c 28 5b 61 2d |class[ .|]+\\([a-|
|00001de0| 7a 41 2d 5a 5f 5d 2b 5b | 61 2d 7a 41 2d 5a 30 2d |zA-Z_]+[|a-zA-Z0-|
|00001df0| 39 5f 5d 2a 5c 5c 29 22 | 20 31 20 66 6f 6e 74 2d |9_]*\\)"| 1 font-|
|00001e00| 6c 6f 63 6b 2d 74 79 70 | 65 2d 66 61 63 65 29 20 |lock-typ|e-face) |
|00001e10| 28 22 5c 5c 62 64 65 66 | 5b 20 09 5d 2b 5c 5c 28 |("\\bdef|[ .]+\\(|
|00001e20| 5b 61 2d 7a 41 2d 5a 5f | 5d 2b 5b 61 2d 7a 41 2d |[a-zA-Z_|]+[a-zA-|
|00001e30| 5a 30 2d 39 5f 5d 2a 5c | 5c 29 22 20 31 20 66 6f |Z0-9_]*\|\)" 1 fo|
|00001e40| 6e 74 2d 6c 6f 63 6b 2d | 66 75 6e 63 74 69 6f 6e |nt-lock-|function|
|00001e50| 2d 6e 61 6d 65 2d 66 61 | 63 65 29 5d 20 35 29 20 |-name-fa|ce)] 5) |
|00001e60| 28 23 24 20 2e 20 37 31 | 39 31 29 29 0a 28 70 75 |(#$ . 71|91)).(pu|
|00001e70| 74 20 27 70 79 74 68 6f | 6e 2d 6d 6f 64 65 20 27 |t 'pytho|n-mode '|
|00001e80| 66 6f 6e 74 2d 6c 6f 63 | 6b 2d 64 65 66 61 75 6c |font-loc|k-defaul|
|00001e90| 74 73 20 27 28 70 79 74 | 68 6f 6e 2d 66 6f 6e 74 |ts '(pyt|hon-font|
|00001ea0| 2d 6c 6f 63 6b 2d 6b 65 | 79 77 6f 72 64 73 29 29 |-lock-ke|ywords))|
|00001eb0| 0a 23 40 31 31 33 20 2a | 43 6f 6e 74 72 6f 6c 73 |.#@113 *|Controls|
|00001ec0| 20 65 63 68 6f 69 6e 67 | 20 6f 66 20 61 72 67 75 | echoing| of argu|
|00001ed0| 6d 65 6e 74 73 20 6f 66 | 20 66 75 6e 63 74 69 6f |ments of| functio|
|00001ee0| 6e 73 20 26 20 6d 65 74 | 68 6f 64 73 20 69 6e 20 |ns & met|hods in |
|00001ef0| 74 68 65 20 69 6d 65 6e | 75 20 62 75 66 66 65 72 |the imen|u buffer|
|00001f00| 2e 0a 57 68 65 6e 20 6e | 6f 6e 2d 6e 69 6c 2c 20 |..When n|on-nil, |
|00001f10| 61 72 67 75 6d 65 6e 74 | 73 20 61 72 65 20 70 72 |argument|s are pr|
|00001f20| 69 6e 74 65 64 2e 1f 0a | 28 64 65 66 76 61 72 20 |inted...|(defvar |
|00001f30| 69 6d 65 6e 75 2d 65 78 | 61 6d 70 6c 65 2d 2d 70 |imenu-ex|ample--p|
|00001f40| 79 74 68 6f 6e 2d 73 68 | 6f 77 2d 6d 65 74 68 6f |ython-sh|ow-metho|
|00001f50| 64 2d 61 72 67 73 2d 70 | 20 6e 69 6c 20 28 23 24 |d-args-p| nil (#$|
|00001f60| 20 2e 20 2d 37 38 36 33 | 29 29 0a 28 6d 61 6b 65 | . -7863|)).(make|
|00001f70| 2d 76 61 72 69 61 62 6c | 65 2d 62 75 66 66 65 72 |-variabl|e-buffer|
|00001f80| 2d 6c 6f 63 61 6c 20 27 | 70 79 2d 69 6e 64 65 6e |-local '|py-inden|
|00001f90| 74 2d 6f 66 66 73 65 74 | 29 0a 23 40 39 38 20 51 |t-offset|).#@98 Q|
|00001fa0| 75 65 75 65 20 6f 66 20 | 50 79 74 68 6f 6e 20 74 |ueue of |Python t|
|00001fb0| 65 6d 70 20 66 69 6c 65 | 73 20 61 77 61 69 74 69 |emp file|s awaiti|
|00001fc0| 6e 67 20 65 78 65 63 75 | 74 69 6f 6e 2e 0a 43 75 |ng execu|tion..Cu|
|00001fd0| 72 72 65 6e 74 6c 79 2d | 61 63 74 69 76 65 20 66 |rrently-|active f|
|00001fe0| 69 6c 65 20 69 73 20 61 | 74 20 74 68 65 20 68 65 |ile is a|t the he|
|00001ff0| 61 64 20 6f 66 20 74 68 | 65 20 6c 69 73 74 2e 1f |ad of th|e list..|
|00002000| 0a 28 64 65 66 76 61 72 | 20 70 79 2d 66 69 6c 65 |.(defvar| py-file|
|00002010| 2d 71 75 65 75 65 20 6e | 69 6c 20 28 23 24 20 2e |-queue n|il (#$ .|
|00002020| 20 38 30 39 35 29 29 0a | 28 62 79 74 65 2d 63 6f | 8095)).|(byte-co|
|00002030| 64 65 20 22 c0 c1 c2 51 | 13 c3 0c 42 14 c5 c6 c1 |de "...Q|...B....|
|00002040| 0b c7 c8 b0 06 16 09 c9 | 0c 42 14 ca 16 0b cb 0c |........|.B......|
|00002050| 42 14 c5 cc cd ce c1 23 | cf 51 16 10 d0 0c 42 14 |B......#|.Q....B.|
|00002060| d1 16 12 d2 0c 42 14 c5 | cc cd d3 d4 d5 d6 d7 d8 |.....B..|........|
|00002070| 0e 12 d9 50 af 07 c1 23 | cf 51 16 1a da 0c 42 14 |...P...#|.Q....B.|
|00002080| db 16 1c dc 0c 42 14 dd | 16 1e de 0c 42 14 df 16 |.....B..|....B...|
|00002090| 20 e0 0c 42 14 c3 87 22 | 20 5b 22 27 5c 5c 28 5b | ..B..."| ["'\\([|
|000020a0| 5e 27 5c 6e 5c 5c 5d 5c | 5c 7c 5c 5c 5c 5c 2e 5c |^'\n\\]\|\|\\\\.\|
|000020b0| 5c 29 2a 27 22 20 22 5c | 5c 7c 22 20 22 5c 22 5c |\)*'" "\|\|" "\"\|
|000020c0| 5c 28 5b 5e 5c 22 5c 6e | 5c 5c 5d 5c 5c 7c 5c 5c |\([^\"\n|\\]\\|\\|
|000020d0| 5c 5c 2e 5c 5c 29 2a 5c | 22 22 20 70 79 2d 73 74 |\\.\\)*\|"" py-st|
|000020e0| 72 69 6e 67 6c 69 74 2d | 72 65 20 63 75 72 72 65 |ringlit-|re curre|
|000020f0| 6e 74 2d 6c 6f 61 64 2d | 6c 69 73 74 20 22 5c 5c |nt-load-|list "\\|
|00002100| 28 22 20 22 5b 5e 23 27 | 5c 22 5c 6e 5c 5c 5d 22 |(" "[^#'|\"\n\\]"|
|00002110| 20 22 5c 5c 29 2a 22 20 | 22 5c 5c 5c 5c 24 22 20 | "\\)*" |"\\\\$" |
|00002120| 70 79 2d 63 6f 6e 74 69 | 6e 75 65 64 2d 72 65 20 |py-conti|nued-re |
|00002130| 22 5b 20 09 5d 2a 5c 5c | 28 24 5c 5c 7c 23 5c 5c |"[ .]*\\|($\\|#\\|
|00002140| 29 22 20 70 79 2d 62 6c | 61 6e 6b 2d 6f 72 2d 63 |)" py-bl|ank-or-c|
|00002150| 6f 6d 6d 65 6e 74 2d 72 | 65 20 6d 61 70 63 6f 6e |omment-r|e mapcon|
|00002160| 63 61 74 20 69 64 65 6e | 74 69 74 79 20 28 22 65 |cat iden|tity ("e|
|00002170| 6c 73 65 3a 22 20 22 65 | 78 63 65 70 74 5c 5c 28 |lse:" "e|xcept\\(|
|00002180| 5c 5c 73 20 2b 2e 2a 5c | 5c 29 3f 3a 22 20 22 66 |\\s +.*\|\)?:" "f|
|00002190| 69 6e 61 6c 6c 79 3a 22 | 20 22 65 6c 69 66 5c 5c |inally:"| "elif\\|
|000021a0| 73 20 2b 2e 2a 3a 22 29 | 20 22 5c 5c 29 22 20 70 |s +.*:")| "\\)" p|
|000021b0| 79 2d 6f 75 74 64 65 6e | 74 2d 72 65 20 22 5c 5c |y-outden|t-re "\\|
|000021c0| 28 72 65 74 75 72 6e 5c | 5c 7c 72 61 69 73 65 5c |(return\|\|raise\|
|000021d0| 5c 7c 62 72 65 61 6b 5c | 5c 7c 63 6f 6e 74 69 6e |\|break\|\|contin|
|000021e0| 75 65 5c 5c 7c 70 61 73 | 73 5c 5c 29 22 20 70 79 |ue\\|pas|s\\)" py|
|000021f0| 2d 62 6c 6f 63 6b 2d 63 | 6c 6f 73 69 6e 67 2d 6b |-block-c|losing-k|
|00002200| 65 79 77 6f 72 64 73 2d | 72 65 20 22 74 72 79 3a |eywords-|re "try:|
|00002210| 22 20 22 65 78 63 65 70 | 74 5c 5c 28 5c 5c 73 20 |" "excep|t\\(\\s |
|00002220| 2b 2e 2a 5c 5c 29 3f 3a | 22 20 22 77 68 69 6c 65 |+.*\\)?:|" "while|
|00002230| 5c 5c 73 20 2b 2e 2a 3a | 22 20 22 66 6f 72 5c 5c |\\s +.*:|" "for\\|
|00002240| 73 20 2b 2e 2a 3a 22 20 | 22 69 66 5c 5c 73 20 2b |s +.*:" |"if\\s +|
|00002250| 2e 2a 3a 22 20 22 65 6c | 69 66 5c 5c 73 20 2b 2e |.*:" "el|if\\s +.|
|00002260| 2a 3a 22 20 22 5b 20 09 | 5c 6e 5d 22 20 70 79 2d |*:" "[ .|\n]" py-|
|00002270| 6e 6f 2d 6f 75 74 64 65 | 6e 74 2d 72 65 20 22 5e |no-outde|nt-re "^|
|00002280| 5c 5c 28 5b 20 09 5d 2a | 5c 5c 29 64 65 66 5b 20 |\\([ .]*|\\)def[ |
|00002290| 09 5d 2b 5c 5c 28 5b 61 | 2d 7a 41 2d 5a 5f 30 2d |.]+\\([a|-zA-Z_0-|
|000022a0| 39 5d 2b 5c 5c 29 5c 5c | 7c 5c 5c 28 5e 5b 61 2d |9]+\\)\\||\\(^[a-|
|000022b0| 7a 41 2d 5a 5f 30 2d 39 | 5d 2b 5c 5c 29 5b 20 09 |zA-Z_0-9|]+\\)[ .|
|000022c0| 5d 2a 3d 22 20 70 79 2d | 64 65 66 75 6e 2d 73 74 |]*=" py-|defun-st|
|000022d0| 61 72 74 2d 72 65 20 22 | 5e 63 6c 61 73 73 5b 20 |art-re "|^class[ |
|000022e0| 09 5d 2a 5c 5c 28 5b 61 | 2d 7a 41 2d 5a 5f 30 2d |.]*\\([a|-zA-Z_0-|
|000022f0| 39 5d 2b 5c 5c 29 22 20 | 70 79 2d 63 6c 61 73 73 |9]+\\)" |py-class|
|00002300| 2d 73 74 61 72 74 2d 72 | 65 20 22 5b 20 09 5d 2b |-start-r|e "[ .]+|
|00002310| 46 69 6c 65 20 5c 22 5c | 5c 28 5b 5e 5c 22 5d 2b |File \"\|\([^\"]+|
|00002320| 5c 5c 29 5c 22 2c 20 6c | 69 6e 65 20 5c 5c 28 5b |\\)\", l|ine \\([|
|00002330| 30 2d 39 5d 2b 5c 5c 29 | 22 20 70 79 2d 74 72 61 |0-9]+\\)|" py-tra|
|00002340| 63 65 62 61 63 6b 2d 6c | 69 6e 65 2d 72 65 5d 20 |ceback-l|ine-re] |
|00002350| 31 31 29 0a 28 64 65 66 | 61 6c 69 61 73 20 27 70 |11).(def|alias 'p|
|00002360| 79 2d 73 61 66 65 20 27 | 28 6d 61 63 72 6f 20 2e |y-safe '|(macro .|
|00002370| 20 23 5b 28 26 72 65 73 | 74 20 62 6f 64 79 29 20 | #[(&res|t body) |
|00002380| 22 c0 c1 c2 0b 42 c4 42 | 42 42 87 22 20 5b 63 6f |"....B.B|BB." [co|
|00002390| 6e 64 69 74 69 6f 6e 2d | 63 61 73 65 20 6e 69 6c |ndition-|case nil|
|000023a0| 20 70 72 6f 67 6e 20 62 | 6f 64 79 20 28 28 65 72 | progn b|ody ((er|
|000023b0| 72 6f 72 20 6e 69 6c 29 | 29 5d 20 34 5d 29 29 0a |ror nil)|)] 4])).|
|000023c0| 28 64 65 66 61 6c 69 61 | 73 20 27 70 79 2d 6b 65 |(defalia|s 'py-ke|
|000023d0| 65 70 2d 72 65 67 69 6f | 6e 2d 61 63 74 69 76 65 |ep-regio|n-active|
|000023e0| 20 23 5b 6e 69 6c 20 22 | c0 c1 21 ad 83 c2 89 11 | #[nil "|..!.....|
|000023f0| 87 22 20 5b 62 6f 75 6e | 64 70 20 7a 6d 61 63 73 |." [boun|dp zmacs|
|00002400| 2d 72 65 67 69 6f 6e 2d | 73 74 61 79 73 20 74 5d |-region-|stays t]|
|00002410| 20 32 5d 29 0a 28 62 79 | 74 65 2d 63 6f 64 65 20 | 2]).(by|te-code |
|00002420| 22 c0 c1 4e c2 73 ac 85 | c3 c4 c0 5c 22 88 c5 c0 |"..N.s..|...\"...|
|00002430| c1 c6 23 87 22 20 5b 70 | 79 2d 6b 65 65 70 2d 72 |..#." [p|y-keep-r|
|00002440| 65 67 69 6f 6e 2d 61 63 | 74 69 76 65 20 62 79 74 |egion-ac|tive byt|
|00002450| 65 2d 6f 70 74 69 6d 69 | 7a 65 72 20 28 6e 69 6c |e-optimi|zer (nil|
|00002460| 20 62 79 74 65 2d 63 6f | 6d 70 69 6c 65 2d 69 6e | byte-co|mpile-in|
|00002470| 6c 69 6e 65 2d 65 78 70 | 61 6e 64 29 20 65 72 72 |line-exp|and) err|
|00002480| 6f 72 20 22 25 73 20 61 | 6c 72 65 61 64 79 20 68 |or "%s a|lready h|
|00002490| 61 73 20 61 20 62 79 74 | 65 2d 6f 70 74 69 6d 69 |as a byt|e-optimi|
|000024a0| 7a 65 72 2c 20 63 61 6e | 27 74 20 6d 61 6b 65 20 |zer, can|'t make |
|000024b0| 69 74 20 69 6e 6c 69 6e | 65 22 20 70 75 74 20 62 |it inlin|e" put b|
|000024c0| 79 74 65 2d 63 6f 6d 70 | 69 6c 65 2d 69 6e 6c 69 |yte-comp|ile-inli|
|000024d0| 6e 65 2d 65 78 70 61 6e | 64 5d 20 34 29 0a 28 64 |ne-expan|d] 4).(d|
|000024e0| 65 66 61 6c 69 61 73 20 | 27 70 79 2d 70 6f 69 6e |efalias |'py-poin|
|000024f0| 74 20 23 5b 28 70 6f 73 | 69 74 69 6f 6e 29 20 22 |t #[(pos|ition) "|
|00002500| 60 18 09 c2 61 ab 85 c3 | 79 88 aa b7 09 c4 61 ab |`...a...|y.....a.|
|00002510| 85 c5 7f 88 aa ad 09 c6 | 61 ab 85 c7 20 88 aa a3 |........|a... ...|
|00002520| 09 c8 61 ab 85 c9 20 88 | aa 99 09 ca 61 ab 85 cb |..a... .|....a...|
|00002530| 20 88 aa 8f 09 cc 61 ab | 85 cd 20 88 aa 85 ce cf | .....a.|.. .....|
|00002540| 09 5c 22 88 60 08 62 88 | 29 87 22 20 5b 68 65 72 |.\".`.b.|)." [her|
|00002550| 65 20 70 6f 73 69 74 69 | 6f 6e 20 62 6f 6c 20 30 |e positi|on bol 0|
|00002560| 20 65 6f 6c 20 6e 69 6c | 20 62 6f 64 20 62 65 67 | eol nil| bod beg|
|00002570| 69 6e 6e 69 6e 67 2d 6f | 66 2d 70 79 74 68 6f 6e |inning-o|f-python|
|00002580| 2d 64 65 66 2d 6f 72 2d | 63 6c 61 73 73 20 62 6f |-def-or-|class bo|
|00002590| 62 20 62 65 67 69 6e 6e | 69 6e 67 2d 6f 66 2d 62 |b beginn|ing-of-b|
|000025a0| 75 66 66 65 72 20 65 6f | 62 20 65 6e 64 2d 6f 66 |uffer eo|b end-of|
|000025b0| 2d 62 75 66 66 65 72 20 | 62 6f 69 20 62 61 63 6b |-buffer |boi back|
|000025c0| 2d 74 6f 2d 69 6e 64 65 | 6e 74 61 74 69 6f 6e 20 |-to-inde|ntation |
|000025d0| 65 72 72 6f 72 20 22 75 | 6e 6b 6e 6f 77 6e 20 62 |error "u|nknown b|
|000025e0| 75 66 66 65 72 20 70 6f | 73 69 74 69 6f 6e 20 72 |uffer po|sition r|
|000025f0| 65 71 75 65 73 74 65 64 | 3a 20 25 73 22 5d 20 33 |equested|: %s"] 3|
|00002600| 5d 29 0a 28 62 79 74 65 | 2d 63 6f 64 65 20 22 c0 |]).(byte|-code ".|
|00002610| c1 4e c2 73 ac 85 c3 c4 | c0 5c 22 88 c5 c0 c1 c6 |.N.s....|.\".....|
|00002620| 23 87 22 20 5b 70 79 2d | 70 6f 69 6e 74 20 62 79 |#." [py-|point by|
|00002630| 74 65 2d 6f 70 74 69 6d | 69 7a 65 72 20 28 6e 69 |te-optim|izer (ni|
|00002640| 6c 20 62 79 74 65 2d 63 | 6f 6d 70 69 6c 65 2d 69 |l byte-c|ompile-i|
|00002650| 6e 6c 69 6e 65 2d 65 78 | 70 61 6e 64 29 20 65 72 |nline-ex|pand) er|
|00002660| 72 6f 72 20 22 25 73 20 | 61 6c 72 65 61 64 79 20 |ror "%s |already |
|00002670| 68 61 73 20 61 20 62 79 | 74 65 2d 6f 70 74 69 6d |has a by|te-optim|
|00002680| 69 7a 65 72 2c 20 63 61 | 6e 27 74 20 6d 61 6b 65 |izer, ca|n't make|
|00002690| 20 69 74 20 69 6e 6c 69 | 6e 65 22 20 70 75 74 20 | it inli|ne" put |
|000026a0| 62 79 74 65 2d 63 6f 6d | 70 69 6c 65 2d 69 6e 6c |byte-com|pile-inl|
|000026b0| 69 6e 65 2d 65 78 70 61 | 6e 64 5d 20 34 29 0a 28 |ine-expa|nd] 4).(|
|000026c0| 64 65 66 61 6c 69 61 73 | 20 27 70 79 2d 68 69 67 |defalias| 'py-hig|
|000026d0| 68 6c 69 67 68 74 2d 6c | 69 6e 65 20 23 5b 28 66 |hlight-l|ine #[(f|
|000026e0| 72 6f 6d 20 74 6f 20 66 | 69 6c 65 20 6c 69 6e 65 |rom to f|ile line|
|000026f0| 29 20 22 c0 c1 21 ab 9d | c1 5c 6e 0b 5c 22 1c c5 |) "..!..|.\n.\"..|
|00002700| 0c c6 c7 23 88 c5 0c c8 | 0e 09 0e 5c 6e 42 23 88 |...#....|...\nB#.|
|00002710| c5 0c cb 0e 0c 23 29 87 | cd 87 22 20 5b 66 62 6f |.....#).|.." [fbo|
|00002720| 75 6e 64 70 20 6d 61 6b | 65 2d 65 78 74 65 6e 74 |undp mak|e-extent|
|00002730| 20 66 72 6f 6d 20 74 6f | 20 65 20 73 65 74 2d 65 | from to| e set-e|
|00002740| 78 74 65 6e 74 2d 70 72 | 6f 70 65 72 74 79 20 6d |xtent-pr|operty m|
|00002750| 6f 75 73 65 2d 66 61 63 | 65 20 68 69 67 68 6c 69 |ouse-fac|e highli|
|00002760| 67 68 74 20 70 79 2d 65 | 78 63 2d 69 6e 66 6f 20 |ght py-e|xc-info |
|00002770| 66 69 6c 65 20 6c 69 6e | 65 20 6b 65 79 6d 61 70 |file lin|e keymap|
|00002780| 20 70 79 2d 6d 6f 64 65 | 2d 6f 75 74 70 75 74 2d | py-mode|-output-|
|00002790| 6d 61 70 20 74 5d 20 35 | 5d 29 0a 28 62 79 74 65 |map t] 5|]).(byte|
|000027a0| 2d 63 6f 64 65 20 22 c0 | c1 4e c2 73 ac 85 c3 c4 |-code ".|.N.s....|
|000027b0| c0 5c 22 88 c5 c0 c1 c6 | 23 87 22 20 5b 70 79 2d |.\".....|#." [py-|
|000027c0| 68 69 67 68 6c 69 67 68 | 74 2d 6c 69 6e 65 20 62 |highligh|t-line b|
|000027d0| 79 74 65 2d 6f 70 74 69 | 6d 69 7a 65 72 20 28 6e |yte-opti|mizer (n|
|000027e0| 69 6c 20 62 79 74 65 2d | 63 6f 6d 70 69 6c 65 2d |il byte-|compile-|
|000027f0| 69 6e 6c 69 6e 65 2d 65 | 78 70 61 6e 64 29 20 65 |inline-e|xpand) e|
|00002800| 72 72 6f 72 20 22 25 73 | 20 61 6c 72 65 61 64 79 |rror "%s| already|
|00002810| 20 68 61 73 20 61 20 62 | 79 74 65 2d 6f 70 74 69 | has a b|yte-opti|
|00002820| 6d 69 7a 65 72 2c 20 63 | 61 6e 27 74 20 6d 61 6b |mizer, c|an't mak|
|00002830| 65 20 69 74 20 69 6e 6c | 69 6e 65 22 20 70 75 74 |e it inl|ine" put|
|00002840| 20 62 79 74 65 2d 63 6f | 6d 70 69 6c 65 2d 69 6e | byte-co|mpile-in|
|00002850| 6c 69 6e 65 2d 65 78 70 | 61 6e 64 5d 20 34 29 0a |line-exp|and] 4).|
|00002860| 23 40 34 37 20 41 62 62 | 72 65 76 20 74 61 62 6c |#@47 Abb|rev tabl|
|00002870| 65 20 69 6e 20 75 73 65 | 20 69 6e 20 60 70 79 74 |e in use| in `pyt|
|00002880| 68 6f 6e 2d 6d 6f 64 65 | 27 20 62 75 66 66 65 72 |hon-mode|' buffer|
|00002890| 73 2e 1f 0a 28 64 65 66 | 76 61 72 20 70 79 74 68 |s...(def|var pyth|
|000028a0| 6f 6e 2d 6d 6f 64 65 2d | 61 62 62 72 65 76 2d 74 |on-mode-|abbrev-t|
|000028b0| 61 62 6c 65 20 6e 69 6c | 20 28 23 24 20 2e 20 31 |able nil| (#$ . 1|
|000028c0| 30 33 34 31 29 29 0a 28 | 64 65 66 69 6e 65 2d 61 |0341)).(|define-a|
|000028d0| 62 62 72 65 76 2d 74 61 | 62 6c 65 20 27 70 79 74 |bbrev-ta|ble 'pyt|
|000028e0| 68 6f 6e 2d 6d 6f 64 65 | 2d 61 62 62 72 65 76 2d |hon-mode|-abbrev-|
|000028f0| 74 61 62 6c 65 20 6e 69 | 6c 29 0a 23 40 33 32 20 |table ni|l).#@32 |
|00002900| 2a 48 6f 6f 6b 20 63 61 | 6c 6c 65 64 20 62 79 20 |*Hook ca|lled by |
|00002910| 60 70 79 74 68 6f 6e 2d | 6d 6f 64 65 27 2e 1f 0a |`python-|mode'...|
|00002920| 28 64 65 66 76 61 72 20 | 70 79 74 68 6f 6e 2d 6d |(defvar |python-m|
|00002930| 6f 64 65 2d 68 6f 6f 6b | 20 6e 69 6c 20 28 23 24 |ode-hook| nil (#$|
|00002940| 20 2e 20 2d 31 30 34 39 | 36 29 29 0a 28 62 79 74 | . -1049|6)).(byt|
|00002950| 65 2d 63 6f 64 65 20 22 | c0 c1 21 ab 85 c1 c2 c3 |e-code "|..!.....|
|00002960| 5c 22 88 c0 87 22 20 5b | 66 62 6f 75 6e 64 70 20 |\"..." [|fboundp |
|00002970| 6d 61 6b 65 2d 6f 62 73 | 6f 6c 65 74 65 2d 76 61 |make-obs|olete-va|
|00002980| 72 69 61 62 6c 65 20 70 | 79 2d 6d 6f 64 65 2d 68 |riable p|y-mode-h|
|00002990| 6f 6f 6b 20 70 79 74 68 | 6f 6e 2d 6d 6f 64 65 2d |ook pyth|on-mode-|
|000029a0| 68 6f 6f 6b 5d 20 33 29 | 0a 23 40 33 39 20 4b 65 |hook] 3)|.#@39 Ke|
|000029b0| 79 6d 61 70 20 75 73 65 | 64 20 69 6e 20 60 70 79 |ymap use|d in `py|
|000029c0| 74 68 6f 6e 2d 6d 6f 64 | 65 27 20 62 75 66 66 65 |thon-mod|e' buffe|
|000029d0| 72 73 2e 1f 0a 28 64 65 | 66 76 61 72 20 70 79 2d |rs...(de|fvar py-|
|000029e0| 6d 6f 64 65 2d 6d 61 70 | 20 6e 69 6c 20 28 23 24 |mode-map| nil (#$|
|000029f0| 20 2e 20 31 30 36 37 30 | 29 29 0a 28 62 79 74 65 | . 10670|)).(byte|
|00002a00| 2d 63 6f 64 65 20 22 08 | 84 bd 00 c1 20 10 c2 08 |-code ".|.... ...|
|00002a10| c3 c4 23 88 c2 08 c5 c6 | 23 88 c2 08 c7 c8 23 88 |..#.....|#.....#.|
|00002a20| c2 08 c9 c6 23 88 c2 08 | ca c8 23 88 c2 08 cb cc |....#...|..#.....|
|00002a30| 23 88 c2 08 cd ce 23 88 | c2 08 cf d0 23 88 d1 d2 |#.....#.|....#...|
|00002a40| 21 ac 88 c2 08 d3 d4 23 | 88 aa 8c c2 08 d5 d6 23 |!......#|.......#|
|00002a50| 88 c2 08 d7 d4 23 88 c2 | 08 d8 d9 23 88 c2 08 da |.....#..|...#....|
|00002a60| db 23 88 c2 08 dc dd 23 | 88 c2 08 de df 23 88 c2 |.#.....#|.....#..|
|00002a70| 08 e0 e1 23 88 c2 08 e2 | e3 23 88 c2 08 e4 e5 23 |...#....|.#.....#|
|00002a80| 88 c2 08 e6 e7 23 88 c2 | 08 e8 e9 23 88 c2 08 ea |.....#..|...#....|
|00002a90| e9 23 88 c2 08 eb ec 23 | 88 c2 08 ed ee 23 88 c2 |.#.....#|.....#..|
|00002aa0| 08 ef f0 23 88 c2 08 f1 | f2 23 88 c2 08 f3 f4 23 |...#....|.#.....#|
|00002ab0| 88 c2 08 f5 f6 23 88 c2 | 08 f7 f8 23 88 f9 fa fb |.....#..|...#....|
|00002ac0| fc 21 5c 22 88 c1 87 22 | 20 5b 70 79 2d 6d 6f 64 |.!\"..."| [py-mod|
|00002ad0| 65 2d 6d 61 70 20 6d 61 | 6b 65 2d 73 70 61 72 73 |e-map ma|ke-spars|
|00002ae0| 65 2d 6b 65 79 6d 61 70 | 20 64 65 66 69 6e 65 2d |e-keymap| define-|
|00002af0| 6b 65 79 20 22 3a 22 20 | 70 79 2d 65 6c 65 63 74 |key ":" |py-elect|
|00002b00| 72 69 63 2d 63 6f 6c 6f | 6e 20 22 03 0c 22 20 70 |ric-colo|n ".." p|
|00002b10| 79 2d 73 68 69 66 74 2d | 72 65 67 69 6f 6e 2d 6c |y-shift-|region-l|
|00002b20| 65 66 74 20 22 03 12 22 | 20 70 79 2d 73 68 69 66 |eft ".."| py-shif|
|00002b30| 74 2d 72 65 67 69 6f 6e | 2d 72 69 67 68 74 20 22 |t-region|-right "|
|00002b40| 03 3c 22 20 22 03 3e 22 | 20 22 03 03 22 20 70 79 |.<" ".>"| ".." py|
|00002b50| 2d 65 78 65 63 75 74 65 | 2d 62 75 66 66 65 72 20 |-execute|-buffer |
|00002b60| 22 03 7c 22 20 70 79 2d | 65 78 65 63 75 74 65 2d |".|" py-|execute-|
|00002b70| 72 65 67 69 6f 6e 20 22 | 03 21 22 20 70 79 2d 73 |region "|.!" py-s|
|00002b80| 68 65 6c 6c 20 62 6f 75 | 6e 64 70 20 64 65 6c 65 |hell bou|ndp dele|
|00002b90| 74 65 2d 6b 65 79 2d 64 | 65 6c 65 74 65 73 2d 66 |te-key-d|eletes-f|
|00002ba0| 6f 72 77 61 72 64 20 22 | 7f 22 20 70 79 2d 65 6c |orward "|." py-el|
|00002bb0| 65 63 74 72 69 63 2d 62 | 61 63 6b 73 70 61 63 65 |ectric-b|ackspace|
|00002bc0| 20 5b 64 65 6c 65 74 65 | 5d 20 70 79 2d 65 6c 65 | [delete|] py-ele|
|00002bd0| 63 74 72 69 63 2d 64 65 | 6c 65 74 65 20 5b 62 61 |ctric-de|lete [ba|
|00002be0| 63 6b 73 70 61 63 65 5d | 20 5b 28 63 6f 6e 74 72 |ckspace]| [(contr|
|00002bf0| 6f 6c 20 6d 65 74 61 20 | 68 29 5d 20 70 79 2d 6d |ol meta |h)] py-m|
|00002c00| 61 72 6b 2d 64 65 66 2d | 6f 72 2d 63 6c 61 73 73 |ark-def-|or-class|
|00002c10| 20 22 03 0b 22 20 70 79 | 2d 6d 61 72 6b 2d 62 6c | ".." py|-mark-bl|
|00002c20| 6f 63 6b 20 22 03 3a 22 | 20 70 79 2d 67 75 65 73 |ock ".:"| py-gues|
|00002c30| 73 2d 69 6e 64 65 6e 74 | 2d 6f 66 66 73 65 74 20 |s-indent|-offset |
|00002c40| 22 03 09 22 20 70 79 2d | 69 6e 64 65 6e 74 2d 72 |".." py-|indent-r|
|00002c50| 65 67 69 6f 6e 20 22 03 | 0e 22 20 70 79 2d 6e 65 |egion ".|." py-ne|
|00002c60| 78 74 2d 73 74 61 74 65 | 6d 65 6e 74 20 22 03 10 |xt-state|ment "..|
|00002c70| 22 20 70 79 2d 70 72 65 | 76 69 6f 75 73 2d 73 74 |" py-pre|vious-st|
|00002c80| 61 74 65 6d 65 6e 74 20 | 22 03 15 22 20 70 79 2d |atement |".." py-|
|00002c90| 67 6f 74 6f 2d 62 6c 6f | 63 6b 2d 75 70 20 22 03 |goto-blo|ck-up ".|
|00002ca0| 23 22 20 70 79 2d 63 6f | 6d 6d 65 6e 74 2d 72 65 |#" py-co|mment-re|
|00002cb0| 67 69 6f 6e 20 22 03 3f | 22 20 70 79 2d 64 65 73 |gion ".?|" py-des|
|00002cc0| 63 72 69 62 65 2d 6d 6f | 64 65 20 22 03 08 6d 22 |cribe-mo|de "..m"|
|00002cd0| 20 22 1b 01 22 20 62 65 | 67 69 6e 6e 69 6e 67 2d | ".." be|ginning-|
|00002ce0| 6f 66 2d 70 79 74 68 6f | 6e 2d 64 65 66 2d 6f 72 |of-pytho|n-def-or|
|00002cf0| 2d 63 6c 61 73 73 20 22 | 1b 05 22 20 65 6e 64 2d |-class "|.." end-|
|00002d00| 6f 66 2d 70 79 74 68 6f | 6e 2d 64 65 66 2d 6f 72 |of-pytho|n-def-or|
|00002d10| 2d 63 6c 61 73 73 20 22 | 03 2d 22 20 70 79 2d 75 |-class "|.-" py-u|
|00002d20| 70 2d 65 78 63 65 70 74 | 69 6f 6e 20 22 03 3d 22 |p-except|ion ".="|
|00002d30| 20 70 79 2d 64 6f 77 6e | 2d 65 78 63 65 70 74 69 | py-down|-excepti|
|00002d40| 6f 6e 20 22 03 02 22 20 | 70 79 2d 73 75 62 6d 69 |on ".." |py-submi|
|00002d50| 74 2d 62 75 67 2d 72 65 | 70 6f 72 74 20 22 03 16 |t-bug-re|port "..|
|00002d60| 22 20 70 79 2d 76 65 72 | 73 69 6f 6e 20 22 5c 6e |" py-ver|sion "\n|
|00002d70| 22 20 70 79 2d 6e 65 77 | 6c 69 6e 65 2d 61 6e 64 |" py-new|line-and|
|00002d80| 2d 69 6e 64 65 6e 74 20 | 6d 61 70 63 61 72 20 23 |-indent |mapcar #|
|00002d90| 5b 28 6b 65 79 29 20 22 | c0 09 5c 6e c3 23 87 22 |[(key) "|..\n.#."|
|00002da0| 20 5b 64 65 66 69 6e 65 | 2d 6b 65 79 20 70 79 2d | [define|-key py-|
|00002db0| 6d 6f 64 65 2d 6d 61 70 | 20 6b 65 79 20 70 79 2d |mode-map| key py-|
|00002dc0| 6e 65 77 6c 69 6e 65 2d | 61 6e 64 2d 69 6e 64 65 |newline-|and-inde|
|00002dd0| 6e 74 5d 20 34 5d 20 77 | 68 65 72 65 2d 69 73 2d |nt] 4] w|here-is-|
|00002de0| 69 6e 74 65 72 6e 61 6c | 20 6e 65 77 6c 69 6e 65 |internal| newline|
|00002df0| 2d 61 6e 64 2d 69 6e 64 | 65 6e 74 5d 20 34 29 0a |-and-ind|ent] 4).|
|00002e00| 23 40 34 31 20 4b 65 79 | 6d 61 70 20 75 73 65 64 |#@41 Key|map used|
|00002e10| 20 69 6e 20 2a 50 79 74 | 68 6f 6e 20 4f 75 74 70 | in *Pyt|hon Outp|
|00002e20| 75 74 2a 20 62 75 66 66 | 65 72 73 2a 1f 0a 28 64 |ut* buff|ers*..(d|
|00002e30| 65 66 76 61 72 20 70 79 | 2d 6d 6f 64 65 2d 6f 75 |efvar py|-mode-ou|
|00002e40| 74 70 75 74 2d 6d 61 70 | 20 6e 69 6c 20 28 23 24 |tput-map| nil (#$|
|00002e50| 20 2e 20 31 31 37 38 31 | 29 29 0a 28 62 79 74 65 | . 11781|)).(byte|
|00002e60| 2d 63 6f 64 65 20 22 08 | ac 96 c1 20 10 c2 08 c3 |-code ".|... ....|
|00002e70| c4 23 88 c2 08 c5 c6 23 | 88 c7 c8 c9 ca 21 5c 22 |.#.....#|.....!\"|
|00002e80| 88 c1 87 22 20 5b 70 79 | 2d 6d 6f 64 65 2d 6f 75 |..." [py|-mode-ou|
|00002e90| 74 70 75 74 2d 6d 61 70 | 20 6d 61 6b 65 2d 73 70 |tput-map| make-sp|
|00002ea0| 61 72 73 65 2d 6b 65 79 | 6d 61 70 20 64 65 66 69 |arse-key|map defi|
|00002eb0| 6e 65 2d 6b 65 79 20 5b | 62 75 74 74 6f 6e 32 5d |ne-key [|button2]|
|00002ec0| 20 70 79 2d 6d 6f 75 73 | 65 74 6f 2d 65 78 63 65 | py-mous|eto-exce|
|00002ed0| 70 74 69 6f 6e 20 22 03 | 03 22 20 70 79 2d 67 6f |ption ".|." py-go|
|00002ee0| 74 6f 2d 65 78 63 65 70 | 74 69 6f 6e 20 6d 61 70 |to-excep|tion map|
|00002ef0| 63 61 72 20 23 5b 28 6b | 65 79 29 20 22 c0 09 5c |car #[(k|ey) "..\|
|00002f00| 6e c3 23 87 22 20 5b 64 | 65 66 69 6e 65 2d 6b 65 |n.#." [d|efine-ke|
|00002f10| 79 20 70 79 2d 6d 6f 64 | 65 2d 6f 75 74 70 75 74 |y py-mod|e-output|
|00002f20| 2d 6d 61 70 20 6b 65 79 | 20 23 5b 6e 69 6c 20 22 |-map key| #[nil "|
|00002f30| c0 20 87 22 20 5b 62 65 | 65 70 5d 20 31 20 6e 69 |. ." [be|ep] 1 ni|
|00002f40| 6c 20 6e 69 6c 5d 5d 20 | 34 5d 20 77 68 65 72 65 |l nil]] |4] where|
|00002f50| 2d 69 73 2d 69 6e 74 65 | 72 6e 61 6c 20 73 65 6c |-is-inte|rnal sel|
|00002f60| 66 2d 69 6e 73 65 72 74 | 2d 63 6f 6d 6d 61 6e 64 |f-insert|-command|
|00002f70| 5d 20 34 29 0a 23 40 34 | 35 20 53 79 6e 74 61 78 |] 4).#@4|5 Syntax|
|00002f80| 20 74 61 62 6c 65 20 75 | 73 65 64 20 69 6e 20 60 | table u|sed in `|
|00002f90| 70 79 74 68 6f 6e 2d 6d | 6f 64 65 27 20 62 75 66 |python-m|ode' buf|
|00002fa0| 66 65 72 73 2e 1f 0a 28 | 64 65 66 76 61 72 20 70 |fers...(|defvar p|
|00002fb0| 79 2d 6d 6f 64 65 2d 73 | 79 6e 74 61 78 2d 74 61 |y-mode-s|yntax-ta|
|00002fc0| 62 6c 65 20 6e 69 6c 20 | 28 23 24 20 2e 20 31 32 |ble nil |(#$ . 12|
|00002fd0| 31 35 34 29 29 0a 28 62 | 79 74 65 2d 63 6f 64 65 |154)).(b|yte-code|
|00002fe0| 20 22 08 84 91 00 c1 20 | 10 c2 c3 c4 08 23 88 c2 | "..... |.....#..|
|00002ff0| c5 c6 08 23 88 c2 c7 c8 | 08 23 88 c2 c9 ca 08 23 |...#....|.#.....#|
|00003000| 88 c2 cb cc 08 23 88 c2 | cd ce 08 23 88 c2 cf d0 |.....#..|...#....|
|00003010| 08 23 88 c2 d1 d0 08 23 | 88 c2 d2 d0 08 23 88 c2 |.#.....#|.....#..|
|00003020| d3 d0 08 23 88 c2 d4 d0 | 08 23 88 c2 d5 d0 08 23 |...#....|.#.....#|
|00003030| 88 c2 d6 d0 08 23 88 c2 | d7 d0 08 23 88 c2 d8 d0 |.....#..|...#....|
|00003040| 08 23 88 c2 d9 d0 08 23 | 88 c2 da d0 08 23 88 c2 |.#.....#|.....#..|
|00003050| db dc 08 23 88 c2 dd de | 08 23 88 c2 df de 08 23 |...#....|.#.....#|
|00003060| 88 c2 e0 e1 08 23 88 c2 | e2 e3 08 23 88 c2 e4 e5 |.....#..|...#....|
|00003070| 08 23 88 c1 87 22 20 5b | 70 79 2d 6d 6f 64 65 2d |.#..." [|py-mode-|
|00003080| 73 79 6e 74 61 78 2d 74 | 61 62 6c 65 20 6d 61 6b |syntax-t|able mak|
|00003090| 65 2d 73 79 6e 74 61 78 | 2d 74 61 62 6c 65 20 6d |e-syntax|-table m|
|000030a0| 6f 64 69 66 79 2d 73 79 | 6e 74 61 78 2d 65 6e 74 |odify-sy|ntax-ent|
|000030b0| 72 79 20 3f 5c 28 20 22 | 28 29 22 20 3f 5c 29 20 |ry ?\( "|()" ?\) |
|000030c0| 22 29 28 22 20 3f 5c 5b | 20 22 28 5d 22 20 3f 5c |")(" ?\[| "(]" ?\|
|000030d0| 5d 20 22 29 5b 22 20 3f | 5c 7b 20 22 28 7d 22 20 |] ")[" ?|\{ "(}" |
|000030e0| 3f 5c 7d 20 22 29 7b 22 | 20 3f 5c 24 20 22 2e 22 |?\} "){"| ?\$ "."|
|000030f0| 20 3f 5c 25 20 3f 5c 26 | 20 3f 5c 2a 20 3f 5c 2b | ?\% ?\&| ?\* ?\+|
|00003100| 20 3f 5c 2d 20 3f 5c 2f | 20 3f 5c 3c 20 3f 5c 3d | ?\- ?\/| ?\< ?\=|
|00003110| 20 3f 5c 3e 20 3f 5c 7c | 20 3f 5c 5f 20 22 77 22 | ?\> ?\|| ?\_ "w"|
|00003120| 20 3f 5c 27 20 22 5c 22 | 22 20 3f 5c 22 20 3f 5c | ?\' "\"|" ?\" ?\|
|00003130| 60 20 22 24 22 20 3f 5c | 23 20 22 3c 22 20 3f 5c |` "$" ?\|# "<" ?\|
|00003140| 6e 20 22 3e 22 5d 20 34 | 29 0a 23 40 31 36 31 20 |n ">"] 4|).#@161 |
|00003150| 4d 65 6e 75 20 66 6f 72 | 20 50 79 74 68 6f 6e 20 |Menu for| Python |
|00003160| 4d 6f 64 65 2e 0a 54 68 | 69 73 20 6d 65 6e 75 20 |Mode..Th|is menu |
|00003170| 77 69 6c 6c 20 67 65 74 | 20 63 72 65 61 74 65 64 |will get| created|
|00003180| 20 61 75 74 6f 6d 61 74 | 69 63 61 6c 6c 79 20 69 | automat|ically i|
|00003190| 66 20 79 6f 75 20 68 61 | 76 65 20 74 68 65 20 60 |f you ha|ve the `|
|000031a0| 65 61 73 79 6d 65 6e 75 | 27 0a 70 61 63 6b 61 67 |easymenu|'.packag|
|000031b0| 65 2e 20 20 4e 6f 74 65 | 20 74 68 61 74 20 74 68 |e. Note| that th|
|000031c0| 65 20 6c 61 74 65 73 74 | 20 58 2f 45 6d 61 63 73 |e latest| X/Emacs|
|000031d0| 20 72 65 6c 65 61 73 65 | 73 20 63 6f 6e 74 61 69 | release|s contai|
|000031e0| 6e 20 74 68 69 73 20 70 | 61 63 6b 61 67 65 2e 1f |n this p|ackage..|
|000031f0| 0a 28 64 65 66 76 61 72 | 20 70 79 2d 6d 65 6e 75 |.(defvar| py-menu|
|00003200| 20 6e 69 6c 20 28 23 24 | 20 2e 20 31 32 36 32 34 | nil (#$| . 12624|
|00003210| 29 29 0a 28 62 79 74 65 | 2d 63 6f 64 65 20 22 c0 |)).(byte|-code ".|
|00003220| c1 c2 8f ab 99 c3 c4 21 | ac 82 c0 14 c4 0d 42 15 |.......!|......B.|
|00003230| c6 c4 c7 c8 23 88 c9 c4 | 0e 5c 6e c8 cb 24 88 c0 |....#...|.\n..$..|
|00003240| 87 22 20 5b 6e 69 6c 20 | 28 62 79 74 65 2d 63 6f |." [nil |(byte-co|
|00003250| 64 65 20 22 c0 c1 21 88 | c2 87 22 20 5b 72 65 71 |de "..!.|.." [req|
|00003260| 75 69 72 65 20 65 61 73 | 79 6d 65 6e 75 20 74 5d |uire eas|ymenu t]|
|00003270| 20 32 29 20 28 28 65 72 | 72 6f 72 29 29 20 62 6f | 2) ((er|ror)) bo|
|00003280| 75 6e 64 70 20 70 79 2d | 6d 65 6e 75 20 63 75 72 |undp py-|menu cur|
|00003290| 72 65 6e 74 2d 6c 6f 61 | 64 2d 6c 69 73 74 20 70 |rent-loa|d-list p|
|000032a0| 75 74 20 76 61 72 69 61 | 62 6c 65 2d 64 6f 63 75 |ut varia|ble-docu|
|000032b0| 6d 65 6e 74 61 74 69 6f | 6e 20 22 50 79 74 68 6f |mentatio|n "Pytho|
|000032c0| 6e 20 4d 6f 64 65 20 6d | 65 6e 75 22 20 65 61 73 |n Mode m|enu" eas|
|000032d0| 79 2d 6d 65 6e 75 2d 64 | 6f 2d 64 65 66 69 6e 65 |y-menu-d|o-define|
|000032e0| 20 70 79 2d 6d 6f 64 65 | 2d 6d 61 70 20 28 22 50 | py-mode|-map ("P|
|000032f0| 79 74 68 6f 6e 22 20 5b | 22 43 6f 6d 6d 65 6e 74 |ython" [|"Comment|
|00003300| 20 4f 75 74 20 52 65 67 | 69 6f 6e 22 20 70 79 2d | Out Reg|ion" py-|
|00003310| 63 6f 6d 6d 65 6e 74 2d | 72 65 67 69 6f 6e 20 28 |comment-|region (|
|00003320| 6d 61 72 6b 29 5d 20 5b | 22 55 6e 63 6f 6d 6d 65 |mark)] [|"Uncomme|
|00003330| 6e 74 20 52 65 67 69 6f | 6e 22 20 28 70 79 2d 63 |nt Regio|n" (py-c|
|00003340| 6f 6d 6d 65 6e 74 2d 72 | 65 67 69 6f 6e 20 28 70 |omment-r|egion (p|
|00003350| 6f 69 6e 74 29 20 28 6d | 61 72 6b 29 20 27 28 34 |oint) (m|ark) '(4|
|00003360| 29 29 20 28 6d 61 72 6b | 29 5d 20 22 2d 22 20 5b |)) (mark|)] "-" [|
|00003370| 22 4d 61 72 6b 20 63 75 | 72 72 65 6e 74 20 62 6c |"Mark cu|rrent bl|
|00003380| 6f 63 6b 22 20 70 79 2d | 6d 61 72 6b 2d 62 6c 6f |ock" py-|mark-blo|
|00003390| 63 6b 20 74 5d 20 5b 22 | 4d 61 72 6b 20 63 75 72 |ck t] ["|Mark cur|
|000033a0| 72 65 6e 74 20 64 65 66 | 22 20 70 79 2d 6d 61 72 |rent def|" py-mar|
|000033b0| 6b 2d 64 65 66 2d 6f 72 | 2d 63 6c 61 73 73 20 74 |k-def-or|-class t|
|000033c0| 5d 20 5b 22 4d 61 72 6b | 20 63 75 72 72 65 6e 74 |] ["Mark| current|
|000033d0| 20 63 6c 61 73 73 22 20 | 28 70 79 2d 6d 61 72 6b | class" |(py-mark|
|000033e0| 2d 64 65 66 2d 6f 72 2d | 63 6c 61 73 73 20 74 29 |-def-or-|class t)|
|000033f0| 20 74 5d 20 22 2d 22 20 | 5b 22 53 68 69 66 74 20 | t] "-" |["Shift |
|00003400| 72 65 67 69 6f 6e 20 6c | 65 66 74 22 20 70 79 2d |region l|eft" py-|
|00003410| 73 68 69 66 74 2d 72 65 | 67 69 6f 6e 2d 6c 65 66 |shift-re|gion-lef|
|00003420| 74 20 28 6d 61 72 6b 29 | 5d 20 5b 22 53 68 69 66 |t (mark)|] ["Shif|
|00003430| 74 20 72 65 67 69 6f 6e | 20 72 69 67 68 74 22 20 |t region| right" |
|00003440| 70 79 2d 73 68 69 66 74 | 2d 72 65 67 69 6f 6e 2d |py-shift|-region-|
|00003450| 72 69 67 68 74 20 28 6d | 61 72 6b 29 5d 20 22 2d |right (m|ark)] "-|
|00003460| 22 20 5b 22 45 78 65 63 | 75 74 65 20 62 75 66 66 |" ["Exec|ute buff|
|00003470| 65 72 22 20 70 79 2d 65 | 78 65 63 75 74 65 2d 62 |er" py-e|xecute-b|
|00003480| 75 66 66 65 72 20 74 5d | 20 5b 22 45 78 65 63 75 |uffer t]| ["Execu|
|00003490| 74 65 20 72 65 67 69 6f | 6e 22 20 70 79 2d 65 78 |te regio|n" py-ex|
|000034a0| 65 63 75 74 65 2d 72 65 | 67 69 6f 6e 20 28 6d 61 |ecute-re|gion (ma|
|000034b0| 72 6b 29 5d 20 5b 22 53 | 74 61 72 74 20 69 6e 74 |rk)] ["S|tart int|
|000034c0| 65 72 70 72 65 74 65 72 | 2e 2e 2e 22 20 70 79 2d |erpreter|..." py-|
|000034d0| 73 68 65 6c 6c 20 74 5d | 20 22 2d 22 20 5b 22 47 |shell t]| "-" ["G|
|000034e0| 6f 20 74 6f 20 73 74 61 | 72 74 20 6f 66 20 62 6c |o to sta|rt of bl|
|000034f0| 6f 63 6b 22 20 70 79 2d | 67 6f 74 6f 2d 62 6c 6f |ock" py-|goto-blo|
|00003500| 63 6b 2d 75 70 20 74 5d | 20 5b 22 47 6f 20 74 6f |ck-up t]| ["Go to|
|00003510| 20 73 74 61 72 74 20 6f | 66 20 63 6c 61 73 73 22 | start o|f class"|
|00003520| 20 28 62 65 67 69 6e 6e | 69 6e 67 2d 6f 66 2d 70 | (beginn|ing-of-p|
|00003530| 79 74 68 6f 6e 2d 64 65 | 66 2d 6f 72 2d 63 6c 61 |ython-de|f-or-cla|
|00003540| 73 73 20 74 29 20 74 5d | 20 5b 22 4d 6f 76 65 20 |ss t) t]| ["Move |
|00003550| 74 6f 20 65 6e 64 20 6f | 66 20 63 6c 61 73 73 22 |to end o|f class"|
|00003560| 20 28 65 6e 64 2d 6f 66 | 2d 70 79 74 68 6f 6e 2d | (end-of|-python-|
|00003570| 64 65 66 2d 6f 72 2d 63 | 6c 61 73 73 20 74 29 20 |def-or-c|lass t) |
|00003580| 74 5d 20 5b 22 4d 6f 76 | 65 20 74 6f 20 73 74 61 |t] ["Mov|e to sta|
|00003590| 72 74 20 6f 66 20 64 65 | 66 22 20 62 65 67 69 6e |rt of de|f" begin|
|000035a0| 6e 69 6e 67 2d 6f 66 2d | 70 79 74 68 6f 6e 2d 64 |ning-of-|python-d|
|000035b0| 65 66 2d 6f 72 2d 63 6c | 61 73 73 20 74 5d 20 5b |ef-or-cl|ass t] [|
|000035c0| 22 4d 6f 76 65 20 74 6f | 20 65 6e 64 20 6f 66 20 |"Move to| end of |
|000035d0| 64 65 66 22 20 65 6e 64 | 2d 6f 66 2d 70 79 74 68 |def" end|-of-pyth|
|000035e0| 6f 6e 2d 64 65 66 2d 6f | 72 2d 63 6c 61 73 73 20 |on-def-o|r-class |
|000035f0| 74 5d 20 22 2d 22 20 5b | 22 44 65 73 63 72 69 62 |t] "-" [|"Describ|
|00003600| 65 20 6d 6f 64 65 22 20 | 70 79 2d 64 65 73 63 72 |e mode" |py-descr|
|00003610| 69 62 65 2d 6d 6f 64 65 | 20 74 5d 29 5d 20 35 29 |ibe-mode| t])] 5)|
|00003620| 0a 23 40 35 39 20 52 65 | 67 65 78 70 20 66 6f 72 |.#@59 Re|gexp for|
|00003630| 20 50 79 74 68 6f 6e 20 | 63 6c 61 73 73 65 73 20 | Python |classes |
|00003640| 66 6f 72 20 75 73 65 20 | 77 69 74 68 20 74 68 65 |for use |with the|
|00003650| 20 69 6d 65 6e 75 20 70 | 61 63 6b 61 67 65 2e 1f | imenu p|ackage..|
|00003660| 0a 28 64 65 66 76 61 72 | 20 69 6d 65 6e 75 2d 65 |.(defvar| imenu-e|
|00003670| 78 61 6d 70 6c 65 2d 2d | 70 79 74 68 6f 6e 2d 63 |xample--|python-c|
|00003680| 6c 61 73 73 2d 72 65 67 | 65 78 70 20 28 63 6f 6e |lass-reg|exp (con|
|00003690| 63 61 74 20 22 5c 5c 28 | 22 20 22 5e 5b 20 09 5d |cat "\\(|" "^[ .]|
|000036a0| 2a 22 20 22 5c 5c 28 63 | 6c 61 73 73 5b 20 09 5d |*" "\\(c|lass[ .]|
|000036b0| 2b 5b 61 2d 7a 41 2d 5a | 30 2d 39 5f 5d 2b 5c 5c |+[a-zA-Z|0-9_]+\\|
|000036c0| 29 22 20 22 5c 5c 28 5b | 20 09 5d 2a 5c 5c 28 28 |)" "\\([| .]*\\((|
|000036d0| 5c 5c 28 5b 61 2d 7a 41 | 2d 5a 30 2d 39 5f 2c 20 |\\([a-zA|-Z0-9_, |
|000036e0| 09 5c 6e 5d 5c 5c 29 2a | 29 5c 5c 29 3f 5c 5c 29 |.\n]\\)*|)\\)?\\)|
|000036f0| 22 20 22 5b 20 09 5d 2a | 3a 22 20 22 5c 5c 29 22 |" "[ .]*|:" "\\)"|
|00003700| 29 20 28 23 24 20 2e 20 | 31 33 38 36 32 29 29 0a |) (#$ . |13862)).|
|00003710| 23 40 36 39 20 52 65 67 | 65 78 70 20 66 6f 72 20 |#@69 Reg|exp for |
|00003720| 50 79 74 68 6f 6e 20 6d | 65 74 68 6f 64 73 2f 66 |Python m|ethods/f|
|00003730| 75 6e 63 74 69 6f 6e 73 | 20 66 6f 72 20 75 73 65 |unctions| for use|
|00003740| 20 77 69 74 68 20 74 68 | 65 20 69 6d 65 6e 75 20 | with th|e imenu |
|00003750| 70 61 63 6b 61 67 65 2e | 1f 0a 28 64 65 66 76 61 |package.|..(defva|
|00003760| 72 20 69 6d 65 6e 75 2d | 65 78 61 6d 70 6c 65 2d |r imenu-|example-|
|00003770| 2d 70 79 74 68 6f 6e 2d | 6d 65 74 68 6f 64 2d 72 |-python-|method-r|
|00003780| 65 67 65 78 70 20 28 63 | 6f 6e 63 61 74 20 22 5c |egexp (c|oncat "\|
|00003790| 5c 28 22 20 22 5e 5b 20 | 09 5d 2a 22 20 22 5c 5c |\(" "^[ |.]*" "\\|
|000037a0| 28 64 65 66 5b 20 09 5d | 2b 22 20 22 5c 5c 28 5b |(def[ .]|+" "\\([|
|000037b0| 61 2d 7a 41 2d 5a 30 2d | 39 5f 5d 2b 5c 5c 29 22 |a-zA-Z0-|9_]+\\)"|
|000037c0| 20 22 5b 20 09 5d 2a 28 | 5c 5c 28 5b 61 2d 7a 41 | "[ .]*(|\\([a-zA|
|000037d0| 2d 5a 30 2d 39 5f 3d 2c | 2a 20 09 5c 6e 5d 2a 5c |-Z0-9_=,|* .\n]*\|
|000037e0| 5c 29 29 22 20 22 5c 5c | 29 22 20 22 5b 20 09 5d |\))" "\\|)" "[ .]|
|000037f0| 2a 3a 22 20 22 5c 5c 29 | 22 29 20 28 23 24 20 2e |*:" "\\)|") (#$ .|
|00003800| 20 31 34 31 30 31 29 29 | 0a 23 40 32 34 34 20 49 | 14101))|.#@244 I|
|00003810| 6e 64 69 63 69 65 73 20 | 69 6e 74 6f 20 67 72 6f |ndicies |into gro|
|00003820| 75 70 73 20 6f 66 20 74 | 68 65 20 50 79 74 68 6f |ups of t|he Pytho|
|00003830| 6e 20 72 65 67 65 78 70 | 20 66 6f 72 20 75 73 65 |n regexp| for use|
|00003840| 20 77 69 74 68 20 69 6d | 65 6e 75 2e 0a 0a 55 73 | with im|enu...Us|
|00003850| 69 6e 67 20 74 68 65 73 | 65 20 76 61 6c 75 65 73 |ing thes|e values|
|00003860| 20 77 69 6c 6c 20 72 65 | 73 75 6c 74 20 69 6e 20 | will re|sult in |
|00003870| 73 6d 61 6c 6c 65 72 20 | 69 6d 65 6e 75 20 6c 69 |smaller |imenu li|
|00003880| 73 74 73 2c 20 61 73 20 | 61 72 67 75 6d 65 6e 74 |sts, as |argument|
|00003890| 73 20 74 6f 0a 66 75 6e | 63 74 69 6f 6e 73 20 61 |s to.fun|ctions a|
|000038a0| 72 65 20 6e 6f 74 20 6c | 69 73 74 65 64 2e 0a 0a |re not l|isted...|
|000038b0| 53 65 65 20 74 68 65 20 | 76 61 72 69 61 62 6c 65 |See the |variable|
|000038c0| 20 60 69 6d 65 6e 75 2d | 65 78 61 6d 70 6c 65 2d | `imenu-|example-|
|000038d0| 2d 70 79 74 68 6f 6e 2d | 73 68 6f 77 2d 6d 65 74 |-python-|show-met|
|000038e0| 68 6f 64 2d 61 72 67 73 | 2d 70 27 20 66 6f 72 20 |hod-args|-p' for |
|000038f0| 6d 6f 72 65 0a 69 6e 66 | 6f 72 6d 61 74 69 6f 6e |more.inf|ormation|
|00003900| 2e 1f 0a 28 64 65 66 76 | 61 72 20 69 6d 65 6e 75 |...(defv|ar imenu|
|00003910| 2d 65 78 61 6d 70 6c 65 | 2d 2d 70 79 74 68 6f 6e |-example|--python|
|00003920| 2d 6d 65 74 68 6f 64 2d | 6e 6f 2d 61 72 67 2d 70 |-method-|no-arg-p|
|00003930| 61 72 65 6e 73 20 27 28 | 32 20 38 29 20 28 23 24 |arens '(|2 8) (#$|
|00003940| 20 2e 20 31 34 33 35 31 | 29 29 0a 23 40 32 33 37 | . 14351|)).#@237|
|00003950| 20 49 6e 64 69 63 69 65 | 73 20 69 6e 74 6f 20 67 | Indicie|s into g|
|00003960| 72 6f 75 70 73 20 6f 66 | 20 74 68 65 20 50 79 74 |roups of| the Pyt|
|00003970| 68 6f 6e 20 72 65 67 65 | 78 70 20 66 6f 72 20 75 |hon rege|xp for u|
|00003980| 73 65 20 77 69 74 68 20 | 69 6d 65 6e 75 2e 0a 55 |se with |imenu..U|
|00003990| 73 69 6e 67 20 74 68 65 | 73 65 20 76 61 6c 75 65 |sing the|se value|
|000039a0| 73 20 77 69 6c 6c 20 72 | 65 73 75 6c 74 20 69 6e |s will r|esult in|
|000039b0| 20 6c 61 72 67 65 20 69 | 6d 65 6e 75 20 6c 69 73 | large i|menu lis|
|000039c0| 74 73 2c 20 61 73 20 61 | 72 67 75 6d 65 6e 74 73 |ts, as a|rguments|
|000039d0| 20 74 6f 0a 66 75 6e 63 | 74 69 6f 6e 73 20 61 72 | to.func|tions ar|
|000039e0| 65 20 6c 69 73 74 65 64 | 2e 0a 0a 53 65 65 20 74 |e listed|...See t|
|000039f0| 68 65 20 76 61 72 69 61 | 62 6c 65 20 60 69 6d 65 |he varia|ble `ime|
|00003a00| 6e 75 2d 65 78 61 6d 70 | 6c 65 2d 2d 70 79 74 68 |nu-examp|le--pyth|
|00003a10| 6f 6e 2d 73 68 6f 77 2d | 6d 65 74 68 6f 64 2d 61 |on-show-|method-a|
|00003a20| 72 67 73 2d 70 27 20 66 | 6f 72 20 6d 6f 72 65 0a |rgs-p' f|or more.|
|00003a30| 69 6e 66 6f 72 6d 61 74 | 69 6f 6e 2e 1f 0a 28 64 |informat|ion...(d|
|00003a40| 65 66 76 61 72 20 69 6d | 65 6e 75 2d 65 78 61 6d |efvar im|enu-exam|
|00003a50| 70 6c 65 2d 2d 70 79 74 | 68 6f 6e 2d 6d 65 74 68 |ple--pyt|hon-meth|
|00003a60| 6f 64 2d 61 72 67 2d 70 | 61 72 65 6e 73 20 27 28 |od-arg-p|arens '(|
|00003a70| 32 20 37 29 20 28 23 24 | 20 2e 20 31 34 36 37 33 |2 7) (#$| . 14673|
|00003a80| 29 29 0a 23 40 32 34 36 | 20 47 65 6e 65 72 69 63 |)).#@246| Generic|
|00003a90| 20 50 79 74 68 6f 6e 20 | 65 78 70 72 65 73 73 69 | Python |expressi|
|00003aa0| 6f 6e 20 77 68 69 63 68 | 20 6d 61 79 20 62 65 20 |on which| may be |
|00003ab0| 75 73 65 64 20 64 69 72 | 65 63 74 6c 79 20 77 69 |used dir|ectly wi|
|00003ac0| 74 68 20 69 6d 65 6e 75 | 2e 0a 55 73 65 64 20 62 |th imenu|..Used b|
|00003ad0| 79 20 73 65 74 74 69 6e | 67 20 74 68 65 20 76 61 |y settin|g the va|
|00003ae0| 72 69 61 62 6c 65 20 60 | 69 6d 65 6e 75 2d 67 65 |riable `|imenu-ge|
|00003af0| 6e 65 72 69 63 2d 65 78 | 70 72 65 73 73 69 6f 6e |neric-ex|pression|
|00003b00| 27 20 74 6f 20 74 68 69 | 73 20 76 61 6c 75 65 2e |' to thi|s value.|
|00003b10| 0a 41 6c 73 6f 2c 20 73 | 65 65 20 74 68 65 20 66 |.Also, s|ee the f|
|00003b20| 75 6e 63 74 69 6f 6e 20 | 5c 5b 69 6d 65 6e 75 2d |unction |\[imenu-|
|00003b30| 65 78 61 6d 70 6c 65 2d | 2d 63 72 65 61 74 65 2d |example-|-create-|
|00003b40| 70 79 74 68 6f 6e 2d 69 | 6e 64 65 78 5d 20 66 6f |python-i|ndex] fo|
|00003b50| 72 20 61 0a 62 65 74 74 | 65 72 20 61 6c 74 65 72 |r a.bett|er alter|
|00003b60| 6e 61 74 69 76 65 20 66 | 6f 72 20 66 69 6e 64 69 |native f|or findi|
|00003b70| 6e 67 20 74 68 65 20 69 | 6e 64 65 78 2e 1f 0a 28 |ng the i|ndex...(|
|00003b80| 64 65 66 76 61 72 20 69 | 6d 65 6e 75 2d 65 78 61 |defvar i|menu-exa|
|00003b90| 6d 70 6c 65 2d 2d 67 65 | 6e 65 72 69 63 2d 70 79 |mple--ge|neric-py|
|00003ba0| 74 68 6f 6e 2d 65 78 70 | 72 65 73 73 69 6f 6e 20 |thon-exp|ression |
|00003bb0| 28 62 79 74 65 2d 63 6f | 64 65 20 22 08 c1 5c 6e |(byte-co|de "..\n|
|00003bc0| 51 0b 42 87 22 20 5b 69 | 6d 65 6e 75 2d 65 78 61 |Q.B." [i|menu-exa|
|00003bd0| 6d 70 6c 65 2d 2d 70 79 | 74 68 6f 6e 2d 63 6c 61 |mple--py|thon-cla|
|00003be0| 73 73 2d 72 65 67 65 78 | 70 20 22 5c 5c 7c 22 20 |ss-regex|p "\\|" |
|00003bf0| 69 6d 65 6e 75 2d 65 78 | 61 6d 70 6c 65 2d 2d 70 |imenu-ex|ample--p|
|00003c00| 79 74 68 6f 6e 2d 6d 65 | 74 68 6f 64 2d 72 65 67 |ython-me|thod-reg|
|00003c10| 65 78 70 20 69 6d 65 6e | 75 2d 65 78 61 6d 70 6c |exp imen|u-exampl|
|00003c20| 65 2d 2d 70 79 74 68 6f | 6e 2d 6d 65 74 68 6f 64 |e--pytho|n-method|
|00003c30| 2d 6e 6f 2d 61 72 67 2d | 70 61 72 65 6e 73 5d 20 |-no-arg-|parens] |
|00003c40| 33 29 20 28 23 24 20 2e | 20 31 34 39 38 35 29 29 |3) (#$ .| 14985))|
|00003c50| 0a 28 62 79 74 65 2d 63 | 6f 64 65 20 22 c0 c1 21 |.(byte-c|ode "..!|
|00003c60| ac 82 c2 11 c1 0b 42 13 | c0 c4 21 ac 82 c2 14 c4 |......B.|..!.....|
|00003c70| 0b 42 13 c2 87 22 20 5b | 62 6f 75 6e 64 70 20 69 |.B..." [|boundp i|
|00003c80| 6d 65 6e 75 2d 65 78 61 | 6d 70 6c 65 2d 2d 70 79 |menu-exa|mple--py|
|00003c90| 74 68 6f 6e 2d 67 65 6e | 65 72 69 63 2d 72 65 67 |thon-gen|eric-reg|
|00003ca0| 65 78 70 20 6e 69 6c 20 | 63 75 72 72 65 6e 74 2d |exp nil |current-|
|00003cb0| 6c 6f 61 64 2d 6c 69 73 | 74 20 69 6d 65 6e 75 2d |load-lis|t imenu-|
|00003cc0| 65 78 61 6d 70 6c 65 2d | 2d 70 79 74 68 6f 6e 2d |example-|-python-|
|00003cd0| 67 65 6e 65 72 69 63 2d | 70 61 72 65 6e 73 5d 20 |generic-|parens] |
|00003ce0| 32 29 0a 23 40 32 30 39 | 20 50 79 74 68 6f 6e 20 |2).#@209| Python |
|00003cf0| 69 6e 74 65 72 66 61 63 | 65 20 66 75 6e 63 74 69 |interfac|e functi|
|00003d00| 6f 6e 20 66 6f 72 20 69 | 6d 65 6e 75 20 70 61 63 |on for i|menu pac|
|00003d10| 6b 61 67 65 2e 0a 46 69 | 6e 64 73 20 61 6c 6c 20 |kage..Fi|nds all |
|00003d20| 70 79 74 68 6f 6e 20 63 | 6c 61 73 73 65 73 20 61 |python c|lasses a|
|00003d30| 6e 64 20 66 75 6e 63 74 | 69 6f 6e 73 2f 6d 65 74 |nd funct|ions/met|
|00003d40| 68 6f 64 73 2e 20 43 61 | 6c 6c 73 20 66 75 6e 63 |hods. Ca|lls func|
|00003d50| 74 69 6f 6e 0a 5c 5b 69 | 6d 65 6e 75 2d 65 78 61 |tion.\[i|menu-exa|
|00003d60| 6d 70 6c 65 2d 2d 63 72 | 65 61 74 65 2d 70 79 74 |mple--cr|eate-pyt|
|00003d70| 68 6f 6e 2d 69 6e 64 65 | 78 2d 65 6e 67 69 6e 65 |hon-inde|x-engine|
|00003d80| 5d 2e 20 20 53 65 65 20 | 74 68 61 74 20 66 75 6e |]. See |that fun|
|00003d90| 63 74 69 6f 6e 20 66 6f | 72 0a 74 68 65 20 64 65 |ction fo|r.the de|
|00003da0| 74 61 69 6c 73 20 6f 66 | 20 68 6f 77 20 74 68 69 |tails of| how thi|
|00003db0| 73 20 77 6f 72 6b 73 2e | 1f 0a 28 64 65 66 61 6c |s works.|..(defal|
|00003dc0| 69 61 73 20 27 69 6d 65 | 6e 75 2d 65 78 61 6d 70 |ias 'ime|nu-examp|
|00003dd0| 6c 65 2d 2d 63 72 65 61 | 74 65 2d 70 79 74 68 6f |le--crea|te-pytho|
|00003de0| 6e 2d 69 6e 64 65 78 20 | 23 5b 6e 69 6c 20 22 08 |n-index |#[nil ".|
|00003df0| 40 11 5c 6e ab 83 0b aa | 81 0c 15 65 62 88 c6 c7 |@.\n....|...eb...|
|00003e00| 21 87 22 20 5b 69 6d 65 | 6e 75 2d 65 78 61 6d 70 |!." [ime|nu-examp|
|00003e10| 6c 65 2d 2d 67 65 6e 65 | 72 69 63 2d 70 79 74 68 |le--gene|ric-pyth|
|00003e20| 6f 6e 2d 65 78 70 72 65 | 73 73 69 6f 6e 20 69 6d |on-expre|ssion im|
|00003e30| 65 6e 75 2d 65 78 61 6d | 70 6c 65 2d 2d 70 79 74 |enu-exam|ple--pyt|
|00003e40| 68 6f 6e 2d 67 65 6e 65 | 72 69 63 2d 72 65 67 65 |hon-gene|ric-rege|
|00003e50| 78 70 20 69 6d 65 6e 75 | 2d 65 78 61 6d 70 6c 65 |xp imenu|-example|
|00003e60| 2d 2d 70 79 74 68 6f 6e | 2d 73 68 6f 77 2d 6d 65 |--python|-show-me|
|00003e70| 74 68 6f 64 2d 61 72 67 | 73 2d 70 20 69 6d 65 6e |thod-arg|s-p imen|
|00003e80| 75 2d 65 78 61 6d 70 6c | 65 2d 2d 70 79 74 68 6f |u-exampl|e--pytho|
|00003e90| 6e 2d 6d 65 74 68 6f 64 | 2d 61 72 67 2d 70 61 72 |n-method|-arg-par|
|00003ea0| 65 6e 73 20 69 6d 65 6e | 75 2d 65 78 61 6d 70 6c |ens imen|u-exampl|
|00003eb0| 65 2d 2d 70 79 74 68 6f | 6e 2d 6d 65 74 68 6f 64 |e--pytho|n-method|
|00003ec0| 2d 6e 6f 2d 61 72 67 2d | 70 61 72 65 6e 73 20 69 |-no-arg-|parens i|
|00003ed0| 6d 65 6e 75 2d 65 78 61 | 6d 70 6c 65 2d 2d 70 79 |menu-exa|mple--py|
|00003ee0| 74 68 6f 6e 2d 67 65 6e | 65 72 69 63 2d 70 61 72 |thon-gen|eric-par|
|00003ef0| 65 6e 73 20 69 6d 65 6e | 75 2d 65 78 61 6d 70 6c |ens imen|u-exampl|
|00003f00| 65 2d 2d 63 72 65 61 74 | 65 2d 70 79 74 68 6f 6e |e--creat|e-python|
|00003f10| 2d 69 6e 64 65 78 2d 65 | 6e 67 69 6e 65 20 6e 69 |-index-e|ngine ni|
|00003f20| 6c 5d 20 32 20 28 23 24 | 20 2e 20 31 35 35 39 33 |l] 2 (#$| . 15593|
|00003f30| 29 5d 29 0a 23 40 31 31 | 38 35 20 46 75 6e 63 74 |)]).#@11|85 Funct|
|00003f40| 69 6f 6e 20 66 6f 72 20 | 66 69 6e 64 69 6e 67 20 |ion for |finding |
|00003f50| 69 6d 65 6e 75 20 64 65 | 66 69 6e 69 74 69 6f 6e |imenu de|finition|
|00003f60| 73 20 69 6e 20 50 79 74 | 68 6f 6e 2e 0a 0a 46 69 |s in Pyt|hon...Fi|
|00003f70| 6e 64 73 20 61 6c 6c 20 | 64 65 66 69 6e 69 74 69 |nds all |definiti|
|00003f80| 6f 6e 73 20 28 63 6c 61 | 73 73 65 73 2c 20 6d 65 |ons (cla|sses, me|
|00003f90| 74 68 6f 64 73 2c 20 6f | 72 20 66 75 6e 63 74 69 |thods, o|r functi|
|00003fa0| 6f 6e 73 29 20 69 6e 20 | 61 20 50 79 74 68 6f 6e |ons) in |a Python|
|00003fb0| 0a 66 69 6c 65 20 66 6f | 72 20 74 68 65 20 69 6d |.file fo|r the im|
|00003fc0| 65 6e 75 20 70 61 63 6b | 61 67 65 2e 0a 0a 52 65 |enu pack|age...Re|
|00003fd0| 74 75 72 6e 73 20 61 20 | 70 6f 73 73 69 62 6c 79 |turns a |possibly|
|00003fe0| 20 6e 65 73 74 65 64 20 | 61 6c 69 73 74 20 6f 66 | nested |alist of|
|00003ff0| 20 74 68 65 20 66 6f 72 | 6d 0a 0a 09 28 49 4e 44 | the for|m...(IND|
|00004000| 45 58 2d 4e 41 4d 45 20 | 2e 20 49 4e 44 45 58 2d |EX-NAME |. INDEX-|
|00004010| 50 4f 53 49 54 49 4f 4e | 29 0a 0a 54 68 65 20 73 |POSITION|)..The s|
|00004020| 65 63 6f 6e 64 20 65 6c | 65 6d 65 6e 74 20 6f 66 |econd el|ement of|
|00004030| 20 74 68 65 20 61 6c 69 | 73 74 20 6d 61 79 20 62 | the ali|st may b|
|00004040| 65 20 61 6e 20 61 6c 69 | 73 74 2c 20 70 72 6f 64 |e an ali|st, prod|
|00004050| 75 63 69 6e 67 20 61 20 | 6e 65 73 74 65 64 0a 6c |ucing a |nested.l|
|00004060| 69 73 74 20 61 73 20 69 | 6e 0a 0a 09 28 49 4e 44 |ist as i|n...(IND|
|00004070| 45 58 2d 4e 41 4d 45 20 | 2e 20 49 4e 44 45 58 2d |EX-NAME |. INDEX-|
|00004080| 41 4c 49 53 54 29 0a 0a | 54 68 69 73 20 66 75 6e |ALIST)..|This fun|
|00004090| 63 74 69 6f 6e 20 73 68 | 6f 75 6c 64 20 6e 6f 74 |ction sh|ould not|
|000040a0| 20 62 65 20 63 61 6c 6c | 65 64 20 64 69 72 65 63 | be call|ed direc|
|000040b0| 74 6c 79 2c 20 61 73 20 | 69 74 20 63 61 6c 6c 73 |tly, as |it calls|
|000040c0| 20 69 74 73 65 6c 66 0a | 72 65 63 75 72 73 69 76 | itself.|recursiv|
|000040d0| 65 6c 79 20 61 6e 64 20 | 72 65 71 75 69 72 65 73 |ely and |requires|
|000040e0| 20 73 6f 6d 65 20 73 65 | 74 75 70 2e 20 20 52 61 | some se|tup. Ra|
|000040f0| 74 68 65 72 20 74 68 69 | 73 20 69 73 20 74 68 65 |ther thi|s is the|
|00004100| 20 65 6e 67 69 6e 65 20 | 66 6f 72 0a 74 68 65 20 | engine |for.the |
|00004110| 66 75 6e 63 74 69 6f 6e | 20 5c 5b 69 6d 65 6e 75 |function| \[imenu|
|00004120| 2d 65 78 61 6d 70 6c 65 | 2d 2d 63 72 65 61 74 65 |-example|--create|
|00004130| 2d 70 79 74 68 6f 6e 2d | 69 6e 64 65 78 5d 2e 0a |-python-|index]..|
|00004140| 0a 49 74 20 77 6f 72 6b | 73 20 72 65 63 75 72 73 |.It work|s recurs|
|00004150| 69 76 65 6c 79 20 62 79 | 20 6c 6f 6f 6b 69 6e 67 |ively by| looking|
|00004160| 20 66 6f 72 20 61 6c 6c | 20 64 65 66 69 6e 69 74 | for all| definit|
|00004170| 69 6f 6e 73 20 61 74 20 | 74 68 65 20 63 75 72 72 |ions at |the curr|
|00004180| 65 6e 74 0a 69 6e 64 65 | 6e 74 69 6f 6e 20 6c 65 |ent.inde|ntion le|
|00004190| 76 65 6c 2e 20 20 57 68 | 65 6e 20 69 74 20 66 69 |vel. Wh|en it fi|
|000041a0| 6e 64 73 20 6f 6e 65 2c | 20 69 74 20 61 64 64 73 |nds one,| it adds|
|000041b0| 20 69 74 20 74 6f 20 74 | 68 65 20 61 6c 69 73 74 | it to t|he alist|
|000041c0| 2e 20 20 49 66 20 69 74 | 0a 66 69 6e 64 73 20 61 |. If it|.finds a|
|000041d0| 20 64 65 66 69 6e 69 74 | 69 6f 6e 20 61 74 20 61 | definit|ion at a|
|000041e0| 20 67 72 65 61 74 65 72 | 20 69 6e 64 65 6e 74 61 | greater| indenta|
|000041f0| 74 69 6f 6e 20 6c 65 76 | 65 6c 2c 20 69 74 20 72 |tion lev|el, it r|
|00004200| 65 6d 6f 76 65 73 20 74 | 68 65 0a 70 72 65 76 69 |emoves t|he.previ|
|00004210| 6f 75 73 20 64 65 66 69 | 6e 69 74 69 6f 6e 20 66 |ous defi|nition f|
|00004220| 72 6f 6d 20 74 68 65 20 | 61 6c 69 73 74 2e 20 49 |rom the |alist. I|
|00004230| 6e 20 69 74 27 73 20 70 | 6c 61 63 65 20 69 74 20 |n it's p|lace it |
|00004240| 61 64 64 73 20 61 6c 6c | 0a 64 65 66 69 6e 69 74 |adds all|.definit|
|00004250| 69 6f 6e 73 20 66 6f 75 | 6e 64 20 61 74 20 74 68 |ions fou|nd at th|
|00004260| 65 20 6e 65 78 74 20 69 | 6e 64 65 6e 74 61 74 69 |e next i|ndentati|
|00004270| 6f 6e 20 6c 65 76 65 6c | 2e 20 20 57 68 65 6e 20 |on level|. When |
|00004280| 69 74 20 66 69 6e 64 73 | 20 61 0a 64 65 66 69 6e |it finds| a.defin|
|00004290| 69 74 69 6f 6e 20 74 68 | 61 74 20 69 73 20 6c 65 |ition th|at is le|
|000042a0| 73 73 20 69 6e 64 65 6e | 74 65 64 20 74 68 65 6e |ss inden|ted then|
|000042b0| 20 74 68 65 20 63 75 72 | 72 65 6e 74 20 6c 65 76 | the cur|rent lev|
|000042c0| 65 6c 2c 20 69 74 20 72 | 65 74 75 6e 73 20 74 68 |el, it r|etuns th|
|000042d0| 65 0a 61 6c 69 73 74 20 | 69 74 20 68 61 73 20 63 |e.alist |it has c|
|000042e0| 72 65 61 74 65 64 20 74 | 68 75 73 20 66 61 72 2e |reated t|hus far.|
|000042f0| 0a 0a 54 68 65 20 6f 70 | 74 69 6f 6e 61 6c 20 61 |..The op|tional a|
|00004300| 72 67 75 6d 65 6e 74 20 | 53 54 41 52 54 2d 49 4e |rgument |START-IN|
|00004310| 44 45 4e 54 20 69 6e 64 | 69 63 61 74 65 73 20 74 |DENT ind|icates t|
|00004320| 68 65 20 73 74 61 72 74 | 69 6e 67 20 69 6e 64 65 |he start|ing inde|
|00004330| 6e 74 61 74 69 6f 6e 0a | 61 74 20 77 68 69 63 68 |ntation.|at which|
|00004340| 20 74 6f 20 63 6f 6e 74 | 69 6e 75 65 20 6c 6f 6f | to cont|inue loo|
|00004350| 6b 69 6e 67 20 66 6f 72 | 20 50 79 74 68 6f 6e 20 |king for| Python |
|00004360| 63 6c 61 73 73 65 73 2c | 20 6d 65 74 68 6f 64 73 |classes,| methods|
|00004370| 2c 20 6f 72 0a 66 75 6e | 63 74 69 6f 6e 73 2e 20 |, or.fun|ctions. |
|00004380| 20 49 66 20 74 68 69 73 | 20 69 73 20 6e 6f 74 20 | If this| is not |
|00004390| 73 75 70 70 6c 69 65 64 | 2c 20 74 68 65 20 66 75 |supplied|, the fu|
|000043a0| 6e 63 74 69 6f 6e 20 75 | 73 65 73 20 74 68 65 20 |nction u|ses the |
|000043b0| 69 6e 64 65 6e 74 61 74 | 69 6f 6e 0a 6f 66 20 74 |indentat|ion.of t|
|000043c0| 68 65 20 66 69 72 73 74 | 20 64 65 66 69 6e 69 74 |he first| definit|
|000043d0| 69 6f 6e 20 66 6f 75 6e | 64 2e 1f 0a 28 64 65 66 |ion foun|d...(def|
|000043e0| 61 6c 69 61 73 20 27 69 | 6d 65 6e 75 2d 65 78 61 |alias 'i|menu-exa|
|000043f0| 6d 70 6c 65 2d 2d 63 72 | 65 61 74 65 2d 70 79 74 |mple--cr|eate-pyt|
|00004400| 68 6f 6e 2d 69 6e 64 65 | 78 2d 65 6e 67 69 6e 65 |hon-inde|x-engine|
|00004410| 20 23 5b 28 26 6f 70 74 | 69 6f 6e 61 6c 20 73 74 | #[(&opt|ional st|
|00004420| 61 72 74 2d 69 6e 64 65 | 6e 74 29 20 22 c0 89 89 |art-inde|nt) "...|
|00004430| 89 89 89 89 09 40 09 41 | 40 1a 1b 1c 1d 1e 06 1e |.....@.A|@.......|
|00004440| 07 1e 08 1e 09 1e 5c 6e | cb 0e 0c 64 cd 23 16 08 |......\n|...d.#..|
|00004450| 0e 08 83 b8 00 8a 0b 94 | ab 83 0b aa 81 5c 6e 1e |........|.....\n.|
|00004460| 0e cf 0e 0e 94 0e 0e 95 | 5c 22 16 07 29 d0 79 88 |........|\"..).y.|
|00004470| d1 20 15 29 0b 94 ae 82 | 5c 6e 94 14 0e 12 ac 83 |. .)....|\n......|
|00004480| 0d 16 12 0e 06 ac 84 0e | 07 16 06 0e 12 0d 55 ab |........|......U.|
|00004490| 8b 0e 07 0c 42 0e 5c 6e | 42 16 5c 6e aa b8 0e 12 |....B.\n|B.\n....|
|000044a0| 0d 57 ab a8 d3 0e 0c 65 | d4 23 88 d5 0d 21 89 16 |.W.....e|.#...!..|
|000044b0| 09 ab a3 0e 5c 6e 89 41 | 16 5c 6e 40 1e 16 0e 06 |....\n.A|.\n@....|
|000044c0| 0e 16 0e 09 42 42 0e 5c | 6e 42 16 5c 6e 29 aa 8a |....BB.\|nB.\n)..|
|000044d0| c0 16 08 d3 0e 0c 65 cd | 23 88 0e 07 16 06 0e 08 |......e.|#.......|
|000044e0| 83 5c 22 00 cb 0e 0c 64 | d4 23 89 16 08 84 27 00 |.\"....d|.#....'.|
|000044f0| 0e 5c 6e 9f 2e 09 87 22 | 20 5b 6e 69 6c 20 69 6d |.\n...."| [nil im|
|00004500| 65 6e 75 2d 65 78 61 6d | 70 6c 65 2d 2d 70 79 74 |enu-exam|ple--pyt|
|00004510| 68 6f 6e 2d 67 65 6e 65 | 72 69 63 2d 70 61 72 65 |hon-gene|ric-pare|
|00004520| 6e 73 20 64 65 66 2d 70 | 61 72 65 6e 20 63 6c 61 |ns def-p|aren cla|
|00004530| 73 73 2d 70 61 72 65 6e | 20 64 65 66 2d 70 6f 73 |ss-paren| def-pos|
|00004540| 20 63 75 72 2d 69 6e 64 | 65 6e 74 20 70 72 65 76 | cur-ind|ent prev|
|00004550| 2d 6e 61 6d 65 20 64 65 | 66 2d 6e 61 6d 65 20 6c |-name de|f-name l|
|00004560| 6f 6f 6b 69 6e 67 2d 70 | 20 73 75 62 2d 6d 65 74 |ooking-p| sub-met|
|00004570| 68 6f 64 2d 61 6c 69 73 | 74 20 69 6e 64 65 78 2d |hod-alis|t index-|
|00004580| 61 6c 69 73 74 20 72 65 | 2d 73 65 61 72 63 68 2d |alist re|-search-|
|00004590| 66 6f 72 77 61 72 64 20 | 69 6d 65 6e 75 2d 65 78 |forward |imenu-ex|
|000045a0| 61 6d 70 6c 65 2d 2d 70 | 79 74 68 6f 6e 2d 67 65 |ample--p|ython-ge|
|000045b0| 6e 65 72 69 63 2d 72 65 | 67 65 78 70 20 74 20 63 |neric-re|gexp t c|
|000045c0| 75 72 2d 70 61 72 65 6e | 20 62 75 66 66 65 72 2d |ur-paren| buffer-|
|000045d0| 73 75 62 73 74 72 69 6e | 67 2d 6e 6f 2d 70 72 6f |substrin|g-no-pro|
|000045e0| 70 65 72 74 69 65 73 20 | 30 20 63 75 72 72 65 6e |perties |0 curren|
|000045f0| 74 2d 69 6e 64 65 6e 74 | 61 74 69 6f 6e 20 73 74 |t-indent|ation st|
|00004600| 61 72 74 2d 69 6e 64 65 | 6e 74 20 72 65 2d 73 65 |art-inde|nt re-se|
|00004610| 61 72 63 68 2d 62 61 63 | 6b 77 61 72 64 20 6d 6f |arch-bac|kward mo|
|00004620| 76 65 20 69 6d 65 6e 75 | 2d 65 78 61 6d 70 6c 65 |ve imenu|-example|
|00004630| 2d 2d 63 72 65 61 74 65 | 2d 70 79 74 68 6f 6e 2d |--create|-python-|
|00004640| 69 6e 64 65 78 2d 65 6e | 67 69 6e 65 20 73 61 76 |index-en|gine sav|
|00004650| 65 2d 65 6c 6d 74 5d 20 | 31 30 20 28 23 24 20 2e |e-elmt] |10 (#$ .|
|00004660| 20 31 36 31 38 37 29 5d | 29 0a 23 40 37 37 35 20 | 16187)]|).#@775 |
|00004670| 4d 61 6a 6f 72 20 6d 6f | 64 65 20 66 6f 72 20 65 |Major mo|de for e|
|00004680| 64 69 74 69 6e 67 20 50 | 79 74 68 6f 6e 20 66 69 |diting P|ython fi|
|00004690| 6c 65 73 2e 0a 54 6f 20 | 73 75 62 6d 69 74 20 61 |les..To |submit a|
|000046a0| 20 70 72 6f 62 6c 65 6d | 20 72 65 70 6f 72 74 2c | problem| report,|
|000046b0| 20 65 6e 74 65 72 20 60 | 5c 5b 70 79 2d 73 75 62 | enter `|\[py-sub|
|000046c0| 6d 69 74 2d 62 75 67 2d | 72 65 70 6f 72 74 5d 27 |mit-bug-|report]'|
|000046d0| 20 66 72 6f 6d 20 61 0a | 60 70 79 74 68 6f 6e 2d | from a.|`python-|
|000046e0| 6d 6f 64 65 27 20 62 75 | 66 66 65 72 2e 20 20 44 |mode' bu|ffer. D|
|000046f0| 6f 20 60 5c 5b 70 79 2d | 64 65 73 63 72 69 62 65 |o `\[py-|describe|
|00004700| 2d 6d 6f 64 65 5d 27 20 | 66 6f 72 20 64 65 74 61 |-mode]' |for deta|
|00004710| 69 6c 65 64 0a 64 6f 63 | 75 6d 65 6e 74 61 74 69 |iled.doc|umentati|
|00004720| 6f 6e 2e 20 20 54 6f 20 | 73 65 65 20 77 68 61 74 |on. To |see what|
|00004730| 20 76 65 72 73 69 6f 6e | 20 6f 66 20 60 70 79 74 | version| of `pyt|
|00004740| 68 6f 6e 2d 6d 6f 64 65 | 27 20 79 6f 75 20 61 72 |hon-mode|' you ar|
|00004750| 65 20 72 75 6e 6e 69 6e | 67 2c 0a 65 6e 74 65 72 |e runnin|g,.enter|
|00004760| 20 60 5c 5b 70 79 2d 76 | 65 72 73 69 6f 6e 5d 27 | `\[py-v|ersion]'|
|00004770| 2e 0a 0a 54 68 69 73 20 | 6d 6f 64 65 20 6b 6e 6f |...This |mode kno|
|00004780| 77 73 20 61 62 6f 75 74 | 20 50 79 74 68 6f 6e 20 |ws about| Python |
|00004790| 69 6e 64 65 6e 74 61 74 | 69 6f 6e 2c 20 74 6f 6b |indentat|ion, tok|
|000047a0| 65 6e 73 2c 20 63 6f 6d | 6d 65 6e 74 73 20 61 6e |ens, com|ments an|
|000047b0| 64 0a 63 6f 6e 74 69 6e | 75 61 74 69 6f 6e 20 6c |d.contin|uation l|
|000047c0| 69 6e 65 73 2e 20 20 50 | 61 72 61 67 72 61 70 68 |ines. P|aragraph|
|000047d0| 73 20 61 72 65 20 73 65 | 70 61 72 61 74 65 64 20 |s are se|parated |
|000047e0| 62 79 20 62 6c 61 6e 6b | 20 6c 69 6e 65 73 20 6f |by blank| lines o|
|000047f0| 6e 6c 79 2e 0a 0a 43 4f | 4d 4d 41 4e 44 53 0a 5c |nly...CO|MMANDS.\|
|00004800| 7b 70 79 2d 6d 6f 64 65 | 2d 6d 61 70 7d 0a 56 41 |{py-mode|-map}.VA|
|00004810| 52 49 41 42 4c 45 53 0a | 0a 70 79 2d 69 6e 64 65 |RIABLES.|.py-inde|
|00004820| 6e 74 2d 6f 66 66 73 65 | 74 09 09 69 6e 64 65 6e |nt-offse|t..inden|
|00004830| 74 61 74 69 6f 6e 20 69 | 6e 63 72 65 6d 65 6e 74 |tation i|ncrement|
|00004840| 0a 70 79 2d 62 6c 6f 63 | 6b 2d 63 6f 6d 6d 65 6e |.py-bloc|k-commen|
|00004850| 74 2d 70 72 65 66 69 78 | 09 09 63 6f 6d 6d 65 6e |t-prefix|..commen|
|00004860| 74 20 73 74 72 69 6e 67 | 20 75 73 65 64 20 62 79 |t string| used by|
|00004870| 20 63 6f 6d 6d 65 6e 74 | 2d 72 65 67 69 6f 6e 0a | comment|-region.|
|00004880| 70 79 2d 70 79 74 68 6f | 6e 2d 63 6f 6d 6d 61 6e |py-pytho|n-comman|
|00004890| 64 09 09 73 68 65 6c 6c | 20 63 6f 6d 6d 61 6e 64 |d..shell| command|
|000048a0| 20 74 6f 20 69 6e 76 6f | 6b 65 20 50 79 74 68 6f | to invo|ke Pytho|
|000048b0| 6e 20 69 6e 74 65 72 70 | 72 65 74 65 72 0a 70 79 |n interp|reter.py|
|000048c0| 2d 73 63 72 6f 6c 6c 2d | 70 72 6f 63 65 73 73 2d |-scroll-|process-|
|000048d0| 62 75 66 66 65 72 09 09 | 61 6c 77 61 79 73 20 73 |buffer..|always s|
|000048e0| 63 72 6f 6c 6c 20 50 79 | 74 68 6f 6e 20 70 72 6f |croll Py|thon pro|
|000048f0| 63 65 73 73 20 62 75 66 | 66 65 72 0a 70 79 2d 74 |cess buf|fer.py-t|
|00004900| 65 6d 70 2d 64 69 72 65 | 63 74 6f 72 79 09 09 64 |emp-dire|ctory..d|
|00004910| 69 72 65 63 74 6f 72 79 | 20 75 73 65 64 20 66 6f |irectory| used fo|
|00004920| 72 20 74 65 6d 70 20 66 | 69 6c 65 73 20 28 69 66 |r temp f|iles (if|
|00004930| 20 6e 65 65 64 65 64 29 | 0a 70 79 2d 62 65 65 70 | needed)|.py-beep|
|00004940| 2d 69 66 2d 74 61 62 2d | 63 68 61 6e 67 65 09 09 |-if-tab-|change..|
|00004950| 72 69 6e 67 20 74 68 65 | 20 62 65 6c 6c 20 69 66 |ring the| bell if|
|00004960| 20 74 61 62 2d 77 69 64 | 74 68 20 69 73 20 63 68 | tab-wid|th is ch|
|00004970| 61 6e 67 65 64 1f 0a 28 | 64 65 66 61 6c 69 61 73 |anged..(|defalias|
|00004980| 20 27 70 79 74 68 6f 6e | 2d 6d 6f 64 65 20 23 5b | 'python|-mode #[|
|00004990| 6e 69 6c 20 22 c0 20 88 | c1 c2 21 88 c1 c3 21 88 |nil ". .|..!...!.|
|000049a0| c1 c4 21 88 c1 c5 21 88 | c1 c6 21 88 c1 c7 21 88 |..!...!.|..!...!.|
|000049b0| c1 c8 21 88 c1 c9 21 88 | c1 ca 21 88 c1 cb 21 88 |..!...!.|..!...!.|
|000049c0| c1 cc 21 88 cd 0e 0e 21 | 88 cf 16 10 d1 16 12 0e |..!....!|........|
|000049d0| 13 16 14 d5 12 d6 13 d6 | 14 d7 15 d8 16 06 d9 16 |........|........|
|000049e0| 07 da 16 08 db 16 09 dc | 16 5c 6e dd 16 0b de 16 |........|.\n.....|
|000049f0| 0c df 0e 20 21 88 0e 21 | ab 85 e2 0e 21 21 88 e3 |... !..!|....!!..|
|00004a00| e4 21 ab 83 e5 16 24 e5 | 60 e5 1e 26 1e 27 1e 28 |.!....$.|`..&.'.(|
|00004a10| e9 ea eb ec 21 88 60 ec | 62 88 d7 23 ab a1 ed ec |....!.`.|b..#....|
|00004a20| 94 ec 95 7b 21 16 26 0e | 2e 0e 26 55 ac 91 0e 26 |...{!.&.|..&U...&|
|00004a30| 16 2e ef f0 0e 26 5c 22 | 88 0e 31 ab 83 f2 20 88 |.....&\"|..1... .|
|00004a40| 0e 27 62 88 2b e5 f3 f4 | 8f ab 99 f5 f6 21 88 f7 |.'b.+...|.....!..|
|00004a50| 16 36 0e 38 16 39 fa fb | 21 ab 89 fb fc fd fe 0e |.6.8.9..|!.......|
|00004a60| 12 23 21 88 0e 3f ab 86 | 81 40 00 ff 21 87 81 40 |.#!..?..|.@..!..@|
|00004a70| 00 81 41 00 21 87 22 20 | 5b 6b 69 6c 6c 2d 61 6c |..A.!." |[kill-al|
|00004a80| 6c 2d 6c 6f 63 61 6c 2d | 76 61 72 69 61 62 6c 65 |l-local-|variable|
|00004a90| 73 20 6d 61 6b 65 2d 6c | 6f 63 61 6c 2d 76 61 72 |s make-l|ocal-var|
|00004aa0| 69 61 62 6c 65 20 66 6f | 6e 74 2d 6c 6f 63 6b 2d |iable fo|nt-lock-|
|00004ab0| 64 65 66 61 75 6c 74 73 | 20 70 61 72 61 67 72 61 |defaults| paragra|
|00004ac0| 70 68 2d 73 65 70 61 72 | 61 74 65 20 70 61 72 61 |ph-separ|ate para|
|00004ad0| 67 72 61 70 68 2d 73 74 | 61 72 74 20 72 65 71 75 |graph-st|art requ|
|00004ae0| 69 72 65 2d 66 69 6e 61 | 6c 2d 6e 65 77 6c 69 6e |ire-fina|l-newlin|
|00004af0| 65 20 63 6f 6d 6d 65 6e | 74 2d 73 74 61 72 74 20 |e commen|t-start |
|00004b00| 63 6f 6d 6d 65 6e 74 2d | 65 6e 64 20 63 6f 6d 6d |comment-|end comm|
|00004b10| 65 6e 74 2d 73 74 61 72 | 74 2d 73 6b 69 70 20 63 |ent-star|t-skip c|
|00004b20| 6f 6d 6d 65 6e 74 2d 63 | 6f 6c 75 6d 6e 20 69 6e |omment-c|olumn in|
|00004b30| 64 65 6e 74 2d 72 65 67 | 69 6f 6e 2d 66 75 6e 63 |dent-reg|ion-func|
|00004b40| 74 69 6f 6e 20 69 6e 64 | 65 6e 74 2d 6c 69 6e 65 |tion ind|ent-line|
|00004b50| 2d 66 75 6e 63 74 69 6f | 6e 20 61 64 64 2d 6c 6f |-functio|n add-lo|
|00004b60| 67 2d 63 75 72 72 65 6e | 74 2d 64 65 66 75 6e 2d |g-curren|t-defun-|
|00004b70| 66 75 6e 63 74 69 6f 6e | 20 73 65 74 2d 73 79 6e |function| set-syn|
|00004b80| 74 61 78 2d 74 61 62 6c | 65 20 70 79 2d 6d 6f 64 |tax-tabl|e py-mod|
|00004b90| 65 2d 73 79 6e 74 61 78 | 2d 74 61 62 6c 65 20 70 |e-syntax|-table p|
|00004ba0| 79 74 68 6f 6e 2d 6d 6f | 64 65 20 6d 61 6a 6f 72 |ython-mo|de major|
|00004bb0| 2d 6d 6f 64 65 20 22 50 | 79 74 68 6f 6e 22 20 6d |-mode "P|ython" m|
|00004bc0| 6f 64 65 2d 6e 61 6d 65 | 20 70 79 74 68 6f 6e 2d |ode-name| python-|
|00004bd0| 6d 6f 64 65 2d 61 62 62 | 72 65 76 2d 74 61 62 6c |mode-abb|rev-tabl|
|00004be0| 65 20 6c 6f 63 61 6c 2d | 61 62 62 72 65 76 2d 74 |e local-|abbrev-t|
|00004bf0| 61 62 6c 65 20 28 70 79 | 74 68 6f 6e 2d 66 6f 6e |able (py|thon-fon|
|00004c00| 74 2d 6c 6f 63 6b 2d 6b | 65 79 77 6f 72 64 73 29 |t-lock-k|eywords)|
|00004c10| 20 22 5e 5b 20 09 5d 2a | 24 22 20 74 20 22 23 20 | "^[ .]*|$" t "# |
|00004c20| 22 20 22 22 20 22 23 20 | 2a 22 20 34 30 20 70 79 |" "" "# |*" 40 py|
|00004c30| 2d 69 6e 64 65 6e 74 2d | 72 65 67 69 6f 6e 20 70 |-indent-|region p|
|00004c40| 79 2d 69 6e 64 65 6e 74 | 2d 6c 69 6e 65 20 70 79 |y-indent|-line py|
|00004c50| 2d 63 75 72 72 65 6e 74 | 2d 64 65 66 75 6e 20 75 |-current|-defun u|
|00004c60| 73 65 2d 6c 6f 63 61 6c | 2d 6d 61 70 20 70 79 2d |se-local|-map py-|
|00004c70| 6d 6f 64 65 2d 6d 61 70 | 20 70 79 2d 6d 65 6e 75 |mode-map| py-menu|
|00004c80| 20 65 61 73 79 2d 6d 65 | 6e 75 2d 61 64 64 20 62 | easy-me|nu-add b|
|00004c90| 6f 75 6e 64 70 20 63 6f | 6d 6d 65 6e 74 2d 6d 75 |oundp co|mment-mu|
|00004ca0| 6c 74 69 2d 6c 69 6e 65 | 20 6e 69 6c 20 6e 65 77 |lti-line| nil new|
|00004cb0| 2d 74 61 62 2d 77 69 64 | 74 68 20 73 74 61 72 74 |-tab-wid|th start|
|00004cc0| 20 63 61 73 65 2d 66 6f | 6c 64 2d 73 65 61 72 63 | case-fo|ld-searc|
|00004cd0| 68 20 72 65 2d 73 65 61 | 72 63 68 2d 66 6f 72 77 |h re-sea|rch-forw|
|00004ce0| 61 72 64 20 22 5e 5b 20 | 09 5d 2a 23 5b 20 09 5d |ard "^[ |.]*#[ .]|
|00004cf0| 2a 76 69 3a 73 65 74 5b | 20 09 5d 2b 74 61 62 73 |*vi:set[| .]+tabs|
|00004d00| 69 7a 65 3d 5c 5c 28 5b | 30 2d 39 5d 2b 5c 5c 29 |ize=\\([|0-9]+\\)|
|00004d10| 3a 22 20 70 79 2d 6e 65 | 78 74 2d 73 74 61 74 65 |:" py-ne|xt-state|
|00004d20| 6d 65 6e 74 20 31 20 73 | 74 72 69 6e 67 2d 74 6f |ment 1 s|tring-to|
|00004d30| 2d 69 6e 74 20 74 61 62 | 2d 77 69 64 74 68 20 6d |-int tab|-width m|
|00004d40| 65 73 73 61 67 65 20 22 | 43 61 75 74 69 6f 6e 3a |essage "|Caution:|
|00004d50| 20 74 61 62 2d 77 69 64 | 74 68 20 63 68 61 6e 67 | tab-wid|th chang|
|00004d60| 65 64 20 74 6f 20 25 64 | 22 20 70 79 2d 62 65 65 |ed to %d|" py-bee|
|00004d70| 70 2d 69 66 2d 74 61 62 | 2d 63 68 61 6e 67 65 20 |p-if-tab|-change |
|00004d80| 62 65 65 70 20 28 62 79 | 74 65 2d 63 6f 64 65 20 |beep (by|te-code |
|00004d90| 22 c0 c1 21 87 22 20 5b | 72 65 71 75 69 72 65 20 |"..!." [|require |
|00004da0| 69 6d 65 6e 75 5d 20 32 | 29 20 28 28 65 72 72 6f |imenu] 2|) ((erro|
|00004db0| 72 29 29 20 6d 61 6b 65 | 2d 76 61 72 69 61 62 6c |r)) make|-variabl|
|00004dc0| 65 2d 62 75 66 66 65 72 | 2d 6c 6f 63 61 6c 20 69 |e-buffer|-local i|
|00004dd0| 6d 65 6e 75 2d 63 72 65 | 61 74 65 2d 69 6e 64 65 |menu-cre|ate-inde|
|00004de0| 78 2d 66 75 6e 63 74 69 | 6f 6e 20 69 6d 65 6e 75 |x-functi|on imenu|
|00004df0| 2d 65 78 61 6d 70 6c 65 | 2d 2d 63 72 65 61 74 65 |-example|--create|
|00004e00| 2d 70 79 74 68 6f 6e 2d | 69 6e 64 65 78 20 69 6d |-python-|index im|
|00004e10| 65 6e 75 2d 65 78 61 6d | 70 6c 65 2d 2d 67 65 6e |enu-exam|ple--gen|
|00004e20| 65 72 69 63 2d 70 79 74 | 68 6f 6e 2d 65 78 70 72 |eric-pyt|hon-expr|
|00004e30| 65 73 73 69 6f 6e 20 69 | 6d 65 6e 75 2d 67 65 6e |ession i|menu-gen|
|00004e40| 65 72 69 63 2d 65 78 70 | 72 65 73 73 69 6f 6e 20 |eric-exp|ression |
|00004e50| 66 62 6f 75 6e 64 70 20 | 69 6d 65 6e 75 2d 61 64 |fboundp |imenu-ad|
|00004e60| 64 2d 74 6f 2d 6d 65 6e | 75 62 61 72 20 66 6f 72 |d-to-men|ubar for|
|00004e70| 6d 61 74 20 22 25 73 2d | 25 73 22 20 22 49 4d 22 |mat "%s-|%s" "IM"|
|00004e80| 20 70 79 74 68 6f 6e 2d | 6d 6f 64 65 2d 68 6f 6f | python-|mode-hoo|
|00004e90| 6b 20 72 75 6e 2d 68 6f | 6f 6b 73 20 70 79 2d 6d |k run-ho|oks py-m|
|00004ea0| 6f 64 65 2d 68 6f 6f 6b | 5d 20 35 20 28 23 24 20 |ode-hook|] 5 (#$ |
|00004eb0| 2e 20 31 38 30 33 32 29 | 20 6e 69 6c 5d 29 0a 28 |. 18032)| nil]).(|
|00004ec0| 64 65 66 61 6c 69 61 73 | 20 27 70 79 2d 6f 75 74 |defalias| 'py-out|
|00004ed0| 64 65 6e 74 2d 70 20 23 | 5b 6e 69 6c 20 22 8a c0 |dent-p #|[nil "..|
|00004ee0| 20 88 c1 5c 6e 21 ad 97 | c3 c4 21 88 c1 0d 21 ac | ..\n!..|..!...!.|
|00004ef0| 83 6f ab 86 c3 c4 21 88 | aa 72 c1 0e 06 21 3f 29 |.o....!.|.r...!?)|
|00004f00| 87 22 20 5b 62 61 63 6b | 2d 74 6f 2d 69 6e 64 65 |." [back|-to-inde|
|00004f10| 6e 74 61 74 69 6f 6e 20 | 6c 6f 6f 6b 69 6e 67 2d |ntation |looking-|
|00004f20| 61 74 20 70 79 2d 6f 75 | 74 64 65 6e 74 2d 72 65 |at py-ou|tdent-re|
|00004f30| 20 62 61 63 6b 77 61 72 | 64 2d 74 6f 2d 69 6e 64 | backwar|d-to-ind|
|00004f40| 65 6e 74 61 74 69 6f 6e | 20 31 20 70 79 2d 62 6c |entation| 1 py-bl|
|00004f50| 61 6e 6b 2d 6f 72 2d 63 | 6f 6d 6d 65 6e 74 2d 72 |ank-or-c|omment-r|
|00004f60| 65 20 70 79 2d 6e 6f 2d | 6f 75 74 64 65 6e 74 2d |e py-no-|outdent-|
|00004f70| 72 65 5d 20 32 5d 29 0a | 23 40 32 31 34 20 49 6e |re] 2]).|#@214 In|
|00004f80| 73 65 72 74 20 61 20 63 | 6f 6c 6f 6e 2e 0a 49 6e |sert a c|olon..In|
|00004f90| 20 63 65 72 74 61 69 6e | 20 63 61 73 65 73 20 74 | certain| cases t|
|00004fa0| 68 65 20 6c 69 6e 65 20 | 69 73 20 6f 75 74 64 65 |he line |is outde|
|00004fb0| 6e 74 65 64 20 61 70 70 | 72 6f 70 72 69 61 74 65 |nted app|ropriate|
|00004fc0| 6c 79 2e 20 20 49 66 20 | 61 20 6e 75 6d 65 72 69 |ly. If |a numeri|
|00004fd0| 63 0a 61 72 67 75 6d 65 | 6e 74 20 69 73 20 70 72 |c.argume|nt is pr|
|00004fe0| 6f 76 69 64 65 64 2c 20 | 74 68 61 74 20 6d 61 6e |ovided, |that man|
|00004ff0| 79 20 63 6f 6c 6f 6e 73 | 20 61 72 65 20 69 6e 73 |y colons| are ins|
|00005000| 65 72 74 65 64 20 6e 6f | 6e 2d 65 6c 65 63 74 72 |erted no|n-electr|
|00005010| 69 63 61 6c 6c 79 2e 0a | 45 6c 65 63 74 72 69 63 |ically..|Electric|
|00005020| 20 62 65 68 61 76 69 6f | 72 20 69 73 20 69 6e 68 | behavio|r is inh|
|00005030| 69 62 69 74 65 64 20 69 | 6e 73 69 64 65 20 61 20 |ibited i|nside a |
|00005040| 73 74 72 69 6e 67 20 6f | 72 20 63 6f 6d 6d 65 6e |string o|r commen|
|00005050| 74 2e 1f 0a 28 64 65 66 | 61 6c 69 61 73 20 27 70 |t...(def|alias 'p|
|00005060| 79 2d 65 6c 65 63 74 72 | 69 63 2d 63 6f 6c 6f 6e |y-electr|ic-colon|
|00005070| 20 23 5b 28 61 72 67 29 | 20 22 c0 c1 5c 6e 21 21 | #[(arg)| "..\n!!|
|00005080| 88 8a c3 8a c4 20 88 60 | 29 60 5c 22 1d c6 0d 38 |..... .`|)`\"...8|
|00005090| ae 83 c7 0d 38 2a 3f ad | be 8a 60 c8 c9 ca 21 1e |....8*?.|..`...!.|
|000050a0| 0b 1e 0c 1e 0d 5c 6e ac | 96 ce 20 ab 92 0e 0b 8a |.....\n.|.. .....|
|000050b0| cf d0 21 88 c9 ca 21 29 | 55 ab 84 0e 11 16 0c d2 |..!...!)|U.......|
|000050c0| 20 0e 0b 57 3f ad 90 0e | 0d 62 88 c8 79 88 d3 20 | ..W?...|.b..y.. |
|000050d0| 88 0e 0b 0e 0c 5a 6a 2c | 87 22 20 5b 73 65 6c 66 |.....Zj,|." [self|
|000050e0| 2d 69 6e 73 65 72 74 2d | 63 6f 6d 6d 61 6e 64 20 |-insert-|command |
|000050f0| 70 72 65 66 69 78 2d 6e | 75 6d 65 72 69 63 2d 76 |prefix-n|umeric-v|
|00005100| 61 6c 75 65 20 61 72 67 | 20 70 61 72 73 65 2d 70 |alue arg| parse-p|
|00005110| 61 72 74 69 61 6c 2d 73 | 65 78 70 20 62 65 67 69 |artial-s|exp begi|
|00005120| 6e 6e 69 6e 67 2d 6f 66 | 2d 70 79 74 68 6f 6e 2d |nning-of|-python-|
|00005130| 64 65 66 2d 6f 72 2d 63 | 6c 61 73 73 20 70 70 73 |def-or-c|lass pps|
|00005140| 20 33 20 34 20 30 20 70 | 79 2d 63 6f 6d 70 75 74 | 3 4 0 p|y-comput|
|00005150| 65 2d 69 6e 64 65 6e 74 | 61 74 69 6f 6e 20 74 20 |e-indent|ation t |
|00005160| 69 6e 64 65 6e 74 20 6f | 75 74 64 65 6e 74 20 68 |indent o|utdent h|
|00005170| 65 72 65 20 70 79 2d 6f | 75 74 64 65 6e 74 2d 70 |ere py-o|utdent-p|
|00005180| 20 70 79 2d 6e 65 78 74 | 2d 73 74 61 74 65 6d 65 | py-next|-stateme|
|00005190| 6e 74 20 2d 31 20 70 79 | 2d 69 6e 64 65 6e 74 2d |nt -1 py|-indent-|
|000051a0| 6f 66 66 73 65 74 20 63 | 75 72 72 65 6e 74 2d 69 |offset c|urrent-i|
|000051b0| 6e 64 65 6e 74 61 74 69 | 6f 6e 20 64 65 6c 65 74 |ndentati|on delet|
|000051c0| 65 2d 68 6f 72 69 7a 6f | 6e 74 61 6c 2d 73 70 61 |e-horizo|ntal-spa|
|000051d0| 63 65 5d 20 34 20 28 23 | 24 20 2e 20 32 30 33 35 |ce] 4 (#|$ . 2035|
|000051e0| 30 29 20 22 50 22 5d 29 | 0a 28 64 65 66 61 6c 69 |0) "P"])|.(defali|
|000051f0| 61 73 20 27 70 79 2d 65 | 78 65 63 75 74 65 2d 66 |as 'py-e|xecute-f|
|00005200| 69 6c 65 20 23 5b 28 70 | 72 6f 63 20 66 69 6c 65 |ile #[(p|roc file|
|00005210| 6e 61 6d 65 29 20 22 70 | c0 09 21 c2 c3 c4 0d 5c |name) "p|..!....\|
|00005220| 22 c3 c6 0d 5c 22 1e 07 | 1e 08 1e 09 1e 5c 6e 1e |"...\"..|.....\n.|
|00005230| 0b cc 8e 0e 5c 6e 71 88 | 64 62 88 cd 09 21 60 ce |....\nq.|db...!`.|
|00005240| 93 88 cf 09 21 09 0e 08 | 5c 22 88 29 d0 09 0e 07 |....!...|\".)....|
|00005250| 5c 22 2d 87 22 20 5b 70 | 72 6f 63 65 73 73 2d 62 |\"-." [p|rocess-b|
|00005260| 75 66 66 65 72 20 70 72 | 6f 63 20 74 20 66 6f 72 |uffer pr|oc t for|
|00005270| 6d 61 74 20 22 23 23 20 | 77 6f 72 6b 69 6e 67 20 |mat "## |working |
|00005280| 6f 6e 20 72 65 67 69 6f | 6e 20 69 6e 20 66 69 6c |on regio|n in fil|
|00005290| 65 20 25 73 2e 2e 2e 5c | 6e 22 20 66 69 6c 65 6e |e %s...\|n" filen|
|000052a0| 61 6d 65 20 22 65 78 65 | 63 66 69 6c 65 28 27 25 |ame "exe|cfile('%|
|000052b0| 73 27 29 5c 6e 22 20 63 | 6d 64 20 6d 73 67 20 63 |s')\n" c|md msg c|
|000052c0| 6f 6d 69 6e 74 2d 73 63 | 72 6f 6c 6c 2d 74 6f 2d |omint-sc|roll-to-|
|000052d0| 62 6f 74 74 6f 6d 2d 6f | 6e 2d 6f 75 74 70 75 74 |bottom-o|n-output|
|000052e0| 20 70 72 6f 63 62 75 66 | 20 63 75 72 62 75 66 20 | procbuf| curbuf |
|000052f0| 28 28 73 65 74 2d 62 75 | 66 66 65 72 20 63 75 72 |((set-bu|ffer cur|
|00005300| 62 75 66 29 29 20 70 72 | 6f 63 65 73 73 2d 6d 61 |buf)) pr|ocess-ma|
|00005310| 72 6b 20 6e 69 6c 20 70 | 72 6f 63 65 73 73 2d 66 |rk nil p|rocess-f|
|00005320| 69 6c 74 65 72 20 70 72 | 6f 63 65 73 73 2d 73 65 |ilter pr|ocess-se|
|00005330| 6e 64 2d 73 74 72 69 6e | 67 5d 20 37 5d 29 0a 28 |nd-strin|g] 7]).(|
|00005340| 64 65 66 61 6c 69 61 73 | 20 27 70 79 2d 70 72 6f |defalias| 'py-pro|
|00005350| 63 65 73 73 2d 66 69 6c | 74 65 72 20 23 5b 28 70 |cess-fil|ter #[(p|
|00005360| 79 70 72 6f 63 20 73 74 | 72 69 6e 67 29 20 22 70 |yproc st|ring) "p|
|00005370| c0 09 21 c2 09 21 c3 1c | 1d 1e 06 1e 07 c8 8e 0e |..!..!..|........|
|00005380| 07 0e 06 61 ab 85 c9 ca | 21 71 88 0e 06 71 88 60 |...a....|!q...q.`|
|00005390| 89 1e 0b 0d 57 89 1e 0c | 3f ad 84 0e 0b 64 55 1e |....W...|?....dU.|
|000053a0| 0d c3 1e 0e 0d 62 88 0e | 0f 63 88 0d 60 c3 93 88 |.....b..|.c..`...|
|000053b0| 0e 10 ad 8b d1 79 88 60 | 0d 62 88 60 7b d2 6b 14 |.....y.`|.b.`{.k.|
|000053c0| 0e 0c ab 86 0e 0b 62 88 | aa 94 0e 13 ab 90 d4 1e |......b.|........|
|000053d0| 15 d6 0e 06 21 1e 17 d8 | 0e 17 60 5c 22 88 2a 0e |....!...|..`\".*.|
|000053e0| 07 71 88 0c ab 94 c3 d9 | da 8f 88 0e 10 41 89 16 |.q......|.....A..|
|000053f0| 10 ab 87 db 09 0e 10 40 | 5c 22 88 0e 0d ad 86 0e |.......@|\"......|
|00005400| 06 71 88 64 62 2e 09 87 | 22 20 5b 70 72 6f 63 65 |.q.db...|" [proce|
|00005410| 73 73 2d 62 75 66 66 65 | 72 20 70 79 70 72 6f 63 |ss-buffe|r pyproc|
|00005420| 20 70 72 6f 63 65 73 73 | 2d 6d 61 72 6b 20 6e 69 | process|-mark ni|
|00005430| 6c 20 66 69 6c 65 2d 66 | 69 6e 69 73 68 65 64 20 |l file-f|inished |
|00005440| 70 6d 61 72 6b 20 70 62 | 75 66 20 63 75 72 62 75 |pmark pb|uf curbu|
|00005450| 66 20 28 28 73 65 74 2d | 62 75 66 66 65 72 20 63 |f ((set-|buffer c|
|00005460| 75 72 62 75 66 29 29 20 | 67 65 74 2d 62 75 66 66 |urbuf)) |get-buff|
|00005470| 65 72 2d 63 72 65 61 74 | 65 20 22 2a 73 63 72 61 |er-creat|e "*scra|
|00005480| 74 63 68 2a 22 20 73 74 | 61 72 74 20 67 6f 62 61 |tch*" st|art goba|
|00005490| 63 6b 20 67 6f 65 6e 64 | 20 62 75 66 66 65 72 2d |ck goend| buffer-|
|000054a0| 72 65 61 64 2d 6f 6e 6c | 79 20 73 74 72 69 6e 67 |read-onl|y string|
|000054b0| 20 70 79 2d 66 69 6c 65 | 2d 71 75 65 75 65 20 30 | py-file|-queue 0|
|000054c0| 20 22 3e 3e 3e 20 22 20 | 70 79 2d 73 63 72 6f 6c | ">>> " |py-scrol|
|000054d0| 6c 2d 70 72 6f 63 65 73 | 73 2d 62 75 66 66 65 72 |l-proces|s-buffer|
|000054e0| 20 74 20 70 6f 70 2d 75 | 70 2d 77 69 6e 64 6f 77 | t pop-u|p-window|
|000054f0| 73 20 64 69 73 70 6c 61 | 79 2d 62 75 66 66 65 72 |s displa|y-buffer|
|00005500| 20 70 77 69 6e 20 73 65 | 74 2d 77 69 6e 64 6f 77 | pwin se|t-window|
|00005510| 2d 70 6f 69 6e 74 20 28 | 62 79 74 65 2d 63 6f 64 |-point (|byte-cod|
|00005520| 65 20 22 c0 09 40 21 87 | 22 20 5b 64 65 6c 65 74 |e "..@!.|" [delet|
|00005530| 65 2d 66 69 6c 65 20 70 | 79 2d 66 69 6c 65 2d 71 |e-file p|y-file-q|
|00005540| 75 65 75 65 5d 20 32 29 | 20 28 28 65 72 72 6f 72 |ueue] 2)| ((error|
|00005550| 29 29 20 70 79 2d 65 78 | 65 63 75 74 65 2d 66 69 |)) py-ex|ecute-fi|
|00005560| 6c 65 5d 20 35 5d 29 0a | 28 64 65 66 61 6c 69 61 |le] 5]).|(defalia|
|00005570| 73 20 27 70 79 2d 70 6f | 73 74 70 72 6f 63 65 73 |s 'py-po|stproces|
|00005580| 73 2d 6f 75 74 70 75 74 | 2d 62 75 66 66 65 72 20 |s-output|-buffer |
|00005590| 23 5b 28 62 75 66 29 20 | 22 c0 89 89 19 1a 1b 8a |#[(buf) |".......|
|000055a0| 0c 71 88 c5 20 88 c6 0e | 07 c0 c8 23 83 ff 00 c9 |.q.. ...|...#....|
|000055b0| ca 21 12 cb c9 cc 21 21 | 13 c1 1e 0d 60 1e 0e 0e |.!....!!|....`...|
|000055c0| 0d c1 61 ab 85 cf 79 88 | aa bd 0e 0d d0 61 ab 85 |..a...y.|.....a..|
|000055d0| c0 7f 88 aa b2 0e 0d d1 | 61 ab 85 d2 20 88 aa a7 |........|a... ...|
|000055e0| 0e 0d d3 61 ab 85 c5 20 | 88 aa 9c 0e 0d d4 61 ab |...a... |......a.|
|000055f0| 85 d5 20 88 aa 91 0e 0d | d6 61 ab 85 d7 20 88 aa |.. .....|.a... ..|
|00005600| 86 d8 d9 0e 0d 5c 22 88 | 60 0e 0e 62 88 2a 89 11 |.....\".|`..b.*..|
|00005610| d0 1e 0d 60 1e 0e 0e 0d | c1 61 ab 85 cf 79 88 aa |...`....|.a...y..|
|00005620| bd 0e 0d d0 61 ab 85 c0 | 7f 88 aa b2 0e 0d d1 61 |....a...|.......a|
|00005630| ab 85 d2 20 88 aa a7 0e | 0d d3 61 ab 85 c5 20 88 |... ....|..a... .|
|00005640| aa 9c 0e 0d d4 61 ab 85 | d5 20 88 aa 91 0e 0d d6 |.....a..|. ......|
|00005650| 61 ab 85 d7 20 88 aa 86 | d8 d9 0e 0d 5c 22 88 60 |a... ...|....\".`|
|00005660| 0e 0e 62 88 2a 5c 6e 0b | 1b 1a 1e 1a 1e 1b dc dd |..b.*\n.|........|
|00005670| 21 ab a2 dd 0e 1b 0e 1a | 5c 22 1e 1e df 0e 1e e0 |!.......|\"......|
|00005680| e1 23 88 df 0e 1e e2 5c | 6e 0b 42 23 88 df 0e 1e |.#.....\|n.B#....|
|00005690| e3 0e 24 23 29 aa 81 c8 | 88 2c 82 0d 00 0e 25 ad |..$#)...|.,....%.|
|000056a0| 8a 0b ad 87 e6 20 88 e7 | 5c 6e 0b 5c 22 2c 87 22 |..... ..|\n.\",."|
|000056b0| 20 5b 6e 69 6c 20 62 6f | 6c 20 66 69 6c 65 20 6c | [nil bo|l file l|
|000056c0| 69 6e 65 20 62 75 66 20 | 62 65 67 69 6e 6e 69 6e |ine buf |beginnin|
|000056d0| 67 2d 6f 66 2d 62 75 66 | 66 65 72 20 72 65 2d 73 |g-of-buf|fer re-s|
|000056e0| 65 61 72 63 68 2d 66 6f | 72 77 61 72 64 20 70 79 |earch-fo|rward py|
|000056f0| 2d 74 72 61 63 65 62 61 | 63 6b 2d 6c 69 6e 65 2d |-traceba|ck-line-|
|00005700| 72 65 20 74 20 6d 61 74 | 63 68 2d 73 74 72 69 6e |re t mat|ch-strin|
|00005710| 67 20 31 20 73 74 72 69 | 6e 67 2d 74 6f 2d 69 6e |g 1 stri|ng-to-in|
|00005720| 74 20 32 20 70 6f 73 69 | 74 69 6f 6e 20 68 65 72 |t 2 posi|tion her|
|00005730| 65 20 30 20 65 6f 6c 20 | 62 6f 64 20 62 65 67 69 |e 0 eol |bod begi|
|00005740| 6e 6e 69 6e 67 2d 6f 66 | 2d 70 79 74 68 6f 6e 2d |nning-of|-python-|
|00005750| 64 65 66 2d 6f 72 2d 63 | 6c 61 73 73 20 62 6f 62 |def-or-c|lass bob|
|00005760| 20 65 6f 62 20 65 6e 64 | 2d 6f 66 2d 62 75 66 66 | eob end|-of-buff|
|00005770| 65 72 20 62 6f 69 20 62 | 61 63 6b 2d 74 6f 2d 69 |er boi b|ack-to-i|
|00005780| 6e 64 65 6e 74 61 74 69 | 6f 6e 20 65 72 72 6f 72 |ndentati|on error|
|00005790| 20 22 75 6e 6b 6e 6f 77 | 6e 20 62 75 66 66 65 72 | "unknow|n buffer|
|000057a0| 20 70 6f 73 69 74 69 6f | 6e 20 72 65 71 75 65 73 | positio|n reques|
|000057b0| 74 65 64 3a 20 25 73 22 | 20 74 6f 20 66 72 6f 6d |ted: %s"| to from|
|000057c0| 20 66 62 6f 75 6e 64 70 | 20 6d 61 6b 65 2d 65 78 | fboundp| make-ex|
|000057d0| 74 65 6e 74 20 65 20 73 | 65 74 2d 65 78 74 65 6e |tent e s|et-exten|
|000057e0| 74 2d 70 72 6f 70 65 72 | 74 79 20 6d 6f 75 73 65 |t-proper|ty mouse|
|000057f0| 2d 66 61 63 65 20 68 69 | 67 68 6c 69 67 68 74 20 |-face hi|ghlight |
|00005800| 70 79 2d 65 78 63 2d 69 | 6e 66 6f 20 6b 65 79 6d |py-exc-i|nfo keym|
|00005810| 61 70 20 70 79 2d 6d 6f | 64 65 2d 6f 75 74 70 75 |ap py-mo|de-outpu|
|00005820| 74 2d 6d 61 70 20 70 79 | 2d 6a 75 6d 70 2d 6f 6e |t-map py|-jump-on|
|00005830| 2d 65 78 63 65 70 74 69 | 6f 6e 20 62 65 65 70 20 |-excepti|on beep |
|00005840| 70 79 2d 6a 75 6d 70 2d | 74 6f 2d 65 78 63 65 70 |py-jump-|to-excep|
|00005850| 74 69 6f 6e 5d 20 36 5d | 29 0a 28 62 79 74 65 2d |tion] 6]|).(byte-|
|00005860| 63 6f 64 65 20 22 c0 c1 | 21 ac 82 c2 11 c1 0b 42 |code "..|!......B|
|00005870| 13 c0 c4 21 ac 82 c5 14 | c4 0b 42 13 c6 16 07 c7 |...!....|..B.....|
|00005880| 0b 42 13 c5 87 22 20 5b | 62 6f 75 6e 64 70 20 70 |.B..." [|boundp p|
|00005890| 79 2d 73 65 72 69 61 6c | 2d 6e 75 6d 62 65 72 20 |y-serial|-number |
|000058a0| 30 20 63 75 72 72 65 6e | 74 2d 6c 6f 61 64 2d 6c |0 curren|t-load-l|
|000058b0| 69 73 74 20 70 79 2d 65 | 78 63 65 70 74 69 6f 6e |ist py-e|xception|
|000058c0| 2d 62 75 66 66 65 72 20 | 6e 69 6c 20 22 2a 50 79 |-buffer |nil "*Py|
|000058d0| 74 68 6f 6e 20 4f 75 74 | 70 75 74 2a 22 20 70 79 |thon Out|put*" py|
|000058e0| 2d 6f 75 74 70 75 74 2d | 62 75 66 66 65 72 5d 20 |-output-|buffer] |
|000058f0| 32 29 0a 23 40 31 33 31 | 35 20 53 74 61 72 74 20 |2).#@131|5 Start |
|00005900| 61 6e 20 69 6e 74 65 72 | 61 63 74 69 76 65 20 50 |an inter|active P|
|00005910| 79 74 68 6f 6e 20 69 6e | 74 65 72 70 72 65 74 65 |ython in|terprete|
|00005920| 72 20 69 6e 20 61 6e 6f | 74 68 65 72 20 77 69 6e |r in ano|ther win|
|00005930| 64 6f 77 2e 0a 54 68 69 | 73 20 69 73 20 6c 69 6b |dow..Thi|s is lik|
|00005940| 65 20 53 68 65 6c 6c 20 | 6d 6f 64 65 2c 20 65 78 |e Shell |mode, ex|
|00005950| 63 65 70 74 20 74 68 61 | 74 20 50 79 74 68 6f 6e |cept tha|t Python|
|00005960| 20 69 73 20 72 75 6e 6e | 69 6e 67 20 69 6e 20 74 | is runn|ing in t|
|00005970| 68 65 20 77 69 6e 64 6f | 77 0a 69 6e 73 74 65 61 |he windo|w.instea|
|00005980| 64 20 6f 66 20 61 20 73 | 68 65 6c 6c 2e 20 20 53 |d of a s|hell. S|
|00005990| 65 65 20 74 68 65 20 60 | 49 6e 74 65 72 61 63 74 |ee the `|Interact|
|000059a0| 69 76 65 20 53 68 65 6c | 6c 27 20 61 6e 64 20 60 |ive Shel|l' and `|
|000059b0| 53 68 65 6c 6c 20 4d 6f | 64 65 27 0a 73 65 63 74 |Shell Mo|de'.sect|
|000059c0| 69 6f 6e 73 20 6f 66 20 | 74 68 65 20 45 6d 61 63 |ions of |the Emac|
|000059d0| 73 20 6d 61 6e 75 61 6c | 20 66 6f 72 20 64 65 74 |s manual| for det|
|000059e0| 61 69 6c 73 2c 20 65 73 | 70 65 63 69 61 6c 6c 79 |ails, es|pecially|
|000059f0| 20 66 6f 72 20 74 68 65 | 20 6b 65 79 0a 62 69 6e | for the| key.bin|
|00005a00| 64 69 6e 67 73 20 61 63 | 74 69 76 65 20 69 6e 20 |dings ac|tive in |
|00005a10| 74 68 65 20 60 2a 50 79 | 74 68 6f 6e 2a 27 20 62 |the `*Py|thon*' b|
|00005a20| 75 66 66 65 72 2e 0a 0a | 53 65 65 20 74 68 65 20 |uffer...|See the |
|00005a30| 64 6f 63 73 20 66 6f 72 | 20 76 61 72 69 61 62 6c |docs for| variabl|
|00005a40| 65 20 60 70 79 2d 73 63 | 72 6f 6c 6c 2d 62 75 66 |e `py-sc|roll-buf|
|00005a50| 66 65 72 27 20 66 6f 72 | 20 69 6e 66 6f 20 6f 6e |fer' for| info on|
|00005a60| 20 73 63 72 6f 6c 6c 69 | 6e 67 0a 62 65 68 61 76 | scrolli|ng.behav|
|00005a70| 69 6f 72 20 69 6e 20 74 | 68 65 20 70 72 6f 63 65 |ior in t|he proce|
|00005a80| 73 73 20 77 69 6e 64 6f | 77 2e 0a 0a 57 61 72 6e |ss windo|w...Warn|
|00005a90| 69 6e 67 3a 20 44 6f 6e | 27 74 20 75 73 65 20 61 |ing: Don|'t use a|
|00005aa0| 6e 20 69 6e 74 65 72 61 | 63 74 69 76 65 20 50 79 |n intera|ctive Py|
|00005ab0| 74 68 6f 6e 20 69 66 20 | 79 6f 75 20 63 68 61 6e |thon if |you chan|
|00005ac0| 67 65 20 73 79 73 2e 70 | 73 31 20 6f 72 0a 73 79 |ge sys.p|s1 or.sy|
|00005ad0| 73 2e 70 73 32 20 66 72 | 6f 6d 20 74 68 65 69 72 |s.ps2 fr|om their|
|00005ae0| 20 64 65 66 61 75 6c 74 | 20 76 61 6c 75 65 73 2c | default| values,|
|00005af0| 20 6f 72 20 69 66 20 79 | 6f 75 27 72 65 20 72 75 | or if y|ou're ru|
|00005b00| 6e 6e 69 6e 67 20 63 6f | 64 65 20 74 68 61 74 0a |nning co|de that.|
|00005b10| 70 72 69 6e 74 73 20 60 | 3e 3e 3e 20 27 20 6f 72 |prints `|>>> ' or|
|00005b20| 20 60 2e 2e 2e 20 27 20 | 61 74 20 74 68 65 20 73 | `... ' |at the s|
|00005b30| 74 61 72 74 20 6f 66 20 | 61 20 6c 69 6e 65 2e 20 |tart of |a line. |
|00005b40| 20 60 70 79 74 68 6f 6e | 2d 6d 6f 64 65 27 20 63 | `python|-mode' c|
|00005b50| 61 6e 27 74 0a 64 69 73 | 74 69 6e 67 75 69 73 68 |an't.dis|tinguish|
|00005b60| 20 79 6f 75 72 20 6f 75 | 74 70 75 74 20 66 72 6f | your ou|tput fro|
|00005b70| 6d 20 50 79 74 68 6f 6e | 27 73 20 6f 75 74 70 75 |m Python|'s outpu|
|00005b80| 74 2c 20 61 6e 64 20 61 | 73 73 75 6d 65 73 20 74 |t, and a|ssumes t|
|00005b90| 68 61 74 20 60 3e 3e 3e | 20 27 0a 61 74 20 74 68 |hat `>>>| '.at th|
|00005ba0| 65 20 73 74 61 72 74 20 | 6f 66 20 61 20 6c 69 6e |e start |of a lin|
|00005bb0| 65 20 69 73 20 61 20 70 | 72 6f 6d 70 74 20 66 72 |e is a p|rompt fr|
|00005bc0| 6f 6d 20 50 79 74 68 6f | 6e 2e 20 20 53 69 6d 69 |om Pytho|n. Simi|
|00005bd0| 6c 61 72 6c 79 2c 20 74 | 68 65 20 45 6d 61 63 73 |larly, t|he Emacs|
|00005be0| 0a 53 68 65 6c 6c 20 6d | 6f 64 65 20 63 6f 64 65 |.Shell m|ode code|
|00005bf0| 20 61 73 73 75 6d 65 73 | 20 74 68 61 74 20 62 6f | assumes| that bo|
|00005c00| 74 68 20 60 3e 3e 3e 20 | 27 20 61 6e 64 20 60 2e |th `>>> |' and `.|
|00005c10| 2e 2e 20 27 20 61 74 20 | 74 68 65 20 73 74 61 72 |.. ' at |the star|
|00005c20| 74 20 6f 66 20 61 0a 6c | 69 6e 65 20 61 72 65 20 |t of a.l|ine are |
|00005c30| 50 79 74 68 6f 6e 20 70 | 72 6f 6d 70 74 73 2e 20 |Python p|rompts. |
|00005c40| 20 42 61 64 20 74 68 69 | 6e 67 73 20 63 61 6e 20 | Bad thi|ngs can |
|00005c50| 68 61 70 70 65 6e 20 69 | 66 20 79 6f 75 20 66 6f |happen i|f you fo|
|00005c60| 6f 6c 20 65 69 74 68 65 | 72 0a 6d 6f 64 65 2e 0a |ol eithe|r.mode..|
|00005c70| 0a 57 61 72 6e 69 6e 67 | 3a 20 20 49 66 20 79 6f |.Warning|: If yo|
|00005c80| 75 20 64 6f 20 61 6e 79 | 20 65 64 69 74 69 6e 67 |u do any| editing|
|00005c90| 20 2a 69 6e 2a 20 74 68 | 65 20 70 72 6f 63 65 73 | *in* th|e proces|
|00005ca0| 73 20 62 75 66 66 65 72 | 20 2a 77 68 69 6c 65 2a |s buffer| *while*|
|00005cb0| 20 74 68 65 0a 62 75 66 | 66 65 72 20 69 73 20 61 | the.buf|fer is a|
|00005cc0| 63 63 65 70 74 69 6e 67 | 20 6f 75 74 70 75 74 20 |ccepting| output |
|00005cd0| 66 72 6f 6d 20 50 79 74 | 68 6f 6e 2c 20 64 6f 20 |from Pyt|hon, do |
|00005ce0| 4e 4f 54 20 61 74 74 65 | 6d 70 74 20 74 6f 20 60 |NOT atte|mpt to `|
|00005cf0| 75 6e 64 6f 27 20 74 68 | 65 0a 63 68 61 6e 67 65 |undo' th|e.change|
|00005d00| 73 2e 20 20 53 6f 6d 65 | 20 6f 66 20 74 68 65 20 |s. Some| of the |
|00005d10| 6f 75 74 70 75 74 20 28 | 6e 6f 77 68 65 72 65 20 |output (|nowhere |
|00005d20| 6e 65 61 72 20 74 68 65 | 20 70 61 72 74 73 20 79 |near the| parts y|
|00005d30| 6f 75 20 63 68 61 6e 67 | 65 64 21 29 20 6d 61 79 |ou chang|ed!) may|
|00005d40| 0a 62 65 20 6c 6f 73 74 | 20 69 66 20 79 6f 75 20 |.be lost| if you |
|00005d50| 64 6f 2e 20 20 54 68 69 | 73 20 61 70 70 65 61 72 |do. Thi|s appear|
|00005d60| 73 20 74 6f 20 62 65 20 | 61 6e 20 45 6d 61 63 73 |s to be |an Emacs|
|00005d70| 20 62 75 67 2c 20 61 6e | 20 75 6e 66 6f 72 74 75 | bug, an| unfortu|
|00005d80| 6e 61 74 65 0a 69 6e 74 | 65 72 61 63 74 69 6f 6e |nate.int|eraction|
|00005d90| 20 62 65 74 77 65 65 6e | 20 75 6e 64 6f 20 61 6e | between| undo an|
|00005da0| 64 20 70 72 6f 63 65 73 | 73 20 66 69 6c 74 65 72 |d proces|s filter|
|00005db0| 73 3b 20 74 68 65 20 73 | 61 6d 65 20 70 72 6f 62 |s; the s|ame prob|
|00005dc0| 6c 65 6d 20 65 78 69 73 | 74 73 20 69 6e 0a 6e 6f |lem exis|ts in.no|
|00005dd0| 6e 2d 50 79 74 68 6f 6e | 20 70 72 6f 63 65 73 73 |n-Python| process|
|00005de0| 20 62 75 66 66 65 72 73 | 20 75 73 69 6e 67 20 74 | buffers| using t|
|00005df0| 68 65 20 64 65 66 61 75 | 6c 74 20 28 45 6d 61 63 |he defau|lt (Emac|
|00005e00| 73 2d 73 75 70 70 6c 69 | 65 64 29 20 70 72 6f 63 |s-suppli|ed) proc|
|00005e10| 65 73 73 0a 66 69 6c 74 | 65 72 2e 1f 0a 28 64 65 |ess.filt|er...(de|
|00005e20| 66 61 6c 69 61 73 20 27 | 70 79 2d 73 68 65 6c 6c |falias '|py-shell|
|00005e30| 20 23 5b 6e 69 6c 20 22 | c0 c1 21 88 c2 c3 c4 0d | #[nil "|..!.....|
|00005e40| c6 c7 24 21 88 c8 c9 21 | 88 ca 16 09 cb cc 70 21 |..$!...!|......p!|
|00005e50| cd 5c 22 88 ce 0e 0f 21 | 88 d0 d1 d2 5c 22 88 d0 |.\"....!|....\"..|
|00005e60| d3 d4 5c 22 88 d0 d5 d6 | 5c 22 87 22 20 5b 72 65 |..\"....|\"." [re|
|00005e70| 71 75 69 72 65 20 63 6f | 6d 69 6e 74 20 73 77 69 |quire co|mint swi|
|00005e80| 74 63 68 2d 74 6f 2d 62 | 75 66 66 65 72 2d 6f 74 |tch-to-b|uffer-ot|
|00005e90| 68 65 72 2d 77 69 6e 64 | 6f 77 20 6d 61 6b 65 2d |her-wind|ow make-|
|00005ea0| 63 6f 6d 69 6e 74 20 22 | 50 79 74 68 6f 6e 22 20 |comint "|Python" |
|00005eb0| 70 79 2d 70 79 74 68 6f | 6e 2d 63 6f 6d 6d 61 6e |py-pytho|n-comman|
|00005ec0| 64 20 6e 69 6c 20 22 2d | 69 22 20 6d 61 6b 65 2d |d nil "-|i" make-|
|00005ed0| 6c 6f 63 61 6c 2d 76 61 | 72 69 61 62 6c 65 20 63 |local-va|riable c|
|00005ee0| 6f 6d 69 6e 74 2d 70 72 | 6f 6d 70 74 2d 72 65 67 |omint-pr|ompt-reg|
|00005ef0| 65 78 70 20 22 5e 3e 3e | 3e 20 5c 5c 7c 5e 5b 2e |exp "^>>|> \\|^[.|
|00005f00| 5d 5b 2e 5d 5b 2e 5d 20 | 22 20 73 65 74 2d 70 72 |][.][.] |" set-pr|
|00005f10| 6f 63 65 73 73 2d 66 69 | 6c 74 65 72 20 67 65 74 |ocess-fi|lter get|
|00005f20| 2d 62 75 66 66 65 72 2d | 70 72 6f 63 65 73 73 20 |-buffer-|process |
|00005f30| 70 79 2d 70 72 6f 63 65 | 73 73 2d 66 69 6c 74 65 |py-proce|ss-filte|
|00005f40| 72 20 73 65 74 2d 73 79 | 6e 74 61 78 2d 74 61 62 |r set-sy|ntax-tab|
|00005f50| 6c 65 20 70 79 2d 6d 6f | 64 65 2d 73 79 6e 74 61 |le py-mo|de-synta|
|00005f60| 78 2d 74 61 62 6c 65 20 | 6c 6f 63 61 6c 2d 73 65 |x-table |local-se|
|00005f70| 74 2d 6b 65 79 20 5b 74 | 61 62 5d 20 73 65 6c 66 |t-key [t|ab] self|
|00005f80| 2d 69 6e 73 65 72 74 2d | 63 6f 6d 6d 61 6e 64 20 |-insert-|command |
|00005f90| 22 03 2d 22 20 70 79 2d | 75 70 2d 65 78 63 65 70 |".-" py-|up-excep|
|00005fa0| 74 69 6f 6e 20 22 03 3d | 22 20 70 79 2d 64 6f 77 |tion ".=|" py-dow|
|00005fb0| 6e 2d 65 78 63 65 70 74 | 69 6f 6e 5d 20 36 20 28 |n-except|ion] 6 (|
|00005fc0| 23 24 20 2e 20 32 32 37 | 37 38 29 20 6e 69 6c 5d |#$ . 227|78) nil]|
|00005fd0| 29 0a 23 40 35 36 20 43 | 6c 65 61 72 20 74 68 65 |).#@56 C|lear the|
|00005fe0| 20 71 75 65 75 65 20 6f | 66 20 74 65 6d 70 6f 72 | queue o|f tempor|
|00005ff0| 61 72 79 20 66 69 6c 65 | 73 20 77 61 69 74 69 6e |ary file|s waitin|
|00006000| 67 20 74 6f 20 65 78 65 | 63 75 74 65 2e 1f 0a 28 |g to exe|cute...(|
|00006010| 64 65 66 61 6c 69 61 73 | 20 27 70 79 2d 63 6c 65 |defalias| 'py-cle|
|00006020| 61 72 2d 71 75 65 75 65 | 20 23 5b 6e 69 6c 20 22 |ar-queue| #[nil "|
|00006030| 08 47 19 c2 c3 08 5c 22 | 88 c4 10 c5 c6 09 5c 22 |.G....\"|......\"|
|00006040| 29 87 22 20 5b 70 79 2d | 66 69 6c 65 2d 71 75 65 |)." [py-|file-que|
|00006050| 75 65 20 6e 20 6d 61 70 | 63 61 72 20 64 65 6c 65 |ue n map|car dele|
|00006060| 74 65 2d 66 69 6c 65 20 | 6e 69 6c 20 6d 65 73 73 |te-file |nil mess|
|00006070| 61 67 65 20 22 25 64 20 | 70 65 6e 64 69 6e 67 20 |age "%d |pending |
|00006080| 66 69 6c 65 73 20 64 65 | 2d 71 75 65 75 65 64 2e |files de|-queued.|
|00006090| 22 5d 20 33 20 28 23 24 | 20 2e 20 32 34 35 33 35 |"] 3 (#$| . 24535|
|000060a0| 29 20 6e 69 6c 5d 29 0a | 23 40 38 37 38 20 45 78 |) nil]).|#@878 Ex|
|000060b0| 65 63 75 74 65 20 74 68 | 65 20 74 68 65 20 72 65 |ecute th|e the re|
|000060c0| 67 69 6f 6e 20 69 6e 20 | 61 20 50 79 74 68 6f 6e |gion in |a Python|
|000060d0| 20 69 6e 74 65 72 70 72 | 65 74 65 72 2e 0a 54 68 | interpr|eter..Th|
|000060e0| 65 20 72 65 67 69 6f 6e | 20 69 73 20 66 69 72 73 |e region| is firs|
|000060f0| 74 20 63 6f 70 69 65 64 | 20 69 6e 74 6f 20 61 20 |t copied| into a |
|00006100| 74 65 6d 70 6f 72 61 72 | 79 20 66 69 6c 65 20 28 |temporar|y file (|
|00006110| 69 6e 20 74 68 65 20 64 | 69 72 65 63 74 6f 72 79 |in the d|irectory|
|00006120| 0a 60 70 79 2d 74 65 6d | 70 2d 64 69 72 65 63 74 |.`py-tem|p-direct|
|00006130| 6f 72 79 27 29 2e 20 20 | 49 66 20 74 68 65 72 65 |ory'). |If there|
|00006140| 20 69 73 20 6e 6f 20 50 | 79 74 68 6f 6e 20 69 6e | is no P|ython in|
|00006150| 74 65 72 70 72 65 74 65 | 72 20 73 68 65 6c 6c 0a |terprete|r shell.|
|00006160| 72 75 6e 6e 69 6e 67 2c | 20 74 68 69 73 20 66 69 |running,| this fi|
|00006170| 6c 65 20 69 73 20 65 78 | 65 63 75 74 65 64 20 73 |le is ex|ecuted s|
|00006180| 79 6e 63 68 72 6f 6e 6f | 75 73 6c 79 20 75 73 69 |ynchrono|usly usi|
|00006190| 6e 67 0a 60 73 68 65 6c | 6c 2d 63 6f 6d 6d 61 6e |ng.`shel|l-comman|
|000061a0| 64 2d 6f 6e 2d 72 65 67 | 69 6f 6e 27 2e 20 20 49 |d-on-reg|ion'. I|
|000061b0| 66 20 74 68 65 20 70 72 | 6f 67 72 61 6d 20 69 73 |f the pr|ogram is|
|000061c0| 20 6c 6f 6e 67 20 72 75 | 6e 6e 69 6e 67 2c 20 75 | long ru|nning, u|
|000061d0| 73 65 20 61 6e 0a 6f 70 | 74 69 6f 6e 61 6c 20 5c |se an.op|tional \|
|000061e0| 5b 75 6e 69 76 65 72 73 | 61 6c 2d 61 72 67 75 6d |[univers|al-argum|
|000061f0| 65 6e 74 5d 20 74 6f 20 | 72 75 6e 20 74 68 65 20 |ent] to |run the |
|00006200| 63 6f 6d 6d 61 6e 64 20 | 61 73 79 6e 63 68 72 6f |command |asynchro|
|00006210| 6e 6f 75 73 6c 79 20 69 | 6e 0a 69 74 73 20 6f 77 |nously i|n.its ow|
|00006220| 6e 20 62 75 66 66 65 72 | 2e 0a 0a 49 66 20 74 68 |n buffer|...If th|
|00006230| 65 20 50 79 74 68 6f 6e | 20 69 6e 74 65 72 70 72 |e Python| interpr|
|00006240| 65 74 65 72 20 73 68 65 | 6c 6c 20 69 73 20 72 75 |eter she|ll is ru|
|00006250| 6e 6e 69 6e 67 2c 20 74 | 68 65 20 72 65 67 69 6f |nning, t|he regio|
|00006260| 6e 20 69 73 20 65 78 65 | 63 66 69 6c 65 28 29 27 |n is exe|cfile()'|
|00006270| 64 0a 69 6e 20 74 68 61 | 74 20 73 68 65 6c 6c 2e |d.in tha|t shell.|
|00006280| 20 20 49 66 20 79 6f 75 | 20 74 72 79 20 74 6f 20 | If you| try to |
|00006290| 65 78 65 63 75 74 65 20 | 72 65 67 69 6f 6e 73 20 |execute |regions |
|000062a0| 74 6f 6f 20 71 75 69 63 | 6b 6c 79 2c 0a 60 70 79 |too quic|kly,.`py|
|000062b0| 74 68 6f 6e 2d 6d 6f 64 | 65 27 20 77 69 6c 6c 20 |thon-mod|e' will |
|000062c0| 71 75 65 75 65 20 74 68 | 65 6d 20 75 70 20 61 6e |queue th|em up an|
|000062d0| 64 20 65 78 65 63 75 74 | 65 20 74 68 65 6d 20 6f |d execut|e them o|
|000062e0| 6e 65 20 61 74 20 61 20 | 74 69 6d 65 20 77 68 65 |ne at a |time whe|
|000062f0| 6e 0a 69 74 20 73 65 65 | 73 20 61 20 60 3e 3e 3e |n.it see|s a `>>>|
|00006300| 20 27 20 70 72 6f 6d 70 | 74 20 66 72 6f 6d 20 50 | ' promp|t from P|
|00006310| 79 74 68 6f 6e 2e 20 20 | 45 61 63 68 20 74 69 6d |ython. |Each tim|
|00006320| 65 20 74 68 69 73 20 68 | 61 70 70 65 6e 73 2c 20 |e this h|appens, |
|00006330| 74 68 65 0a 70 72 6f 63 | 65 73 73 20 62 75 66 66 |the.proc|ess buff|
|00006340| 65 72 20 69 73 20 70 6f | 70 70 65 64 20 69 6e 74 |er is po|pped int|
|00006350| 6f 20 61 20 77 69 6e 64 | 6f 77 20 28 69 66 20 69 |o a wind|ow (if i|
|00006360| 74 27 73 20 6e 6f 74 20 | 61 6c 72 65 61 64 79 20 |t's not |already |
|00006370| 69 6e 20 73 6f 6d 65 0a | 77 69 6e 64 6f 77 29 20 |in some.|window) |
|00006380| 73 6f 20 79 6f 75 20 63 | 61 6e 20 73 65 65 20 69 |so you c|an see i|
|00006390| 74 2c 20 61 6e 64 20 61 | 20 63 6f 6d 6d 65 6e 74 |t, and a| comment|
|000063a0| 20 6f 66 20 74 68 65 20 | 66 6f 72 6d 0a 0a 20 20 | of the |form.. |
|000063b0| 20 20 09 23 23 20 77 6f | 72 6b 69 6e 67 20 6f 6e | .## wo|rking on|
|000063c0| 20 72 65 67 69 6f 6e 20 | 69 6e 20 66 69 6c 65 20 | region |in file |
|000063d0| 3c 6e 61 6d 65 3e 2e 2e | 2e 0a 0a 69 73 20 69 6e |<name>..|...is in|
|000063e0| 73 65 72 74 65 64 20 61 | 74 20 74 68 65 20 65 6e |serted a|t the en|
|000063f0| 64 2e 20 20 53 65 65 20 | 61 6c 73 6f 20 74 68 65 |d. See |also the|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.