home *** CD-ROM | disk | FTP | other *** search
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: SHell self-extracting ARchive
(archive/shar).
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| dexvert
| SHell self-extracting ARchive (archive/shar)
| magic
| Supported |
100%
| dexvert
| Mailbox/MIME Entity (archive/mbox)
| magic
| Supported |
100%
| dexvert
| Internet Message Format (text/imf)
| magic
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| Mailbox text, 1st line "From utkcs2!emory!swrinde!cs.utexas.edu!uunet!dino!ux1.cso.uiuc.edu!ux1.cso.uiuc.edu!m.cs.uiuc.edu!marick Tue Jun 19 12:00:46 E"
| default
| |
99%
| file
| Lisp/Scheme program, ASCII text
| default
| |
100%
| TrID
| E-Mail message (Var. 2)
| default
| |
100%
| perlTextCheck
| Likely Text (Perl)
| default
| |
100%
| siegfried
| fmt/329 Shell Archive Format
| default
| |
100%
| detectItEasy
| Format: Plain text[LF]
| default
| |
100%
| xdgMime
| application/mbox
| default
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 46 72 6f 6d 20 75 74 6b | 63 73 32 21 65 6d 6f 72 |From utk|cs2!emor|
|00000010| 79 21 73 77 72 69 6e 64 | 65 21 63 73 2e 75 74 65 |y!swrind|e!cs.ute|
|00000020| 78 61 73 2e 65 64 75 21 | 75 75 6e 65 74 21 64 69 |xas.edu!|uunet!di|
|00000030| 6e 6f 21 75 78 31 2e 63 | 73 6f 2e 75 69 75 63 2e |no!ux1.c|so.uiuc.|
|00000040| 65 64 75 21 75 78 31 2e | 63 73 6f 2e 75 69 75 63 |edu!ux1.|cso.uiuc|
|00000050| 2e 65 64 75 21 6d 2e 63 | 73 2e 75 69 75 63 2e 65 |.edu!m.c|s.uiuc.e|
|00000060| 64 75 21 6d 61 72 69 63 | 6b 20 54 75 65 20 4a 75 |du!maric|k Tue Ju|
|00000070| 6e 20 31 39 20 31 32 3a | 30 30 3a 34 36 20 45 44 |n 19 12:|00:46 ED|
|00000080| 54 20 31 39 39 30 0a 41 | 72 74 69 63 6c 65 20 32 |T 1990.A|rticle 2|
|00000090| 39 39 32 20 6f 66 20 67 | 6e 75 2e 65 6d 61 63 73 |992 of g|nu.emacs|
|000000a0| 3a 0a 50 61 74 68 3a 20 | 75 74 6b 63 73 32 21 65 |:.Path: |utkcs2!e|
|000000b0| 6d 6f 72 79 21 73 77 72 | 69 6e 64 65 21 63 73 2e |mory!swr|inde!cs.|
|000000c0| 75 74 65 78 61 73 2e 65 | 64 75 21 75 75 6e 65 74 |utexas.e|du!uunet|
|000000d0| 21 64 69 6e 6f 21 75 78 | 31 2e 63 73 6f 2e 75 69 |!dino!ux|1.cso.ui|
|000000e0| 75 63 2e 65 64 75 21 75 | 78 31 2e 63 73 6f 2e 75 |uc.edu!u|x1.cso.u|
|000000f0| 69 75 63 2e 65 64 75 21 | 6d 2e 63 73 2e 75 69 75 |iuc.edu!|m.cs.uiu|
|00000100| 63 2e 65 64 75 21 6d 61 | 72 69 63 6b 0a 3e 46 72 |c.edu!ma|rick.>Fr|
|00000110| 6f 6d 3a 20 6d 61 72 69 | 63 6b 40 6d 2e 63 73 2e |om: mari|ck@m.cs.|
|00000120| 75 69 75 63 2e 65 64 75 | 0a 4e 65 77 73 67 72 6f |uiuc.edu|.Newsgro|
|00000130| 75 70 73 3a 20 67 6e 75 | 2e 65 6d 61 63 73 0a 53 |ups: gnu|.emacs.S|
|00000140| 75 62 6a 65 63 74 3a 20 | 76 65 72 73 69 6f 6e 20 |ubject: |version |
|00000150| 63 6f 6e 74 72 6f 6c 20 | 28 53 43 43 53 2f 52 43 |control |(SCCS/RC|
|00000160| 53 29 0a 4d 65 73 73 61 | 67 65 2d 49 44 3a 20 3c |S).Messa|ge-ID: <|
|00000170| 35 32 34 30 30 30 33 30 | 40 6d 2e 63 73 2e 75 69 |52400030|@m.cs.ui|
|00000180| 75 63 2e 65 64 75 3e 0a | 44 61 74 65 3a 20 31 37 |uc.edu>.|Date: 17|
|00000190| 20 4a 75 6e 20 39 30 20 | 31 36 3a 30 32 3a 30 30 | Jun 90 |16:02:00|
|000001a0| 20 47 4d 54 0a 4c 69 6e | 65 73 3a 20 32 30 37 37 | GMT.Lin|es: 2077|
|000001b0| 0a 4e 66 2d 49 44 3a 20 | 23 4e 3a 6d 2e 63 73 2e |.Nf-ID: |#N:m.cs.|
|000001c0| 75 69 75 63 2e 65 64 75 | 3a 35 32 34 30 30 30 33 |uiuc.edu|:5240003|
|000001d0| 30 3a 30 30 30 3a 37 35 | 30 33 34 0a 4e 66 2d 46 |0:000:75|034.Nf-F|
|000001e0| 72 6f 6d 3a 20 6d 2e 63 | 73 2e 75 69 75 63 2e 65 |rom: m.c|s.uiuc.e|
|000001f0| 64 75 21 6d 61 72 69 63 | 6b 20 20 20 20 4a 75 6e |du!maric|k Jun|
|00000200| 20 31 37 20 31 31 3a 30 | 32 3a 30 30 20 31 39 39 | 17 11:0|2:00 199|
|00000210| 30 0a 0a 0a 48 65 72 65 | 27 73 20 61 20 73 68 61 |0...Here|'s a sha|
|00000220| 72 20 66 69 6c 65 20 63 | 6f 6e 74 61 69 6e 69 6e |r file c|ontainin|
|00000230| 67 20 74 68 65 20 73 6f | 75 72 63 65 20 61 6e 64 |g the so|urce and|
|00000240| 20 69 6e 66 6f 20 66 69 | 6c 65 20 66 6f 72 20 61 | info fi|le for a|
|00000250| 6e 20 45 6d 61 63 73 0a | 66 72 6f 6e 74 20 65 6e |n Emacs.|front en|
|00000260| 64 20 74 6f 20 53 43 43 | 53 20 6f 72 20 52 43 53 |d to SCC|S or RCS|
|00000270| 2e 20 20 41 62 73 74 72 | 61 63 74 3a 0a 0a 43 6f |. Abstr|act:..Co|
|00000280| 6e 66 69 67 20 69 73 20 | 74 68 72 65 65 20 74 68 |nfig is |three th|
|00000290| 69 6e 67 73 2e 20 20 46 | 69 72 73 74 2c 20 69 74 |ings. F|irst, it|
|000002a0| 20 69 73 20 61 20 67 65 | 6e 65 72 69 63 20 76 65 | is a ge|neric ve|
|000002b0| 72 73 69 6f 6e 20 63 6f | 6e 74 72 6f 6c 0a 69 6e |rsion co|ntrol.in|
|000002c0| 74 65 72 66 61 63 65 2e | 20 20 53 65 63 6f 6e 64 |terface.| Second|
|000002d0| 2c 20 69 74 20 69 73 20 | 67 6c 75 65 20 74 68 61 |, it is |glue tha|
|000002e0| 74 20 68 6f 6f 6b 73 20 | 74 68 65 20 67 65 6e 65 |t hooks |the gene|
|000002f0| 72 69 63 20 69 6e 74 65 | 72 66 61 63 65 20 74 6f |ric inte|rface to|
|00000300| 0a 53 43 43 53 20 61 6e | 64 20 52 43 53 2e 20 20 |.SCCS an|d RCS. |
|00000310| 54 68 69 72 64 2c 20 69 | 74 20 69 73 20 73 75 70 |Third, i|t is sup|
|00000320| 70 6f 72 74 20 66 6f 72 | 20 67 6c 75 69 6e 67 20 |port for| gluing |
|00000330| 69 6e 20 6f 74 68 65 72 | 20 76 65 72 73 69 6f 6e |in other| version|
|00000340| 0a 63 6f 6e 74 72 6f 6c | 20 73 79 73 74 65 6d 73 |.control| systems|
|00000350| 20 28 77 68 69 63 68 20 | 61 72 65 20 74 79 70 69 | (which |are typi|
|00000360| 63 61 6c 6c 79 20 77 72 | 61 70 70 65 72 73 20 61 |cally wr|appers a|
|00000370| 72 6f 75 6e 64 20 53 43 | 43 53 20 6f 72 20 52 43 |round SC|CS or RC|
|00000380| 53 29 2e 0a 46 69 6c 65 | 73 20 61 72 65 20 63 68 |S)..File|s are ch|
|00000390| 65 63 6b 65 64 20 69 6e | 20 6f 72 20 6f 75 74 20 |ecked in| or out |
|000003a0| 74 68 72 6f 75 67 68 20 | 4d 2d 78 2c 20 74 68 72 |through |M-x, thr|
|000003b0| 6f 75 67 68 20 74 68 65 | 20 44 69 72 65 64 20 69 |ough the| Dired i|
|000003c0| 6e 74 65 72 66 61 63 65 | 2c 0a 6f 72 20 74 68 72 |nterface|,.or thr|
|000003d0| 6f 75 67 68 20 74 68 65 | 20 42 75 66 66 65 72 2d |ough the| Buffer-|
|000003e0| 4d 65 6e 75 20 69 6e 74 | 65 72 66 61 63 65 2e 0a |Menu int|erface..|
|000003f0| 0a 42 72 69 61 6e 20 4d | 61 72 69 63 6b 0a 4d 6f |.Brian M|arick.Mo|
|00000400| 74 6f 72 6f 6c 61 20 40 | 20 55 6e 69 76 65 72 73 |torola @| Univers|
|00000410| 69 74 79 20 6f 66 20 49 | 6c 6c 69 6e 6f 69 73 0a |ity of I|llinois.|
|00000420| 6d 61 72 69 63 6b 40 63 | 73 2e 75 69 75 63 2e 65 |marick@c|s.uiuc.e|
|00000430| 64 75 2c 20 75 69 75 63 | 64 63 73 21 6d 61 72 69 |du, uiuc|dcs!mari|
|00000440| 63 6b 0a 0a 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |ck..====|========|
|00000450| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000460| 3d 3d 3d 3d 0a 23 21 20 | 2f 62 69 6e 2f 73 68 0a |====.#! |/bin/sh.|
|00000470| 23 20 54 68 69 73 20 69 | 73 20 61 20 73 68 65 6c |# This i|s a shel|
|00000480| 6c 20 61 72 63 68 69 76 | 65 2c 20 6d 65 61 6e 69 |l archiv|e, meani|
|00000490| 6e 67 3a 0a 23 20 31 2e | 20 52 65 6d 6f 76 65 20 |ng:.# 1.| Remove |
|000004a0| 65 76 65 72 79 74 68 69 | 6e 67 20 61 62 6f 76 65 |everythi|ng above|
|000004b0| 20 74 68 65 20 23 21 20 | 2f 62 69 6e 2f 73 68 20 | the #! |/bin/sh |
|000004c0| 6c 69 6e 65 2e 0a 23 20 | 32 2e 20 53 61 76 65 20 |line..# |2. Save |
|000004d0| 74 68 65 20 72 65 73 75 | 6c 74 69 6e 67 20 74 65 |the resu|lting te|
|000004e0| 78 74 20 69 6e 20 61 20 | 66 69 6c 65 2e 0a 23 20 |xt in a |file..# |
|000004f0| 33 2e 20 45 78 65 63 75 | 74 65 20 74 68 65 20 66 |3. Execu|te the f|
|00000500| 69 6c 65 20 77 69 74 68 | 20 2f 62 69 6e 2f 73 68 |ile with| /bin/sh|
|00000510| 20 28 6e 6f 74 20 63 73 | 68 29 20 74 6f 20 63 72 | (not cs|h) to cr|
|00000520| 65 61 74 65 20 74 68 65 | 20 66 69 6c 65 73 3a 0a |eate the| files:.|
|00000530| 23 09 63 6f 6e 66 69 67 | 2e 65 6c 0a 23 09 63 6f |#.config|.el.#.co|
|00000540| 6e 66 69 67 2e 74 65 78 | 0a 23 20 54 68 69 73 20 |nfig.tex|.# This |
|00000550| 61 72 63 68 69 76 65 20 | 63 72 65 61 74 65 64 3a |archive |created:|
|00000560| 20 53 75 6e 20 4a 75 6e | 20 31 37 20 31 30 3a 34 | Sun Jun| 17 10:4|
|00000570| 38 3a 34 32 20 31 39 39 | 30 0a 65 78 70 6f 72 74 |8:42 199|0.export|
|00000580| 20 50 41 54 48 3b 20 50 | 41 54 48 3d 2f 62 69 6e | PATH; P|ATH=/bin|
|00000590| 3a 24 50 41 54 48 0a 69 | 66 20 74 65 73 74 20 2d |:$PATH.i|f test -|
|000005a0| 66 20 27 63 6f 6e 66 69 | 67 2e 65 6c 27 0a 74 68 |f 'confi|g.el'.th|
|000005b0| 65 6e 0a 09 65 63 68 6f | 20 73 68 61 72 3a 20 77 |en..echo| shar: w|
|000005c0| 69 6c 6c 20 6e 6f 74 20 | 6f 76 65 72 2d 77 72 69 |ill not |over-wri|
|000005d0| 74 65 20 65 78 69 73 74 | 69 6e 67 20 66 69 6c 65 |te exist|ing file|
|000005e0| 20 22 27 63 6f 6e 66 69 | 67 2e 65 6c 27 22 0a 65 | "'confi|g.el'".e|
|000005f0| 6c 73 65 0a 63 61 74 20 | 3c 3c 20 5c 53 48 41 52 |lse.cat |<< \SHAR|
|00000600| 5f 45 4f 46 20 3e 20 27 | 63 6f 6e 66 69 67 2e 65 |_EOF > '|config.e|
|00000610| 6c 27 0a 3b 3b 3b 20 47 | 45 4e 45 52 49 43 20 56 |l'.;;; G|ENERIC V|
|00000620| 45 52 53 49 4f 4e 20 4d | 41 4e 41 47 45 4d 45 4e |ERSION M|ANAGEMEN|
|00000630| 54 20 49 4e 54 45 52 46 | 41 43 45 2e 0a 3b 3b 3b |T INTERF|ACE..;;;|
|00000640| 0a 3b 3b 3b 20 54 68 69 | 73 20 66 69 6c 65 20 63 |.;;; Thi|s file c|
|00000650| 6f 6e 74 61 69 6e 73 20 | 76 61 72 69 6f 75 73 20 |ontains |various |
|00000660| 72 6f 75 74 69 6e 65 73 | 20 74 68 61 74 20 63 6f |routines| that co|
|00000670| 6e 6e 65 63 74 20 74 6f | 20 76 61 72 69 6f 75 73 |nnect to| various|
|00000680| 0a 3b 3b 3b 20 63 6f 6e | 66 69 67 75 72 61 74 69 |.;;; con|figurati|
|00000690| 6f 6e 20 6d 61 6e 61 67 | 65 6d 65 6e 74 20 74 6f |on manag|ement to|
|000006a0| 6f 6c 73 20 61 6e 64 20 | 76 61 72 69 6f 75 73 20 |ols and |various |
|000006b0| 73 74 79 6c 65 73 20 6f | 66 20 63 68 65 63 6b 69 |styles o|f checki|
|000006c0| 6e 67 20 69 6e 20 61 6e | 64 0a 3b 3b 3b 20 63 68 |ng in an|d.;;; ch|
|000006d0| 65 63 6b 69 6e 67 20 6f | 75 74 20 66 69 6c 65 73 |ecking o|ut files|
|000006e0| 2e 20 20 49 74 20 77 6f | 72 6b 73 20 77 69 74 68 |. It wo|rks with|
|000006f0| 20 52 43 53 20 61 6e 64 | 20 53 43 43 53 2e 20 20 | RCS and| SCCS. |
|00000700| 49 74 20 63 61 6e 20 65 | 61 73 69 6c 79 20 62 65 |It can e|asily be|
|00000710| 0a 3b 3b 3b 20 65 78 74 | 65 6e 64 65 64 20 74 6f |.;;; ext|ended to|
|00000720| 20 77 6f 72 6b 20 77 69 | 74 68 20 52 43 53 20 6f | work wi|th RCS o|
|00000730| 72 20 53 43 43 53 20 66 | 72 6f 6e 74 65 6e 64 73 |r SCCS f|rontends|
|00000740| 2e 0a 3b 3b 3b 0a 3b 3b | 3b 20 4e 6f 20 6b 65 79 |..;;;.;;|; No key|
|00000750| 20 62 69 6e 64 69 6e 67 | 73 20 74 6f 20 74 68 65 | binding|s to the|
|00000760| 20 66 75 6e 63 74 69 6f | 6e 73 20 61 72 65 20 67 | functio|ns are g|
|00000770| 69 76 65 6e 2c 20 62 65 | 63 61 75 73 65 20 74 68 |iven, be|cause th|
|00000780| 69 73 20 69 73 20 61 20 | 70 61 72 74 0a 3b 3b 3b |is is a |part.;;;|
|00000790| 20 6f 66 20 61 20 6c 61 | 72 67 65 72 20 70 61 63 | of a la|rger pac|
|000007a0| 6b 61 67 65 20 6f 66 20 | 6d 69 6e 65 2e 0a 0a 3b |kage of |mine...;|
|000007b0| 3b 3b 20 54 68 69 73 20 | 73 6f 66 74 77 61 72 65 |;; This |software|
|000007c0| 20 61 6e 64 20 64 6f 63 | 75 6d 65 6e 74 61 74 69 | and doc|umentati|
|000007d0| 6f 6e 20 77 65 72 65 20 | 77 72 69 74 74 65 6e 20 |on were |written |
|000007e0| 77 68 69 6c 65 20 49 2c | 20 42 72 69 61 6e 20 4d |while I,| Brian M|
|000007f0| 61 72 69 63 6b 2c 0a 3b | 3b 3b 20 77 61 73 20 61 |arick,.;|;; was a|
|00000800| 6e 20 65 6d 70 6c 6f 79 | 65 65 20 6f 66 20 47 6f |n employ|ee of Go|
|00000810| 75 6c 64 20 43 6f 6d 70 | 75 74 65 72 20 53 79 73 |uld Comp|uter Sys|
|00000820| 74 65 6d 73 2e 20 20 54 | 68 65 79 20 68 61 76 65 |tems. T|hey have|
|00000830| 20 62 65 65 6e 20 70 6c | 61 63 65 64 20 69 6e 0a | been pl|aced in.|
|00000840| 3b 3b 3b 20 74 68 65 20 | 70 75 62 6c 69 63 20 64 |;;; the |public d|
|00000850| 6f 6d 61 69 6e 2e 20 20 | 54 68 65 79 20 77 65 72 |omain. |They wer|
|00000860| 65 20 65 78 74 65 6e 73 | 69 76 65 6c 79 20 72 65 |e extens|ively re|
|00000870| 77 72 69 74 74 65 6e 20 | 61 74 20 74 68 65 20 55 |written |at the U|
|00000880| 6e 69 76 65 72 73 69 74 | 79 0a 3b 3b 3b 20 6f 66 |niversit|y.;;; of|
|00000890| 20 49 6c 6c 69 6e 6f 69 | 73 2e 0a 0a 3b 3b 3b 20 | Illinoi|s...;;; |
|000008a0| 43 68 72 69 73 20 4c 69 | 65 62 6d 61 6e 27 73 20 |Chris Li|ebman's |
|000008b0| 64 69 72 65 64 2d 72 63 | 73 20 70 72 6f 76 69 64 |dired-rc|s provid|
|000008c0| 65 64 20 73 6f 6d 65 20 | 6f 66 20 74 68 65 20 63 |ed some |of the c|
|000008d0| 6f 64 65 20 66 6f 72 20 | 74 68 65 20 64 69 72 65 |ode for |the dire|
|000008e0| 64 0a 3b 3b 3b 20 69 6e | 74 65 72 66 61 63 65 2e |d.;;; in|terface.|
|000008f0| 0a 0a 28 72 65 71 75 69 | 72 65 20 27 63 6c 29 09 |..(requi|re 'cl).|
|00000900| 09 3b 20 57 65 20 75 73 | 65 20 43 4c 20 66 75 6e |.; We us|e CL fun|
|00000910| 63 74 69 6f 6e 73 2e 20 | 0a 28 70 72 6f 76 69 64 |ctions. |.(provid|
|00000920| 65 20 27 63 6f 6e 66 69 | 67 29 0a 0a 3b 3b 3b 20 |e 'confi|g)..;;; |
|00000930| 4e 61 6d 69 6e 67 20 63 | 6f 6e 76 65 6e 74 69 6f |Naming c|onventio|
|00000940| 6e 73 20 28 74 6f 20 61 | 76 6f 69 64 20 63 6c 61 |ns (to a|void cla|
|00000950| 73 68 65 73 20 77 69 74 | 68 20 6f 74 68 65 72 20 |shes wit|h other |
|00000960| 70 61 63 6b 61 67 65 73 | 29 2e 0a 3b 3b 3b 20 50 |packages|)..;;; P|
|00000970| 75 62 6c 69 63 20 6e 61 | 6d 65 73 20 62 65 67 69 |ublic na|mes begi|
|00000980| 6e 20 77 69 74 68 20 22 | 63 6f 6e 66 69 67 2d 22 |n with "|config-"|
|00000990| 2e 0a 3b 3b 3b 20 50 75 | 62 6c 69 63 20 6e 61 6d |..;;; Pu|blic nam|
|000009a0| 65 73 20 75 73 65 64 20 | 77 69 74 68 20 64 69 72 |es used |with dir|
|000009b0| 65 64 20 62 65 67 69 6e | 20 77 69 74 68 20 22 64 |ed begin| with "d|
|000009c0| 69 72 65 64 2d 63 6f 6e | 66 69 67 2d 22 0a 3b 3b |ired-con|fig-".;;|
|000009d0| 3b 20 50 75 62 6c 69 63 | 20 6e 61 6d 65 73 20 75 |; Public| names u|
|000009e0| 73 65 64 20 77 69 74 68 | 20 74 68 65 20 42 75 66 |sed with| the Buf|
|000009f0| 66 65 72 20 6d 65 6e 75 | 20 62 65 67 69 6e 20 77 |fer menu| begin w|
|00000a00| 69 74 68 20 22 62 75 66 | 66 6d 65 6e 75 2d 63 6f |ith "buf|fmenu-co|
|00000a10| 6e 66 69 67 22 0a 3b 3b | 3b 20 50 72 69 76 61 74 |nfig".;;|; Privat|
|00000a20| 65 20 6e 61 6d 65 73 20 | 62 65 67 69 6e 20 77 69 |e names |begin wi|
|00000a30| 74 68 20 22 63 75 2d 22 | 20 28 73 68 6f 72 74 20 |th "cu-"| (short |
|00000a40| 66 6f 72 20 63 6f 6e 66 | 69 67 2d 75 74 69 6c 29 |for conf|ig-util)|
|00000a50| 2e 0a 3b 3b 3b 20 4e 61 | 6d 65 73 20 66 6f 72 20 |..;;; Na|mes for |
|00000a60| 66 75 6e 63 74 69 6f 6e | 73 20 74 68 61 74 20 64 |function|s that d|
|00000a70| 65 61 6c 20 77 69 74 68 | 20 76 65 72 73 69 6f 6e |eal with| version|
|00000a80| 20 63 6f 6e 74 72 6f 6c | 20 73 79 73 74 65 6d 73 | control| systems|
|00000a90| 20 62 65 67 69 6e 20 77 | 69 74 68 0a 3b 3b 3b 20 | begin w|ith.;;; |
|00000aa0| 74 68 65 20 6e 61 6d 65 | 73 20 6f 66 20 74 68 6f |the name|s of tho|
|00000ab0| 73 65 20 73 79 73 74 65 | 6d 73 3a 20 20 22 52 43 |se syste|ms: "RC|
|00000ac0| 53 2d 22 2c 20 22 53 43 | 43 53 2d 22 2c 20 6f 72 |S-", "SC|CS-", or|
|00000ad0| 20 22 63 6f 6d 70 72 65 | 73 73 2d 22 2e 0a 0a 0a | "compre|ss-"....|
|00000ae0| 28 64 65 66 63 6f 6e 73 | 74 20 2a 63 6f 6e 66 69 |(defcons|t *confi|
|00000af0| 67 2d 76 65 72 73 69 6f | 6e 2a 20 22 24 48 65 61 |g-versio|n* "$Hea|
|00000b00| 64 65 72 3a 20 2f 68 6f | 6d 65 2f 73 72 63 2f 65 |der: /ho|me/src/e|
|00000b10| 6d 61 63 73 2f 63 75 73 | 74 6f 6d 2f 6c 79 6e 78 |macs/cus|tom/lynx|
|00000b20| 2f 6c 69 73 70 2f 52 43 | 53 2f 63 6f 6e 66 69 67 |/lisp/RC|S/config|
|00000b30| 2e 65 6c 2c 76 20 31 2e | 33 20 39 30 2f 30 35 2f |.el,v 1.|3 90/05/|
|00000b40| 31 37 20 30 39 3a 35 37 | 3a 31 39 20 6d 61 72 69 |17 09:57|:19 mari|
|00000b50| 63 6b 20 45 78 70 20 24 | 20 2d 2d 20 46 69 72 73 |ck Exp $| -- Firs|
|00000b60| 74 20 72 65 6c 65 61 73 | 65 64 20 76 65 72 73 69 |t releas|ed versi|
|00000b70| 6f 6e 22 29 0a 0a 3b 3b | 20 24 4c 6f 67 3a 09 63 |on")..;;| $Log:.c|
|00000b80| 6f 6e 66 69 67 2e 65 6c | 2c 76 20 24 0a 3b 3b 20 |onfig.el|,v $.;; |
|00000b90| 52 65 76 69 73 69 6f 6e | 20 31 2e 33 20 20 39 30 |Revision| 1.3 90|
|00000ba0| 2f 30 35 2f 31 37 20 20 | 30 39 3a 35 37 3a 31 39 |/05/17 |09:57:19|
|00000bb0| 20 20 6d 61 72 69 63 6b | 0a 3b 3b 20 41 6e 64 79 | marick|.;; Andy|
|00000bc0| 27 73 20 53 43 43 53 2d | 74 6f 6f 6c 73 2d 70 61 |'s SCCS-|tools-pa|
|00000bd0| 74 68 2e 0a 3b 3b 20 0a | 3b 3b 20 52 65 76 69 73 |th..;; .|;; Revis|
|00000be0| 69 6f 6e 20 31 2e 32 20 | 20 39 30 2f 30 33 2f 31 |ion 1.2 | 90/03/1|
|00000bf0| 33 20 20 30 38 3a 33 30 | 3a 31 35 20 20 6d 61 72 |3 08:30|:15 mar|
|00000c00| 69 63 6b 0a 3b 3b 20 54 | 68 69 73 20 76 65 72 73 |ick.;; T|his vers|
|00000c10| 69 6f 6e 20 68 61 73 20 | 42 75 66 66 65 72 20 4d |ion has |Buffer M|
|00000c20| 65 6e 75 20 63 6f 6d 6d | 61 6e 64 73 2e 0a 3b 3b |enu comm|ands..;;|
|00000c30| 20 0a 3b 3b 20 52 65 76 | 69 73 69 6f 6e 20 31 2e | .;; Rev|ision 1.|
|00000c40| 31 20 20 38 39 2f 31 31 | 2f 31 34 20 20 30 38 3a |1 89/11|/14 08:|
|00000c50| 33 34 3a 32 34 20 20 6d | 61 72 69 63 6b 0a 3b 3b |34:24 m|arick.;;|
|00000c60| 20 46 69 72 73 74 20 72 | 65 6c 65 61 73 65 64 20 | First r|eleased |
|00000c70| 76 65 72 73 69 6f 6e 2e | 0a 3b 3b 20 0a 0a 3b 3d |version.|.;; ..;=|
|00000c80| 3d 3d 25 25 53 46 25 25 | 20 76 61 72 73 20 28 53 |==%%SF%%| vars (S|
|00000c90| 74 61 72 74 29 20 20 3d | 3d 3d 0a 0a 3b 3b 3b 20 |tart) =|==..;;; |
|00000ca0| 56 61 72 69 61 62 6c 65 | 73 20 74 68 65 20 75 73 |Variable|s the us|
|00000cb0| 65 72 20 6d 61 79 20 77 | 61 6e 74 20 74 6f 20 73 |er may w|ant to s|
|00000cc0| 65 74 3a 0a 0a 28 64 65 | 66 76 61 72 20 2a 63 6f |et:..(de|fvar *co|
|00000cd0| 6e 66 69 67 2d 74 79 70 | 65 2a 20 27 53 43 43 53 |nfig-typ|e* 'SCCS|
|00000ce0| 0a 20 20 22 54 68 65 20 | 74 79 70 65 20 6f 66 20 |. "The |type of |
|00000cf0| 63 6f 6e 66 69 67 75 72 | 61 74 69 6f 6e 20 63 6f |configur|ation co|
|00000d00| 6e 74 72 6f 6c 20 79 6f | 75 20 75 73 65 2e 20 20 |ntrol yo|u use. |
|00000d10| 53 74 6f 63 6b 20 6f 6e | 65 73 20 61 72 65 0a 09 |Stock on|es are..|
|00000d20| 52 43 53 09 09 75 73 65 | 20 52 43 53 20 74 6f 20 |RCS..use| RCS to |
|00000d30| 63 68 65 63 6b 20 69 6e | 20 61 6e 64 20 6f 75 74 |check in| and out|
|00000d40| 20 6f 66 20 52 43 53 20 | 73 75 62 64 69 72 65 63 | of RCS |subdirec|
|00000d50| 74 6f 72 79 2e 0a 09 53 | 43 43 53 09 09 55 73 65 |tory...S|CCS..Use|
|00000d60| 20 53 43 43 53 20 74 6f | 20 63 68 65 63 6b 20 69 | SCCS to| check i|
|00000d70| 6e 20 61 6e 64 20 6f 75 | 74 20 6f 66 20 53 43 43 |n and ou|t of SCC|
|00000d80| 53 20 73 75 62 64 69 72 | 65 63 74 6f 72 79 2e 0a |S subdir|ectory..|
|00000d90| 4f 74 68 65 72 73 20 61 | 72 65 20 65 61 73 69 6c |Others a|re easil|
|00000da0| 79 20 61 64 64 65 64 2e | 0a 22 29 0a 0a 28 64 65 |y added.|.")..(de|
|00000db0| 66 76 61 72 20 2a 63 6f | 6e 66 69 67 2d 76 65 72 |fvar *co|nfig-ver|
|00000dc0| 62 6f 73 65 2d 63 6f 6d | 6d 61 6e 64 73 2a 20 74 |bose-com|mands* t|
|00000dd0| 0a 20 20 22 49 66 20 54 | 20 73 68 65 6c 6c 2d 63 |. "If T| shell-c|
|00000de0| 6f 6d 6d 61 6e 64 73 20 | 61 72 65 20 70 72 69 6e |ommands |are prin|
|00000df0| 74 65 64 20 69 6e 74 6f | 20 64 69 73 70 6c 61 79 |ted into| display|
|00000e00| 20 62 75 66 66 65 72 73 | 20 62 65 66 6f 72 65 20 | buffers| before |
|00000e10| 62 65 69 6e 67 0a 65 78 | 65 63 75 74 65 64 2e 22 |being.ex|ecuted."|
|00000e20| 29 0a 0a 28 64 65 66 76 | 61 72 20 2a 63 6f 6e 66 |)..(defv|ar *conf|
|00000e30| 69 67 2d 66 69 6c 65 6e | 61 6d 65 2d 66 69 6c 74 |ig-filen|ame-filt|
|00000e40| 65 72 2d 6c 69 73 74 2a | 0a 20 20 20 20 20 20 20 |er-list*|. |
|00000e50| 20 27 28 63 75 2d 73 74 | 61 6e 64 61 72 64 2d 66 | '(cu-st|andard-f|
|00000e60| 69 6c 74 65 72 20 63 75 | 2d 71 75 65 72 79 2d 66 |ilter cu|-query-f|
|00000e70| 69 6c 74 65 72 29 0a 09 | 22 57 68 6f 6c 65 2d 64 |ilter)..|"Whole-d|
|00000e80| 69 72 65 63 74 6f 72 79 | 20 63 68 65 63 6b 69 6e |irectory| checkin|
|00000e90| 73 20 61 72 65 20 70 72 | 75 6e 65 64 20 62 79 20 |s are pr|uned by |
|00000ea0| 70 61 73 73 69 6e 67 20 | 6c 69 73 74 73 20 6f 66 |passing |lists of|
|00000eb0| 20 66 69 6c 65 73 20 74 | 6f 0a 73 75 63 63 65 73 | files t|o.succes|
|00000ec0| 73 69 76 65 20 66 69 6c | 74 65 72 73 20 69 6e 20 |sive fil|ters in |
|00000ed0| 74 68 69 73 20 6c 69 73 | 74 2e 20 20 53 65 65 20 |this lis|t. See |
|00000ee0| 43 4f 4e 46 49 47 2d 44 | 49 52 2d 49 4e 2e 22 29 |CONFIG-D|IR-IN.")|
|00000ef0| 0a 0a 28 64 65 66 76 61 | 72 20 2a 63 6f 6e 66 69 |..(defva|r *confi|
|00000f00| 67 2d 64 69 72 65 64 2d | 69 6e 74 65 72 66 61 63 |g-dired-|interfac|
|00000f10| 65 2a 20 74 0a 20 20 22 | 49 66 20 54 2c 20 61 64 |e* t. "|If T, ad|
|00000f20| 64 20 74 68 65 73 65 20 | 63 6f 6e 66 69 67 20 63 |d these |config c|
|00000f30| 6f 6d 6d 61 6e 64 73 20 | 74 6f 20 64 69 72 65 64 |ommands |to dired|
|00000f40| 20 6d 6f 64 65 3a 0a 09 | 6c 20 3d 20 64 69 73 70 | mode:..|l = disp|
|00000f50| 6c 61 79 20 74 68 65 20 | 6c 6f 67 20 66 6f 72 20 |lay the |log for |
|00000f60| 74 68 65 20 66 69 6c 65 | 2e 20 28 63 6f 6e 66 69 |the file|. (confi|
|00000f70| 67 2d 6c 6f 67 29 0a 09 | 44 20 2d 20 73 68 6f 77 |g-log)..|D - show|
|00000f80| 20 64 69 66 66 65 72 65 | 6e 63 65 73 20 62 65 74 | differe|nces bet|
|00000f90| 77 65 65 6e 20 74 68 65 | 20 66 69 6c 65 20 61 6e |ween the| file an|
|00000fa0| 64 20 74 68 65 20 61 72 | 63 68 69 76 65 2e 20 28 |d the ar|chive. (|
|00000fb0| 63 6f 6e 66 69 67 2d 64 | 69 66 66 29 0a 09 49 20 |config-d|iff)..I |
|00000fc0| 2d 20 63 68 65 63 6b 20 | 69 6e 20 74 68 65 20 66 |- check |in the f|
|00000fd0| 69 6c 65 2e 20 28 63 6f | 6e 66 69 67 2d 69 6e 29 |ile. (co|nfig-in)|
|00000fe0| 0a 09 4f 20 2d 20 63 68 | 65 63 6b 20 6f 75 74 20 |..O - ch|eck out |
|00000ff0| 74 68 65 20 66 69 6c 65 | 2e 20 28 63 6f 6e 66 69 |the file|. (confi|
|00001000| 67 2d 6f 75 74 29 0a 09 | 3e 20 2d 20 66 6c 61 67 |g-out)..|> - flag|
|00001010| 20 74 68 69 73 20 66 69 | 6c 65 20 61 73 20 72 65 | this fi|le as re|
|00001020| 61 64 79 20 74 6f 20 62 | 65 20 63 68 65 63 6b 65 |ady to b|e checke|
|00001030| 64 20 69 6e 0a 09 3c 20 | 2d 20 54 68 65 20 73 61 |d in..< |- The sa|
|00001040| 6d 65 20 61 73 20 27 3e | 27 2e 0a 09 41 20 2d 20 |me as '>|'...A - |
|00001050| 66 6c 61 67 20 61 6c 6c | 20 63 68 65 63 6b 65 64 |flag all| checked|
|00001060| 2d 6f 75 74 20 66 69 6c | 65 73 2e 0a 09 58 20 2d |-out fil|es...X -|
|00001070| 20 63 68 65 63 6b 69 6e | 20 61 6c 6c 20 6d 61 72 | checkin| all mar|
|00001080| 6b 65 64 20 66 69 6c 65 | 73 2e 22 0a 29 0a 0a 28 |ked file|s.".)..(|
|00001090| 64 65 66 76 61 72 20 2a | 63 6f 6e 66 69 67 2d 62 |defvar *|config-b|
|000010a0| 75 66 66 6d 65 6e 75 2d | 69 6e 74 65 72 66 61 63 |uffmenu-|interfac|
|000010b0| 65 2a 20 74 0a 20 20 22 | 49 66 20 54 2c 20 61 64 |e* t. "|If T, ad|
|000010c0| 64 20 74 68 65 73 65 20 | 63 6f 6e 66 69 67 20 63 |d these |config c|
|000010d0| 6f 6d 6d 61 6e 64 73 20 | 74 6f 20 64 69 72 65 64 |ommands |to dired|
|000010e0| 20 6d 6f 64 65 3a 0a 09 | 6c 20 3d 20 64 69 73 70 | mode:..|l = disp|
|000010f0| 6c 61 79 20 74 68 65 20 | 6c 6f 67 20 66 6f 72 20 |lay the |log for |
|00001100| 74 68 65 20 66 69 6c 65 | 2e 20 28 63 6f 6e 66 69 |the file|. (confi|
|00001110| 67 2d 6c 6f 67 29 0a 09 | 44 20 2d 20 73 68 6f 77 |g-log)..|D - show|
|00001120| 20 64 69 66 66 65 72 65 | 6e 63 65 73 20 62 65 74 | differe|nces bet|
|00001130| 77 65 65 6e 20 74 68 65 | 20 66 69 6c 65 20 61 6e |ween the| file an|
|00001140| 64 20 74 68 65 20 61 72 | 63 68 69 76 65 2e 20 28 |d the ar|chive. (|
|00001150| 63 6f 6e 66 69 67 2d 64 | 69 66 66 29 0a 09 49 20 |config-d|iff)..I |
|00001160| 2d 20 63 68 65 63 6b 20 | 69 6e 20 74 68 65 20 66 |- check |in the f|
|00001170| 69 6c 65 2e 20 28 63 6f | 6e 66 69 67 2d 69 6e 29 |ile. (co|nfig-in)|
|00001180| 0a 09 4f 20 2d 20 63 68 | 65 63 6b 20 6f 75 74 20 |..O - ch|eck out |
|00001190| 74 68 65 20 66 69 6c 65 | 2e 20 28 63 6f 6e 66 69 |the file|. (confi|
|000011a0| 67 2d 6f 75 74 29 0a 09 | 3e 20 2d 20 66 6c 61 67 |g-out)..|> - flag|
|000011b0| 20 74 68 69 73 20 66 69 | 6c 65 20 61 73 20 72 65 | this fi|le as re|
|000011c0| 61 64 79 20 74 6f 20 62 | 65 20 63 68 65 63 6b 65 |ady to b|e checke|
|000011d0| 64 20 69 6e 0a 09 3c 20 | 2d 20 54 68 65 20 73 61 |d in..< |- The sa|
|000011e0| 6d 65 20 61 73 20 27 3e | 27 2e 0a 09 41 20 2d 20 |me as '>|'...A - |
|000011f0| 66 6c 61 67 20 61 6c 6c | 20 63 68 65 63 6b 65 64 |flag all| checked|
|00001200| 2d 6f 75 74 20 66 69 6c | 65 73 2e 0a 09 58 20 2d |-out fil|es...X -|
|00001210| 20 63 68 65 63 6b 69 6e | 20 61 6c 6c 20 6d 61 72 | checkin| all mar|
|00001220| 6b 65 64 20 66 69 6c 65 | 73 2e 22 0a 29 0a 0a 3b |ked file|s.".)..;|
|00001230| 3b 3b 20 48 61 63 6b 3a | 20 77 65 20 63 68 6f 6f |;; Hack:| we choo|
|00001240| 73 65 20 61 20 6c 61 72 | 67 65 20 6e 75 6d 62 65 |se a lar|ge numbe|
|00001250| 72 20 73 6f 20 61 73 20 | 6e 6f 74 20 74 6f 20 63 |r so as |not to c|
|00001260| 6f 6e 66 6c 69 63 74 20 | 77 69 74 68 20 61 6e 79 |onflict |with any|
|00001270| 20 75 73 65 72 0a 3b 3b | 3b 20 72 65 67 69 73 74 | user.;;|; regist|
|00001280| 65 72 73 20 62 75 74 20 | 73 74 69 6c 6c 20 61 6c |ers but |still al|
|00001290| 6c 6f 77 20 75 73 20 74 | 6f 20 75 73 65 20 72 65 |low us t|o use re|
|000012a0| 67 69 73 74 65 72 73 20 | 74 6f 20 73 61 76 65 20 |gisters |to save |
|000012b0| 70 72 65 76 69 6f 75 73 | 0a 3b 3b 3b 20 63 6f 6d |previous|.;;; com|
|000012c0| 6d 65 6e 74 73 2e 20 20 | 54 68 69 73 20 6c 65 74 |ments. |This let|
|000012d0| 73 20 75 73 20 6d 65 72 | 67 65 20 74 68 65 20 61 |s us mer|ge the a|
|000012e0| 75 74 6f 6d 61 74 69 63 | 20 73 61 76 69 6e 67 20 |utomatic| saving |
|000012f0| 6f 66 20 6f 6c 64 20 63 | 6f 6d 6d 65 6e 74 73 0a |of old c|omments.|
|00001300| 3b 3b 3b 20 77 69 74 68 | 20 74 68 65 20 6d 65 63 |;;; with| the mec|
|00001310| 68 61 6e 69 73 6d 20 74 | 68 61 74 20 6d 61 6b 65 |hanism t|hat make|
|00001320| 73 20 69 74 20 65 61 73 | 79 20 66 6f 72 20 74 68 |s it eas|y for th|
|00001330| 65 20 75 73 65 72 20 74 | 6f 20 72 65 74 72 69 65 |e user t|o retrie|
|00001340| 76 65 20 6f 6c 64 0a 3b | 3b 3b 20 63 6f 6d 6d 65 |ve old.;|;; comme|
|00001350| 6e 74 73 20 61 74 20 61 | 6e 79 20 74 69 6d 65 2e |nts at a|ny time.|
|00001360| 0a 28 64 65 66 76 61 72 | 20 2a 63 6f 6e 66 69 67 |.(defvar| *config|
|00001370| 2d 63 6f 6d 6d 65 6e 74 | 2d 72 65 67 69 73 74 65 |-comment|-registe|
|00001380| 72 2a 20 35 32 35 32 35 | 0a 20 20 22 49 66 20 73 |r* 52525|. "If s|
|00001390| 65 74 20 74 6f 20 61 20 | 63 68 61 72 61 63 74 65 |et to a |characte|
|000013a0| 72 2c 20 74 68 65 20 6c | 6f 67 20 63 6f 6d 6d 65 |r, the l|og comme|
|000013b0| 6e 74 20 6d 65 73 73 61 | 67 65 20 77 69 6c 6c 20 |nt messa|ge will |
|000013c0| 62 65 20 63 6f 70 69 65 | 64 20 69 6e 74 6f 20 74 |be copie|d into t|
|000013d0| 68 65 0a 72 65 67 69 73 | 74 65 72 20 77 69 74 68 |he.regis|ter with|
|000013e0| 20 74 68 61 74 20 6e 61 | 6d 65 2e 20 20 59 6f 75 | that na|me. You|
|000013f0| 20 63 61 6e 20 75 73 65 | 20 69 74 20 77 68 65 6e | can use| it when|
|00001400| 20 6d 61 6b 69 6e 67 20 | 75 70 20 6c 61 74 65 72 | making |up later|
|00001410| 20 63 6f 6d 6d 65 6e 74 | 73 2e 22 29 0a 0a 3b 3b | comment|s.")..;;|
|00001420| 3b 20 41 2e 20 47 6c 65 | 77 20 61 64 64 65 64 20 |; A. Gle|w added |
|00001430| 74 68 69 73 2e 0a 28 64 | 65 66 76 61 72 20 53 43 |this..(d|efvar SC|
|00001440| 43 53 2d 74 6f 6f 6c 73 | 2d 70 61 74 68 20 22 22 |CS-tools|-path ""|
|00001450| 0a 09 22 44 69 72 65 63 | 74 6f 72 79 20 77 68 65 |.."Direc|tory whe|
|00001460| 72 65 20 53 43 43 53 20 | 74 6f 6f 6c 73 20 72 65 |re SCCS |tools re|
|00001470| 73 69 64 65 20 2d 20 65 | 6d 70 74 79 20 69 66 20 |side - e|mpty if |
|00001480| 69 6e 20 24 50 41 54 48 | 2c 20 2f 75 73 72 2f 73 |in $PATH|, /usr/s|
|00001490| 63 63 73 2f 20 6f 6e 20 | 61 20 53 55 4e 2c 20 65 |ccs/ on |a SUN, e|
|000014a0| 74 63 2e 22 29 0a 0a 0a | 3b 3b 3b 20 56 61 72 69 |tc.")...|;;; Vari|
|000014b0| 61 62 6c 65 73 20 74 68 | 65 20 75 73 65 72 20 77 |ables th|e user w|
|000014c0| 69 6c 6c 20 70 72 6f 62 | 61 62 6c 79 20 6c 65 61 |ill prob|ably lea|
|000014d0| 76 65 20 61 6c 6f 6e 65 | 3a 0a 0a 28 64 65 66 76 |ve alone|:..(defv|
|000014e0| 61 72 20 2a 63 6f 6e 66 | 69 67 2d 72 65 75 73 65 |ar *conf|ig-reuse|
|000014f0| 2a 20 6e 69 6c 0a 20 20 | 22 49 66 20 54 20 61 6e |* nil. |"If T an|
|00001500| 64 20 2a 63 6f 6e 66 69 | 67 2d 63 6f 6d 6d 65 6e |d *confi|g-commen|
|00001510| 74 2d 72 65 67 69 73 74 | 65 72 2a 20 63 6f 6e 74 |t-regist|er* cont|
|00001520| 61 69 6e 73 20 74 65 78 | 74 2c 20 75 73 65 20 74 |ains tex|t, use t|
|00001530| 68 61 74 20 74 65 78 74 | 0a 69 6e 73 74 65 61 64 |hat text|.instead|
|00001540| 20 6f 66 20 61 73 6b 69 | 6e 67 20 66 6f 72 20 61 | of aski|ng for a|
|00001550| 20 63 6f 6d 6d 65 6e 74 | 2e 20 20 49 66 20 27 51 | comment|. If 'Q|
|00001560| 55 45 52 59 2c 20 75 73 | 65 20 74 68 65 20 74 65 |UERY, us|e the te|
|00001570| 78 74 20 6f 6e 6c 79 20 | 69 66 20 74 68 65 0a 75 |xt only |if the.u|
|00001580| 73 65 72 20 67 69 76 65 | 73 20 70 65 72 6d 69 73 |ser give|s permis|
|00001590| 73 69 6f 6e 2e 20 20 49 | 66 20 4e 49 4c 2c 20 61 |sion. I|f NIL, a|
|000015a0| 6c 77 61 79 73 20 61 73 | 6b 20 66 6f 72 20 61 20 |lways as|k for a |
|000015b0| 63 6f 6d 6d 65 6e 74 2e | 22 29 0a 0a 28 64 65 66 |comment.|")..(def|
|000015c0| 63 6f 6e 73 74 20 2a 63 | 6f 6e 66 69 67 2d 64 69 |const *c|onfig-di|
|000015d0| 66 66 2d 62 75 66 6e 61 | 6d 65 2a 20 22 64 69 66 |ff-bufna|me* "dif|
|000015e0| 66 73 20 66 6f 72 20 63 | 6f 6e 66 69 67 22 0a 20 |fs for c|onfig". |
|000015f0| 20 22 44 69 66 66 65 72 | 65 6e 63 65 73 20 64 69 | "Differ|ences di|
|00001600| 73 70 6c 61 79 65 64 20 | 68 65 72 65 2e 22 29 0a |splayed |here.").|
|00001610| 28 64 65 66 63 6f 6e 73 | 74 20 2a 63 6f 6e 66 69 |(defcons|t *confi|
|00001620| 67 2d 6c 6f 67 2d 62 75 | 66 6e 61 6d 65 2a 20 22 |g-log-bu|fname* "|
|00001630| 6c 6f 67 20 66 6f 72 20 | 63 6f 6e 66 69 67 22 0a |log for |config".|
|00001640| 20 20 22 46 69 6c 65 20 | 63 68 61 6e 67 65 20 6c | "File |change l|
|00001650| 6f 67 73 20 64 69 73 70 | 6c 61 79 65 64 20 68 65 |ogs disp|layed he|
|00001660| 72 65 2e 22 29 0a 28 64 | 65 66 63 6f 6e 73 74 20 |re.").(d|efconst |
|00001670| 2a 63 6f 6e 66 69 67 2d | 63 6f 6d 6d 65 6e 74 2d |*config-|comment-|
|00001680| 62 75 66 6e 61 6d 65 2a | 20 22 63 6f 6d 6d 65 6e |bufname*| "commen|
|00001690| 74 73 20 66 6f 72 20 63 | 6f 6e 66 69 67 22 0a 20 |ts for c|onfig". |
|000016a0| 20 22 43 68 65 63 6b 69 | 6e 20 63 6f 6d 6d 65 6e | "Checki|n commen|
|000016b0| 74 73 20 67 61 74 68 65 | 72 65 64 20 68 65 72 65 |ts gathe|red here|
|000016c0| 2e 22 29 0a 28 64 65 66 | 63 6f 6e 73 74 20 2a 63 |.").(def|const *c|
|000016d0| 6f 6e 66 69 67 2d 72 65 | 73 75 6c 74 73 2d 62 75 |onfig-re|sults-bu|
|000016e0| 66 6e 61 6d 65 2a 20 22 | 72 65 73 75 6c 74 73 20 |fname* "|results |
|000016f0| 66 6f 72 20 63 6f 6e 66 | 69 67 22 0a 20 20 22 43 |for conf|ig". "C|
|00001700| 6f 6d 6d 61 6e 64 20 72 | 65 73 75 6c 74 73 20 64 |ommand r|esults d|
|00001710| 69 73 70 6c 61 79 65 64 | 20 68 65 72 65 2e 22 29 |isplayed| here.")|
|00001720| 0a 0a 28 64 65 66 63 6f | 6e 73 74 20 2a 63 6f 6e |..(defco|nst *con|
|00001730| 66 69 67 2d 68 65 61 64 | 65 72 2d 64 65 6c 69 6d |fig-head|er-delim|
|00001740| 2a 20 22 2d 2d 74 65 78 | 74 20 66 6f 6c 6c 6f 77 |* "--tex|t follow|
|00001750| 73 20 74 68 69 73 20 6c | 69 6e 65 2d 2d 22 29 0a |s this l|ine--").|
|00001760| 0a 28 64 65 66 63 6f 6e | 73 74 20 2a 63 6f 6e 66 |.(defcon|st *conf|
|00001770| 69 67 2d 73 68 65 6c 6c | 2a 20 22 2f 62 69 6e 2f |ig-shell|* "/bin/|
|00001780| 73 68 22 0a 20 20 22 43 | 6f 6e 66 69 67 20 75 73 |sh". "C|onfig us|
|00001790| 65 73 20 74 68 65 20 42 | 6f 75 72 6e 65 20 73 68 |es the B|ourne sh|
|000017a0| 65 6c 6c 20 66 6f 72 20 | 73 75 62 63 6f 6d 6d 61 |ell for |subcomma|
|000017b0| 6e 64 73 2e 20 20 54 68 | 69 73 20 69 73 20 69 74 |nds. Th|is is it|
|000017c0| 73 20 6e 61 6d 65 2e 22 | 29 0a 0a 3b 3b 3b 20 57 |s name."|)..;;; W|
|000017d0| 68 65 6e 20 77 65 27 72 | 65 20 74 72 79 69 6e 67 |hen we'r|e trying|
|000017e0| 20 74 6f 20 63 68 65 63 | 6b 20 69 6e 20 61 20 6c | to chec|k in a l|
|000017f0| 69 73 74 20 6f 66 20 66 | 69 6c 65 73 2c 20 77 65 |ist of f|iles, we|
|00001800| 20 68 61 76 65 20 74 6f | 20 75 73 65 20 61 0a 3b | have to| use a.;|
|00001810| 3b 3b 20 72 65 63 75 72 | 73 69 76 65 20 65 64 69 |;; recur|sive edi|
|00001820| 74 2c 20 62 65 63 61 75 | 73 65 20 77 65 20 77 61 |t, becau|se we wa|
|00001830| 6e 74 20 74 6f 20 70 72 | 65 73 65 6e 74 20 6f 6e |nt to pr|esent on|
|00001840| 65 20 6c 6f 67 20 62 75 | 66 66 65 72 20 61 74 20 |e log bu|ffer at |
|00001850| 61 0a 3b 3b 3b 20 74 69 | 6d 65 2e 20 20 4e 6f 72 |a.;;; ti|me. Nor|
|00001860| 6d 61 6c 6c 79 2c 20 74 | 68 6f 75 67 68 2c 20 77 |mally, t|hough, w|
|00001870| 65 20 61 76 6f 69 64 20 | 72 65 63 75 72 73 69 76 |e avoid |recursiv|
|00001880| 65 20 65 64 69 74 69 6e | 67 2c 20 68 61 6e 64 6c |e editin|g, handl|
|00001890| 69 6e 67 0a 3b 3b 3b 20 | 74 68 69 6e 67 73 20 6d |ing.;;; |things m|
|000018a0| 6f 72 65 20 6c 69 6b 65 | 20 72 6d 61 69 6c 20 6d |ore like| rmail m|
|000018b0| 6f 64 65 20 61 6e 64 20 | 74 68 65 20 6c 69 6b 65 |ode and |the like|
|000018c0| 2e 0a 28 64 65 66 76 61 | 72 20 2a 63 6f 6e 66 69 |..(defva|r *confi|
|000018d0| 67 2d 72 65 63 75 72 73 | 69 6e 67 2a 20 6e 69 6c |g-recurs|ing* nil|
|000018e0| 29 0a 0a 3b 3b 3b 20 54 | 68 65 20 6e 75 6d 62 65 |)..;;; T|he numbe|
|000018f0| 72 20 6f 66 20 73 65 63 | 6f 6e 64 73 20 74 6f 20 |r of sec|onds to |
|00001900| 73 6c 65 65 70 20 77 68 | 65 6e 20 70 72 69 6e 74 |sleep wh|en print|
|00001910| 69 6e 67 20 74 72 61 6e | 73 69 65 6e 74 20 6d 65 |ing tran|sient me|
|00001920| 73 73 61 67 65 20 74 6f | 0a 3b 3b 3b 20 6d 69 6e |ssage to|.;;; min|
|00001930| 69 62 75 66 66 65 72 2e | 0a 28 64 65 66 76 61 72 |ibuffer.|.(defvar|
|00001940| 20 2a 63 6f 6e 66 69 67 | 2d 73 6c 65 65 70 2a 20 | *config|-sleep* |
|00001950| 31 29 0a 0a 3b 3d 3d 3d | 25 25 53 46 25 25 20 76 |1)..;===|%%SF%% v|
|00001960| 61 72 73 20 28 45 6e 64 | 29 20 20 3d 3d 3d 0a 0a |ars (End|) ===..|
|00001970| 3b 3d 3d 3d 25 25 53 46 | 25 25 20 6d 61 63 72 6f |;===%%SF|%% macro|
|00001980| 73 20 28 53 74 61 72 74 | 29 20 20 3d 3d 3d 0a 3b |s (Start|) ===.;|
|00001990| 3b 3b 20 54 68 65 73 65 | 20 68 61 76 65 20 74 6f |;; These| have to|
|000019a0| 20 62 65 20 68 65 72 65 | 20 73 6f 20 74 68 61 74 | be here| so that|
|000019b0| 20 74 68 65 20 63 6f 6d | 70 69 6c 65 72 20 63 61 | the com|piler ca|
|000019c0| 6e 20 73 65 65 20 74 68 | 65 6d 2e 0a 3b 3b 3b 20 |n see th|em..;;; |
|000019d0| 41 63 74 75 61 6c 6c 79 | 2c 20 49 20 73 75 70 70 |Actually|, I supp|
|000019e0| 6f 73 65 20 74 68 65 20 | 45 6c 69 73 70 20 63 6f |ose the |Elisp co|
|000019f0| 6d 70 69 6c 65 72 20 70 | 72 6f 62 61 62 6c 79 20 |mpiler p|robably |
|00001a00| 64 6f 65 73 6e 27 74 0a | 3b 3b 3b 20 6d 61 63 72 |doesn't.|;;; macr|
|00001a10| 6f 65 78 70 61 6e 64 20 | 61 74 20 63 6f 6d 70 69 |oexpand |at compi|
|00001a20| 6c 65 20 74 69 6d 65 2e | 0a 0a 28 64 65 66 6d 61 |le time.|..(defma|
|00001a30| 63 72 6f 20 77 69 74 68 | 2d 62 75 66 66 65 72 20 |cro with|-buffer |
|00001a40| 28 62 75 66 66 65 72 20 | 26 72 65 73 74 20 66 6f |(buffer |&rest fo|
|00001a50| 72 6d 73 29 0a 20 20 22 | 45 78 65 63 75 74 65 20 |rms). "|Execute |
|00001a60| 74 68 65 20 67 69 76 65 | 6e 20 46 4f 52 4d 53 20 |the give|n FORMS |
|00001a70| 69 6e 20 74 68 65 20 67 | 69 76 65 6e 20 62 75 66 |in the g|iven buf|
|00001a80| 66 65 72 2c 20 63 72 65 | 61 74 69 6e 67 20 69 74 |fer, cre|ating it|
|00001a90| 20 69 66 0a 6e 65 63 65 | 73 73 61 72 79 2e 20 20 | if.nece|ssary. |
|00001aa0| 54 68 65 20 63 75 72 72 | 65 6e 74 20 62 75 66 66 |The curr|ent buff|
|00001ab0| 65 72 20 69 73 20 72 65 | 73 74 6f 72 65 64 20 6f |er is re|stored o|
|00001ac0| 6e 20 65 78 69 74 2e 20 | 20 54 68 65 72 65 27 73 |n exit. | There's|
|00001ad0| 20 6e 6f 0a 63 68 61 6e | 67 65 20 69 6e 20 77 69 | no.chan|ge in wi|
|00001ae0| 6e 64 6f 77 20 63 6f 6e | 66 69 67 75 72 61 74 69 |ndow con|figurati|
|00001af0| 6f 6e 20 2d 2d 20 73 65 | 74 2d 62 75 66 66 65 72 |on -- se|t-buffer|
|00001b00| 20 69 73 20 75 73 65 64 | 2e 22 0a 20 20 28 6c 65 | is used|.". (le|
|00001b10| 74 20 28 28 73 61 76 65 | 64 2d 62 75 66 20 28 67 |t ((save|d-buf (g|
|00001b20| 65 6e 73 79 6d 29 29 29 | 0a 20 20 20 20 28 60 20 |ensym)))|. (` |
|00001b30| 28 6c 65 74 20 28 28 20 | 28 2c 20 73 61 76 65 64 |(let (( |(, saved|
|00001b40| 2d 62 75 66 29 20 28 63 | 75 72 72 65 6e 74 2d 62 |-buf) (c|urrent-b|
|00001b50| 75 66 66 65 72 29 29 29 | 0a 20 20 20 20 20 20 20 |uffer)))|. |
|00001b60| 20 28 63 75 2d 73 65 74 | 2d 62 75 66 66 65 72 2d | (cu-set|-buffer-|
|00001b70| 63 72 65 61 74 65 20 28 | 2c 20 62 75 66 66 65 72 |create (|, buffer|
|00001b80| 29 29 0a 09 28 75 6e 77 | 69 6e 64 2d 70 72 6f 74 |))..(unw|ind-prot|
|00001b90| 65 63 74 20 28 70 72 6f | 67 6e 20 28 2c 40 20 66 |ect (pro|gn (,@ f|
|00001ba0| 6f 72 6d 73 29 29 0a 09 | 20 20 20 20 20 20 20 20 |orms))..| |
|00001bb0| 20 20 20 20 20 20 20 20 | 28 73 65 74 2d 62 75 66 | |(set-buf|
|00001bc0| 66 65 72 20 28 2c 20 73 | 61 76 65 64 2d 62 75 66 |fer (, s|aved-buf|
|00001bd0| 29 29 29 29 29 29 29 0a | 0a 3b 3b 3b 20 54 68 69 |))))))).|.;;; Thi|
|00001be0| 73 20 69 73 20 75 73 65 | 64 20 74 6f 20 70 72 65 |s is use|d to pre|
|00001bf0| 76 65 6e 74 20 64 65 66 | 61 75 6c 74 20 64 69 72 |vent def|ault dir|
|00001c00| 65 63 74 6f 72 79 20 66 | 72 6f 6d 20 67 65 74 74 |ectory f|rom gett|
|00001c10| 69 6e 67 20 63 68 61 6e | 67 65 64 20 69 6e 20 0a |ing chan|ged in .|
|00001c20| 3b 3b 3b 20 77 68 61 74 | 65 76 65 72 20 62 75 66 |;;; what|ever buf|
|00001c30| 66 65 72 20 61 20 63 6f | 6d 6d 61 6e 64 20 69 73 |fer a co|mmand is|
|00001c40| 20 63 61 6c 6c 65 64 20 | 66 72 6f 6d 2e 20 20 49 | called |from. I|
|00001c50| 74 20 73 68 6f 75 6c 64 | 20 62 65 20 75 73 65 64 |t should| be used|
|00001c60| 20 69 6e 0a 3b 3b 3b 20 | 66 75 6e 63 74 69 6f 6e | in.;;; |function|
|00001c70| 73 20 74 68 61 74 20 63 | 61 6e 20 63 61 75 73 65 |s that c|an cause|
|00001c80| 20 72 65 63 75 72 73 69 | 76 65 20 65 64 69 74 73 | recursi|ve edits|
|00001c90| 2e 0a 28 64 65 66 6d 61 | 63 72 6f 20 77 69 74 68 |..(defma|cro with|
|00001ca0| 2d 66 75 6e 63 74 69 6f | 6e 2d 68 6f 6d 65 20 28 |-functio|n-home (|
|00001cb0| 62 75 66 66 65 72 20 64 | 69 72 65 63 74 6f 72 79 |buffer d|irectory|
|00001cc0| 20 26 72 65 73 74 20 66 | 6f 72 6d 73 29 0a 20 20 | &rest f|orms). |
|00001cd0| 22 45 78 65 63 75 74 65 | 20 74 68 65 20 62 6f 64 |"Execute| the bod|
|00001ce0| 79 20 6f 66 20 74 68 65 | 20 6d 61 63 72 6f 20 69 |y of the| macro i|
|00001cf0| 6e 73 69 64 65 20 74 68 | 65 20 67 69 76 65 6e 20 |nside th|e given |
|00001d00| 42 55 46 46 45 52 2c 20 | 77 69 74 68 20 74 68 65 |BUFFER, |with the|
|00001d10| 0a 67 69 76 65 6e 20 44 | 49 52 45 43 54 4f 52 59 |.given D|IRECTORY|
|00001d20| 20 61 73 20 74 68 65 20 | 64 65 66 61 75 6c 74 2d | as the |default-|
|00001d30| 64 69 72 65 63 74 6f 72 | 79 20 6f 66 20 74 68 61 |director|y of tha|
|00001d40| 74 20 62 75 66 66 65 72 | 2e 20 20 45 76 65 72 79 |t buffer|. Every|
|00001d50| 74 68 69 6e 67 0a 69 73 | 20 72 65 73 74 6f 72 65 |thing.is| restore|
|00001d60| 64 20 6f 6e 20 65 78 69 | 74 2e 22 0a 20 20 20 20 |d on exi|t.". |
|00001d70| 28 6c 65 74 20 28 28 73 | 61 76 65 64 2d 64 69 72 |(let ((s|aved-dir|
|00001d80| 20 28 67 65 6e 73 79 6d | 29 29 29 0a 20 20 20 20 | (gensym|))). |
|00001d90| 20 20 28 60 20 28 77 69 | 74 68 2d 62 75 66 66 65 | (` (wi|th-buffe|
|00001da0| 72 20 28 2c 20 62 75 66 | 66 65 72 29 0a 09 20 20 |r (, buf|fer).. |
|00001db0| 20 28 6c 65 74 2a 20 28 | 28 20 28 2c 20 73 61 76 | (let* (|( (, sav|
|00001dc0| 65 64 2d 64 69 72 29 20 | 64 65 66 61 75 6c 74 2d |ed-dir) |default-|
|00001dd0| 64 69 72 65 63 74 6f 72 | 79 29 0a 09 09 20 20 28 |director|y)... (|
|00001de0| 64 65 66 61 75 6c 74 2d | 64 69 72 65 63 74 6f 72 |default-|director|
|00001df0| 79 20 28 2c 20 64 69 72 | 65 63 74 6f 72 79 29 29 |y (, dir|ectory))|
|00001e00| 29 0a 09 20 20 20 20 20 | 28 75 6e 77 69 6e 64 2d |).. |(unwind-|
|00001e10| 70 72 6f 74 65 63 74 20 | 28 70 72 6f 67 6e 20 28 |protect |(progn (|
|00001e20| 2c 40 20 66 6f 72 6d 73 | 29 29 0a 09 20 20 20 20 |,@ forms|)).. |
|00001e30| 20 20 20 28 73 65 74 71 | 20 64 65 66 61 75 6c 74 | (setq| default|
|00001e40| 2d 64 69 72 65 63 74 6f | 72 79 20 28 2c 20 73 61 |-directo|ry (, sa|
|00001e50| 76 65 64 2d 64 69 72 29 | 29 29 29 29 29 29 29 0a |ved-dir)|))))))).|
|00001e60| 0a 3b 3b 20 53 6f 20 74 | 68 65 79 20 69 6e 64 65 |.;; So t|hey inde|
|00001e70| 6e 74 20 72 65 61 73 6f | 6e 61 62 6c 79 2e 0a 28 |nt reaso|nably..(|
|00001e80| 70 75 74 20 27 77 69 74 | 68 2d 62 75 66 66 65 72 |put 'wit|h-buffer|
|00001e90| 20 27 6c 69 73 70 2d 69 | 6e 64 65 6e 74 2d 68 6f | 'lisp-i|ndent-ho|
|00001ea0| 6f 6b 20 31 29 0a 28 70 | 75 74 20 27 77 69 74 68 |ok 1).(p|ut 'with|
|00001eb0| 2d 66 75 6e 63 74 69 6f | 6e 2d 68 6f 6d 65 20 27 |-functio|n-home '|
|00001ec0| 6c 69 73 70 2d 69 6e 64 | 65 6e 74 2d 68 6f 6f 6b |lisp-ind|ent-hook|
|00001ed0| 20 31 29 0a 20 20 20 20 | 0a 3b 3d 3d 3d 25 25 53 | 1). |.;===%%S|
|00001ee0| 46 25 25 20 6d 61 63 72 | 6f 73 20 28 45 6e 64 29 |F%% macr|os (End)|
|00001ef0| 20 20 3d 3d 3d 0a 0a 0a | 0c 0a 3b 3d 3d 3d 25 25 | ===...|..;===%%|
|00001f00| 53 46 25 25 20 69 6e 74 | 65 72 66 61 63 65 73 20 |SF%% int|erfaces |
|00001f10| 28 53 74 61 72 74 29 20 | 20 3d 3d 3d 0a 3b 3b 3b |(Start) | ===.;;;|
|00001f20| 20 54 68 65 73 65 20 61 | 72 65 20 74 68 65 20 6d | These a|re the m|
|00001f30| 61 6a 6f 72 20 75 73 65 | 72 20 69 6e 74 65 72 66 |ajor use|r interf|
|00001f40| 61 63 65 73 2e 0a 0a 3b | 3b 3b 20 42 75 66 66 65 |aces...;|;; Buffe|
|00001f50| 72 20 70 6f 70 73 20 75 | 70 2e 20 20 43 75 72 73 |r pops u|p. Curs|
|00001f60| 6f 72 20 72 65 6d 61 69 | 6e 73 20 69 6e 20 6f 6c |or remai|ns in ol|
|00001f70| 64 20 62 75 66 66 65 72 | 2e 0a 3b 3b 3b 20 43 75 |d buffer|..;;; Cu|
|00001f80| 72 72 65 6e 74 2d 62 75 | 66 66 65 72 20 69 73 20 |rrent-bu|ffer is |
|00001f90| 75 6e 63 68 61 6e 67 65 | 64 2e 0a 28 64 65 66 75 |unchange|d..(defu|
|00001fa0| 6e 20 63 6f 6e 66 69 67 | 2d 64 69 66 66 20 28 66 |n config|-diff (f|
|00001fb0| 69 6c 65 29 0a 20 20 22 | 54 68 69 73 20 66 75 6e |ile). "|This fun|
|00001fc0| 63 74 69 6f 6e 20 73 68 | 6f 77 73 20 74 68 65 20 |ction sh|ows the |
|00001fd0| 64 69 66 66 65 72 65 6e | 63 65 73 20 62 65 74 77 |differen|ces betw|
|00001fe0| 65 65 6e 20 61 20 46 49 | 4c 45 20 61 6e 64 20 74 |een a FI|LE and t|
|00001ff0| 68 65 20 6d 6f 73 74 0a | 72 65 63 65 6e 74 20 76 |he most.|recent v|
|00002000| 65 72 73 69 6f 6e 20 69 | 6e 20 69 74 73 20 61 72 |ersion i|n its ar|
|00002010| 63 68 69 76 65 20 66 69 | 6c 65 2e 22 0a 20 20 28 |chive fi|le.". (|
|00002020| 69 6e 74 65 72 61 63 74 | 69 76 65 20 22 46 46 69 |interact|ive "FFi|
|00002030| 6c 65 3a 20 22 29 0a 20 | 20 28 63 75 2d 61 73 73 |le: "). | (cu-ass|
|00002040| 65 72 74 2d 73 79 73 74 | 65 6d 2d 61 76 61 69 6c |ert-syst|em-avail|
|00002050| 61 62 6c 65 29 0a 20 20 | 28 63 75 2d 6d 61 79 62 |able). |(cu-mayb|
|00002060| 65 2d 73 61 76 65 2d 66 | 69 6c 65 20 66 69 6c 65 |e-save-f|ile file|
|00002070| 29 0a 20 20 28 73 65 74 | 71 20 66 69 6c 65 20 28 |). (set|q file (|
|00002080| 63 75 2d 65 78 70 61 6e | 64 2d 61 6e 64 2d 63 68 |cu-expan|d-and-ch|
|00002090| 65 63 6b 20 66 69 6c 65 | 20 27 6e 6f 2d 64 69 72 |eck file| 'no-dir|
|000020a0| 29 29 0a 20 20 28 77 69 | 74 68 2d 62 75 66 66 65 |)). (wi|th-buffe|
|000020b0| 72 20 2a 63 6f 6e 66 69 | 67 2d 64 69 66 66 2d 62 |r *confi|g-diff-b|
|000020c0| 75 66 6e 61 6d 65 2a 0a | 20 20 20 20 28 65 72 61 |ufname*.| (era|
|000020d0| 73 65 2d 62 75 66 66 65 | 72 29 0a 20 20 20 20 28 |se-buffe|r). (|
|000020e0| 69 6e 73 65 72 74 20 22 | 44 69 66 66 20 66 6f 72 |insert "|Diff for|
|000020f0| 20 22 20 28 66 69 6c 65 | 2d 6e 61 6d 65 2d 6e 6f | " (file|-name-no|
|00002100| 6e 64 69 72 65 63 74 6f | 72 79 20 66 69 6c 65 29 |ndirecto|ry file)|
|00002110| 20 3f 5c 6e 29 0a 20 20 | 20 20 28 69 66 20 28 63 | ?\n). | (if (c|
|00002120| 6f 6e 66 69 67 2d 61 72 | 63 68 69 76 65 2d 70 20 |onfig-ar|chive-p |
|00002130| 66 69 6c 65 29 0a 09 28 | 63 6f 6e 66 69 67 2d 73 |file)..(|config-s|
|00002140| 68 65 6c 6c 2d 63 6f 6d | 6d 61 6e 64 20 28 66 75 |hell-com|mand (fu|
|00002150| 6e 63 61 6c 6c 20 28 63 | 75 2d 67 65 74 20 27 64 |ncall (c|u-get 'd|
|00002160| 69 66 66 2d 63 6f 6d 6d | 61 6e 64 29 20 66 69 6c |iff-comm|and) fil|
|00002170| 65 29 29 0a 20 20 20 20 | 20 20 28 69 6e 73 65 72 |e)). | (inser|
|00002180| 74 20 22 20 20 20 54 68 | 65 72 65 20 69 73 20 6e |t " Th|ere is n|
|00002190| 6f 20 61 72 63 68 69 76 | 65 20 66 6f 72 20 74 68 |o archiv|e for th|
|000021a0| 69 73 20 66 69 6c 65 20 | 79 65 74 2e 22 29 29 29 |is file |yet.")))|
|000021b0| 0a 20 20 28 64 69 73 70 | 6c 61 79 2d 62 75 66 66 |. (disp|lay-buff|
|000021c0| 65 72 20 2a 63 6f 6e 66 | 69 67 2d 64 69 66 66 2d |er *conf|ig-diff-|
|000021d0| 62 75 66 6e 61 6d 65 2a | 29 29 0a 0a 0a 28 64 65 |bufname*|))...(de|
|000021e0| 66 75 6e 20 63 6f 6e 66 | 69 67 2d 6d 61 79 62 65 |fun conf|ig-maybe|
|000021f0| 2d 6d 61 6b 65 2d 61 72 | 63 68 69 76 65 2d 64 69 |-make-ar|chive-di|
|00002200| 72 20 28 66 69 6c 65 29 | 0a 20 20 22 54 68 69 73 |r (file)|. "This|
|00002210| 20 66 75 6e 63 74 69 6f | 6e 20 63 68 65 63 6b 73 | functio|n checks|
|00002220| 20 77 68 65 74 68 65 72 | 20 61 6e 20 61 72 63 68 | whether| an arch|
|00002230| 69 76 65 20 64 69 72 65 | 63 74 6f 72 79 20 66 6f |ive dire|ctory fo|
|00002240| 72 20 46 49 4c 45 20 65 | 78 69 73 74 73 2e 0a 49 |r FILE e|xists..I|
|00002250| 66 20 6e 6f 74 2c 20 69 | 74 20 77 69 6c 6c 2c 20 |f not, i|t will, |
|00002260| 6f 6e 20 72 65 71 75 65 | 73 74 2c 20 74 72 79 20 |on reque|st, try |
|00002270| 74 6f 20 6d 61 6b 65 20 | 74 68 65 20 64 69 72 65 |to make |the dire|
|00002280| 63 74 6f 72 79 2e 0a 4f | 74 68 65 72 77 69 73 65 |ctory..O|therwise|
|00002290| 2c 20 69 74 20 65 72 72 | 6f 72 73 20 6f 75 74 2e |, it err|ors out.|
|000022a0| 22 0a 20 20 28 69 6e 74 | 65 72 61 63 74 69 76 65 |". (int|eractive|
|000022b0| 20 22 46 46 69 6c 65 3a | 20 22 29 0a 20 20 28 63 | "FFile:| "). (c|
|000022c0| 75 2d 61 73 73 65 72 74 | 2d 73 79 73 74 65 6d 2d |u-assert|-system-|
|000022d0| 61 76 61 69 6c 61 62 6c | 65 29 0a 20 20 28 73 65 |availabl|e). (se|
|000022e0| 74 71 20 66 69 6c 65 20 | 28 63 75 2d 65 78 70 61 |tq file |(cu-expa|
|000022f0| 6e 64 2d 61 6e 64 2d 63 | 68 65 63 6b 20 66 69 6c |nd-and-c|heck fil|
|00002300| 65 20 27 6e 6f 2d 64 69 | 72 20 27 6d 69 73 73 69 |e 'no-di|r 'missi|
|00002310| 6e 67 2d 6f 6b 29 29 0a | 20 20 28 66 75 6e 63 61 |ng-ok)).| (funca|
|00002320| 6c 6c 20 28 63 75 2d 67 | 65 74 20 27 61 73 73 65 |ll (cu-g|et 'asse|
|00002330| 72 74 2d 67 6f 6f 64 2d | 66 69 6c 65 6e 61 6d 65 |rt-good-|filename|
|00002340| 29 20 66 69 6c 65 29 0a | 20 20 28 6c 65 74 20 28 |) file).| (let (|
|00002350| 28 64 69 72 6e 61 6d 65 | 20 28 66 75 6e 63 61 6c |(dirname| (funcal|
|00002360| 6c 20 28 63 75 2d 67 65 | 74 20 27 61 72 63 68 69 |l (cu-ge|t 'archi|
|00002370| 76 65 2d 64 69 72 29 20 | 66 69 6c 65 29 29 29 0a |ve-dir) |file))).|
|00002380| 20 20 20 20 28 63 6f 6e | 64 20 28 28 66 69 6c 65 | (con|d ((file|
|00002390| 2d 64 69 72 65 63 74 6f | 72 79 2d 70 20 64 69 72 |-directo|ry-p dir|
|000023a0| 6e 61 6d 65 29 0a 09 20 | 20 20 28 69 66 20 28 69 |name).. | (if (i|
|000023b0| 6e 74 65 72 61 63 74 69 | 76 65 2d 70 29 0a 09 20 |nteracti|ve-p).. |
|000023c0| 20 20 20 20 20 20 28 6d | 65 73 73 61 67 65 20 22 | (m|essage "|
|000023d0| 41 72 63 68 69 76 65 20 | 61 6c 72 65 61 64 79 20 |Archive |already |
|000023e0| 65 78 69 73 74 73 2e 22 | 29 29 0a 09 20 20 20 74 |exists."|)).. t|
|000023f0| 29 0a 09 20 20 28 28 79 | 2d 6f 72 2d 6e 2d 70 20 |).. ((y|-or-n-p |
|00002400| 22 4e 6f 20 64 69 72 65 | 63 74 6f 72 79 20 66 6f |"No dire|ctory fo|
|00002410| 72 20 61 72 63 68 69 76 | 65 2e 20 20 4d 61 6b 65 |r archiv|e. Make|
|00002420| 20 69 74 3f 20 22 29 0a | 09 20 20 20 28 73 68 65 | it? ").|. (she|
|00002430| 6c 6c 2d 63 6f 6d 6d 61 | 6e 64 20 28 63 6f 6e 63 |ll-comma|nd (conc|
|00002440| 61 74 20 22 6d 6b 64 69 | 72 20 22 20 64 69 72 6e |at "mkdi|r " dirn|
|00002450| 61 6d 65 29 20 6e 69 6c | 29 29 0a 09 20 20 28 74 |ame) nil|)).. (t|
|00002460| 0a 09 20 20 20 28 65 72 | 72 6f 72 20 22 4e 6f 20 |.. (er|ror "No |
|00002470| 64 69 72 65 63 74 6f 72 | 79 20 66 6f 72 20 61 72 |director|y for ar|
|00002480| 63 68 69 76 65 20 66 69 | 6c 65 2e 22 29 29 29 29 |chive fi|le."))))|
|00002490| 29 0a 20 20 20 20 0a 28 | 64 65 66 75 6e 20 63 6f |). .(|defun co|
|000024a0| 6e 66 69 67 2d 61 72 63 | 68 69 76 65 2d 70 20 28 |nfig-arc|hive-p (|
|000024b0| 66 69 6c 65 29 0a 20 20 | 22 54 68 69 73 20 66 75 |file). |"This fu|
|000024c0| 6e 63 74 69 6f 6e 20 72 | 65 74 75 72 6e 73 20 54 |nction r|eturns T|
|000024d0| 20 69 66 20 61 6e 20 61 | 72 63 68 69 76 65 20 66 | if an a|rchive f|
|000024e0| 6f 72 20 46 49 4c 45 20 | 65 78 69 73 74 73 3b 20 |or FILE |exists; |
|000024f0| 4e 49 4c 20 6f 74 68 65 | 72 77 69 73 65 2e 22 0a |NIL othe|rwise.".|
|00002500| 20 20 28 69 6e 74 65 72 | 61 63 74 69 76 65 20 22 | (inter|active "|
|00002510| 46 46 69 6c 65 3a 20 22 | 29 0a 20 20 28 63 75 2d |FFile: "|). (cu-|
|00002520| 61 73 73 65 72 74 2d 73 | 79 73 74 65 6d 2d 61 76 |assert-s|ystem-av|
|00002530| 61 69 6c 61 62 6c 65 29 | 0a 20 20 28 73 65 74 71 |ailable)|. (setq|
|00002540| 20 66 69 6c 65 20 28 63 | 75 2d 65 78 70 61 6e 64 | file (c|u-expand|
|00002550| 2d 61 6e 64 2d 63 68 65 | 63 6b 20 66 69 6c 65 20 |-and-che|ck file |
|00002560| 27 6e 6f 2d 64 69 72 20 | 27 6d 69 73 73 69 6e 67 |'no-dir |'missing|
|00002570| 2d 6f 6b 29 29 0a 20 20 | 28 66 75 6e 63 61 6c 6c |-ok)). |(funcall|
|00002580| 20 28 63 75 2d 67 65 74 | 20 27 61 73 73 65 72 74 | (cu-get| 'assert|
|00002590| 2d 67 6f 6f 64 2d 66 69 | 6c 65 6e 61 6d 65 29 20 |-good-fi|lename) |
|000025a0| 66 69 6c 65 29 0a 20 20 | 28 6c 65 74 20 28 28 72 |file). |(let ((r|
|000025b0| 65 74 76 61 6c 20 28 66 | 69 6c 65 2d 65 78 69 73 |etval (f|ile-exis|
|000025c0| 74 73 2d 70 20 28 63 6f | 6e 66 69 67 2d 61 72 63 |ts-p (co|nfig-arc|
|000025d0| 68 69 76 65 20 66 69 6c | 65 29 29 29 29 0a 20 20 |hive fil|e)))). |
|000025e0| 20 20 28 69 66 20 28 69 | 6e 74 65 72 61 63 74 69 | (if (i|nteracti|
|000025f0| 76 65 2d 70 29 0a 09 28 | 69 66 20 72 65 74 76 61 |ve-p)..(|if retva|
|00002600| 6c 0a 09 20 20 20 20 28 | 6d 65 73 73 61 67 65 20 |l.. (|message |
|00002610| 22 41 72 63 68 69 76 65 | 20 65 78 69 73 74 73 2e |"Archive| exists.|
|00002620| 22 29 0a 09 20 20 28 6d | 65 73 73 61 67 65 20 22 |").. (m|essage "|
|00002630| 41 72 63 68 69 76 65 20 | 64 6f 65 73 20 6e 6f 74 |Archive |does not|
|00002640| 20 65 78 69 73 74 2e 22 | 29 29 29 0a 20 20 20 20 | exist."|))). |
|00002650| 72 65 74 76 61 6c 29 29 | 0a 20 20 20 20 20 20 0a |retval))|. .|
|00002660| 0a 28 64 65 66 75 6e 20 | 63 6f 6e 66 69 67 2d 61 |.(defun |config-a|
|00002670| 72 63 68 69 76 65 20 28 | 66 69 6c 65 29 0a 20 20 |rchive (|file). |
|00002680| 22 54 68 69 73 20 66 75 | 6e 63 74 69 6f 6e 20 72 |"This fu|nction r|
|00002690| 65 74 75 72 6e 73 20 74 | 68 65 20 6e 61 6d 65 20 |eturns t|he name |
|000026a0| 6f 66 20 74 68 65 20 61 | 72 63 68 69 76 65 20 66 |of the a|rchive f|
|000026b0| 69 6c 65 20 63 6f 72 72 | 65 73 70 6f 6e 64 69 6e |ile corr|espondin|
|000026c0| 67 20 74 6f 20 0a 46 49 | 4c 45 2e 20 20 54 68 65 |g to .FI|LE. The|
|000026d0| 72 65 27 73 20 6e 6f 20 | 67 75 61 72 61 6e 74 65 |re's no |guarante|
|000026e0| 65 20 74 68 61 74 20 74 | 68 65 20 61 72 63 68 69 |e that t|he archi|
|000026f0| 76 65 20 61 63 74 75 61 | 6c 6c 79 20 65 78 69 73 |ve actua|lly exis|
|00002700| 74 73 2e 0a 55 73 65 20 | 43 4f 4e 46 49 47 2d 41 |ts..Use |CONFIG-A|
|00002710| 52 43 48 49 56 45 2d 50 | 20 74 6f 20 74 65 6c 6c |RCHIVE-P| to tell|
|00002720| 2e 22 0a 20 20 28 69 6e | 74 65 72 61 63 74 69 76 |.". (in|teractiv|
|00002730| 65 20 22 46 46 69 6c 65 | 3a 20 22 29 0a 20 20 28 |e "FFile|: "). (|
|00002740| 63 75 2d 61 73 73 65 72 | 74 2d 73 79 73 74 65 6d |cu-asser|t-system|
|00002750| 2d 61 76 61 69 6c 61 62 | 6c 65 29 0a 20 20 28 73 |-availab|le). (s|
|00002760| 65 74 71 20 66 69 6c 65 | 20 28 63 75 2d 65 78 70 |etq file| (cu-exp|
|00002770| 61 6e 64 2d 61 6e 64 2d | 63 68 65 63 6b 20 66 69 |and-and-|check fi|
|00002780| 6c 65 20 27 6e 6f 2d 64 | 69 72 20 27 6d 69 73 73 |le 'no-d|ir 'miss|
|00002790| 69 6e 67 2d 6f 6b 29 29 | 0a 20 20 28 66 75 6e 63 |ing-ok))|. (func|
|000027a0| 61 6c 6c 20 28 63 75 2d | 67 65 74 20 27 61 73 73 |all (cu-|get 'ass|
|000027b0| 65 72 74 2d 67 6f 6f 64 | 2d 66 69 6c 65 6e 61 6d |ert-good|-filenam|
|000027c0| 65 29 20 66 69 6c 65 29 | 0a 20 20 28 6c 65 74 20 |e) file)|. (let |
|000027d0| 28 28 72 65 74 76 61 6c | 20 28 66 75 6e 63 61 6c |((retval| (funcal|
|000027e0| 6c 20 28 63 75 2d 67 65 | 74 20 27 61 72 63 68 69 |l (cu-ge|t 'archi|
|000027f0| 76 65 2d 66 69 6c 65 29 | 20 66 69 6c 65 29 29 29 |ve-file)| file)))|
|00002800| 0a 20 20 20 20 28 69 66 | 20 28 69 6e 74 65 72 61 |. (if| (intera|
|00002810| 63 74 69 76 65 2d 70 29 | 0a 09 28 6d 65 73 73 61 |ctive-p)|..(messa|
|00002820| 67 65 20 72 65 74 76 61 | 6c 29 29 0a 20 20 20 20 |ge retva|l)). |
|00002830| 72 65 74 76 61 6c 29 29 | 0a 0a 28 64 65 66 75 6e |retval))|..(defun|
|00002840| 20 63 6f 6e 66 69 67 2d | 61 73 73 65 72 74 2d 63 | config-|assert-c|
|00002850| 6f 6d 70 69 6c 65 64 20 | 28 73 6f 75 72 63 65 20 |ompiled |(source |
|00002860| 65 78 74 65 6e 73 69 6f | 6e 29 20 0a 20 20 22 54 |extensio|n) . "T|
|00002870| 68 69 73 20 66 75 6e 63 | 74 69 6f 6e 20 63 68 65 |his func|tion che|
|00002880| 63 6b 73 20 77 68 65 74 | 68 65 72 20 53 4f 55 52 |cks whet|her SOUR|
|00002890| 43 45 20 77 69 74 68 20 | 69 74 73 20 65 78 74 65 |CE with |its exte|
|000028a0| 6e 73 69 6f 6e 20 72 65 | 70 6c 61 63 65 64 20 62 |nsion re|placed b|
|000028b0| 79 0a 45 58 54 45 4e 53 | 49 4f 4e 20 69 73 20 6e |y.EXTENS|ION is n|
|000028c0| 65 77 65 72 20 74 68 61 | 6e 20 53 4f 55 52 43 45 |ewer tha|n SOURCE|
|000028d0| 2e 20 49 66 20 45 58 54 | 45 4e 53 49 4f 4e 20 69 |. If EXT|ENSION i|
|000028e0| 73 20 6e 6f 74 20 67 69 | 76 65 6e 2c 20 69 74 0a |s not gi|ven, it.|
|000028f0| 69 73 20 74 61 6b 65 6e | 20 74 6f 20 62 65 20 5c |is taken| to be \|
|00002900| 22 2e 6f 5c 22 2e 22 0a | 20 20 28 69 6e 74 65 72 |".o\".".| (inter|
|00002910| 61 63 74 69 76 65 20 22 | 46 53 6f 75 72 63 65 20 |active "|FSource |
|00002920| 46 69 6c 65 3a 20 5c 6e | 73 45 78 74 65 6e 73 69 |File: \n|sExtensi|
|00002930| 6f 6e 3a 20 28 2e 6f 29 | 20 22 29 0a 20 20 28 63 |on: (.o)| "). (c|
|00002940| 75 2d 61 73 73 65 72 74 | 2d 73 79 73 74 65 6d 2d |u-assert|-system-|
|00002950| 61 76 61 69 6c 61 62 6c | 65 29 0a 20 20 28 73 65 |availabl|e). (se|
|00002960| 74 71 20 73 6f 75 72 63 | 65 20 28 63 75 2d 65 78 |tq sourc|e (cu-ex|
|00002970| 70 61 6e 64 2d 61 6e 64 | 2d 63 68 65 63 6b 20 73 |pand-and|-check s|
|00002980| 6f 75 72 63 65 20 27 6e | 6f 2d 64 69 72 29 29 0a |ource 'n|o-dir)).|
|00002990| 20 20 28 69 66 20 28 65 | 71 75 61 6c 20 65 78 74 | (if (e|qual ext|
|000029a0| 65 6e 73 69 6f 6e 20 22 | 22 29 0a 20 20 20 20 20 |ension "|"). |
|000029b0| 20 28 73 65 74 71 20 65 | 78 74 65 6e 73 69 6f 6e | (setq e|xtension|
|000029c0| 20 22 2e 6f 22 29 29 0a | 20 20 28 6c 65 74 20 28 | ".o")).| (let (|
|000029d0| 28 6f 62 6a 65 63 74 20 | 28 63 6f 6e 63 61 74 20 |(object |(concat |
|000029e0| 28 63 75 2d 66 69 6c 65 | 2d 62 61 73 65 6e 61 6d |(cu-file|-basenam|
|000029f0| 65 20 73 6f 75 72 63 65 | 29 20 65 78 74 65 6e 73 |e source|) extens|
|00002a00| 69 6f 6e 29 29 29 0a 20 | 20 20 20 28 69 66 20 28 |ion))). | (if (|
|00002a10| 6f 72 20 28 6e 6f 74 20 | 28 66 69 6c 65 2d 65 78 |or (not |(file-ex|
|00002a20| 69 73 74 73 2d 70 20 6f | 62 6a 65 63 74 29 29 0a |ists-p o|bject)).|
|00002a30| 09 20 20 20 20 28 66 69 | 6c 65 2d 6e 65 77 65 72 |. (fi|le-newer|
|00002a40| 2d 74 68 61 6e 2d 66 69 | 6c 65 2d 70 20 73 6f 75 |-than-fi|le-p sou|
|00002a50| 72 63 65 20 6f 62 6a 65 | 63 74 29 29 0a 09 28 65 |rce obje|ct))..(e|
|00002a60| 72 72 6f 72 20 22 59 6f | 75 20 68 61 76 65 6e 27 |rror "Yo|u haven'|
|00002a70| 74 20 63 6f 6d 70 69 6c | 65 64 20 74 68 65 20 66 |t compil|ed the f|
|00002a80| 69 6c 65 20 79 65 74 2e | 22 29 29 29 29 0a 0a 3b |ile yet.|"))))..;|
|00002a90| 3b 20 4f 6e 20 65 72 72 | 6f 72 3a 20 20 4e 6f 20 |; On err|or: No |
|00002aa0| 63 68 61 6e 67 65 20 69 | 6e 20 77 69 6e 64 6f 77 |change i|n window|
|00002ab0| 20 6c 61 79 6f 75 74 2e | 0a 3b 3b 20 4f 6e 20 73 | layout.|.;; On s|
|00002ac0| 75 63 63 65 73 73 3a 20 | 20 50 6f 70 20 74 6f 20 |uccess: | Pop to |
|00002ad0| 63 68 65 63 6b 65 64 2d | 6f 75 74 20 66 69 6c 65 |checked-|out file|
|00002ae0| 2c 20 63 75 72 73 6f 72 | 20 69 6e 20 74 68 61 74 |, cursor| in that|
|00002af0| 20 62 75 66 66 65 72 3b | 0a 3b 3b 20 64 69 73 70 | buffer;|.;; disp|
|00002b00| 6c 61 79 20 72 65 73 75 | 6c 74 73 20 62 75 66 66 |lay resu|lts buff|
|00002b10| 65 72 2e 0a 28 64 65 66 | 75 6e 20 63 6f 6e 66 69 |er..(def|un confi|
|00002b20| 67 2d 6f 75 74 20 28 66 | 69 6c 65 29 0a 20 20 22 |g-out (f|ile). "|
|00002b30| 43 68 65 63 6b 20 6f 75 | 74 20 61 6e 20 65 64 69 |Check ou|t an edi|
|00002b40| 74 61 62 6c 65 20 76 65 | 72 73 69 6f 6e 20 6f 66 |table ve|rsion of|
|00002b50| 20 46 49 4c 45 2e 0a 20 | 20 20 41 20 63 6f 72 72 | FILE.. | A corr|
|00002b60| 65 73 70 6f 6e 64 69 6e | 67 20 61 72 63 68 69 76 |espondin|g archiv|
|00002b70| 65 20 66 69 6c 65 20 6d | 75 73 74 20 65 78 69 73 |e file m|ust exis|
|00002b80| 74 2e 20 20 46 49 4c 45 | 20 6d 75 73 74 20 6e 6f |t. FILE| must no|
|00002b90| 74 20 61 6c 72 65 61 64 | 79 20 62 65 0a 63 68 65 |t alread|y be.che|
|00002ba0| 63 6b 65 64 20 6f 75 74 | 2e 20 20 49 66 20 46 49 |cked out|. If FI|
|00002bb0| 4c 45 20 69 73 20 69 6e | 20 61 6e 20 45 6d 61 63 |LE is in| an Emac|
|00002bc0| 73 20 62 75 66 66 65 72 | 2c 20 69 74 20 6d 75 73 |s buffer|, it mus|
|00002bd0| 74 20 6e 6f 74 20 62 65 | 20 6d 6f 64 69 66 69 65 |t not be| modifie|
|00002be0| 64 2e 0a 4d 6f 73 74 20 | 76 65 72 73 69 6f 6e 20 |d..Most |version |
|00002bf0| 63 6f 6e 74 72 6f 6c 20 | 73 79 73 74 65 6d 73 20 |control |systems |
|00002c00| 77 6f 6e 27 74 20 63 68 | 65 63 6b 20 6f 75 74 20 |won't ch|eck out |
|00002c10| 6f 6e 74 6f 20 61 20 77 | 72 69 74 61 62 6c 65 20 |onto a w|ritable |
|00002c20| 66 69 6c 65 2c 20 62 75 | 74 0a 74 68 61 74 27 73 |file, bu|t.that's|
|00002c30| 20 6c 65 66 74 20 75 70 | 20 74 6f 20 74 68 65 6d | left up| to them|
|00002c40| 2e 0a 20 20 20 41 66 74 | 65 72 20 74 68 65 20 63 |.. Aft|er the c|
|00002c50| 68 65 63 6b 6f 75 74 2c | 20 79 6f 75 27 6c 6c 20 |heckout,| you'll |
|00002c60| 62 65 20 76 69 73 69 74 | 69 6e 67 20 74 68 65 20 |be visit|ing the |
|00002c70| 46 49 4c 45 2c 20 77 68 | 69 63 68 20 77 69 6c 6c |FILE, wh|ich will|
|00002c80| 20 74 68 65 6e 20 62 65 | 0a 77 72 69 74 61 62 6c | then be|.writabl|
|00002c90| 65 2e 22 0a 0a 20 20 28 | 69 6e 74 65 72 61 63 74 |e.".. (|interact|
|00002ca0| 69 76 65 20 22 46 46 69 | 6c 65 3a 20 22 29 0a 20 |ive "FFi|le: "). |
|00002cb0| 20 28 63 75 2d 61 73 73 | 65 72 74 2d 73 79 73 74 | (cu-ass|ert-syst|
|00002cc0| 65 6d 2d 61 76 61 69 6c | 61 62 6c 65 29 0a 20 20 |em-avail|able). |
|00002cd0| 28 73 65 74 71 20 66 69 | 6c 65 20 28 63 75 2d 65 |(setq fi|le (cu-e|
|00002ce0| 78 70 61 6e 64 2d 61 6e | 64 2d 63 68 65 63 6b 20 |xpand-an|d-check |
|00002cf0| 66 69 6c 65 20 27 6e 6f | 2d 64 69 72 20 27 6d 69 |file 'no|-dir 'mi|
|00002d00| 73 73 69 6e 67 2d 6f 6b | 29 29 0a 20 20 28 66 75 |ssing-ok|)). (fu|
|00002d10| 6e 63 61 6c 6c 20 28 63 | 75 2d 67 65 74 20 27 61 |ncall (c|u-get 'a|
|00002d20| 73 73 65 72 74 2d 67 6f | 6f 64 2d 66 69 6c 65 6e |ssert-go|od-filen|
|00002d30| 61 6d 65 29 20 66 69 6c | 65 29 0a 20 20 28 69 66 |ame) fil|e). (if|
|00002d40| 20 28 6e 6f 74 20 28 63 | 6f 6e 66 69 67 2d 61 72 | (not (c|onfig-ar|
|00002d50| 63 68 69 76 65 2d 70 20 | 66 69 6c 65 29 29 0a 20 |chive-p |file)). |
|00002d60| 20 20 20 20 20 28 65 72 | 72 6f 72 20 22 4e 6f 20 | (er|ror "No |
|00002d70| 61 72 63 68 69 76 65 20 | 66 6f 72 20 74 68 69 73 |archive |for this|
|00002d80| 20 66 69 6c 65 2e 20 20 | 4d 75 73 74 20 63 68 65 | file. |Must che|
|00002d90| 63 6b 20 69 6e 20 62 65 | 66 6f 72 65 20 63 68 65 |ck in be|fore che|
|00002da0| 63 6b 69 6e 67 20 6f 75 | 74 2e 22 29 29 0a 20 20 |cking ou|t.")). |
|00002db0| 28 69 66 20 28 63 6f 6e | 66 69 67 2d 6f 75 74 2d |(if (con|fig-out-|
|00002dc0| 70 20 66 69 6c 65 29 0a | 20 20 20 20 20 20 28 65 |p file).| (e|
|00002dd0| 72 72 6f 72 20 22 54 68 | 65 20 66 69 6c 65 20 69 |rror "Th|e file i|
|00002de0| 73 20 61 6c 72 65 61 64 | 79 20 63 68 65 63 6b 65 |s alread|y checke|
|00002df0| 64 20 6f 75 74 20 66 6f | 72 20 65 64 69 74 69 6e |d out fo|r editin|
|00002e00| 67 2e 22 29 29 0a 20 20 | 28 6c 65 74 20 28 28 66 |g.")). |(let ((f|
|00002e10| 69 6c 65 2d 62 75 66 66 | 65 72 20 28 67 65 74 2d |ile-buff|er (get-|
|00002e20| 66 69 6c 65 2d 62 75 66 | 66 65 72 20 66 69 6c 65 |file-buf|fer file|
|00002e30| 29 29 29 09 3b 20 4d 61 | 79 20 62 65 20 6e 69 6c |))).; Ma|y be nil|
|00002e40| 2e 0a 20 20 20 20 28 69 | 66 20 28 61 6e 64 20 66 |.. (i|f (and f|
|00002e50| 69 6c 65 2d 62 75 66 66 | 65 72 0a 09 20 20 20 20 |ile-buff|er.. |
|00002e60| 20 28 62 75 66 66 65 72 | 2d 6d 6f 64 69 66 69 65 | (buffer|-modifie|
|00002e70| 64 2d 70 20 66 69 6c 65 | 2d 62 75 66 66 65 72 29 |d-p file|-buffer)|
|00002e80| 29 0a 09 28 65 72 72 6f | 72 20 22 54 68 65 20 66 |)..(erro|r "The f|
|00002e90| 69 6c 65 27 73 20 62 75 | 66 66 65 72 20 69 73 20 |ile's bu|ffer is |
|00002ea0| 6d 6f 64 69 66 69 65 64 | 20 2d 2d 20 63 61 6e 27 |modified| -- can'|
|00002eb0| 74 20 72 65 70 6c 61 63 | 65 20 77 69 74 68 20 63 |t replac|e with c|
|00002ec0| 68 65 63 6b 65 64 20 6f | 75 74 20 76 65 72 73 69 |hecked o|ut versi|
|00002ed0| 6f 6e 2e 22 29 0a 20 20 | 20 20 20 20 28 6c 65 74 |on."). | (let|
|00002ee0| 2a 20 28 28 66 69 6c 65 | 2d 64 69 72 65 63 74 6f |* ((file|-directo|
|00002ef0| 72 79 20 28 66 69 6c 65 | 2d 6e 61 6d 65 2d 64 69 |ry (file|-name-di|
|00002f00| 72 65 63 74 6f 72 79 20 | 66 69 6c 65 29 29 0a 09 |rectory |file))..|
|00002f10| 20 20 20 20 20 28 63 6f | 6d 6d 61 6e 64 20 28 66 | (co|mmand (f|
|00002f20| 75 6e 63 61 6c 6c 20 28 | 63 75 2d 67 65 74 20 27 |uncall (|cu-get '|
|00002f30| 63 68 65 63 6b 6f 75 74 | 2d 63 6f 6d 6d 61 6e 64 |checkout|-command|
|00002f40| 29 20 66 69 6c 65 29 29 | 0a 09 20 20 20 20 20 28 |) file))|.. (|
|00002f50| 6e 65 77 66 69 6c 65 20 | 28 66 75 6e 63 61 6c 6c |newfile |(funcall|
|00002f60| 20 28 63 75 2d 67 65 74 | 20 27 63 68 65 63 6b 6f | (cu-get| 'checko|
|00002f70| 75 74 2d 6e 65 77 66 69 | 6c 65 29 20 66 69 6c 65 |ut-newfi|le) file|
|00002f80| 29 29 29 0a 09 28 63 75 | 2d 70 72 65 70 61 72 65 |)))..(cu|-prepare|
|00002f90| 2d 72 65 73 75 6c 74 73 | 2d 62 75 66 66 65 72 20 |-results|-buffer |
|00002fa0| 66 69 6c 65 29 0a 09 28 | 63 6f 6e 66 69 67 2d 73 |file)..(|config-s|
|00002fb0| 68 65 6c 6c 2d 63 6f 6d | 6d 61 6e 64 20 63 6f 6d |hell-com|mand com|
|00002fc0| 6d 61 6e 64 29 0a 09 28 | 66 75 6e 63 61 6c 6c 20 |mand)..(|funcall |
|00002fd0| 28 63 75 2d 67 65 74 20 | 27 70 6f 70 2d 74 6f 2d |(cu-get |'pop-to-|
|00002fe0| 63 68 61 6e 67 65 64 2d | 66 69 6c 65 29 20 6e 65 |changed-|file) ne|
|00002ff0| 77 66 69 6c 65 29 0a 09 | 28 64 69 73 70 6c 61 79 |wfile)..|(display|
|00003000| 2d 62 75 66 66 65 72 20 | 2a 63 6f 6e 66 69 67 2d |-buffer |*config-|
|00003010| 72 65 73 75 6c 74 73 2d | 62 75 66 6e 61 6d 65 2a |results-|bufname*|
|00003020| 29 0a 09 28 73 65 74 71 | 20 62 75 66 66 65 72 2d |)..(setq| buffer-|
|00003030| 72 65 61 64 2d 6f 6e 6c | 79 20 6e 69 6c 29 29 29 |read-onl|y nil)))|
|00003040| 29 29 0a 0a 28 64 65 66 | 75 6e 20 63 6f 6e 66 69 |))..(def|un confi|
|00003050| 67 2d 6f 75 74 2d 70 20 | 28 66 69 6c 65 29 0a 20 |g-out-p |(file). |
|00003060| 20 22 54 68 69 73 20 66 | 75 6e 63 74 69 6f 6e 20 | "This f|unction |
|00003070| 72 65 74 75 72 6e 73 20 | 54 20 69 66 20 74 68 65 |returns |T if the|
|00003080| 20 46 49 4c 45 20 69 73 | 20 6f 75 74 20 66 6f 72 | FILE is| out for|
|00003090| 20 65 64 69 74 69 6e 67 | 2c 20 4e 49 4c 20 69 66 | editing|, NIL if|
|000030a0| 20 69 74 27 73 0a 6e 6f | 74 20 61 6e 64 20 61 6e | it's.no|t and an|
|000030b0| 20 65 72 72 6f 72 20 69 | 66 20 69 74 20 63 61 6e | error i|f it can|
|000030c0| 27 74 20 74 65 6c 6c 2e | 20 20 41 20 46 49 4c 45 |'t tell.| A FILE|
|000030d0| 20 74 68 61 74 20 64 6f | 65 73 6e 27 74 20 68 61 | that do|esn't ha|
|000030e0| 76 65 20 61 6e 20 61 72 | 63 68 69 76 65 0a 66 69 |ve an ar|chive.fi|
|000030f0| 6c 65 20 69 73 20 4e 4f | 54 20 6f 75 74 20 66 6f |le is NO|T out fo|
|00003100| 72 20 65 64 69 74 69 6e | 67 2c 20 73 6f 20 43 4f |r editin|g, so CO|
|00003110| 4e 46 49 47 2d 4f 55 54 | 2d 50 20 77 69 6c 6c 20 |NFIG-OUT|-P will |
|00003120| 72 65 74 75 72 6e 20 4e | 49 4c 2e 20 20 54 6f 0a |return N|IL. To.|
|00003130| 64 69 73 74 69 6e 67 75 | 69 73 68 20 62 65 74 77 |distingu|ish betw|
|00003140| 65 65 6e 20 74 68 65 73 | 65 20 74 77 6f 20 76 61 |een thes|e two va|
|00003150| 72 69 61 6e 74 73 20 6f | 66 20 4e 49 4c 2c 20 75 |riants o|f NIL, u|
|00003160| 73 65 20 43 4f 4e 46 49 | 47 2d 41 52 43 48 49 56 |se CONFI|G-ARCHIV|
|00003170| 45 2d 50 2e 22 0a 20 20 | 28 69 6e 74 65 72 61 63 |E-P.". |(interac|
|00003180| 74 69 76 65 20 22 46 46 | 69 6c 65 3a 20 22 29 0a |tive "FF|ile: ").|
|00003190| 20 20 28 63 75 2d 61 73 | 73 65 72 74 2d 73 79 73 | (cu-as|sert-sys|
|000031a0| 74 65 6d 2d 61 76 61 69 | 6c 61 62 6c 65 29 0a 20 |tem-avai|lable). |
|000031b0| 20 28 73 65 74 71 20 66 | 69 6c 65 20 28 63 75 2d | (setq f|ile (cu-|
|000031c0| 65 78 70 61 6e 64 2d 61 | 6e 64 2d 63 68 65 63 6b |expand-a|nd-check|
|000031d0| 20 66 69 6c 65 20 6e 69 | 6c 20 27 6d 69 73 73 69 | file ni|l 'missi|
|000031e0| 6e 67 2d 6f 6b 29 29 0a | 20 20 28 66 75 6e 63 61 |ng-ok)).| (funca|
|000031f0| 6c 6c 20 28 63 75 2d 67 | 65 74 20 27 61 73 73 65 |ll (cu-g|et 'asse|
|00003200| 72 74 2d 67 6f 6f 64 2d | 66 69 6c 65 6e 61 6d 65 |rt-good-|filename|
|00003210| 29 20 66 69 6c 65 29 0a | 20 20 28 6c 65 74 20 28 |) file).| (let (|
|00003220| 28 72 65 74 76 61 6c 20 | 28 66 75 6e 63 61 6c 6c |(retval |(funcall|
|00003230| 20 28 63 75 2d 67 65 74 | 20 27 66 69 6c 65 2d 6f | (cu-get| 'file-o|
|00003240| 75 74 2d 70 29 20 66 69 | 6c 65 29 29 29 0a 20 20 |ut-p) fi|le))). |
|00003250| 20 20 28 69 66 20 28 69 | 6e 74 65 72 61 63 74 69 | (if (i|nteracti|
|00003260| 76 65 2d 70 29 0a 09 28 | 69 66 20 72 65 74 76 61 |ve-p)..(|if retva|
|00003270| 6c 0a 09 20 20 20 20 28 | 6d 65 73 73 61 67 65 20 |l.. (|message |
|00003280| 22 46 69 6c 65 20 69 73 | 20 63 68 65 63 6b 65 64 |"File is| checked|
|00003290| 20 6f 75 74 20 66 6f 72 | 20 65 64 69 74 69 6e 67 | out for| editing|
|000032a0| 2e 22 29 0a 09 20 20 28 | 6d 65 73 73 61 67 65 20 |.").. (|message |
|000032b0| 22 46 69 6c 65 20 69 73 | 20 6e 6f 74 20 63 68 65 |"File is| not che|
|000032c0| 63 6b 65 64 20 6f 75 74 | 2e 22 29 29 29 0a 20 20 |cked out|."))). |
|000032d0| 20 20 72 65 74 76 61 6c | 29 29 0a 0a 3b 3b 3b 20 | retval|))..;;; |
|000032e0| 42 75 66 66 65 72 20 70 | 6f 70 73 20 75 70 2e 20 |Buffer p|ops up. |
|000032f0| 20 43 75 72 73 6f 72 20 | 72 65 6d 61 69 6e 73 20 | Cursor |remains |
|00003300| 69 6e 20 6f 6c 64 20 62 | 75 66 66 65 72 2e 0a 3b |in old b|uffer..;|
|00003310| 3b 3b 20 43 75 72 72 65 | 6e 74 2d 62 75 66 66 65 |;; Curre|nt-buffe|
|00003320| 72 20 69 73 20 75 6e 63 | 68 61 6e 67 65 64 2e 0a |r is unc|hanged..|
|00003330| 28 64 65 66 75 6e 20 63 | 6f 6e 66 69 67 2d 73 68 |(defun c|onfig-sh|
|00003340| 6f 77 2d 6f 75 74 20 28 | 64 69 72 65 63 74 6f 72 |ow-out (|director|
|00003350| 79 29 0a 20 20 22 54 68 | 69 73 20 66 75 6e 63 74 |y). "Th|is funct|
|00003360| 69 6f 6e 20 73 68 6f 77 | 73 20 79 6f 75 20 77 68 |ion show|s you wh|
|00003370| 69 63 68 20 66 69 6c 65 | 73 20 61 72 65 20 63 68 |ich file|s are ch|
|00003380| 65 63 6b 65 64 20 6f 75 | 74 20 66 6f 72 20 65 64 |ecked ou|t for ed|
|00003390| 69 74 69 6e 67 20 69 6e | 0a 44 49 52 45 43 54 4f |iting in|.DIRECTO|
|000033a0| 52 59 2e 22 20 0a 20 20 | 28 69 6e 74 65 72 61 63 |RY." . |(interac|
|000033b0| 74 69 76 65 20 28 6c 69 | 73 74 20 28 66 69 6c 65 |tive (li|st (file|
|000033c0| 2d 6e 61 6d 65 2d 61 73 | 2d 64 69 72 65 63 74 6f |-name-as|-directo|
|000033d0| 72 79 20 0a 09 09 20 20 | 20 20 20 20 28 72 65 61 |ry ... | (rea|
|000033e0| 64 2d 66 69 6c 65 2d 6e | 61 6d 65 20 22 44 69 72 |d-file-n|ame "Dir|
|000033f0| 65 63 74 6f 72 79 3a 20 | 22 0a 09 09 09 09 20 20 |ectory: |"..... |
|00003400| 20 20 20 20 64 65 66 61 | 75 6c 74 2d 64 69 72 65 | defa|ult-dire|
|00003410| 63 74 6f 72 79 20 64 65 | 66 61 75 6c 74 2d 64 69 |ctory de|fault-di|
|00003420| 72 65 63 74 6f 72 79 20 | 6e 69 6c 29 29 29 29 0a |rectory |nil)))).|
|00003430| 20 20 28 63 75 2d 61 73 | 73 65 72 74 2d 73 79 73 | (cu-as|sert-sys|
|00003440| 74 65 6d 2d 61 76 61 69 | 6c 61 62 6c 65 29 0a 20 |tem-avai|lable). |
|00003450| 20 28 77 69 74 68 2d 62 | 75 66 66 65 72 20 2a 63 | (with-b|uffer *c|
|00003460| 6f 6e 66 69 67 2d 72 65 | 73 75 6c 74 73 2d 62 75 |onfig-re|sults-bu|
|00003470| 66 6e 61 6d 65 2a 0a 20 | 20 20 20 28 6c 65 74 2a |fname*. | (let*|
|00003480| 20 28 28 66 69 6c 65 6c | 69 73 74 20 20 28 66 75 | ((filel|ist (fu|
|00003490| 6e 63 61 6c 6c 20 28 63 | 75 2d 67 65 74 20 27 6f |ncall (c|u-get 'o|
|000034a0| 75 74 2d 6c 69 73 74 29 | 20 64 69 72 65 63 74 6f |ut-list)| directo|
|000034b0| 72 79 29 29 29 0a 20 20 | 20 20 20 20 28 63 75 2d |ry))). | (cu-|
|000034c0| 70 72 65 70 61 72 65 2d | 72 65 73 75 6c 74 73 2d |prepare-|results-|
|000034d0| 62 75 66 66 65 72 20 28 | 63 6f 6e 63 61 74 20 22 |buffer (|concat "|
|000034e0| 46 69 6c 65 73 20 6f 75 | 74 20 69 6e 20 64 69 72 |Files ou|t in dir|
|000034f0| 65 63 74 6f 72 79 20 22 | 20 64 69 72 65 63 74 6f |ectory "| directo|
|00003500| 72 79 20 22 5c 6e 22 29 | 29 0a 20 20 20 20 20 20 |ry "\n")|). |
|00003510| 28 69 66 20 66 69 6c 65 | 6c 69 73 74 0a 09 20 20 |(if file|list.. |
|00003520| 28 63 75 2d 66 69 6c 65 | 6c 69 73 74 2d 69 6e 2d |(cu-file|list-in-|
|00003530| 62 75 66 66 65 72 20 66 | 69 6c 65 6c 69 73 74 20 |buffer f|ilelist |
|00003540| 2a 63 6f 6e 66 69 67 2d | 72 65 73 75 6c 74 73 2d |*config-|results-|
|00003550| 62 75 66 6e 61 6d 65 2a | 29 0a 09 28 69 6e 73 65 |bufname*|)..(inse|
|00003560| 72 74 20 22 3c 3c 3c 20 | 4e 6f 20 66 69 6c 65 73 |rt "<<< |No files|
|00003570| 20 61 72 65 20 63 68 65 | 63 6b 65 64 20 6f 75 74 | are che|cked out|
|00003580| 20 3e 3e 3e 22 29 29 29 | 0a 20 20 20 20 28 64 69 | >>>")))|. (di|
|00003590| 73 70 6c 61 79 2d 62 75 | 66 66 65 72 20 2a 63 6f |splay-bu|ffer *co|
|000035a0| 6e 66 69 67 2d 72 65 73 | 75 6c 74 73 2d 62 75 66 |nfig-res|ults-buf|
|000035b0| 6e 61 6d 65 2a 29 29 29 | 0a 20 20 0a 0a 3b 3b 20 |name*)))|. ..;; |
|000035c0| 4f 6e 20 65 72 72 6f 72 | 3a 20 20 4e 6f 20 63 68 |On error|: No ch|
|000035d0| 61 6e 67 65 20 69 6e 20 | 77 69 6e 64 6f 77 20 6c |ange in |window l|
|000035e0| 61 79 6f 75 74 2e 0a 3b | 3b 20 4f 6e 20 73 75 63 |ayout..;|; On suc|
|000035f0| 63 65 73 73 3a 20 20 50 | 6f 70 20 74 6f 20 72 65 |cess: P|op to re|
|00003600| 76 65 72 74 65 64 20 66 | 69 6c 65 3b 20 64 69 73 |verted f|ile; dis|
|00003610| 70 6c 61 79 20 72 65 73 | 75 6c 74 73 20 62 75 66 |play res|ults buf|
|00003620| 66 65 72 2e 0a 3b 3b 20 | 4e 6f 74 65 3a 20 20 69 |fer..;; |Note: i|
|00003630| 66 20 61 20 63 6f 6d 6d | 65 6e 74 20 69 73 20 62 |f a comm|ent is b|
|00003640| 65 69 6e 67 20 67 61 74 | 68 65 72 65 64 2c 20 69 |eing gat|hered, i|
|00003650| 74 20 61 6e 64 20 69 74 | 73 20 62 75 66 66 65 72 |t and it|s buffer|
|00003660| 20 61 72 65 20 74 68 72 | 6f 77 6e 0a 3b 3b 20 61 | are thr|own.;; a|
|00003670| 77 61 79 20 2d 2d 20 74 | 68 61 74 27 73 20 6f 66 |way -- t|hat's of|
|00003680| 74 65 6e 20 74 68 65 20 | 70 6f 69 6e 74 20 61 74 |ten the |point at|
|00003690| 20 77 68 69 63 68 20 79 | 6f 75 20 64 65 63 69 64 | which y|ou decid|
|000036a0| 65 20 74 6f 20 75 6e 64 | 6f 2e 0a 28 64 65 66 75 |e to und|o..(defu|
|000036b0| 6e 20 63 6f 6e 66 69 67 | 2d 75 6e 64 6f 2d 6f 75 |n config|-undo-ou|
|000036c0| 74 20 28 66 69 6c 65 29 | 0a 20 20 22 54 68 69 73 |t (file)|. "This|
|000036d0| 20 66 75 6e 63 74 69 6f | 6e 20 75 6e 64 6f 65 73 | functio|n undoes|
|000036e0| 20 74 68 65 20 65 66 66 | 65 63 74 20 6f 66 20 43 | the eff|ect of C|
|000036f0| 4f 4e 46 49 47 2d 4f 55 | 54 3a 20 20 54 68 65 20 |ONFIG-OU|T: The |
|00003700| 66 69 6c 65 20 69 73 20 | 72 65 76 65 72 74 65 64 |file is |reverted|
|00003710| 0a 74 6f 20 74 68 65 20 | 76 65 72 73 69 6f 6e 20 |.to the |version |
|00003720| 69 6e 20 74 68 65 20 61 | 72 63 68 69 76 65 20 66 |in the a|rchive f|
|00003730| 69 6c 65 2c 20 61 6e 64 | 20 74 68 65 20 66 69 6c |ile, and| the fil|
|00003740| 65 20 69 73 20 6d 61 64 | 65 20 72 65 61 64 2d 6f |e is mad|e read-o|
|00003750| 6e 6c 79 2e 0a 20 20 41 | 6e 79 20 63 68 61 6e 67 |nly.. A|ny chang|
|00003760| 65 73 20 6d 61 64 65 20 | 74 6f 20 74 68 65 20 66 |es made |to the f|
|00003770| 69 6c 65 20 61 72 65 20 | 6c 6f 73 74 2e 0a 20 20 |ile are |lost.. |
|00003780| 54 68 65 20 66 75 6e 63 | 74 69 6f 6e 20 73 69 67 |The func|tion sig|
|00003790| 6e 61 6c 73 20 61 6e 20 | 65 72 72 6f 72 20 69 66 |nals an |error if|
|000037a0| 20 74 68 65 20 66 69 6c | 65 20 69 73 6e 27 74 20 | the fil|e isn't |
|000037b0| 6f 75 74 20 66 6f 72 20 | 65 64 69 74 69 6e 67 2c |out for |editing,|
|000037c0| 20 6f 72 0a 69 66 20 74 | 68 65 72 65 20 69 73 20 | or.if t|here is |
|000037d0| 6e 6f 20 61 72 63 68 69 | 76 65 20 66 69 6c 65 2e |no archi|ve file.|
|000037e0| 22 0a 20 20 28 69 6e 74 | 65 72 61 63 74 69 76 65 |". (int|eractive|
|000037f0| 20 22 46 46 69 6c 65 3a | 20 22 29 0a 20 20 28 63 | "FFile:| "). (c|
|00003800| 75 2d 61 73 73 65 72 74 | 2d 73 79 73 74 65 6d 2d |u-assert|-system-|
|00003810| 61 76 61 69 6c 61 62 6c | 65 29 0a 20 20 28 73 65 |availabl|e). (se|
|00003820| 74 71 20 66 69 6c 65 20 | 28 63 75 2d 65 78 70 61 |tq file |(cu-expa|
|00003830| 6e 64 2d 61 6e 64 2d 63 | 68 65 63 6b 20 66 69 6c |nd-and-c|heck fil|
|00003840| 65 20 27 6e 6f 2d 64 69 | 72 29 29 0a 20 20 28 66 |e 'no-di|r)). (f|
|00003850| 75 6e 63 61 6c 6c 20 28 | 63 75 2d 67 65 74 20 27 |uncall (|cu-get '|
|00003860| 61 73 73 65 72 74 2d 67 | 6f 6f 64 2d 66 69 6c 65 |assert-g|ood-file|
|00003870| 6e 61 6d 65 29 20 66 69 | 6c 65 29 0a 20 20 28 69 |name) fi|le). (i|
|00003880| 66 20 28 6e 6f 74 20 28 | 63 6f 6e 66 69 67 2d 61 |f (not (|config-a|
|00003890| 72 63 68 69 76 65 2d 70 | 20 66 69 6c 65 29 29 0a |rchive-p| file)).|
|000038a0| 20 20 20 20 20 20 28 65 | 72 72 6f 72 20 22 4e 6f | (e|rror "No|
|000038b0| 20 61 72 63 68 69 76 65 | 20 66 6f 72 20 74 68 69 | archive| for thi|
|000038c0| 73 20 66 69 6c 65 2c 20 | 73 6f 20 69 74 20 63 61 |s file, |so it ca|
|000038d0| 6e 27 74 20 65 76 65 72 | 20 68 61 76 65 20 62 65 |n't ever| have be|
|000038e0| 65 6e 20 63 68 65 63 6b | 65 64 20 6f 75 74 2e 22 |en check|ed out."|
|000038f0| 29 29 0a 20 20 28 69 66 | 20 28 6e 6f 74 20 28 63 |)). (if| (not (c|
|00003900| 6f 6e 66 69 67 2d 6f 75 | 74 2d 70 20 66 69 6c 65 |onfig-ou|t-p file|
|00003910| 29 29 0a 20 20 20 20 20 | 20 28 65 72 72 6f 72 20 |)). | (error |
|00003920| 22 54 68 65 20 66 69 6c | 65 20 68 61 73 6e 27 74 |"The fil|e hasn't|
|00003930| 20 62 65 65 6e 20 63 68 | 65 63 6b 65 64 20 6f 75 | been ch|ecked ou|
|00003940| 74 20 66 6f 72 20 65 64 | 69 74 69 6e 67 2e 22 29 |t for ed|iting.")|
|00003950| 29 0a 0a 20 20 3b 3b 20 | 41 6e 79 20 70 65 6e 64 |).. ;; |Any pend|
|00003960| 69 6e 67 20 63 6f 6d 6d | 65 6e 74 20 69 73 20 6e |ing comm|ent is n|
|00003970| 6f 77 20 69 72 72 65 6c | 65 76 61 6e 74 2e 0a 20 |ow irrel|evant.. |
|00003980| 20 28 69 66 20 28 67 65 | 74 2d 62 75 66 66 65 72 | (if (ge|t-buffer|
|00003990| 20 2a 63 6f 6e 66 69 67 | 2d 63 6f 6d 6d 65 6e 74 | *config|-comment|
|000039a0| 2d 62 75 66 6e 61 6d 65 | 2a 29 0a 20 20 20 20 20 |-bufname|*). |
|000039b0| 20 28 6b 69 6c 6c 2d 62 | 75 66 66 65 72 20 2a 63 | (kill-b|uffer *c|
|000039c0| 6f 6e 66 69 67 2d 63 6f | 6d 6d 65 6e 74 2d 62 75 |onfig-co|mment-bu|
|000039d0| 66 6e 61 6d 65 2a 29 29 | 0a 0a 20 20 28 6c 65 74 |fname*))|.. (let|
|000039e0| 2a 20 28 28 63 6f 6d 6d | 61 6e 64 20 28 66 75 6e |* ((comm|and (fun|
|000039f0| 63 61 6c 6c 20 28 63 75 | 2d 67 65 74 20 27 75 6e |call (cu|-get 'un|
|00003a00| 64 6f 2d 6f 75 74 2d 63 | 6f 6d 6d 61 6e 64 29 20 |do-out-c|ommand) |
|00003a10| 66 69 6c 65 29 29 29 0a | 20 20 20 20 28 63 75 2d |file))).| (cu-|
|00003a20| 70 72 65 70 61 72 65 2d | 72 65 73 75 6c 74 73 2d |prepare-|results-|
|00003a30| 62 75 66 66 65 72 20 66 | 69 6c 65 29 0a 20 20 20 |buffer f|ile). |
|00003a40| 20 28 63 6f 6e 66 69 67 | 2d 73 68 65 6c 6c 2d 63 | (config|-shell-c|
|00003a50| 6f 6d 6d 61 6e 64 20 63 | 6f 6d 6d 61 6e 64 29 0a |ommand c|ommand).|
|00003a60| 20 20 20 20 28 66 75 6e | 63 61 6c 6c 20 28 63 75 | (fun|call (cu|
|00003a70| 2d 67 65 74 20 27 70 6f | 70 2d 74 6f 2d 63 68 61 |-get 'po|p-to-cha|
|00003a80| 6e 67 65 64 2d 66 69 6c | 65 29 20 66 69 6c 65 29 |nged-fil|e) file)|
|00003a90| 0a 20 20 20 20 28 64 69 | 73 70 6c 61 79 2d 62 75 |. (di|splay-bu|
|00003aa0| 66 66 65 72 20 2a 63 6f | 6e 66 69 67 2d 72 65 73 |ffer *co|nfig-res|
|00003ab0| 75 6c 74 73 2d 62 75 66 | 6e 61 6d 65 2a 29 0a 20 |ults-buf|name*). |
|00003ac0| 20 20 20 28 73 65 74 71 | 20 62 75 66 66 65 72 2d | (setq| buffer-|
|00003ad0| 72 65 61 64 2d 6f 6e 6c | 79 20 74 29 29 29 0a 0a |read-onl|y t)))..|
|00003ae0| 20 20 0a 3b 3b 20 4e 6f | 72 6d 61 6c 6c 79 3a 20 | .;; No|rmally: |
|00003af0| 20 64 69 66 66 20 62 75 | 66 66 65 72 20 61 6e 64 | diff bu|ffer and|
|00003b00| 20 63 6f 6d 6d 65 6e 74 | 20 62 75 66 66 65 72 20 | comment| buffer |
|00003b10| 70 6f 70 20 75 70 2e 20 | 20 43 75 72 73 6f 72 20 |pop up. | Cursor |
|00003b20| 69 6e 0a 3b 3b 20 63 6f | 6d 6d 65 6e 74 20 62 75 |in.;; co|mment bu|
|00003b30| 66 66 65 72 2e 0a 3b 3b | 20 43 68 65 63 6b 69 6e |ffer..;;| Checkin|
|00003b40| 20 69 6e 20 70 72 6f 67 | 72 65 73 73 3a 20 20 63 | in prog|ress: c|
|00003b50| 75 72 72 65 6e 74 20 63 | 6f 6d 6d 65 6e 74 20 62 |urrent c|omment b|
|00003b60| 75 66 66 65 72 20 70 6f | 70 73 20 75 70 2e 20 20 |uffer po|ps up. |
|00003b70| 0a 3b 3b 20 20 20 49 66 | 20 74 68 65 79 20 77 61 |.;; If| they wa|
|00003b80| 6e 74 20 74 6f 20 63 6f | 6e 74 69 6e 75 65 20 74 |nt to co|ntinue t|
|00003b90| 68 61 74 20 63 68 65 63 | 6b 69 6e 2c 20 63 75 72 |hat chec|kin, cur|
|00003ba0| 73 6f 72 20 74 6f 20 74 | 68 65 20 63 6f 6d 6d 65 |sor to t|he comme|
|00003bb0| 6e 74 20 62 75 66 66 65 | 72 2e 0a 3b 3b 20 20 20 |nt buffe|r..;; |
|00003bc0| 4f 74 68 65 72 77 69 73 | 65 2c 20 6a 75 73 74 20 |Otherwis|e, just |
|00003bd0| 6c 69 6b 65 20 6f 72 64 | 69 6e 61 72 79 20 63 68 |like ord|inary ch|
|00003be0| 65 63 6b 69 6e 2e 0a 3b | 3b 20 46 69 6c 65 20 6e |eckin..;|; File n|
|00003bf0| 6f 74 20 63 68 65 63 6b | 65 64 20 6f 75 74 3a 20 |ot check|ed out: |
|00003c00| 20 4e 6f 20 63 68 61 6e | 67 65 20 69 6e 20 64 69 | No chan|ge in di|
|00003c10| 73 70 6c 61 79 2e 0a 3b | 3b 20 43 6f 6d 6d 65 6e |splay..;|; Commen|
|00003c20| 74 20 6c 6f 67 20 74 6f | 20 62 65 20 72 65 75 73 |t log to| be reus|
|00003c30| 65 64 3f 0a 3b 3b 20 20 | 20 57 68 65 6e 20 71 75 |ed?.;; | When qu|
|00003c40| 65 73 74 69 6f 6e 20 61 | 73 6b 65 64 3a 20 20 44 |estion a|sked: D|
|00003c50| 69 66 66 20 62 75 66 66 | 65 72 20 70 6f 70 73 20 |iff buff|er pops |
|00003c60| 75 70 2e 20 20 43 75 72 | 73 6f 72 20 73 74 61 79 |up. Cur|sor stay|
|00003c70| 73 20 62 65 68 69 6e 64 | 2e 0a 3b 3b 20 20 20 49 |s behind|..;; I|
|00003c80| 66 20 6e 6f 3a 20 20 4c | 69 6b 65 20 6f 72 64 69 |f no: L|ike ordi|
|00003c90| 6e 61 72 79 20 63 68 65 | 63 6b 69 6e 2e 0a 3b 3b |nary che|ckin..;;|
|00003ca0| 20 20 20 49 66 20 79 65 | 73 3a 20 74 68 65 20 64 | If ye|s: the d|
|00003cb0| 69 66 66 20 62 75 66 66 | 65 72 20 77 69 6c 6c 20 |iff buff|er will |
|00003cc0| 67 6f 20 61 77 61 79 2e | 20 20 54 68 65 20 72 65 |go away.| The re|
|00003cd0| 73 75 6c 74 73 20 62 75 | 66 66 65 72 20 77 69 6c |sults bu|ffer wil|
|00003ce0| 6c 20 62 65 0a 3b 3b 20 | 20 20 76 69 73 69 62 6c |l be.;; | visibl|
|00003cf0| 65 2e 0a 28 64 65 66 75 | 6e 20 63 6f 6e 66 69 67 |e..(defu|n config|
|00003d00| 2d 69 6e 20 28 66 69 6c | 65 29 0a 20 20 22 54 68 |-in (fil|e). "Th|
|00003d10| 69 73 20 66 75 6e 63 74 | 69 6f 6e 20 61 6c 6c 6f |is funct|ion allo|
|00003d20| 77 73 20 79 6f 75 20 74 | 6f 20 63 68 65 63 6b 20 |ws you t|o check |
|00003d30| 69 6e 20 61 20 46 49 4c | 45 2e 0a 20 20 20 49 66 |in a FIL|E.. If|
|00003d40| 20 79 6f 75 27 72 65 20 | 65 64 69 74 69 6e 67 20 | you're |editing |
|00003d50| 74 68 65 20 66 69 6c 65 | 2c 20 69 74 27 73 20 73 |the file|, it's s|
|00003d60| 61 76 65 64 20 62 65 66 | 6f 72 65 20 62 65 69 6e |aved bef|ore bein|
|00003d70| 67 20 63 68 65 63 6b 65 | 64 20 69 6e 2e 0a 20 20 |g checke|d in.. |
|00003d80| 20 54 68 69 73 20 66 75 | 6e 63 74 69 6f 6e 20 64 | This fu|nction d|
|00003d90| 69 73 70 6c 61 79 73 20 | 74 77 6f 20 62 75 66 66 |isplays |two buff|
|00003da0| 65 72 73 2e 20 20 4f 6e | 65 20 73 68 6f 77 73 20 |ers. On|e shows |
|00003db0| 74 68 65 20 64 69 66 66 | 65 72 65 6e 63 65 73 20 |the diff|erences |
|00003dc0| 62 65 74 77 65 65 6e 0a | 74 68 65 20 63 68 65 63 |between.|the chec|
|00003dd0| 6b 65 64 2d 6f 75 74 20 | 76 65 72 73 69 6f 6e 20 |ked-out |version |
|00003de0| 6f 66 20 74 68 65 20 66 | 69 6c 65 20 61 6e 64 20 |of the f|ile and |
|00003df0| 74 68 65 20 6d 6f 73 74 | 20 72 65 63 65 6e 74 20 |the most| recent |
|00003e00| 76 65 72 73 69 6f 6e 20 | 69 6e 20 74 68 65 0a 61 |version |in the.a|
|00003e10| 72 63 68 69 76 65 2e 20 | 59 6f 75 20 73 68 6f 75 |rchive. |You shou|
|00003e20| 6c 64 20 74 79 70 65 20 | 63 6f 6d 6d 65 6e 74 73 |ld type |comments|
|00003e30| 20 28 66 6f 72 20 74 68 | 65 20 61 72 63 68 69 76 | (for th|e archiv|
|00003e40| 65 20 6c 6f 67 29 20 69 | 6e 20 74 68 65 20 6f 74 |e log) i|n the ot|
|00003e50| 68 65 72 0a 62 75 66 66 | 65 72 2e 20 20 57 68 65 |her.buff|er. Whe|
|00003e60| 6e 20 66 69 6e 69 73 68 | 65 64 2c 20 74 79 70 65 |n finish|ed, type|
|00003e70| 20 5e 43 5e 43 20 74 6f | 20 63 6f 6e 74 69 6e 75 | ^C^C to| continu|
|00003e80| 65 20 77 69 74 68 20 74 | 68 65 20 63 68 65 63 6b |e with t|he check|
|00003e90| 69 6e 2e 0a 20 20 20 49 | 66 20 79 6f 75 20 77 65 |in.. I|f you we|
|00003ea0| 72 65 20 76 69 73 69 74 | 69 6e 67 20 74 68 65 20 |re visit|ing the |
|00003eb0| 66 69 6c 65 20 62 65 66 | 6f 72 65 20 63 68 65 63 |file bef|ore chec|
|00003ec0| 6b 69 6e 2c 20 79 6f 75 | 27 6c 6c 20 73 74 69 6c |kin, you|'ll stil|
|00003ed0| 6c 20 62 65 20 69 6e 20 | 69 74 0a 61 66 74 65 72 |l be in |it.after|
|00003ee0| 20 63 68 65 63 6b 69 6e | 2c 20 65 78 63 65 70 74 | checkin|, except|
|00003ef0| 20 74 68 61 74 20 74 68 | 65 20 66 69 6c 65 20 77 | that th|e file w|
|00003f00| 69 6c 6c 20 62 65 20 69 | 6e 20 73 79 6e 63 68 20 |ill be i|n synch |
|00003f10| 77 69 74 68 20 74 68 65 | 20 61 72 63 68 69 76 65 |with the| archive|
|00003f20| 0a 63 6f 70 79 20 61 6e | 64 20 69 74 20 77 69 6c |.copy an|d it wil|
|00003f30| 6c 20 62 65 20 72 65 61 | 64 2d 6f 6e 6c 79 2e 0a |l be rea|d-only..|
|00003f40| 20 20 20 54 68 65 20 61 | 72 63 68 69 76 65 20 6e | The a|rchive n|
|00003f50| 65 65 64 20 6e 6f 74 20 | 65 78 69 73 74 20 74 6f |eed not |exist to|
|00003f60| 20 63 68 65 63 6b 20 69 | 6e 20 74 68 65 20 66 69 | check i|n the fi|
|00003f70| 6c 65 2e 20 20 49 74 20 | 77 69 6c 6c 20 62 65 20 |le. It |will be |
|00003f80| 63 72 65 61 74 65 64 2e | 0a 22 0a 20 20 28 69 6e |created.|.". (in|
|00003f90| 74 65 72 61 63 74 69 76 | 65 20 22 46 46 69 6c 65 |teractiv|e "FFile|
|00003fa0| 3a 20 22 29 0a 20 20 28 | 63 75 2d 61 73 73 65 72 |: "). (|cu-asser|
|00003fb0| 74 2d 73 79 73 74 65 6d | 2d 61 76 61 69 6c 61 62 |t-system|-availab|
|00003fc0| 6c 65 29 0a 20 20 28 63 | 75 2d 6d 61 79 62 65 2d |le). (c|u-maybe-|
|00003fd0| 73 61 76 65 2d 66 69 6c | 65 20 66 69 6c 65 29 0a |save-fil|e file).|
|00003fe0| 20 20 28 73 65 74 71 20 | 66 69 6c 65 20 28 63 75 | (setq |file (cu|
|00003ff0| 2d 65 78 70 61 6e 64 2d | 61 6e 64 2d 63 68 65 63 |-expand-|and-chec|
|00004000| 6b 20 66 69 6c 65 20 27 | 6e 6f 2d 64 69 72 29 29 |k file '|no-dir))|
|00004010| 0a 20 20 28 66 75 6e 63 | 61 6c 6c 20 28 63 75 2d |. (func|all (cu-|
|00004020| 67 65 74 20 27 61 73 73 | 65 72 74 2d 67 6f 6f 64 |get 'ass|ert-good|
|00004030| 2d 66 69 6c 65 6e 61 6d | 65 29 20 66 69 6c 65 29 |-filenam|e) file)|
|00004040| 0a 0a 20 20 3b 3b 20 46 | 69 72 73 74 20 64 6f 20 |.. ;; F|irst do |
|00004050| 74 68 65 20 65 72 72 6f | 72 20 63 68 65 63 6b 69 |the erro|r checki|
|00004060| 6e 67 0a 20 20 28 69 66 | 20 28 61 6e 64 20 28 63 |ng. (if| (and (c|
|00004070| 6f 6e 66 69 67 2d 61 72 | 63 68 69 76 65 2d 70 20 |onfig-ar|chive-p |
|00004080| 66 69 6c 65 29 0a 09 20 | 20 20 28 6e 6f 74 20 28 |file).. | (not (|
|00004090| 63 6f 6e 66 69 67 2d 6f | 75 74 2d 70 20 66 69 6c |config-o|ut-p fil|
|000040a0| 65 29 29 29 0a 20 20 20 | 20 20 20 28 65 72 72 6f |e))). | (erro|
|000040b0| 72 20 22 46 69 6c 65 20 | 69 73 6e 27 74 20 63 68 |r "File |isn't ch|
|000040c0| 65 63 6b 65 64 20 6f 75 | 74 20 66 6f 72 20 65 64 |ecked ou|t for ed|
|000040d0| 69 74 69 6e 67 2e 22 29 | 29 0a 0a 20 20 28 63 6f |iting.")|).. (co|
|000040e0| 6e 66 69 67 2d 6d 61 79 | 62 65 2d 6d 61 6b 65 2d |nfig-may|be-make-|
|000040f0| 61 72 63 68 69 76 65 2d | 64 69 72 20 66 69 6c 65 |archive-|dir file|
|00004100| 29 0a 0a 20 20 3b 3b 20 | 57 65 20 6d 61 79 20 77 |).. ;; |We may w|
|00004110| 61 6e 74 20 74 6f 20 61 | 62 6f 72 74 20 61 6e 20 |ant to a|bort an |
|00004120| 69 6e 2d 70 72 6f 67 72 | 65 73 73 20 63 68 65 63 |in-progr|ess chec|
|00004130| 6b 69 6e 2e 0a 20 20 28 | 77 68 65 6e 20 28 6f 72 |kin.. (|when (or|
|00004140| 20 28 6e 6f 74 20 28 63 | 6f 6e 66 69 67 2d 63 68 | (not (c|onfig-ch|
|00004150| 65 63 6b 69 6e 67 2d 69 | 6e 2d 70 29 29 0a 09 20 |ecking-i|n-p)).. |
|00004160| 20 20 20 28 70 72 6f 67 | 6e 0a 09 20 20 20 20 20 | (prog|n.. |
|00004170| 20 28 70 6f 70 2d 74 6f | 2d 62 75 66 66 65 72 20 | (pop-to|-buffer |
|00004180| 2a 63 6f 6e 66 69 67 2d | 63 6f 6d 6d 65 6e 74 2d |*config-|comment-|
|00004190| 62 75 66 6e 61 6d 65 2a | 29 0a 09 20 20 20 20 20 |bufname*|).. |
|000041a0| 20 28 79 2d 6f 72 2d 6e | 2d 70 20 22 41 6c 72 65 | (y-or-n|-p "Alre|
|000041b0| 61 64 79 20 63 68 65 63 | 6b 69 6e 67 20 69 6e 20 |ady chec|king in |
|000041c0| 61 20 66 69 6c 65 2e 20 | 20 46 6f 72 67 65 74 20 |a file. | Forget |
|000041d0| 74 68 61 74 20 63 68 65 | 63 6b 69 6e 3f 20 22 29 |that che|ckin? ")|
|000041e0| 29 29 0a 0a 20 20 20 20 | 3b 3b 20 49 66 20 74 68 |)).. |;; If th|
|000041f0| 65 72 65 27 73 20 6e 6f | 20 70 72 65 76 69 6f 75 |ere's no| previou|
|00004200| 73 20 74 65 78 74 2c 20 | 2a 63 6f 6e 66 69 67 2d |s text, |*config-|
|00004210| 72 65 75 73 65 2a 20 6d | 69 67 68 74 20 61 73 20 |reuse* m|ight as |
|00004220| 77 65 6c 6c 20 62 65 20 | 4e 49 4c 2e 0a 20 20 20 |well be |NIL.. |
|00004230| 20 28 6c 65 74 20 28 28 | 2a 63 6f 6e 66 69 67 2d | (let ((|*config-|
|00004240| 72 65 75 73 65 2a 0a 09 | 20 20 20 28 69 66 20 28 |reuse*..| (if (|
|00004250| 67 65 74 2d 72 65 67 69 | 73 74 65 72 20 2a 63 6f |get-regi|ster *co|
|00004260| 6e 66 69 67 2d 63 6f 6d | 6d 65 6e 74 2d 72 65 67 |nfig-com|ment-reg|
|00004270| 69 73 74 65 72 2a 29 0a | 09 20 20 20 20 20 20 20 |ister*).|. |
|00004280| 2a 63 6f 6e 66 69 67 2d | 72 65 75 73 65 2a 0a 09 |*config-|reuse*..|
|00004290| 20 20 20 20 20 6e 69 6c | 29 29 29 0a 09 20 20 20 | nil|))).. |
|000042a0| 20 20 0a 20 20 20 20 20 | 20 28 77 68 65 6e 20 28 | . | (when (|
|000042b0| 6e 6f 74 20 28 65 71 20 | 2a 63 6f 6e 66 69 67 2d |not (eq |*config-|
|000042c0| 72 65 75 73 65 2a 20 74 | 29 29 0a 09 3b 3b 20 54 |reuse* t|))..;; T|
|000042d0| 68 65 79 20 68 61 76 65 | 20 74 6f 20 74 68 69 6e |hey have| to thin|
|000042e0| 6b 20 61 62 6f 75 74 20 | 77 68 61 74 20 74 68 65 |k about |what the|
|000042f0| 79 27 76 65 20 64 6f 6e | 65 20 2d 2d 20 73 68 6f |y've don|e -- sho|
|00004300| 77 20 69 74 2e 0a 09 28 | 63 6f 6e 66 69 67 2d 64 |w it...(|config-d|
|00004310| 69 66 66 20 66 69 6c 65 | 29 29 0a 0a 20 20 20 20 |iff file|)).. |
|00004320| 20 20 28 77 68 65 6e 20 | 28 65 71 20 2a 63 6f 6e | (when |(eq *con|
|00004330| 66 69 67 2d 72 65 75 73 | 65 2a 20 27 51 55 45 52 |fig-reus|e* 'QUER|
|00004340| 59 29 0a 09 3b 3b 20 50 | 72 6f 6d 6f 74 65 20 6f |Y)..;; P|romote o|
|00004350| 72 20 64 65 6d 6f 74 65 | 20 2a 63 6f 6e 66 69 67 |r demote| *config|
|00004360| 2d 72 65 75 73 65 2a 20 | 61 63 63 6f 72 64 69 6e |-reuse* |accordin|
|00004370| 67 20 74 6f 20 77 68 61 | 74 20 74 68 65 79 20 64 |g to wha|t they d|
|00004380| 65 63 69 64 65 2e 0a 09 | 28 76 69 65 77 2d 72 65 |ecide...|(view-re|
|00004390| 67 69 73 74 65 72 20 2a | 63 6f 6e 66 69 67 2d 63 |gister *|config-c|
|000043a0| 6f 6d 6d 65 6e 74 2d 72 | 65 67 69 73 74 65 72 2a |omment-r|egister*|
|000043b0| 29 0a 09 28 73 77 69 74 | 63 68 2d 74 6f 2d 62 75 |)..(swit|ch-to-bu|
|000043c0| 66 66 65 72 20 2a 63 6f | 6e 66 69 67 2d 64 69 66 |ffer *co|nfig-dif|
|000043d0| 66 2d 62 75 66 6e 61 6d | 65 2a 29 0a 09 28 73 65 |f-bufnam|e*)..(se|
|000043e0| 74 71 20 2a 63 6f 6e 66 | 69 67 2d 72 65 75 73 65 |tq *conf|ig-reuse|
|000043f0| 2a 0a 09 20 20 20 20 20 | 20 28 79 2d 6f 72 2d 6e |*.. | (y-or-n|
|00004400| 2d 70 20 28 66 6f 72 6d | 61 74 20 22 52 65 75 73 |-p (form|at "Reus|
|00004410| 65 20 70 72 65 76 69 6f | 75 73 20 63 6f 6d 6d 65 |e previo|us comme|
|00004420| 6e 74 20 69 6e 20 74 68 | 69 73 20 66 69 6c 65 2c |nt in th|is file,|
|00004430| 20 25 73 3f 20 22 0a 09 | 09 09 09 28 66 69 6c 65 | %s? "..|...(file|
|00004440| 2d 6e 61 6d 65 2d 6e 6f | 6e 64 69 72 65 63 74 6f |-name-no|ndirecto|
|00004450| 72 79 20 66 69 6c 65 29 | 29 29 29 29 0a 0a 20 20 |ry file)|)))).. |
|00004460| 20 20 20 20 3b 3b 20 41 | 74 20 74 68 69 73 20 70 | ;; A|t this p|
|00004470| 6f 69 6e 74 2c 20 6f 6e | 65 20 6f 66 20 74 77 6f |oint, on|e of two|
|00004480| 20 74 68 69 6e 67 73 20 | 63 61 6e 20 68 61 70 70 | things |can happ|
|00004490| 65 6e 2e 20 20 49 66 20 | 74 68 65 72 65 27 73 20 |en. If |there's |
|000044a0| 61 0a 20 20 20 20 20 20 | 3b 3b 20 70 72 65 76 69 |a. |;; previ|
|000044b0| 6f 75 73 20 6c 6f 67 20 | 6d 65 73 73 61 67 65 20 |ous log |message |
|000044c0| 74 6f 20 72 65 75 73 65 | 2c 20 77 65 20 6a 75 73 |to reuse|, we jus|
|000044d0| 74 20 68 61 6e 64 20 74 | 68 65 20 66 69 6c 65 20 |t hand t|he file |
|000044e0| 61 6e 64 20 74 68 65 0a | 20 20 20 20 20 20 3b 3b |and the.| ;;|
|000044f0| 20 70 72 65 76 69 6f 75 | 73 20 6d 65 73 73 61 67 | previou|s messag|
|00004500| 65 20 74 6f 20 43 55 2d | 44 4f 2d 43 48 45 43 4b |e to CU-|DO-CHECK|
|00004510| 49 4e 2e 20 20 49 66 20 | 6e 6f 74 2c 20 77 65 20 |IN. If |not, we |
|00004520| 63 72 65 61 74 65 20 74 | 68 65 20 63 6f 6d 6d 65 |create t|he comme|
|00004530| 6e 74 0a 20 20 20 20 20 | 20 3b 3b 20 62 75 66 66 |nt. | ;; buff|
|00004540| 65 72 2e 20 20 57 68 65 | 6e 20 74 68 65 20 75 73 |er. Whe|n the us|
|00004550| 65 72 20 74 79 70 65 73 | 20 5e 43 5e 43 20 74 68 |er types| ^C^C th|
|00004560| 65 72 65 2c 20 74 68 65 | 20 72 65 73 75 6c 74 69 |ere, the| resulti|
|00004570| 6e 67 20 66 75 6e 63 74 | 69 6f 6e 0a 20 20 20 20 |ng funct|ion. |
|00004580| 20 20 3b 3b 20 28 43 4f | 4e 46 49 47 2d 46 49 4e | ;; (CO|NFIG-FIN|
|00004590| 49 53 48 2d 43 48 45 43 | 4b 49 4e 29 20 77 69 6c |ISH-CHEC|KIN) wil|
|000045a0| 6c 20 63 61 6c 6c 20 43 | 55 2d 44 4f 2d 43 48 45 |l call C|U-DO-CHE|
|000045b0| 43 4b 49 4e 2e 0a 20 20 | 20 20 20 20 28 69 66 20 |CKIN.. | (if |
|000045c0| 2a 63 6f 6e 66 69 67 2d | 72 65 75 73 65 2a 0a 09 |*config-|reuse*..|
|000045d0| 20 20 28 63 75 2d 64 6f | 2d 63 68 65 63 6b 69 6e | (cu-do|-checkin|
|000045e0| 20 66 69 6c 65 20 28 67 | 65 74 2d 72 65 67 69 73 | file (g|et-regis|
|000045f0| 74 65 72 20 2a 63 6f 6e | 66 69 67 2d 63 6f 6d 6d |ter *con|fig-comm|
|00004600| 65 6e 74 2d 72 65 67 69 | 73 74 65 72 2a 29 29 0a |ent-regi|ster*)).|
|00004610| 09 28 63 75 2d 64 69 73 | 70 6c 61 79 2d 74 77 6f |.(cu-dis|play-two|
|00004620| 2d 62 75 66 66 65 72 73 | 20 2a 63 6f 6e 66 69 67 |-buffers| *config|
|00004630| 2d 63 6f 6d 6d 65 6e 74 | 2d 62 75 66 6e 61 6d 65 |-comment|-bufname|
|00004640| 2a 0a 09 09 09 09 2a 63 | 6f 6e 66 69 67 2d 64 69 |*.....*c|onfig-di|
|00004650| 66 66 2d 62 75 66 6e 61 | 6d 65 2a 29 0a 09 28 63 |ff-bufna|me*)..(c|
|00004660| 75 2d 63 68 65 63 6b 69 | 6e 2d 6d 6f 64 65 29 0a |u-checki|n-mode).|
|00004670| 09 3b 3b 20 57 65 20 6e | 65 65 64 20 74 6f 20 73 |.;; We n|eed to s|
|00004680| 74 61 73 68 20 74 68 65 | 20 66 69 6c 65 20 69 6e |tash the| file in|
|00004690| 20 74 68 65 20 62 75 66 | 66 65 72 20 73 6f 20 74 | the buf|fer so t|
|000046a0| 68 61 74 20 77 65 20 63 | 61 6e 20 0a 09 3b 3b 20 |hat we c|an ..;; |
|000046b0| 72 65 74 72 69 65 76 65 | 20 69 74 20 77 68 65 6e |retrieve| it when|
|000046c0| 20 74 68 65 20 75 73 65 | 72 20 74 79 70 65 73 20 | the use|r types |
|000046d0| 43 2d 63 20 43 2d 63 2e | 0a 09 28 6d 61 6b 65 2d |C-c C-c.|..(make-|
|000046e0| 6c 6f 63 61 6c 2d 76 61 | 72 69 61 62 6c 65 20 27 |local-va|riable '|
|000046f0| 63 68 65 63 6b 69 6e 2d | 66 69 6c 65 29 0a 09 28 |checkin-|file)..(|
|00004700| 73 65 74 71 20 63 68 65 | 63 6b 69 6e 2d 66 69 6c |setq che|ckin-fil|
|00004710| 65 20 66 69 6c 65 29 0a | 09 28 65 72 61 73 65 2d |e file).|.(erase-|
|00004720| 62 75 66 66 65 72 29 0a | 09 28 69 6e 73 65 72 74 |buffer).|.(insert|
|00004730| 20 22 4c 6f 67 20 63 6f | 6d 6d 65 6e 74 20 66 6f | "Log co|mment fo|
|00004740| 72 20 22 20 66 69 6c 65 | 20 22 5c 6e 22 29 0a 09 |r " file| "\n")..|
|00004750| 28 69 6e 73 65 72 74 20 | 2a 63 6f 6e 66 69 67 2d |(insert |*config-|
|00004760| 68 65 61 64 65 72 2d 64 | 65 6c 69 6d 2a 20 22 5c |header-d|elim* "\|
|00004770| 6e 22 29 0a 09 28 6d 65 | 73 73 61 67 65 20 22 54 |n")..(me|ssage "T|
|00004780| 79 70 65 20 69 6e 20 74 | 68 65 20 6c 6f 67 20 63 |ype in t|he log c|
|00004790| 6f 6d 6d 65 6e 74 3b 20 | 65 6e 64 20 77 69 74 68 |omment; |end with|
|000047a0| 20 5e 43 5e 43 2e 22 29 | 0a 09 28 69 66 20 2a 63 | ^C^C.")|..(if *c|
|000047b0| 6f 6e 66 69 67 2d 72 65 | 63 75 72 73 69 6e 67 2a |onfig-re|cursing*|
|000047c0| 0a 09 20 20 20 20 28 72 | 65 63 75 72 73 69 76 65 |.. (r|ecursive|
|000047d0| 2d 65 64 69 74 29 29 29 | 29 29 29 0a 0a 0a 28 64 |-edit)))|)))...(d|
|000047e0| 65 66 75 6e 20 63 6f 6e | 66 69 67 2d 6b 69 6c 6c |efun con|fig-kill|
|000047f0| 2d 63 68 65 63 6b 69 6e | 20 28 29 0a 20 20 22 54 |-checkin| (). "T|
|00004800| 68 69 73 20 63 6f 6d 6d | 61 6e 64 20 73 74 6f 70 |his comm|and stop|
|00004810| 73 20 61 6e 79 20 69 6e | 2d 70 72 6f 67 72 65 73 |s any in|-progres|
|00004820| 73 20 63 68 65 63 6b 69 | 6e 73 2c 20 75 6e 64 6f |s checki|ns, undo|
|00004830| 69 6e 67 20 74 68 65 20 | 65 66 66 65 63 74 73 20 |ing the |effects |
|00004840| 6f 66 0a 43 4f 4e 46 49 | 47 2d 49 4e 20 6f 72 20 |of.CONFI|G-IN or |
|00004850| 43 4f 4e 46 49 47 2d 44 | 49 52 2d 49 4e 2e 22 0a |CONFIG-D|IR-IN.".|
|00004860| 20 20 28 69 6e 74 65 72 | 61 63 74 69 76 65 29 0a | (inter|active).|
|00004870| 20 20 28 63 75 2d 61 73 | 73 65 72 74 2d 73 79 73 | (cu-as|sert-sys|
|00004880| 74 65 6d 2d 61 76 61 69 | 6c 61 62 6c 65 29 0a 20 |tem-avai|lable). |
|00004890| 20 28 69 66 20 28 67 65 | 74 2d 62 75 66 66 65 72 | (if (ge|t-buffer|
|000048a0| 20 2a 63 6f 6e 66 69 67 | 2d 63 6f 6d 6d 65 6e 74 | *config|-comment|
|000048b0| 2d 62 75 66 6e 61 6d 65 | 2a 29 0a 20 20 20 20 20 |-bufname|*). |
|000048c0| 20 28 6b 69 6c 6c 2d 62 | 75 66 66 65 72 20 2a 63 | (kill-b|uffer *c|
|000048d0| 6f 6e 66 69 67 2d 63 6f | 6d 6d 65 6e 74 2d 62 75 |onfig-co|mment-bu|
|000048e0| 66 6e 61 6d 65 2a 29 29 | 0a 20 20 3b 3b 20 54 6f |fname*))|. ;; To|
|000048f0| 70 20 6c 65 76 65 6c 20 | 67 65 74 73 20 75 73 20 |p level |gets us |
|00004900| 6f 75 74 20 6f 66 20 72 | 65 63 75 72 73 69 76 65 |out of r|ecursive|
|00004910| 20 65 64 69 74 73 20 61 | 6e 64 20 63 6c 65 61 72 | edits a|nd clear|
|00004920| 73 20 2a 63 6f 6e 66 69 | 67 2d 72 65 63 75 72 73 |s *confi|g-recurs|
|00004930| 69 6e 67 2a 2e 0a 20 20 | 28 77 68 65 6e 20 2a 63 |ing*.. |(when *c|
|00004940| 6f 6e 66 69 67 2d 72 65 | 63 75 72 73 69 6e 67 2a |onfig-re|cursing*|
|00004950| 0a 20 20 20 20 28 63 75 | 2d 72 65 73 75 6c 74 73 |. (cu|-results|
|00004960| 2d 6c 6f 67 69 74 20 22 | 2a 2a 2a 43 68 65 63 6b |-logit "|***Check|
|00004970| 69 6e 20 63 61 6e 63 65 | 6c 6c 65 64 2a 2a 2a 22 |in cance|lled***"|
|00004980| 29 0a 20 20 20 20 28 74 | 68 72 6f 77 20 27 6c 69 |). (t|hrow 'li|
|00004990| 73 74 2d 63 68 65 63 6b | 69 6e 2d 74 61 67 20 6e |st-check|in-tag n|
|000049a0| 69 6c 29 29 29 0a 0a 0a | 3b 3b 20 42 75 66 66 65 |il)))...|;; Buffe|
|000049b0| 72 20 70 6f 70 73 20 75 | 70 2e 20 20 43 75 72 73 |r pops u|p. Curs|
|000049c0| 6f 72 20 72 65 6d 61 69 | 6e 73 20 69 6e 20 6f 6c |or remai|ns in ol|
|000049d0| 64 20 62 75 66 66 65 72 | 2e 0a 3b 3b 3b 20 43 75 |d buffer|..;;; Cu|
|000049e0| 72 72 65 6e 74 2d 62 75 | 66 66 65 72 20 69 73 20 |rrent-bu|ffer is |
|000049f0| 75 6e 63 68 61 6e 67 65 | 64 2e 0a 28 64 65 66 75 |unchange|d..(defu|
|00004a00| 6e 20 63 6f 6e 66 69 67 | 2d 6c 6f 67 20 28 66 69 |n config|-log (fi|
|00004a10| 6c 65 29 0a 20 20 22 54 | 68 69 73 20 66 69 6c 65 |le). "T|his file|
|00004a20| 20 73 68 6f 77 73 20 74 | 68 65 20 6c 6f 67 20 66 | shows t|he log f|
|00004a30| 69 6c 65 20 66 6f 72 20 | 74 68 65 20 67 69 76 65 |ile for |the give|
|00004a40| 6e 20 46 49 4c 45 2e 22 | 0a 20 20 28 69 6e 74 65 |n FILE."|. (inte|
|00004a50| 72 61 63 74 69 76 65 20 | 22 46 46 69 6c 65 3a 20 |ractive |"FFile: |
|00004a60| 22 29 0a 20 20 28 63 75 | 2d 61 73 73 65 72 74 2d |"). (cu|-assert-|
|00004a70| 73 79 73 74 65 6d 2d 61 | 76 61 69 6c 61 62 6c 65 |system-a|vailable|
|00004a80| 29 0a 20 20 28 73 65 74 | 71 20 66 69 6c 65 20 28 |). (set|q file (|
|00004a90| 63 75 2d 65 78 70 61 6e | 64 2d 61 6e 64 2d 63 68 |cu-expan|d-and-ch|
|00004aa0| 65 63 6b 20 66 69 6c 65 | 20 27 6e 6f 2d 64 69 72 |eck file| 'no-dir|
|00004ab0| 20 27 6d 69 73 73 69 6e | 67 2d 6f 6b 29 29 0a 20 | 'missin|g-ok)). |
|00004ac0| 20 28 77 69 74 68 2d 62 | 75 66 66 65 72 20 2a 63 | (with-b|uffer *c|
|00004ad0| 6f 6e 66 69 67 2d 6c 6f | 67 2d 62 75 66 6e 61 6d |onfig-lo|g-bufnam|
|00004ae0| 65 2a 0a 20 20 20 20 28 | 65 72 61 73 65 2d 62 75 |e*. (|erase-bu|
|00004af0| 66 66 65 72 29 0a 20 20 | 20 20 28 69 6e 73 65 72 |ffer). | (inser|
|00004b00| 74 20 22 4c 6f 67 20 66 | 6f 72 20 22 20 66 69 6c |t "Log f|or " fil|
|00004b10| 65 20 22 2e 5c 6e 22 29 | 0a 20 20 20 20 28 69 66 |e ".\n")|. (if|
|00004b20| 20 28 63 6f 6e 66 69 67 | 2d 61 72 63 68 69 76 65 | (config|-archive|
|00004b30| 2d 70 20 66 69 6c 65 29 | 0a 09 28 63 6f 6e 66 69 |-p file)|..(confi|
|00004b40| 67 2d 73 68 65 6c 6c 2d | 63 6f 6d 6d 61 6e 64 20 |g-shell-|command |
|00004b50| 28 66 75 6e 63 61 6c 6c | 20 28 63 75 2d 67 65 74 |(funcall| (cu-get|
|00004b60| 20 27 6c 6f 67 2d 63 6f | 6d 6d 61 6e 64 29 20 66 | 'log-co|mmand) f|
|00004b70| 69 6c 65 29 29 0a 20 20 | 20 20 20 20 28 69 6e 73 |ile)). | (ins|
|00004b80| 65 72 74 20 22 54 68 65 | 72 65 20 69 73 20 6e 6f |ert "The|re is no|
|00004b90| 20 61 72 63 68 69 76 65 | 2e 5c 6e 22 29 29 29 0a | archive|.\n"))).|
|00004ba0| 20 20 28 64 69 73 70 6c | 61 79 2d 62 75 66 66 65 | (displ|ay-buffe|
|00004bb0| 72 20 2a 63 6f 6e 66 69 | 67 2d 6c 6f 67 2d 62 75 |r *confi|g-log-bu|
|00004bc0| 66 6e 61 6d 65 2a 29 29 | 0a 0a 0a 28 64 65 66 75 |fname*))|...(defu|
|00004bd0| 6e 20 63 6f 6e 66 69 67 | 2d 76 65 72 73 69 6f 6e |n config|-version|
|00004be0| 20 28 29 0a 20 20 22 44 | 69 73 70 6c 61 79 20 74 | (). "D|isplay t|
|00004bf0| 68 65 20 76 65 72 73 69 | 6f 6e 20 6e 75 6d 62 65 |he versi|on numbe|
|00004c00| 72 2e 22 0a 20 20 28 69 | 6e 74 65 72 61 63 74 69 |r.". (i|nteracti|
|00004c10| 76 65 29 0a 20 20 28 6d | 65 73 73 61 67 65 20 2a |ve). (m|essage *|
|00004c20| 63 6f 6e 66 69 67 2d 76 | 65 72 73 69 6f 6e 2a 29 |config-v|ersion*)|
|00004c30| 29 0a 0a 3b 20 20 20 3d | 3d 3d 25 25 53 46 25 25 |)..; =|==%%SF%%|
|00004c40| 20 69 6e 74 65 72 66 61 | 63 65 73 2f 67 72 6f 75 | interfa|ces/grou|
|00004c50| 70 20 28 53 74 61 72 74 | 29 20 20 3d 3d 3d 0a 28 |p (Start|) ===.(|
|00004c60| 64 65 66 75 6e 20 63 6f | 6e 66 69 67 2d 61 6c 6c |defun co|nfig-all|
|00004c70| 2d 69 6e 20 28 64 69 72 | 65 63 74 6f 72 79 29 0a |-in (dir|ectory).|
|00004c80| 20 20 22 54 68 69 73 20 | 72 6f 75 74 69 6e 65 20 | "This |routine |
|00004c90| 63 61 6c 6c 73 20 43 4f | 4e 46 49 47 2d 49 4e 20 |calls CO|NFIG-IN |
|00004ca0| 6f 6e 20 61 6c 6c 20 74 | 68 65 20 63 68 65 63 6b |on all t|he check|
|00004cb0| 65 64 2d 6f 75 74 20 66 | 69 6c 65 73 20 69 6e 20 |ed-out f|iles in |
|00004cc0| 74 68 65 0a 44 49 52 45 | 43 54 4f 52 59 2e 20 59 |the.DIRE|CTORY. Y|
|00004cd0| 6f 75 27 6c 6c 20 62 65 | 20 67 69 76 65 6e 20 74 |ou'll be| given t|
|00004ce0| 68 65 20 6f 70 74 69 6f | 6e 20 6f 66 20 75 73 69 |he optio|n of usi|
|00004cf0| 6e 67 20 74 68 65 20 70 | 72 65 76 69 6f 75 73 20 |ng the p|revious |
|00004d00| 66 69 6c 65 27 73 20 6c | 6f 67 0a 6d 65 73 73 61 |file's l|og.messa|
|00004d10| 67 65 20 6f 6e 20 65 61 | 63 68 20 6e 65 77 20 66 |ge on ea|ch new f|
|00004d20| 69 6c 65 2e 22 0a 20 20 | 3b 3b 20 54 68 65 20 69 |ile.". |;; The i|
|00004d30| 6e 74 65 72 61 63 74 69 | 76 65 20 27 44 27 20 6f |nteracti|ve 'D' o|
|00004d40| 70 74 69 6f 6e 20 64 6f | 65 73 6e 27 74 20 64 6f |ption do|esn't do|
|00004d50| 20 71 75 69 74 65 20 74 | 68 65 20 72 69 67 68 74 | quite t|he right|
|00004d60| 20 74 68 69 6e 67 20 2d | 2d 20 52 45 54 0a 20 20 | thing -|- RET. |
|00004d70| 3b 3b 20 6f 66 74 65 6e | 20 67 69 76 65 73 20 79 |;; often| gives y|
|00004d80| 6f 75 20 61 20 66 69 6c | 65 2c 20 6e 6f 74 20 61 |ou a fil|e, not a|
|00004d90| 20 64 69 72 65 63 74 6f | 72 79 2e 0a 20 20 28 69 | directo|ry.. (i|
|00004da0| 6e 74 65 72 61 63 74 69 | 76 65 20 28 6c 69 73 74 |nteracti|ve (list|
|00004db0| 20 28 66 69 6c 65 2d 6e | 61 6d 65 2d 61 73 2d 64 | (file-n|ame-as-d|
|00004dc0| 69 72 65 63 74 6f 72 79 | 20 0a 09 09 20 20 20 20 |irectory| ... |
|00004dd0| 20 20 28 72 65 61 64 2d | 66 69 6c 65 2d 6e 61 6d | (read-|file-nam|
|00004de0| 65 20 22 44 69 72 65 63 | 74 6f 72 79 3a 20 22 0a |e "Direc|tory: ".|
|00004df0| 09 09 09 09 20 20 20 20 | 20 20 64 65 66 61 75 6c |.... | defaul|
|00004e00| 74 2d 64 69 72 65 63 74 | 6f 72 79 20 64 65 66 61 |t-direct|ory defa|
|00004e10| 75 6c 74 2d 64 69 72 65 | 63 74 6f 72 79 20 6e 69 |ult-dire|ctory ni|
|00004e20| 6c 29 29 29 29 0a 20 20 | 28 63 75 2d 61 73 73 65 |l)))). |(cu-asse|
|00004e30| 72 74 2d 73 79 73 74 65 | 6d 2d 61 76 61 69 6c 61 |rt-syste|m-availa|
|00004e40| 62 6c 65 29 0a 0a 20 20 | 28 77 69 74 68 2d 66 75 |ble).. |(with-fu|
|00004e50| 6e 63 74 69 6f 6e 2d 68 | 6f 6d 65 20 2a 63 6f 6e |nction-h|ome *con|
|00004e60| 66 69 67 2d 72 65 73 75 | 6c 74 73 2d 62 75 66 6e |fig-resu|lts-bufn|
|00004e70| 61 6d 65 2a 20 64 69 72 | 65 63 74 6f 72 79 0a 20 |ame* dir|ectory. |
|00004e80| 20 20 20 20 28 77 68 65 | 6e 20 28 6e 6f 74 20 28 | (whe|n (not (|
|00004e90| 63 75 2d 64 75 70 6c 69 | 63 61 74 65 2d 63 68 65 |cu-dupli|cate-che|
|00004ea0| 63 6b 69 6e 2d 70 29 29 | 0a 20 20 20 20 20 20 20 |ckin-p))|. |
|00004eb0| 28 6c 65 74 20 28 28 66 | 69 6c 65 6c 69 73 74 20 |(let ((f|ilelist |
|00004ec0| 28 66 75 6e 63 61 6c 6c | 20 28 63 75 2d 67 65 74 |(funcall| (cu-get|
|00004ed0| 20 27 6f 75 74 2d 6c 69 | 73 74 29 20 64 69 72 65 | 'out-li|st) dire|
|00004ee0| 63 74 6f 72 79 29 29 0a | 09 20 20 20 20 20 28 2a |ctory)).|. (*|
|00004ef0| 63 6f 6e 66 69 67 2d 72 | 65 75 73 65 2a 20 27 51 |config-r|euse* 'Q|
|00004f00| 55 45 52 59 29 29 0a 09 | 20 28 63 75 2d 70 72 65 |UERY))..| (cu-pre|
|00004f10| 70 61 72 65 2d 72 65 73 | 75 6c 74 73 2d 62 75 66 |pare-res|ults-buf|
|00004f20| 66 65 72 20 22 43 68 65 | 63 6b 69 6e 67 20 69 6e |fer "Che|cking in|
|00004f30| 20 63 68 65 63 6b 65 64 | 2d 6f 75 74 20 66 69 6c | checked|-out fil|
|00004f40| 65 73 2e 22 29 0a 09 20 | 28 63 75 2d 6c 69 73 74 |es.").. |(cu-list|
|00004f50| 2d 69 6e 20 28 63 75 2d | 71 75 65 72 79 2d 66 69 |-in (cu-|query-fi|
|00004f60| 6c 74 65 72 20 66 69 6c | 65 6c 69 73 74 29 29 29 |lter fil|elist)))|
|00004f70| 29 29 29 0a 0a 0a 28 64 | 65 66 75 6e 20 63 6f 6e |)))...(d|efun con|
|00004f80| 66 69 67 2d 62 75 66 66 | 65 72 73 2d 69 6e 20 28 |fig-buff|ers-in (|
|00004f90| 29 0a 20 20 22 54 68 69 | 73 20 72 6f 75 74 69 6e |). "Thi|s routin|
|00004fa0| 65 20 63 61 6c 6c 73 20 | 43 4f 4e 46 49 47 2d 49 |e calls |CONFIG-I|
|00004fb0| 4e 20 6f 6e 20 61 6c 6c | 20 74 68 65 20 63 68 65 |N on all| the che|
|00004fc0| 63 6b 65 64 2d 6f 75 74 | 20 66 69 6c 65 73 20 63 |cked-out| files c|
|00004fd0| 75 72 72 65 6e 74 6c 79 | 20 62 65 69 6e 67 20 0a |urrently| being .|
|00004fe0| 65 64 69 74 65 64 2e 20 | 20 59 6f 75 27 6c 6c 20 |edited. | You'll |
|00004ff0| 62 65 20 67 69 76 65 6e | 20 74 68 65 20 6f 70 74 |be given| the opt|
|00005000| 69 6f 6e 20 6f 66 20 75 | 73 69 6e 67 20 74 68 65 |ion of u|sing the|
|00005010| 20 70 72 65 76 69 6f 75 | 73 20 66 69 6c 65 27 73 | previou|s file's|
|00005020| 20 6c 6f 67 0a 6d 65 73 | 73 61 67 65 20 6f 6e 20 | log.mes|sage on |
|00005030| 65 61 63 68 20 6e 65 77 | 20 66 69 6c 65 2e 22 0a |each new| file.".|
|00005040| 20 20 28 69 6e 74 65 72 | 61 63 74 69 76 65 29 0a | (inter|active).|
|00005050| 0a 20 20 28 63 75 2d 61 | 73 73 65 72 74 2d 73 79 |. (cu-a|ssert-sy|
|00005060| 73 74 65 6d 2d 61 76 61 | 69 6c 61 62 6c 65 29 0a |stem-ava|ilable).|
|00005070| 20 20 28 77 69 74 68 2d | 66 75 6e 63 74 69 6f 6e | (with-|function|
|00005080| 2d 68 6f 6d 65 20 2a 63 | 6f 6e 66 69 67 2d 72 65 |-home *c|onfig-re|
|00005090| 73 75 6c 74 73 2d 62 75 | 66 6e 61 6d 65 2a 20 64 |sults-bu|fname* d|
|000050a0| 65 66 61 75 6c 74 2d 64 | 69 72 65 63 74 6f 72 79 |efault-d|irectory|
|000050b0| 0a 20 20 20 20 20 28 77 | 68 65 6e 20 28 6e 6f 74 |. (w|hen (not|
|000050c0| 20 28 63 75 2d 64 75 70 | 6c 69 63 61 74 65 2d 63 | (cu-dup|licate-c|
|000050d0| 68 65 63 6b 69 6e 2d 70 | 29 29 0a 20 20 20 20 20 |heckin-p|)). |
|000050e0| 20 20 28 6c 65 74 20 28 | 28 66 69 6c 65 6c 69 73 | (let (|(filelis|
|000050f0| 74 20 28 63 75 2d 6f 75 | 74 6e 65 73 73 2d 66 69 |t (cu-ou|tness-fi|
|00005100| 6c 74 65 72 20 28 63 6f | 6e 66 69 67 2d 62 75 66 |lter (co|nfig-buf|
|00005110| 66 6d 65 6e 75 2d 66 69 | 6c 65 6c 69 73 74 29 29 |fmenu-fi|lelist))|
|00005120| 29 0a 09 20 20 20 20 20 | 28 2a 63 6f 6e 66 69 67 |).. |(*config|
|00005130| 2d 72 65 75 73 65 2a 20 | 27 51 55 45 52 59 29 29 |-reuse* |'QUERY))|
|00005140| 0a 09 20 28 63 75 2d 70 | 72 65 70 61 72 65 2d 72 |.. (cu-p|repare-r|
|00005150| 65 73 75 6c 74 73 2d 62 | 75 66 66 65 72 20 22 43 |esults-b|uffer "C|
|00005160| 68 65 63 6b 69 6e 67 20 | 69 6e 20 63 68 65 63 6b |hecking |in check|
|00005170| 65 64 2d 6f 75 74 20 62 | 75 66 66 65 72 73 2e 22 |ed-out b|uffers."|
|00005180| 29 0a 09 20 28 63 75 2d | 6c 69 73 74 2d 69 6e 20 |).. (cu-|list-in |
|00005190| 28 63 75 2d 71 75 65 72 | 79 2d 66 69 6c 74 65 72 |(cu-quer|y-filter|
|000051a0| 20 66 69 6c 65 6c 69 73 | 74 29 29 29 29 29 29 0a | filelis|t)))))).|
|000051b0| 0a 0a 3b 3b 3b 20 44 75 | 72 69 6e 67 20 69 6e 74 |..;;; Du|ring int|
|000051c0| 65 72 6d 65 64 69 61 74 | 65 20 63 68 65 63 6b 69 |ermediat|e checki|
|000051d0| 6e 73 3a 0a 3b 3b 3b 20 | 20 20 53 61 6d 65 20 72 |ns:.;;; | Same r|
|000051e0| 75 6c 65 73 20 61 73 20 | 63 6f 6e 66 69 67 2d 69 |ules as |config-i|
|000051f0| 6e 3a 20 20 63 6f 6d 6d | 65 6e 74 20 6c 6f 67 20 |n: comm|ent log |
|00005200| 69 6e 20 6f 6e 65 20 77 | 69 6e 64 6f 77 2c 20 64 |in one w|indow, d|
|00005210| 69 66 66 20 69 6e 20 74 | 68 65 20 6f 74 68 65 72 |iff in t|he other|
|00005220| 2e 0a 3b 3b 3b 20 41 74 | 20 65 6e 64 3a 0a 3b 3b |..;;; At| end:.;;|
|00005230| 3b 20 20 20 54 68 65 20 | 72 65 73 75 6c 74 73 20 |; The |results |
|00005240| 62 75 66 66 65 72 20 69 | 73 20 74 68 65 20 6f 6e |buffer i|s the on|
|00005250| 6c 79 20 62 75 66 66 65 | 72 20 76 69 73 69 62 6c |ly buffe|r visibl|
|00005260| 65 2e 0a 28 64 65 66 75 | 6e 20 63 6f 6e 66 69 67 |e..(defu|n config|
|00005270| 2d 64 69 72 2d 69 6e 20 | 28 64 69 72 65 63 74 6f |-dir-in |(directo|
|00005280| 72 79 29 0a 20 20 22 54 | 68 69 73 20 72 6f 75 74 |ry). "T|his rout|
|00005290| 69 6e 65 20 63 61 6c 6c | 73 20 43 4f 4e 46 49 47 |ine call|s CONFIG|
|000052a0| 2d 49 4e 20 6f 6e 20 74 | 68 65 20 66 69 6c 65 73 |-IN on t|he files|
|000052b0| 20 69 6e 20 74 68 65 20 | 44 49 52 45 43 54 4f 52 | in the |DIRECTOR|
|000052c0| 59 0a 61 72 67 75 6d 65 | 6e 74 2e 20 20 59 6f 75 |Y.argume|nt. You|
|000052d0| 27 6c 6c 20 62 65 20 67 | 69 76 65 6e 20 74 68 65 |'ll be g|iven the|
|000052e0| 20 6f 70 74 69 6f 6e 20 | 6f 66 20 75 73 69 6e 67 | option |of using|
|000052f0| 20 74 68 65 20 70 72 65 | 76 69 6f 75 73 20 66 69 | the pre|vious fi|
|00005300| 6c 65 27 73 20 6c 6f 67 | 0a 6d 65 73 73 61 67 65 |le's log|.message|
|00005310| 20 6f 6e 20 65 61 63 68 | 20 6e 65 77 20 66 69 6c | on each| new fil|
|00005320| 65 2e 0a 0a 54 68 65 73 | 65 20 6b 69 6e 64 73 20 |e...Thes|e kinds |
|00005330| 6f 66 20 66 69 6c 65 73 | 20 61 72 65 20 6e 65 76 |of files| are nev|
|00005340| 65 72 20 63 68 65 63 6b | 65 64 20 69 6e 3a 0a 2d |er check|ed in:.-|
|00005350| 20 44 69 72 65 63 74 6f | 72 69 65 73 2e 0a 2d 20 | Directo|ries..- |
|00005360| 42 61 63 6b 75 70 20 61 | 6e 64 20 61 75 74 6f 2d |Backup a|nd auto-|
|00005370| 73 61 76 65 20 66 69 6c | 65 73 2e 0a 2d 20 43 20 |save fil|es..- C |
|00005380| 6f 62 6a 65 63 74 20 66 | 69 6c 65 73 20 28 65 6e |object f|iles (en|
|00005390| 64 69 6e 67 20 69 6e 20 | 2e 6f 29 0a 2d 20 4c 69 |ding in |.o).- Li|
|000053a0| 62 72 61 72 79 20 66 69 | 6c 65 73 20 28 65 6e 64 |brary fi|les (end|
|000053b0| 69 6e 67 20 69 6e 20 2e | 61 29 0a 2d 20 43 6f 6d |ing in .|a).- Com|
|000053c0| 70 72 65 73 73 65 64 20 | 66 69 6c 65 73 20 28 65 |pressed |files (e|
|000053d0| 6e 64 69 6e 67 20 69 6e | 20 2e 5a 20 6f 72 20 2e |nding in| .Z or .|
|000053e0| 7a 29 0a 2d 20 43 6f 6d | 70 69 6c 65 64 20 65 6c |z).- Com|piled el|
|000053f0| 69 73 70 20 66 69 6c 65 | 73 20 28 65 6e 64 69 6e |isp file|s (endin|
|00005400| 67 20 69 6e 20 2e 65 6c | 63 29 0a 2d 20 46 69 6c |g in .el|c).- Fil|
|00005410| 65 73 20 77 69 74 68 20 | 61 72 63 68 69 76 65 20 |es with |archive |
|00005420| 66 69 6c 65 73 20 74 68 | 61 74 20 61 72 65 20 6e |files th|at are n|
|00005430| 6f 74 20 63 68 65 63 6b | 65 64 20 6f 75 74 20 66 |ot check|ed out f|
|00005440| 6f 72 20 65 64 69 74 69 | 6e 67 2e 0a 0a 45 78 63 |or editi|ng...Exc|
|00005450| 65 70 74 69 6f 6e 3a 20 | 20 49 66 20 74 68 65 20 |eption: | If the |
|00005460| 66 69 6c 65 20 69 6e 64 | 65 65 64 20 68 61 73 20 |file ind|eed has |
|00005470| 61 6e 20 61 72 63 68 69 | 76 65 20 66 69 6c 65 2c |an archi|ve file,|
|00005480| 20 61 6e 64 20 69 73 20 | 63 68 65 63 6b 65 64 0a | and is |checked.|
|00005490| 6f 75 74 20 66 6f 72 20 | 65 64 69 74 69 6e 67 2c |out for |editing,|
|000054a0| 20 69 74 20 77 69 6c 6c | 20 62 65 20 63 68 65 63 | it will| be chec|
|000054b0| 6b 65 64 20 69 6e 20 72 | 65 67 61 72 64 6c 65 73 |ked in r|egardles|
|000054c0| 73 20 6f 66 20 69 74 73 | 20 6e 61 6d 65 2e 0a 0a |s of its| name...|
|000054d0| 49 66 20 61 20 66 69 6c | 65 20 68 61 73 20 6e 6f |If a fil|e has no|
|000054e0| 20 61 72 63 68 69 76 65 | 20 66 69 6c 65 2c 20 79 | archive| file, y|
|000054f0| 6f 75 27 6c 6c 20 62 65 | 20 61 73 6b 65 64 20 77 |ou'll be| asked w|
|00005500| 68 65 74 68 65 72 20 79 | 6f 75 20 77 61 6e 74 20 |hether y|ou want |
|00005510| 74 6f 0a 63 68 65 63 6b | 20 74 68 65 20 66 69 6c |to.check| the fil|
|00005520| 65 20 69 6e 20 28 74 68 | 75 73 20 63 72 65 61 74 |e in (th|us creat|
|00005530| 69 6e 67 20 61 6e 20 61 | 72 63 68 69 76 65 29 2e |ing an a|rchive).|
|00005540| 0a 0a 41 6c 6c 20 6f 66 | 20 74 68 65 73 65 20 72 |..All of| these r|
|00005550| 75 6c 65 73 20 63 61 6e | 20 62 65 20 6f 76 65 72 |ules can| be over|
|00005560| 72 69 64 64 65 6e 20 62 | 79 20 6d 6f 64 69 66 79 |ridden b|y modify|
|00005570| 69 6e 67 0a 2a 63 6f 6e | 66 69 67 2d 66 69 6c 65 |ing.*con|fig-file|
|00005580| 6e 61 6d 65 2d 66 69 6c | 74 65 72 2d 6c 69 73 74 |name-fil|ter-list|
|00005590| 2a 2e 22 20 0a 0a 20 20 | 3b 3b 20 54 68 65 20 69 |*." .. |;; The i|
|000055a0| 6e 74 65 72 61 63 74 69 | 76 65 20 27 44 27 20 6f |nteracti|ve 'D' o|
|000055b0| 70 74 69 6f 6e 20 64 6f | 65 73 6e 27 74 20 64 6f |ption do|esn't do|
|000055c0| 20 71 75 69 74 65 20 74 | 68 65 20 72 69 67 68 74 | quite t|he right|
|000055d0| 20 74 68 69 6e 67 20 2d | 2d 20 52 45 54 0a 20 20 | thing -|- RET. |
|000055e0| 3b 3b 20 6f 66 74 65 6e | 20 67 69 76 65 73 20 79 |;; often| gives y|
|000055f0| 6f 75 20 61 20 66 69 6c | 65 2c 20 6e 6f 74 20 61 |ou a fil|e, not a|
|00005600| 20 64 69 72 65 63 74 6f | 72 79 2e 0a 20 20 28 69 | directo|ry.. (i|
|00005610| 6e 74 65 72 61 63 74 69 | 76 65 20 28 6c 69 73 74 |nteracti|ve (list|
|00005620| 20 28 66 69 6c 65 2d 6e | 61 6d 65 2d 61 73 2d 64 | (file-n|ame-as-d|
|00005630| 69 72 65 63 74 6f 72 79 | 20 0a 09 09 20 20 20 20 |irectory| ... |
|00005640| 20 20 28 72 65 61 64 2d | 66 69 6c 65 2d 6e 61 6d | (read-|file-nam|
|00005650| 65 20 22 44 69 72 65 63 | 74 6f 72 79 3a 20 22 0a |e "Direc|tory: ".|
|00005660| 09 09 09 09 20 20 20 20 | 20 20 64 65 66 61 75 6c |.... | defaul|
|00005670| 74 2d 64 69 72 65 63 74 | 6f 72 79 20 64 65 66 61 |t-direct|ory defa|
|00005680| 75 6c 74 2d 64 69 72 65 | 63 74 6f 72 79 20 6e 69 |ult-dire|ctory ni|
|00005690| 6c 29 29 29 29 0a 20 20 | 28 63 75 2d 61 73 73 65 |l)))). |(cu-asse|
|000056a0| 72 74 2d 73 79 73 74 65 | 6d 2d 61 76 61 69 6c 61 |rt-syste|m-availa|
|000056b0| 62 6c 65 29 0a 0a 20 20 | 3b 3b 20 53 61 76 65 20 |ble).. |;; Save |
|000056c0| 62 75 66 66 65 72 73 20 | 69 6e 20 63 61 73 65 20 |buffers |in case |
|000056d0| 74 68 65 72 65 27 73 20 | 61 6e 20 65 64 69 74 65 |there's |an edite|
|000056e0| 64 20 66 69 6c 65 20 74 | 68 61 74 20 64 6f 65 73 |d file t|hat does|
|000056f0| 6e 27 74 20 68 61 76 65 | 20 61 6e 0a 20 20 3b 3b |n't have| an. ;;|
|00005700| 20 6f 6e 2d 64 69 73 6b | 20 69 6d 61 67 65 20 79 | on-disk| image y|
|00005710| 65 74 2e 0a 20 20 28 73 | 61 76 65 2d 73 6f 6d 65 |et.. (s|ave-some|
|00005720| 2d 62 75 66 66 65 72 73 | 29 0a 0a 20 20 28 77 69 |-buffers|).. (wi|
|00005730| 74 68 2d 66 75 6e 63 74 | 69 6f 6e 2d 68 6f 6d 65 |th-funct|ion-home|
|00005740| 20 2a 63 6f 6e 66 69 67 | 2d 72 65 73 75 6c 74 73 | *config|-results|
|00005750| 2d 62 75 66 6e 61 6d 65 | 2a 20 64 69 72 65 63 74 |-bufname|* direct|
|00005760| 6f 72 79 0a 20 20 20 20 | 20 28 77 68 65 6e 20 28 |ory. | (when (|
|00005770| 6e 6f 74 20 28 63 75 2d | 64 75 70 6c 69 63 61 74 |not (cu-|duplicat|
|00005780| 65 2d 63 68 65 63 6b 69 | 6e 2d 70 29 29 0a 20 20 |e-checki|n-p)). |
|00005790| 20 20 20 20 20 28 63 75 | 2d 70 72 65 70 61 72 65 | (cu|-prepare|
|000057a0| 2d 72 65 73 75 6c 74 73 | 2d 62 75 66 66 65 72 20 |-results|-buffer |
|000057b0| 22 43 68 65 63 6b 69 6e | 67 20 69 6e 20 61 20 6c |"Checkin|g in a l|
|000057c0| 69 73 74 20 6f 66 20 66 | 69 6c 65 73 2e 22 29 0a |ist of f|iles.").|
|000057d0| 20 20 20 20 20 20 20 28 | 6c 65 74 2a 20 28 28 66 | (|let* ((f|
|000057e0| 69 6c 65 6c 69 73 74 0a | 09 20 20 20 20 20 20 20 |ilelist.|. |
|000057f0| 28 63 75 2d 61 70 70 6c | 79 2d 66 69 6c 65 2d 66 |(cu-appl|y-file-f|
|00005800| 69 6c 74 65 72 73 20 28 | 64 69 72 65 63 74 6f 72 |ilters (|director|
|00005810| 79 2d 66 69 6c 65 73 20 | 64 69 72 65 63 74 6f 72 |y-files |director|
|00005820| 79 20 27 66 75 6c 6c 29 | 29 29 0a 09 20 20 20 20 |y 'full)|)).. |
|00005830| 20 20 28 2a 63 6f 6e 66 | 69 67 2d 72 65 75 73 65 | (*conf|ig-reuse|
|00005840| 2a 20 2a 63 6f 6e 66 69 | 67 2d 72 65 75 73 65 2a |* *confi|g-reuse*|
|00005850| 29 29 0a 09 20 28 69 66 | 20 28 61 6e 64 20 28 3e |)).. (if| (and (>|
|00005860| 20 28 6c 65 6e 67 74 68 | 20 66 69 6c 65 6c 69 73 | (length| filelis|
|00005870| 74 29 20 31 29 0a 09 09 | 20 20 28 79 65 73 2d 6f |t) 1)...| (yes-o|
|00005880| 72 2d 6e 6f 2d 70 0a 09 | 09 20 20 20 22 53 68 6f |r-no-p..|. "Sho|
|00005890| 75 6c 64 20 74 68 65 20 | 66 69 72 73 74 20 63 6f |uld the |first co|
|000058a0| 6d 6d 65 6e 74 20 62 65 | 20 73 69 6c 65 6e 74 6c |mment be| silentl|
|000058b0| 79 20 75 73 65 64 20 66 | 6f 72 20 61 6c 6c 20 66 |y used f|or all f|
|000058c0| 69 6c 65 73 3f 20 22 29 | 29 0a 09 20 20 20 20 20 |iles? ")|).. |
|000058d0| 28 73 65 74 71 20 2a 63 | 6f 6e 66 69 67 2d 72 65 |(setq *c|onfig-re|
|000058e0| 75 73 65 2a 20 74 29 0a | 09 20 20 20 28 73 65 74 |use* t).|. (set|
|000058f0| 71 20 2a 63 6f 6e 66 69 | 67 2d 72 65 75 73 65 2a |q *confi|g-reuse*|
|00005900| 20 27 51 55 45 52 59 29 | 29 0a 09 20 28 63 75 2d | 'QUERY)|).. (cu-|
|00005910| 6c 69 73 74 2d 69 6e 20 | 66 69 6c 65 6c 69 73 74 |list-in |filelist|
|00005920| 29 29 29 29 29 0a 0a 3b | 20 20 20 3d 3d 3d 25 25 |)))))..;| ===%%|
|00005930| 53 46 25 25 20 69 6e 74 | 65 72 66 61 63 65 73 2f |SF%% int|erfaces/|
|00005940| 67 72 6f 75 70 20 28 45 | 6e 64 29 20 20 3d 3d 3d |group (E|nd) ===|
|00005950| 0a 0a 3b 20 20 20 3d 3d | 3d 25 25 53 46 25 25 20 |..; ==|=%%SF%% |
|00005960| 69 6e 74 65 72 66 61 63 | 65 73 2f 64 69 72 65 64 |interfac|es/dired|
|00005970| 20 28 53 74 61 72 74 29 | 20 20 3d 3d 3d 0a 3b 3b | (Start)| ===.;;|
|00005980| 3b 20 20 20 44 49 52 45 | 44 20 69 6e 74 65 72 66 |; DIRE|D interf|
|00005990| 61 63 65 2e 20 20 53 6f | 6d 65 20 63 6f 64 65 20 |ace. So|me code |
|000059a0| 61 6e 64 20 69 64 65 61 | 73 20 73 74 6f 6c 65 6e |and idea|s stolen|
|000059b0| 20 66 72 6f 6d 20 43 68 | 72 69 73 20 4c 69 65 62 | from Ch|ris Lieb|
|000059c0| 6d 61 6e 2e 0a 0a 0a 3b | 3b 3b 20 50 75 73 68 20 |man....;|;; Push |
|000059d0| 6f 75 72 20 73 65 74 75 | 70 20 66 75 6e 63 74 69 |our setu|p functi|
|000059e0| 6f 6e 20 6f 6e 20 74 68 | 65 20 64 69 72 65 64 2d |on on th|e dired-|
|000059f0| 6d 6f 64 65 20 68 6f 6f | 6b 2e 20 0a 28 63 6f 6e |mode hoo|k. .(con|
|00005a00| 64 20 28 28 6e 6f 74 20 | 28 62 6f 75 6e 64 70 20 |d ((not |(boundp |
|00005a10| 27 64 69 72 65 64 2d 6d | 6f 64 65 2d 68 6f 6f 6b |'dired-m|ode-hook|
|00005a20| 29 29 0a 20 20 20 20 20 | 20 20 28 73 65 74 71 20 |)). | (setq |
|00005a30| 64 69 72 65 64 2d 6d 6f | 64 65 2d 68 6f 6f 6b 20 |dired-mo|de-hook |
|00005a40| 27 64 69 72 65 64 2d 63 | 6f 6e 66 69 67 2d 73 65 |'dired-c|onfig-se|
|00005a50| 74 75 70 29 29 0a 20 20 | 20 20 20 20 28 28 6c 69 |tup)). | ((li|
|00005a60| 73 74 70 20 64 69 72 65 | 64 2d 6d 6f 64 65 2d 68 |stp dire|d-mode-h|
|00005a70| 6f 6f 6b 29 0a 20 20 20 | 20 20 20 20 28 70 75 73 |ook). | (pus|
|00005a80| 68 20 27 64 69 72 65 64 | 2d 63 6f 6e 66 69 67 2d |h 'dired|-config-|
|00005a90| 73 65 74 75 70 20 64 69 | 72 65 64 2d 6d 6f 64 65 |setup di|red-mode|
|00005aa0| 2d 68 6f 6f 6b 29 29 0a | 20 20 20 20 20 20 28 74 |-hook)).| (t|
|00005ab0| 0a 20 20 20 20 20 20 20 | 28 73 65 74 71 20 64 69 |. |(setq di|
|00005ac0| 72 65 64 2d 6d 6f 64 65 | 2d 68 6f 6f 6b 0a 09 20 |red-mode|-hook.. |
|00005ad0| 20 20 20 20 28 6c 69 73 | 74 20 27 64 69 72 65 64 | (lis|t 'dired|
|00005ae0| 2d 63 6f 6e 66 69 67 2d | 73 65 74 75 70 20 64 69 |-config-|setup di|
|00005af0| 72 65 64 2d 6d 6f 64 65 | 2d 68 6f 6f 6b 29 29 29 |red-mode|-hook)))|
|00005b00| 29 0a 0a 3b 3b 3b 20 4e | 6f 74 65 20 74 68 61 74 |)..;;; N|ote that|
|00005b10| 20 79 6f 75 20 63 61 6e | 20 73 65 74 20 2a 63 6f | you can| set *co|
|00005b20| 6e 66 69 67 2d 64 69 72 | 65 64 2d 69 6e 74 65 72 |nfig-dir|ed-inter|
|00005b30| 66 61 63 65 2a 20 61 74 | 20 61 6e 79 20 74 69 6d |face* at| any tim|
|00005b40| 65 2e 0a 3b 3b 3b 20 41 | 6e 79 20 64 69 72 65 64 |e..;;; A|ny dired|
|00005b50| 73 20 61 66 74 65 72 20 | 74 68 61 74 20 77 69 6c |s after |that wil|
|00005b60| 6c 20 68 61 76 65 20 64 | 69 72 65 64 2d 63 6f 6e |l have d|ired-con|
|00005b70| 66 69 67 20 6b 65 79 20 | 62 69 6e 64 69 6e 67 73 |fig key |bindings|
|00005b80| 2e 0a 28 64 65 66 75 6e | 20 64 69 72 65 64 2d 63 |..(defun| dired-c|
|00005b90| 6f 6e 66 69 67 2d 73 65 | 74 75 70 20 28 29 0a 20 |onfig-se|tup (). |
|00005ba0| 20 22 53 65 74 75 70 20 | 63 6f 6e 66 69 67 20 6b | "Setup |config k|
|00005bb0| 65 79 20 62 69 6e 64 69 | 6e 67 73 20 66 6f 72 20 |ey bindi|ngs for |
|00005bc0| 64 69 72 65 64 2e 22 0a | 20 20 28 77 68 65 6e 20 |dired.".| (when |
|00005bd0| 2a 63 6f 6e 66 69 67 2d | 64 69 72 65 64 2d 69 6e |*config-|dired-in|
|00005be0| 74 65 72 66 61 63 65 2a | 0a 20 20 20 20 28 6c 6f |terface*|. (lo|
|00005bf0| 63 61 6c 2d 73 65 74 2d | 6b 65 79 20 22 6c 22 20 |cal-set-|key "l" |
|00005c00| 27 64 69 72 65 64 2d 63 | 6f 6e 66 69 67 2d 6c 6f |'dired-c|onfig-lo|
|00005c10| 67 29 0a 20 20 20 20 28 | 6c 6f 63 61 6c 2d 73 65 |g). (|local-se|
|00005c20| 74 2d 6b 65 79 20 22 44 | 22 20 27 64 69 72 65 64 |t-key "D|" 'dired|
|00005c30| 2d 63 6f 6e 66 69 67 2d | 64 69 66 66 29 0a 20 20 |-config-|diff). |
|00005c40| 20 20 28 6c 6f 63 61 6c | 2d 73 65 74 2d 6b 65 79 | (local|-set-key|
|00005c50| 20 22 49 22 20 27 64 69 | 72 65 64 2d 63 6f 6e 66 | "I" 'di|red-conf|
|00005c60| 69 67 2d 69 6e 29 0a 20 | 20 20 20 28 6c 6f 63 61 |ig-in). | (loca|
|00005c70| 6c 2d 73 65 74 2d 6b 65 | 79 20 22 4f 22 20 27 64 |l-set-ke|y "O" 'd|
|00005c80| 69 72 65 64 2d 63 6f 6e | 66 69 67 2d 6f 75 74 29 |ired-con|fig-out)|
|00005c90| 0a 20 20 20 20 28 6c 6f | 63 61 6c 2d 73 65 74 2d |. (lo|cal-set-|
|00005ca0| 6b 65 79 20 22 3e 22 20 | 27 64 69 72 65 64 2d 63 |key ">" |'dired-c|
|00005cb0| 6f 6e 66 69 67 2d 66 6c | 61 67 2d 66 69 6c 65 2d |onfig-fl|ag-file-|
|00005cc0| 66 6f 72 2d 63 68 65 63 | 6b 69 6e 29 0a 20 20 20 |for-chec|kin). |
|00005cd0| 20 28 6c 6f 63 61 6c 2d | 73 65 74 2d 6b 65 79 20 | (local-|set-key |
|00005ce0| 22 3c 22 20 27 64 69 72 | 65 64 2d 63 6f 6e 66 69 |"<" 'dir|ed-confi|
|00005cf0| 67 2d 66 6c 61 67 2d 66 | 69 6c 65 2d 66 6f 72 2d |g-flag-f|ile-for-|
|00005d00| 63 68 65 63 6b 69 6e 29 | 0a 20 20 20 20 28 6c 6f |checkin)|. (lo|
|00005d10| 63 61 6c 2d 73 65 74 2d | 6b 65 79 20 22 41 22 20 |cal-set-|key "A" |
|00005d20| 27 64 69 72 65 64 2d 63 | 6f 6e 66 69 67 2d 66 6c |'dired-c|onfig-fl|
|00005d30| 61 67 2d 61 6c 6c 2d 6f | 75 74 29 0a 20 20 20 20 |ag-all-o|ut). |
|00005d40| 28 6c 6f 63 61 6c 2d 73 | 65 74 2d 6b 65 79 20 22 |(local-s|et-key "|
|00005d50| 58 22 20 27 64 69 72 65 | 64 2d 63 6f 6e 66 69 67 |X" 'dire|d-config|
|00005d60| 2d 63 68 65 63 6b 69 6e | 2d 66 6c 61 67 67 65 64 |-checkin|-flagged|
|00005d70| 2d 66 69 6c 65 73 29 29 | 29 0a 0a 3b 3b 3b 0a 3b |-files))|)..;;;.;|
|00005d80| 3b 3b 20 44 69 72 65 64 | 20 63 6f 6d 6d 61 6e 64 |;; Dired| command|
|00005d90| 73 2e 0a 3b 3b 3b 0a 0a | 28 64 65 66 75 6e 20 64 |s..;;;..|(defun d|
|00005da0| 69 72 65 64 2d 63 6f 6e | 66 69 67 2d 6f 75 74 20 |ired-con|fig-out |
|00005db0| 28 29 0a 20 20 22 49 6e | 20 64 69 72 65 64 2c 20 |(). "In| dired, |
|00005dc0| 63 61 6c 6c 20 43 4f 4e | 46 49 47 2d 4f 55 54 20 |call CON|FIG-OUT |
|00005dd0| 74 6f 20 63 68 65 63 6b | 20 6f 75 74 20 61 20 66 |to check| out a f|
|00005de0| 69 6c 65 2e 22 0a 20 20 | 28 69 6e 74 65 72 61 63 |ile.". |(interac|
|00005df0| 74 69 76 65 29 0a 20 20 | 28 63 75 2d 61 73 73 65 |tive). |(cu-asse|
|00005e00| 72 74 2d 73 79 73 74 65 | 6d 2d 61 76 61 69 6c 61 |rt-syste|m-availa|
|00005e10| 62 6c 65 29 0a 20 20 28 | 6c 65 74 2a 20 28 28 66 |ble). (|let* ((f|
|00005e20| 69 6c 65 6e 61 6d 65 20 | 28 64 69 72 65 64 2d 67 |ilename |(dired-g|
|00005e30| 65 74 2d 66 69 6c 65 6e | 61 6d 65 29 29 29 0a 20 |et-filen|ame))). |
|00005e40| 20 20 20 28 63 6f 6e 66 | 69 67 2d 6f 75 74 20 66 | (conf|ig-out f|
|00005e50| 69 6c 65 6e 61 6d 65 29 | 29 29 0a 0a 28 64 65 66 |ilename)|))..(def|
|00005e60| 75 6e 20 64 69 72 65 64 | 2d 63 6f 6e 66 69 67 2d |un dired|-config-|
|00005e70| 69 6e 20 28 29 0a 20 20 | 22 49 6e 20 64 69 72 65 |in (). |"In dire|
|00005e80| 64 2c 20 63 61 6c 6c 20 | 43 4f 4e 46 49 47 2d 49 |d, call |CONFIG-I|
|00005e90| 4e 20 74 6f 20 63 68 65 | 63 6b 20 69 6e 20 61 20 |N to che|ck in a |
|00005ea0| 66 69 6c 65 2e 22 0a 20 | 20 28 69 6e 74 65 72 61 |file.". | (intera|
|00005eb0| 63 74 69 76 65 29 0a 20 | 20 28 63 75 2d 61 73 73 |ctive). | (cu-ass|
|00005ec0| 65 72 74 2d 73 79 73 74 | 65 6d 2d 61 76 61 69 6c |ert-syst|em-avail|
|00005ed0| 61 62 6c 65 29 0a 20 20 | 28 6c 65 74 20 28 28 66 |able). |(let ((f|
|00005ee0| 69 6c 65 6e 61 6d 65 20 | 28 64 69 72 65 64 2d 67 |ilename |(dired-g|
|00005ef0| 65 74 2d 66 69 6c 65 6e | 61 6d 65 29 29 29 0a 20 |et-filen|ame))). |
|00005f00| 20 20 20 28 63 6f 6e 66 | 69 67 2d 69 6e 20 66 69 | (conf|ig-in fi|
|00005f10| 6c 65 6e 61 6d 65 29 29 | 29 0a 0a 28 64 65 66 75 |lename))|)..(defu|
|00005f20| 6e 20 64 69 72 65 64 2d | 63 6f 6e 66 69 67 2d 6c |n dired-|config-l|
|00005f30| 6f 67 20 28 29 0a 20 20 | 22 49 6e 20 64 69 72 65 |og (). |"In dire|
|00005f40| 64 2c 20 63 61 6c 6c 20 | 43 4f 4e 46 49 47 2d 4c |d, call |CONFIG-L|
|00005f50| 4f 47 20 74 6f 20 73 68 | 6f 77 20 61 20 66 69 6c |OG to sh|ow a fil|
|00005f60| 65 27 73 20 61 72 63 68 | 69 76 65 20 6c 6f 67 2e |e's arch|ive log.|
|00005f70| 22 0a 20 20 28 69 6e 74 | 65 72 61 63 74 69 76 65 |". (int|eractive|
|00005f80| 29 0a 20 20 28 63 75 2d | 61 73 73 65 72 74 2d 73 |). (cu-|assert-s|
|00005f90| 79 73 74 65 6d 2d 61 76 | 61 69 6c 61 62 6c 65 29 |ystem-av|ailable)|
|00005fa0| 0a 20 20 28 63 6f 6e 66 | 69 67 2d 6c 6f 67 20 28 |. (conf|ig-log (|
|00005fb0| 64 69 72 65 64 2d 67 65 | 74 2d 66 69 6c 65 6e 61 |dired-ge|t-filena|
|00005fc0| 6d 65 29 29 29 0a 0a 28 | 64 65 66 75 6e 20 64 69 |me)))..(|defun di|
|00005fd0| 72 65 64 2d 63 6f 6e 66 | 69 67 2d 64 69 66 66 20 |red-conf|ig-diff |
|00005fe0| 28 29 0a 20 20 22 49 6e | 20 64 69 72 65 64 2c 20 |(). "In| dired, |
|00005ff0| 64 69 66 66 20 74 68 65 | 20 77 6f 72 6b 69 6e 67 |diff the| working|
|00006000| 20 66 69 6c 65 20 61 67 | 61 69 6e 73 74 20 74 68 | file ag|ainst th|
|00006010| 65 20 6c 61 74 65 73 74 | 20 63 68 65 63 6b 65 64 |e latest| checked|
|00006020| 20 69 6e 20 6f 6e 65 2e | 22 0a 20 20 28 69 6e 74 | in one.|". (int|
|00006030| 65 72 61 63 74 69 76 65 | 29 0a 20 20 28 63 75 2d |eractive|). (cu-|
|00006040| 61 73 73 65 72 74 2d 73 | 79 73 74 65 6d 2d 61 76 |assert-s|ystem-av|
|00006050| 61 69 6c 61 62 6c 65 29 | 0a 20 20 28 63 6f 6e 66 |ailable)|. (conf|
|00006060| 69 67 2d 64 69 66 66 20 | 28 64 69 72 65 64 2d 67 |ig-diff |(dired-g|
|00006070| 65 74 2d 66 69 6c 65 6e | 61 6d 65 29 29 29 0a 0a |et-filen|ame)))..|
|00006080| 28 64 65 66 75 6e 20 64 | 69 72 65 64 2d 63 6f 6e |(defun d|ired-con|
|00006090| 66 69 67 2d 66 6c 61 67 | 2d 66 69 6c 65 2d 66 6f |fig-flag|-file-fo|
|000060a0| 72 2d 63 68 65 63 6b 69 | 6e 20 28 61 72 67 29 0a |r-checki|n (arg).|
|000060b0| 20 20 22 49 6e 20 64 69 | 72 65 64 2c 20 6d 61 72 | "In di|red, mar|
|000060c0| 6b 20 61 20 66 69 6c 65 | 20 66 6f 72 20 63 68 65 |k a file| for che|
|000060d0| 63 6b 69 6e 2e 20 20 27 | 58 27 20 70 65 72 66 6f |ckin. '|X' perfo|
|000060e0| 72 6d 73 20 74 68 65 20 | 63 68 65 63 6b 69 6e 2e |rms the |checkin.|
|000060f0| 0a 57 69 74 68 20 61 72 | 67 2c 20 72 65 70 65 61 |.With ar|g, repea|
|00006100| 74 20 6f 76 65 72 20 41 | 52 47 20 6c 69 6e 65 73 |t over A|RG lines|
|00006110| 22 0a 20 20 28 69 6e 74 | 65 72 61 63 74 69 76 65 |". (int|eractive|
|00006120| 20 22 70 22 29 0a 20 20 | 28 63 75 2d 61 73 73 65 | "p"). |(cu-asse|
|00006130| 72 74 2d 73 79 73 74 65 | 6d 2d 61 76 61 69 6c 61 |rt-syste|m-availa|
|00006140| 62 6c 65 29 0a 20 20 28 | 6c 65 74 20 28 28 62 75 |ble). (|let ((bu|
|00006150| 66 66 65 72 2d 72 65 61 | 64 2d 6f 6e 6c 79 20 6e |ffer-rea|d-only n|
|00006160| 69 6c 29 29 0a 20 20 20 | 20 28 64 69 72 65 64 2d |il)). | (dired-|
|00006170| 72 65 70 65 61 74 2d 6f | 76 65 72 2d 6c 69 6e 65 |repeat-o|ver-line|
|00006180| 73 20 61 72 67 0a 20 20 | 20 20 20 20 27 28 6c 61 |s arg. | '(la|
|00006190| 6d 62 64 61 20 28 29 0a | 09 20 28 6c 65 74 2a 20 |mbda ().|. (let* |
|000061a0| 28 28 66 69 6c 65 20 28 | 64 69 72 65 64 2d 67 65 |((file (|dired-ge|
|000061b0| 74 2d 66 69 6c 65 6e 61 | 6d 65 29 29 0a 09 09 28 |t-filena|me))...(|
|000061c0| 69 73 2d 61 72 63 68 69 | 76 65 2d 66 69 6c 65 20 |is-archi|ve-file |
|000061d0| 28 63 6f 6e 66 69 67 2d | 61 72 63 68 69 76 65 2d |(config-|archive-|
|000061e0| 70 20 66 69 6c 65 29 29 | 29 0a 09 20 20 20 28 69 |p file))|).. (i|
|000061f0| 66 20 28 61 6e 64 20 69 | 73 2d 61 72 63 68 69 76 |f (and i|s-archiv|
|00006200| 65 2d 66 69 6c 65 0a 09 | 09 20 20 20 20 28 6e 6f |e-file..|. (no|
|00006210| 74 20 28 63 6f 6e 66 69 | 67 2d 6f 75 74 2d 70 20 |t (confi|g-out-p |
|00006220| 66 69 6c 65 29 29 29 0a | 09 20 20 20 20 20 20 20 |file))).|. |
|00006230| 28 65 72 72 6f 72 20 22 | 46 69 6c 65 20 69 73 20 |(error "|File is |
|00006240| 6e 6f 74 20 63 68 65 63 | 6b 65 64 20 6f 75 74 20 |not chec|ked out |
|00006250| 66 6f 72 20 65 64 69 74 | 69 6e 67 22 29 0a 09 20 |for edit|ing").. |
|00006260| 20 20 20 20 28 69 66 20 | 28 6e 6f 74 20 69 73 2d | (if |(not is-|
|00006270| 61 72 63 68 69 76 65 2d | 66 69 6c 65 29 0a 09 09 |archive-|file)...|
|00006280| 20 28 6d 65 73 73 61 67 | 65 20 22 4e 6f 74 65 3a | (messag|e "Note:|
|00006290| 20 66 69 6c 65 20 68 61 | 73 20 6e 6f 20 61 72 63 | file ha|s no arc|
|000062a0| 68 69 76 65 2e 22 29 29 | 0a 09 20 20 20 20 20 28 |hive."))|.. (|
|000062b0| 6c 65 74 20 28 28 62 75 | 66 66 65 72 2d 72 65 61 |let ((bu|ffer-rea|
|000062c0| 64 2d 6f 6e 6c 79 20 6e | 69 6c 29 29 0a 09 20 20 |d-only n|il)).. |
|000062d0| 20 20 20 20 20 28 64 65 | 6c 65 74 65 2d 63 68 61 | (de|lete-cha|
|000062e0| 72 20 31 29 0a 09 20 20 | 20 20 20 20 20 28 69 6e |r 1).. | (in|
|000062f0| 73 65 72 74 20 22 3c 22 | 29 29 29 29 29 29 29 29 |sert "<"|))))))))|
|00006300| 0a 0a 0a 3b 3b 20 4e 6f | 74 65 3a 20 20 63 61 6c |...;; No|te: cal|
|00006310| 6c 69 6e 67 20 64 69 72 | 65 64 2d 63 6f 6e 66 69 |ling dir|ed-confi|
|00006320| 67 2d 66 6c 61 67 2d 66 | 69 6c 65 2d 66 6f 72 2d |g-flag-f|ile-for-|
|00006330| 63 68 65 63 6b 69 6e 20 | 69 73 20 67 72 6f 73 73 |checkin |is gross|
|00006340| 20 77 61 73 74 61 67 65 | 2e 0a 3b 3b 20 49 74 20 | wastage|..;; It |
|00006350| 64 6f 65 73 20 6d 75 63 | 68 20 75 6e 6e 65 63 65 |does muc|h unnece|
|00006360| 73 73 61 72 79 20 63 68 | 65 63 6b 69 6e 67 2e 0a |ssary ch|ecking..|
|00006370| 3b 3b 20 53 6f 6d 65 64 | 61 79 20 63 6c 65 61 6e |;; Somed|ay clean|
|00006380| 20 74 68 69 73 20 75 70 | 20 74 6f 20 62 65 20 61 | this up| to be a|
|00006390| 20 73 69 6d 70 6c 65 20 | 74 72 61 76 65 72 73 61 | simple |traversa|
|000063a0| 6c 20 6f 66 20 74 68 65 | 20 64 69 72 65 64 20 62 |l of the| dired b|
|000063b0| 75 66 66 65 72 2e 0a 28 | 64 65 66 75 6e 20 64 69 |uffer..(|defun di|
|000063c0| 72 65 64 2d 63 6f 6e 66 | 69 67 2d 66 6c 61 67 2d |red-conf|ig-flag-|
|000063d0| 61 6c 6c 2d 6f 75 74 20 | 28 29 0a 20 20 22 49 6e |all-out |(). "In|
|000063e0| 20 64 69 72 65 64 2c 20 | 63 68 65 63 6b 20 69 6e | dired, |check in|
|000063f0| 20 61 6c 6c 20 74 68 65 | 20 63 68 65 63 6b 65 64 | all the| checked|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.