home *** CD-ROM | disk | FTP | other *** search
Emacs Compiled Lisp | 1993-04-01 | 34.9 KB |
open in:
MacOS 8.1
|
Win98
|
DOS
view JSON data
|
view as text
This file was processed as: Emacs Compiled Lisp
(other/emacsCompiledLisp).
This format is not currently supported by dexvert.
Confidence | Program | Detection | Match Type | Support
|
---|
1%
| dexvert
| Emacs Compiled Lisp (other/emacsCompiledLisp)
| magic
| Unsupported |
1%
| dexvert
| Combustion 2 Particle Library (other/combustion2ParticleLibrary)
| ext
| Unsupported |
100%
| file
| Emacs/XEmacs v19 byte-compiled Lisp data
| default
| |
99%
| file
| data
| default
| |
100%
| TrID
| Emacs/XEmacs byte-compiled Lisp (generic)
| default
| |
100%
| xdgMime
| text/x-emacs-lisp
| default (weak)
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 3b 45 4c 43 13 00 00 00 | 0a 3b 3b 3b 20 63 6f 6d |;ELC....|.;;; com|
|00000010| 70 69 6c 65 64 20 62 79 | 20 6a 77 7a 40 74 68 61 |piled by| jwz@tha|
|00000020| 6c 69 64 6f 6d 69 64 65 | 20 6f 6e 20 57 65 64 20 |lidomide| on Wed |
|00000030| 46 65 62 20 31 37 20 30 | 31 3a 30 36 3a 30 39 20 |Feb 17 0|1:06:09 |
|00000040| 31 39 39 33 0a 3b 3b 3b | 20 66 72 6f 6d 20 66 69 |1993.;;;| from fi|
|00000050| 6c 65 20 2f 63 61 64 69 | 6c 6c 61 63 31 2f 63 6f |le /cadi|llac1/co|
|00000060| 64 65 2f 62 75 69 6c 64 | 2f 6c 65 6d 61 63 73 2f |de/build|/lemacs/|
|00000070| 6c 69 73 70 2f 70 72 69 | 6d 2f 66 69 6c 65 73 2e |lisp/pri|m/files.|
|00000080| 65 6c 0a 3b 3b 3b 20 65 | 6d 61 63 73 20 76 65 72 |el.;;; e|macs ver|
|00000090| 73 69 6f 6e 20 31 39 2e | 35 2e 31 20 4c 75 63 69 |sion 19.|5.1 Luci|
|000000a0| 64 2e 0a 3b 3b 3b 20 62 | 79 74 65 63 6f 6d 70 20 |d..;;; b|ytecomp |
|000000b0| 76 65 72 73 69 6f 6e 20 | 32 2e 31 30 3b 20 20 31 |version |2.10; 1|
|000000c0| 2d 66 65 62 2d 39 33 2e | 0a 3b 3b 3b 20 6f 70 74 |-feb-93.|.;;; opt|
|000000d0| 69 6d 69 7a 61 74 69 6f | 6e 20 69 73 20 6f 6e 2e |imizatio|n is on.|
|000000e0| 0a 3b 3b 3b 20 74 68 69 | 73 20 66 69 6c 65 20 75 |.;;; thi|s file u|
|000000f0| 73 65 73 20 6f 70 63 6f | 64 65 73 20 77 68 69 63 |ses opco|des whic|
|00000100| 68 20 64 6f 20 6e 6f 74 | 20 65 78 69 73 74 20 69 |h do not| exist i|
|00000110| 6e 20 45 6d 61 63 73 31 | 38 2e 0a 0a 28 69 66 20 |n Emacs1|8...(if |
|00000120| 28 61 6e 64 20 28 62 6f | 75 6e 64 70 20 27 65 6d |(and (bo|undp 'em|
|00000130| 61 63 73 2d 76 65 72 73 | 69 6f 6e 29 0a 09 20 28 |acs-vers|ion).. (|
|00000140| 6f 72 20 28 61 6e 64 20 | 28 62 6f 75 6e 64 70 20 |or (and |(boundp |
|00000150| 27 65 70 6f 63 68 3a 3a | 76 65 72 73 69 6f 6e 29 |'epoch::|version)|
|00000160| 20 65 70 6f 63 68 3a 3a | 76 65 72 73 69 6f 6e 29 | epoch::|version)|
|00000170| 0a 09 20 20 20 20 20 28 | 73 74 72 69 6e 67 2d 6c |.. (|string-l|
|00000180| 65 73 73 70 20 65 6d 61 | 63 73 2d 76 65 72 73 69 |essp ema|cs-versi|
|00000190| 6f 6e 20 22 31 39 22 29 | 29 29 0a 20 20 20 20 28 |on "19")|)). (|
|000001a0| 65 72 72 6f 72 20 22 54 | 68 69 73 20 66 69 6c 65 |error "T|his file|
|000001b0| 20 77 61 73 20 63 6f 6d | 70 69 6c 65 64 20 66 6f | was com|piled fo|
|000001c0| 72 20 45 6d 61 63 73 31 | 39 2e 22 29 29 0a 0a 28 |r Emacs1|9."))..(|
|000001d0| 64 65 66 63 6f 6e 73 74 | 20 64 65 6c 65 74 65 2d |defconst| delete-|
|000001e0| 61 75 74 6f 2d 73 61 76 | 65 2d 66 69 6c 65 73 20 |auto-sav|e-files |
|000001f0| 74 20 22 5c 0a 2a 4e 6f | 6e 2d 6e 69 6c 20 6d 65 |t "\.*No|n-nil me|
|00000200| 61 6e 73 20 64 65 6c 65 | 74 65 20 61 20 62 75 66 |ans dele|te a buf|
|00000210| 66 65 72 27 73 20 61 75 | 74 6f 2d 73 61 76 65 20 |fer's au|to-save |
|00000220| 66 69 6c 65 0a 77 68 65 | 6e 20 74 68 65 20 62 75 |file.whe|n the bu|
|00000230| 66 66 65 72 20 69 73 20 | 73 61 76 65 64 20 66 6f |ffer is |saved fo|
|00000240| 72 20 72 65 61 6c 2e 22 | 29 0a 28 64 65 66 63 6f |r real."|).(defco|
|00000250| 6e 73 74 20 6d 61 6b 65 | 2d 62 61 63 6b 75 70 2d |nst make|-backup-|
|00000260| 66 69 6c 65 73 20 28 62 | 79 74 65 2d 63 6f 64 65 |files (b|yte-code|
|00000270| 20 22 08 c1 3d 3f 87 22 | 20 5b 73 79 73 74 65 6d | "..=?."| [system|
|00000280| 2d 74 79 70 65 20 76 61 | 78 2d 76 6d 73 5d 20 32 |-type va|x-vms] 2|
|00000290| 29 20 22 5c 0a 2a 43 72 | 65 61 74 65 20 61 20 62 |) "\.*Cr|eate a b|
|000002a0| 61 63 6b 75 70 20 6f 66 | 20 65 61 63 68 20 66 69 |ackup of| each fi|
|000002b0| 6c 65 20 77 68 65 6e 20 | 69 74 20 69 73 20 73 61 |le when |it is sa|
|000002c0| 76 65 64 20 66 6f 72 20 | 74 68 65 20 66 69 72 73 |ved for |the firs|
|000002d0| 74 20 74 69 6d 65 2e 0a | 54 68 69 73 20 63 61 6e |t time..|This can|
|000002e0| 20 62 65 20 64 6f 6e 65 | 20 62 79 20 72 65 6e 61 | be done| by rena|
|000002f0| 6d 69 6e 67 20 74 68 65 | 20 66 69 6c 65 20 6f 72 |ming the| file or|
|00000300| 20 62 79 20 63 6f 70 79 | 69 6e 67 2e 0a 0a 52 65 | by copy|ing...Re|
|00000310| 6e 61 6d 69 6e 67 20 6d | 65 61 6e 73 20 74 68 61 |naming m|eans tha|
|00000320| 74 20 45 6d 61 63 73 20 | 72 65 6e 61 6d 65 73 20 |t Emacs |renames |
|00000330| 74 68 65 20 65 78 69 73 | 74 69 6e 67 20 66 69 6c |the exis|ting fil|
|00000340| 65 20 73 6f 20 74 68 61 | 74 20 69 74 20 69 73 20 |e so tha|t it is |
|00000350| 61 0a 62 61 63 6b 75 70 | 20 66 69 6c 65 2c 20 74 |a.backup| file, t|
|00000360| 68 65 6e 20 77 72 69 74 | 65 73 20 74 68 65 20 62 |hen writ|es the b|
|00000370| 75 66 66 65 72 20 69 6e | 74 6f 20 61 20 6e 65 77 |uffer in|to a new|
|00000380| 20 66 69 6c 65 2e 20 20 | 41 6e 79 20 6f 74 68 65 | file. |Any othe|
|00000390| 72 20 6e 61 6d 65 73 0a | 74 68 61 74 20 74 68 65 |r names.|that the|
|000003a0| 20 6f 6c 64 20 66 69 6c | 65 20 68 61 64 20 77 69 | old fil|e had wi|
|000003b0| 6c 6c 20 6e 6f 77 20 72 | 65 66 65 72 20 74 6f 20 |ll now r|efer to |
|000003c0| 74 68 65 20 62 61 63 6b | 75 70 20 66 69 6c 65 2e |the back|up file.|
|000003d0| 0a 54 68 65 20 6e 65 77 | 20 66 69 6c 65 20 69 73 |.The new| file is|
|000003e0| 20 6f 77 6e 65 64 20 62 | 79 20 79 6f 75 20 61 6e | owned b|y you an|
|000003f0| 64 20 69 74 73 20 67 72 | 6f 75 70 20 69 73 20 64 |d its gr|oup is d|
|00000400| 65 66 61 75 6c 74 65 64 | 2e 0a 0a 43 6f 70 79 69 |efaulted|...Copyi|
|00000410| 6e 67 20 6d 65 61 6e 73 | 20 74 68 61 74 20 45 6d |ng means| that Em|
|00000420| 61 63 73 20 63 6f 70 69 | 65 73 20 74 68 65 20 65 |acs copi|es the e|
|00000430| 78 69 73 74 69 6e 67 20 | 66 69 6c 65 20 69 6e 74 |xisting |file int|
|00000440| 6f 20 74 68 65 20 62 61 | 63 6b 75 70 20 66 69 6c |o the ba|ckup fil|
|00000450| 65 2c 0a 74 68 65 6e 20 | 77 72 69 74 65 73 20 74 |e,.then |writes t|
|00000460| 68 65 20 62 75 66 66 65 | 72 20 6f 6e 20 74 6f 70 |he buffe|r on top|
|00000470| 20 6f 66 20 74 68 65 20 | 65 78 69 73 74 69 6e 67 | of the |existing|
|00000480| 20 66 69 6c 65 2e 20 20 | 41 6e 79 20 6f 74 68 65 | file. |Any othe|
|00000490| 72 20 6e 61 6d 65 73 0a | 74 68 61 74 20 74 68 65 |r names.|that the|
|000004a0| 20 6f 6c 64 20 66 69 6c | 65 20 68 61 64 20 77 69 | old fil|e had wi|
|000004b0| 6c 6c 20 6e 6f 77 20 72 | 65 66 65 72 20 74 6f 20 |ll now r|efer to |
|000004c0| 74 68 65 20 6e 65 77 20 | 28 65 64 69 74 65 64 29 |the new |(edited)|
|000004d0| 20 66 69 6c 65 2e 0a 54 | 68 65 20 66 69 6c 65 27 | file..T|he file'|
|000004e0| 73 20 6f 77 6e 65 72 20 | 61 6e 64 20 67 72 6f 75 |s owner |and grou|
|000004f0| 70 20 61 72 65 20 75 6e | 63 68 61 6e 67 65 64 2e |p are un|changed.|
|00000500| 0a 0a 54 68 65 20 63 68 | 6f 69 63 65 20 6f 66 20 |..The ch|oice of |
|00000510| 72 65 6e 61 6d 69 6e 67 | 20 6f 72 20 63 6f 70 79 |renaming| or copy|
|00000520| 69 6e 67 20 69 73 20 63 | 6f 6e 74 72 6f 6c 6c 65 |ing is c|ontrolle|
|00000530| 64 20 62 79 20 74 68 65 | 20 76 61 72 69 61 62 6c |d by the| variabl|
|00000540| 65 73 0a 62 61 63 6b 75 | 70 2d 62 79 2d 63 6f 70 |es.backu|p-by-cop|
|00000550| 79 69 6e 67 2c 20 62 61 | 63 6b 75 70 2d 62 79 2d |ying, ba|ckup-by-|
|00000560| 63 6f 70 79 69 6e 67 2d | 77 68 65 6e 2d 6c 69 6e |copying-|when-lin|
|00000570| 6b 65 64 20 61 6e 64 0a | 62 61 63 6b 75 70 2d 62 |ked and.|backup-b|
|00000580| 79 2d 63 6f 70 79 69 6e | 67 2d 77 68 65 6e 2d 6d |y-copyin|g-when-m|
|00000590| 69 73 6d 61 74 63 68 2e | 22 29 0a 28 64 65 66 63 |ismatch.|").(defc|
|000005a0| 6f 6e 73 74 20 62 61 63 | 6b 75 70 2d 62 79 2d 63 |onst bac|kup-by-c|
|000005b0| 6f 70 79 69 6e 67 20 6e | 69 6c 20 22 5c 0a 2a 4e |opying n|il "\.*N|
|000005c0| 6f 6e 2d 6e 69 6c 20 6d | 65 61 6e 73 20 61 6c 77 |on-nil m|eans alw|
|000005d0| 61 79 73 20 75 73 65 20 | 63 6f 70 79 69 6e 67 20 |ays use |copying |
|000005e0| 74 6f 20 63 72 65 61 74 | 65 20 62 61 63 6b 75 70 |to creat|e backup|
|000005f0| 20 66 69 6c 65 73 2e 0a | 53 65 65 20 64 6f 63 75 | files..|See docu|
|00000600| 6d 65 6e 74 61 74 69 6f | 6e 20 6f 66 20 76 61 72 |mentatio|n of var|
|00000610| 69 61 62 6c 65 20 20 6d | 61 6b 65 2d 62 61 63 6b |iable m|ake-back|
|00000620| 75 70 2d 66 69 6c 65 73 | 2e 22 29 0a 28 64 65 66 |up-files|.").(def|
|00000630| 63 6f 6e 73 74 20 62 61 | 63 6b 75 70 2d 62 79 2d |const ba|ckup-by-|
|00000640| 63 6f 70 79 69 6e 67 2d | 77 68 65 6e 2d 6c 69 6e |copying-|when-lin|
|00000650| 6b 65 64 20 6e 69 6c 20 | 22 5c 0a 2a 4e 6f 6e 2d |ked nil |"\.*Non-|
|00000660| 6e 69 6c 20 6d 65 61 6e | 73 20 75 73 65 20 63 6f |nil mean|s use co|
|00000670| 70 79 69 6e 67 20 74 6f | 20 63 72 65 61 74 65 20 |pying to| create |
|00000680| 62 61 63 6b 75 70 73 20 | 66 6f 72 20 66 69 6c 65 |backups |for file|
|00000690| 73 20 77 69 74 68 20 6d | 75 6c 74 69 70 6c 65 20 |s with m|ultiple |
|000006a0| 6e 61 6d 65 73 2e 0a 54 | 68 69 73 20 63 61 75 73 |names..T|his caus|
|000006b0| 65 73 20 74 68 65 20 61 | 6c 74 65 72 6e 61 74 65 |es the a|lternate|
|000006c0| 20 6e 61 6d 65 73 20 74 | 6f 20 72 65 66 65 72 20 | names t|o refer |
|000006d0| 74 6f 20 74 68 65 20 6c | 61 74 65 73 74 20 76 65 |to the l|atest ve|
|000006e0| 72 73 69 6f 6e 20 61 73 | 20 65 64 69 74 65 64 2e |rsion as| edited.|
|000006f0| 0a 54 68 69 73 20 76 61 | 72 69 61 62 6c 65 20 69 |.This va|riable i|
|00000700| 73 20 72 65 6c 65 76 61 | 6e 74 20 6f 6e 6c 79 20 |s releva|nt only |
|00000710| 69 66 20 20 62 61 63 6b | 75 70 2d 62 79 2d 63 6f |if back|up-by-co|
|00000720| 70 79 69 6e 67 20 20 69 | 73 20 6e 69 6c 2e 22 29 |pying i|s nil.")|
|00000730| 0a 28 64 65 66 63 6f 6e | 73 74 20 62 61 63 6b 75 |.(defcon|st backu|
|00000740| 70 2d 62 79 2d 63 6f 70 | 79 69 6e 67 2d 77 68 65 |p-by-cop|ying-whe|
|00000750| 6e 2d 6d 69 73 6d 61 74 | 63 68 20 6e 69 6c 20 22 |n-mismat|ch nil "|
|00000760| 5c 0a 2a 4e 6f 6e 2d 6e | 69 6c 20 6d 65 61 6e 73 |\.*Non-n|il means|
|00000770| 20 63 72 65 61 74 65 20 | 62 61 63 6b 75 70 73 20 | create |backups |
|00000780| 62 79 20 63 6f 70 79 69 | 6e 67 20 69 66 20 74 68 |by copyi|ng if th|
|00000790| 69 73 20 70 72 65 73 65 | 72 76 65 73 20 6f 77 6e |is prese|rves own|
|000007a0| 65 72 20 6f 72 20 67 72 | 6f 75 70 2e 0a 52 65 6e |er or gr|oup..Ren|
|000007b0| 61 6d 69 6e 67 20 6d 61 | 79 20 73 74 69 6c 6c 20 |aming ma|y still |
|000007c0| 62 65 20 75 73 65 64 20 | 28 73 75 62 6a 65 63 74 |be used |(subject|
|000007d0| 20 74 6f 20 63 6f 6e 74 | 72 6f 6c 20 6f 66 20 6f | to cont|rol of o|
|000007e0| 74 68 65 72 20 76 61 72 | 69 61 62 6c 65 73 29 0a |ther var|iables).|
|000007f0| 77 68 65 6e 20 69 74 20 | 77 6f 75 6c 64 20 6e 6f |when it |would no|
|00000800| 74 20 72 65 73 75 6c 74 | 20 69 6e 20 63 68 61 6e |t result| in chan|
|00000810| 67 69 6e 67 20 74 68 65 | 20 6f 77 6e 65 72 20 6f |ging the| owner o|
|00000820| 72 20 67 72 6f 75 70 20 | 6f 66 20 74 68 65 20 66 |r group |of the f|
|00000830| 69 6c 65 3b 0a 74 68 61 | 74 20 69 73 2c 20 66 6f |ile;.tha|t is, fo|
|00000840| 72 20 66 69 6c 65 73 20 | 77 68 69 63 68 20 61 72 |r files |which ar|
|00000850| 65 20 6f 77 6e 65 64 20 | 62 79 20 79 6f 75 20 61 |e owned |by you a|
|00000860| 6e 64 20 77 68 6f 73 65 | 20 67 72 6f 75 70 20 6d |nd whose| group m|
|00000870| 61 74 63 68 65 73 0a 74 | 68 65 20 64 65 66 61 75 |atches.t|he defau|
|00000880| 6c 74 20 66 6f 72 20 61 | 20 6e 65 77 20 66 69 6c |lt for a| new fil|
|00000890| 65 20 63 72 65 61 74 65 | 64 20 74 68 65 72 65 20 |e create|d there |
|000008a0| 62 79 20 79 6f 75 2e 0a | 54 68 69 73 20 76 61 72 |by you..|This var|
|000008b0| 69 61 62 6c 65 20 69 73 | 20 72 65 6c 65 76 61 6e |iable is| relevan|
|000008c0| 74 20 6f 6e 6c 79 20 69 | 66 20 20 62 61 63 6b 75 |t only i|f backu|
|000008d0| 70 2d 62 79 2d 63 6f 70 | 79 69 6e 67 20 20 69 73 |p-by-cop|ying is|
|000008e0| 20 6e 69 6c 2e 22 29 0a | 28 64 65 66 63 6f 6e 73 | nil.").|(defcons|
|000008f0| 74 20 62 75 66 66 65 72 | 2d 6f 66 66 65 72 2d 73 |t buffer|-offer-s|
|00000900| 61 76 65 20 6e 69 6c 20 | 22 5c 0a 2a 4e 6f 6e 2d |ave nil |"\.*Non-|
|00000910| 6e 69 6c 20 69 6e 20 61 | 20 62 75 66 66 65 72 20 |nil in a| buffer |
|00000920| 6d 65 61 6e 73 20 6f 66 | 66 65 72 20 74 6f 20 73 |means of|fer to s|
|00000930| 61 76 65 20 74 68 65 20 | 62 75 66 66 65 72 20 6f |ave the |buffer o|
|00000940| 6e 20 65 78 69 74 0a 65 | 76 65 6e 20 69 66 20 74 |n exit.e|ven if t|
|00000950| 68 65 20 62 75 66 66 65 | 72 20 69 73 20 6e 6f 74 |he buffe|r is not|
|00000960| 20 76 69 73 69 74 69 6e | 67 20 61 20 66 69 6c 65 | visitin|g a file|
|00000970| 2e 20 20 41 75 74 6f 6d | 61 74 69 63 61 6c 6c 79 |. Autom|atically|
|00000980| 20 6c 6f 63 61 6c 20 69 | 6e 0a 61 6c 6c 20 62 75 | local i|n.all bu|
|00000990| 66 66 65 72 73 2e 22 29 | 0a 28 6d 61 6b 65 2d 76 |ffers.")|.(make-v|
|000009a0| 61 72 69 61 62 6c 65 2d | 62 75 66 66 65 72 2d 6c |ariable-|buffer-l|
|000009b0| 6f 63 61 6c 20 27 62 75 | 66 66 65 72 2d 6f 66 66 |ocal 'bu|ffer-off|
|000009c0| 65 72 2d 73 61 76 65 29 | 0a 28 64 65 66 63 6f 6e |er-save)|.(defcon|
|000009d0| 73 74 20 66 69 6c 65 2d | 70 72 65 63 69 6f 75 73 |st file-|precious|
|000009e0| 2d 66 6c 61 67 20 6e 69 | 6c 20 22 5c 0a 2a 4e 6f |-flag ni|l "\.*No|
|000009f0| 6e 2d 6e 69 6c 20 6d 65 | 61 6e 73 20 70 72 6f 74 |n-nil me|ans prot|
|00000a00| 65 63 74 20 61 67 61 69 | 6e 73 74 20 49 2f 4f 20 |ect agai|nst I/O |
|00000a10| 65 72 72 6f 72 73 20 77 | 68 69 6c 65 20 73 61 76 |errors w|hile sav|
|00000a20| 69 6e 67 20 66 69 6c 65 | 73 2e 0a 53 6f 6d 65 20 |ing file|s..Some |
|00000a30| 6d 6f 64 65 73 20 73 65 | 74 20 74 68 69 73 20 6e |modes se|t this n|
|00000a40| 6f 6e 2d 6e 69 6c 20 69 | 6e 20 70 61 72 74 69 63 |on-nil i|n partic|
|00000a50| 75 6c 61 72 20 62 75 66 | 66 65 72 73 2e 22 29 0a |ular buf|fers.").|
|00000a60| 28 64 65 66 76 61 72 20 | 76 65 72 73 69 6f 6e 2d |(defvar |version-|
|00000a70| 63 6f 6e 74 72 6f 6c 20 | 6e 69 6c 20 22 5c 0a 2a |control |nil "\.*|
|00000a80| 43 6f 6e 74 72 6f 6c 20 | 75 73 65 20 6f 66 20 76 |Control |use of v|
|00000a90| 65 72 73 69 6f 6e 20 6e | 75 6d 62 65 72 73 20 66 |ersion n|umbers f|
|00000aa0| 6f 72 20 62 61 63 6b 75 | 70 20 66 69 6c 65 73 2e |or backu|p files.|
|00000ab0| 0a 74 20 6d 65 61 6e 73 | 20 6d 61 6b 65 20 6e 75 |.t means| make nu|
|00000ac0| 6d 65 72 69 63 20 62 61 | 63 6b 75 70 20 76 65 72 |meric ba|ckup ver|
|00000ad0| 73 69 6f 6e 73 20 75 6e | 63 6f 6e 64 69 74 69 6f |sions un|conditio|
|00000ae0| 6e 61 6c 6c 79 2e 0a 6e | 69 6c 20 6d 65 61 6e 73 |nally..n|il means|
|00000af0| 20 6d 61 6b 65 20 74 68 | 65 6d 20 66 6f 72 20 66 | make th|em for f|
|00000b00| 69 6c 65 73 20 74 68 61 | 74 20 68 61 76 65 20 73 |iles tha|t have s|
|00000b10| 6f 6d 65 20 61 6c 72 65 | 61 64 79 2e 0a 6e 65 76 |ome alre|ady..nev|
|00000b20| 65 72 20 6d 65 61 6e 73 | 20 64 6f 20 6e 6f 74 20 |er means| do not |
|00000b30| 6d 61 6b 65 20 74 68 65 | 6d 2e 22 29 0a 28 64 65 |make the|m.").(de|
|00000b40| 66 76 61 72 20 64 69 72 | 65 64 2d 6b 65 70 74 2d |fvar dir|ed-kept-|
|00000b50| 76 65 72 73 69 6f 6e 73 | 20 32 20 22 5c 0a 2a 57 |versions| 2 "\.*W|
|00000b60| 68 65 6e 20 63 6c 65 61 | 6e 69 6e 67 20 64 69 72 |hen clea|ning dir|
|00000b70| 65 63 74 6f 72 79 2c 20 | 6e 75 6d 62 65 72 20 6f |ectory, |number o|
|00000b80| 66 20 76 65 72 73 69 6f | 6e 73 20 74 6f 20 6b 65 |f versio|ns to ke|
|00000b90| 65 70 2e 22 29 0a 28 64 | 65 66 76 61 72 20 74 72 |ep.").(d|efvar tr|
|00000ba0| 69 6d 2d 76 65 72 73 69 | 6f 6e 73 2d 77 69 74 68 |im-versi|ons-with|
|00000bb0| 6f 75 74 2d 61 73 6b 69 | 6e 67 20 6e 69 6c 20 22 |out-aski|ng nil "|
|00000bc0| 5c 0a 2a 49 66 20 74 72 | 75 65 2c 20 64 65 6c 65 |\.*If tr|ue, dele|
|00000bd0| 74 65 73 20 65 78 63 65 | 73 73 20 62 61 63 6b 75 |tes exce|ss backu|
|00000be0| 70 20 76 65 72 73 69 6f | 6e 73 20 73 69 6c 65 6e |p versio|ns silen|
|00000bf0| 74 6c 79 2e 0a 4f 74 68 | 65 72 77 69 73 65 20 61 |tly..Oth|erwise a|
|00000c00| 73 6b 73 20 63 6f 6e 66 | 69 72 6d 61 74 69 6f 6e |sks conf|irmation|
|00000c10| 2e 22 29 0a 28 64 65 66 | 76 61 72 20 6b 65 70 74 |.").(def|var kept|
|00000c20| 2d 6f 6c 64 2d 76 65 72 | 73 69 6f 6e 73 20 32 20 |-old-ver|sions 2 |
|00000c30| 22 5c 0a 2a 4e 75 6d 62 | 65 72 20 6f 66 20 6f 6c |"\.*Numb|er of ol|
|00000c40| 64 65 73 74 20 76 65 72 | 73 69 6f 6e 73 20 74 6f |dest ver|sions to|
|00000c50| 20 6b 65 65 70 20 77 68 | 65 6e 20 61 20 6e 65 77 | keep wh|en a new|
|00000c60| 20 6e 75 6d 62 65 72 65 | 64 20 62 61 63 6b 75 70 | numbere|d backup|
|00000c70| 20 69 73 20 6d 61 64 65 | 2e 22 29 0a 28 64 65 66 | is made|.").(def|
|00000c80| 76 61 72 20 6b 65 70 74 | 2d 6e 65 77 2d 76 65 72 |var kept|-new-ver|
|00000c90| 73 69 6f 6e 73 20 32 20 | 22 5c 0a 2a 4e 75 6d 62 |sions 2 |"\.*Numb|
|00000ca0| 65 72 20 6f 66 20 6e 65 | 77 65 73 74 20 76 65 72 |er of ne|west ver|
|00000cb0| 73 69 6f 6e 73 20 74 6f | 20 6b 65 65 70 20 77 68 |sions to| keep wh|
|00000cc0| 65 6e 20 61 20 6e 65 77 | 20 6e 75 6d 62 65 72 65 |en a new| numbere|
|00000cd0| 64 20 62 61 63 6b 75 70 | 20 69 73 20 6d 61 64 65 |d backup| is made|
|00000ce0| 2e 0a 49 6e 63 6c 75 64 | 65 73 20 74 68 65 20 6e |..Includ|es the n|
|00000cf0| 65 77 20 62 61 63 6b 75 | 70 2e 20 20 4d 75 73 74 |ew backu|p. Must|
|00000d00| 20 62 65 20 3e 20 30 22 | 29 0a 28 64 65 66 63 6f | be > 0"|).(defco|
|00000d10| 6e 73 74 20 72 65 71 75 | 69 72 65 2d 66 69 6e 61 |nst requ|ire-fina|
|00000d20| 6c 2d 6e 65 77 6c 69 6e | 65 20 6e 69 6c 20 22 5c |l-newlin|e nil "\|
|00000d30| 0a 2a 56 61 6c 75 65 20 | 6f 66 20 74 20 73 61 79 |.*Value |of t say|
|00000d40| 73 20 73 69 6c 65 6e 74 | 6c 79 20 65 6e 73 75 72 |s silent|ly ensur|
|00000d50| 65 20 61 20 66 69 6c 65 | 20 65 6e 64 73 20 69 6e |e a file| ends in|
|00000d60| 20 61 20 6e 65 77 6c 69 | 6e 65 20 77 68 65 6e 20 | a newli|ne when |
|00000d70| 69 74 20 69 73 20 73 61 | 76 65 64 2e 0a 4e 6f 6e |it is sa|ved..Non|
|00000d80| 2d 6e 69 6c 20 62 75 74 | 20 6e 6f 74 20 74 20 73 |-nil but| not t s|
|00000d90| 61 79 73 20 61 73 6b 20 | 75 73 65 72 20 77 68 65 |ays ask |user whe|
|00000da0| 74 68 65 72 20 74 6f 20 | 61 64 64 20 61 20 6e 65 |ther to |add a ne|
|00000db0| 77 6c 69 6e 65 20 77 68 | 65 6e 20 74 68 65 72 65 |wline wh|en there|
|00000dc0| 20 69 73 6e 27 74 20 6f | 6e 65 2e 0a 6e 69 6c 20 | isn't o|ne..nil |
|00000dd0| 6d 65 61 6e 73 20 64 6f | 6e 27 74 20 61 64 64 20 |means do|n't add |
|00000de0| 6e 65 77 6c 69 6e 65 73 | 2e 22 29 0a 28 64 65 66 |newlines|.").(def|
|00000df0| 63 6f 6e 73 74 20 61 75 | 74 6f 2d 73 61 76 65 2d |const au|to-save-|
|00000e00| 64 65 66 61 75 6c 74 20 | 74 20 22 5c 0a 2a 4e 6f |default |t "\.*No|
|00000e10| 6e 2d 6e 69 6c 20 73 61 | 79 73 20 62 79 20 64 65 |n-nil sa|ys by de|
|00000e20| 66 61 75 6c 74 20 64 6f | 20 61 75 74 6f 2d 73 61 |fault do| auto-sa|
|00000e30| 76 69 6e 67 20 6f 66 20 | 65 76 65 72 79 20 66 69 |ving of |every fi|
|00000e40| 6c 65 2d 76 69 73 69 74 | 69 6e 67 20 62 75 66 66 |le-visit|ing buff|
|00000e50| 65 72 2e 22 29 0a 28 64 | 65 66 63 6f 6e 73 74 20 |er.").(d|efconst |
|00000e60| 61 75 74 6f 2d 73 61 76 | 65 2d 76 69 73 69 74 65 |auto-sav|e-visite|
|00000e70| 64 2d 66 69 6c 65 2d 6e | 61 6d 65 20 6e 69 6c 20 |d-file-n|ame nil |
|00000e80| 22 5c 0a 2a 4e 6f 6e 2d | 6e 69 6c 20 73 61 79 73 |"\.*Non-|nil says|
|00000e90| 20 61 75 74 6f 2d 73 61 | 76 65 20 61 20 62 75 66 | auto-sa|ve a buf|
|00000ea0| 66 65 72 20 69 6e 20 74 | 68 65 20 66 69 6c 65 20 |fer in t|he file |
|00000eb0| 69 74 20 69 73 20 76 69 | 73 69 74 69 6e 67 2c 20 |it is vi|siting, |
|00000ec0| 77 68 65 6e 20 70 72 61 | 63 74 69 63 61 6c 2e 0a |when pra|ctical..|
|00000ed0| 4e 6f 72 6d 61 6c 6c 79 | 20 61 75 74 6f 2d 73 61 |Normally| auto-sa|
|00000ee0| 76 65 20 66 69 6c 65 73 | 20 61 72 65 20 77 72 69 |ve files| are wri|
|00000ef0| 74 74 65 6e 20 75 6e 64 | 65 72 20 6f 74 68 65 72 |tten und|er other|
|00000f00| 20 6e 61 6d 65 73 2e 22 | 29 0a 28 64 65 66 63 6f | names."|).(defco|
|00000f10| 6e 73 74 20 73 61 76 65 | 2d 61 62 62 72 65 76 73 |nst save|-abbrevs|
|00000f20| 20 6e 69 6c 20 22 5c 0a | 2a 4e 6f 6e 2d 6e 69 6c | nil "\.|*Non-nil|
|00000f30| 20 6d 65 61 6e 73 20 73 | 61 76 65 20 77 6f 72 64 | means s|ave word|
|00000f40| 20 61 62 62 72 65 76 73 | 20 74 6f 6f 20 77 68 65 | abbrevs| too whe|
|00000f50| 6e 20 66 69 6c 65 73 20 | 61 72 65 20 73 61 76 65 |n files |are save|
|00000f60| 64 2e 0a 4c 6f 61 64 69 | 6e 67 20 61 6e 20 61 62 |d..Loadi|ng an ab|
|00000f70| 62 72 65 76 20 66 69 6c | 65 20 73 65 74 73 20 74 |brev fil|e sets t|
|00000f80| 68 69 73 20 74 6f 20 74 | 2e 22 29 0a 28 64 65 66 |his to t|.").(def|
|00000f90| 63 6f 6e 73 74 20 66 69 | 6e 64 2d 66 69 6c 65 2d |const fi|nd-file-|
|00000fa0| 72 75 6e 2d 64 69 72 65 | 64 20 74 20 22 5c 0a 2a |run-dire|d t "\.*|
|00000fb0| 4e 6f 6e 2d 6e 69 6c 20 | 73 61 79 73 20 72 75 6e |Non-nil |says run|
|00000fc0| 20 64 69 72 65 64 20 69 | 66 20 66 69 6e 64 2d 66 | dired i|f find-f|
|00000fd0| 69 6c 65 20 69 73 20 67 | 69 76 65 6e 20 74 68 65 |ile is g|iven the|
|00000fe0| 20 6e 61 6d 65 20 6f 66 | 20 61 20 64 69 72 65 63 | name of| a direc|
|00000ff0| 74 6f 72 79 2e 22 29 0a | 28 70 75 74 20 27 66 69 |tory.").|(put 'fi|
|00001000| 6e 64 2d 66 69 6c 65 2d | 6e 6f 74 2d 66 6f 75 6e |nd-file-|not-foun|
|00001010| 64 2d 68 6f 6f 6b 73 20 | 27 70 65 72 6d 61 6e 65 |d-hooks |'permane|
|00001020| 6e 74 2d 6c 6f 63 61 6c | 20 74 29 0a 28 64 65 66 |nt-local| t).(def|
|00001030| 76 61 72 20 66 69 6e 64 | 2d 66 69 6c 65 2d 6e 6f |var find|-file-no|
|00001040| 74 2d 66 6f 75 6e 64 2d | 68 6f 6f 6b 73 20 6e 69 |t-found-|hooks ni|
|00001050| 6c 20 22 5c 0a 4c 69 73 | 74 20 6f 66 20 66 75 6e |l "\.Lis|t of fun|
|00001060| 63 74 69 6f 6e 73 20 74 | 6f 20 62 65 20 63 61 6c |ctions t|o be cal|
|00001070| 6c 65 64 20 66 6f 72 20 | 66 69 6e 64 2d 66 69 6c |led for |find-fil|
|00001080| 65 20 6f 6e 20 6e 6f 6e | 65 78 69 73 74 65 6e 74 |e on non|existent|
|00001090| 20 66 69 6c 65 2e 0a 54 | 68 65 73 65 20 66 75 6e | file..T|hese fun|
|000010a0| 63 74 69 6f 6e 73 20 61 | 72 65 20 63 61 6c 6c 65 |ctions a|re calle|
|000010b0| 64 20 61 73 20 73 6f 6f | 6e 20 61 73 20 74 68 65 |d as soo|n as the|
|000010c0| 20 65 72 72 6f 72 20 69 | 73 20 64 65 74 65 63 74 | error i|s detect|
|000010d0| 65 64 2e 0a 62 75 66 66 | 65 72 2d 66 69 6c 65 2d |ed..buff|er-file-|
|000010e0| 6e 61 6d 65 20 69 73 20 | 61 6c 72 65 61 64 79 20 |name is |already |
|000010f0| 73 65 74 20 75 70 2e 0a | 54 68 65 20 66 75 6e 63 |set up..|The func|
|00001100| 74 69 6f 6e 73 20 61 72 | 65 20 63 61 6c 6c 65 64 |tions ar|e called|
|00001110| 20 69 6e 20 74 68 65 20 | 6f 72 64 65 72 20 67 69 | in the |order gi|
|00001120| 76 65 6e 2c 0a 75 6e 74 | 69 6c 20 6f 6e 65 20 6f |ven,.unt|il one o|
|00001130| 66 20 74 68 65 6d 20 72 | 65 74 75 72 6e 73 20 6e |f them r|eturns n|
|00001140| 6f 6e 2d 6e 69 6c 2e 22 | 29 0a 28 70 75 74 20 27 |on-nil."|).(put '|
|00001150| 66 69 6e 64 2d 66 69 6c | 65 2d 68 6f 6f 6b 73 20 |find-fil|e-hooks |
|00001160| 27 70 65 72 6d 61 6e 65 | 6e 74 2d 6c 6f 63 61 6c |'permane|nt-local|
|00001170| 20 74 29 0a 28 64 65 66 | 76 61 72 20 66 69 6e 64 | t).(def|var find|
|00001180| 2d 66 69 6c 65 2d 68 6f | 6f 6b 73 20 6e 69 6c 20 |-file-ho|oks nil |
|00001190| 22 5c 0a 4c 69 73 74 20 | 6f 66 20 66 75 6e 63 74 |"\.List |of funct|
|000011a0| 69 6f 6e 73 20 74 6f 20 | 62 65 20 63 61 6c 6c 65 |ions to |be calle|
|000011b0| 64 20 61 66 74 65 72 20 | 61 20 62 75 66 66 65 72 |d after |a buffer|
|000011c0| 20 69 73 20 6c 6f 61 64 | 65 64 20 66 72 6f 6d 20 | is load|ed from |
|000011d0| 61 20 66 69 6c 65 2e 0a | 54 68 65 20 62 75 66 66 |a file..|The buff|
|000011e0| 65 72 27 73 20 6c 6f 63 | 61 6c 20 76 61 72 69 61 |er's loc|al varia|
|000011f0| 62 6c 65 73 20 28 69 66 | 20 61 6e 79 29 20 77 69 |bles (if| any) wi|
|00001200| 6c 6c 20 68 61 76 65 20 | 62 65 65 6e 20 70 72 6f |ll have |been pro|
|00001210| 63 65 73 73 65 64 20 62 | 65 66 6f 72 65 20 74 68 |cessed b|efore th|
|00001220| 65 0a 66 75 6e 63 74 69 | 6f 6e 73 20 61 72 65 20 |e.functi|ons are |
|00001230| 63 61 6c 6c 65 64 2e 22 | 29 0a 28 70 75 74 20 27 |called."|).(put '|
|00001240| 77 72 69 74 65 2d 66 69 | 6c 65 2d 68 6f 6f 6b 73 |write-fi|le-hooks|
|00001250| 20 27 70 65 72 6d 61 6e | 65 6e 74 2d 6c 6f 63 61 | 'perman|ent-loca|
|00001260| 6c 20 74 29 0a 28 64 65 | 66 76 61 72 20 77 72 69 |l t).(de|fvar wri|
|00001270| 74 65 2d 66 69 6c 65 2d | 68 6f 6f 6b 73 20 6e 69 |te-file-|hooks ni|
|00001280| 6c 20 22 5c 0a 4c 69 73 | 74 20 6f 66 20 66 75 6e |l "\.Lis|t of fun|
|00001290| 63 74 69 6f 6e 73 20 74 | 6f 20 62 65 20 63 61 6c |ctions t|o be cal|
|000012a0| 6c 65 64 20 62 65 66 6f | 72 65 20 77 72 69 74 69 |led befo|re writi|
|000012b0| 6e 67 20 6f 75 74 20 61 | 20 62 75 66 66 65 72 20 |ng out a| buffer |
|000012c0| 74 6f 20 61 20 66 69 6c | 65 2e 0a 49 66 20 6f 6e |to a fil|e..If on|
|000012d0| 65 20 6f 66 20 74 68 65 | 6d 20 72 65 74 75 72 6e |e of the|m return|
|000012e0| 73 20 6e 6f 6e 2d 6e 69 | 6c 2c 20 74 68 65 20 66 |s non-ni|l, the f|
|000012f0| 69 6c 65 20 69 73 20 63 | 6f 6e 73 69 64 65 72 65 |ile is c|onsidere|
|00001300| 64 20 61 6c 72 65 61 64 | 79 20 77 72 69 74 74 65 |d alread|y writte|
|00001310| 6e 0a 61 6e 64 20 74 68 | 65 20 72 65 73 74 20 61 |n.and th|e rest a|
|00001320| 72 65 20 6e 6f 74 20 63 | 61 6c 6c 65 64 2e 0a 54 |re not c|alled..T|
|00001330| 68 65 73 65 20 68 6f 6f | 6b 73 20 61 72 65 20 63 |hese hoo|ks are c|
|00001340| 6f 6e 73 69 64 65 72 65 | 64 20 74 6f 20 70 65 72 |onsidere|d to per|
|00001350| 74 61 69 6e 20 74 6f 20 | 74 68 65 20 76 69 73 69 |tain to |the visi|
|00001360| 74 65 64 20 66 69 6c 65 | 2e 0a 53 6f 20 74 68 69 |ted file|..So thi|
|00001370| 73 20 6c 69 73 74 20 69 | 73 20 63 6c 65 61 72 65 |s list i|s cleare|
|00001380| 64 20 69 66 20 79 6f 75 | 20 63 68 61 6e 67 65 20 |d if you| change |
|00001390| 74 68 65 20 76 69 73 69 | 74 65 64 20 66 69 6c 65 |the visi|ted file|
|000013a0| 20 6e 61 6d 65 2e 0a 53 | 65 65 20 61 6c 73 6f 20 | name..S|ee also |
|000013b0| 60 77 72 69 74 65 2d 63 | 6f 6e 74 65 6e 74 73 2d |`write-c|ontents-|
|000013c0| 68 6f 6f 6b 73 27 2e 22 | 29 0a 28 64 65 66 76 61 |hooks'."|).(defva|
|000013d0| 72 20 77 72 69 74 65 2d | 63 6f 6e 74 65 6e 74 73 |r write-|contents|
|000013e0| 2d 68 6f 6f 6b 73 20 6e | 69 6c 20 22 5c 0a 4c 69 |-hooks n|il "\.Li|
|000013f0| 73 74 20 6f 66 20 66 75 | 6e 63 74 69 6f 6e 73 20 |st of fu|nctions |
|00001400| 74 6f 20 62 65 20 63 61 | 6c 6c 65 64 20 62 65 66 |to be ca|lled bef|
|00001410| 6f 72 65 20 77 72 69 74 | 69 6e 67 20 6f 75 74 20 |ore writ|ing out |
|00001420| 61 20 62 75 66 66 65 72 | 20 74 6f 20 61 20 66 69 |a buffer| to a fi|
|00001430| 6c 65 2e 0a 49 66 20 6f | 6e 65 20 6f 66 20 74 68 |le..If o|ne of th|
|00001440| 65 6d 20 72 65 74 75 72 | 6e 73 20 6e 6f 6e 2d 6e |em retur|ns non-n|
|00001450| 69 6c 2c 20 74 68 65 20 | 66 69 6c 65 20 69 73 20 |il, the |file is |
|00001460| 63 6f 6e 73 69 64 65 72 | 65 64 20 61 6c 72 65 61 |consider|ed alrea|
|00001470| 64 79 20 77 72 69 74 74 | 65 6e 0a 61 6e 64 20 74 |dy writt|en.and t|
|00001480| 68 65 20 72 65 73 74 20 | 61 72 65 20 6e 6f 74 20 |he rest |are not |
|00001490| 63 61 6c 6c 65 64 2e 0a | 54 68 65 73 65 20 68 6f |called..|These ho|
|000014a0| 6f 6b 73 20 61 72 65 20 | 63 6f 6e 73 69 64 65 72 |oks are |consider|
|000014b0| 65 64 20 74 6f 20 70 65 | 72 74 61 69 6e 20 74 6f |ed to pe|rtain to|
|000014c0| 20 74 68 65 20 62 75 66 | 66 65 72 27 73 20 63 6f | the buf|fer's co|
|000014d0| 6e 74 65 6e 74 73 2c 0a | 6e 6f 74 20 74 6f 20 74 |ntents,.|not to t|
|000014e0| 68 65 20 70 61 72 74 69 | 63 75 6c 61 72 20 76 69 |he parti|cular vi|
|000014f0| 73 69 74 65 64 20 66 69 | 6c 65 3b 20 74 68 75 73 |sited fi|le; thus|
|00001500| 2c 20 60 73 65 74 2d 76 | 69 73 69 74 65 64 2d 66 |, `set-v|isited-f|
|00001510| 69 6c 65 2d 6e 61 6d 65 | 27 20 64 6f 65 73 0a 6e |ile-name|' does.n|
|00001520| 6f 74 20 63 6c 65 61 72 | 20 74 68 69 73 20 76 61 |ot clear| this va|
|00001530| 72 69 61 62 6c 65 2c 20 | 62 75 74 20 63 68 61 6e |riable, |but chan|
|00001540| 67 69 6e 67 20 74 68 65 | 20 6d 61 6a 6f 72 20 6d |ging the| major m|
|00001550| 6f 64 65 20 64 6f 65 73 | 20 63 6c 65 61 72 20 69 |ode does| clear i|
|00001560| 74 2e 0a 53 65 65 20 61 | 6c 73 6f 20 60 77 72 69 |t..See a|lso `wri|
|00001570| 74 65 2d 66 69 6c 65 2d | 68 6f 6f 6b 73 27 2e 22 |te-file-|hooks'."|
|00001580| 29 0a 28 70 75 74 20 27 | 77 72 69 74 65 2d 66 69 |).(put '|write-fi|
|00001590| 6c 65 2d 64 61 74 61 2d | 68 6f 6f 6b 73 20 27 70 |le-data-|hooks 'p|
|000015a0| 65 72 6d 61 6e 65 6e 74 | 2d 6c 6f 63 61 6c 20 74 |ermanent|-local t|
|000015b0| 29 0a 28 64 65 66 76 61 | 72 20 77 72 69 74 65 2d |).(defva|r write-|
|000015c0| 66 69 6c 65 2d 64 61 74 | 61 2d 68 6f 6f 6b 73 20 |file-dat|a-hooks |
|000015d0| 6e 69 6c 20 22 5c 0a 4c | 69 73 74 20 6f 66 20 66 |nil "\.L|ist of f|
|000015e0| 75 6e 63 74 69 6f 6e 73 | 20 74 6f 20 62 65 20 63 |unctions| to be c|
|000015f0| 61 6c 6c 65 64 20 74 6f | 20 70 75 74 20 74 68 65 |alled to| put the|
|00001600| 20 62 79 74 65 73 20 6f | 6e 20 64 69 73 6b 2e 20 | bytes o|n disk. |
|00001610| 20 0a 54 68 65 73 65 20 | 66 75 6e 63 74 69 6f 6e | .These |function|
|00001620| 73 20 72 65 63 65 69 76 | 65 20 74 68 65 20 6e 61 |s receiv|e the na|
|00001630| 6d 65 20 6f 66 20 74 68 | 65 20 66 69 6c 65 20 74 |me of th|e file t|
|00001640| 6f 20 77 72 69 74 65 20 | 74 6f 20 61 73 20 61 72 |o write |to as ar|
|00001650| 67 75 6d 65 6e 74 2e 0a | 54 68 65 20 64 65 66 61 |gument..|The defa|
|00001660| 75 6c 74 20 62 65 68 61 | 76 69 6f 72 20 69 73 20 |ult beha|vior is |
|00001670| 74 6f 20 63 61 6c 6c 20 | 0a 20 20 28 77 72 69 74 |to call |. (writ|
|00001680| 65 2d 72 65 67 69 6f 6e | 20 28 70 6f 69 6e 74 2d |e-region| (point-|
|00001690| 6d 69 6e 29 20 28 70 6f | 69 6e 74 2d 6d 61 78 29 |min) (po|int-max)|
|000016a0| 20 66 69 6c 65 6e 61 6d | 65 20 6e 69 6c 20 74 29 | filenam|e nil t)|
|000016b0| 0a 49 66 20 6f 6e 65 20 | 6f 66 20 74 68 65 6d 20 |.If one |of them |
|000016c0| 72 65 74 75 72 6e 73 20 | 6e 6f 6e 2d 6e 69 6c 2c |returns |non-nil,|
|000016d0| 20 74 68 65 20 66 69 6c | 65 20 69 73 20 63 6f 6e | the fil|e is con|
|000016e0| 73 69 64 65 72 65 64 20 | 61 6c 72 65 61 64 79 20 |sidered |already |
|000016f0| 77 72 69 74 74 65 6e 0a | 61 6e 64 20 74 68 65 20 |written.|and the |
|00001700| 72 65 73 74 20 61 72 65 | 20 6e 6f 74 20 63 61 6c |rest are| not cal|
|00001710| 6c 65 64 2e 0a 54 68 65 | 73 65 20 68 6f 6f 6b 73 |led..The|se hooks|
|00001720| 20 61 72 65 20 63 6f 6e | 73 69 64 65 72 65 64 20 | are con|sidered |
|00001730| 74 6f 20 70 65 72 74 61 | 69 6e 20 74 6f 20 74 68 |to perta|in to th|
|00001740| 65 20 76 69 73 69 74 65 | 64 20 66 69 6c 65 2e 0a |e visite|d file..|
|00001750| 53 6f 20 74 68 69 73 20 | 6c 69 73 74 20 69 73 20 |So this |list is |
|00001760| 63 6c 65 61 72 65 64 20 | 69 66 20 79 6f 75 20 63 |cleared |if you c|
|00001770| 68 61 6e 67 65 20 74 68 | 65 20 76 69 73 69 74 65 |hange th|e visite|
|00001780| 64 20 66 69 6c 65 20 6e | 61 6d 65 2e 0a 53 65 65 |d file n|ame..See|
|00001790| 20 61 6c 73 6f 20 60 77 | 72 69 74 65 2d 66 69 6c | also `w|rite-fil|
|000017a0| 65 2d 68 6f 6f 6b 73 27 | 2e 22 29 0a 28 70 75 74 |e-hooks'|.").(put|
|000017b0| 20 27 61 66 74 65 72 2d | 77 72 69 74 65 2d 66 69 | 'after-|write-fi|
|000017c0| 6c 65 2d 68 6f 6f 6b 73 | 20 27 70 65 72 6d 61 6e |le-hooks| 'perman|
|000017d0| 65 6e 74 2d 6c 6f 63 61 | 6c 20 74 29 0a 28 64 65 |ent-loca|l t).(de|
|000017e0| 66 76 61 72 20 61 66 74 | 65 72 2d 77 72 69 74 65 |fvar aft|er-write|
|000017f0| 2d 66 69 6c 65 2d 68 6f | 6f 6b 73 20 6e 69 6c 20 |-file-ho|oks nil |
|00001800| 22 5c 0a 4c 69 73 74 20 | 6f 66 20 66 75 6e 63 74 |"\.List |of funct|
|00001810| 69 6f 6e 73 20 74 6f 20 | 62 65 20 63 61 6c 6c 65 |ions to |be calle|
|00001820| 64 20 61 66 74 65 72 20 | 77 72 69 74 69 6e 67 20 |d after |writing |
|00001830| 6f 75 74 20 61 20 62 75 | 66 66 65 72 20 74 6f 20 |out a bu|ffer to |
|00001840| 61 20 66 69 6c 65 2e 0a | 54 68 65 73 65 20 68 6f |a file..|These ho|
|00001850| 6f 6b 73 20 61 72 65 20 | 63 6f 6e 73 69 64 65 72 |oks are |consider|
|00001860| 65 64 20 74 6f 20 70 65 | 72 74 61 69 6e 20 74 6f |ed to pe|rtain to|
|00001870| 20 74 68 65 20 76 69 73 | 69 74 65 64 20 66 69 6c | the vis|ited fil|
|00001880| 65 2e 0a 53 6f 20 74 68 | 69 73 20 6c 69 73 74 20 |e..So th|is list |
|00001890| 69 73 20 63 6c 65 61 72 | 65 64 20 69 66 20 79 6f |is clear|ed if yo|
|000018a0| 75 20 63 68 61 6e 67 65 | 20 74 68 65 20 76 69 73 |u change| the vis|
|000018b0| 69 74 65 64 20 66 69 6c | 65 20 6e 61 6d 65 2e 22 |ited fil|e name."|
|000018c0| 29 0a 28 64 65 66 63 6f | 6e 73 74 20 65 6e 61 62 |).(defco|nst enab|
|000018d0| 6c 65 2d 6c 6f 63 61 6c | 2d 76 61 72 69 61 62 6c |le-local|-variabl|
|000018e0| 65 73 20 74 20 22 5c 0a | 2a 43 6f 6e 74 72 6f 6c |es t "\.|*Control|
|000018f0| 20 75 73 65 20 6f 66 20 | 6c 6f 63 61 6c 2d 76 61 | use of |local-va|
|00001900| 72 69 61 62 6c 65 73 20 | 6c 69 73 74 73 20 69 6e |riables |lists in|
|00001910| 20 66 69 6c 65 73 20 79 | 6f 75 20 76 69 73 69 74 | files y|ou visit|
|00001920| 2e 0a 54 68 65 20 76 61 | 6c 75 65 20 63 61 6e 20 |..The va|lue can |
|00001930| 62 65 20 74 2c 20 6e 69 | 6c 20 6f 72 20 73 6f 6d |be t, ni|l or som|
|00001940| 65 74 68 69 6e 67 20 65 | 6c 73 65 2e 0a 41 20 76 |ething e|lse..A v|
|00001950| 61 6c 75 65 20 6f 66 20 | 74 20 6d 65 61 6e 73 20 |alue of |t means |
|00001960| 6c 6f 63 61 6c 2d 76 61 | 72 69 61 62 6c 65 73 20 |local-va|riables |
|00001970| 6c 69 73 74 73 20 61 72 | 65 20 6f 62 65 79 65 64 |lists ar|e obeyed|
|00001980| 3b 0a 6e 69 6c 20 6d 65 | 61 6e 73 20 74 68 65 79 |;.nil me|ans they|
|00001990| 20 61 72 65 20 69 67 6e | 6f 72 65 64 3b 20 61 6e | are ign|ored; an|
|000019a0| 79 74 68 69 6e 67 20 65 | 6c 73 65 20 6d 65 61 6e |ything e|lse mean|
|000019b0| 73 20 71 75 65 72 79 2e | 0a 0a 54 68 65 20 63 6f |s query.|..The co|
|000019c0| 6d 6d 61 6e 64 20 5c 5c | 5b 6e 6f 72 6d 61 6c 2d |mmand \\|[normal-|
|000019d0| 6d 6f 64 65 5d 20 61 6c | 77 61 79 73 20 6f 62 65 |mode] al|ways obe|
|000019e0| 79 73 20 6c 6f 63 61 6c | 2d 76 61 72 69 61 62 6c |ys local|-variabl|
|000019f0| 65 73 20 6c 69 73 74 73 | 0a 61 6e 64 20 69 67 6e |es lists|.and ign|
|00001a00| 6f 72 65 73 20 74 68 69 | 73 20 76 61 72 69 61 62 |ores thi|s variab|
|00001a10| 6c 65 2e 22 29 0a 28 62 | 79 74 65 2d 63 6f 64 65 |le.").(b|yte-code|
|00001a20| 20 22 c0 c1 21 ac 84 c1 | c2 4d 88 c0 c3 21 ac 84 | "..!...|.M...!..|
|00001a30| c3 c2 4d 88 c4 c5 4d 87 | 22 20 5b 66 62 6f 75 6e |..M...M.|" [fboun|
|00001a40| 64 70 20 6c 6f 63 6b 2d | 62 75 66 66 65 72 20 69 |dp lock-|buffer i|
|00001a50| 67 6e 6f 72 65 20 75 6e | 6c 6f 63 6b 2d 62 75 66 |gnore un|lock-buf|
|00001a60| 66 65 72 20 66 72 6f 62 | 2d 63 64 6c 69 73 74 20 |fer frob|-cdlist |
|00001a70| 23 5b 28 64 69 72 29 20 | 22 08 c1 1a 89 1b ab 92 |#[(dir) |".......|
|00001a80| c4 0b 40 c5 0e 06 51 89 | 12 21 ac 86 0b 41 89 13 |..@...Q.|.!...A..|
|00001a90| ac 6e 0b ad 81 5c 6e 2a | 87 22 20 5b 63 64 6c 69 |.n...\n*|." [cdli|
|00001aa0| 73 74 20 6e 69 6c 20 63 | 64 70 61 74 68 65 64 2d |st nil c|dpathed-|
|00001ab0| 64 69 72 20 6c 20 66 69 | 6c 65 2d 64 69 72 65 63 |dir l fi|le-direc|
|00001ac0| 74 6f 72 79 2d 70 20 22 | 2f 22 20 64 69 72 5d 20 |tory-p "|/" dir] |
|00001ad0| 35 5d 5d 20 32 29 0a 28 | 66 73 65 74 20 27 70 77 |5]] 2).(|fset 'pw|
|00001ae0| 64 20 23 5b 6e 69 6c 20 | 22 c0 c1 5c 6e 5c 22 87 |d #[nil |"..\n\".|
|00001af0| 22 20 5b 6d 65 73 73 61 | 67 65 20 22 25 73 22 20 |" [messa|ge "%s" |
|00001b00| 64 65 66 61 75 6c 74 2d | 64 69 72 65 63 74 6f 72 |default-|director|
|00001b10| 79 5d 20 33 20 22 5c 0a | 53 68 6f 77 20 74 68 65 |y] 3 "\.|Show the|
|00001b20| 20 63 75 72 72 65 6e 74 | 20 64 65 66 61 75 6c 74 | current| default|
|00001b30| 20 64 69 72 65 63 74 6f | 72 79 2e 22 20 6e 69 6c | directo|ry." nil|
|00001b40| 5d 29 0a 28 66 73 65 74 | 20 27 63 64 20 23 5b 28 |]).(fset| 'cd #[(|
|00001b50| 64 69 72 29 20 22 c0 09 | 21 11 5c 6e c3 3d ac 84 |dir) "..|!.\n.=..|
|00001b60| c4 09 21 11 c5 09 21 ac | 87 c6 c7 09 5c 22 88 aa |..!...!.|....\"..|
|00001b70| 8f c8 09 21 ab 85 09 16 | 09 aa 85 c6 ca 09 5c 22 |...!....|......\"|
|00001b80| 88 cb 20 87 22 20 5b 65 | 78 70 61 6e 64 2d 66 69 |.. ." [e|xpand-fi|
|00001b90| 6c 65 2d 6e 61 6d 65 20 | 64 69 72 20 73 79 73 74 |le-name |dir syst|
|00001ba0| 65 6d 2d 74 79 70 65 20 | 76 61 78 2d 76 6d 73 20 |em-type |vax-vms |
|00001bb0| 66 69 6c 65 2d 6e 61 6d | 65 2d 61 73 2d 64 69 72 |file-nam|e-as-dir|
|00001bc0| 65 63 74 6f 72 79 20 66 | 69 6c 65 2d 64 69 72 65 |ectory f|ile-dire|
|00001bd0| 63 74 6f 72 79 2d 70 20 | 65 72 72 6f 72 20 22 25 |ctory-p |error "%|
|00001be0| 73 20 69 73 20 6e 6f 74 | 20 61 20 64 69 72 65 63 |s is not| a direc|
|00001bf0| 74 6f 72 79 22 20 66 69 | 6c 65 2d 65 78 65 63 75 |tory" fi|le-execu|
|00001c00| 74 61 62 6c 65 2d 70 20 | 64 65 66 61 75 6c 74 2d |table-p |default-|
|00001c10| 64 69 72 65 63 74 6f 72 | 79 20 22 43 61 6e 6e 6f |director|y "Canno|
|00001c20| 74 20 63 64 20 74 6f 20 | 25 73 3a 20 20 50 65 72 |t cd to |%s: Per|
|00001c30| 6d 69 73 73 69 6f 6e 20 | 64 65 6e 69 65 64 22 20 |mission |denied" |
|00001c40| 70 77 64 5d 20 33 20 22 | 5c 0a 4d 61 6b 65 20 44 |pwd] 3 "|\.Make D|
|00001c50| 49 52 20 62 65 63 6f 6d | 65 20 74 68 65 20 63 75 |IR becom|e the cu|
|00001c60| 72 72 65 6e 74 20 62 75 | 66 66 65 72 27 73 20 64 |rrent bu|ffer's d|
|00001c70| 65 66 61 75 6c 74 20 64 | 69 72 65 63 74 6f 72 79 |efault d|irectory|
|00001c80| 2e 22 20 22 44 43 68 61 | 6e 67 65 20 64 65 66 61 |." "DCha|nge defa|
|00001c90| 75 6c 74 20 64 69 72 65 | 63 74 6f 72 79 3a 20 22 |ult dire|ctory: "|
|00001ca0| 5d 29 0a 28 66 73 65 74 | 20 27 6c 6f 61 64 2d 66 |]).(fset| 'load-f|
|00001cb0| 69 6c 65 20 23 5b 28 66 | 69 6c 65 29 20 22 c0 c1 |ile #[(f|ile) "..|
|00001cc0| 5c 6e 21 c3 89 c4 24 87 | 22 20 5b 6c 6f 61 64 20 |\n!...$.|" [load |
|00001cd0| 65 78 70 61 6e 64 2d 66 | 69 6c 65 2d 6e 61 6d 65 |expand-f|ile-name|
|00001ce0| 20 66 69 6c 65 20 6e 69 | 6c 20 74 5d 20 35 20 22 | file ni|l t] 5 "|
|00001cf0| 5c 0a 4c 6f 61 64 20 74 | 68 65 20 66 69 6c 65 20 |\.Load t|he file |
|00001d00| 46 49 4c 45 20 6f 66 20 | 4c 69 73 70 20 63 6f 64 |FILE of |Lisp cod|
|00001d10| 65 2e 22 20 22 66 4c 6f | 61 64 20 66 69 6c 65 3a |e." "fLo|ad file:|
|00001d20| 20 22 5d 29 0a 28 66 73 | 65 74 20 27 6c 6f 61 64 | "]).(fs|et 'load|
|00001d30| 2d 6c 69 62 72 61 72 79 | 20 23 5b 28 6c 69 62 72 |-library| #[(libr|
|00001d40| 61 72 79 29 20 22 c0 09 | 21 87 22 20 5b 6c 6f 61 |ary) "..|!." [loa|
|00001d50| 64 20 6c 69 62 72 61 72 | 79 5d 20 32 20 22 5c 0a |d librar|y] 2 "\.|
|00001d60| 4c 6f 61 64 20 74 68 65 | 20 6c 69 62 72 61 72 79 |Load the| library|
|00001d70| 20 6e 61 6d 65 64 20 4c | 49 42 52 41 52 59 2e 0a | named L|IBRARY..|
|00001d80| 54 68 69 73 20 69 73 20 | 61 6e 20 69 6e 74 65 72 |This is |an inter|
|00001d90| 66 61 63 65 20 74 6f 20 | 74 68 65 20 66 75 6e 63 |face to |the func|
|00001da0| 74 69 6f 6e 20 60 6c 6f | 61 64 27 2e 22 20 22 73 |tion `lo|ad'." "s|
|00001db0| 4c 6f 61 64 20 6c 69 62 | 72 61 72 79 3a 20 22 5d |Load lib|rary: "]|
|00001dc0| 29 0a 28 66 73 65 74 20 | 27 73 77 69 74 63 68 2d |).(fset |'switch-|
|00001dd0| 74 6f 2d 6f 74 68 65 72 | 2d 62 75 66 66 65 72 20 |to-other|-buffer |
|00001de0| 23 5b 28 61 72 67 29 20 | 22 08 c1 3d ab 84 c2 70 |#[(arg) |"..=...p|
|00001df0| 21 88 c3 08 c4 58 ab 85 | c5 70 21 aa 85 08 54 c6 |!....X..|.p!...T.|
|00001e00| 20 38 21 87 22 20 5b 61 | 72 67 20 30 20 62 75 72 | 8!." [a|rg 0 bur|
|00001e10| 79 2d 62 75 66 66 65 72 | 20 73 77 69 74 63 68 2d |y-buffer| switch-|
|00001e20| 74 6f 2d 62 75 66 66 65 | 72 20 31 20 6f 74 68 65 |to-buffe|r 1 othe|
|00001e30| 72 2d 62 75 66 66 65 72 | 20 62 75 66 66 65 72 2d |r-buffer| buffer-|
|00001e40| 6c 69 73 74 5d 20 33 20 | 22 5c 0a 53 77 69 74 63 |list] 3 |"\.Switc|
|00001e50| 68 20 74 6f 20 74 68 65 | 20 70 72 65 76 69 6f 75 |h to the| previou|
|00001e60| 73 20 62 75 66 66 65 72 | 2e 20 20 57 69 74 68 20 |s buffer|. With |
|00001e70| 61 20 6e 75 6d 65 72 69 | 63 20 61 72 67 2c 20 6e |a numeri|c arg, n|
|00001e80| 2c 20 73 77 69 74 63 68 | 20 74 6f 20 74 68 65 20 |, switch| to the |
|00001e90| 6e 74 68 0a 6d 6f 73 74 | 20 72 65 63 65 6e 74 20 |nth.most| recent |
|00001ea0| 62 75 66 66 65 72 2e 20 | 20 57 69 74 68 20 61 6e |buffer. | With an|
|00001eb0| 20 61 72 67 20 6f 66 20 | 30 2c 20 62 75 72 69 65 | arg of |0, burie|
|00001ec0| 73 20 74 68 65 20 63 75 | 72 72 65 6e 74 20 62 75 |s the cu|rrent bu|
|00001ed0| 66 66 65 72 20 61 74 20 | 74 68 65 0a 62 6f 74 74 |ffer at |the.bott|
|00001ee0| 6f 6d 20 6f 66 20 74 68 | 65 20 62 75 66 66 65 72 |om of th|e buffer|
|00001ef0| 20 73 74 61 63 6b 2e 22 | 20 22 70 22 5d 29 0a 28 | stack."| "p"]).(|
|00001f00| 66 73 65 74 20 27 73 77 | 69 74 63 68 2d 74 6f 2d |fset 'sw|itch-to-|
|00001f10| 62 75 66 66 65 72 2d 6f | 74 68 65 72 2d 77 69 6e |buffer-o|ther-win|
|00001f20| 64 6f 77 20 23 5b 28 62 | 75 66 66 65 72 29 20 22 |dow #[(b|uffer) "|
|00001f30| c0 19 c2 0b c0 5c 22 29 | 87 22 20 5b 74 20 70 6f |.....\")|." [t po|
|00001f40| 70 2d 75 70 2d 77 69 6e | 64 6f 77 73 20 70 6f 70 |p-up-win|dows pop|
|00001f50| 2d 74 6f 2d 62 75 66 66 | 65 72 20 62 75 66 66 65 |-to-buff|er buffe|
|00001f60| 72 5d 20 33 20 22 5c 0a | 53 65 6c 65 63 74 20 62 |r] 3 "\.|Select b|
|00001f70| 75 66 66 65 72 20 42 55 | 46 46 45 52 20 69 6e 20 |uffer BU|FFER in |
|00001f80| 61 6e 6f 74 68 65 72 20 | 77 69 6e 64 6f 77 2e 22 |another |window."|
|00001f90| 20 22 42 53 77 69 74 63 | 68 20 74 6f 20 62 75 66 | "BSwitc|h to buf|
|00001fa0| 66 65 72 20 69 6e 20 6f | 74 68 65 72 20 77 69 6e |fer in o|ther win|
|00001fb0| 64 6f 77 3a 20 22 5d 29 | 0a 28 66 73 65 74 20 27 |dow: "])|.(fset '|
|00001fc0| 66 69 6e 64 2d 66 69 6c | 65 20 23 5b 28 66 69 6c |find-fil|e #[(fil|
|00001fd0| 65 6e 61 6d 65 29 20 22 | c0 c1 5c 6e 21 21 87 22 |ename) "|..\n!!."|
|00001fe0| 20 5b 73 77 69 74 63 68 | 2d 74 6f 2d 62 75 66 66 | [switch|-to-buff|
|00001ff0| 65 72 20 66 69 6e 64 2d | 66 69 6c 65 2d 6e 6f 73 |er find-|file-nos|
|00002000| 65 6c 65 63 74 20 66 69 | 6c 65 6e 61 6d 65 5d 20 |elect fi|lename] |
|00002010| 33 20 22 5c 0a 45 64 69 | 74 20 66 69 6c 65 20 46 |3 "\.Edi|t file F|
|00002020| 49 4c 45 4e 41 4d 45 2e | 0a 53 77 69 74 63 68 20 |ILENAME.|.Switch |
|00002030| 74 6f 20 61 20 62 75 66 | 66 65 72 20 76 69 73 69 |to a buf|fer visi|
|00002040| 74 69 6e 67 20 66 69 6c | 65 20 46 49 4c 45 4e 41 |ting fil|e FILENA|
|00002050| 4d 45 2c 0a 63 72 65 61 | 74 69 6e 67 20 6f 6e 65 |ME,.crea|ting one|
|00002060| 20 69 66 20 6e 6f 6e 65 | 20 61 6c 72 65 61 64 79 | if none| already|
|00002070| 20 65 78 69 73 74 73 2e | 22 20 22 46 46 69 6e 64 | exists.|" "FFind|
|00002080| 20 66 69 6c 65 3a 20 22 | 5d 29 0a 28 66 73 65 74 | file: "|]).(fset|
|00002090| 20 27 66 69 6e 64 2d 66 | 69 6c 65 2d 6f 74 68 65 | 'find-f|ile-othe|
|000020a0| 72 2d 77 69 6e 64 6f 77 | 20 23 5b 28 66 69 6c 65 |r-window| #[(file|
|000020b0| 6e 61 6d 65 29 20 22 c0 | c1 5c 6e 21 21 87 22 20 |name) ".|.\n!!." |
|000020c0| 5b 73 77 69 74 63 68 2d | 74 6f 2d 62 75 66 66 65 |[switch-|to-buffe|
|000020d0| 72 2d 6f 74 68 65 72 2d | 77 69 6e 64 6f 77 20 66 |r-other-|window f|
|000020e0| 69 6e 64 2d 66 69 6c 65 | 2d 6e 6f 73 65 6c 65 63 |ind-file|-noselec|
|000020f0| 74 20 66 69 6c 65 6e 61 | 6d 65 5d 20 33 20 22 5c |t filena|me] 3 "\|
|00002100| 0a 45 64 69 74 20 66 69 | 6c 65 20 46 49 4c 45 4e |.Edit fi|le FILEN|
|00002110| 41 4d 45 2c 20 69 6e 20 | 61 6e 6f 74 68 65 72 20 |AME, in |another |
|00002120| 77 69 6e 64 6f 77 2e 0a | 4d 61 79 20 63 72 65 61 |window..|May crea|
|00002130| 74 65 20 61 20 6e 65 77 | 20 77 69 6e 64 6f 77 2c |te a new| window,|
|00002140| 20 6f 72 20 72 65 75 73 | 65 20 61 6e 20 65 78 69 | or reus|e an exi|
|00002150| 73 74 69 6e 67 20 6f 6e | 65 3b 0a 73 65 65 20 74 |sting on|e;.see t|
|00002160| 68 65 20 66 75 6e 63 74 | 69 6f 6e 20 64 69 73 70 |he funct|ion disp|
|00002170| 6c 61 79 2d 62 75 66 66 | 65 72 2e 22 20 22 46 46 |lay-buff|er." "FF|
|00002180| 69 6e 64 20 66 69 6c 65 | 20 69 6e 20 6f 74 68 65 |ind file| in othe|
|00002190| 72 20 77 69 6e 64 6f 77 | 3a 20 22 5d 29 0a 28 66 |r window|: "]).(f|
|000021a0| 73 65 74 20 27 66 69 6e | 64 2d 66 69 6c 65 2d 72 |set 'fin|d-file-r|
|000021b0| 65 61 64 2d 6f 6e 6c 79 | 20 23 5b 28 66 69 6c 65 |ead-only| #[(file|
|000021c0| 6e 61 6d 65 29 20 22 c0 | 09 21 88 c2 89 13 87 22 |name) ".|.!....."|
|000021d0| 20 5b 66 69 6e 64 2d 66 | 69 6c 65 20 66 69 6c 65 | [find-f|ile file|
|000021e0| 6e 61 6d 65 20 74 20 62 | 75 66 66 65 72 2d 72 65 |name t b|uffer-re|
|000021f0| 61 64 2d 6f 6e 6c 79 5d | 20 32 20 22 5c 0a 45 64 |ad-only]| 2 "\.Ed|
|00002200| 69 74 20 66 69 6c 65 20 | 46 49 4c 45 4e 41 4d 45 |it file |FILENAME|
|00002210| 20 62 75 74 20 64 6f 6e | 27 74 20 61 6c 6c 6f 77 | but don|'t allow|
|00002220| 20 63 68 61 6e 67 65 73 | 2e 0a 4c 69 6b 65 20 5c | changes|..Like \|
|00002230| 5c 5b 66 69 6e 64 2d 66 | 69 6c 65 5d 20 62 75 74 |\[find-f|ile] but|
|00002240| 20 6d 61 72 6b 73 20 62 | 75 66 66 65 72 20 61 73 | marks b|uffer as|
|00002250| 20 72 65 61 64 2d 6f 6e | 6c 79 2e 0a 55 73 65 20 | read-on|ly..Use |
|00002260| 5c 5c 5b 74 6f 67 67 6c | 65 2d 72 65 61 64 2d 6f |\\[toggl|e-read-o|
|00002270| 6e 6c 79 5d 20 74 6f 20 | 70 65 72 6d 69 74 20 65 |nly] to |permit e|
|00002280| 64 69 74 69 6e 67 2e 22 | 20 22 66 46 69 6e 64 20 |diting."| "fFind |
|00002290| 66 69 6c 65 20 72 65 61 | 64 2d 6f 6e 6c 79 3a 20 |file rea|d-only: |
|000022a0| 22 5d 29 0a 28 66 73 65 | 74 20 27 66 69 6e 64 2d |"]).(fse|t 'find-|
|000022b0| 66 69 6c 65 2d 72 65 61 | 64 2d 6f 6e 6c 79 2d 6f |file-rea|d-only-o|
|000022c0| 74 68 65 72 2d 77 69 6e | 64 6f 77 20 23 5b 28 66 |ther-win|dow #[(f|
|000022d0| 69 6c 65 6e 61 6d 65 29 | 20 22 c0 09 21 88 c2 89 |ilename)| "..!...|
|000022e0| 13 87 22 20 5b 66 69 6e | 64 2d 66 69 6c 65 20 66 |.." [fin|d-file f|
|000022f0| 69 6c 65 6e 61 6d 65 20 | 74 20 62 75 66 66 65 72 |ilename |t buffer|
|00002300| 2d 72 65 61 64 2d 6f 6e | 6c 79 5d 20 32 20 22 5c |-read-on|ly] 2 "\|
|00002310| 0a 45 64 69 74 20 66 69 | 6c 65 20 46 49 4c 45 4e |.Edit fi|le FILEN|
|00002320| 41 4d 45 20 69 6e 20 61 | 6e 6f 74 68 65 72 20 77 |AME in a|nother w|
|00002330| 69 6e 64 6f 77 20 62 75 | 74 20 64 6f 6e 27 74 20 |indow bu|t don't |
|00002340| 61 6c 6c 6f 77 20 63 68 | 61 6e 67 65 73 2e 0a 4c |allow ch|anges..L|
|00002350| 69 6b 65 20 5c 5c 5b 66 | 69 6e 64 2d 66 69 6c 65 |ike \\[f|ind-file|
|00002360| 2d 6f 74 68 65 72 2d 77 | 69 6e 64 6f 77 5d 20 62 |-other-w|indow] b|
|00002370| 75 74 20 6d 61 72 6b 73 | 20 62 75 66 66 65 72 20 |ut marks| buffer |
|00002380| 61 73 20 72 65 61 64 2d | 6f 6e 6c 79 2e 0a 55 73 |as read-|only..Us|
|00002390| 65 20 5c 5c 5b 74 6f 67 | 67 6c 65 2d 72 65 61 64 |e \\[tog|gle-read|
|000023a0| 2d 6f 6e 6c 79 5d 20 74 | 6f 20 70 65 72 6d 69 74 |-only] t|o permit|
|000023b0| 20 65 64 69 74 69 6e 67 | 2e 22 20 22 66 46 69 6e | editing|." "fFin|
|000023c0| 64 20 66 69 6c 65 20 72 | 65 61 64 2d 6f 6e 6c 79 |d file r|ead-only|
|000023d0| 20 6f 74 68 65 72 20 77 | 69 6e 64 6f 77 3a 20 22 | other w|indow: "|
|000023e0| 5d 29 0a 28 66 73 65 74 | 20 27 66 69 6e 64 2d 61 |]).(fset| 'find-a|
|000023f0| 6c 74 65 72 6e 61 74 65 | 2d 66 69 6c 65 20 23 5b |lternate|-file #[|
|00002400| 28 66 69 6c 65 6e 61 6d | 65 29 20 22 c0 20 ab 8d |(filenam|e) ". ..|
|00002410| c1 c2 c3 c4 20 5c 22 21 | ac 84 c5 c6 21 88 70 0e |.... \"!|....!.p.|
|00002420| 07 c4 20 1e 08 1e 09 1e | 5c 6e cb cc 21 88 cd 16 |.. .....|\n..!...|
|00002430| 07 ce 8e cf 20 88 d0 0e | 11 21 88 29 70 0e 5c 6e |.... ...|.!.)p.\n|
|00002440| 3d ae 84 d2 0e 5c 6e 21 | 2b 87 22 20 5b 62 75 66 |=....\n!|+." [buf|
|00002450| 66 65 72 2d 6d 6f 64 69 | 66 69 65 64 2d 70 20 79 |fer-modi|fied-p y|
|00002460| 65 73 2d 6f 72 2d 6e 6f | 2d 70 20 66 6f 72 6d 61 |es-or-no|-p forma|
|00002470| 74 20 22 42 75 66 66 65 | 72 20 25 73 20 69 73 20 |t "Buffe|r %s is |
|00002480| 6d 6f 64 69 66 69 65 64 | 3b 20 6b 69 6c 6c 20 61 |modified|; kill a|
|00002490| 6e 79 77 61 79 3f 20 22 | 20 62 75 66 66 65 72 2d |nyway? "| buffer-|
|000024a0| 6e 61 6d 65 20 65 72 72 | 6f 72 20 22 41 62 6f 72 |name err|or "Abor|
|000024b0| 74 65 64 22 20 62 75 66 | 66 65 72 2d 66 69 6c 65 |ted" buf|fer-file|
|000024c0| 2d 6e 61 6d 65 20 6f 6e | 61 6d 65 20 6f 66 69 6c |-name on|ame ofil|
|000024d0| 65 20 6f 62 75 66 20 72 | 65 6e 61 6d 65 2d 62 75 |e obuf r|ename-bu|
|000024e0| 66 66 65 72 20 22 20 2a | 2a 6c 6f 73 65 2a 2a 22 |ffer " *|*lose**"|
|000024f0| 20 6e 69 6c 20 28 28 62 | 79 74 65 2d 63 6f 64 65 | nil ((b|yte-code|
|00002500| 20 22 08 70 3d ab 89 09 | 12 c3 20 88 c4 0d 21 88 | ".p=...|.. ...!.|
|00002510| c3 87 22 20 5b 6f 62 75 | 66 20 6f 66 69 6c 65 20 |.." [obu|f ofile |
|00002520| 62 75 66 66 65 72 2d 66 | 69 6c 65 2d 6e 61 6d 65 |buffer-f|ile-name|
|00002530| 20 6c 6f 63 6b 2d 62 75 | 66 66 65 72 20 72 65 6e | lock-bu|ffer ren|
|00002540| 61 6d 65 2d 62 75 66 66 | 65 72 20 6f 6e 61 6d 65 |ame-buff|er oname|
|00002550| 5d 20 32 29 29 20 75 6e | 6c 6f 63 6b 2d 62 75 66 |] 2)) un|lock-buf|
|00002560| 66 65 72 20 66 69 6e 64 | 2d 66 69 6c 65 20 66 69 |fer find|-file fi|
|00002570| 6c 65 6e 61 6d 65 20 6b | 69 6c 6c 2d 62 75 66 66 |lename k|ill-buff|
|00002580| 65 72 5d 20 34 20 22 5c | 0a 46 69 6e 64 20 66 69 |er] 4 "\|.Find fi|
|00002590| 6c 65 20 46 49 4c 45 4e | 41 4d 45 2c 20 73 65 6c |le FILEN|AME, sel|
|000025a0| 65 63 74 20 69 74 73 20 | 62 75 66 66 65 72 2c 20 |ect its |buffer, |
|000025b0| 6b 69 6c 6c 20 70 72 65 | 76 69 6f 75 73 20 62 75 |kill pre|vious bu|
|000025c0| 66 66 65 72 2e 0a 49 66 | 20 74 68 65 20 63 75 72 |ffer..If| the cur|
|000025d0| 72 65 6e 74 20 62 75 66 | 66 65 72 20 6e 6f 77 20 |rent buf|fer now |
|000025e0| 63 6f 6e 74 61 69 6e 73 | 20 61 6e 20 65 6d 70 74 |contains| an empt|
|000025f0| 79 20 66 69 6c 65 20 74 | 68 61 74 20 79 6f 75 20 |y file t|hat you |
|00002600| 6a 75 73 74 20 76 69 73 | 69 74 65 64 0a 28 70 72 |just vis|ited.(pr|
|00002610| 65 73 75 6d 61 62 6c 79 | 20 62 79 20 6d 69 73 74 |esumably| by mist|
|00002620| 61 6b 65 29 2c 20 75 73 | 65 20 74 68 69 73 20 63 |ake), us|e this c|
|00002630| 6f 6d 6d 61 6e 64 20 74 | 6f 20 76 69 73 69 74 20 |ommand t|o visit |
|00002640| 74 68 65 20 66 69 6c 65 | 20 79 6f 75 20 72 65 61 |the file| you rea|
|00002650| 6c 6c 79 20 77 61 6e 74 | 2e 22 20 28 62 79 74 65 |lly want|." (byte|
|00002660| 2d 63 6f 64 65 20 22 08 | c1 89 1a 1b 89 1c ab 88 |-code ".|........|
|00002670| c5 0c 21 13 c6 0c 21 12 | c7 c8 5c 6e c1 89 0b 25 |..!...!.|..\n...%|
|00002680| 2b 43 87 22 20 5b 62 75 | 66 66 65 72 2d 66 69 6c |+C." [bu|ffer-fil|
|00002690| 65 2d 6e 61 6d 65 20 6e | 69 6c 20 66 69 6c 65 2d |e-name n|il file-|
|000026a0| 64 69 72 20 66 69 6c 65 | 2d 6e 61 6d 65 20 66 69 |dir file|-name fi|
|000026b0| 6c 65 20 66 69 6c 65 2d | 6e 61 6d 65 2d 6e 6f 6e |le file-|name-non|
|000026c0| 64 69 72 65 63 74 6f 72 | 79 20 66 69 6c 65 2d 6e |director|y file-n|
|000026d0| 61 6d 65 2d 64 69 72 65 | 63 74 6f 72 79 20 72 65 |ame-dire|ctory re|
|000026e0| 61 64 2d 66 69 6c 65 2d | 6e 61 6d 65 20 22 46 69 |ad-file-|name "Fi|
|000026f0| 6e 64 20 61 6c 74 65 72 | 6e 61 74 65 20 66 69 6c |nd alter|nate fil|
|00002700| 65 3a 20 22 5d 20 37 29 | 5d 29 0a 28 66 73 65 74 |e: "] 7)|]).(fset|
|00002710| 20 27 63 72 65 61 74 65 | 2d 66 69 6c 65 2d 62 75 | 'create|-file-bu|
|00002720| 66 66 65 72 20 23 5b 28 | 66 69 6c 65 6e 61 6d 65 |ffer #[(|filename|
|00002730| 29 20 22 c0 09 21 89 1a | c3 98 ab 82 09 12 c4 5c |) "..!..|.......\|
|00002740| 6e 21 29 87 22 20 5b 66 | 69 6c 65 2d 6e 61 6d 65 |n!)." [f|ile-name|
|00002750| 2d 6e 6f 6e 64 69 72 65 | 63 74 6f 72 79 20 66 69 |-nondire|ctory fi|
|00002760| 6c 65 6e 61 6d 65 20 6c | 61 73 74 6e 61 6d 65 20 |lename l|astname |
|00002770| 22 22 20 67 65 6e 65 72 | 61 74 65 2d 6e 65 77 2d |"" gener|ate-new-|
|00002780| 62 75 66 66 65 72 5d 20 | 33 20 22 5c 0a 43 72 65 |buffer] |3 "\.Cre|
|00002790| 61 74 65 20 61 20 73 75 | 69 74 61 62 6c 79 20 6e |ate a su|itably n|
|000027a0| 61 6d 65 64 20 62 75 66 | 66 65 72 20 66 6f 72 20 |amed buf|fer for |
|000027b0| 76 69 73 69 74 69 6e 67 | 20 46 49 4c 45 4e 41 4d |visiting| FILENAM|
|000027c0| 45 2c 20 61 6e 64 20 72 | 65 74 75 72 6e 20 69 74 |E, and r|eturn it|
|000027d0| 2e 0a 46 49 4c 45 4e 41 | 4d 45 20 28 73 61 6e 73 |..FILENA|ME (sans|
|000027e0| 20 64 69 72 65 63 74 6f | 72 79 29 20 69 73 20 75 | directo|ry) is u|
|000027f0| 73 65 64 20 75 6e 63 68 | 61 6e 67 65 64 20 69 66 |sed unch|anged if|
|00002800| 20 74 68 61 74 20 6e 61 | 6d 65 20 69 73 20 66 72 | that na|me is fr|
|00002810| 65 65 3b 0a 6f 74 68 65 | 72 77 69 73 65 20 61 20 |ee;.othe|rwise a |
|00002820| 73 74 72 69 6e 67 20 3c | 32 3e 20 6f 72 20 3c 33 |string <|2> or <3|
|00002830| 3e 20 6f 72 20 2e 2e 2e | 20 69 73 20 61 70 70 65 |> or ...| is appe|
|00002840| 6e 64 65 64 20 74 6f 20 | 67 65 74 20 61 6e 20 75 |nded to |get an u|
|00002850| 6e 75 73 65 64 20 6e 61 | 6d 65 2e 22 5d 29 0a 28 |nused na|me."]).(|
|00002860| 66 73 65 74 20 27 63 6f | 6d 70 75 74 65 2d 62 75 |fset 'co|mpute-bu|
|00002870| 66 66 65 72 2d 66 69 6c | 65 2d 74 72 75 65 6e 61 |ffer-fil|e-truena|
|00002880| 6d 65 20 23 5b 6e 69 6c | 20 22 08 ac 84 c1 12 aa |me #[nil| "......|
|00002890| 9e c3 08 21 89 12 ac 97 | c4 08 21 1d c3 0d 21 89 |...!....|..!...!.|
|000028a0| 1e 06 ab 83 0e 06 15 c7 | c8 08 21 0d 5c 22 12 2a |........|..!.\".*|
|000028b0| 0e 09 ab 8c 5c 6e ab 89 | ca 5c 6e 21 10 c4 08 21 |....\n..|.\n!...!|
|000028c0| 16 0b 5c 6e 87 22 20 5b | 62 75 66 66 65 72 2d 66 |..\n." [|buffer-f|
|000028d0| 69 6c 65 2d 6e 61 6d 65 | 20 6e 69 6c 20 62 75 66 |ile-name| nil buf|
|000028e0| 66 65 72 2d 66 69 6c 65 | 2d 74 72 75 65 6e 61 6d |fer-file|-truenam|
|000028f0| 65 20 74 72 75 65 6e 61 | 6d 65 20 66 69 6c 65 2d |e truena|me file-|
|00002900| 6e 61 6d 65 2d 64 69 72 | 65 63 74 6f 72 79 20 64 |name-dir|ectory d|
|00002910| 69 72 20 74 72 75 65 64 | 69 72 20 65 78 70 61 6e |ir trued|ir expan|
|00002920| 64 2d 66 69 6c 65 2d 6e | 61 6d 65 20 66 69 6c 65 |d-file-n|ame file|
|00002930| 2d 6e 61 6d 65 2d 6e 6f | 6e 64 69 72 65 63 74 6f |-name-no|ndirecto|
|00002940| 72 79 20 66 69 6e 64 2d | 66 69 6c 65 2d 75 73 65 |ry find-|file-use|
|00002950| 2d 74 72 75 65 6e 61 6d | 65 73 20 61 62 62 72 65 |-truenam|es abbre|
|00002960| 76 69 61 74 65 2d 66 69 | 6c 65 2d 6e 61 6d 65 20 |viate-fi|le-name |
|00002970| 64 65 66 61 75 6c 74 2d | 64 69 72 65 63 74 6f 72 |default-|director|
|00002980| 79 5d 20 34 20 22 5c 0a | 52 65 63 6f 6d 70 75 74 |y] 4 "\.|Recomput|
|00002990| 65 73 20 74 68 69 73 20 | 62 75 66 66 65 72 27 73 |es this |buffer's|
|000029a0| 20 76 61 6c 75 65 20 6f | 66 20 60 62 75 66 66 65 | value o|f `buffe|
|000029b0| 72 2d 66 69 6c 65 2d 74 | 72 75 65 6e 61 6d 65 27 |r-file-t|ruename'|
|000029c0| 0a 62 61 73 65 64 20 6f | 6e 20 74 68 65 20 63 75 |.based o|n the cu|
|000029d0| 72 72 65 6e 74 20 76 61 | 6c 75 65 20 6f 66 20 60 |rrent va|lue of `|
|000029e0| 62 75 66 66 65 72 2d 66 | 69 6c 65 2d 6e 61 6d 65 |buffer-f|ile-name|
|000029f0| 27 2e 22 5d 29 0a 28 66 | 73 65 74 20 27 66 69 6e |'."]).(f|set 'fin|
|00002a00| 64 2d 66 69 6c 65 2d 6e | 6f 73 65 6c 65 63 74 20 |d-file-n|oselect |
|00002a10| 23 5b 28 66 69 6c 65 6e | 61 6d 65 20 26 6f 70 74 |#[(filen|ame &opt|
|00002a20| 69 6f 6e 61 6c 20 6e 6f | 77 61 72 6e 29 20 22 c0 |ional no|warn) ".|
|00002a30| c1 5c 6e 21 21 12 c3 5c | 6e 21 ab 8c 0c ab 84 c5 |.\n!!..\|n!......|
|00002a40| 5c 6e 21 87 c6 c7 5c 6e | 5c 22 87 c8 5c 6e 21 c9 |\n!...\n|\"..\n!.|
|00002a50| 1e 06 89 1e 5c 6e ab a1 | 0e 0b ac 9d 0e 0c ac 84 |....\n..|........|
|00002a60| 0e 0d ab 95 8a 0e 5c 6e | 71 88 0e 0e 5c 6e 9a ac |......\n|q...\n..|
|00002a70| 89 cf d0 5c 6e 0e 0e 0e | 11 24 88 29 0e 5c 6e ab |...\n...|.$.).\n.|
|00002a80| b6 0e 0b ac d2 d2 0e 5c | 6e 21 ac cc d3 5c 6e 21 |.......\|n!...\n!|
|00002a90| ac 87 c6 d4 5c 6e 5c 22 | 88 aa c0 d5 d6 d7 0e 5c |....\n\"|.......\|
|00002aa0| 6e 21 ab 83 d8 aa 81 d9 | da 5c 6e 21 5c 22 21 ab |n!......|.\n!\"!.|
|00002ab0| ad 8a 0e 5c 6e 71 88 db | dc 89 5c 22 88 29 aa a0 |...\nq..|..\".)..|
|00002ac0| 8a dd 5c 6e 21 89 16 5c | 6e 71 88 de 20 88 c9 df |..\n!..\|nq.. ...|
|00002ad0| e0 8f 88 e1 0e 0e 21 16 | 5c 22 e3 0e 06 0e 0b 3f |......!.|\".....?|
|00002ae0| 5c 22 88 29 0e 5c 6e 2a | 87 22 20 5b 61 62 62 72 |\".).\n*|." [abbr|
|00002af0| 65 76 69 61 74 65 2d 66 | 69 6c 65 2d 6e 61 6d 65 |eviate-f|ile-name|
|00002b00| 20 65 78 70 61 6e 64 2d | 66 69 6c 65 2d 6e 61 6d | expand-|file-nam|
|00002b10| 65 20 66 69 6c 65 6e 61 | 6d 65 20 66 69 6c 65 2d |e filena|me file-|
|00002b20| 64 69 72 65 63 74 6f 72 | 79 2d 70 20 66 69 6e 64 |director|y-p find|
|00002b30| 2d 66 69 6c 65 2d 72 75 | 6e 2d 64 69 72 65 64 20 |-file-ru|n-dired |
|00002b40| 64 69 72 65 64 2d 6e 6f | 73 65 6c 65 63 74 20 65 |dired-no|select e|
|00002b50| 72 72 6f 72 20 22 25 73 | 20 69 73 20 61 20 64 69 |rror "%s| is a di|
|00002b60| 72 65 63 74 6f 72 79 2e | 22 20 67 65 74 2d 66 69 |rectory.|" get-fi|
|00002b70| 6c 65 2d 62 75 66 66 65 | 72 20 6e 69 6c 20 62 75 |le-buffe|r nil bu|
|00002b80| 66 20 6e 6f 77 61 72 6e | 20 66 69 6e 64 2d 66 69 |f nowarn| find-fi|
|00002b90| 6c 65 2d 63 6f 6d 70 61 | 72 65 2d 74 72 75 65 6e |le-compa|re-truen|
|00002ba0| 61 6d 65 73 20 66 69 6e | 64 2d 66 69 6c 65 2d 75 |ames fin|d-file-u|
|00002bb0| 73 65 2d 74 72 75 65 6e | 61 6d 65 73 20 62 75 66 |se-truen|ames buf|
|00002bc0| 66 65 72 2d 66 69 6c 65 | 2d 6e 61 6d 65 20 6d 65 |fer-file|-name me|
|00002bd0| 73 73 61 67 65 20 22 25 | 73 20 61 6e 64 20 25 73 |ssage "%|s and %s|
|00002be0| 20 61 72 65 20 74 68 65 | 20 73 61 6d 65 20 66 69 | are the| same fi|
|00002bf0| 6c 65 20 28 25 73 29 22 | 20 62 75 66 66 65 72 2d |le (%s)"| buffer-|
|00002c00| 66 69 6c 65 2d 74 72 75 | 65 6e 61 6d 65 20 76 65 |file-tru|ename ve|
|00002c10| 72 69 66 79 2d 76 69 73 | 69 74 65 64 2d 66 69 6c |rify-vis|ited-fil|
|00002c20| 65 2d 6d 6f 64 74 69 6d | 65 20 66 69 6c 65 2d 65 |e-modtim|e file-e|
|00002c30| 78 69 73 74 73 2d 70 20 | 22 46 69 6c 65 20 25 73 |xists-p |"File %s|
|00002c40| 20 6e 6f 20 6c 6f 6e 67 | 65 72 20 65 78 69 73 74 | no long|er exist|
|00002c50| 73 21 22 20 79 65 73 2d | 6f 72 2d 6e 6f 2d 70 20 |s!" yes-|or-no-p |
|00002c60| 66 6f 72 6d 61 74 20 62 | 75 66 66 65 72 2d 6d 6f |format b|uffer-mo|
|00002c70| 64 69 66 69 65 64 2d 70 | 20 22 46 69 6c 65 20 25 |dified-p| "File %|
|00002c80| 73 20 63 68 61 6e 67 65 | 64 20 6f 6e 20 64 69 73 |s change|d on dis|
|00002c90| 6b 2e 20 20 44 69 73 63 | 61 72 64 20 79 6f 75 72 |k. Disc|ard your|
|00002ca0| 20 65 64 69 74 73 3f 20 | 22 20 22 46 69 6c 65 20 | edits? |" "File |
|00002cb0| 25 73 20 63 68 61 6e 67 | 65 64 20 6f 6e 20 64 69 |%s chang|ed on di|
|00002cc0| 73 6b 2e 20 20 52 65 61 | 64 20 74 68 65 20 6e 65 |sk. Rea|d the ne|
|00002cd0| 77 20 76 65 72 73 69 6f | 6e 3f 20 22 20 66 69 6c |w versio|n? " fil|
|00002ce0| 65 2d 6e 61 6d 65 2d 6e | 6f 6e 64 69 72 65 63 74 |e-name-n|ondirect|
|00002cf0| 6f 72 79 20 72 65 76 65 | 72 74 2d 62 75 66 66 65 |ory reve|rt-buffe|
|00002d00| 72 20 74 20 63 72 65 61 | 74 65 2d 66 69 6c 65 2d |r t crea|te-file-|
|00002d10| 62 75 66 66 65 72 20 65 | 72 61 73 65 2d 62 75 66 |buffer e|rase-buf|
|00002d20| 66 65 72 20 28 69 6e 73 | 65 72 74 2d 66 69 6c 65 |fer (ins|ert-file|
|00002d30| 2d 63 6f 6e 74 65 6e 74 | 73 20 66 69 6c 65 6e 61 |-content|s filena|
|00002d40| 6d 65 20 74 29 20 28 28 | 66 69 6c 65 2d 65 72 72 |me t) ((|file-err|
|00002d50| 6f 72 20 28 62 79 74 65 | 2d 63 6f 64 65 20 22 c0 |or (byte|-code ".|
|00002d60| 11 5c 6e 89 1b ab 8b 0b | 40 20 ac 86 0b 41 89 13 |.\n.....|@ ...A..|
|00002d70| ac 75 29 c0 87 22 20 5b | 74 20 65 72 72 6f 72 20 |.u).." [|t error |
|00002d80| 66 69 6e 64 2d 66 69 6c | 65 2d 6e 6f 74 2d 66 6f |find-fil|e-not-fo|
|00002d90| 75 6e 64 2d 68 6f 6f 6b | 73 20 68 6f 6f 6b 73 5d |und-hook|s hooks]|
|00002da0| 20 32 29 29 29 20 66 69 | 6c 65 2d 6e 61 6d 65 2d | 2))) fi|le-name-|
|00002db0| 64 69 72 65 63 74 6f 72 | 79 20 64 65 66 61 75 6c |director|y defaul|
|00002dc0| 74 2d 64 69 72 65 63 74 | 6f 72 79 20 61 66 74 65 |t-direct|ory afte|
|00002dd0| 72 2d 66 69 6e 64 2d 66 | 69 6c 65 5d 20 36 20 22 |r-find-f|ile] 6 "|
|00002de0| 5c 0a 52 65 61 64 20 66 | 69 6c 65 20 46 49 4c 45 |\.Read f|ile FILE|
|00002df0| 4e 41 4d 45 20 69 6e 74 | 6f 20 61 20 62 75 66 66 |NAME int|o a buff|
|00002e00| 65 72 20 61 6e 64 20 72 | 65 74 75 72 6e 20 74 68 |er and r|eturn th|
|00002e10| 65 20 62 75 66 66 65 72 | 2e 0a 49 66 20 61 20 62 |e buffer|..If a b|
|00002e20| 75 66 66 65 72 20 65 78 | 69 73 74 73 20 76 69 73 |uffer ex|ists vis|
|00002e30| 69 74 69 6e 67 20 46 49 | 4c 45 4e 41 4d 45 2c 20 |iting FI|LENAME, |
|00002e40| 72 65 74 75 72 6e 20 74 | 68 61 74 20 6f 6e 65 2c |return t|hat one,|
|00002e50| 20 62 75 74 0a 76 65 72 | 69 66 79 20 74 68 61 74 | but.ver|ify that|
|00002e60| 20 74 68 65 20 66 69 6c | 65 20 68 61 73 20 6e 6f | the fil|e has no|
|00002e70| 74 20 63 68 61 6e 67 65 | 64 20 73 69 6e 63 65 20 |t change|d since |
|00002e80| 76 69 73 69 74 65 64 20 | 6f 72 20 73 61 76 65 64 |visited |or saved|
|00002e90| 2e 0a 54 68 65 20 62 75 | 66 66 65 72 20 69 73 20 |..The bu|ffer is |
|00002ea0| 6e 6f 74 20 73 65 6c 65 | 63 74 65 64 2c 20 6a 75 |not sele|cted, ju|
|00002eb0| 73 74 20 72 65 74 75 72 | 6e 65 64 20 74 6f 20 74 |st retur|ned to t|
|00002ec0| 68 65 20 63 61 6c 6c 65 | 72 2e 22 5d 29 0a 28 66 |he calle|r."]).(f|
|00002ed0| 73 65 74 20 27 61 66 74 | 65 72 2d 66 69 6e 64 2d |set 'aft|er-find-|
|00002ee0| 66 69 6c 65 20 23 5b 28 | 26 6f 70 74 69 6f 6e 61 |file #[(|&optiona|
|00002ef0| 6c 20 65 72 72 6f 72 20 | 77 61 72 6e 29 20 22 c0 |l error |warn) ".|
|00002f00| 09 21 3f 12 0b ac f3 c4 | 1d 0e 06 ab 8a c7 09 21 |.!?.....|.......!|
|00002f10| ab 85 c8 12 c9 aa c8 5c | 6e ac 97 0e 5c 6e ab 8a |.......\|n...\n..|
|00002f20| cb cc 20 09 5c 22 ab 83 | cd aa b7 c8 15 0e 06 ad |.. .\"..|........|
|00002f30| b1 ce aa ae 0e 06 ac 85 | c8 15 cf aa a5 c7 d0 0e |........|........|
|00002f40| 11 21 21 ab 83 d2 aa 9a | c4 12 d3 d4 09 21 21 ac |.!!.....|.....!!.|
|00002f50| 90 d5 d6 d7 d8 09 21 5c | 22 21 ab 86 d9 d4 09 21 |......!\|"!.....!|
|00002f60| 21 88 c4 89 1e 1a ab 8d | db 0e 1a 21 88 0d ac 85 |!.......|...!....|
|00002f70| dc dd c8 5c 22 88 2a 0e | 1e ab 84 df c8 21 88 e0 |...\".*.|.....!..|
|00002f80| c8 21 88 e1 e2 0e 23 5c | 22 87 22 20 5b 66 69 6c |.!....#\|"." [fil|
|00002f90| 65 2d 77 72 69 74 61 62 | 6c 65 2d 70 20 62 75 66 |e-writab|le-p buf|
|00002fa0| 66 65 72 2d 66 69 6c 65 | 2d 6e 61 6d 65 20 62 75 |fer-file|-name bu|
|00002fb0| 66 66 65 72 2d 72 65 61 | 64 2d 6f 6e 6c 79 20 6e |ffer-rea|d-only n|
|00002fc0| 6f 6e 69 6e 74 65 72 61 | 63 74 69 76 65 20 6e 69 |onintera|ctive ni|
|00002fd0| 6c 20 6e 6f 74 2d 73 65 | 72 69 6f 75 73 20 65 72 |l not-se|rious er|
|00002fe0| 72 6f 72 20 66 69 6c 65 | 2d 61 74 74 72 69 62 75 |ror file|-attribu|
|00002ff0| 74 65 73 20 74 20 22 46 | 69 6c 65 20 65 78 69 73 |tes t "F|ile exis|
|00003000| 74 73 2c 20 62 75 74 20 | 69 73 20 72 65 61 64 2d |ts, but |is read-|
|00003010| 70 72 6f 74 65 63 74 65 | 64 2e 22 20 77 61 72 6e |protecte|d." warn|
|00003020| 20 66 69 6c 65 2d 6e 65 | 77 65 72 2d 74 68 61 6e | file-ne|wer-than|
|00003030| 2d 66 69 6c 65 2d 70 20 | 6d 61 6b 65 2d 61 75 74 |-file-p |make-aut|
|00003040| 6f 2d 73 61 76 65 2d 66 | 69 6c 65 2d 6e 61 6d 65 |o-save-f|ile-name|
|00003050| 20 22 41 75 74 6f 20 73 | 61 76 65 20 66 69 6c 65 | "Auto s|ave file|
|00003060| 20 69 73 20 6e 65 77 65 | 72 3b 20 63 6f 6e 73 69 | is newe|r; consi|
|00003070| 64 65 72 20 4d 2d 78 20 | 72 65 63 6f 76 65 72 2d |der M-x |recover-|
|00003080| 66 69 6c 65 22 20 22 28 | 4e 65 77 20 66 69 6c 65 |file" "(|New file|
|00003090| 29 22 20 22 46 69 6c 65 | 20 69 73 20 77 72 69 74 |)" "File| is writ|
|000030a0| 65 20 70 72 6f 74 65 63 | 74 65 64 22 20 64 69 72 |e protec|ted" dir|
|000030b0| 65 63 74 6f 72 79 2d 66 | 69 6c 65 2d 6e 61 6d 65 |ectory-f|ile-name|
|000030c0| 20 64 65 66 61 75 6c 74 | 2d 64 69 72 65 63 74 6f | default|-directo|
|000030d0| 72 79 20 22 46 69 6c 65 | 20 6e 6f 74 20 66 6f 75 |ry "File| not fou|
|000030e0| 6e 64 20 61 6e 64 20 64 | 69 72 65 63 74 6f 72 79 |nd and d|irectory|
|000030f0| 20 77 72 69 74 65 2d 70 | 72 6f 74 65 63 74 65 64 | write-p|rotected|
|00003100| 22 20 66 69 6c 65 2d 65 | 78 69 73 74 73 2d 70 20 |" file-e|xists-p |
|00003110| 66 69 6c 65 2d 6e 61 6d | 65 2d 64 69 72 65 63 74 |file-nam|e-direct|
|00003120| 6f 72 79 20 79 65 73 2d | 6f 72 2d 6e 6f 2d 70 20 |ory yes-|or-no-p |
|00003130| 66 6f 72 6d 61 74 20 22 | 54 68 65 20 64 69 72 65 |format "|The dire|
|00003140| 63 74 6f 72 79 20 63 6f | 6e 74 61 69 6e 69 6e 67 |ctory co|ntaining|
|00003150| 20 25 73 20 64 6f 65 73 | 20 6e 6f 74 20 65 78 69 | %s does| not exi|
|00003160| 73 74 2e 20 20 43 72 65 | 61 74 65 3f 20 22 20 61 |st. Cre|ate? " a|
|00003170| 62 62 72 65 76 69 61 74 | 65 2d 66 69 6c 65 2d 6e |bbreviat|e-file-n|
|00003180| 61 6d 65 20 6d 61 6b 65 | 2d 64 69 72 65 63 74 6f |ame make|-directo|
|00003190| 72 79 2d 70 61 74 68 20 | 6d 73 67 20 6d 65 73 73 |ry-path |msg mess|
|000031a0| 61 67 65 20 73 69 74 2d | 66 6f 72 20 31 20 61 75 |age sit-|for 1 au|
|000031b0| 74 6f 2d 73 61 76 65 2d | 64 65 66 61 75 6c 74 20 |to-save-|default |
|000031c0| 61 75 74 6f 2d 73 61 76 | 65 2d 6d 6f 64 65 20 6e |auto-sav|e-mode n|
|000031d0| 6f 72 6d 61 6c 2d 6d 6f | 64 65 20 6d 61 70 63 61 |ormal-mo|de mapca|
|000031e0| 72 20 66 75 6e 63 61 6c | 6c 20 66 69 6e 64 2d 66 |r funcal|l find-f|
|000031f0| 69 6c 65 2d 68 6f 6f 6b | 73 5d 20 36 20 22 5c 0a |ile-hook|s] 6 "\.|
|00003200| 43 61 6c 6c 65 64 20 61 | 66 74 65 72 20 66 69 6e |Called a|fter fin|
|00003210| 64 69 6e 67 20 61 20 66 | 69 6c 65 20 61 6e 64 20 |ding a f|ile and |
|00003220| 62 79 20 74 68 65 20 64 | 65 66 61 75 6c 74 20 72 |by the d|efault r|
|00003230| 65 76 65 72 74 20 66 75 | 6e 63 74 69 6f 6e 2e 0a |evert fu|nction..|
|00003240| 53 65 74 73 20 62 75 66 | 66 65 72 20 6d 6f 64 65 |Sets buf|fer mode|
|00003250| 2c 20 70 61 72 73 65 73 | 20 6c 6f 63 61 6c 20 76 |, parses| local v|
|00003260| 61 72 69 61 62 6c 65 73 | 2e 0a 4f 70 74 69 6f 6e |ariables|..Option|
|00003270| 61 6c 20 61 72 67 73 20 | 45 52 52 4f 52 20 61 6e |al args |ERROR an|
|00003280| 64 20 57 41 52 4e 3a 20 | 45 52 52 4f 52 20 6e 6f |d WARN: |ERROR no|
|00003290| 6e 2d 6e 69 6c 20 6d 65 | 61 6e 73 20 74 68 65 72 |n-nil me|ans ther|
|000032a0| 65 20 77 61 73 20 61 6e | 0a 65 72 72 6f 72 20 69 |e was an|.error i|
|000032b0| 6e 20 72 65 61 64 69 6e | 67 20 74 68 65 20 66 69 |n readin|g the fi|
|000032c0| 6c 65 2e 20 20 57 41 52 | 4e 20 6e 6f 6e 2d 6e 69 |le. WAR|N non-ni|
|000032d0| 6c 20 6d 65 61 6e 73 20 | 77 61 72 6e 20 69 66 20 |l means |warn if |
|000032e0| 74 68 65 72 65 0a 65 78 | 69 73 74 73 20 61 6e 20 |there.ex|ists an |
|000032f0| 61 75 74 6f 2d 73 61 76 | 65 20 66 69 6c 65 20 6d |auto-sav|e file m|
|00003300| 6f 72 65 20 72 65 63 65 | 6e 74 20 74 68 61 6e 20 |ore rece|nt than |
|00003310| 74 68 65 20 76 69 73 69 | 74 65 64 20 66 69 6c 65 |the visi|ted file|
|00003320| 2e 0a 46 69 6e 69 73 68 | 65 73 20 62 79 20 63 61 |..Finish|es by ca|
|00003330| 6c 6c 69 6e 67 20 74 68 | 65 20 66 75 6e 63 74 69 |lling th|e functi|
|00003340| 6f 6e 73 20 69 6e 20 66 | 69 6e 64 2d 66 69 6c 65 |ons in f|ind-file|
|00003350| 2d 68 6f 6f 6b 73 2e 22 | 5d 29 0a 28 66 73 65 74 |-hooks."|]).(fset|
|00003360| 20 27 6e 6f 72 6d 61 6c | 2d 6d 6f 64 65 20 23 5b | 'normal|-mode #[|
|00003370| 28 26 6f 70 74 69 6f 6e | 61 6c 20 66 69 6e 64 2d |(&option|al find-|
|00003380| 66 69 6c 65 29 20 22 08 | ac 86 09 ae 81 c2 20 88 |file) ".|...... .|
|00003390| c3 1c c4 c5 c6 8f 88 0c | ae 84 c4 c7 c8 8f 29 87 |........|......).|
|000033a0| 22 20 5b 66 69 6e 64 2d | 66 69 6c 65 20 64 65 66 |" [find-|file def|
|000033b0| 61 75 6c 74 2d 6d 61 6a | 6f 72 2d 6d 6f 64 65 20 |ault-maj|or-mode |
|000033c0| 66 75 6e 64 61 6d 65 6e | 74 61 6c 2d 6d 6f 64 65 |fundamen|tal-mode|
|000033d0| 20 6e 69 6c 20 65 72 72 | 20 28 73 65 74 2d 61 75 | nil err| (set-au|
|000033e0| 74 6f 2d 6d 6f 64 65 29 | 20 28 28 65 72 72 6f 72 |to-mode)| ((error|
|000033f0| 20 28 62 79 74 65 2d 63 | 6f 64 65 20 22 c0 c1 c2 | (byte-c|ode "...|
|00003400| 0b 21 5c 22 88 c4 13 c0 | 87 22 20 5b 6d 65 73 73 |.!\"....|." [mess|
|00003410| 61 67 65 20 22 46 69 6c | 65 20 6d 6f 64 65 20 73 |age "Fil|e mode s|
|00003420| 70 65 63 69 66 69 63 61 | 74 69 6f 6e 20 65 72 72 |pecifica|tion err|
|00003430| 6f 72 3a 20 25 73 22 20 | 70 72 69 6e 31 2d 74 6f |or: %s" |prin1-to|
|00003440| 2d 73 74 72 69 6e 67 20 | 65 72 72 20 74 5d 20 34 |-string |err t] 4|
|00003450| 29 29 29 20 28 62 79 74 | 65 2d 63 6f 64 65 20 22 |))) (byt|e-code "|
|00003460| c0 09 3f 21 87 22 20 5b | 68 61 63 6b 2d 6c 6f 63 |..?!." [|hack-loc|
|00003470| 61 6c 2d 76 61 72 69 61 | 62 6c 65 73 20 66 69 6e |al-varia|bles fin|
|00003480| 64 2d 66 69 6c 65 5d 20 | 32 29 20 28 28 65 72 72 |d-file] |2) ((err|
|00003490| 6f 72 20 28 62 79 74 65 | 2d 63 6f 64 65 20 22 c0 |or (byte|-code ".|
|000034a0| c1 c2 0b 21 5c 22 87 22 | 20 5b 6d 65 73 73 61 67 |...!\"."| [messag|
|000034b0| 65 20 22 46 69 6c 65 20 | 6c 6f 63 61 6c 2d 76 61 |e "File |local-va|
|000034c0| 72 69 61 62 6c 65 73 20 | 65 72 72 6f 72 3a 20 25 |riables |error: %|
|000034d0| 73 22 20 70 72 69 6e 31 | 2d 74 6f 2d 73 74 72 69 |s" prin1|-to-stri|
|000034e0| 6e 67 20 65 72 72 5d 20 | 34 29 29 29 5d 20 33 20 |ng err] |4)))] 3 |
|000034f0| 22 5c 0a 43 68 6f 6f 73 | 65 20 74 68 65 20 6d 61 |"\.Choos|e the ma|
|00003500| 6a 6f 72 20 6d 6f 64 65 | 20 66 6f 72 20 74 68 69 |jor mode| for thi|
|00003510| 73 20 62 75 66 66 65 72 | 20 61 75 74 6f 6d 61 74 |s buffer| automat|
|00003520| 69 63 61 6c 6c 79 2e 0a | 41 6c 73 6f 20 73 65 74 |ically..|Also set|
|00003530| 73 20 75 70 20 61 6e 79 | 20 73 70 65 63 69 66 69 |s up any| specifi|
|00003540| 65 64 20 6c 6f 63 61 6c | 20 76 61 72 69 61 62 6c |ed local| variabl|
|00003550| 65 73 20 6f 66 20 74 68 | 65 20 66 69 6c 65 2e 0a |es of th|e file..|
|00003560| 55 73 65 73 20 74 68 65 | 20 76 69 73 69 74 65 64 |Uses the| visited|
|00003570| 20 66 69 6c 65 20 6e 61 | 6d 65 2c 20 74 68 65 20 | file na|me, the |
|00003580| 2d 2a 2d 20 6c 69 6e 65 | 2c 20 61 6e 64 20 74 68 |-*- line|, and th|
|00003590| 65 20 6c 6f 63 61 6c 20 | 76 61 72 69 61 62 6c 65 |e local |variable|
|000035a0| 73 20 73 70 65 63 2e 0a | 0a 54 68 69 73 20 66 75 |s spec..|.This fu|
|000035b0| 6e 63 74 69 6f 6e 20 69 | 73 20 63 61 6c 6c 65 64 |nction i|s called|
|000035c0| 20 61 75 74 6f 6d 61 74 | 69 63 61 6c 6c 79 20 66 | automat|ically f|
|000035d0| 72 6f 6d 20 60 66 69 6e | 64 2d 66 69 6c 65 27 2e |rom `fin|d-file'.|
|000035e0| 20 20 49 6e 20 74 68 61 | 74 20 63 61 73 65 2c 0a | In tha|t case,.|
|000035f0| 77 65 20 6d 61 79 20 73 | 65 74 20 75 70 20 73 70 |we may s|et up sp|
|00003600| 65 63 69 66 69 65 64 20 | 6c 6f 63 61 6c 20 76 61 |ecified |local va|
|00003610| 72 69 61 62 6c 65 73 20 | 64 65 70 65 6e 64 69 6e |riables |dependin|
|00003620| 67 20 6f 6e 20 74 68 65 | 20 76 61 6c 75 65 20 6f |g on the| value o|
|00003630| 66 0a 60 65 6e 61 62 6c | 65 2d 6c 6f 63 61 6c 2d |f.`enabl|e-local-|
|00003640| 76 61 72 69 61 62 6c 65 | 73 27 3a 20 69 66 20 69 |variable|s': if i|
|00003650| 74 20 69 73 20 74 2c 20 | 77 65 20 64 6f 3b 20 69 |t is t, |we do; i|
|00003660| 66 20 69 74 20 69 73 20 | 6e 69 6c 2c 20 77 65 20 |f it is |nil, we |
|00003670| 64 6f 6e 27 74 3b 0a 6f | 74 68 65 72 77 69 73 65 |don't;.o|therwise|
|00003680| 2c 20 77 65 20 71 75 65 | 72 79 2e 20 20 60 65 6e |, we que|ry. `en|
|00003690| 61 62 6c 65 2d 6c 6f 63 | 61 6c 2d 76 61 72 69 61 |able-loc|al-varia|
|000036a0| 62 6c 65 73 27 20 69 73 | 20 69 67 6e 6f 72 65 64 |bles' is| ignored|
|000036b0| 20 69 66 20 79 6f 75 0a | 72 75 6e 20 60 6e 6f 72 | if you.|run `nor|
|000036c0| 6d 61 6c 2d 6d 6f 64 65 | 27 20 65 78 70 6c 69 63 |mal-mode|' explic|
|000036d0| 69 74 6c 79 2e 22 20 6e | 69 6c 5d 29 0a 28 66 73 |itly." n|il]).(fs|
|000036e0| 65 74 20 27 73 65 74 2d | 61 75 74 6f 2d 6d 6f 64 |et 'set-|auto-mod|
|000036f0| 65 20 23 5b 6e 69 6c 20 | 22 8a c0 19 c2 c0 21 29 |e #[nil |".....!)|
|00003700| ae bc 0b 3f ae b8 c0 0c | c5 0b 21 0e 06 c7 3d 1e |...?....|..!...=.|
|00003710| 08 1e 09 1e 5c 6e 1e 0b | 0e 0b ac 9b 0e 5c 6e ab |....\n..|.....\n.|
|00003720| 97 cc 0e 5c 6e 40 40 0e | 09 5c 22 ab 86 0e 5c 6e |...\n@@.|.\"...\n|
|00003730| 40 41 16 0b 0e 5c 6e 41 | 16 5c 6e aa 61 0e 0b ad |@A...\nA|.\n.a...|
|00003740| 83 0e 0b 20 2c 29 87 22 | 20 5b 6e 69 6c 20 65 6e |... ,)."| [nil en|
|00003750| 61 62 6c 65 2d 6c 6f 63 | 61 6c 2d 76 61 72 69 61 |able-loc|al-varia|
|00003760| 62 6c 65 73 20 68 61 63 | 6b 2d 6c 6f 63 61 6c 2d |bles hac|k-local-|
|00003770| 76 61 72 69 61 62 6c 65 | 73 2d 70 72 6f 70 2d 6c |variable|s-prop-l|
|00003780| 69 6e 65 20 62 75 66 66 | 65 72 2d 66 69 6c 65 2d |ine buff|er-file-|
|00003790| 6e 61 6d 65 20 61 75 74 | 6f 2d 6d 6f 64 65 2d 61 |name aut|o-mode-a|
|000037a0| 6c 69 73 74 20 66 69 6c | 65 2d 6e 61 6d 65 2d 73 |list fil|e-name-s|
|000037b0| 61 6e 73 2d 76 65 72 73 | 69 6f 6e 73 20 73 79 73 |ans-vers|ions sys|
|000037c0| 74 65 6d 2d 74 79 70 65 | 20 76 61 78 2d 76 6d 73 |tem-type| vax-vms|
|000037d0| 20 63 61 73 65 2d 66 6f | 6c 64 2d 73 65 61 72 63 | case-fo|ld-searc|
|000037e0| 68 20 6e 61 6d 65 20 61 | 6c 69 73 74 20 6d 6f 64 |h name a|list mod|
|000037f0| 65 20 73 74 72 69 6e 67 | 2d 6d 61 74 63 68 5d 20 |e string|-match] |
|00003800| 35 20 22 5c 0a 53 65 6c | 65 63 74 20 6d 61 6a 6f |5 "\.Sel|ect majo|
|00003810| 72 20 6d 6f 64 65 20 61 | 70 70 72 6f 70 72 69 61 |r mode a|ppropria|
|00003820| 74 65 20 66 6f 72 20 63 | 75 72 72 65 6e 74 20 62 |te for c|urrent b|
|00003830| 75 66 66 65 72 2e 0a 4d | 61 79 20 62 61 73 65 20 |uffer..M|ay base |
|00003840| 64 65 63 69 73 69 6f 6e | 20 6f 6e 20 76 69 73 69 |decision| on visi|
|00003850| 74 65 64 20 66 69 6c 65 | 20 6e 61 6d 65 20 28 73 |ted file| name (s|
|00003860| 65 65 20 76 61 72 69 61 | 62 6c 65 20 60 61 75 74 |ee varia|ble `aut|
|00003870| 6f 2d 6d 6f 64 65 2d 61 | 6c 69 73 74 27 29 20 6f |o-mode-a|list') o|
|00003880| 72 20 6f 6e 0a 62 75 66 | 66 65 72 20 63 6f 6e 74 |r on.buf|fer cont|
|00003890| 65 6e 74 73 20 28 74 68 | 65 20 2d 2a 2d 20 6c 69 |ents (th|e -*- li|
|000038a0| 6e 65 29 2c 20 62 75 74 | 20 64 6f 65 73 20 6e 6f |ne), but| does no|
|000038b0| 74 20 6c 6f 6f 6b 20 66 | 6f 72 20 74 68 65 20 5c |t look f|or the \|
|000038c0| 22 6d 6f 64 65 3a 5c 22 | 20 6c 6f 63 61 6c 0a 76 |"mode:\"| local.v|
|000038d0| 61 72 69 61 62 6c 65 20 | 73 70 65 63 20 69 6e 20 |ariable |spec in |
|000038e0| 74 68 65 20 6c 61 73 74 | 20 70 61 67 65 2e 20 20 |the last| page. |
|000038f0| 46 6f 72 20 74 68 61 74 | 2c 20 75 73 65 20 60 68 |For that|, use `h|
|00003900| 61 63 6b 2d 6c 6f 63 61 | 6c 2d 76 61 72 69 61 62 |ack-loca|l-variab|
|00003910| 6c 65 73 27 2e 22 5d 29 | 0a 28 66 73 65 74 20 27 |les'."])|.(fset '|
|00003920| 68 61 63 6b 2d 6c 6f 63 | 61 6c 2d 76 61 72 69 61 |hack-loc|al-varia|
|00003930| 62 6c 65 73 20 23 5b 28 | 26 6f 70 74 69 6f 6e 61 |bles #[(|&optiona|
|00003940| 6c 20 66 6f 72 63 65 29 | 20 22 c0 09 21 88 c2 09 |l force)| "..!...|
|00003950| 21 87 22 20 5b 68 61 63 | 6b 2d 6c 6f 63 61 6c 2d |!." [hac|k-local-|
|00003960| 76 61 72 69 61 62 6c 65 | 73 2d 70 72 6f 70 2d 6c |variable|s-prop-l|
|00003970| 69 6e 65 20 66 6f 72 63 | 65 20 68 61 63 6b 2d 6c |ine forc|e hack-l|
|00003980| 6f 63 61 6c 2d 76 61 72 | 69 61 62 6c 65 73 2d 6c |ocal-var|iables-l|
|00003990| 61 73 74 2d 70 61 67 65 | 5d 20 32 20 22 5c 0a 50 |ast-page|] 2 "\.P|
|000039a0| 61 72 73 65 2c 20 61 6e | 64 20 62 69 6e 64 20 6f |arse, an|d bind o|
|000039b0| 72 20 65 76 61 6c 75 61 | 74 65 20 61 73 20 61 70 |r evalua|te as ap|
|000039c0| 70 72 6f 70 72 69 61 74 | 65 2c 20 61 6e 79 20 6c |propriat|e, any l|
|000039d0| 6f 63 61 6c 20 76 61 72 | 69 61 62 6c 65 73 0a 66 |ocal var|iables.f|
|000039e0| 6f 72 20 63 75 72 72 65 | 6e 74 20 62 75 66 66 65 |or curre|nt buffe|
|000039f0| 72 2e 22 5d 29 0a 28 62 | 79 74 65 2d 63 6f 64 65 |r."]).(b|yte-code|
|00003a00| 20 22 c0 c1 4d 88 c2 c3 | 4d 87 22 20 5b 68 61 63 | "..M...|M." [hac|
|00003a10| 6b 2d 6c 6f 63 61 6c 2d | 76 61 72 69 61 62 6c 65 |k-local-|variable|
|00003a20| 73 2d 6c 61 73 74 2d 70 | 61 67 65 20 23 5b 28 26 |s-last-p|age #[(&|
|00003a30| 6f 70 74 69 6f 6e 61 6c | 20 66 6f 72 63 65 29 20 |optional| force) |
|00003a40| 22 8a 64 62 88 c0 c1 64 | c2 5a 65 5d c3 23 88 c4 |".db...d|.Ze].#..|
|00003a50| 1d c6 c7 c8 c4 23 ad 90 | 0e 09 ae 8c 0e 5c 6e c4 |.....#..|.....\n.|
|00003a60| 3d ae 86 0e 5c 6e ad 82 | cb 8b 29 85 2b 01 c4 c8 |=...\n..|..).+...|
|00003a70| 89 89 89 1e 0c 1e 0d 1e | 0e 1e 0f 1e 10 d1 c8 77 |........|.......w|
|00003a80| 88 6c ac 88 60 c8 7f 88 | 60 7b 16 0d d2 94 62 88 |.l..`...|`{....b.|
|00003a90| 6e ac 88 60 d2 79 88 60 | 7b 16 0f 0e 0f ab 8b 0e |n..`.y.`|{.......|
|00003aa0| 0f 47 16 0e d3 0e 0f 21 | 16 0f 0e 0d ab 86 d3 0e |.G.....!|........|
|00003ab0| 0d 21 16 0d 0e 10 85 2a | 01 0e 14 ab 86 d5 d6 21 |.!.....*|.......!|
|00003ac0| 88 aa 83 d7 79 88 0e 0f | ab 90 d8 0e 0f 21 ab 86 |....y...|.....!..|
|00003ad0| 0e 0e 75 88 aa 84 d9 da | 21 88 d1 c8 77 88 60 16 |..u.....|!...w.`.|
|00003ae0| 0c db c8 77 88 6c ab 84 | d9 dc 21 88 d1 c8 78 88 |...w.l..|..!...x.|
|00003af0| 0e 0c 60 7b 1e 1d de 0e | 1d 21 1e 1f c8 1e 20 0e |..`{....|.!.... .|
|00003b00| 1d 97 e1 98 ab 85 c8 16 | 10 aa de e2 c8 77 88 d7 |........|.....w..|
|00003b10| 75 88 de 70 21 16 20 e3 | c8 78 88 d1 c8 77 88 0e |u..p!. .|.x...w..|
|00003b20| 0d ab 86 d8 0e 0d 21 aa | 81 6c ac 84 d9 e4 21 88 |......!.|.l....!.|
|00003b30| 0e 1f e5 3d ab 8d e6 e7 | 0e 20 21 97 e8 50 21 20 |...=....|. !..P! |
|00003b40| 88 aa a6 0e 1f e9 3d ab | 95 ea 20 eb 98 ab 86 ec |......=.|.. .....|
|00003b50| ed 21 88 aa 94 8a e9 0e | 20 21 88 29 aa 8b ee 0e |.!......| !.)....|
|00003b60| 1f 21 88 0e 1f 0e 20 4c | 88 2b 82 71 00 2d 29 87 |.!.... L|.+.q.-).|
|00003b70| 22 20 5b 73 65 61 72 63 | 68 2d 62 61 63 6b 77 61 |" [searc|h-backwa|
|00003b80| 72 64 20 22 5c 6e 0c 22 | 20 33 30 30 30 20 6d 6f |rd "\n."| 3000 mo|
|00003b90| 76 65 20 74 20 63 61 73 | 65 2d 66 6f 6c 64 2d 73 |ve t cas|e-fold-s|
|00003ba0| 65 61 72 63 68 20 73 65 | 61 72 63 68 2d 66 6f 72 |earch se|arch-for|
|00003bb0| 77 61 72 64 20 22 4c 6f | 63 61 6c 20 56 61 72 69 |ward "Lo|cal Vari|
|00003bc0| 61 62 6c 65 73 3a 22 20 | 6e 69 6c 20 66 6f 72 63 |ables:" |nil forc|
|00003bd0| 65 20 65 6e 61 62 6c 65 | 2d 6c 6f 63 61 6c 2d 76 |e enable|-local-v|
|00003be0| 61 72 69 61 62 6c 65 73 | 20 28 28 62 79 74 65 2d |ariables| ((byte-|
|00003bf0| 63 6f 64 65 20 22 c0 70 | 21 88 c1 c2 c3 c4 0d 21 |code ".p|!......!|
|00003c00| 5c 22 21 87 22 20 5b 73 | 77 69 74 63 68 2d 74 6f |\"!." [s|witch-to|
|00003c10| 2d 62 75 66 66 65 72 20 | 79 2d 6f 72 2d 6e 2d 70 |-buffer |y-or-n-p|
|00003c20| 20 66 6f 72 6d 61 74 20 | 22 53 65 74 20 6c 6f 63 | format |"Set loc|
|00003c30| 61 6c 20 76 61 72 69 61 | 62 6c 65 73 20 61 73 20 |al varia|bles as |
|00003c40| 73 70 65 63 69 66 69 65 | 64 20 61 74 20 65 6e 64 |specifie|d at end|
|00003c50| 20 6f 66 20 25 73 3f 20 | 22 20 66 69 6c 65 2d 6e | of %s? |" file-n|
|00003c60| 61 6d 65 2d 6e 6f 6e 64 | 69 72 65 63 74 6f 72 79 |ame-nond|irectory|
|00003c70| 20 62 75 66 66 65 72 2d | 66 69 6c 65 2d 6e 61 6d | buffer-|file-nam|
|00003c80| 65 5d 20 35 29 29 20 62 | 65 67 20 73 75 66 66 69 |e] 5)) b|eg suffi|
|00003c90| 78 20 70 72 65 66 69 78 | 6c 65 6e 20 70 72 65 66 |x prefix|len pref|
|00003ca0| 69 78 20 63 6f 6e 74 69 | 6e 75 65 20 22 20 09 22 |ix conti|nue " ."|
|00003cb0| 20 30 20 72 65 67 65 78 | 70 2d 71 75 6f 74 65 20 | 0 regex|p-quote |
|00003cc0| 73 65 6c 65 63 74 69 76 | 65 2d 64 69 73 70 6c 61 |selectiv|e-displa|
|00003cd0| 79 20 72 65 2d 73 65 61 | 72 63 68 2d 66 6f 72 77 |y re-sea|rch-forw|
|00003ce0| 61 72 64 20 22 5b 5c 6e | 0d 5d 22 20 31 20 6c 6f |ard "[\n|.]" 1 lo|
|00003cf0| 6f 6b 69 6e 67 2d 61 74 | 20 65 72 72 6f 72 20 22 |oking-at| error "|
|00003d00| 4c 6f 63 61 6c 20 76 61 | 72 69 61 62 6c 65 73 20 |Local va|riables |
|00003d10| 65 6e 74 72 79 20 69 73 | 20 6d 69 73 73 69 6e 67 |entry is| missing|
|00003d20| 20 74 68 65 20 70 72 65 | 66 69 78 22 20 22 5e 3a | the pre|fix" "^:|
|00003d30| 5c 6e 22 20 22 4d 69 73 | 73 69 6e 67 20 63 6f 6c |\n" "Mis|sing col|
|00003d40| 6f 6e 20 69 6e 20 6c 6f | 63 61 6c 20 76 61 72 69 |on in lo|cal vari|
|00003d50| 61 62 6c 65 73 20 65 6e | 74 72 79 22 20 73 74 72 |ables en|try" str|
|00003d60| 20 72 65 61 64 20 76 61 | 72 20 76 61 6c 20 22 65 | read va|r val "e|
|00003d70| 6e 64 22 20 22 5e 3a 22 | 20 22 5c 6e 22 20 22 4c |nd" "^:"| "\n" "L|
|00003d80| 6f 63 61 6c 20 76 61 72 | 69 61 62 6c 65 73 20 65 |ocal var|iables e|
|00003d90| 6e 74 72 79 20 69 73 20 | 74 65 72 6d 69 6e 61 74 |ntry is |terminat|
|00003da0| 65 64 20 69 6e 63 6f 72 | 72 65 63 74 6c 79 22 20 |ed incor|rectly" |
|00003db0| 6d 6f 64 65 20 69 6e 74 | 65 72 6e 20 73 79 6d 62 |mode int|ern symb|
|00003dc0| 6f 6c 2d 6e 61 6d 65 20 | 22 2d 6d 6f 64 65 22 20 |ol-name |"-mode" |
|00003dd0| 65 76 61 6c 20 75 73 65 | 72 2d 6c 6f 67 69 6e 2d |eval use|r-login-|
|00003de0| 6e 61 6d 65 20 22 72 6f | 6f 74 22 20 6d 65 73 73 |name "ro|ot" mess|
|00003df0| 61 67 65 20 22 49 67 6e | 6f 72 69 6e 67 20 60 65 |age "Ign|oring `e|
|00003e00| 76 61 6c 3a 27 20 69 6e | 20 66 69 6c 65 27 73 20 |val:' in| file's |
|00003e10| 6c 6f 63 61 6c 20 76 61 | 72 69 61 62 6c 65 73 22 |local va|riables"|
|00003e20| 20 6d 61 6b 65 2d 6c 6f | 63 61 6c 2d 76 61 72 69 | make-lo|cal-vari|
|00003e30| 61 62 6c 65 5d 20 35 5d | 20 68 61 63 6b 2d 6c 6f |able] 5]| hack-lo|
|00003e40| 63 61 6c 2d 76 61 72 69 | 61 62 6c 65 73 2d 70 72 |cal-vari|ables-pr|
|00003e50| 6f 70 2d 6c 69 6e 65 20 | 23 5b 28 26 6f 70 74 69 |op-line |#[(&opti|
|00003e60| 6f 6e 61 6c 20 66 6f 72 | 63 65 29 20 22 8a 65 62 |onal for|ce) ".eb|
|00003e70| 88 c0 c1 77 88 c1 8a c1 | 7f 88 60 29 c1 1a 1b 1c |...w....|..`)....|
|00003e80| c5 c6 0b c7 23 ab dd c8 | c9 21 ab 8d ca cb cc 94 |....#...|.!......|
|00003e90| cd 94 7b 21 42 43 14 aa | cb 8a c5 c6 0b c7 23 ab |..{!BC..|......#.|
|00003ea0| 86 60 ce 5a 13 aa 84 cf | d0 21 88 29 60 0b 57 ab |.`.Z....|.!.)`.W.|
|00003eb0| b0 c8 d1 21 ac 84 cf d2 | 21 88 d3 95 62 88 cb cc |...!....|!...b...|
|00003ec0| 94 cc 95 7b 97 21 8c 60 | 0b 7d 88 d4 70 21 29 1e |...{.!.`|.}..p!).|
|00003ed0| 15 89 1e 16 0e 15 42 0c | 42 14 d7 c1 77 88 2a aa |......B.|B...w.*.|
|00003ee0| 4b 0c 9f 14 c1 1e 5c 6e | ca 0c 9e 89 16 5c 6e ab |K.....\n|.....\n.|
|00003ef0| 96 c7 12 d8 0e 5c 6e 0c | 5c 22 14 cb d9 0e 5c 6e |.....\n.|\"....\n|
|00003f00| 41 21 97 da 50 21 20 88 | aa 62 29 0c ab b1 0e 1b |A!..P! .|.b).....|
|00003f10| ac 8e 0e 1c c7 3d ac 88 | 0e 1c ab a3 dd 8b ab 9f |.....=..|........|
|00003f20| 0c ab 9c 0c 40 40 0c 40 | 41 1e 15 1e 16 de 0e 16 |....@@.@|A.......|
|00003f30| 21 88 0e 16 0e 15 4c 88 | 2a 0c 41 89 14 ac 64 5c |!.....L.|*.A...d\|
|00003f40| 6e 2c 87 22 20 5b 22 20 | 09 5c 6e 0d 22 20 6e 69 |n,." [" |.\n." ni|
|00003f50| 6c 20 6d 6f 64 65 2d 70 | 20 65 6e 64 20 72 65 73 |l mode-p| end res|
|00003f60| 75 6c 74 20 73 65 61 72 | 63 68 2d 66 6f 72 77 61 |ult sear|ch-forwa|
|00003f70| 72 64 20 22 2d 2a 2d 22 | 20 74 20 6c 6f 6f 6b 69 |rd "-*-"| t looki|
|00003f80| 6e 67 2d 61 74 20 22 5b | 20 09 5d 2a 5c 5c 28 5b |ng-at "[| .]*\\([|
|00003f90| 5e 20 09 5c 6e 0d 3a 3b | 5d 5c 5c 29 2b 5c 5c 28 |^ .\n.:;|]\\)+\\(|
|00003fa0| 5b 20 09 5d 2a 2d 5c 5c | 2a 2d 5c 5c 29 22 20 6d |[ .]*-\\|*-\\)" m|
|00003fb0| 6f 64 65 20 69 6e 74 65 | 72 6e 20 31 20 32 20 33 |ode inte|rn 1 2 3|
|00003fc0| 20 65 72 72 6f 72 20 22 | 2d 2a 2d 20 6e 6f 74 20 | error "|-*- not |
|00003fd0| 74 65 72 6d 69 6e 61 74 | 65 64 20 62 65 66 6f 72 |terminat|ed befor|
|00003fe0| 65 20 65 6e 64 2d 6f 66 | 2d 6c 69 6e 65 22 20 22 |e end-of|-line" "|
|00003ff0| 5b 20 09 5d 2a 5c 5c 28 | 5b 5e 20 09 5c 6e 3a 5d |[ .]*\\(|[^ .\n:]|
|00004000| 2b 5c 5c 29 5b 20 09 5d | 2a 3a 5b 20 09 5d 2a 22 |+\\)[ .]|*:[ .]*"|
|00004010| 20 22 6d 61 6c 66 6f 72 | 6d 65 64 20 2d 2a 2d 20 | "malfor|med -*- |
|00004020| 6c 69 6e 65 22 20 30 20 | 72 65 61 64 20 76 61 6c |line" 0 |read val|
|00004030| 20 6b 65 79 20 22 20 09 | 3b 22 20 64 65 6c 71 20 | key " .|;" delq |
|00004040| 73 79 6d 62 6f 6c 2d 6e | 61 6d 65 20 22 2d 6d 6f |symbol-n|ame "-mo|
|00004050| 64 65 22 20 66 6f 72 63 | 65 20 65 6e 61 62 6c 65 |de" forc|e enable|
|00004060| 2d 6c 6f 63 61 6c 2d 76 | 61 72 69 61 62 6c 65 73 |-local-v|ariables|
|00004070| 20 28 28 62 79 74 65 2d | 63 6f 64 65 20 22 c0 70 | ((byte-|code ".p|
|00004080| 21 88 c1 c2 c3 c4 0d 21 | 5c 22 21 87 22 20 5b 73 |!......!|\"!." [s|
|00004090| 77 69 74 63 68 2d 74 6f | 2d 62 75 66 66 65 72 20 |witch-to|-buffer |
|000040a0| 79 2d 6f 72 2d 6e 2d 70 | 20 66 6f 72 6d 61 74 20 |y-or-n-p| format |
|000040b0| 22 53 65 74 20 6c 6f 63 | 61 6c 20 76 61 72 69 61 |"Set loc|al varia|
|000040c0| 62 6c 65 73 20 61 73 20 | 73 70 65 63 69 66 69 65 |bles as |specifie|
|000040d0| 64 20 69 6e 20 2d 2a 2d | 20 6c 69 6e 65 20 6f 66 |d in -*-| line of|
|000040e0| 20 25 73 3f 20 22 20 66 | 69 6c 65 2d 6e 61 6d 65 | %s? " f|ile-name|
|000040f0| 2d 6e 6f 6e 64 69 72 65 | 63 74 6f 72 79 20 62 75 |-nondire|ctory bu|
|00004100| 66 66 65 72 2d 66 69 6c | 65 2d 6e 61 6d 65 5d 20 |ffer-fil|e-name] |
|00004110| 35 29 29 20 6d 61 6b 65 | 2d 6c 6f 63 61 6c 2d 76 |5)) make|-local-v|
|00004120| 61 72 69 61 62 6c 65 5d | 20 35 5d 5d 20 32 29 0a |ariable]| 5]] 2).|
|00004130| 28 66 73 65 74 20 27 73 | 65 74 2d 76 69 73 69 74 |(fset 's|et-visit|
|00004140| 65 64 2d 66 69 6c 65 2d | 6e 61 6d 65 20 23 5b 28 |ed-file-|name #[(|
|00004150| 66 69 6c 65 6e 61 6d 65 | 29 20 22 08 ab 8a 08 c1 |filename|) ".....|
|00004160| 98 3f ad 83 c2 08 21 10 | 08 0b 9a ac 8a 08 ab 87 |.?....!.|........|
|00004170| c4 08 21 88 c5 20 88 08 | 13 08 ab cf c6 0b 21 89 |..!.. ..|......!.|
|00004180| 1e 07 c1 98 ab 84 c8 c9 | 21 88 0e 5c 6e cb 3d ab |........|!..\n.=.|
|00004190| 85 0e 07 97 16 07 cc 0b | 21 16 0d ce 0e 07 21 70 |........|!.....!p|
|000041a0| 1e 0f 89 1e 10 0e 0f 3d | ac a1 0e 10 ab 98 d1 0b |.......=|........|
|000041b0| 21 1e 12 d3 0e 12 21 16 | 07 d4 0e 12 21 88 29 d5 |!.....!.|....!.).|
|000041c0| 0e 07 21 88 aa 85 d5 0e | 07 21 88 2b d6 20 88 d7 |..!.....|.!.+. ..|
|000041d0| 16 18 d9 20 88 da db 21 | 88 da dc 21 88 da dd 21 |... ...!|...!...!|
|000041e0| 88 da de 21 88 0e 1f ac | 88 e0 0b ad 82 0e 21 21 |...!....|......!!|
|000041f0| 88 0b ad 83 e2 e3 21 87 | 22 20 5b 66 69 6c 65 6e |......!.|" [filen|
|00004200| 61 6d 65 20 22 22 20 65 | 78 70 61 6e 64 2d 66 69 |ame "" e|xpand-fi|
|00004210| 6c 65 2d 6e 61 6d 65 20 | 62 75 66 66 65 72 2d 66 |le-name |buffer-f|
|00004220| 69 6c 65 2d 6e 61 6d 65 | 20 6c 6f 63 6b 2d 62 75 |ile-name| lock-bu|
|00004230| 66 66 65 72 20 75 6e 6c | 6f 63 6b 2d 62 75 66 66 |ffer unl|ock-buff|
|00004240| 65 72 20 66 69 6c 65 2d | 6e 61 6d 65 2d 6e 6f 6e |er file-|name-non|
|00004250| 64 69 72 65 63 74 6f 72 | 79 20 6e 65 77 2d 6e 61 |director|y new-na|
|00004260| 6d 65 20 65 72 72 6f 72 | 20 22 45 6d 70 74 79 20 |me error| "Empty |
|00004270| 66 69 6c 65 20 6e 61 6d | 65 22 20 73 79 73 74 65 |file nam|e" syste|
|00004280| 6d 2d 74 79 70 65 20 76 | 61 78 2d 76 6d 73 20 66 |m-type v|ax-vms f|
|00004290| 69 6c 65 2d 6e 61 6d 65 | 2d 64 69 72 65 63 74 6f |ile-name|-directo|
|000042a0| 72 79 20 64 65 66 61 75 | 6c 74 2d 64 69 72 65 63 |ry defau|lt-direc|
|000042b0| 74 6f 72 79 20 67 65 74 | 2d 62 75 66 66 65 72 20 |tory get|-buffer |
|000042c0| 63 75 72 72 65 6e 74 2d | 62 75 66 66 65 72 20 6e |current-|buffer n|
|000042d0| 65 77 2d 62 75 66 66 65 | 72 20 63 72 65 61 74 65 |ew-buffe|r create|
|000042e0| 2d 66 69 6c 65 2d 62 75 | 66 66 65 72 20 62 75 66 |-file-bu|ffer buf|
|000042f0| 20 62 75 66 66 65 72 2d | 6e 61 6d 65 20 6b 69 6c | buffer-|name kil|
|00004300| 6c 2d 62 75 66 66 65 72 | 20 72 65 6e 61 6d 65 2d |l-buffer| rename-|
|00004310| 62 75 66 66 65 72 20 63 | 6f 6d 70 75 74 65 2d 62 |buffer c|ompute-b|
|00004320| 75 66 66 65 72 2d 66 69 | 6c 65 2d 74 72 75 65 6e |uffer-fi|le-truen|
|00004330| 61 6d 65 20 6e 69 6c 20 | 62 75 66 66 65 72 2d 62 |ame nil |buffer-b|
|00004340| 61 63 6b 65 64 2d 75 70 | 20 63 6c 65 61 72 2d 76 |acked-up| clear-v|
|00004350| 69 73 69 74 65 64 2d 66 | 69 6c 65 2d 6d 6f 64 74 |isited-f|ile-modt|
|00004360| 69 6d 65 20 6b 69 6c 6c | 2d 6c 6f 63 61 6c 2d 76 |ime kill|-local-v|
|00004370| 61 72 69 61 62 6c 65 20 | 77 72 69 74 65 2d 66 69 |ariable |write-fi|
|00004380| 6c 65 2d 68 6f 6f 6b 73 | 20 77 72 69 74 65 2d 66 |le-hooks| write-f|
|00004390| 69 6c 65 2d 64 61 74 61 | 2d 68 6f 6f 6b 73 20 61 |ile-data|-hooks a|
|000043a0| 66 74 65 72 2d 77 72 69 | 74 65 2d 66 69 6c 65 2d |fter-wri|te-file-|
|000043b0| 68 6f 6f 6b 73 20 72 65 | 76 65 72 74 2d 62 75 66 |hooks re|vert-buf|
|000043c0| 66 65 72 2d 66 75 6e 63 | 74 69 6f 6e 20 62 75 66 |fer-func|tion buf|
|000043d0| 66 65 72 2d 61 75 74 6f | 2d 73 61 76 65 2d 66 69 |fer-auto|-save-fi|
|000043e0| 6c 65 2d 6e 61 6d 65 20 | 61 75 74 6f 2d 73 61 76 |le-name |auto-sav|
|000043f0| 65 2d 6d 6f 64 65 20 61 | 75 74 6f 2d 73 61 76 65 |e-mode a|uto-save|
|00004400| 2d 64 65 66 61 75 6c 74 | 20 73 65 74 2d 62 75 66 |-default| set-buf|
|00004410| 66 65 72 2d 6d 6f 64 69 | 66 69 65 64 2d 70 20 74 |fer-modi|fied-p t|
|00004420| 5d 20 33 20 22 5c 0a 43 | 68 61 6e 67 65 20 6e 61 |] 3 "\.C|hange na|
|00004430| 6d 65 20 6f 66 20 66 69 | 6c 65 20 76 69 73 69 74 |me of fi|le visit|
|00004440| 65 64 20 69 6e 20 63 75 | 72 72 65 6e 74 20 62 75 |ed in cu|rrent bu|
|00004450| 66 66 65 72 20 74 6f 20 | 46 49 4c 45 4e 41 4d 45 |ffer to |FILENAME|
|00004460| 2e 0a 54 68 65 20 6e 65 | 78 74 20 74 69 6d 65 20 |..The ne|xt time |
|00004470| 74 68 65 20 62 75 66 66 | 65 72 20 69 73 20 73 61 |the buff|er is sa|
|00004480| 76 65 64 20 69 74 20 77 | 69 6c 6c 20 67 6f 20 69 |ved it w|ill go i|
|00004490| 6e 20 74 68 65 20 6e 65 | 77 6c 79 20 73 70 65 63 |n the ne|wly spec|
|000044a0| 69 66 69 65 64 20 66 69 | 6c 65 2e 0a 6e 69 6c 20 |ified fi|le..nil |
|000044b0| 6f 72 20 65 6d 70 74 79 | 20 73 74 72 69 6e 67 20 |or empty| string |
|000044c0| 61 73 20 61 72 67 75 6d | 65 6e 74 20 6d 65 61 6e |as argum|ent mean|
|000044d0| 73 20 6d 61 6b 65 20 62 | 75 66 66 65 72 20 6e 6f |s make b|uffer no|
|000044e0| 74 20 62 65 20 76 69 73 | 69 74 69 6e 67 20 61 6e |t be vis|iting an|
|000044f0| 79 20 66 69 6c 65 2e 0a | 52 65 6d 65 6d 62 65 72 |y file..|Remember|
|00004500| 20 74 6f 20 64 65 6c 65 | 74 65 20 74 68 65 20 69 | to dele|te the i|
|00004510| 6e 69 74 69 61 6c 20 63 | 6f 6e 74 65 6e 74 73 20 |nitial c|ontents |
|00004520| 6f 66 20 74 68 65 20 6d | 69 6e 69 62 75 66 66 65 |of the m|inibuffe|
|00004530| 72 0a 69 66 20 79 6f 75 | 20 77 69 73 68 20 74 6f |r.if you| wish to|
|00004540| 20 70 61 73 73 20 61 6e | 20 65 6d 70 74 79 20 73 | pass an| empty s|
|00004550| 74 72 69 6e 67 20 61 73 | 20 74 68 65 20 61 72 67 |tring as| the arg|
|00004560| 75 6d 65 6e 74 2e 22 20 | 22 46 53 65 74 20 76 69 |ument." |"FSet vi|
|00004570| 73 69 74 65 64 20 66 69 | 6c 65 20 6e 61 6d 65 3a |sited fi|le name:|
|00004580| 20 22 5d 29 0a 28 66 73 | 65 74 20 27 77 72 69 74 | "]).(fs|et 'writ|
|00004590| 65 2d 66 69 6c 65 20 23 | 5b 28 66 69 6c 65 6e 61 |e-file #|[(filena|
|000045a0| 6d 65 29 20 22 08 ab 89 | 08 c1 98 ac 84 c2 08 21 |me) "...|.......!|
|000045b0| 88 c3 c4 21 88 c5 20 87 | 22 20 5b 66 69 6c 65 6e |...!.. .|" [filen|
|000045c0| 61 6d 65 20 22 22 20 73 | 65 74 2d 76 69 73 69 74 |ame "" s|et-visit|
|000045d0| 65 64 2d 66 69 6c 65 2d | 6e 61 6d 65 20 73 65 74 |ed-file-|name set|
|000045e0| 2d 62 75 66 66 65 72 2d | 6d 6f 64 69 66 69 65 64 |-buffer-|modified|
|000045f0| 2d 70 20 74 20 73 61 76 | 65 2d 62 75 66 66 65 72 |-p t sav|e-buffer|
|00004600| 5d 20 32 20 22 5c 0a 57 | 72 69 74 65 20 63 75 72 |] 2 "\.W|rite cur|
|00004610| 72 65 6e 74 20 62 75 66 | 66 65 72 20 69 6e 74 6f |rent buf|fer into|
|00004620| 20 66 69 6c 65 20 46 49 | 4c 45 4e 41 4d 45 2e 0a | file FI|LENAME..|
|00004630| 4d 61 6b 65 73 20 62 75 | 66 66 65 72 20 76 69 73 |Makes bu|ffer vis|
|00004640| 69 74 20 74 68 61 74 20 | 66 69 6c 65 2c 20 61 6e |it that |file, an|
|00004650| 64 20 6d 61 72 6b 73 20 | 69 74 20 6e 6f 74 20 6d |d marks |it not m|
|00004660| 6f 64 69 66 69 65 64 2e | 22 20 28 62 79 74 65 2d |odified.|" (byte-|
|00004670| 63 6f 64 65 20 22 08 ab | 89 c1 c2 c3 89 89 89 25 |code "..|.......%|
|00004680| aa 8c c1 c2 c4 c5 20 9e | 41 c3 89 c6 20 25 43 87 |...... .|A... %C.|
|00004690| 22 20 5b 62 75 66 66 65 | 72 2d 66 69 6c 65 2d 6e |" [buffe|r-file-n|
|000046a0| 61 6d 65 20 72 65 61 64 | 2d 66 69 6c 65 2d 6e 61 |ame read|-file-na|
|000046b0| 6d 65 20 22 57 72 69 74 | 65 20 66 69 6c 65 3a 20 |me "Writ|e file: |
|000046c0| 22 20 6e 69 6c 20 64 65 | 66 61 75 6c 74 2d 64 69 |" nil de|fault-di|
|000046d0| 72 65 63 74 6f 72 79 20 | 62 75 66 66 65 72 2d 6c |rectory |buffer-l|
|000046e0| 6f 63 61 6c 2d 76 61 72 | 69 61 62 6c 65 73 20 62 |ocal-var|iables b|
|000046f0| 75 66 66 65 72 2d 6e 61 | 6d 65 5d 20 36 29 5d 29 |uffer-na|me] 6)])|
|00004700| 0a 28 66 73 65 74 20 27 | 62 61 63 6b 75 70 2d 62 |.(fset '|backup-b|
|00004710| 75 66 66 65 72 20 23 5b | 6e 69 6c 20 22 08 ad e3 |uffer #[|nil "...|
|00004720| 09 3f ad df c2 0b 21 ad | da c4 0b 21 c5 9c c6 48 |.?....!.|...!...H|
|00004730| c7 3e ad cf 0b c8 89 89 | 89 89 1e 09 1e 5c 6e 1e |.>......|.....\n.|
|00004740| 0b 1e 0c 1e 0d 1e 0e cf | 0e 0e 21 1e 10 0e 0e 0e |........|..!.....|
|00004750| 09 9a 3f ad 97 0e 10 ab | 91 0e 0e 16 09 d1 0e 10 |..?.....|........|
|00004760| d2 0e 0e 21 5c 22 89 16 | 0e aa 82 0e 10 29 ac 58 |...!\"..|.....).X|
|00004770| d3 0e 0e 21 89 16 0d 40 | 16 0c 0e 0d 41 16 0b c8 |...!...@|....A...|
|00004780| d4 d5 8f 2e 06 87 22 20 | 5b 6d 61 6b 65 2d 62 61 |......" |[make-ba|
|00004790| 63 6b 75 70 2d 66 69 6c | 65 73 20 62 75 66 66 65 |ckup-fil|es buffe|
|000047a0| 72 2d 62 61 63 6b 65 64 | 2d 75 70 20 66 69 6c 65 |r-backed|-up file|
|000047b0| 2d 65 78 69 73 74 73 2d | 70 20 62 75 66 66 65 72 |-exists-|p buffer|
|000047c0| 2d 66 69 6c 65 2d 6e 61 | 6d 65 20 66 69 6c 65 2d |-file-na|me file-|
|000047d0| 61 74 74 72 69 62 75 74 | 65 73 20 38 20 30 20 28 |attribut|es 8 0 (|
|000047e0| 34 35 20 31 30 38 29 20 | 6e 69 6c 20 6c 61 73 74 |45 108) |nil last|
|000047f0| 20 73 65 74 6d 6f 64 65 | 73 20 74 61 72 67 65 74 | setmode|s target|
|00004800| 73 20 62 61 63 6b 75 70 | 6e 61 6d 65 20 62 61 63 |s backup|name bac|
|00004810| 6b 75 70 2d 69 6e 66 6f | 20 72 65 61 6c 2d 66 69 |kup-info| real-fi|
|00004820| 6c 65 2d 6e 61 6d 65 20 | 66 69 6c 65 2d 73 79 6d |le-name |file-sym|
|00004830| 6c 69 6e 6b 2d 70 20 74 | 65 6d 20 65 78 70 61 6e |link-p t|em expan|
|00004840| 64 2d 66 69 6c 65 2d 6e | 61 6d 65 20 66 69 6c 65 |d-file-n|ame file|
|00004850| 2d 6e 61 6d 65 2d 64 69 | 72 65 63 74 6f 72 79 20 |-name-di|rectory |
|00004860| 66 69 6e 64 2d 62 61 63 | 6b 75 70 2d 66 69 6c 65 |find-bac|kup-file|
|00004870| 2d 6e 61 6d 65 20 28 62 | 79 74 65 2d 63 6f 64 65 |-name (b|yte-code|
|00004880| 20 22 08 ad 89 09 ae 86 | c2 c3 c4 0d 5c 22 21 1e | "......|....\"!.|
|00004890| 06 c7 c8 c9 8f 88 ca 16 | 0b 0e 06 ab 8e 08 ab 8b |........|........|
|000048a0| c7 cc cd 8f 88 08 41 89 | 10 ac 75 0e 0e 29 87 22 |......A.|..u..)."|
|000048b0| 20 5b 74 61 72 67 65 74 | 73 20 74 72 69 6d 2d 76 | [target|s trim-v|
|000048c0| 65 72 73 69 6f 6e 73 2d | 77 69 74 68 6f 75 74 2d |ersions-|without-|
|000048d0| 61 73 6b 69 6e 67 20 79 | 2d 6f 72 2d 6e 2d 70 20 |asking y|-or-n-p |
|000048e0| 66 6f 72 6d 61 74 20 22 | 44 65 6c 65 74 65 20 65 |format "|Delete e|
|000048f0| 78 63 65 73 73 20 62 61 | 63 6b 75 70 20 76 65 72 |xcess ba|ckup ver|
|00004900| 73 69 6f 6e 73 20 6f 66 | 20 25 73 3f 20 22 20 72 |sions of| %s? " r|
|00004910| 65 61 6c 2d 66 69 6c 65 | 2d 6e 61 6d 65 20 64 65 |eal-file|-name de|
|00004920| 6c 65 74 65 2d 6f 6c 64 | 2d 76 65 72 73 69 6f 6e |lete-old|-version|
|00004930| 73 20 6e 69 6c 20 28 62 | 79 74 65 2d 63 6f 64 65 |s nil (b|yte-code|
|00004940| 20 22 08 ac a7 09 ac a4 | 5c 6e ab 87 c3 0c 21 c5 | "......|\n....!.|
|00004950| 56 ac 9a 0e 06 ab a0 c7 | 0c 21 1e 08 c9 0e 08 38 |V.......|.!.....8|
|00004960| ae 88 ca 0e 08 38 cb 20 | 55 3f 29 ab 8a cc 0c 0e |.....8. |U?).....|
|00004970| 0d ce 89 24 88 aa 8d cf | 0c 0e 0d ce 23 88 d0 0e |...$....|....#...|
|00004980| 0d 21 16 11 c3 87 22 20 | 5b 66 69 6c 65 2d 70 72 |.!...." |[file-pr|
|00004990| 65 63 69 6f 75 73 2d 66 | 6c 61 67 20 62 61 63 6b |ecious-f|lag back|
|000049a0| 75 70 2d 62 79 2d 63 6f | 70 79 69 6e 67 20 62 61 |up-by-co|pying ba|
|000049b0| 63 6b 75 70 2d 62 79 2d | 63 6f 70 79 69 6e 67 2d |ckup-by-|copying-|
|000049c0| 77 68 65 6e 2d 6c 69 6e | 6b 65 64 20 66 69 6c 65 |when-lin|ked file|
|000049d0| 2d 6e 6c 69 6e 6b 73 20 | 72 65 61 6c 2d 66 69 6c |-nlinks |real-fil|
|000049e0| 65 2d 6e 61 6d 65 20 31 | 20 62 61 63 6b 75 70 2d |e-name 1| backup-|
|000049f0| 62 79 2d 63 6f 70 79 69 | 6e 67 2d 77 68 65 6e 2d |by-copyi|ng-when-|
|00004a00| 6d 69 73 6d 61 74 63 68 | 20 66 69 6c 65 2d 61 74 |mismatch| file-at|
|00004a10| 74 72 69 62 75 74 65 73 | 20 61 74 74 72 20 39 20 |tributes| attr 9 |
|00004a20| 32 20 75 73 65 72 2d 75 | 69 64 20 63 6f 70 79 2d |2 user-u|id copy-|
|00004a30| 66 69 6c 65 20 62 61 63 | 6b 75 70 6e 61 6d 65 20 |file bac|kupname |
|00004a40| 74 20 72 65 6e 61 6d 65 | 2d 66 69 6c 65 20 66 69 |t rename|-file fi|
|00004a50| 6c 65 2d 6d 6f 64 65 73 | 20 73 65 74 6d 6f 64 65 |le-modes| setmode|
|00004a60| 73 5d 20 35 29 20 28 28 | 66 69 6c 65 2d 65 72 72 |s] 5) ((|file-err|
|00004a70| 6f 72 20 28 62 79 74 65 | 2d 63 6f 64 65 20 22 c0 |or (byte|-code ".|
|00004a80| c1 21 12 c3 c4 21 88 c5 | c6 21 88 c7 0e 08 5c 6e |.!...!..|.!....\n|
|00004a90| c9 89 24 87 22 20 5b 65 | 78 70 61 6e 64 2d 66 69 |..$." [e|xpand-fi|
|00004aa0| 6c 65 2d 6e 61 6d 65 20 | 22 7e 2f 25 62 61 63 6b |le-name |"~/%back|
|00004ab0| 75 70 25 7e 22 20 62 61 | 63 6b 75 70 6e 61 6d 65 |up%~" ba|ckupname|
|00004ac0| 20 6d 65 73 73 61 67 65 | 20 22 43 61 6e 6e 6f 74 | message| "Cannot|
|00004ad0| 20 77 72 69 74 65 20 62 | 61 63 6b 75 70 20 66 69 | write b|ackup fi|
|00004ae0| 6c 65 3b 20 62 61 63 6b | 69 6e 67 20 75 70 20 69 |le; back|ing up i|
|00004af0| 6e 20 7e 2f 25 25 62 61 | 63 6b 75 70 25 25 7e 22 |n ~/%%ba|ckup%%~"|
|00004b00| 20 73 6c 65 65 70 2d 66 | 6f 72 20 31 20 63 6f 70 | sleep-f|or 1 cop|
|00004b10| 79 2d 66 69 6c 65 20 72 | 65 61 6c 2d 66 69 6c 65 |y-file r|eal-file|
|00004b20| 2d 6e 61 6d 65 20 74 5d | 20 35 29 29 29 20 74 20 |-name t]| 5))) t |
|00004b30| 62 75 66 66 65 72 2d 62 | 61 63 6b 65 64 2d 75 70 |buffer-b|acked-up|
|00004b40| 20 28 62 79 74 65 2d 63 | 6f 64 65 20 22 c0 09 40 | (byte-c|ode "..@|
|00004b50| 21 87 22 20 5b 64 65 6c | 65 74 65 2d 66 69 6c 65 |!." [del|ete-file|
|00004b60| 20 74 61 72 67 65 74 73 | 5d 20 32 29 20 28 28 66 | targets|] 2) ((f|
|00004b70| 69 6c 65 2d 65 72 72 6f | 72 29 29 20 73 65 74 6d |ile-erro|r)) setm|
|00004b80| 6f 64 65 73 5d 20 35 29 | 20 28 28 66 69 6c 65 2d |odes] 5)| ((file-|
|00004b90| 65 72 72 6f 72 29 29 5d | 20 37 20 22 5c 0a 4d 61 |error))]| 7 "\.Ma|
|00004ba0| 6b 65 20 61 20 62 61 63 | 6b 75 70 20 6f 66 20 74 |ke a bac|kup of t|
|00004bb0| 68 65 20 64 69 73 6b 20 | 66 69 6c 65 20 76 69 73 |he disk |file vis|
|00004bc0| 69 74 65 64 20 62 79 20 | 74 68 65 20 63 75 72 72 |ited by |the curr|
|00004bd0| 65 6e 74 20 62 75 66 66 | 65 72 2c 20 69 66 20 61 |ent buff|er, if a|
|00004be0| 70 70 72 6f 70 72 69 61 | 74 65 2e 0a 54 68 69 73 |ppropria|te..This|
|00004bf0| 20 69 73 20 6e 6f 72 6d | 61 6c 6c 79 20 64 6f 6e | is norm|ally don|
|00004c00| 65 20 62 65 66 6f 72 65 | 20 73 61 76 69 6e 67 20 |e before| saving |
|00004c10| 74 68 65 20 62 75 66 66 | 65 72 20 74 68 65 20 66 |the buff|er the f|
|00004c20| 69 72 73 74 20 74 69 6d | 65 2e 0a 49 66 20 74 68 |irst tim|e..If th|
|00004c30| 65 20 76 61 6c 75 65 20 | 69 73 20 6e 6f 6e 2d 6e |e value |is non-n|
|00004c40| 69 6c 2c 20 69 74 20 69 | 73 20 74 68 65 20 72 65 |il, it i|s the re|
|00004c50| 73 75 6c 74 20 6f 66 20 | 60 66 69 6c 65 2d 6d 6f |sult of |`file-mo|
|00004c60| 64 65 73 27 20 6f 6e 20 | 74 68 65 20 6f 72 69 67 |des' on |the orig|
|00004c70| 69 6e 61 6c 20 66 69 6c | 65 3b 0a 74 68 69 73 20 |inal fil|e;.this |
|00004c80| 6d 65 61 6e 73 20 74 68 | 61 74 20 74 68 65 20 63 |means th|at the c|
|00004c90| 61 6c 6c 65 72 2c 20 61 | 66 74 65 72 20 73 61 76 |aller, a|fter sav|
|00004ca0| 69 6e 67 20 74 68 65 20 | 62 75 66 66 65 72 2c 20 |ing the |buffer, |
|00004cb0| 73 68 6f 75 6c 64 20 63 | 68 61 6e 67 65 20 74 68 |should c|hange th|
|00004cc0| 65 20 6d 6f 64 65 73 0a | 6f 66 20 74 68 65 20 6e |e modes.|of the n|
|00004cd0| 65 77 20 66 69 6c 65 20 | 74 6f 20 61 67 72 65 65 |ew file |to agree|
|00004ce0| 20 77 69 74 68 20 74 68 | 65 20 6f 6c 64 20 6d 6f | with th|e old mo|
|00004cf0| 64 65 73 2e 22 5d 29 0a | 28 66 73 65 74 20 27 66 |des."]).|(fset 'f|
|00004d00| 69 6c 65 2d 6e 61 6d 65 | 2d 73 61 6e 73 2d 76 65 |ile-name|-sans-ve|
|00004d10| 72 73 69 6f 6e 73 20 23 | 5b 28 6e 61 6d 65 29 20 |rsions #|[(name) |
|00004d20| 22 08 c1 5c 6e c3 3d ab | 94 c4 c5 08 5c 22 ae 9c |"..\n.=.|....\"..|
|00004d30| c4 c6 08 5c 22 ab 84 c7 | 94 ae 92 08 47 aa 8e c4 |...\"...|....G...|
|00004d40| c8 08 5c 22 ae 88 c4 c9 | 08 5c 22 ae 82 08 47 4f |..\"....|.\"...GO|
|00004d50| 87 22 20 5b 6e 61 6d 65 | 20 30 20 73 79 73 74 65 |." [name| 0 syste|
|00004d60| 6d 2d 74 79 70 65 20 76 | 61 78 2d 76 6d 73 20 73 |m-type v|ax-vms s|
|00004d70| 74 72 69 6e 67 2d 6d 61 | 74 63 68 20 22 3b 5b 2d |tring-ma|tch ";[-|
|00004d80| 2d 2d 2b 5d 3f 5b 30 2d | 39 5d 2a 5c 5c 27 22 20 |--+]?[0-|9]*\\'" |
|00004d90| 22 5c 5c 2e 5b 5e 5d 3e | 3a 5d 2a 5c 5c 28 5c 5c |"\\.[^]>|:]*\\(\\|
|00004da0| 2e 5b 2d 2d 2d 2b 5d 3f | 5b 30 2d 39 5d 2a 5c 5c |.[---+]?|[0-9]*\\|
|00004db0| 29 5c 5c 27 22 20 31 20 | 22 5c 5c 2e 7e 5b 30 2d |)\\'" 1 |"\\.~[0-|
|00004dc0| 39 5d 2b 7e 5c 5c 27 22 | 20 22 7e 5c 5c 27 22 5d |9]+~\\'"| "~\\'"]|
|00004dd0| 20 35 20 22 5c 0a 52 65 | 74 75 72 6e 20 46 49 4c | 5 "\.Re|turn FIL|
|00004de0| 45 4e 41 4d 45 20 73 61 | 6e 73 20 62 61 63 6b 75 |ENAME sa|ns backu|
|00004df0| 70 20 76 65 72 73 69 6f | 6e 73 20 6f 72 20 73 74 |p versio|ns or st|
|00004e00| 72 69 6e 67 73 2e 0a 54 | 68 69 73 20 69 73 20 61 |rings..T|his is a|
|00004e10| 20 73 65 70 61 72 61 74 | 65 20 70 72 6f 63 65 64 | separat|e proced|
|00004e20| 75 72 65 20 73 6f 20 79 | 6f 75 72 20 73 69 74 65 |ure so y|our site|
|00004e30| 2d 69 6e 69 74 20 6f 72 | 20 73 74 61 72 74 75 70 |-init or| startup|
|00004e40| 20 66 69 6c 65 20 63 61 | 6e 0a 72 65 64 65 66 69 | file ca|n.redefi|
|00004e50| 6e 65 20 69 74 2e 22 5d | 29 0a 28 66 73 65 74 20 |ne it."]|).(fset |
|00004e60| 27 6d 61 6b 65 2d 62 61 | 63 6b 75 70 2d 66 69 6c |'make-ba|ckup-fil|
|00004e70| 65 2d 6e 61 6d 65 20 23 | 5b 28 66 69 6c 65 29 20 |e-name #|[(file) |
|00004e80| 22 08 c1 50 87 22 20 5b | 66 69 6c 65 20 22 7e 22 |"..P." [|file "~"|
|00004e90| 5d 20 32 20 22 5c 0a 43 | 72 65 61 74 65 20 74 68 |] 2 "\.C|reate th|
|00004ea0| 65 20 6e 6f 6e 2d 6e 75 | 6d 65 72 69 63 20 62 61 |e non-nu|meric ba|
|00004eb0| 63 6b 75 70 20 66 69 6c | 65 20 6e 61 6d 65 20 66 |ckup fil|e name f|
|00004ec0| 6f 72 20 46 49 4c 45 2e | 0a 54 68 69 73 20 69 73 |or FILE.|.This is|
|00004ed0| 20 61 20 73 65 70 61 72 | 61 74 65 20 66 75 6e 63 | a separ|ate func|
|00004ee0| 74 69 6f 6e 20 73 6f 20 | 79 6f 75 20 63 61 6e 20 |tion so |you can |
|00004ef0| 72 65 64 65 66 69 6e 65 | 20 69 74 20 66 6f 72 20 |redefine| it for |
|00004f00| 63 75 73 74 6f 6d 69 7a | 61 74 69 6f 6e 2e 22 5d |customiz|ation."]|
|00004f10| 29 0a 28 66 73 65 74 20 | 27 62 61 63 6b 75 70 2d |).(fset |'backup-|
|00004f20| 66 69 6c 65 2d 6e 61 6d | 65 2d 70 20 23 5b 28 66 |file-nam|e-p #[(f|
|00004f30| 69 6c 65 29 20 22 c0 c1 | 5c 6e 5c 22 87 22 20 5b |ile) "..|\n\"." [|
|00004f40| 73 74 72 69 6e 67 2d 6d | 61 74 63 68 20 22 7e 24 |string-m|atch "~$|
|00004f50| 22 20 66 69 6c 65 5d 20 | 33 20 22 5c 0a 52 65 74 |" file] |3 "\.Ret|
|00004f60| 75 72 6e 20 6e 6f 6e 2d | 6e 69 6c 20 69 66 20 46 |urn non-|nil if F|
|00004f70| 49 4c 45 20 69 73 20 61 | 20 62 61 63 6b 75 70 20 |ILE is a| backup |
|00004f80| 66 69 6c 65 20 6e 61 6d | 65 20 28 6e 75 6d 65 72 |file nam|e (numer|
|00004f90| 69 63 20 6f 72 20 6e 6f | 74 29 2e 0a 54 68 69 73 |ic or no|t)..This|
|00004fa0| 20 69 73 20 61 20 73 65 | 70 61 72 61 74 65 20 66 | is a se|parate f|
|00004fb0| 75 6e 63 74 69 6f 6e 20 | 73 6f 20 79 6f 75 20 63 |unction |so you c|
|00004fc0| 61 6e 20 72 65 64 65 66 | 69 6e 65 20 69 74 20 66 |an redef|ine it f|
|00004fd0| 6f 72 20 63 75 73 74 6f | 6d 69 7a 61 74 69 6f 6e |or custo|mization|
|00004fe0| 2e 0a 59 6f 75 20 6d 61 | 79 20 6e 65 65 64 20 74 |..You ma|y need t|
|00004ff0| 6f 20 72 65 64 65 66 69 | 6e 65 20 66 69 6c 65 2d |o redefi|ne file-|
|00005000| 6e 61 6d 65 2d 73 61 6e | 73 2d 76 65 72 73 69 6f |name-san|s-versio|
|00005010| 6e 73 20 61 73 20 77 65 | 6c 6c 2e 22 5d 29 0a 28 |ns as we|ll."]).(|
|00005020| 66 73 65 74 20 27 66 69 | 6e 64 2d 62 61 63 6b 75 |fset 'fi|nd-backu|
|00005030| 70 2d 66 69 6c 65 2d 6e | 61 6d 65 20 23 5b 28 66 |p-file-n|ame #[(f|
|00005040| 6e 29 20 22 08 c1 3d ab | 85 c2 0b 21 43 87 c4 0b |n) "..=.|...!C...|
|00005050| 21 c5 50 89 1e 06 47 1e | 07 c8 0e 06 c9 0b 21 5c |!.P...G.|......!\|
|00005060| 22 1e 5c 6e cb cc cd 0e | 5c 6e 5c 22 ce 5c 22 1e |".\n....|\n\".\".|
|00005070| 0f d0 d1 d2 0e 0f 42 5c | 22 1e 13 08 ae 84 0e 13 |......B\|".......|
|00005080| d2 56 1e 14 0e 0f 47 0e | 15 5a 0e 16 5a d7 5a 1e |.V....G.|.Z..Z.Z.|
|00005090| 18 0e 14 ac 86 c2 0b 21 | 43 aa a6 0b c5 d9 0e 13 |.......!|C.......|
|000050a0| 54 21 da 52 0e 18 d2 56 | ad 96 cc db 0e 15 0e 0f |T!.R...V|........|
|000050b0| 9b 1e 1c 0e 18 53 0e 1c | 9b dd a1 88 0e 1c 29 5c |.....S..|......)\|
|000050c0| 22 42 2e 07 87 22 20 5b | 76 65 72 73 69 6f 6e 2d |"B..." [|version-|
|000050d0| 63 6f 6e 74 72 6f 6c 20 | 6e 65 76 65 72 20 6d 61 |control |never ma|
|000050e0| 6b 65 2d 62 61 63 6b 75 | 70 2d 66 69 6c 65 2d 6e |ke-backu|p-file-n|
|000050f0| 61 6d 65 20 66 6e 20 66 | 69 6c 65 2d 6e 61 6d 65 |ame fn f|ile-name|
|00005100| 2d 6e 6f 6e 64 69 72 65 | 63 74 6f 72 79 20 22 2e |-nondire|ctory ".|
|00005110| 7e 22 20 62 61 73 65 2d | 76 65 72 73 69 6f 6e 73 |~" base-|versions|
|00005120| 20 62 76 2d 6c 65 6e 67 | 74 68 20 66 69 6c 65 2d | bv-leng|th file-|
|00005130| 6e 61 6d 65 2d 61 6c 6c | 2d 63 6f 6d 70 6c 65 74 |name-all|-complet|
|00005140| 69 6f 6e 73 20 66 69 6c | 65 2d 6e 61 6d 65 2d 64 |ions fil|e-name-d|
|00005150| 69 72 65 63 74 6f 72 79 | 20 70 6f 73 73 69 62 69 |irectory| possibi|
|00005160| 6c 69 74 69 65 73 20 73 | 6f 72 74 20 6d 61 70 63 |lities s|ort mapc|
|00005170| 61 72 20 62 61 63 6b 75 | 70 2d 65 78 74 72 61 63 |ar backu|p-extrac|
|00005180| 74 2d 76 65 72 73 69 6f | 6e 20 3c 20 76 65 72 73 |t-versio|n < vers|
|00005190| 69 6f 6e 73 20 61 70 70 | 6c 79 20 6d 61 78 20 30 |ions app|ly max 0|
|000051a0| 20 68 69 67 68 2d 77 61 | 74 65 72 2d 6d 61 72 6b | high-wa|ter-mark|
|000051b0| 20 64 65 73 65 72 76 65 | 2d 76 65 72 73 69 6f 6e | deserve|-version|
|000051c0| 73 2d 70 20 6b 65 70 74 | 2d 6f 6c 64 2d 76 65 72 |s-p kept|-old-ver|
|000051d0| 73 69 6f 6e 73 20 6b 65 | 70 74 2d 6e 65 77 2d 76 |sions ke|pt-new-v|
|000051e0| 65 72 73 69 6f 6e 73 20 | 2d 31 20 6e 75 6d 62 65 |ersions |-1 numbe|
|000051f0| 72 2d 74 6f 2d 64 65 6c | 65 74 65 20 69 6e 74 2d |r-to-del|ete int-|
|00005200| 74 6f 2d 73 74 72 69 6e | 67 20 22 7e 22 20 23 5b |to-strin|g "~" #[|
|00005210| 28 6e 29 20 22 08 c1 c2 | 0b 21 c4 52 87 22 20 5b |(n) "...|.!.R." [|
|00005220| 66 6e 20 22 2e 7e 22 20 | 69 6e 74 2d 74 6f 2d 73 |fn ".~" |int-to-s|
|00005230| 74 72 69 6e 67 20 6e 20 | 22 7e 22 5d 20 34 5d 20 |tring n |"~"] 4] |
|00005240| 76 20 6e 69 6c 5d 20 36 | 20 22 5c 0a 46 69 6e 64 |v nil] 6| "\.Find|
|00005250| 20 61 20 66 69 6c 65 20 | 6e 61 6d 65 20 66 6f 72 | a file |name for|
|00005260| 20 61 20 62 61 63 6b 75 | 70 20 66 69 6c 65 2c 20 | a backu|p file, |
|00005270| 61 6e 64 20 73 75 67 67 | 65 73 74 69 6f 6e 73 20 |and sugg|estions |
|00005280| 66 6f 72 20 64 65 6c 65 | 74 69 6f 6e 73 2e 0a 56 |for dele|tions..V|
|00005290| 61 6c 75 65 20 69 73 20 | 61 20 6c 69 73 74 20 77 |alue is |a list w|
|000052a0| 68 6f 73 65 20 63 61 72 | 20 69 73 20 74 68 65 20 |hose car| is the |
|000052b0| 6e 61 6d 65 20 66 6f 72 | 20 74 68 65 20 62 61 63 |name for| the bac|
|000052c0| 6b 75 70 20 66 69 6c 65 | 0a 20 61 6e 64 20 77 68 |kup file|. and wh|
|000052d0| 6f 73 65 20 63 64 72 20 | 69 73 20 61 20 6c 69 73 |ose cdr |is a lis|
|000052e0| 74 20 6f 66 20 6f 6c 64 | 20 76 65 72 73 69 6f 6e |t of old| version|
|000052f0| 73 20 74 6f 20 63 6f 6e | 73 69 64 65 72 20 64 65 |s to con|sider de|
|00005300| 6c 65 74 69 6e 67 20 6e | 6f 77 2e 22 5d 29 0a 28 |leting n|ow."]).(|
|00005310| 66 73 65 74 20 27 62 61 | 63 6b 75 70 2d 65 78 74 |fset 'ba|ckup-ext|
|00005320| 72 61 63 74 2d 76 65 72 | 73 69 6f 6e 20 23 5b 28 |ract-ver|sion #[(|
|00005330| 66 6e 29 20 22 c0 c1 5c | 6e 0b 23 ab 8d c4 94 0b |fn) "..\|n.#.....|
|00005340| 55 ab 87 c5 5c 6e 0b c6 | 4f 21 87 c4 87 22 20 5b |U...\n..|O!..." [|
|00005350| 73 74 72 69 6e 67 2d 6d | 61 74 63 68 20 22 5b 30 |string-m|atch "[0|
|00005360| 2d 39 5d 2b 7e 24 22 20 | 66 6e 20 62 76 2d 6c 65 |-9]+~$" |fn bv-le|
|00005370| 6e 67 74 68 20 30 20 73 | 74 72 69 6e 67 2d 74 6f |ngth 0 s|tring-to|
|00005380| 2d 69 6e 74 20 2d 31 5d | 20 34 5d 29 0a 28 66 73 |-int -1]| 4]).(fs|
|00005390| 65 74 20 27 66 69 6c 65 | 2d 6e 6c 69 6e 6b 73 20 |et 'file|-nlinks |
|000053a0| 23 5b 28 66 69 6c 65 6e | 61 6d 65 29 20 22 c0 09 |#[(filen|ame) "..|
|000053b0| 21 41 40 87 22 20 5b 66 | 69 6c 65 2d 61 74 74 72 |!A@." [f|ile-attr|
|000053c0| 69 62 75 74 65 73 20 66 | 69 6c 65 6e 61 6d 65 5d |ibutes f|ilename]|
|000053d0| 20 32 20 22 5c 0a 52 65 | 74 75 72 6e 20 6e 75 6d | 2 "\.Re|turn num|
|000053e0| 62 65 72 20 6f 66 20 6e | 61 6d 65 73 20 66 69 6c |ber of n|ames fil|
|000053f0| 65 20 46 49 4c 45 4e 41 | 4d 45 20 68 61 73 2e 22 |e FILENA|ME has."|
|00005400| 5d 29 0a 28 66 73 65 74 | 20 27 66 69 6c 65 2d 72 |]).(fset| 'file-r|
|00005410| 65 6c 61 74 69 76 65 2d | 6e 61 6d 65 2d 31 20 23 |elative-|name-1 #|
|00005420| 5b 28 64 69 72 65 63 74 | 6f 72 79 29 20 22 08 c1 |[(direct|ory) "..|
|00005430| 98 ab 82 5c 6e 87 c3 c4 | c5 08 21 50 5c 6e 5c 22 |...\n...|..!P\n\"|
|00005440| ab 86 5c 6e c6 95 c7 4f | 87 c8 c9 08 c6 ca 4f 21 |..\n...O|......O!|
|00005450| 21 87 22 20 5b 64 69 72 | 65 63 74 6f 72 79 20 22 |!." [dir|ectory "|
|00005460| 2f 22 20 66 69 6c 65 6e | 61 6d 65 20 73 74 72 69 |/" filen|ame stri|
|00005470| 6e 67 2d 6d 61 74 63 68 | 20 22 5e 22 20 72 65 67 |ng-match| "^" reg|
|00005480| 65 78 70 2d 71 75 6f 74 | 65 20 30 20 6e 69 6c 20 |exp-quot|e 0 nil |
|00005490| 66 69 6c 65 2d 72 65 6c | 61 74 69 76 65 2d 6e 61 |file-rel|ative-na|
|000054a0| 6d 65 2d 31 20 66 69 6c | 65 2d 6e 61 6d 65 2d 64 |me-1 fil|e-name-d|
|000054b0| 69 72 65 63 74 6f 72 79 | 20 2d 31 5d 20 35 5d 29 |irectory| -1] 5])|
|000054c0| 0a 28 66 73 65 74 20 27 | 66 69 6c 65 2d 72 65 6c |.(fset '|file-rel|
|000054d0| 61 74 69 76 65 2d 6e 61 | 6d 65 20 23 5b 28 66 69 |ative-na|me #[(fi|
|000054e0| 6c 65 6e 61 6d 65 20 26 | 6f 70 74 69 6f 6e 61 6c |lename &|optional|
|000054f0| 20 64 69 72 65 63 74 6f | 72 79 29 20 22 c0 09 21 | directo|ry) "..!|
|00005500| 11 c2 0b ab 85 c0 0b 21 | aa 81 0c 21 13 c5 0b 21 |.......!|...!...!|
|00005510| 87 22 20 5b 65 78 70 61 | 6e 64 2d 66 69 6c 65 2d |." [expa|nd-file-|
|00005520| 6e 61 6d 65 20 66 69 6c | 65 6e 61 6d 65 20 66 69 |name fil|ename fi|
|00005530| 6c 65 2d 6e 61 6d 65 2d | 61 73 2d 64 69 72 65 63 |le-name-|as-direc|
|00005540| 74 6f 72 79 20 64 69 72 | 65 63 74 6f 72 79 20 64 |tory dir|ectory d|
|00005550| 65 66 61 75 6c 74 2d 64 | 69 72 65 63 74 6f 72 79 |efault-d|irectory|
|00005560| 20 66 69 6c 65 2d 72 65 | 6c 61 74 69 76 65 2d 6e | file-re|lative-n|
|00005570| 61 6d 65 2d 31 5d 20 33 | 20 22 5c 0a 43 6f 6e 76 |ame-1] 3| "\.Conv|
|00005580| 65 72 74 20 46 49 4c 45 | 4e 41 4d 45 20 74 6f 20 |ert FILE|NAME to |
|00005590| 62 65 20 72 65 6c 61 74 | 69 76 65 20 74 6f 20 44 |be relat|ive to D|
|000055a0| 49 52 45 43 54 4f 52 59 | 20 28 64 65 66 61 75 6c |IRECTORY| (defaul|
|000055b0| 74 3a 20 64 65 66 61 75 | 6c 74 2d 64 69 72 65 63 |t: defau|lt-direc|
|000055c0| 74 6f 72 79 29 2e 22 5d | 29 0a 28 66 73 65 74 20 |tory)."]|).(fset |
|000055d0| 27 73 61 76 65 2d 62 75 | 66 66 65 72 20 23 5b 28 |'save-bu|ffer #[(|
|000055e0| 26 6f 70 74 69 6f 6e 61 | 6c 20 61 72 67 73 29 20 |&optiona|l args) |
|000055f0| 22 c0 20 c1 20 c2 56 0b | ad 84 0c c5 3d 3f 1b 1e |". . .V.|....=?..|
|00005600| 06 89 1e 07 ab 88 0c c8 | 3e ab 83 c9 16 5c 6e 0e |........|>....\n.|
|00005610| 07 ab 8a 0e 06 ab 86 cb | cc cd 20 5c 22 88 ce 20 |........|.. \".. |
|00005620| 88 0e 07 ad 89 0c cf 3e | ad 84 c9 89 16 5c 6e 2b |.......>|.....\n+|
|00005630| 87 22 20 5b 62 75 66 66 | 65 72 2d 6d 6f 64 69 66 |." [buff|er-modif|
|00005640| 69 65 64 2d 70 20 62 75 | 66 66 65 72 2d 73 69 7a |ied-p bu|ffer-siz|
|00005650| 65 20 35 30 30 30 30 20 | 6d 61 6b 65 2d 62 61 63 |e 50000 |make-bac|
|00005660| 6b 75 70 2d 66 69 6c 65 | 73 20 61 72 67 73 20 30 |kup-file|s args 0|
|00005670| 20 6c 61 72 67 65 20 6d | 6f 64 70 20 28 31 36 20 | large m|odp (16 |
|00005680| 36 34 29 20 6e 69 6c 20 | 62 75 66 66 65 72 2d 62 |64) nil |buffer-b|
|00005690| 61 63 6b 65 64 2d 75 70 | 20 6d 65 73 73 61 67 65 |acked-up| message|
|000056a0| 20 22 53 61 76 69 6e 67 | 20 66 69 6c 65 20 25 73 | "Saving| file %s|
|000056b0| 2e 2e 2e 22 20 62 75 66 | 66 65 72 2d 66 69 6c 65 |..." buf|fer-file|
|000056c0| 2d 6e 61 6d 65 20 62 61 | 73 69 63 2d 73 61 76 65 |-name ba|sic-save|
|000056d0| 2d 62 75 66 66 65 72 20 | 28 34 20 36 34 29 5d 20 |-buffer |(4 64)] |
|000056e0| 35 20 22 5c 0a 53 61 76 | 65 20 63 75 72 72 65 6e |5 "\.Sav|e curren|
|000056f0| 74 20 62 75 66 66 65 72 | 20 69 6e 20 76 69 73 69 |t buffer| in visi|
|00005700| 74 65 64 20 66 69 6c 65 | 20 69 66 20 6d 6f 64 69 |ted file| if modi|
|00005710| 66 69 65 64 2e 20 20 56 | 65 72 73 69 6f 6e 73 20 |fied. V|ersions |
|00005720| 64 65 73 63 72 69 62 65 | 64 20 62 65 6c 6f 77 2e |describe|d below.|
|00005730| 0a 0a 42 79 20 64 65 66 | 61 75 6c 74 2c 20 6d 61 |..By def|ault, ma|
|00005740| 6b 65 73 20 74 68 65 20 | 70 72 65 76 69 6f 75 73 |kes the |previous|
|00005750| 20 76 65 72 73 69 6f 6e | 20 69 6e 74 6f 20 61 20 | version| into a |
|00005760| 62 61 63 6b 75 70 20 66 | 69 6c 65 0a 20 69 66 20 |backup f|ile. if |
|00005770| 70 72 65 76 69 6f 75 73 | 6c 79 20 72 65 71 75 65 |previous|ly reque|
|00005780| 73 74 65 64 20 6f 72 20 | 69 66 20 74 68 69 73 20 |sted or |if this |
|00005790| 69 73 20 74 68 65 20 66 | 69 72 73 74 20 73 61 76 |is the f|irst sav|
|000057a0| 65 2e 0a 57 69 74 68 20 | 31 20 6f 72 20 33 20 5c |e..With |1 or 3 \|
|000057b0| 5c 5b 75 6e 69 76 65 72 | 73 61 6c 2d 61 72 67 75 |\[univer|sal-argu|
|000057c0| 6d 65 6e 74 5d 27 73 2c | 20 6d 61 72 6b 73 20 74 |ment]'s,| marks t|
|000057d0| 68 69 73 20 76 65 72 73 | 69 6f 6e 0a 20 74 6f 20 |his vers|ion. to |
|000057e0| 62 65 63 6f 6d 65 20 61 | 20 62 61 63 6b 75 70 20 |become a| backup |
|000057f0| 77 68 65 6e 20 74 68 65 | 20 6e 65 78 74 20 73 61 |when the| next sa|
|00005800| 76 65 20 69 73 20 64 6f | 6e 65 2e 0a 57 69 74 68 |ve is do|ne..With|
|00005810| 20 32 20 6f 72 20 33 20 | 5c 5c 5b 75 6e 69 76 65 | 2 or 3 |\\[unive|
|00005820| 72 73 61 6c 2d 61 72 67 | 75 6d 65 6e 74 5d 27 73 |rsal-arg|ument]'s|
|00005830| 2c 0a 20 75 6e 63 6f 6e | 64 69 74 69 6f 6e 61 6c |,. uncon|ditional|
|00005840| 6c 79 20 6d 61 6b 65 73 | 20 74 68 65 20 70 72 65 |ly makes| the pre|
|00005850| 76 69 6f 75 73 20 76 65 | 72 73 69 6f 6e 20 69 6e |vious ve|rsion in|
|00005860| 74 6f 20 61 20 62 61 63 | 6b 75 70 20 66 69 6c 65 |to a bac|kup file|
|00005870| 2e 0a 57 69 74 68 20 61 | 72 67 75 6d 65 6e 74 20 |..With a|rgument |
|00005880| 6f 66 20 30 2c 20 6e 65 | 76 65 72 20 6d 61 6b 65 |of 0, ne|ver make|
|00005890| 73 20 74 68 65 20 70 72 | 65 76 69 6f 75 73 20 76 |s the pr|evious v|
|000058a0| 65 72 73 69 6f 6e 20 69 | 6e 74 6f 20 61 20 62 61 |ersion i|nto a ba|
|000058b0| 63 6b 75 70 20 66 69 6c | 65 2e 0a 0a 49 66 20 61 |ckup fil|e...If a|
|000058c0| 20 66 69 6c 65 27 73 20 | 6e 61 6d 65 20 69 73 20 | file's |name is |
|000058d0| 46 4f 4f 2c 20 74 68 65 | 20 6e 61 6d 65 73 20 6f |FOO, the| names o|
|000058e0| 66 20 69 74 73 20 6e 75 | 6d 62 65 72 65 64 20 62 |f its nu|mbered b|
|000058f0| 61 63 6b 75 70 20 76 65 | 72 73 69 6f 6e 73 20 61 |ackup ve|rsions a|
|00005900| 72 65 0a 20 46 4f 4f 2e | 7e 69 7e 20 66 6f 72 20 |re. FOO.|~i~ for |
|00005910| 76 61 72 69 6f 75 73 20 | 69 6e 74 65 67 65 72 73 |various |integers|
|00005920| 20 69 2e 20 20 41 20 6e | 6f 6e 2d 6e 75 6d 62 65 | i. A n|on-numbe|
|00005930| 72 65 64 20 62 61 63 6b | 75 70 20 66 69 6c 65 20 |red back|up file |
|00005940| 69 73 20 63 61 6c 6c 65 | 64 20 46 4f 4f 7e 2e 0a |is calle|d FOO~..|
|00005950| 4e 75 6d 65 72 69 63 20 | 62 61 63 6b 75 70 73 20 |Numeric |backups |
|00005960| 28 72 61 74 68 65 72 20 | 74 68 61 6e 20 46 4f 4f |(rather |than FOO|
|00005970| 7e 29 20 77 69 6c 6c 20 | 62 65 20 6d 61 64 65 20 |~) will |be made |
|00005980| 69 66 20 76 61 6c 75 65 | 20 6f 66 0a 20 60 76 65 |if value| of. `ve|
|00005990| 72 73 69 6f 6e 2d 63 6f | 6e 74 72 6f 6c 27 20 69 |rsion-co|ntrol' i|
|000059a0| 73 20 6e 6f 74 20 74 68 | 65 20 61 74 6f 6d 20 60 |s not th|e atom `|
|000059b0| 6e 65 76 65 72 27 20 61 | 6e 64 20 65 69 74 68 65 |never' a|nd eithe|
|000059c0| 72 20 74 68 65 72 65 20 | 61 72 65 20 61 6c 72 65 |r there |are alre|
|000059d0| 61 64 79 0a 20 6e 75 6d | 65 72 69 63 20 76 65 72 |ady. num|eric ver|
|000059e0| 73 69 6f 6e 73 20 6f 66 | 20 74 68 65 20 66 69 6c |sions of| the fil|
|000059f0| 65 20 62 65 69 6e 67 20 | 62 61 63 6b 65 64 20 75 |e being |backed u|
|00005a00| 70 2c 20 6f 72 20 60 76 | 65 72 73 69 6f 6e 2d 63 |p, or `v|ersion-c|
|00005a10| 6f 6e 74 72 6f 6c 27 20 | 69 73 0a 20 6e 6f 6e 2d |ontrol' |is. non-|
|00005a20| 6e 69 6c 2e 0a 57 65 20 | 64 6f 6e 27 74 20 77 61 |nil..We |don't wa|
|00005a30| 6e 74 20 65 78 63 65 73 | 73 69 76 65 20 76 65 72 |nt exces|sive ver|
|00005a40| 73 69 6f 6e 73 20 70 69 | 6c 69 6e 67 20 75 70 2c |sions pi|ling up,|
|00005a50| 20 73 6f 20 74 68 65 72 | 65 20 61 72 65 20 76 61 | so ther|e are va|
|00005a60| 72 69 61 62 6c 65 73 0a | 20 60 6b 65 70 74 2d 6f |riables.| `kept-o|
|00005a70| 6c 64 2d 76 65 72 73 69 | 6f 6e 73 27 2c 20 77 68 |ld-versi|ons', wh|
|00005a80| 69 63 68 20 74 65 6c 6c | 73 20 45 6d 61 63 73 20 |ich tell|s Emacs |
|00005a90| 68 6f 77 20 6d 61 6e 79 | 20 6f 6c 64 65 73 74 20 |how many| oldest |
|00005aa0| 76 65 72 73 69 6f 6e 73 | 20 74 6f 20 6b 65 65 70 |versions| to keep|
|00005ab0| 2c 0a 20 61 6e 64 20 60 | 6b 65 70 74 2d 6e 65 77 |,. and `|kept-new|
|00005ac0| 2d 76 65 72 73 69 6f 6e | 73 27 2c 20 77 68 69 63 |-version|s', whic|
|00005ad0| 68 20 74 65 6c 6c 73 20 | 68 6f 77 20 6d 61 6e 79 |h tells |how many|
|00005ae0| 20 6e 65 77 65 73 74 20 | 76 65 72 73 69 6f 6e 73 | newest |versions|
|00005af0| 20 74 6f 20 6b 65 65 70 | 2e 0a 20 44 65 66 61 75 | to keep|.. Defau|
|00005b00| 6c 74 73 20 61 72 65 20 | 32 20 6f 6c 64 20 76 65 |lts are |2 old ve|
|00005b10| 72 73 69 6f 6e 73 20 61 | 6e 64 20 32 20 6e 65 77 |rsions a|nd 2 new|
|00005b20| 2e 0a 60 64 69 72 65 64 | 2d 6b 65 70 74 2d 76 65 |..`dired|-kept-ve|
|00005b30| 72 73 69 6f 6e 73 27 20 | 63 6f 6e 74 72 6f 6c 73 |rsions' |controls|
|00005b40| 20 64 69 72 65 64 27 73 | 20 63 6c 65 61 6e 2d 64 | dired's| clean-d|
|00005b50| 69 72 65 63 74 6f 72 79 | 20 28 2e 29 20 63 6f 6d |irectory| (.) com|
|00005b60| 6d 61 6e 64 2e 0a 49 66 | 20 60 74 72 69 6d 2d 76 |mand..If| `trim-v|
|00005b70| 65 72 73 69 6f 6e 73 2d | 77 69 74 68 6f 75 74 2d |ersions-|without-|
|00005b80| 61 73 6b 69 6e 67 27 20 | 69 73 20 6e 69 6c 2c 20 |asking' |is nil, |
|00005b90| 73 79 73 74 65 6d 20 77 | 69 6c 6c 20 71 75 65 72 |system w|ill quer|
|00005ba0| 79 20 75 73 65 72 0a 20 | 62 65 66 6f 72 65 20 74 |y user. |before t|
|00005bb0| 72 69 6d 6d 69 6e 67 20 | 76 65 72 73 69 6f 6e 73 |rimming |versions|
|00005bc0| 2e 20 20 4f 74 68 65 72 | 77 69 73 65 20 69 74 20 |. Other|wise it |
|00005bd0| 64 6f 65 73 20 69 74 20 | 73 69 6c 65 6e 74 6c 79 |does it |silently|
|00005be0| 2e 22 20 22 70 22 5d 29 | 0a 28 66 73 65 74 20 27 |." "p"])|.(fset '|
|00005bf0| 64 65 6c 65 74 65 2d 61 | 75 74 6f 2d 73 61 76 65 |delete-a|uto-save|
|00005c00| 2d 66 69 6c 65 2d 69 66 | 2d 6e 65 63 65 73 73 61 |-file-if|-necessa|
|00005c10| 72 79 20 23 5b 28 26 6f | 70 74 69 6f 6e 61 6c 20 |ry #[(&o|ptional |
|00005c20| 66 6f 72 63 65 29 20 22 | 08 ad 97 09 ad 94 5c 6e |force) "|......\n|
|00005c30| 08 98 3f ad 8e 0b ac 84 | c4 20 ad 87 c5 c6 c7 8f |..?.....|. ......|
|00005c40| 88 c8 20 87 22 20 5b 62 | 75 66 66 65 72 2d 61 75 |.. ." [b|uffer-au|
|00005c50| 74 6f 2d 73 61 76 65 2d | 66 69 6c 65 2d 6e 61 6d |to-save-|file-nam|
|00005c60| 65 20 64 65 6c 65 74 65 | 2d 61 75 74 6f 2d 73 61 |e delete|-auto-sa|
|00005c70| 76 65 2d 66 69 6c 65 73 | 20 62 75 66 66 65 72 2d |ve-files| buffer-|
|00005c80| 66 69 6c 65 2d 6e 61 6d | 65 20 66 6f 72 63 65 20 |file-nam|e force |
|00005c90| 72 65 63 65 6e 74 2d 61 | 75 74 6f 2d 73 61 76 65 |recent-a|uto-save|
|00005ca0| 2d 70 20 6e 69 6c 20 28 | 64 65 6c 65 74 65 2d 66 |-p nil (|delete-f|
|00005cb0| 69 6c 65 20 62 75 66 66 | 65 72 2d 61 75 74 6f 2d |ile buff|er-auto-|
|00005cc0| 73 61 76 65 2d 66 69 6c | 65 2d 6e 61 6d 65 29 20 |save-fil|e-name) |
|00005cd0| 28 28 66 69 6c 65 2d 65 | 72 72 6f 72 29 29 20 73 |((file-e|rror)) s|
|00005ce0| 65 74 2d 62 75 66 66 65 | 72 2d 61 75 74 6f 2d 73 |et-buffe|r-auto-s|
|00005cf0| 61 76 65 64 5d 20 33 20 | 22 5c 0a 44 65 6c 65 74 |aved] 3 |"\.Delet|
|00005d00| 65 20 74 68 65 20 61 75 | 74 6f 2d 73 61 76 65 20 |e the au|to-save |
|00005d10| 66 69 6c 65 6e 61 6d 65 | 20 66 6f 72 20 74 68 65 |filename| for the|
|00005d20| 20 63 75 72 72 65 6e 74 | 20 62 75 66 66 65 72 20 | current| buffer |
|00005d30| 28 69 66 20 69 74 20 68 | 61 73 20 6f 6e 65 29 0a |(if it h|as one).|
|00005d40| 69 66 20 76 61 72 69 61 | 62 6c 65 20 60 64 65 6c |if varia|ble `del|
|00005d50| 65 74 65 2d 61 75 74 6f | 2d 73 61 76 65 2d 66 69 |ete-auto|-save-fi|
|00005d60| 6c 65 73 27 20 69 73 20 | 6e 6f 6e 2d 6e 69 6c 2e |les' is |non-nil.|
|00005d70| 0a 4e 6f 72 6d 61 6c 6c | 79 20 64 65 6c 65 74 65 |.Normall|y delete|
|00005d80| 20 6f 6e 6c 79 20 69 66 | 20 74 68 65 20 66 69 6c | only if| the fil|
|00005d90| 65 20 77 61 73 20 77 72 | 69 74 74 65 6e 20 62 79 |e was wr|itten by|
|00005da0| 20 74 68 69 73 20 45 6d | 61 63 73 0a 73 69 6e 63 | this Em|acs.sinc|
|00005db0| 65 20 74 68 65 20 6c 61 | 73 74 20 72 65 61 6c 20 |e the la|st real |
|00005dc0| 73 61 76 65 2c 20 62 75 | 74 20 6f 70 74 69 6f 6e |save, bu|t option|
|00005dd0| 61 6c 20 61 72 67 20 46 | 4f 52 43 45 20 6e 6f 6e |al arg F|ORCE non|
|00005de0| 2d 6e 69 6c 20 6d 65 61 | 6e 73 20 64 65 6c 65 74 |-nil mea|ns delet|
|00005df0| 65 20 61 6e 79 77 61 79 | 2e 22 5d 29 0a 28 66 73 |e anyway|."]).(fs|
|00005e00| 65 74 20 27 62 61 73 69 | 63 2d 77 72 69 74 65 2d |et 'basi|c-write-|
|00005e10| 66 69 6c 65 2d 64 61 74 | 61 20 23 5b 28 72 65 61 |file-dat|a #[(rea|
|00005e20| 6c 6e 61 6d 65 29 20 22 | c0 09 1a 1b 5c 6e ab 8e |lname) "|....\n..|
|00005e30| 0b ac 8b 5c 6e 40 0c 21 | 13 5c 6e 41 89 12 ac 72 |...\n@.!|.\nA...r|
|00005e40| 0b 3f ad 87 c5 65 64 0c | c0 c6 25 2a 87 22 20 5b |.?...ed.|..%*." [|
|00005e50| 6e 69 6c 20 77 72 69 74 | 65 2d 66 69 6c 65 2d 64 |nil writ|e-file-d|
|00005e60| 61 74 61 2d 68 6f 6f 6b | 73 20 68 6f 6f 6b 73 20 |ata-hook|s hooks |
|00005e70| 72 65 67 69 6f 6e 2d 77 | 72 69 74 74 65 6e 20 72 |region-w|ritten r|
|00005e80| 65 61 6c 6e 61 6d 65 20 | 77 72 69 74 65 2d 72 65 |ealname |write-re|
|00005e90| 67 69 6f 6e 20 74 5d 20 | 37 5d 29 0a 28 66 73 65 |gion t] |7]).(fse|
|00005ea0| 74 20 27 62 61 73 69 63 | 2d 73 61 76 65 2d 62 75 |t 'basic|-save-bu|
|00005eb0| 66 66 65 72 20 23 5b 6e | 69 6c 20 22 c0 20 83 8e |ffer #[n|il ". ..|
|00005ec0| 01 c1 20 c2 89 1b 1c 1d | 0e 06 c7 3d ab ab 0e 08 |.. .....|...=....|
|00005ed0| c9 0e 08 21 98 ac a2 c2 | 1e 5c 6e c9 0e 08 21 16 |...!....|.\n...!.|
|00005ee0| 08 cb 0e 08 97 21 1e 0c | cd 0e 0c 21 16 5c 6e ce |.....!..|...!.\n.|
|00005ef0| 0e 0c 21 88 29 cf 0e 5c | 6e 21 88 29 0e 08 ac 93 |..!.)..\|n!.)....|
|00005f00| d0 d1 d2 21 c2 5c 22 16 | 08 d3 0e 08 21 16 14 d5 |...!.\".|....!...|
|00005f10| 0e 16 21 88 d7 70 21 ac | 95 d8 0e 08 21 ab 8f d9 |..!..p!.|....!...|
|00005f20| da db dc 0e 08 21 5c 22 | 21 ac 84 dd de 21 88 8c |.....!\"|!....!..|
|00005f30| 7e 88 64 df 56 ab a2 64 | 53 66 e0 55 ac 9b 0e 21 |~.d.V..d|Sf.U...!|
|00005f40| e2 3d ac 8d 0e 21 ab 91 | e3 da e4 cd 20 5c 22 21 |.=...!..|.... \"!|
|00005f50| ab 88 8a 64 62 88 e0 63 | 88 29 c2 1e 25 e6 0e 27 |...db..c|.)..%..'|
|00005f60| 0e 28 5c 22 c2 89 89 1e | 28 1e 27 1e 29 89 1e 2a |.(\"....|(.'.)..*|
|00005f70| ab 91 0e 2a 40 20 89 16 | 25 ac 88 0e 2a 41 89 16 |...*@ ..|%...*A..|
|00005f80| 2a ac 6f 2c 0e 25 84 73 | 01 eb 0e 08 21 ac b6 d3 |*.o,.%.s|....!...|
|00005f90| 0e 08 21 1e 2c ed 0e 2c | 21 ac 88 dd ee 0e 2c 5c |..!.,..,|!.....,\|
|00005fa0| 22 88 aa a1 d8 0e 08 21 | ac 88 dd ef 0e 2c 5c 22 |"......!|.....,\"|
|00005fb0| 88 aa 93 d9 da f0 dc 0e | 08 21 5c 22 21 ab 84 e2 |........|.!\"!...|
|00005fc0| 13 aa 84 dd f1 21 88 29 | 0e 32 ac 83 f3 20 14 0e |.....!.)|.2... ..|
|00005fd0| 34 ab c8 e2 c2 89 89 1e | 35 1e 36 1e 37 1e 38 0e |4.......|5.6.7.8.|
|00005fe0| 08 16 37 f9 0e 37 21 89 | 16 35 ab 86 0e 35 16 37 |..7..7!.|.5...5.7|
|00005ff0| aa 71 0e 37 fa 50 16 36 | c2 fb fc 8f 88 ed 0e 37 |.q.7.P.6|.......7|
|00006000| 21 ab 86 dd fd 0e 37 5c | 22 88 fe 8e ff 20 88 81 |!.....7\|".... ..|
|00006010| 40 00 0e 37 21 88 c2 16 | 38 2d aa 9e 0b ab 94 0c |@..7!...|8-......|
|00006020| ac 91 81 41 00 0e 08 21 | 14 81 42 00 0e 08 81 43 |...A...!|..B....C|
|00006030| 00 5c 22 88 81 40 00 0e | 08 21 88 29 0c ab 89 c2 |.\"..@..|.!.)....|
|00006040| 81 44 00 81 45 00 8f 88 | 29 81 46 00 0d 21 88 81 |.D..E...|).F..!..|
|00006050| 47 00 e9 21 2b 87 81 48 | 00 81 49 00 21 87 22 20 |G..!+..H|..I.!." |
|00006060| 5b 62 75 66 66 65 72 2d | 6d 6f 64 69 66 69 65 64 |[buffer-|modified|
|00006070| 2d 70 20 72 65 63 65 6e | 74 2d 61 75 74 6f 2d 73 |-p recen|t-auto-s|
|00006080| 61 76 65 2d 70 20 6e 69 | 6c 20 74 65 6d 70 73 65 |ave-p ni|l tempse|
|00006090| 74 6d 6f 64 65 73 20 73 | 65 74 6d 6f 64 65 73 20 |tmodes s|etmodes |
|000060a0| 72 65 63 65 6e 74 2d 73 | 61 76 65 20 73 79 73 74 |recent-s|ave syst|
|000060b0| 65 6d 2d 74 79 70 65 20 | 76 61 78 2d 76 6d 73 20 |em-type |vax-vms |
|000060c0| 62 75 66 66 65 72 2d 66 | 69 6c 65 2d 6e 61 6d 65 |buffer-f|ile-name|
|000060d0| 20 66 69 6c 65 2d 6e 61 | 6d 65 2d 73 61 6e 73 2d | file-na|me-sans-|
|000060e0| 76 65 72 73 69 6f 6e 73 | 20 62 75 66 66 65 72 2d |versions| buffer-|
|000060f0| 6e 65 77 2d 6e 61 6d 65 | 20 63 72 65 61 74 65 2d |new-name| create-|
|00006100| 66 69 6c 65 2d 62 75 66 | 66 65 72 20 62 75 66 20 |file-buf|fer buf |
|00006110| 62 75 66 66 65 72 2d 6e | 61 6d 65 20 6b 69 6c 6c |buffer-n|ame kill|
|00006120| 2d 62 75 66 66 65 72 20 | 72 65 6e 61 6d 65 2d 62 |-buffer |rename-b|
|00006130| 75 66 66 65 72 20 65 78 | 70 61 6e 64 2d 66 69 6c |uffer ex|pand-fil|
|00006140| 65 2d 6e 61 6d 65 20 72 | 65 61 64 2d 66 69 6c 65 |e-name r|ead-file|
|00006150| 2d 6e 61 6d 65 20 22 46 | 69 6c 65 20 74 6f 20 73 |-name "F|ile to s|
|00006160| 61 76 65 20 69 6e 3a 20 | 22 20 66 69 6c 65 2d 6e |ave in: |" file-n|
|00006170| 61 6d 65 2d 64 69 72 65 | 63 74 6f 72 79 20 64 65 |ame-dire|ctory de|
|00006180| 66 61 75 6c 74 2d 64 69 | 72 65 63 74 6f 72 79 20 |fault-di|rectory |
|00006190| 61 75 74 6f 2d 73 61 76 | 65 2d 6d 6f 64 65 20 61 |auto-sav|e-mode a|
|000061a0| 75 74 6f 2d 73 61 76 65 | 2d 64 65 66 61 75 6c 74 |uto-save|-default|
|000061b0| 20 76 65 72 69 66 79 2d | 76 69 73 69 74 65 64 2d | verify-|visited-|
|000061c0| 66 69 6c 65 2d 6d 6f 64 | 74 69 6d 65 20 66 69 6c |file-mod|time fil|
|000061d0| 65 2d 65 78 69 73 74 73 | 2d 70 20 79 65 73 2d 6f |e-exists|-p yes-o|
|000061e0| 72 2d 6e 6f 2d 70 20 66 | 6f 72 6d 61 74 20 22 25 |r-no-p f|ormat "%|
|000061f0| 73 20 68 61 73 20 63 68 | 61 6e 67 65 64 20 73 69 |s has ch|anged si|
|00006200| 6e 63 65 20 76 69 73 69 | 74 65 64 20 6f 72 20 73 |nce visi|ted or s|
|00006210| 61 76 65 64 2e 20 20 53 | 61 76 65 20 61 6e 79 77 |aved. S|ave anyw|
|00006220| 61 79 3f 20 22 20 66 69 | 6c 65 2d 6e 61 6d 65 2d |ay? " fi|le-name-|
|00006230| 6e 6f 6e 64 69 72 65 63 | 74 6f 72 79 20 65 72 72 |nondirec|tory err|
|00006240| 6f 72 20 22 53 61 76 65 | 20 6e 6f 74 20 63 6f 6e |or "Save| not con|
|00006250| 66 69 72 6d 65 64 22 20 | 31 20 31 30 20 72 65 71 |firmed" |1 10 req|
|00006260| 75 69 72 65 2d 66 69 6e | 61 6c 2d 6e 65 77 6c 69 |uire-fin|al-newli|
|00006270| 6e 65 20 74 20 79 2d 6f | 72 2d 6e 2d 70 20 22 42 |ne t y-o|r-n-p "B|
|00006280| 75 66 66 65 72 20 25 73 | 20 64 6f 65 73 20 6e 6f |uffer %s| does no|
|00006290| 74 20 65 6e 64 20 69 6e | 20 6e 65 77 6c 69 6e 65 |t end in| newline|
|000062a0| 2e 20 20 41 64 64 20 6f | 6e 65 3f 20 22 20 64 6f |. Add o|ne? " do|
|000062b0| 6e 65 20 61 70 70 65 6e | 64 20 77 72 69 74 65 2d |ne appen|d write-|
|000062c0| 63 6f 6e 74 65 6e 74 73 | 2d 68 6f 6f 6b 73 20 77 |contents|-hooks w|
|000062d0| 72 69 74 65 2d 66 69 6c | 65 2d 68 6f 6f 6b 73 20 |rite-fil|e-hooks |
|000062e0| 61 66 74 65 72 2d 77 72 | 69 74 65 2d 66 69 6c 65 |after-wr|ite-file|
|000062f0| 2d 68 6f 6f 6b 73 20 68 | 6f 6f 6b 73 20 66 69 6c |-hooks h|ooks fil|
|00006300| 65 2d 77 72 69 74 61 62 | 6c 65 2d 70 20 64 69 72 |e-writab|le-p dir|
|00006310| 20 66 69 6c 65 2d 64 69 | 72 65 63 74 6f 72 79 2d | file-di|rectory-|
|00006320| 70 20 22 25 73 20 69 73 | 20 6e 6f 74 20 61 20 64 |p "%s is| not a d|
|00006330| 69 72 65 63 74 6f 72 79 | 22 20 22 44 69 72 65 63 |irectory|" "Direc|
|00006340| 74 6f 72 79 20 25 73 20 | 77 72 69 74 65 2d 70 72 |tory %s |write-pr|
|00006350| 6f 74 65 63 74 65 64 22 | 20 22 46 69 6c 65 20 25 |otected"| "File %|
|00006360| 73 20 69 73 20 77 72 69 | 74 65 2d 70 72 6f 74 65 |s is wri|te-prote|
|00006370| 63 74 65 64 3b 20 74 72 | 79 20 74 6f 20 73 61 76 |cted; tr|y to sav|
|00006380| 65 20 61 6e 79 77 61 79 | 3f 20 22 20 22 41 74 74 |e anyway|? " "Att|
|00006390| 65 6d 70 74 20 74 6f 20 | 73 61 76 65 20 74 6f 20 |empt to |save to |
|000063a0| 61 20 66 69 6c 65 20 77 | 68 69 63 68 20 79 6f 75 |a file w|hich you|
|000063b0| 20 61 72 65 6e 27 74 20 | 61 6c 6c 6f 77 65 64 20 | aren't |allowed |
|000063c0| 74 6f 20 77 72 69 74 65 | 22 20 62 75 66 66 65 72 |to write|" buffer|
|000063d0| 2d 62 61 63 6b 65 64 2d | 75 70 20 62 61 63 6b 75 |-backed-|up backu|
|000063e0| 70 2d 62 75 66 66 65 72 | 20 66 69 6c 65 2d 70 72 |p-buffer| file-pr|
|000063f0| 65 63 69 6f 75 73 2d 66 | 6c 61 67 20 74 65 6d 70 |ecious-f|lag temp|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.