home *** CD-ROM | disk | FTP | other *** search
Emacs Compiled Lisp | 1995-08-29 | 11.7 KB |
open in:
MacOS 8.1
|
Win98
|
DOS
view JSON data
|
view as text
This file was processed as: Emacs Compiled Lisp
(other/emacsCompiledLisp).
This format is not currently supported by dexvert.
Confidence | Program | Detection | Match Type | Support
|
---|
1%
| dexvert
| Emacs Compiled Lisp (other/emacsCompiledLisp)
| magic
| Unsupported |
1%
| dexvert
| Combustion 2 Particle Library (other/combustion2ParticleLibrary)
| ext
| Unsupported |
100%
| file
| Emacs/XEmacs v19 byte-compiled Lisp data
| default
| |
99%
| file
| data
| default
| |
100%
| TrID
| Emacs/XEmacs byte-compiled Lisp (generic)
| default
| |
100%
| xdgMime
| text/x-emacs-lisp
| default (weak)
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 3b 45 4c 43 13 00 00 00 | 0a 3b 3b 3b 20 63 6f 6d |;ELC....|.;;; com|
|00000010| 70 69 6c 65 64 20 62 79 | 20 63 74 68 6f 6d 70 40 |piled by| cthomp@|
|00000020| 77 69 6c 6c 6f 77 2e 63 | 73 2e 75 69 75 63 2e 65 |willow.c|s.uiuc.e|
|00000030| 64 75 20 6f 6e 20 54 75 | 65 20 41 75 67 20 32 39 |du on Tu|e Aug 29|
|00000040| 20 31 34 3a 30 35 3a 31 | 39 20 31 39 39 35 0a 3b | 14:05:1|9 1995.;|
|00000050| 3b 3b 20 66 72 6f 6d 20 | 66 69 6c 65 20 2f 78 65 |;; from |file /xe|
|00000060| 6d 61 63 73 2f 78 65 6d | 61 63 73 2d 31 39 2e 31 |macs/xem|acs-19.1|
|00000070| 33 2d 72 65 6c 65 61 73 | 65 2f 65 64 69 74 6f 72 |3-releas|e/editor|
|00000080| 2f 6c 69 73 70 2f 6d 6f | 64 65 73 2f 61 62 62 72 |/lisp/mo|des/abbr|
|00000090| 65 76 2e 65 6c 0a 3b 3b | 3b 20 65 6d 61 63 73 20 |ev.el.;;|; emacs |
|000000a0| 76 65 72 73 69 6f 6e 20 | 31 39 2e 31 33 20 58 45 |version |19.13 XE|
|000000b0| 6d 61 63 73 20 4c 75 63 | 69 64 2e 0a 3b 3b 3b 20 |macs Luc|id..;;; |
|000000c0| 62 79 74 65 63 6f 6d 70 | 20 76 65 72 73 69 6f 6e |bytecomp| version|
|000000d0| 20 32 2e 32 35 3b 20 31 | 2d 53 65 70 2d 39 34 2e | 2.25; 1|-Sep-94.|
|000000e0| 0a 3b 3b 3b 20 6f 70 74 | 69 6d 69 7a 61 74 69 6f |.;;; opt|imizatio|
|000000f0| 6e 20 69 73 20 6f 6e 2e | 0a 3b 3b 3b 20 74 68 69 |n is on.|.;;; thi|
|00000100| 73 20 66 69 6c 65 20 75 | 73 65 73 20 6f 70 63 6f |s file u|ses opco|
|00000110| 64 65 73 20 77 68 69 63 | 68 20 64 6f 20 6e 6f 74 |des whic|h do not|
|00000120| 20 65 78 69 73 74 20 69 | 6e 20 45 6d 61 63 73 20 | exist i|n Emacs |
|00000130| 31 38 2e 0a 0a 28 69 66 | 20 28 61 6e 64 20 28 62 |18...(if| (and (b|
|00000140| 6f 75 6e 64 70 20 27 65 | 6d 61 63 73 2d 76 65 72 |oundp 'e|macs-ver|
|00000150| 73 69 6f 6e 29 0a 09 20 | 28 6f 72 20 28 61 6e 64 |sion).. |(or (and|
|00000160| 20 28 62 6f 75 6e 64 70 | 20 27 65 70 6f 63 68 3a | (boundp| 'epoch:|
|00000170| 3a 76 65 72 73 69 6f 6e | 29 20 65 70 6f 63 68 3a |:version|) epoch:|
|00000180| 3a 76 65 72 73 69 6f 6e | 29 0a 09 20 20 20 20 20 |:version|).. |
|00000190| 28 73 74 72 69 6e 67 2d | 6c 65 73 73 70 20 65 6d |(string-|lessp em|
|000001a0| 61 63 73 2d 76 65 72 73 | 69 6f 6e 20 22 31 39 22 |acs-vers|ion "19"|
|000001b0| 29 29 29 0a 20 20 20 20 | 28 65 72 72 6f 72 20 22 |))). |(error "|
|000001c0| 54 68 69 73 20 66 69 6c | 65 20 77 61 73 20 63 6f |This fil|e was co|
|000001d0| 6d 70 69 6c 65 64 20 66 | 6f 72 20 45 6d 61 63 73 |mpiled f|or Emacs|
|000001e0| 20 31 39 2e 22 29 29 0a | 0a 28 64 65 66 63 6f 6e | 19.")).|.(defcon|
|000001f0| 73 74 20 6f 6e 6c 79 2d | 67 6c 6f 62 61 6c 2d 61 |st only-|global-a|
|00000200| 62 62 72 65 76 73 20 6e | 69 6c 20 22 5c 0a 2a 74 |bbrevs n|il "\.*t|
|00000210| 20 6d 65 61 6e 73 20 75 | 73 65 72 20 70 6c 61 6e | means u|ser plan|
|00000220| 73 20 74 6f 20 75 73 65 | 20 67 6c 6f 62 61 6c 20 |s to use| global |
|00000230| 61 62 62 72 65 76 73 20 | 6f 6e 6c 79 2e 0a 4d 61 |abbrevs |only..Ma|
|00000240| 6b 65 73 20 74 68 65 20 | 63 6f 6d 6d 61 6e 64 73 |kes the |commands|
|00000250| 20 74 6f 20 64 65 66 69 | 6e 65 20 6d 6f 64 65 2d | to defi|ne mode-|
|00000260| 73 70 65 63 69 66 69 63 | 20 61 62 62 72 65 76 73 |specific| abbrevs|
|00000270| 20 64 65 66 69 6e 65 20 | 67 6c 6f 62 61 6c 20 6f | define |global o|
|00000280| 6e 65 73 20 69 6e 73 74 | 65 61 64 2e 22 29 0a 28 |nes inst|ead.").(|
|00000290| 64 65 66 76 61 72 20 61 | 62 62 72 65 76 2d 74 61 |defvar a|bbrev-ta|
|000002a0| 62 6c 65 2d 6e 61 6d 65 | 2d 6c 69 73 74 20 6e 69 |ble-name|-list ni|
|000002b0| 6c 20 22 5c 0a 4c 69 73 | 74 20 6f 66 20 73 79 6d |l "\.Lis|t of sym|
|000002c0| 62 6f 6c 73 20 77 68 6f | 73 65 20 76 61 6c 75 65 |bols who|se value|
|000002d0| 73 20 61 72 65 20 61 62 | 62 72 65 76 20 74 61 62 |s are ab|brev tab|
|000002e0| 6c 65 73 2e 22 29 0a 28 | 64 65 66 76 61 72 20 61 |les.").(|defvar a|
|000002f0| 62 62 72 65 76 73 2d 63 | 68 61 6e 67 65 64 20 6e |bbrevs-c|hanged n|
|00000300| 69 6c 20 22 5c 0a 53 65 | 74 20 6e 6f 6e 2d 6e 69 |il "\.Se|t non-ni|
|00000310| 6c 20 62 79 20 64 65 66 | 69 6e 69 6e 67 20 6f 72 |l by def|ining or|
|00000320| 20 61 6c 74 65 72 69 6e | 67 20 61 6e 79 20 77 6f | alterin|g any wo|
|00000330| 72 64 20 61 62 62 72 65 | 76 73 2e 0a 54 68 69 73 |rd abbre|vs..This|
|00000340| 20 63 61 75 73 65 73 20 | 60 73 61 76 65 2d 73 6f | causes |`save-so|
|00000350| 6d 65 2d 62 75 66 66 65 | 72 73 27 20 74 6f 20 6f |me-buffe|rs' to o|
|00000360| 66 66 65 72 20 74 6f 20 | 73 61 76 65 20 74 68 65 |ffer to |save the|
|00000370| 20 61 62 62 72 65 76 73 | 2e 22 29 0a 28 66 73 65 | abbrevs|.").(fse|
|00000380| 74 20 27 6d 61 6b 65 2d | 61 62 62 72 65 76 2d 74 |t 'make-|abbrev-t|
|00000390| 61 62 6c 65 20 23 5b 6e | 69 6c 20 22 c0 c1 c2 5c |able #[n|il "...\|
|000003a0| 22 87 22 20 5b 6d 61 6b | 65 2d 76 65 63 74 6f 72 |"." [mak|e-vector|
|000003b0| 20 35 39 20 30 5d 20 33 | 20 22 5c 0a 43 72 65 61 | 59 0] 3| "\.Crea|
|000003c0| 74 65 20 61 20 6e 65 77 | 2c 20 65 6d 70 74 79 20 |te a new|, empty |
|000003d0| 61 62 62 72 65 76 20 74 | 61 62 6c 65 20 6f 62 6a |abbrev t|able obj|
|000003e0| 65 63 74 2e 22 5d 29 0a | 28 66 73 65 74 20 27 63 |ect."]).|(fset 'c|
|000003f0| 6c 65 61 72 2d 61 62 62 | 72 65 76 2d 74 61 62 6c |lear-abb|rev-tabl|
|00000400| 65 20 23 5b 28 74 61 62 | 6c 65 29 20 22 c0 09 c2 |e #[(tab|le) "...|
|00000410| 5c 22 88 c3 14 c5 87 22 | 20 5b 66 69 6c 6c 61 72 |\"....."| [fillar|
|00000420| 72 61 79 20 74 61 62 6c | 65 20 30 20 74 20 61 62 |ray tabl|e 0 t ab|
|00000430| 62 72 65 76 73 2d 63 68 | 61 6e 67 65 64 20 6e 69 |brevs-ch|anged ni|
|00000440| 6c 5d 20 33 20 22 5c 0a | 55 6e 64 65 66 69 6e 65 |l] 3 "\.|Undefine|
|00000450| 20 61 6c 6c 20 61 62 62 | 72 65 76 73 20 69 6e 20 | all abb|revs in |
|00000460| 61 62 62 72 65 76 20 74 | 61 62 6c 65 20 54 41 42 |abbrev t|able TAB|
|00000470| 4c 45 2c 20 6c 65 61 76 | 69 6e 67 20 69 74 20 65 |LE, leav|ing it e|
|00000480| 6d 70 74 79 2e 22 5d 29 | 0a 28 66 73 65 74 20 27 |mpty."])|.(fset '|
|00000490| 64 65 66 69 6e 65 2d 61 | 62 62 72 65 76 2d 74 61 |define-a|bbrev-ta|
|000004a0| 62 6c 65 20 23 5b 28 6e | 61 6d 65 20 64 65 66 73 |ble #[(n|ame defs|
|000004b0| 29 20 22 c0 09 21 ad 82 | 09 4a 1a c3 5c 6e 21 ac |) "..!..|.J..\n!.|
|000004c0| 9b 5c 6e ac 8d c4 20 12 | 09 5c 6e 4c 88 09 0d 42 |.\n... .|.\nL...B|
|000004d0| 15 aa 8b c6 c7 c3 5c 6e | 44 5c 22 12 09 5c 6e 4c |......\n|D\"..\nL|
|000004e0| 88 0e 08 ad 91 c9 ca 5c | 6e 0e 08 40 23 88 0e 08 |.......\|n..@#...|
|000004f0| 41 89 16 08 ac 70 cb 29 | 87 22 20 5b 62 6f 75 6e |A....p.)|." [boun|
|00000500| 64 70 20 6e 61 6d 65 20 | 74 61 62 6c 65 20 76 65 |dp name |table ve|
|00000510| 63 74 6f 72 70 20 6d 61 | 6b 65 2d 61 62 62 72 65 |ctorp ma|ke-abbre|
|00000520| 76 2d 74 61 62 6c 65 20 | 61 62 62 72 65 76 2d 74 |v-table |abbrev-t|
|00000530| 61 62 6c 65 2d 6e 61 6d | 65 2d 6c 69 73 74 20 73 |able-nam|e-list s|
|00000540| 69 67 6e 61 6c 20 77 72 | 6f 6e 67 2d 74 79 70 65 |ignal wr|ong-type|
|00000550| 2d 61 72 67 75 6d 65 6e | 74 20 64 65 66 73 20 61 |-argumen|t defs a|
|00000560| 70 70 6c 79 20 64 65 66 | 69 6e 65 2d 61 62 62 72 |pply def|ine-abbr|
|00000570| 65 76 20 6e 69 6c 5d 20 | 35 20 22 5c 0a 44 65 66 |ev nil] |5 "\.Def|
|00000580| 69 6e 65 20 54 41 42 4e | 41 4d 45 20 28 61 20 73 |ine TABN|AME (a s|
|00000590| 79 6d 62 6f 6c 29 20 61 | 73 20 61 6e 20 61 62 62 |ymbol) a|s an abb|
|000005a0| 72 65 76 20 74 61 62 6c | 65 20 6e 61 6d 65 2e 0a |rev tabl|e name..|
|000005b0| 44 65 66 69 6e 65 20 61 | 62 62 72 65 76 73 20 69 |Define a|bbrevs i|
|000005c0| 6e 20 69 74 20 61 63 63 | 6f 72 64 69 6e 67 20 74 |n it acc|ording t|
|000005d0| 6f 20 44 45 46 49 4e 49 | 54 49 4f 4e 53 2c 20 77 |o DEFINI|TIONS, w|
|000005e0| 68 69 63 68 20 69 73 20 | 61 20 6c 69 73 74 20 6f |hich is |a list o|
|000005f0| 66 20 65 6c 65 6d 65 6e | 74 73 0a 6f 66 20 74 68 |f elemen|ts.of th|
|00000600| 65 20 66 6f 72 6d 20 28 | 41 42 42 52 45 56 4e 41 |e form (|ABBREVNA|
|00000610| 4d 45 20 45 58 50 41 4e | 53 49 4f 4e 20 48 4f 4f |ME EXPAN|SION HOO|
|00000620| 4b 20 55 53 45 43 4f 55 | 4e 54 29 2e 22 5d 29 0a |K USECOU|NT)."]).|
|00000630| 28 66 73 65 74 20 27 64 | 65 66 69 6e 65 2d 61 62 |(fset 'd|efine-ab|
|00000640| 62 72 65 76 20 23 5b 28 | 74 61 62 6c 65 20 6e 61 |brev #[(|table na|
|00000650| 6d 65 20 26 6f 70 74 69 | 6f 6e 61 6c 20 65 78 70 |me &opti|onal exp|
|00000660| 61 6e 73 69 6f 6e 20 68 | 6f 6f 6b 20 63 6f 75 6e |ansion h|ook coun|
|00000670| 74 29 20 22 08 ab 8b 08 | 3b ac 87 c1 c2 c3 08 44 |t) "....|;......D|
|00000680| 5c 22 10 0c ab 8b 0c a8 | ac 87 c1 c2 c5 0c 44 5c |\"......|......D\|
|00000690| 22 14 c6 0e 07 0e 08 5c | 22 1e 09 ca 0e 09 21 ad |"......\|".....!.|
|000006a0| 83 0e 09 4a 1e 0b cc 0e | 09 21 ad 83 0e 09 4b 89 |...J....|.!....K.|
|000006b0| 1e 0d 0e 0e 9a ab 8f 0e | 0b 3b ab 8a 08 3b ab 86 |........|.;...;..|
|000006c0| 0e 0b 08 98 ac 83 cf 16 | 10 0e 09 08 4c 88 0e 09 |........|....L...|
|000006d0| 0e 0e 4d 88 d1 0e 09 0c | ae 81 d2 5c 22 88 0e 07 |..M.....|...\"...|
|000006e0| 2b 87 22 20 5b 65 78 70 | 61 6e 73 69 6f 6e 20 73 |+." [exp|ansion s|
|000006f0| 69 67 6e 61 6c 20 77 72 | 6f 6e 67 2d 74 79 70 65 |ignal wr|ong-type|
|00000700| 2d 61 72 67 75 6d 65 6e | 74 20 73 74 72 69 6e 67 |-argumen|t string|
|00000710| 70 20 63 6f 75 6e 74 20 | 66 69 78 6e 75 6d 70 20 |p count |fixnump |
|00000720| 69 6e 74 65 72 6e 20 6e | 61 6d 65 20 74 61 62 6c |intern n|ame tabl|
|00000730| 65 20 73 79 6d 20 62 6f | 75 6e 64 70 20 6f 65 78 |e sym bo|undp oex|
|00000740| 70 20 66 62 6f 75 6e 64 | 70 20 6f 68 6f 6f 6b 20 |p fbound|p ohook |
|00000750| 68 6f 6f 6b 20 74 20 61 | 62 62 72 65 76 73 2d 63 |hook t a|bbrevs-c|
|00000760| 68 61 6e 67 65 64 20 73 | 65 74 70 6c 69 73 74 20 |hanged s|etplist |
|00000770| 30 5d 20 35 20 22 5c 0a | 44 65 66 69 6e 65 20 61 |0] 5 "\.|Define a|
|00000780| 6e 20 61 62 62 72 65 76 | 20 69 6e 20 54 41 42 4c |n abbrev| in TABL|
|00000790| 45 20 6e 61 6d 65 64 20 | 4e 41 4d 45 2c 20 74 6f |E named |NAME, to|
|000007a0| 20 65 78 70 61 6e 64 20 | 74 6f 20 45 58 50 41 4e | expand |to EXPAN|
|000007b0| 53 49 4f 4e 20 6f 72 20 | 63 61 6c 6c 20 48 4f 4f |SION or |call HOO|
|000007c0| 4b 2e 0a 4e 41 4d 45 20 | 61 6e 64 20 45 58 50 41 |K..NAME |and EXPA|
|000007d0| 4e 53 49 4f 4e 20 61 72 | 65 20 73 74 72 69 6e 67 |NSION ar|e string|
|000007e0| 73 2e 20 20 48 6f 6f 6b | 20 69 73 20 61 20 66 75 |s. Hook| is a fu|
|000007f0| 6e 63 74 69 6f 6e 20 6f | 72 20 60 6e 69 6c 27 2e |nction o|r `nil'.|
|00000800| 0a 54 6f 20 75 6e 64 65 | 66 69 6e 65 20 61 6e 20 |.To unde|fine an |
|00000810| 61 62 62 72 65 76 2c 20 | 64 65 66 69 6e 65 20 77 |abbrev, |define w|
|00000820| 69 74 68 20 74 68 65 20 | 61 6e 20 65 78 70 61 6e |ith the |an expan|
|00000830| 73 69 6f 6e 20 6f 66 20 | 60 6e 69 6c 27 2e 22 5d |sion of |`nil'."]|
|00000840| 29 0a 28 62 79 74 65 2d | 63 6f 64 65 20 22 08 19 |).(byte-|code "..|
|00000850| 09 ab 99 09 40 89 1a 3a | ab 8c c3 5c 6e 08 5c 22 |....@..:|...\n.\"|
|00000860| 10 c4 5c 6e 40 5c 6e 41 | 5c 22 88 09 41 11 29 aa |..\n@\nA|\"..A.).|
|00000870| 64 0d ac 87 c6 20 15 c5 | 08 42 10 0e 07 ac 88 c6 |d.... ..|.B......|
|00000880| 20 16 07 c7 08 42 10 0e | 08 c9 3d ab 88 0e 5c 6e | ....B..|..=...\n|
|00000890| ac 84 0e 07 16 5c 6e 29 | c3 87 22 20 5b 61 62 62 |.....\n)|.." [abb|
|000008a0| 72 65 76 2d 74 61 62 6c | 65 2d 6e 61 6d 65 2d 6c |rev-tabl|e-name-l|
|000008b0| 69 73 74 20 6c 20 66 69 | 78 75 70 20 64 65 6c 71 |ist l fi|xup delq|
|000008c0| 20 64 65 66 69 6e 65 2d | 61 62 62 72 65 76 2d 74 | define-|abbrev-t|
|000008d0| 61 62 6c 65 20 67 6c 6f | 62 61 6c 2d 61 62 62 72 |able glo|bal-abbr|
|000008e0| 65 76 2d 74 61 62 6c 65 | 20 6d 61 6b 65 2d 61 62 |ev-table| make-ab|
|000008f0| 62 72 65 76 2d 74 61 62 | 6c 65 20 66 75 6e 64 61 |brev-tab|le funda|
|00000900| 6d 65 6e 74 61 6c 2d 6d | 6f 64 65 2d 61 62 62 72 |mental-m|ode-abbr|
|00000910| 65 76 2d 74 61 62 6c 65 | 20 6d 61 6a 6f 72 2d 6d |ev-table| major-m|
|00000920| 6f 64 65 20 66 75 6e 64 | 61 6d 65 6e 74 61 6c 2d |ode fund|amental-|
|00000930| 6d 6f 64 65 20 6c 6f 63 | 61 6c 2d 61 62 62 72 65 |mode loc|al-abbre|
|00000940| 76 2d 74 61 62 6c 65 5d | 20 34 29 0a 28 66 73 65 |v-table]| 4).(fse|
|00000950| 74 20 27 64 65 66 69 6e | 65 2d 67 6c 6f 62 61 6c |t 'defin|e-global|
|00000960| 2d 61 62 62 72 65 76 20 | 23 5b 28 6e 61 6d 65 20 |-abbrev |#[(name |
|00000970| 65 78 70 61 6e 73 69 6f | 6e 29 20 22 c0 09 5c 6e |expansio|n) "..\n|
|00000980| 97 0b c4 c5 25 87 22 20 | 5b 64 65 66 69 6e 65 2d |....%." |[define-|
|00000990| 61 62 62 72 65 76 20 67 | 6c 6f 62 61 6c 2d 61 62 |abbrev g|lobal-ab|
|000009a0| 62 72 65 76 2d 74 61 62 | 6c 65 20 6e 61 6d 65 20 |brev-tab|le name |
|000009b0| 65 78 70 61 6e 73 69 6f | 6e 20 6e 69 6c 20 30 5d |expansio|n nil 0]|
|000009c0| 20 36 20 22 5c 0a 44 65 | 66 69 6e 65 20 41 42 42 | 6 "\.De|fine ABB|
|000009d0| 52 45 56 20 61 73 20 61 | 20 67 6c 6f 62 61 6c 20 |REV as a| global |
|000009e0| 61 62 62 72 65 76 69 61 | 74 69 6f 6e 20 66 6f 72 |abbrevia|tion for|
|000009f0| 20 45 58 50 41 4e 53 49 | 4f 4e 2e 22 20 22 73 44 | EXPANSI|ON." "sD|
|00000a00| 65 66 69 6e 65 20 67 6c | 6f 62 61 6c 20 61 62 62 |efine gl|obal abb|
|00000a10| 72 65 76 3a 20 5c 6e 73 | 45 78 70 61 6e 73 69 6f |rev: \ns|Expansio|
|00000a20| 6e 20 66 6f 72 20 25 73 | 3a 20 22 5d 29 0a 28 66 |n for %s|: "]).(f|
|00000a30| 73 65 74 20 27 64 65 66 | 69 6e 65 2d 6d 6f 64 65 |set 'def|ine-mode|
|00000a40| 2d 61 62 62 72 65 76 20 | 23 5b 28 6e 61 6d 65 20 |-abbrev |#[(name |
|00000a50| 65 78 70 61 6e 73 69 6f | 6e 29 20 22 c0 09 ae 83 |expansio|n) "....|
|00000a60| c2 c3 21 0c 97 c5 c6 24 | 87 22 20 5b 64 65 66 69 |..!....$|." [defi|
|00000a70| 6e 65 2d 61 62 62 72 65 | 76 20 6c 6f 63 61 6c 2d |ne-abbre|v local-|
|00000a80| 61 62 62 72 65 76 2d 74 | 61 62 6c 65 20 65 72 72 |abbrev-t|able err|
|00000a90| 6f 72 20 22 4d 61 6a 6f | 72 20 6d 6f 64 65 20 68 |or "Majo|r mode h|
|00000aa0| 61 73 20 6e 6f 20 61 62 | 62 72 65 76 20 74 61 62 |as no ab|brev tab|
|00000ab0| 6c 65 22 20 6e 61 6d 65 | 20 6e 69 6c 20 30 5d 20 |le" name| nil 0] |
|00000ac0| 35 20 22 5c 0a 44 65 66 | 69 6e 65 20 41 42 42 52 |5 "\.Def|ine ABBR|
|00000ad0| 45 56 20 61 73 20 61 20 | 6d 6f 64 65 2d 73 70 65 |EV as a |mode-spe|
|00000ae0| 63 69 66 69 63 20 61 62 | 62 72 65 76 69 61 74 69 |cific ab|breviati|
|00000af0| 6f 6e 20 66 6f 72 20 45 | 58 50 41 4e 53 49 4f 4e |on for E|XPANSION|
|00000b00| 2e 22 20 22 73 44 65 66 | 69 6e 65 20 6d 6f 64 65 |." "sDef|ine mode|
|00000b10| 20 61 62 62 72 65 76 3a | 20 5c 6e 73 45 78 70 61 | abbrev:| \nsExpa|
|00000b20| 6e 73 69 6f 6e 20 66 6f | 72 20 25 73 3a 20 22 5d |nsion fo|r %s: "]|
|00000b30| 29 0a 28 66 73 65 74 20 | 27 61 62 62 72 65 76 2d |).(fset |'abbrev-|
|00000b40| 73 79 6d 62 6f 6c 20 23 | 5b 28 61 62 62 72 65 76 |symbol #|[(abbrev|
|00000b50| 20 26 6f 70 74 69 6f 6e | 61 6c 20 74 61 62 6c 65 | &option|al table|
|00000b60| 29 20 22 c0 19 5c 6e ab | 85 09 5c 6e 21 aa 8b 0b |) "..\n.|..\n!...|
|00000b70| ab 85 09 0b 21 ae 83 09 | 0c 21 29 87 22 20 5b 23 |....!...|.!)." [#|
|00000b80| 5b 28 74 61 62 6c 65 29 | 20 22 c0 09 5c 6e 5c 22 |[(table)| "..\n\"|
|00000b90| 1b c4 0b 21 ad 86 0b 4a | 3b ad 81 0b 29 87 22 20 |...!...J|;...)." |
|00000ba0| 5b 69 6e 74 65 72 6e 2d | 73 6f 66 74 20 61 62 62 |[intern-|soft abb|
|00000bb0| 72 65 76 20 74 61 62 6c | 65 20 73 79 6d 20 62 6f |rev tabl|e sym bo|
|00000bc0| 75 6e 64 70 5d 20 33 5d | 20 66 72 6f 62 20 74 61 |undp] 3]| frob ta|
|00000bd0| 62 6c 65 20 6c 6f 63 61 | 6c 2d 61 62 62 72 65 76 |ble loca|l-abbrev|
|00000be0| 2d 74 61 62 6c 65 20 67 | 6c 6f 62 61 6c 2d 61 62 |-table g|lobal-ab|
|00000bf0| 62 72 65 76 2d 74 61 62 | 6c 65 5d 20 32 20 22 5c |brev-tab|le] 2 "\|
|00000c00| 0a 52 65 74 75 72 6e 20 | 74 68 65 20 73 79 6d 62 |.Return |the symb|
|00000c10| 6f 6c 20 72 65 70 72 65 | 73 65 6e 74 69 6e 67 20 |ol repre|senting |
|00000c20| 61 62 62 72 65 76 20 6e | 61 6d 65 64 20 41 42 42 |abbrev n|amed ABB|
|00000c30| 52 45 56 2e 0a 54 68 69 | 73 20 73 79 6d 62 6f 6c |REV..Thi|s symbol|
|00000c40| 27 73 20 6e 61 6d 65 20 | 69 73 20 41 42 42 52 45 |'s name |is ABBRE|
|00000c50| 56 2c 20 62 75 74 20 69 | 74 20 69 73 20 6e 6f 74 |V, but i|t is not|
|00000c60| 20 74 68 65 20 63 61 6e | 6f 6e 69 63 61 6c 20 73 | the can|onical s|
|00000c70| 79 6d 62 6f 6c 20 6f 66 | 20 74 68 61 74 20 6e 61 |ymbol of| that na|
|00000c80| 6d 65 3b 0a 69 74 20 69 | 73 20 69 6e 74 65 72 6e |me;.it i|s intern|
|00000c90| 65 64 20 69 6e 20 61 6e | 20 61 62 62 72 65 76 2d |ed in an| abbrev-|
|00000ca0| 74 61 62 6c 65 20 72 61 | 74 68 65 72 20 74 68 61 |table ra|ther tha|
|00000cb0| 6e 20 74 68 65 20 6e 6f | 72 6d 61 6c 20 6f 62 61 |n the no|rmal oba|
|00000cc0| 72 72 61 79 2e 0a 54 68 | 65 20 76 61 6c 75 65 20 |rray..Th|e value |
|00000cd0| 69 73 20 6e 69 6c 20 69 | 66 20 74 68 61 74 20 61 |is nil i|f that a|
|00000ce0| 62 62 72 65 76 20 69 73 | 20 6e 6f 74 20 64 65 66 |bbrev is| not def|
|00000cf0| 69 6e 65 64 2e 0a 4f 70 | 74 69 6f 6e 61 6c 20 73 |ined..Op|tional s|
|00000d00| 65 63 6f 6e 64 20 61 72 | 67 20 54 41 42 4c 45 20 |econd ar|g TABLE |
|00000d10| 69 73 20 61 62 62 72 65 | 76 20 74 61 62 6c 65 20 |is abbre|v table |
|00000d20| 74 6f 20 6c 6f 6f 6b 20 | 69 74 20 75 70 20 69 6e |to look |it up in|
|00000d30| 2e 0a 54 68 65 20 64 65 | 66 61 75 6c 74 20 69 73 |..The de|fault is|
|00000d40| 20 74 6f 20 74 72 79 20 | 62 75 66 66 65 72 27 73 | to try |buffer's|
|00000d50| 20 6d 6f 64 65 2d 73 70 | 65 63 69 66 69 63 20 61 | mode-sp|ecific a|
|00000d60| 62 62 72 65 76 20 74 61 | 62 6c 65 2c 20 74 68 65 |bbrev ta|ble, the|
|00000d70| 6e 20 67 6c 6f 62 61 6c | 20 74 61 62 6c 65 2e 22 |n global| table."|
|00000d80| 5d 29 0a 28 66 73 65 74 | 20 27 61 62 62 72 65 76 |]).(fset| 'abbrev|
|00000d90| 2d 65 78 70 61 6e 73 69 | 6f 6e 20 23 5b 28 61 62 |-expansi|on #[(ab|
|00000da0| 62 72 65 76 20 26 6f 70 | 74 69 6f 6e 61 6c 20 74 |brev &op|tional t|
|00000db0| 61 62 6c 65 29 20 22 c0 | 09 5c 6e 5c 22 89 1b ad |able) ".|.\n\"...|
|00000dc0| 82 0b 4a 29 87 22 20 5b | 61 62 62 72 65 76 2d 73 |..J)." [|abbrev-s|
|00000dd0| 79 6d 62 6f 6c 20 61 62 | 62 72 65 76 20 74 61 62 |ymbol ab|brev tab|
|00000de0| 6c 65 20 73 79 6d 5d 20 | 34 20 22 5c 0a 52 65 74 |le sym] |4 "\.Ret|
|00000df0| 75 72 6e 20 74 68 65 20 | 73 74 72 69 6e 67 20 74 |urn the |string t|
|00000e00| 68 61 74 20 41 42 42 52 | 45 56 20 65 78 70 61 6e |hat ABBR|EV expan|
|00000e10| 64 73 20 69 6e 74 6f 20 | 69 6e 20 74 68 65 20 63 |ds into |in the c|
|00000e20| 75 72 72 65 6e 74 20 62 | 75 66 66 65 72 2e 0a 4f |urrent b|uffer..O|
|00000e30| 70 74 69 6f 6e 61 6c 6c | 79 20 73 70 65 63 69 66 |ptionall|y specif|
|00000e40| 79 20 61 6e 20 61 62 62 | 72 65 76 20 74 61 62 6c |y an abb|rev tabl|
|00000e50| 65 20 61 73 20 73 65 63 | 6f 6e 64 20 61 72 67 3b |e as sec|ond arg;|
|00000e60| 0a 74 68 65 6e 20 41 42 | 42 52 45 56 20 69 73 20 |.then AB|BREV is |
|00000e70| 6c 6f 6f 6b 65 64 20 75 | 70 20 69 6e 20 74 68 61 |looked u|p in tha|
|00000e80| 74 20 74 61 62 6c 65 20 | 6f 6e 6c 79 2e 22 5d 29 |t table |only."])|
|00000e90| 0a 28 66 73 65 74 20 27 | 75 6e 65 78 70 61 6e 64 |.(fset '|unexpand|
|00000ea0| 2d 61 62 62 72 65 76 20 | 23 5b 6e 69 6c 20 22 08 |-abbrev |#[nil ".|
|00000eb0| 65 57 ae 88 08 64 56 ae | 83 09 3b 3f 3f ad a9 60 |eW...dV.|..;??..`|
|00000ec0| 1a 0b 4a 89 1c 47 1d 08 | 62 88 08 89 0d 5c 5c 7c |..J..G..|b....\\||
|00000ed0| 88 09 63 88 0d 09 47 5a | 15 c6 11 08 5c 6e 57 ab |..c...GZ|....\nW.|
|00000ee0| 86 5c 6e 0d 5a 62 aa 82 | 5c 6e 62 2b 87 22 20 5b |.\n.Zb..|\nb+." [|
|00000ef0| 6c 61 73 74 2d 61 62 62 | 72 65 76 2d 6c 6f 63 61 |last-abb|rev-loca|
|00000f00| 74 69 6f 6e 20 6c 61 73 | 74 2d 61 62 62 72 65 76 |tion las|t-abbrev|
|00000f10| 2d 74 65 78 74 20 6f 70 | 6f 69 6e 74 20 6c 61 73 |-text op|oint las|
|00000f20| 74 2d 61 62 62 72 65 76 | 20 76 61 6c 20 61 64 6a |t-abbrev| val adj|
|00000f30| 75 73 74 20 6e 69 6c 5d | 20 34 20 22 5c 0a 55 6e |ust nil]| 4 "\.Un|
|00000f40| 64 6f 20 74 68 65 20 65 | 78 70 61 6e 73 69 6f 6e |do the e|xpansion|
|00000f50| 20 6f 66 20 74 68 65 20 | 6c 61 73 74 20 61 62 62 | of the |last abb|
|00000f60| 72 65 76 20 74 68 61 74 | 20 65 78 70 61 6e 64 65 |rev that| expande|
|00000f70| 64 2e 0a 54 68 69 73 20 | 64 69 66 66 65 72 73 20 |d..This |differs |
|00000f80| 66 72 6f 6d 20 6f 72 64 | 69 6e 61 72 79 20 75 6e |from ord|inary un|
|00000f90| 64 6f 20 69 6e 20 74 68 | 61 74 20 6f 74 68 65 72 |do in th|at other|
|00000fa0| 20 65 64 69 74 69 6e 67 | 20 64 6f 6e 65 20 73 69 | editing| done si|
|00000fb0| 6e 63 65 20 74 68 65 6e | 0a 69 73 20 6e 6f 74 20 |nce then|.is not |
|00000fc0| 75 6e 64 6f 6e 65 2e 22 | 20 6e 69 6c 5d 29 0a 28 |undone."| nil]).(|
|00000fd0| 66 73 65 74 20 27 69 6e | 73 65 72 74 2d 61 62 62 |fset 'in|sert-abb|
|00000fe0| 72 65 76 2d 74 61 62 6c | 65 2d 64 65 73 63 72 69 |rev-tabl|e-descri|
|00000ff0| 70 74 69 6f 6e 20 23 5b | 28 6e 61 6d 65 20 68 75 |ption #[|(name hu|
|00001000| 6d 61 6e 2d 72 65 61 64 | 61 62 6c 65 29 20 22 08 |man-read|able) ".|
|00001010| 4a 70 19 1a c3 c4 08 5c | 22 88 0d ab 99 c6 08 43 |Jp.....\|"......C|
|00001020| 09 5c 22 88 c7 09 21 88 | c7 09 21 88 c8 c9 5c 6e |.\"...!.|..!...\n|
|00001030| 5c 22 88 c7 09 21 88 aa | 99 ca cb 09 5c 22 88 c6 |\"...!..|....\"..|
|00001040| 08 09 5c 22 88 ca cc 09 | 5c 22 88 c8 cd 5c 6e 5c |..\"....|\"...\n\|
|00001050| 22 88 ca ce 09 5c 22 88 | c7 09 21 88 2a c3 cf 21 |"....\".|..!.*..!|
|00001060| 87 22 20 5b 6e 61 6d 65 | 20 73 74 72 65 61 6d 20 |." [name| stream |
|00001070| 74 61 62 6c 65 20 6d 65 | 73 73 61 67 65 20 22 41 |table me|ssage "A|
|00001080| 62 62 72 65 76 2d 74 61 | 62 6c 65 20 25 73 2e 2e |bbrev-ta|ble %s..|
|00001090| 2e 22 20 68 75 6d 61 6e | 2d 72 65 61 64 61 62 6c |." human|-readabl|
|000010a0| 65 20 70 72 69 6e 31 20 | 74 65 72 70 72 69 20 6d |e prin1 |terpri m|
|000010b0| 61 70 61 74 6f 6d 73 20 | 23 5b 28 73 79 6d 29 20 |apatoms |#[(sym) |
|000010c0| 22 08 4a ad e7 c1 c2 08 | 21 21 89 1b 47 1c c5 0b |".J.....|!!..G...|
|000010d0| 0e 06 5c 22 88 0c c7 57 | ab 8c c8 c9 0e 06 5c 22 |..\"...W|......\"|
|000010e0| 88 0c 54 89 14 aa 70 c5 | ca cb cc 08 21 5c 22 0e |..T...p.|....!\".|
|000010f0| 06 5c 22 88 08 4b ac 89 | cd 08 4a 0e 06 5c 22 88 |.\"..K..|..J..\".|
|00001100| aa aa c1 08 4a 21 13 0c | 0b 47 ce 5c 5c 5c 5c 14 |....J!..|.G.\\\\.|
|00001110| c5 0b 0e 06 5c 22 88 0c | cf 57 ab 8c c8 c9 0e 06 |....\"..|.W......|
|00001120| 5c 22 88 0c 54 89 14 aa | 70 cd 08 4b 0e 06 5c 22 |\"..T...|p..K..\"|
|00001130| 88 d0 0e 06 21 2a 87 22 | 20 5b 73 79 6d 20 70 72 |....!*."| [sym pr|
|00001140| 69 6e 31 2d 74 6f 2d 73 | 74 72 69 6e 67 20 73 79 |in1-to-s|tring sy|
|00001150| 6d 62 6f 6c 2d 6e 61 6d | 65 20 6e 20 70 6f 73 20 |mbol-nam|e n pos |
|00001160| 70 72 69 6e 63 20 73 74 | 72 65 61 6d 20 31 34 20 |princ st|ream 14 |
|00001170| 77 72 69 74 65 2d 63 68 | 61 72 20 33 32 20 66 6f |write-ch|ar 32 fo|
|00001180| 72 6d 61 74 20 22 20 25 | 2d 35 53 20 22 20 73 79 |rmat " %|-5S " sy|
|00001190| 6d 62 6f 6c 2d 70 6c 69 | 73 74 20 70 72 69 6e 31 |mbol-pli|st prin1|
|000011a0| 20 36 20 34 35 20 74 65 | 72 70 72 69 5d 20 36 5d | 6 45 te|rpri] 6]|
|000011b0| 20 70 72 69 6e 63 20 22 | 28 64 65 66 69 6e 65 2d | princ "|(define-|
|000011c0| 61 62 62 72 65 76 2d 74 | 61 62 6c 65 20 27 22 20 |abbrev-t|able '" |
|000011d0| 22 20 27 28 5c 6e 22 20 | 23 5b 28 73 79 6d 29 20 |" '(\n" |#[(sym) |
|000011e0| 22 08 4a ad 97 c1 c2 0b | 5c 22 88 c4 c5 08 21 08 |".J.....|\"....!.|
|000011f0| 4a 08 4b c6 08 21 46 0b | 5c 22 88 c7 0b 21 87 22 |J.K..!F.|\"...!."|
|00001200| 20 5b 73 79 6d 20 70 72 | 69 6e 63 20 22 20 20 20 | [sym pr|inc " |
|00001210| 20 22 20 73 74 72 65 61 | 6d 20 70 72 69 6e 31 20 | " strea|m prin1 |
|00001220| 73 79 6d 62 6f 6c 2d 6e | 61 6d 65 20 73 79 6d 62 |symbol-n|ame symb|
|00001230| 6f 6c 2d 70 6c 69 73 74 | 20 74 65 72 70 72 69 5d |ol-plist| terpri]|
|00001240| 20 36 5d 20 22 20 20 20 | 20 29 29 5c 6e 22 20 22 | 6] " | ))\n" "|
|00001250| 22 5d 20 33 20 22 5c 0a | 49 6e 73 65 72 74 20 62 |"] 3 "\.|Insert b|
|00001260| 65 66 6f 72 65 20 70 6f | 69 6e 74 20 61 20 66 75 |efore po|int a fu|
|00001270| 6c 6c 20 64 65 73 63 72 | 69 70 74 69 6f 6e 20 6f |ll descr|iption o|
|00001280| 66 20 61 62 62 72 65 76 | 20 74 61 62 6c 65 20 6e |f abbrev| table n|
|00001290| 61 6d 65 64 20 4e 41 4d | 45 2e 0a 4e 41 4d 45 20 |amed NAM|E..NAME |
|000012a0| 69 73 20 61 20 73 79 6d | 62 6f 6c 20 77 68 6f 73 |is a sym|bol whos|
|000012b0| 65 20 76 61 6c 75 65 20 | 69 73 20 61 6e 20 61 62 |e value |is an ab|
|000012c0| 62 72 65 76 20 74 61 62 | 6c 65 2e 0a 49 66 20 6f |brev tab|le..If o|
|000012d0| 70 74 69 6f 6e 61 6c 20 | 32 6e 64 20 61 72 67 20 |ptional |2nd arg |
|000012e0| 48 55 4d 41 4e 20 69 73 | 20 6e 6f 6e 2d 6e 69 6c |HUMAN is| non-nil|
|000012f0| 2c 20 69 6e 73 65 72 74 | 20 61 20 68 75 6d 61 6e |, insert| a human|
|00001300| 2d 72 65 61 64 61 62 6c | 65 20 64 65 73 63 72 69 |-readabl|e descri|
|00001310| 70 74 69 6f 6e 2e 0a 4f | 74 68 65 72 77 69 73 65 |ption..O|therwise|
|00001320| 20 74 68 65 20 64 65 73 | 63 72 69 70 74 69 6f 6e | the des|cription|
|00001330| 20 69 73 20 61 6e 20 65 | 78 70 72 65 73 73 69 6f | is an e|xpressio|
|00001340| 6e 2c 0a 61 20 63 61 6c | 6c 20 74 6f 20 60 64 65 |n,.a cal|l to `de|
|00001350| 66 69 6e 65 2d 61 62 62 | 72 65 76 2d 74 61 62 6c |fine-abb|rev-tabl|
|00001360| 65 27 2c 20 77 68 69 63 | 68 20 77 6f 75 6c 64 0a |e', whic|h would.|
|00001370| 64 65 66 69 6e 65 20 74 | 68 65 20 61 62 62 72 65 |define t|he abbre|
|00001380| 76 20 74 61 62 6c 65 20 | 4e 41 4d 45 20 65 78 61 |v table |NAME exa|
|00001390| 63 74 6c 79 20 61 73 20 | 69 74 20 69 73 20 63 75 |ctly as |it is cu|
|000013a0| 72 72 65 6e 74 6c 79 20 | 64 65 66 69 6e 65 64 2e |rrently |defined.|
|000013b0| 22 5d 29 0a 28 66 73 65 | 74 20 27 61 62 62 72 65 |"]).(fse|t 'abbre|
|000013c0| 76 2d 6d 6f 64 65 20 23 | 5b 28 61 72 67 29 20 22 |v-mode #|[(arg) "|
|000013d0| 08 ac 84 09 3f aa 85 c2 | 08 21 c3 56 11 c4 20 87 |....?...|.!.V.. .|
|000013e0| 22 20 5b 61 72 67 20 61 | 62 62 72 65 76 2d 6d 6f |" [arg a|bbrev-mo|
|000013f0| 64 65 20 70 72 65 66 69 | 78 2d 6e 75 6d 65 72 69 |de prefi|x-numeri|
|00001400| 63 2d 76 61 6c 75 65 20 | 30 20 72 65 64 72 61 77 |c-value |0 redraw|
|00001410| 2d 6d 6f 64 65 6c 69 6e | 65 5d 20 32 20 22 5c 0a |-modelin|e] 2 "\.|
|00001420| 54 6f 67 67 6c 65 20 61 | 62 62 72 65 76 20 6d 6f |Toggle a|bbrev mo|
|00001430| 64 65 2e 0a 57 69 74 68 | 20 61 72 67 2c 20 74 75 |de..With| arg, tu|
|00001440| 72 6e 20 61 62 62 72 65 | 76 20 6d 6f 64 65 20 6f |rn abbre|v mode o|
|00001450| 6e 20 69 66 66 20 61 72 | 67 20 69 73 20 70 6f 73 |n iff ar|g is pos|
|00001460| 69 74 69 76 65 2e 0a 49 | 6e 20 61 62 62 72 65 76 |itive..I|n abbrev|
|00001470| 20 6d 6f 64 65 2c 20 69 | 6e 73 65 72 74 69 6e 67 | mode, i|nserting|
|00001480| 20 61 6e 20 61 62 62 72 | 65 76 69 61 74 69 6f 6e | an abbr|eviation|
|00001490| 20 63 61 75 73 65 73 20 | 69 74 20 74 6f 20 65 78 | causes |it to ex|
|000014a0| 70 61 6e 64 0a 61 6e 64 | 20 62 65 20 72 65 70 6c |pand.and| be repl|
|000014b0| 61 63 65 64 20 62 79 20 | 69 74 73 20 65 78 70 61 |aced by |its expa|
|000014c0| 6e 73 69 6f 6e 2e 22 20 | 22 50 22 5d 29 0a 28 64 |nsion." |"P"]).(d|
|000014d0| 65 66 76 61 72 20 65 64 | 69 74 2d 61 62 62 72 65 |efvar ed|it-abbre|
|000014e0| 76 73 2d 6d 61 70 20 6e | 69 6c 20 22 5c 0a 4b 65 |vs-map n|il "\.Ke|
|000014f0| 79 6d 61 70 20 75 73 65 | 64 20 69 6e 20 65 64 69 |ymap use|d in edi|
|00001500| 74 2d 61 62 62 72 65 76 | 73 2e 22 29 0a 28 62 79 |t-abbrev|s.").(by|
|00001510| 74 65 2d 63 6f 64 65 20 | 22 08 ac 94 c1 20 10 c2 |te-code |".... ..|
|00001520| 08 c0 5c 22 88 c3 08 c4 | c5 23 88 c3 08 c6 c5 23 |..\"....|.#.....#|
|00001530| 88 c1 87 22 20 5b 65 64 | 69 74 2d 61 62 62 72 65 |..." [ed|it-abbre|
|00001540| 76 73 2d 6d 61 70 20 6d | 61 6b 65 2d 73 70 61 72 |vs-map m|ake-spar|
|00001550| 73 65 2d 6b 65 79 6d 61 | 70 20 73 65 74 2d 6b 65 |se-keyma|p set-ke|
|00001560| 79 6d 61 70 2d 6e 61 6d | 65 20 64 65 66 69 6e 65 |ymap-nam|e define|
|00001570| 2d 6b 65 79 20 22 18 13 | 22 20 65 64 69 74 2d 61 |-key "..|" edit-a|
|00001580| 62 62 72 65 76 73 2d 72 | 65 64 65 66 69 6e 65 20 |bbrevs-r|edefine |
|00001590| 22 03 03 22 5d 20 34 29 | 0a 28 66 73 65 74 20 27 |".."] 4)|.(fset '|
|000015a0| 6b 69 6c 6c 2d 61 6c 6c | 2d 61 62 62 72 65 76 73 |kill-all|-abbrevs|
|000015b0| 20 23 5b 6e 69 6c 20 22 | 08 89 19 ad 8d c2 09 40 | #[nil "|.......@|
|000015c0| 4a 21 88 09 41 89 11 ac | 74 c3 29 87 22 20 5b 61 |J!..A...|t.)." [a|
|000015d0| 62 62 72 65 76 2d 74 61 | 62 6c 65 2d 6e 61 6d 65 |bbrev-ta|ble-name|
|000015e0| 2d 6c 69 73 74 20 74 61 | 62 6c 65 73 20 63 6c 65 |-list ta|bles cle|
|000015f0| 61 72 2d 61 62 62 72 65 | 76 2d 74 61 62 6c 65 20 |ar-abbre|v-table |
|00001600| 6e 69 6c 5d 20 33 20 22 | 5c 0a 55 6e 64 65 66 69 |nil] 3 "|\.Undefi|
|00001610| 6e 65 20 61 6c 6c 20 64 | 65 66 69 6e 65 64 20 61 |ne all d|efined a|
|00001620| 62 62 72 65 76 73 2e 22 | 20 6e 69 6c 5d 29 0a 28 |bbrevs."| nil]).(|
|00001630| 66 73 65 74 20 27 69 6e | 73 65 72 74 2d 61 62 62 |fset 'in|sert-abb|
|00001640| 72 65 76 73 20 23 5b 6e | 69 6c 20 22 c0 8a 09 89 |revs #[n|il "....|
|00001650| 1a ab 8c c3 5c 6e 40 c4 | 5c 22 88 5c 6e 41 89 12 |....\n@.|\".\nA..|
|00001660| ac 74 29 60 29 21 87 22 | 20 5b 70 75 73 68 2d 6d |.t)`)!."| [push-m|
|00001670| 61 72 6b 20 61 62 62 72 | 65 76 2d 74 61 62 6c 65 |ark abbr|ev-table|
|00001680| 2d 6e 61 6d 65 2d 6c 69 | 73 74 20 74 61 62 6c 65 |-name-li|st table|
|00001690| 73 20 69 6e 73 65 72 74 | 2d 61 62 62 72 65 76 2d |s insert|-abbrev-|
|000016a0| 74 61 62 6c 65 2d 64 65 | 73 63 72 69 70 74 69 6f |table-de|scriptio|
|000016b0| 6e 20 74 5d 20 35 20 22 | 5c 0a 49 6e 73 65 72 74 |n t] 5 "|\.Insert|
|000016c0| 20 61 66 74 65 72 20 70 | 6f 69 6e 74 20 61 20 64 | after p|oint a d|
|000016d0| 65 73 63 72 69 70 74 69 | 6f 6e 20 6f 66 20 61 6c |escripti|on of al|
|000016e0| 6c 20 64 65 66 69 6e 65 | 64 20 61 62 62 72 65 76 |l define|d abbrev|
|000016f0| 73 2e 0a 4d 61 72 6b 20 | 69 73 20 73 65 74 20 61 |s..Mark |is set a|
|00001700| 66 74 65 72 20 74 68 65 | 20 69 6e 73 65 72 74 65 |fter the| inserte|
|00001710| 64 20 74 65 78 74 2e 22 | 20 6e 69 6c 5d 29 0a 28 |d text."| nil]).(|
|00001720| 66 73 65 74 20 27 6c 69 | 73 74 2d 61 62 62 72 65 |fset 'li|st-abbre|
|00001730| 76 73 20 23 5b 6e 69 6c | 20 22 c0 c1 20 21 87 22 |vs #[nil| ".. !."|
|00001740| 20 5b 64 69 73 70 6c 61 | 79 2d 62 75 66 66 65 72 | [displa|y-buffer|
|00001750| 20 70 72 65 70 61 72 65 | 2d 61 62 62 72 65 76 2d | prepare|-abbrev-|
|00001760| 6c 69 73 74 2d 62 75 66 | 66 65 72 5d 20 32 20 22 |list-buf|fer] 2 "|
|00001770| 5c 0a 44 69 73 70 6c 61 | 79 20 61 20 6c 69 73 74 |\.Displa|y a list|
|00001780| 20 6f 66 20 61 6c 6c 20 | 64 65 66 69 6e 65 64 20 | of all |defined |
|00001790| 61 62 62 72 65 76 73 2e | 22 20 6e 69 6c 5d 29 0a |abbrevs.|" nil]).|
|000017a0| 28 66 73 65 74 20 27 70 | 72 65 70 61 72 65 2d 61 |(fset 'p|repare-a|
|000017b0| 62 62 72 65 76 2d 6c 69 | 73 74 2d 62 75 66 66 65 |bbrev-li|st-buffe|
|000017c0| 72 20 23 5b 6e 69 6c 20 | 22 8a c0 c1 21 71 88 c2 |r #[nil |"...!q..|
|000017d0| 20 88 0b 89 1c ab 8c c5 | 0c 40 c6 5c 22 88 0c 41 | .......|.@.\"..A|
|000017e0| 89 14 ac 74 29 65 62 88 | c7 c8 21 88 c9 20 88 29 |...t)eb.|..!.. .)|
|000017f0| c0 c1 21 87 22 20 5b 67 | 65 74 2d 62 75 66 66 65 |..!." [g|et-buffe|
|00001800| 72 2d 63 72 65 61 74 65 | 20 22 2a 41 62 62 72 65 |r-create| "*Abbre|
|00001810| 76 73 2a 22 20 65 72 61 | 73 65 2d 62 75 66 66 65 |vs*" era|se-buffe|
|00001820| 72 20 61 62 62 72 65 76 | 2d 74 61 62 6c 65 2d 6e |r abbrev|-table-n|
|00001830| 61 6d 65 2d 6c 69 73 74 | 20 74 61 62 6c 65 73 20 |ame-list| tables |
|00001840| 69 6e 73 65 72 74 2d 61 | 62 62 72 65 76 2d 74 61 |insert-a|bbrev-ta|
|00001850| 62 6c 65 2d 64 65 73 63 | 72 69 70 74 69 6f 6e 20 |ble-desc|ription |
|00001860| 74 20 73 65 74 2d 62 75 | 66 66 65 72 2d 6d 6f 64 |t set-bu|ffer-mod|
|00001870| 69 66 69 65 64 2d 70 20 | 6e 69 6c 20 65 64 69 74 |ified-p |nil edit|
|00001880| 2d 61 62 62 72 65 76 73 | 2d 6d 6f 64 65 5d 20 34 |-abbrevs|-mode] 4|
|00001890| 5d 29 0a 28 66 73 65 74 | 20 27 65 64 69 74 2d 61 |]).(fset| 'edit-a|
|000018a0| 62 62 72 65 76 73 2d 6d | 6f 64 65 20 23 5b 6e 69 |bbrevs-m|ode #[ni|
|000018b0| 6c 20 22 c0 11 c2 13 c4 | 0d 21 87 22 20 5b 65 64 |l ".....|.!." [ed|
|000018c0| 69 74 2d 61 62 62 72 65 | 76 73 2d 6d 6f 64 65 20 |it-abbre|vs-mode |
|000018d0| 6d 61 6a 6f 72 2d 6d 6f | 64 65 20 22 45 64 69 74 |major-mo|de "Edit|
|000018e0| 2d 41 62 62 72 65 76 73 | 22 20 6d 6f 64 65 2d 6e |-Abbrevs|" mode-n|
|000018f0| 61 6d 65 20 75 73 65 2d | 6c 6f 63 61 6c 2d 6d 61 |ame use-|local-ma|
|00001900| 70 20 65 64 69 74 2d 61 | 62 62 72 65 76 73 2d 6d |p edit-a|bbrevs-m|
|00001910| 61 70 5d 20 32 20 22 5c | 0a 4d 61 6a 6f 72 20 6d |ap] 2 "\|.Major m|
|00001920| 6f 64 65 20 66 6f 72 20 | 65 64 69 74 69 6e 67 20 |ode for |editing |
|00001930| 74 68 65 20 6c 69 73 74 | 20 6f 66 20 61 62 62 72 |the list| of abbr|
|00001940| 65 76 20 64 65 66 69 6e | 69 74 69 6f 6e 73 2e 0a |ev defin|itions..|
|00001950| 5c 5c 7b 65 64 69 74 2d | 61 62 62 72 65 76 73 2d |\\{edit-|abbrevs-|
|00001960| 6d 61 70 7d 22 20 6e 69 | 6c 5d 29 0a 28 66 73 65 |map}" ni|l]).(fse|
|00001970| 74 20 27 65 64 69 74 2d | 61 62 62 72 65 76 73 20 |t 'edit-|abbrevs |
|00001980| 23 5b 6e 69 6c 20 22 c0 | c1 20 21 87 22 20 5b 73 |#[nil ".|. !." [s|
|00001990| 77 69 74 63 68 2d 74 6f | 2d 62 75 66 66 65 72 20 |witch-to|-buffer |
|000019a0| 70 72 65 70 61 72 65 2d | 61 62 62 72 65 76 2d 6c |prepare-|abbrev-l|
|000019b0| 69 73 74 2d 62 75 66 66 | 65 72 5d 20 32 20 22 5c |ist-buff|er] 2 "\|
|000019c0| 0a 41 6c 74 65 72 20 61 | 62 62 72 65 76 20 64 65 |.Alter a|bbrev de|
|000019d0| 66 69 6e 69 74 69 6f 6e | 73 20 62 79 20 65 64 69 |finition|s by edi|
|000019e0| 74 69 6e 67 20 61 20 6c | 69 73 74 20 6f 66 20 74 |ting a l|ist of t|
|000019f0| 68 65 6d 2e 0a 53 65 6c | 65 63 74 73 20 61 20 62 |hem..Sel|ects a b|
|00001a00| 75 66 66 65 72 20 63 6f | 6e 74 61 69 6e 69 6e 67 |uffer co|ntaining|
|00001a10| 20 61 20 6c 69 73 74 20 | 6f 66 20 61 62 62 72 65 | a list |of abbre|
|00001a20| 76 20 64 65 66 69 6e 69 | 74 69 6f 6e 73 2e 0a 59 |v defini|tions..Y|
|00001a30| 6f 75 20 63 61 6e 20 65 | 64 69 74 20 74 68 65 6d |ou can e|dit them|
|00001a40| 20 61 6e 64 20 74 79 70 | 65 20 43 2d 63 20 43 2d | and typ|e C-c C-|
|00001a50| 63 20 74 6f 20 72 65 64 | 65 66 69 6e 65 20 61 62 |c to red|efine ab|
|00001a60| 62 72 65 76 73 0a 61 63 | 63 6f 72 64 69 6e 67 20 |brevs.ac|cording |
|00001a70| 74 6f 20 79 6f 75 72 20 | 65 64 69 74 69 6e 67 2e |to your |editing.|
|00001a80| 0a 42 75 66 66 65 72 20 | 63 6f 6e 74 61 69 6e 73 |.Buffer |contains|
|00001a90| 20 61 20 68 65 61 64 65 | 72 20 6c 69 6e 65 20 66 | a heade|r line f|
|00001aa0| 6f 72 20 65 61 63 68 20 | 61 62 62 72 65 76 20 74 |or each |abbrev t|
|00001ab0| 61 62 6c 65 2c 0a 20 77 | 68 69 63 68 20 69 73 20 |able,. w|hich is |
|00001ac0| 74 68 65 20 61 62 62 72 | 65 76 20 74 61 62 6c 65 |the abbr|ev table|
|00001ad0| 20 6e 61 6d 65 20 69 6e | 20 70 61 72 65 6e 74 68 | name in| parenth|
|00001ae0| 65 73 65 73 2e 0a 54 68 | 69 73 20 69 73 20 66 6f |eses..Th|is is fo|
|00001af0| 6c 6c 6f 77 65 64 20 62 | 79 20 6f 6e 65 20 6c 69 |llowed b|y one li|
|00001b00| 6e 65 20 70 65 72 20 61 | 62 62 72 65 76 20 69 6e |ne per a|bbrev in|
|00001b10| 20 74 68 61 74 20 74 61 | 62 6c 65 3a 0a 4e 41 4d | that ta|ble:.NAM|
|00001b20| 45 20 20 20 55 53 45 43 | 4f 55 4e 54 20 20 20 45 |E USEC|OUNT E|
|00001b30| 58 50 41 4e 53 49 4f 4e | 20 20 20 48 4f 4f 4b 0a |XPANSION| HOOK.|
|00001b40| 77 68 65 72 65 20 4e 41 | 4d 45 20 61 6e 64 20 45 |where NA|ME and E|
|00001b50| 58 50 41 4e 53 49 4f 4e | 20 61 72 65 20 73 74 72 |XPANSION| are str|
|00001b60| 69 6e 67 73 20 77 69 74 | 68 20 71 75 6f 74 65 73 |ings wit|h quotes|
|00001b70| 2c 0a 55 53 45 43 4f 55 | 4e 54 20 69 73 20 61 6e |,.USECOU|NT is an|
|00001b80| 20 69 6e 74 65 67 65 72 | 2c 20 61 6e 64 20 48 4f | integer|, and HO|
|00001b90| 4f 4b 20 69 73 20 61 6e | 79 20 76 61 6c 69 64 20 |OK is an|y valid |
|00001ba0| 66 75 6e 63 74 69 6f 6e | 0a 6f 72 20 6d 61 79 20 |function|.or may |
|00001bb0| 62 65 20 6f 6d 69 74 74 | 65 64 20 28 69 74 20 69 |be omitt|ed (it i|
|00001bc0| 73 20 75 73 75 61 6c 6c | 79 20 6f 6d 69 74 74 65 |s usuall|y omitte|
|00001bd0| 64 29 2e 22 20 6e 69 6c | 5d 29 0a 28 66 73 65 74 |d)." nil|]).(fset|
|00001be0| 20 27 65 64 69 74 2d 61 | 62 62 72 65 76 73 2d 72 | 'edit-a|bbrevs-r|
|00001bf0| 65 64 65 66 69 6e 65 20 | 23 5b 6e 69 6c 20 22 c0 |edefine |#[nil ".|
|00001c00| c1 21 88 c2 c3 21 87 22 | 20 5b 64 65 66 69 6e 65 |.!...!."| [define|
|00001c10| 2d 61 62 62 72 65 76 73 | 20 74 20 73 65 74 2d 62 |-abbrevs| t set-b|
|00001c20| 75 66 66 65 72 2d 6d 6f | 64 69 66 69 65 64 2d 70 |uffer-mo|dified-p|
|00001c30| 20 6e 69 6c 5d 20 32 20 | 22 5c 0a 52 65 64 65 66 | nil] 2 |"\.Redef|
|00001c40| 69 6e 65 20 61 62 62 72 | 65 76 73 20 61 63 63 6f |ine abbr|evs acco|
|00001c50| 72 64 69 6e 67 20 74 6f | 20 63 75 72 72 65 6e 74 |rding to| current|
|00001c60| 20 62 75 66 66 65 72 20 | 63 6f 6e 74 65 6e 74 73 | buffer |contents|
|00001c70| 2e 22 20 6e 69 6c 5d 29 | 0a 28 66 73 65 74 20 27 |." nil])|.(fset '|
|00001c80| 64 65 66 69 6e 65 2d 61 | 62 62 72 65 76 73 20 23 |define-a|bbrevs #|
|00001c90| 5b 28 26 6f 70 74 69 6f | 6e 61 6c 20 61 72 67 29 |[(&optio|nal arg)|
|00001ca0| 20 22 08 ab 83 c1 20 88 | 8a 65 62 88 6d 3f ad de | ".... .|.eb.m?..|
|00001cb0| c2 c3 c4 c5 23 ad d7 70 | 1e 06 c7 0e 06 21 1e 08 |....#..p|.....!..|
|00001cc0| c4 1e 09 ca 79 88 ca 79 | 88 6c ac b8 c7 0e 06 21 |....y..y|.l.....!|
|00001cd0| 1e 0b c7 0e 06 21 1e 0c | c7 0e 06 21 1e 0d c4 1e |.....!..|...!....|
|00001ce0| 0e cf c4 78 88 6c 3f ad | 84 c7 0e 06 21 16 0e cf |...x.l?.|....!...|
|00001cf0| c4 78 88 0e 0b 0e 0d 0e | 0e 0e 0c 46 0e 09 42 16 |.x......|...F..B.|
|00001d00| 09 2c aa 42 d0 0e 08 0e | 09 5c 22 88 2b aa 1e 29 |.,.B....|.\".+..)|
|00001d10| 87 22 20 5b 61 72 67 20 | 6b 69 6c 6c 2d 61 6c 6c |." [arg |kill-all|
|00001d20| 2d 61 62 62 72 65 76 73 | 20 72 65 2d 73 65 61 72 |-abbrevs| re-sear|
|00001d30| 63 68 2d 66 6f 72 77 61 | 72 64 20 22 5e 28 22 20 |ch-forwa|rd "^(" |
|00001d40| 6e 69 6c 20 74 20 62 75 | 66 20 72 65 61 64 20 74 |nil t bu|f read t|
|00001d50| 61 62 6c 65 20 61 62 62 | 72 65 76 73 20 31 20 6e |able abb|revs 1 n|
|00001d60| 61 6d 65 20 63 6f 75 6e | 74 20 65 78 70 20 68 6f |ame coun|t exp ho|
|00001d70| 6f 6b 20 22 20 09 5c 6e | 0c 22 20 64 65 66 69 6e |ok " .\n|." defin|
|00001d80| 65 2d 61 62 62 72 65 76 | 2d 74 61 62 6c 65 5d 20 |e-abbrev|-table] |
|00001d90| 34 20 22 5c 0a 44 65 66 | 69 6e 65 20 61 62 62 72 |4 "\.Def|ine abbr|
|00001da0| 65 76 73 20 61 63 63 6f | 72 64 69 6e 67 20 74 6f |evs acco|rding to|
|00001db0| 20 63 75 72 72 65 6e 74 | 20 76 69 73 69 62 6c 65 | current| visible|
|00001dc0| 20 62 75 66 66 65 72 20 | 63 6f 6e 74 65 6e 74 73 | buffer |contents|
|00001dd0| 2e 0a 53 65 65 20 64 6f | 63 75 6d 65 6e 74 61 74 |..See do|cumentat|
|00001de0| 69 6f 6e 20 6f 66 20 65 | 64 69 74 2d 61 62 62 72 |ion of e|dit-abbr|
|00001df0| 65 76 73 20 66 6f 72 20 | 69 6e 66 6f 20 6f 6e 20 |evs for |info on |
|00001e00| 74 68 65 20 66 6f 72 6d | 61 74 20 6f 66 20 74 68 |the form|at of th|
|00001e10| 65 0a 74 65 78 74 20 79 | 6f 75 20 6d 75 73 74 20 |e.text y|ou must |
|00001e20| 68 61 76 65 20 69 6e 20 | 74 68 65 20 62 75 66 66 |have in |the buff|
|00001e30| 65 72 2e 0a 57 69 74 68 | 20 61 72 67 75 6d 65 6e |er..With| argumen|
|00001e40| 74 2c 20 65 6c 69 6d 69 | 6e 61 74 65 20 61 6c 6c |t, elimi|nate all|
|00001e50| 20 61 62 62 72 65 76 20 | 64 65 66 69 6e 69 74 69 | abbrev |definiti|
|00001e60| 6f 6e 73 20 65 78 63 65 | 70 74 0a 74 68 65 20 6f |ons exce|pt.the o|
|00001e70| 6e 65 73 20 64 65 66 69 | 6e 65 64 20 66 72 6f 6d |nes defi|ned from|
|00001e80| 20 74 68 65 20 62 75 66 | 66 65 72 20 6e 6f 77 2e | the buf|fer now.|
|00001e90| 22 20 22 50 22 5d 29 0a | 28 66 73 65 74 20 27 72 |" "P"]).|(fset 'r|
|00001ea0| 65 61 64 2d 61 62 62 72 | 65 76 2d 66 69 6c 65 20 |ead-abbr|ev-file |
|00001eb0| 23 5b 28 26 6f 70 74 69 | 6f 6e 61 6c 20 66 69 6c |#[(&opti|onal fil|
|00001ec0| 65 20 71 75 69 65 74 6c | 79 29 20 22 c0 09 ab 89 |e quietl|y) "....|
|00001ed0| 09 47 c2 56 ab 83 09 aa | 81 0b c4 0d 23 88 c6 16 |.G.V....|....#...|
|00001ee0| 07 c4 89 16 08 87 22 20 | 5b 6c 6f 61 64 20 66 69 |......" |[load fi|
|00001ef0| 6c 65 20 30 20 61 62 62 | 72 65 76 2d 66 69 6c 65 |le 0 abb|rev-file|
|00001f00| 2d 6e 61 6d 65 20 6e 69 | 6c 20 71 75 69 65 74 6c |-name ni|l quietl|
|00001f10| 79 20 74 20 73 61 76 65 | 2d 61 62 62 72 65 76 73 |y t save|-abbrevs|
|00001f20| 20 61 62 62 72 65 76 73 | 2d 63 68 61 6e 67 65 64 | abbrevs|-changed|
|00001f30| 5d 20 34 20 22 5c 0a 52 | 65 61 64 20 61 62 62 72 |] 4 "\.R|ead abbr|
|00001f40| 65 76 20 64 65 66 69 6e | 69 74 69 6f 6e 73 20 66 |ev defin|itions f|
|00001f50| 72 6f 6d 20 66 69 6c 65 | 20 77 72 69 74 74 65 6e |rom file| written|
|00001f60| 20 77 69 74 68 20 77 72 | 69 74 65 2d 61 62 62 72 | with wr|ite-abbr|
|00001f70| 65 76 2d 66 69 6c 65 2e | 0a 54 61 6b 65 73 20 66 |ev-file.|.Takes f|
|00001f80| 69 6c 65 20 6e 61 6d 65 | 20 61 73 20 61 72 67 75 |ile name| as argu|
|00001f90| 6d 65 6e 74 2e 0a 4f 70 | 74 69 6f 6e 61 6c 20 73 |ment..Op|tional s|
|00001fa0| 65 63 6f 6e 64 20 61 72 | 67 75 6d 65 6e 74 20 6e |econd ar|gument n|
|00001fb0| 6f 6e 2d 6e 69 6c 20 6d | 65 61 6e 73 20 64 6f 6e |on-nil m|eans don|
|00001fc0| 27 74 20 70 72 69 6e 74 | 20 61 6e 79 74 68 69 6e |'t print| anythin|
|00001fd0| 67 2e 22 20 22 66 52 65 | 61 64 20 61 62 62 72 65 |g." "fRe|ad abbre|
|00001fe0| 76 20 66 69 6c 65 3a 20 | 22 5d 29 0a 28 66 73 65 |v file: |"]).(fse|
|00001ff0| 74 20 27 71 75 69 65 74 | 6c 79 2d 72 65 61 64 2d |t 'quiet|ly-read-|
|00002000| 61 62 62 72 65 76 2d 66 | 69 6c 65 20 23 5b 28 26 |abbrev-f|ile #[(&|
|00002010| 6f 70 74 69 6f 6e 61 6c | 20 66 69 6c 65 29 20 22 |optional| file) "|
|00002020| c0 09 c2 5c 22 87 22 20 | 5b 72 65 61 64 2d 61 62 |...\"." |[read-ab|
|00002030| 62 72 65 76 2d 66 69 6c | 65 20 66 69 6c 65 20 74 |brev-fil|e file t|
|00002040| 5d 20 33 20 22 5c 0a 52 | 65 61 64 20 61 62 62 72 |] 3 "\.R|ead abbr|
|00002050| 65 76 20 64 65 66 69 6e | 69 74 69 6f 6e 73 20 66 |ev defin|itions f|
|00002060| 72 6f 6d 20 66 69 6c 65 | 20 77 72 69 74 74 65 6e |rom file| written|
|00002070| 20 77 69 74 68 20 77 72 | 69 74 65 2d 61 62 62 72 | with wr|ite-abbr|
|00002080| 65 76 2d 66 69 6c 65 2e | 0a 54 61 6b 65 73 20 66 |ev-file.|.Takes f|
|00002090| 69 6c 65 20 6e 61 6d 65 | 20 61 73 20 61 72 67 75 |ile name| as argu|
|000020a0| 6d 65 6e 74 2e 20 20 44 | 6f 65 73 20 6e 6f 74 20 |ment. D|oes not |
|000020b0| 70 72 69 6e 74 20 61 6e | 79 74 68 69 6e 67 2e 22 |print an|ything."|
|000020c0| 5d 29 0a 28 66 73 65 74 | 20 27 77 72 69 74 65 2d |]).(fset| 'write-|
|000020d0| 61 62 62 72 65 76 2d 66 | 69 6c 65 20 23 5b 28 66 |abbrev-f|ile #[(f|
|000020e0| 69 6c 65 29 20 22 08 ab | 86 08 47 c1 56 ac 82 5c |ile) "..|..G.V..\|
|000020f0| 6e 10 8a c3 c4 21 71 88 | c5 20 88 0e 06 89 1e 07 |n....!q.|. ......|
|00002100| ab 8f c8 0e 07 40 c9 5c | 22 88 0e 07 41 89 16 07 |.....@.\|"...A...|
|00002110| ac 71 29 ca cb 64 08 23 | 88 c5 20 29 87 22 20 5b |.q)..d.#|.. )." [|
|00002120| 66 69 6c 65 20 30 20 61 | 62 62 72 65 76 2d 66 69 |file 0 a|bbrev-fi|
|00002130| 6c 65 2d 6e 61 6d 65 20 | 67 65 74 2d 62 75 66 66 |le-name |get-buff|
|00002140| 65 72 2d 63 72 65 61 74 | 65 20 22 20 77 72 69 74 |er-creat|e " writ|
|00002150| 65 2d 61 62 62 72 65 76 | 2d 66 69 6c 65 22 20 65 |e-abbrev|-file" e|
|00002160| 72 61 73 65 2d 62 75 66 | 66 65 72 20 61 62 62 72 |rase-buf|fer abbr|
|00002170| 65 76 2d 74 61 62 6c 65 | 2d 6e 61 6d 65 2d 6c 69 |ev-table|-name-li|
|00002180| 73 74 20 74 61 62 6c 65 | 73 20 69 6e 73 65 72 74 |st table|s insert|
|00002190| 2d 61 62 62 72 65 76 2d | 74 61 62 6c 65 2d 64 65 |-abbrev-|table-de|
|000021a0| 73 63 72 69 70 74 69 6f | 6e 20 6e 69 6c 20 77 72 |scriptio|n nil wr|
|000021b0| 69 74 65 2d 72 65 67 69 | 6f 6e 20 31 5d 20 35 20 |ite-regi|on 1] 5 |
|000021c0| 22 5c 0a 57 72 69 74 65 | 20 61 6c 6c 20 61 62 62 |"\.Write| all abb|
|000021d0| 72 65 76 20 64 65 66 69 | 6e 69 74 69 6f 6e 73 20 |rev defi|nitions |
|000021e0| 74 6f 20 66 69 6c 65 20 | 6f 66 20 4c 69 73 70 20 |to file |of Lisp |
|000021f0| 63 6f 64 65 2e 0a 54 68 | 65 20 66 69 6c 65 20 63 |code..Th|e file c|
|00002200| 61 6e 20 62 65 20 6c 6f | 61 64 65 64 20 74 6f 20 |an be lo|aded to |
|00002210| 64 65 66 69 6e 65 20 74 | 68 65 20 73 61 6d 65 20 |define t|he same |
|00002220| 61 62 62 72 65 76 73 2e | 22 20 28 62 79 74 65 2d |abbrevs.|" (byte-|
|00002230| 63 6f 64 65 20 22 c0 c1 | c2 c3 0c 21 21 0c 23 43 |code "..|...!!.#C|
|00002240| 87 22 20 5b 72 65 61 64 | 2d 66 69 6c 65 2d 6e 61 |." [read|-file-na|
|00002250| 6d 65 20 22 57 72 69 74 | 65 20 61 62 62 72 65 76 |me "Writ|e abbrev|
|00002260| 20 66 69 6c 65 3a 20 22 | 20 66 69 6c 65 2d 6e 61 | file: "| file-na|
|00002270| 6d 65 2d 64 69 72 65 63 | 74 6f 72 79 20 65 78 70 |me-direc|tory exp|
|00002280| 61 6e 64 2d 66 69 6c 65 | 2d 6e 61 6d 65 20 61 62 |and-file|-name ab|
|00002290| 62 72 65 76 2d 66 69 6c | 65 2d 6e 61 6d 65 5d 20 |brev-fil|e-name] |
|000022a0| 35 29 5d 29 0a 28 66 73 | 65 74 20 27 61 64 64 2d |5)]).(fs|et 'add-|
|000022b0| 6d 6f 64 65 2d 61 62 62 | 72 65 76 20 23 5b 28 61 |mode-abb|rev #[(a|
|000022c0| 72 67 29 20 22 c0 09 ab | 83 5c 6e aa 86 0b ae 83 |rg) "...|.\n.....|
|000022d0| c4 c5 21 c6 0e 07 23 87 | 22 20 5b 61 64 64 2d 61 |..!...#.|" [add-a|
|000022e0| 62 62 72 65 76 20 6f 6e | 6c 79 2d 67 6c 6f 62 61 |bbrev on|ly-globa|
|000022f0| 6c 2d 61 62 62 72 65 76 | 73 20 67 6c 6f 62 61 6c |l-abbrev|s global|
|00002300| 2d 61 62 62 72 65 76 2d | 74 61 62 6c 65 20 6c 6f |-abbrev-|table lo|
|00002310| 63 61 6c 2d 61 62 62 72 | 65 76 2d 74 61 62 6c 65 |cal-abbr|ev-table|
|00002320| 20 65 72 72 6f 72 20 22 | 4e 6f 20 70 65 72 2d 6d | error "|No per-m|
|00002330| 6f 64 65 20 61 62 62 72 | 65 76 20 74 61 62 6c 65 |ode abbr|ev table|
|00002340| 2e 22 20 22 4d 6f 64 65 | 22 20 61 72 67 5d 20 34 |." "Mode|" arg] 4|
|00002350| 20 22 5c 0a 44 65 66 69 | 6e 65 20 6d 6f 64 65 2d | "\.Defi|ne mode-|
|00002360| 73 70 65 63 69 66 69 63 | 20 61 62 62 72 65 76 20 |specific| abbrev |
|00002370| 66 6f 72 20 6c 61 73 74 | 20 77 6f 72 64 28 73 29 |for last| word(s)|
|00002380| 20 62 65 66 6f 72 65 20 | 70 6f 69 6e 74 2e 0a 41 | before |point..A|
|00002390| 72 67 75 6d 65 6e 74 20 | 69 73 20 68 6f 77 20 6d |rgument |is how m|
|000023a0| 61 6e 79 20 77 6f 72 64 | 73 20 62 65 66 6f 72 65 |any word|s before|
|000023b0| 20 70 6f 69 6e 74 20 66 | 6f 72 6d 20 74 68 65 20 | point f|orm the |
|000023c0| 65 78 70 61 6e 73 69 6f | 6e 3b 0a 6f 72 20 7a 65 |expansio|n;.or ze|
|000023d0| 72 6f 20 6d 65 61 6e 73 | 20 74 68 65 20 72 65 67 |ro means| the reg|
|000023e0| 69 6f 6e 20 69 73 20 74 | 68 65 20 65 78 70 61 6e |ion is t|he expan|
|000023f0| 73 69 6f 6e 2e 0a 41 20 | 6e 65 67 61 74 69 76 65 |sion..A |negative|
|00002400| 20 61 72 67 75 6d 65 6e | 74 20 6d 65 61 6e 73 20 | argumen|t means |
|00002410| 74 6f 20 75 6e 64 65 66 | 69 6e 65 20 74 68 65 20 |to undef|ine the |
|00002420| 73 70 65 63 69 66 69 65 | 64 20 61 62 62 72 65 76 |specifie|d abbrev|
|00002430| 2e 0a 52 65 61 64 73 20 | 74 68 65 20 61 62 62 72 |..Reads |the abbr|
|00002440| 65 76 69 61 74 69 6f 6e | 20 69 6e 20 74 68 65 20 |eviation| in the |
|00002450| 6d 69 6e 69 62 75 66 66 | 65 72 2e 0a 0a 44 6f 6e |minibuff|er...Don|
|00002460| 27 74 20 75 73 65 20 74 | 68 69 73 20 66 75 6e 63 |'t use t|his func|
|00002470| 74 69 6f 6e 20 69 6e 20 | 61 20 4c 69 73 70 20 70 |tion in |a Lisp p|
|00002480| 72 6f 67 72 61 6d 3b 20 | 75 73 65 20 64 65 66 69 |rogram; |use defi|
|00002490| 6e 65 2d 61 62 62 72 65 | 76 20 69 6e 73 74 65 61 |ne-abbre|v instea|
|000024a0| 64 2e 22 20 22 70 22 5d | 29 0a 28 66 73 65 74 20 |d." "p"]|).(fset |
|000024b0| 27 61 64 64 2d 67 6c 6f | 62 61 6c 2d 61 62 62 72 |'add-glo|bal-abbr|
|000024c0| 65 76 20 23 5b 28 61 72 | 67 29 20 22 c0 09 c2 0b |ev #[(ar|g) "....|
|000024d0| 23 87 22 20 5b 61 64 64 | 2d 61 62 62 72 65 76 20 |#." [add|-abbrev |
|000024e0| 67 6c 6f 62 61 6c 2d 61 | 62 62 72 65 76 2d 74 61 |global-a|bbrev-ta|
|000024f0| 62 6c 65 20 22 47 6c 6f | 62 61 6c 22 20 61 72 67 |ble "Glo|bal" arg|
|00002500| 5d 20 34 20 22 5c 0a 44 | 65 66 69 6e 65 20 67 6c |] 4 "\.D|efine gl|
|00002510| 6f 62 61 6c 20 28 61 6c | 6c 20 6d 6f 64 65 73 29 |obal (al|l modes)|
|00002520| 20 61 62 62 72 65 76 20 | 66 6f 72 20 6c 61 73 74 | abbrev |for last|
|00002530| 20 77 6f 72 64 28 73 29 | 20 62 65 66 6f 72 65 20 | word(s)| before |
|00002540| 70 6f 69 6e 74 2e 0a 41 | 72 67 75 6d 65 6e 74 20 |point..A|rgument |
|00002550| 69 73 20 68 6f 77 20 6d | 61 6e 79 20 77 6f 72 64 |is how m|any word|
|00002560| 73 20 62 65 66 6f 72 65 | 20 70 6f 69 6e 74 20 66 |s before| point f|
|00002570| 6f 72 6d 20 74 68 65 20 | 65 78 70 61 6e 73 69 6f |orm the |expansio|
|00002580| 6e 3b 0a 6f 72 20 7a 65 | 72 6f 20 6d 65 61 6e 73 |n;.or ze|ro means|
|00002590| 20 74 68 65 20 72 65 67 | 69 6f 6e 20 69 73 20 74 | the reg|ion is t|
|000025a0| 68 65 20 65 78 70 61 6e | 73 69 6f 6e 2e 0a 41 20 |he expan|sion..A |
|000025b0| 6e 65 67 61 74 69 76 65 | 20 61 72 67 75 6d 65 6e |negative| argumen|
|000025c0| 74 20 6d 65 61 6e 73 20 | 74 6f 20 75 6e 64 65 66 |t means |to undef|
|000025d0| 69 6e 65 20 74 68 65 20 | 73 70 65 63 69 66 69 65 |ine the |specifie|
|000025e0| 64 20 61 62 62 72 65 76 | 2e 0a 52 65 61 64 73 20 |d abbrev|..Reads |
|000025f0| 74 68 65 20 61 62 62 72 | 65 76 69 61 74 69 6f 6e |the abbr|eviation|
|00002600| 20 69 6e 20 74 68 65 20 | 6d 69 6e 69 62 75 66 66 | in the |minibuff|
|00002610| 65 72 2e 0a 0a 44 6f 6e | 27 74 20 75 73 65 20 74 |er...Don|'t use t|
|00002620| 68 69 73 20 66 75 6e 63 | 74 69 6f 6e 20 69 6e 20 |his func|tion in |
|00002630| 61 20 4c 69 73 70 20 70 | 72 6f 67 72 61 6d 3b 20 |a Lisp p|rogram; |
|00002640| 75 73 65 20 64 65 66 69 | 6e 65 2d 61 62 62 72 65 |use defi|ne-abbre|
|00002650| 76 20 69 6e 73 74 65 61 | 64 2e 22 20 22 70 22 5d |v instea|d." "p"]|
|00002660| 29 0a 28 66 73 65 74 20 | 27 61 64 64 2d 61 62 62 |).(fset |'add-abb|
|00002670| 72 65 76 20 23 5b 28 74 | 61 62 6c 65 20 74 79 70 |rev #[(t|able typ|
|00002680| 65 20 61 72 67 29 20 22 | 08 c1 59 ad 92 60 08 c1 |e arg) "|..Y..`..|
|00002690| 55 ab 84 c2 20 aa 87 8a | 08 5b 76 88 60 29 7b c3 |U... ...|.[v.`){.|
|000026a0| 1c 1d c6 c7 0d ab 83 c8 | aa 81 c9 0e 5c 6e 0d 23 |........|....\n.#|
|000026b0| 21 14 0d ab 94 cb 0c 0e | 0c 5c 22 ab 8d cd c7 ce |!.......|.\".....|
|000026c0| 0c cb 0c 0e 0c 5c 22 23 | 21 ad 87 cf 0e 0c 0c 97 |.....\"#|!.......|
|000026d0| 0d 23 2a 87 22 20 5b 61 | 72 67 20 30 20 6d 61 72 |.#*." [a|rg 0 mar|
|000026e0| 6b 20 6e 69 6c 20 6e 61 | 6d 65 20 65 78 70 20 72 |k nil na|me exp r|
|000026f0| 65 61 64 2d 73 74 72 69 | 6e 67 20 66 6f 72 6d 61 |ead-stri|ng forma|
|00002700| 74 20 22 25 73 20 61 62 | 62 72 65 76 20 66 6f 72 |t "%s ab|brev for|
|00002710| 20 5c 22 25 73 5c 22 3a | 20 22 20 22 55 6e 64 65 | \"%s\":| " "Unde|
|00002720| 66 69 6e 65 20 25 73 20 | 61 62 62 72 65 76 3a 20 |fine %s |abbrev: |
|00002730| 22 20 74 79 70 65 20 61 | 62 62 72 65 76 2d 65 78 |" type a|bbrev-ex|
|00002740| 70 61 6e 73 69 6f 6e 20 | 74 61 62 6c 65 20 79 2d |pansion |table y-|
|00002750| 6f 72 2d 6e 2d 70 20 22 | 25 73 20 65 78 70 61 6e |or-n-p "|%s expan|
|00002760| 64 73 20 74 6f 20 5c 22 | 25 73 5c 22 3b 20 72 65 |ds to \"|%s\"; re|
|00002770| 64 65 66 69 6e 65 3f 20 | 22 20 64 65 66 69 6e 65 |define? |" define|
|00002780| 2d 61 62 62 72 65 76 5d | 20 37 5d 29 0a 28 66 73 |-abbrev]| 7]).(fs|
|00002790| 65 74 20 27 69 6e 76 65 | 72 73 65 2d 61 64 64 2d |et 'inve|rse-add-|
|000027a0| 6d 6f 64 65 2d 61 62 62 | 72 65 76 20 23 5b 28 61 |mode-abb|rev #[(a|
|000027b0| 72 67 29 20 22 c0 09 ab | 83 5c 6e aa 86 0b ae 83 |rg) "...|.\n.....|
|000027c0| c4 c5 21 c6 0e 07 23 87 | 22 20 5b 69 6e 76 65 72 |..!...#.|" [inver|
|000027d0| 73 65 2d 61 64 64 2d 61 | 62 62 72 65 76 20 6f 6e |se-add-a|bbrev on|
|000027e0| 6c 79 2d 67 6c 6f 62 61 | 6c 2d 61 62 62 72 65 76 |ly-globa|l-abbrev|
|000027f0| 73 20 67 6c 6f 62 61 6c | 2d 61 62 62 72 65 76 2d |s global|-abbrev-|
|00002800| 74 61 62 6c 65 20 6c 6f | 63 61 6c 2d 61 62 62 72 |table lo|cal-abbr|
|00002810| 65 76 2d 74 61 62 6c 65 | 20 65 72 72 6f 72 20 22 |ev-table| error "|
|00002820| 4e 6f 20 70 65 72 2d 6d | 6f 64 65 20 61 62 62 72 |No per-m|ode abbr|
|00002830| 65 76 20 74 61 62 6c 65 | 2e 22 20 22 4d 6f 64 65 |ev table|." "Mode|
|00002840| 22 20 61 72 67 5d 20 34 | 20 22 5c 0a 44 65 66 69 |" arg] 4| "\.Defi|
|00002850| 6e 65 20 6c 61 73 74 20 | 77 6f 72 64 20 62 65 66 |ne last |word bef|
|00002860| 6f 72 65 20 70 6f 69 6e | 74 20 61 73 20 61 20 6d |ore poin|t as a m|
|00002870| 6f 64 65 2d 73 70 65 63 | 69 66 69 63 20 61 62 62 |ode-spec|ific abb|
|00002880| 72 65 76 2e 0a 57 69 74 | 68 20 61 72 67 75 6d 65 |rev..Wit|h argume|
|00002890| 6e 74 20 4e 2c 20 64 65 | 66 69 6e 65 73 20 74 68 |nt N, de|fines th|
|000028a0| 65 20 4e 74 68 20 77 6f | 72 64 20 62 65 66 6f 72 |e Nth wo|rd befor|
|000028b0| 65 20 70 6f 69 6e 74 2e | 0a 52 65 61 64 73 20 74 |e point.|.Reads t|
|000028c0| 68 65 20 65 78 70 61 6e | 73 69 6f 6e 20 69 6e 20 |he expan|sion in |
|000028d0| 74 68 65 20 6d 69 6e 69 | 62 75 66 66 65 72 2e 0a |the mini|buffer..|
|000028e0| 45 78 70 61 6e 64 73 20 | 74 68 65 20 61 62 62 72 |Expands |the abbr|
|000028f0| 65 76 69 61 74 69 6f 6e | 20 61 66 74 65 72 20 64 |eviation| after d|
|00002900| 65 66 69 6e 69 6e 67 20 | 69 74 2e 22 20 22 70 22 |efining |it." "p"|
|00002910| 5d 29 0a 28 66 73 65 74 | 20 27 69 6e 76 65 72 73 |]).(fset| 'invers|
|00002920| 65 2d 61 64 64 2d 67 6c | 6f 62 61 6c 2d 61 62 62 |e-add-gl|obal-abb|
|00002930| 72 65 76 20 23 5b 28 61 | 72 67 29 20 22 c0 09 c2 |rev #[(a|rg) "...|
|00002940| 0b 23 87 22 20 5b 69 6e | 76 65 72 73 65 2d 61 64 |.#." [in|verse-ad|
|00002950| 64 2d 61 62 62 72 65 76 | 20 67 6c 6f 62 61 6c 2d |d-abbrev| global-|
|00002960| 61 62 62 72 65 76 2d 74 | 61 62 6c 65 20 22 47 6c |abbrev-t|able "Gl|
|00002970| 6f 62 61 6c 22 20 61 72 | 67 5d 20 34 20 22 5c 0a |obal" ar|g] 4 "\.|
|00002980| 44 65 66 69 6e 65 20 6c | 61 73 74 20 77 6f 72 64 |Define l|ast word|
|00002990| 20 62 65 66 6f 72 65 20 | 70 6f 69 6e 74 20 61 73 | before |point as|
|000029a0| 20 61 20 67 6c 6f 62 61 | 6c 20 28 6d 6f 64 65 2d | a globa|l (mode-|
|000029b0| 69 6e 64 65 70 65 6e 64 | 65 6e 74 29 20 61 62 62 |independ|ent) abb|
|000029c0| 72 65 76 2e 0a 57 69 74 | 68 20 61 72 67 75 6d 65 |rev..Wit|h argume|
|000029d0| 6e 74 20 4e 2c 20 64 65 | 66 69 6e 65 73 20 74 68 |nt N, de|fines th|
|000029e0| 65 20 4e 74 68 20 77 6f | 72 64 20 62 65 66 6f 72 |e Nth wo|rd befor|
|000029f0| 65 20 70 6f 69 6e 74 2e | 0a 52 65 61 64 73 20 74 |e point.|.Reads t|
|00002a00| 68 65 20 65 78 70 61 6e | 73 69 6f 6e 20 69 6e 20 |he expan|sion in |
|00002a10| 74 68 65 20 6d 69 6e 69 | 62 75 66 66 65 72 2e 0a |the mini|buffer..|
|00002a20| 45 78 70 61 6e 64 73 20 | 74 68 65 20 61 62 62 72 |Expands |the abbr|
|00002a30| 65 76 69 61 74 69 6f 6e | 20 61 66 74 65 72 20 64 |eviation| after d|
|00002a40| 65 66 69 6e 69 6e 67 20 | 69 74 2e 22 20 22 70 22 |efining |it." "p"|
|00002a50| 5d 29 0a 28 66 73 65 74 | 20 27 69 6e 76 65 72 73 |]).(fset| 'invers|
|00002a60| 65 2d 61 64 64 2d 61 62 | 62 72 65 76 20 23 5b 28 |e-add-ab|brev #[(|
|00002a70| 74 61 62 6c 65 20 74 79 | 70 65 20 61 72 67 29 20 |table ty|pe arg) |
|00002a80| 22 c0 89 89 19 1a 1b 8a | 0c 5b 76 88 60 c5 76 88 |".......|.[v.`.v.|
|00002a90| 60 89 12 7b 13 29 c6 c7 | c8 0e 09 0b 23 21 11 ca |`..{.)..|....#!..|
|00002aa0| 0b 0e 0b 5c 22 ab 8d cc | c7 cd 0b ca 0b 0e 0b 5c |...\"...|.......\|
|00002ab0| 22 23 21 ad 8f ce 0e 0b | 0b 97 09 23 88 8a 5c 6e |"#!.....|...#..\n|
|00002ac0| 62 88 cf 20 29 2b 87 22 | 20 5b 6e 69 6c 20 65 78 |b.. )+."| [nil ex|
|00002ad0| 70 20 6e 61 6d 65 6c 6f | 63 20 6e 61 6d 65 20 61 |p namelo|c name a|
|00002ae0| 72 67 20 31 20 72 65 61 | 64 2d 73 74 72 69 6e 67 |rg 1 rea|d-string|
|00002af0| 20 66 6f 72 6d 61 74 20 | 22 25 73 20 65 78 70 61 | format |"%s expa|
|00002b00| 6e 73 69 6f 6e 20 66 6f | 72 20 5c 22 25 73 5c 22 |nsion fo|r \"%s\"|
|00002b10| 3a 20 22 20 74 79 70 65 | 20 61 62 62 72 65 76 2d |: " type| abbrev-|
|00002b20| 65 78 70 61 6e 73 69 6f | 6e 20 74 61 62 6c 65 20 |expansio|n table |
|00002b30| 79 2d 6f 72 2d 6e 2d 70 | 20 22 25 73 20 65 78 70 |y-or-n-p| "%s exp|
|00002b40| 61 6e 64 73 20 74 6f 20 | 5c 22 25 73 5c 22 3b 20 |ands to |\"%s\"; |
|00002b50| 72 65 64 65 66 69 6e 65 | 3f 20 22 20 64 65 66 69 |redefine|? " defi|
|00002b60| 6e 65 2d 61 62 62 72 65 | 76 20 65 78 70 61 6e 64 |ne-abbre|v expand|
|00002b70| 2d 61 62 62 72 65 76 5d | 20 37 5d 29 0a 28 66 73 |-abbrev]| 7]).(fs|
|00002b80| 65 74 20 27 61 62 62 72 | 65 76 2d 70 72 65 66 69 |et 'abbr|ev-prefi|
|00002b90| 78 2d 6d 61 72 6b 20 23 | 5b 28 26 6f 70 74 69 6f |x-mark #|[(&optio|
|00002ba0| 6e 61 6c 20 61 72 67 29 | 20 22 08 ac 83 c1 20 88 |nal arg)| ".... .|
|00002bb0| c2 20 13 70 14 c5 63 87 | 22 20 5b 61 72 67 20 65 |. .p..c.|" [arg e|
|00002bc0| 78 70 61 6e 64 2d 61 62 | 62 72 65 76 20 70 6f 69 |xpand-ab|brev poi|
|00002bd0| 6e 74 2d 6d 61 72 6b 65 | 72 20 61 62 62 72 65 76 |nt-marke|r abbrev|
|00002be0| 2d 73 74 61 72 74 2d 6c | 6f 63 61 74 69 6f 6e 20 |-start-l|ocation |
|00002bf0| 61 62 62 72 65 76 2d 73 | 74 61 72 74 2d 6c 6f 63 |abbrev-s|tart-loc|
|00002c00| 61 74 69 6f 6e 2d 62 75 | 66 66 65 72 20 22 2d 22 |ation-bu|ffer "-"|
|00002c10| 5d 20 31 20 22 5c 0a 4d | 61 72 6b 20 63 75 72 72 |] 1 "\.M|ark curr|
|00002c20| 65 6e 74 20 70 6f 69 6e | 74 20 61 73 20 74 68 65 |ent poin|t as the|
|00002c30| 20 62 65 67 69 6e 6e 69 | 6e 67 20 6f 66 20 61 6e | beginni|ng of an|
|00002c40| 20 61 62 62 72 65 76 2e | 0a 41 62 62 72 65 76 20 | abbrev.|.Abbrev |
|00002c50| 74 6f 20 62 65 20 65 78 | 70 61 6e 64 65 64 20 73 |to be ex|panded s|
|00002c60| 74 61 72 74 73 20 68 65 | 72 65 20 72 61 74 68 65 |tarts he|re rathe|
|00002c70| 72 20 74 68 61 6e 20 61 | 74 0a 62 65 67 69 6e 6e |r than a|t.beginn|
|00002c80| 69 6e 67 20 6f 66 20 77 | 6f 72 64 2e 20 20 54 68 |ing of w|ord. Th|
|00002c90| 69 73 20 77 61 79 2c 20 | 79 6f 75 20 63 61 6e 20 |is way, |you can |
|00002ca0| 65 78 70 61 6e 64 20 61 | 6e 20 61 62 62 72 65 76 |expand a|n abbrev|
|00002cb0| 0a 77 69 74 68 20 61 20 | 70 72 65 66 69 78 3a 20 |.with a |prefix: |
|00002cc0| 69 6e 73 65 72 74 20 74 | 68 65 20 70 72 65 66 69 |insert t|he prefi|
|00002cd0| 78 2c 20 75 73 65 20 74 | 68 69 73 20 63 6f 6d 6d |x, use t|his comm|
|00002ce0| 61 6e 64 2c 0a 74 68 65 | 6e 20 69 6e 73 65 72 74 |and,.the|n insert|
|00002cf0| 20 74 68 65 20 61 62 62 | 72 65 76 2e 22 20 22 50 | the abb|rev." "P|
|00002d00| 22 5d 29 0a 28 66 73 65 | 74 20 27 65 78 70 61 6e |"]).(fse|t 'expan|
|00002d10| 64 2d 72 65 67 69 6f 6e | 2d 61 62 62 72 65 76 73 |d-region|-abbrevs|
|00002d20| 20 23 5b 28 73 74 61 72 | 74 20 65 6e 64 20 26 6f | #[(star|t end &o|
|00002d30| 70 74 69 6f 6e 61 6c 20 | 6e 6f 71 75 65 72 79 29 |ptional |noquery)|
|00002d40| 20 22 8a 08 62 88 64 09 | 5a c2 89 1b 1c 1d 6d 3f | "..b.d.|Z.....m?|
|00002d50| ad ab c6 76 88 60 89 14 | 64 0d 5a 58 ad 9f c7 8a |...v.`..|d.ZX....|
|00002d60| c8 76 88 60 29 0c 7b 89 | 13 21 ab 62 0e 09 ac 88 |.v.`).{.|.!.b....|
|00002d70| ca cb cc 0b 5c 22 21 ab | 56 cd 20 88 aa 51 2c 87 |....\"!.|V. ..Q,.|
|00002d80| 22 20 5b 73 74 61 72 74 | 20 65 6e 64 20 6e 69 6c |" [start| end nil|
|00002d90| 20 73 74 72 69 6e 67 20 | 70 6e 74 20 6c 69 6d 20 | string |pnt lim |
|00002da0| 31 20 61 62 62 72 65 76 | 2d 65 78 70 61 6e 73 69 |1 abbrev|-expansi|
|00002db0| 6f 6e 20 2d 31 20 6e 6f | 71 75 65 72 79 20 79 2d |on -1 no|query y-|
|00002dc0| 6f 72 2d 6e 2d 70 20 66 | 6f 72 6d 61 74 20 22 45 |or-n-p f|ormat "E|
|00002dd0| 78 70 61 6e 64 20 60 25 | 73 27 3f 20 22 20 65 78 |xpand `%|s'? " ex|
|00002de0| 70 61 6e 64 2d 61 62 62 | 72 65 76 5d 20 34 20 22 |pand-abb|rev] 4 "|
|00002df0| 5c 0a 46 6f 72 20 61 62 | 62 72 65 76 20 6f 63 63 |\.For ab|brev occ|
|00002e00| 75 72 72 65 6e 63 65 20 | 69 6e 20 74 68 65 20 72 |urrence |in the r|
|00002e10| 65 67 69 6f 6e 2c 20 6f | 66 66 65 72 20 74 6f 20 |egion, o|ffer to |
|00002e20| 65 78 70 61 6e 64 20 69 | 74 2e 0a 54 68 65 20 75 |expand i|t..The u|
|00002e30| 73 65 72 20 69 73 20 61 | 73 6b 65 64 20 74 6f 20 |ser is a|sked to |
|00002e40| 74 79 70 65 20 79 20 6f | 72 20 6e 20 66 6f 72 20 |type y o|r n for |
|00002e50| 65 61 63 68 20 6f 63 63 | 75 72 72 65 6e 63 65 2e |each occ|urrence.|
|00002e60| 0a 41 20 6e 75 6d 65 72 | 69 63 20 61 72 67 75 6d |.A numer|ic argum|
|00002e70| 65 6e 74 20 6d 65 61 6e | 73 20 64 6f 6e 27 74 20 |ent mean|s don't |
|00002e80| 71 75 65 72 79 3b 20 65 | 78 70 61 6e 64 20 61 6c |query; e|xpand al|
|00002e90| 6c 20 61 62 62 72 65 76 | 73 2e 0a 43 61 6c 6c 69 |l abbrev|s..Calli|
|00002ea0| 6e 67 20 66 72 6f 6d 20 | 61 20 70 72 6f 67 72 61 |ng from |a progra|
|00002eb0| 6d 2c 20 61 72 67 75 6d | 65 6e 74 73 20 61 72 65 |m, argum|ents are|
|00002ec0| 20 53 54 41 52 54 20 45 | 4e 44 20 26 6f 70 74 69 | START E|ND &opti|
|00002ed0| 6f 6e 61 6c 20 4e 4f 51 | 55 45 52 59 2e 22 20 22 |onal NOQ|UERY." "|
|00002ee0| 72 5c 6e 50 22 5d 29 0a | |r\nP"]).| |
+--------+-------------------------+-------------------------+--------+--------+