home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Source Code 1993 July / THE_SOURCE_CODE_CD_ROM.iso / languages / elisp / interfaces / sccs < prev    next >
Mailbox/MIME Entity  |  1990-07-22  |  30.2 KB

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: Mailbox/MIME Entity (archive/mbox).

ConfidenceProgramDetectionMatch TypeSupport
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 ark1!uakari.primate.wisc.edu!zaphod.mps.ohio-state.edu!tut.cis.ohio-state.edu!snark.uu.net!eric Mon Mar 5 09:14:58 1990", ASCII text default
100% TrID E-Mail message (Var. 2) default
100% checkBytes Printable ASCII default
100% perlTextCheck Likely Text (Perl) default
100% siegfried x-fmt/111 Plain Text File default
100% detectItEasy Format: Plain text[LF] default
100% xdgMime application/mbox default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 46 72 6f 6d 20 61 72 6b | 31 21 75 61 6b 61 72 69 |From ark|1!uakari|
|00000010| 2e 70 72 69 6d 61 74 65 | 2e 77 69 73 63 2e 65 64 |.primate|.wisc.ed|
|00000020| 75 21 7a 61 70 68 6f 64 | 2e 6d 70 73 2e 6f 68 69 |u!zaphod|.mps.ohi|
|00000030| 6f 2d 73 74 61 74 65 2e | 65 64 75 21 74 75 74 2e |o-state.|edu!tut.|
|00000040| 63 69 73 2e 6f 68 69 6f | 2d 73 74 61 74 65 2e 65 |cis.ohio|-state.e|
|00000050| 64 75 21 73 6e 61 72 6b | 2e 75 75 2e 6e 65 74 21 |du!snark|.uu.net!|
|00000060| 65 72 69 63 20 4d 6f 6e | 20 4d 61 72 20 20 35 20 |eric Mon| Mar 5 |
|00000070| 30 39 3a 31 34 3a 35 38 | 20 31 39 39 30 0a 41 72 |09:14:58| 1990.Ar|
|00000080| 74 69 63 6c 65 20 37 39 | 31 20 6f 66 20 67 6e 75 |ticle 79|1 of gnu|
|00000090| 2e 65 6d 61 63 73 2e 62 | 75 67 3a 0a 50 61 74 68 |.emacs.b|ug:.Path|
|000000a0| 3a 20 61 72 6b 31 21 75 | 61 6b 61 72 69 2e 70 72 |: ark1!u|akari.pr|
|000000b0| 69 6d 61 74 65 2e 77 69 | 73 63 2e 65 64 75 21 7a |imate.wi|sc.edu!z|
|000000c0| 61 70 68 6f 64 2e 6d 70 | 73 2e 6f 68 69 6f 2d 73 |aphod.mp|s.ohio-s|
|000000d0| 74 61 74 65 2e 65 64 75 | 21 74 75 74 2e 63 69 73 |tate.edu|!tut.cis|
|000000e0| 2e 6f 68 69 6f 2d 73 74 | 61 74 65 2e 65 64 75 21 |.ohio-st|ate.edu!|
|000000f0| 73 6e 61 72 6b 2e 75 75 | 2e 6e 65 74 21 65 72 69 |snark.uu|.net!eri|
|00000100| 63 0a 46 72 6f 6d 20 65 | 72 69 63 40 73 6e 61 72 |c.From e|ric@snar|
|00000110| 6b 2e 75 75 2e 6e 65 74 | 0a 4e 65 77 73 67 72 6f |k.uu.net|.Newsgro|
|00000120| 75 70 73 3a 20 67 6e 75 | 2e 65 6d 61 63 73 2e 62 |ups: gnu|.emacs.b|
|00000130| 75 67 0a 53 75 62 6a 65 | 63 74 3a 20 73 63 63 73 |ug.Subje|ct: sccs|
|00000140| 2e 65 6c 0a 4d 65 73 73 | 61 67 65 2d 49 44 3a 20 |.el.Mess|age-ID: |
|00000150| 3c 39 30 30 33 30 33 32 | 33 35 30 2e 41 41 32 38 |<9003032|350.AA28|
|00000160| 30 39 38 40 73 6e 61 72 | 6b 2e 75 75 2e 6e 65 74 |098@snar|k.uu.net|
|00000170| 3e 0a 44 61 74 65 3a 20 | 34 20 4d 61 72 20 39 30 |>.Date: |4 Mar 90|
|00000180| 20 30 34 3a 35 30 3a 30 | 35 20 47 4d 54 0a 53 65 | 04:50:0|5 GMT.Se|
|00000190| 6e 64 65 72 3a 20 64 61 | 65 6d 6f 6e 40 74 75 74 |nder: da|emon@tut|
|000001a0| 2e 63 69 73 2e 6f 68 69 | 6f 2d 73 74 61 74 65 2e |.cis.ohi|o-state.|
|000001b0| 65 64 75 0a 44 69 73 74 | 72 69 62 75 74 69 6f 6e |edu.Dist|ribution|
|000001c0| 3a 20 67 6e 75 0a 4f 72 | 67 61 6e 69 7a 61 74 69 |: gnu.Or|ganizati|
|000001d0| 6f 6e 3a 20 47 4e 55 73 | 20 4e 6f 74 20 55 73 65 |on: GNUs| Not Use|
|000001e0| 6e 65 74 0a 4c 69 6e 65 | 73 3a 20 38 35 37 0a 0a |net.Line|s: 857..|
|000001f0| 48 65 72 65 27 73 20 74 | 68 65 20 6c 61 74 65 73 |Here's t|he lates|
|00000200| 74 20 76 65 72 73 69 6f | 6e 2e 20 41 6c 73 6f 20 |t versio|n. Also |
|00000210| 49 20 77 72 6f 74 65 20 | 75 70 20 73 6f 6d 65 20 |I wrote |up some |
|00000220| 69 6e 66 6f 20 6e 6f 64 | 65 73 20 66 6f 72 20 69 |info nod|es for i|
|00000230| 74 20 73 6f 0a 79 6f 75 | 20 63 61 6e 20 70 75 74 |t so.you| can put|
|00000240| 20 69 74 20 69 6e 20 74 | 68 65 20 64 6f 63 75 6d | it in t|he docum|
|00000250| 65 6e 74 61 74 69 6f 6e | 20 74 72 65 65 20 2d 2d |entation| tree --|
|00000260| 20 49 20 73 75 67 67 65 | 73 74 20 75 6e 64 65 72 | I sugge|st under|
|00000270| 20 60 4d 61 6a 6f 72 20 | 4d 6f 64 65 73 27 2e 0a | `Major |Modes'..|
|00000280| 49 20 68 61 76 65 6e 27 | 74 20 74 65 73 74 65 64 |I haven'|t tested|
|00000290| 20 74 68 69 73 20 69 6e | 66 6f 20 66 69 6c 65 20 | this in|fo file |
|000002a0| 61 73 20 49 20 64 6f 6e | 27 74 20 72 65 61 6c 6c |as I don|'t reall|
|000002b0| 79 20 75 6e 64 65 72 73 | 74 61 6e 64 20 68 6f 77 |y unders|tand how|
|000002c0| 20 74 6f 20 69 6e 74 65 | 67 72 61 74 65 0a 69 74 | to inte|grate.it|
|000002d0| 20 69 6e 74 6f 20 74 68 | 65 20 65 78 69 73 74 69 | into th|e existi|
|000002e0| 6e 67 20 74 72 65 65 2e | 0a 0a 48 65 72 65 27 73 |ng tree.|..Here's|
|000002f0| 20 74 68 65 20 69 6e 66 | 6f 20 66 69 6c 65 3a 0a | the inf|o file:.|
|00000300| 0a 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |.-------|--------|
|00000310| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000320| 2d 2d 2d 2d 2d 2d 43 55 | 54 20 48 45 52 45 2d 2d |------CU|T HERE--|
|00000330| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000340| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000350| 0a 54 68 69 73 20 66 69 | 6c 65 20 64 6f 63 75 6d |.This fi|le docum|
|00000360| 65 6e 74 73 20 74 68 65 | 20 53 43 43 53 20 66 72 |ents the| SCCS fr|
|00000370| 6f 6e 74 2d 65 6e 64 20 | 66 65 61 74 75 72 65 73 |ont-end |features|
|00000380| 2e 20 20 2d 2a 2d 54 65 | 78 74 2d 2a 2d 0a 0a 0a |. -*-Te|xt-*-...|
|00000390| 0a 0a 0a 0a 0a 0a 0a 0a | 0a 0a 0a 0a 0a 0a 0a 0a |........|........|
|000003a0| 0a 0a 0a 0a 0a 0a 0a 0a | 0a 0a 0a 0a 0a 0a 0a 0a |........|........|
|000003b0| 0a 0a 0a 0a 0a 0a 0a 0a | 0a 0a 0a 0a 0a 0a 0a 0a |........|........|
|000003c0| 0a 0a 0a 0a 0a 0a 0a 0a | 0a 0a 46 69 6c 65 3a 20 |........|..File: |
|000003d0| 73 63 63 73 09 4e 6f 64 | 65 3a 20 54 6f 70 09 55 |sccs.Nod|e: Top.U|
|000003e0| 70 3a 20 28 44 49 52 29 | 09 4e 65 78 74 3a 20 53 |p: (DIR)|.Next: S|
|000003f0| 43 43 53 20 4f 70 65 72 | 61 74 69 6f 6e 73 0a 0a |CCS Oper|ations..|
|00000400| 20 20 20 49 66 20 79 6f | 75 72 20 65 6e 76 69 72 | If yo|ur envir|
|00000410| 6f 6e 6d 65 6e 74 20 73 | 75 70 70 6f 72 74 73 20 |onment s|upports |
|00000420| 53 43 43 53 20 28 74 68 | 65 20 53 6f 75 72 63 65 |SCCS (th|e Source|
|00000430| 20 43 6f 64 65 20 43 6f | 6e 74 72 6f 6c 20 53 79 | Code Co|ntrol Sy|
|00000440| 73 74 65 6d 29 20 45 6d | 61 63 73 0a 69 6e 63 6c |stem) Em|acs.incl|
|00000450| 75 64 65 73 20 66 61 63 | 69 6c 69 74 69 65 73 20 |udes fac|ilities |
|00000460| 66 6f 72 20 76 65 72 73 | 69 6f 6e 20 63 6f 6e 74 |for vers|ion cont|
|00000470| 72 6f 6c 20 6f 66 20 66 | 69 6c 65 73 20 64 69 72 |rol of f|iles dir|
|00000480| 65 63 74 20 66 72 6f 6d | 20 74 68 65 20 65 64 69 |ect from| the edi|
|00000490| 74 6f 72 2e 20 59 6f 75 | 0a 63 61 6e 20 6c 6f 61 |tor. You|.can loa|
|000004a0| 64 20 74 68 65 20 53 43 | 43 53 20 73 75 70 70 6f |d the SC|CS suppo|
|000004b0| 72 74 20 66 61 63 69 6c | 69 74 69 65 73 20 62 79 |rt facil|ities by|
|000004c0| 20 69 6e 76 6f 6b 69 6e | 67 20 60 4d 2d 78 20 73 | invokin|g `M-x s|
|000004d0| 63 63 73 27 3b 20 74 68 | 65 72 65 61 66 74 65 72 |ccs'; th|ereafter|
|000004e0| 2c 0a 6b 65 79 73 74 72 | 6f 6b 65 20 62 69 6e 64 |,.keystr|oke bind|
|000004f0| 69 6e 67 73 20 61 72 65 | 20 61 76 61 69 6c 61 62 |ings are| availab|
|00000500| 6c 65 2e 0a 0a 20 20 20 | 54 68 69 73 20 6c 69 62 |le... |This lib|
|00000510| 72 61 72 79 20 61 73 73 | 75 6d 65 73 20 74 68 61 |rary ass|umes tha|
|00000520| 74 20 79 6f 75 20 61 72 | 65 20 6f 6e 65 20 6f 66 |t you ar|e one of|
|00000530| 20 61 20 67 72 6f 75 70 | 20 6d 61 69 6e 74 61 69 | a group| maintai|
|00000540| 6e 69 6e 67 20 61 20 70 | 72 6f 6a 65 63 74 20 77 |ning a p|roject w|
|00000550| 68 69 63 68 0a 68 61 73 | 20 61 20 73 69 6e 67 6c |hich.has| a singl|
|00000560| 65 20 60 63 75 72 72 65 | 6e 74 20 76 65 72 73 69 |e `curre|nt versi|
|00000570| 6f 6e 27 2c 20 62 75 74 | 20 66 6f 72 20 77 68 69 |on', but| for whi|
|00000580| 63 68 20 79 6f 75 20 6e | 65 65 64 20 74 6f 20 6d |ch you n|eed to m|
|00000590| 61 69 6e 74 61 69 6e 20 | 61 0a 6d 6f 64 69 66 69 |aintain |a.modifi|
|000005a0| 63 61 74 69 6f 6e 20 68 | 69 73 74 6f 72 79 20 73 |cation h|istory s|
|000005b0| 6f 20 74 68 61 74 20 79 | 6f 75 20 63 61 6e 20 72 |o that y|ou can r|
|000005c0| 65 63 6f 6e 63 69 6c 65 | 20 64 69 66 66 73 20 6d |econcile| diffs m|
|000005d0| 61 64 65 20 62 79 20 65 | 61 63 68 20 6f 74 68 65 |ade by e|ach othe|
|000005e0| 72 20 61 67 61 69 6e 73 | 74 0a 6f 6c 64 20 76 65 |r agains|t.old ve|
|000005f0| 72 73 69 6f 6e 73 2e 0a | 0a 20 20 20 54 68 65 20 |rsions..|. The |
|00000600| 6d 61 6a 6f 72 20 66 75 | 6e 63 74 69 6f 6e 20 61 |major fu|nction a|
|00000610| 73 73 69 73 74 73 20 79 | 6f 75 20 69 6e 20 63 68 |ssists y|ou in ch|
|00000620| 65 63 6b 69 6e 67 20 69 | 6e 20 61 20 66 69 6c 65 |ecking i|n a file|
|00000630| 20 74 6f 20 53 43 43 53 | 20 61 6e 64 20 72 65 67 | to SCCS| and reg|
|00000640| 69 73 74 65 72 69 6e 67 | 0a 73 75 63 63 65 73 73 |istering|.success|
|00000650| 69 76 65 20 73 65 74 73 | 20 6f 66 20 63 68 61 6e |ive sets| of chan|
|00000660| 67 65 73 20 74 6f 20 69 | 74 20 61 73 20 53 43 43 |ges to i|t as SCC|
|00000670| 53 20 64 65 6c 74 61 73 | 2e 20 4f 74 68 65 72 20 |S deltas|. Other |
|00000680| 65 6e 74 72 79 20 70 6f | 69 6e 74 73 20 61 6c 6c |entry po|ints all|
|00000690| 6f 77 20 79 6f 75 0a 74 | 6f 20 72 65 74 72 69 65 |ow you.t|o retrie|
|000006a0| 76 65 20 63 68 61 6e 67 | 65 20 68 69 73 74 6f 72 |ve chang|e histor|
|000006b0| 69 65 73 2c 20 65 78 61 | 6d 69 6e 65 20 64 69 66 |ies, exa|mine dif|
|000006c0| 66 65 72 65 6e 63 65 73 | 20 62 65 74 77 65 65 6e |ferences| between|
|000006d0| 20 76 65 72 73 69 6f 6e | 73 2c 20 61 6e 64 20 65 | version|s, and e|
|000006e0| 78 61 6d 69 6e 65 0a 74 | 68 65 20 6f 76 65 72 61 |xamine.t|he overa|
|000006f0| 6c 6c 20 53 43 43 53 20 | 73 74 61 74 75 73 20 6f |ll SCCS |status o|
|00000700| 66 20 74 68 65 20 70 72 | 6f 6a 65 63 74 20 28 77 |f the pr|oject (w|
|00000710| 68 69 63 68 20 66 69 6c | 65 73 20 61 72 65 20 72 |hich fil|es are r|
|00000720| 65 67 69 73 74 65 72 65 | 64 20 74 6f 20 53 43 43 |egistere|d to SCC|
|00000730| 53 2c 0a 77 68 69 63 68 | 20 61 72 65 20 63 75 72 |S,.which| are cur|
|00000740| 72 65 6e 74 6c 79 20 6c | 6f 63 6b 65 64 2c 20 65 |rently l|ocked, e|
|00000750| 74 63 29 2e 0a 0a 20 20 | 20 41 20 66 75 6e 63 74 |tc)... | A funct|
|00000760| 69 6f 6e 20 69 73 20 70 | 72 6f 76 69 64 65 64 20 |ion is p|rovided |
|00000770| 74 6f 20 67 65 6e 65 72 | 61 74 65 20 64 69 66 66 |to gener|ate diff|
|00000780| 20 73 65 74 73 20 74 68 | 61 74 20 65 78 70 72 65 | sets th|at expre|
|00000790| 73 73 20 61 6c 6c 20 64 | 69 66 66 65 72 65 6e 63 |ss all d|ifferenc|
|000007a0| 65 73 0a 62 65 74 77 65 | 65 6e 20 61 20 67 69 76 |es.betwe|en a giv|
|000007b0| 65 6e 20 64 65 6c 74 61 | 20 70 61 69 72 2e 20 54 |en delta| pair. T|
|000007c0| 68 69 73 20 63 61 6e 20 | 62 65 20 75 73 65 64 20 |his can |be used |
|000007d0| 74 6f 20 61 75 74 6f 6d | 61 74 69 63 61 6c 6c 79 |to autom|atically|
|000007e0| 20 67 65 6e 65 72 61 74 | 65 0a 70 61 74 63 68 20 | generat|e.patch |
|000007f0| 73 65 74 73 20 63 6f 72 | 72 65 73 70 6f 6e 64 69 |sets cor|respondi|
|00000800| 6e 67 20 74 6f 20 72 65 | 6c 65 61 73 65 73 2e 20 |ng to re|leases. |
|00000810| 41 20 66 75 6e 63 74 69 | 6f 6e 20 66 6f 72 20 6d |A functi|on for m|
|00000820| 61 72 6b 69 6e 67 20 6f | 75 74 20 6d 61 6a 6f 72 |arking o|ut major|
|00000830| 0a 72 65 6c 65 61 73 65 | 73 20 69 73 20 61 6c 73 |.release|s is als|
|00000840| 6f 20 70 72 6f 76 69 64 | 65 64 2e 0a 0a 20 20 20 |o provid|ed... |
|00000850| 49 74 20 69 73 20 6e 6f | 74 20 6e 65 63 65 73 73 |It is no|t necess|
|00000860| 61 72 79 20 74 6f 20 70 | 72 65 2d 72 65 67 69 73 |ary to p|re-regis|
|00000870| 74 65 72 20 74 68 65 20 | 70 72 6f 6a 65 63 74 20 |ter the |project |
|00000880| 66 69 6c 65 73 20 69 6e | 74 6f 20 53 43 43 53 20 |files in|to SCCS |
|00000890| 74 6f 20 75 73 65 0a 74 | 68 65 73 65 20 66 61 63 |to use.t|hese fac|
|000008a0| 69 6c 69 74 69 65 73 3b | 20 74 68 69 73 20 77 69 |ilities;| this wi|
|000008b0| 6c 6c 20 62 65 20 64 6f | 6e 65 20 61 75 74 6f 6d |ll be do|ne autom|
|000008c0| 61 74 69 63 61 6c 6c 79 | 20 77 68 65 6e 20 79 6f |atically| when yo|
|000008d0| 75 20 66 69 72 73 74 20 | 69 6e 76 6f 6b 65 20 74 |u first |invoke t|
|000008e0| 68 65 0a 6d 61 6a 6f 72 | 20 65 6e 74 72 79 20 70 |he.major| entry p|
|000008f0| 6f 69 6e 74 20 6f 6e 20 | 65 61 63 68 20 66 69 6c |oint on |each fil|
|00000900| 65 2e 20 54 68 75 73 20 | 79 6f 75 20 6f 6e 6c 79 |e. Thus |you only|
|00000910| 20 70 61 79 20 6d 69 6e | 69 6d 75 6d 20 64 69 73 | pay min|imum dis|
|00000920| 6b 20 73 70 61 63 65 20 | 6f 76 65 72 68 65 61 64 |k space |overhead|
|00000930| 0a 66 6f 72 20 75 73 69 | 6e 67 20 53 43 43 53 2e |.for usi|ng SCCS.|
|00000940| 0a 0a 20 20 20 46 69 6e | 61 6c 6c 79 2c 20 6e 6f |.. Fin|ally, no|
|00000950| 74 65 20 74 68 61 74 20 | 74 68 69 73 20 6d 61 6a |te that |this maj|
|00000960| 6f 72 20 6d 6f 64 65 20 | 61 64 64 73 20 65 6e 74 |or mode |adds ent|
|00000970| 72 69 65 73 20 74 6f 20 | 74 68 65 20 67 6c 6f 62 |ries to |the glob|
|00000980| 61 6c 20 43 2d 63 20 6b | 65 79 6d 61 70 0a 77 68 |al C-c k|eymap.wh|
|00000990| 65 6e 20 66 69 72 73 74 | 20 6c 6f 61 64 65 64 2e |en first| loaded.|
|000009a0| 20 47 69 76 65 6e 20 74 | 68 61 74 20 74 68 65 20 | Given t|hat the |
|000009b0| 73 63 63 73 20 63 6f 64 | 65 20 68 61 73 20 74 6f |sccs cod|e has to|
|000009c0| 20 63 6f 65 78 69 73 74 | 20 77 69 74 68 20 74 68 | coexist| with th|
|000009d0| 69 6e 67 73 20 6c 69 6b | 65 0a 63 2d 6d 6f 64 65 |ings lik|e.c-mode|
|000009e0| 20 74 68 61 74 20 64 65 | 66 69 6e 65 20 74 68 65 | that de|fine the|
|000009f0| 69 72 20 6f 77 6e 20 6b | 65 79 6d 61 70 73 2c 20 |ir own k|eymaps, |
|00000a00| 74 68 69 73 20 69 73 20 | 61 74 20 6c 65 61 73 74 |this is |at least|
|00000a10| 20 62 65 74 74 65 72 20 | 74 68 61 6e 20 68 6f 67 | better |than hog|
|00000a20| 67 69 6e 67 0a 65 61 63 | 68 20 62 75 66 66 65 72 |ging.eac|h buffer|
|00000a30| 27 73 20 6c 6f 63 61 6c | 20 6f 6e 65 2e 0a 0a 2a |'s local| one...*|
|00000a40| 20 4d 65 6e 75 3a 3a 0a | 0a 2a 20 53 43 43 53 20 | Menu::.|.* SCCS |
|00000a50| 4f 70 65 72 61 74 69 6f | 6e 73 3a 3a 20 20 20 20 |Operatio|ns:: |
|00000a60| 20 44 65 73 63 72 69 62 | 65 73 20 74 68 65 20 6d | Describ|es the m|
|00000a70| 61 6a 6f 72 20 60 73 6d | 61 72 74 27 20 65 6e 74 |ajor `sm|art' ent|
|00000a80| 72 79 20 70 6f 69 6e 74 | 73 2e 0a 2a 20 44 69 66 |ry point|s..* Dif|
|00000a90| 66 65 72 65 6e 63 65 20 | 52 65 70 6f 72 74 73 3a |ference |Reports:|
|00000aa0| 3a 20 20 48 6f 77 20 74 | 6f 20 63 6f 6d 70 61 72 |: How t|o compar|
|00000ab0| 65 20 73 61 76 65 64 20 | 64 65 6c 74 61 73 20 61 |e saved |deltas a|
|00000ac0| 6e 64 20 6c 6f 6f 6b 20 | 61 74 20 66 69 6c 65 20 |nd look |at file |
|00000ad0| 68 69 73 74 6f 72 69 65 | 73 2e 0a 2a 20 53 74 61 |historie|s..* Sta|
|00000ae0| 74 75 73 20 46 75 6e 63 | 74 69 6f 6e 73 3a 3a 20 |tus Func|tions:: |
|00000af0| 20 20 20 46 75 6e 63 74 | 69 6f 6e 73 20 66 6f 72 | Funct|ions for|
|00000b00| 20 65 78 61 6d 69 6e 69 | 6e 67 20 53 43 43 53 20 | examini|ng SCCS |
|00000b10| 70 72 6f 6a 65 63 74 20 | 64 69 72 65 63 74 6f 72 |project |director|
|00000b20| 69 65 73 2e 0a 2a 20 52 | 65 6c 65 61 73 65 20 47 |ies..* R|elease G|
|00000b30| 65 6e 65 72 61 74 69 6f | 6e 3a 3a 20 20 46 75 6e |eneratio|n:: Fun|
|00000b40| 63 74 69 6f 6e 73 20 66 | 6f 72 20 67 65 6e 65 72 |ctions f|or gener|
|00000b50| 61 74 69 6e 67 20 72 65 | 6c 65 61 73 65 73 20 66 |ating re|leases f|
|00000b60| 72 6f 6d 20 64 65 6c 74 | 61 20 73 65 74 73 2e 0a |rom delt|a sets..|
|00000b70| 2a 20 56 61 72 69 61 62 | 6c 65 73 3a 3a 20 20 20 |* Variab|les:: |
|00000b80| 20 20 20 20 20 20 20 20 | 57 61 79 73 20 74 6f 20 | |Ways to |
|00000b90| 63 75 73 74 6f 6d 69 7a | 65 20 53 43 43 53 27 73 |customiz|e SCCS's|
|00000ba0| 20 62 65 68 61 76 69 6f | 72 20 74 68 72 6f 75 67 | behavio|r throug|
|00000bb0| 68 20 45 6d 61 63 73 2e | 0a 0a 54 68 69 73 20 6c |h Emacs.|..This l|
|00000bc0| 69 62 72 61 72 79 20 77 | 61 73 20 64 65 73 69 67 |ibrary w|as desig|
|00000bd0| 6e 65 64 20 61 6e 64 20 | 69 6d 70 6c 65 6d 65 6e |ned and |implemen|
|00000be0| 74 65 64 20 62 79 20 45 | 72 69 63 20 52 61 79 6d |ted by E|ric Raym|
|00000bf0| 6f 6e 64 20 28 65 72 69 | 63 40 73 6e 61 72 6b 2e |ond (eri|c@snark.|
|00000c00| 75 75 2e 6e 65 74 29 2e | 0a 0a 0a 0a 0a 0a 0a 0a |uu.net).|........|
|00000c10| 0a 0a 0a 0a 0a 0a 0a 0a | 0a 0a 0a 0a 0a 0a 0a 0a |........|........|
|00000c20| 0a 0a 0a 0a 0a 0a 0a 0a | 0a 0a 0a 0a 0a 0a 0a 0a |........|........|
|00000c30| 0a 0a 0a 0a 0a 0a 0a 0a | 0a 0a 0a 0a 0a 0a 0a 0a |........|........|
|00000c40| 0a 0a 0a 0a 0a 0a 46 69 | 6c 65 3a 20 73 63 63 73 |......Fi|le: sccs|
|00000c50| 09 4e 6f 64 65 3a 20 53 | 43 43 53 20 4f 70 65 72 |.Node: S|CCS Oper|
|00000c60| 61 74 69 6f 6e 73 09 55 | 70 3a 20 54 6f 70 09 09 |ations.U|p: Top..|
|00000c70| 4e 65 78 74 3a 20 44 69 | 66 66 65 72 65 6e 63 65 |Next: Di|fference|
|00000c80| 20 52 65 70 6f 72 74 73 | 0a 0a 20 20 20 54 68 65 | Reports|.. The|
|00000c90| 20 6d 61 69 6e 20 66 75 | 6e 63 74 69 6f 6e 20 74 | main fu|nction t|
|00000ca0| 68 61 74 20 61 73 73 69 | 73 74 73 20 77 69 74 68 |hat assi|sts with|
|00000cb0| 20 74 68 69 73 20 69 73 | 20 53 43 43 53 20 75 73 | this is| SCCS us|
|00000cc0| 65 20 69 73 20 60 73 63 | 63 73 27 2c 20 77 68 69 |e is `sc|cs', whi|
|00000cd0| 63 68 20 74 72 69 65 73 | 0a 74 6f 20 64 6f 20 74 |ch tries|.to do t|
|00000ce0| 68 65 20 6e 65 78 74 20 | 6c 6f 67 69 63 61 6c 20 |he next |logical |
|00000cf0| 53 43 43 53 20 6f 70 65 | 72 61 74 69 6f 6e 20 6f |SCCS ope|ration o|
|00000d00| 6e 20 74 68 65 20 66 69 | 6c 65 20 61 73 73 6f 63 |n the fi|le assoc|
|00000d10| 69 61 74 65 64 20 77 69 | 74 68 20 74 68 65 20 63 |iated wi|th the c|
|00000d20| 75 72 72 65 6e 74 0a 62 | 75 66 66 65 72 2e 0a 0a |urrent.b|uffer...|
|00000d30| 60 43 2d 63 20 6e 2c 20 | 4d 2d 78 20 73 63 63 73 |`C-c n, |M-x sccs|
|00000d40| 27 0a 20 20 20 50 65 72 | 66 6f 72 6d 20 74 68 65 |'. Per|form the|
|00000d50| 20 6e 65 78 74 20 6c 6f | 67 69 63 61 6c 20 6f 70 | next lo|gical op|
|00000d60| 65 72 61 74 69 6f 6e 20 | 6f 6e 20 74 68 65 20 53 |eration |on the S|
|00000d70| 43 43 53 20 66 69 6c 65 | 20 63 6f 72 72 65 73 70 |CCS file| corresp|
|00000d80| 6f 6e 64 69 6e 67 20 74 | 6f 0a 20 20 20 74 68 65 |onding t|o. the|
|00000d90| 20 63 75 72 72 65 6e 74 | 20 62 75 66 66 65 72 2c | current| buffer,|
|00000da0| 20 65 69 74 68 65 72 20 | 61 6e 20 61 64 6d 69 6e | either |an admin|
|00000db0| 28 31 29 20 6f 72 20 67 | 65 74 28 31 29 20 6f 72 |(1) or g|et(1) or|
|00000dc0| 20 64 65 6c 74 61 28 31 | 29 2e 0a 0a 20 20 20 49 | delta(1|)... I|
|00000dd0| 66 20 74 68 65 20 66 69 | 6c 65 20 69 73 20 6e 6f |f the fi|le is no|
|00000de0| 74 20 61 6c 72 65 61 64 | 79 20 72 65 67 69 73 74 |t alread|y regist|
|00000df0| 65 72 65 64 20 77 69 74 | 68 20 53 43 43 53 2c 20 |ered wit|h SCCS, |
|00000e00| 74 68 69 73 20 64 6f 65 | 73 20 61 6e 20 61 64 6d |this doe|s an adm|
|00000e10| 69 6e 20 2d 69 0a 66 6f | 6c 6c 6f 77 65 64 20 62 |in -i.fo|llowed b|
|00000e20| 79 20 61 20 67 65 74 20 | 2d 65 2e 20 54 68 69 73 |y a get |-e. This|
|00000e30| 20 63 68 65 63 6b 73 20 | 74 68 65 20 66 69 6c 65 | checks |the file|
|00000e40| 20 69 6e 20 74 6f 20 53 | 43 43 53 20 61 6e 64 20 | in to S|CCS and |
|00000e50| 67 65 74 73 20 61 6e 20 | 65 64 69 74 61 62 6c 65 |gets an |editable|
|00000e60| 0a 63 6f 70 79 2e 20 54 | 68 65 20 62 61 73 65 20 |.copy. T|he base |
|00000e70| 76 65 72 73 69 6f 6e 20 | 77 69 6c 6c 20 62 65 20 |version |will be |
|00000e80| 31 2e 31 20 75 6e 6c 65 | 73 73 20 79 6f 75 20 68 |1.1 unle|ss you h|
|00000e90| 61 76 65 20 64 6f 6e 65 | 20 61 20 70 72 65 76 69 |ave done| a previ|
|00000ea0| 6f 75 73 0a 73 63 63 73 | 2d 64 65 6c 74 61 2d 72 |ous.sccs|-delta-r|
|00000eb0| 65 6c 65 61 73 65 20 69 | 6e 20 74 68 69 73 20 64 |elease i|n this d|
|00000ec0| 69 72 65 63 74 6f 72 79 | 2c 20 69 6e 20 77 68 69 |irectory|, in whi|
|00000ed0| 63 68 20 63 61 73 65 20 | 74 68 65 20 73 61 76 65 |ch case |the save|
|00000ee0| 64 20 76 65 72 73 69 6f | 6e 20 6e 75 6d 62 65 72 |d versio|n number|
|00000ef0| 0a 77 69 6c 6c 20 62 65 | 20 75 73 65 64 2e 0a 0a |.will be| used...|
|00000f00| 20 20 20 4e 6f 74 65 20 | 74 68 61 74 20 79 6f 75 | Note |that you|
|00000f10| 20 6d 75 73 74 20 68 61 | 76 65 20 61 6e 20 53 43 | must ha|ve an SC|
|00000f20| 43 53 20 73 75 62 64 69 | 72 65 63 74 6f 72 79 20 |CS subdi|rectory |
|00000f30| 69 6e 20 74 68 65 20 73 | 61 6d 65 20 64 69 72 65 |in the s|ame dire|
|00000f40| 63 74 6f 72 79 0a 61 73 | 20 74 68 65 20 66 69 6c |ctory.as| the fil|
|00000f50| 65 20 62 65 69 6e 67 20 | 6f 70 65 72 61 74 65 64 |e being |operated|
|00000f60| 20 6f 6e 20 66 6f 72 20 | 74 68 65 20 63 68 65 63 | on for |the chec|
|00000f70| 6b 2d 69 6e 20 74 6f 20 | 77 6f 72 6b 2e 20 0a 0a |k-in to |work. ..|
|00000f80| 20 20 20 49 66 20 74 68 | 65 20 66 69 6c 65 20 69 | If th|e file i|
|00000f90| 73 20 72 65 67 69 73 74 | 65 72 65 64 20 61 6e 64 |s regist|ered and|
|00000fa0| 20 6e 6f 74 20 6c 6f 63 | 6b 65 64 20 62 79 20 61 | not loc|ked by a|
|00000fb0| 6e 79 6f 6e 65 2c 20 73 | 63 63 73 20 64 6f 65 73 |nyone, s|ccs does|
|00000fc0| 20 61 20 67 65 74 20 2d | 65 2e 20 54 68 69 73 0a | a get -|e. This.|
|00000fd0| 67 65 74 73 20 61 6e 20 | 65 64 69 74 61 62 6c 65 |gets an |editable|
|00000fe0| 20 63 6f 70 79 2e 0a 0a | 20 20 20 49 66 20 74 68 | copy...| If th|
|00000ff0| 65 20 66 69 6c 65 20 69 | 73 20 72 65 67 69 73 74 |e file i|s regist|
|00001000| 65 72 65 64 20 61 6e 64 | 20 6c 6f 63 6b 65 64 20 |ered and| locked |
|00001010| 62 79 20 74 68 65 20 63 | 61 6c 6c 69 6e 67 20 75 |by the c|alling u|
|00001020| 73 65 72 2c 20 73 63 63 | 73 20 70 6f 70 73 20 75 |ser, scc|s pops u|
|00001030| 70 20 61 0a 62 75 66 66 | 65 72 20 66 6f 72 20 63 |p a.buff|er for c|
|00001040| 72 65 61 74 69 6f 6e 20 | 6f 66 20 61 20 6c 6f 67 |reation |of a log|
|00001050| 20 6d 65 73 73 61 67 65 | 2c 20 74 68 65 6e 20 64 | message|, then d|
|00001060| 6f 65 73 20 61 20 64 65 | 6c 74 61 20 2d 6e 20 6f |oes a de|lta -n o|
|00001070| 6e 20 74 68 65 20 66 69 | 6c 65 2e 20 54 68 65 0a |n the fi|le. The.|
|00001080| 70 72 65 73 75 6d 70 74 | 69 6f 6e 20 69 73 20 74 |presumpt|ion is t|
|00001090| 68 61 74 20 79 6f 75 27 | 72 65 20 64 6f 6e 65 20 |hat you'|re done |
|000010a0| 77 69 74 68 20 61 20 73 | 65 74 20 6f 66 20 63 68 |with a s|et of ch|
|000010b0| 61 6e 67 65 73 20 61 6e | 64 20 77 61 6e 74 20 74 |anges an|d want t|
|000010c0| 6f 20 72 65 67 69 73 74 | 65 72 0a 74 68 65 6d 20 |o regist|er.them |
|000010d0| 61 73 20 61 20 64 65 6c | 74 61 2e 20 41 20 72 65 |as a del|ta. A re|
|000010e0| 61 64 2d 6f 6e 6c 79 20 | 63 6f 70 79 20 6f 66 20 |ad-only |copy of |
|000010f0| 74 68 65 20 63 68 61 6e | 67 65 64 20 66 69 6c 65 |the chan|ged file|
|00001100| 20 69 73 20 6c 65 66 74 | 20 69 6e 20 70 6c 61 63 | is left| in plac|
|00001110| 65 0a 61 66 74 65 72 77 | 61 72 64 73 2e 0a 0a 20 |e.afterw|ards... |
|00001120| 20 20 49 66 20 74 68 65 | 20 66 69 6c 65 20 69 73 | If the| file is|
|00001130| 20 72 65 67 69 73 74 65 | 72 65 64 20 61 6e 64 20 | registe|red and |
|00001140| 6c 6f 63 6b 65 64 20 62 | 79 20 73 6f 6d 65 6f 6e |locked b|y someon|
|00001150| 65 20 65 6c 73 65 2c 20 | 61 6e 20 65 72 72 6f 72 |e else, |an error|
|00001160| 20 6d 65 73 73 61 67 65 | 20 69 73 0a 72 65 74 75 | message| is.retu|
|00001170| 72 6e 65 64 20 69 6e 64 | 69 63 61 74 69 6e 67 20 |rned ind|icating |
|00001180| 77 68 6f 20 68 61 73 20 | 6c 6f 63 6b 65 64 20 69 |who has |locked i|
|00001190| 74 2e 0a 0a 20 20 20 57 | 68 65 6e 20 65 6e 74 65 |t... W|hen ente|
|000011a0| 72 69 6e 67 20 74 68 65 | 20 6c 6f 67 20 65 6e 74 |ring the| log ent|
|000011b0| 72 79 20 66 6f 72 20 61 | 20 64 65 6c 74 61 2c 20 |ry for a| delta, |
|000011c0| 79 6f 75 20 6d 61 79 20 | 75 73 65 20 60 73 63 63 |you may |use `scc|
|000011d0| 73 2d 69 6e 73 65 72 74 | 2d 6c 61 73 74 2d 6c 6f |s-insert|-last-lo|
|000011e0| 67 27 0a 74 6f 20 69 6e | 73 65 72 74 20 74 68 65 |g'.to in|sert the|
|000011f0| 20 6c 61 73 74 20 63 68 | 61 6e 67 65 20 6c 6f 67 | last ch|ange log|
|00001200| 20 6d 65 73 73 61 67 65 | 20 79 6f 75 20 63 6f 6d | message| you com|
|00001210| 70 6f 73 65 64 2e 20 59 | 6f 75 20 64 6f 20 74 68 |posed. Y|ou do th|
|00001220| 69 73 20 77 69 74 68 3a | 0a 0a 60 43 2d 63 20 69 |is with:|..`C-c i|
|00001230| 2c 20 43 2d 63 20 43 2d | 69 2c 20 4d 2d 78 20 69 |, C-c C-|i, M-x i|
|00001240| 6e 73 65 72 74 2d 6c 61 | 73 74 2d 6c 6f 67 27 0a |nsert-la|st-log'.|
|00001250| 20 20 20 49 6e 73 65 72 | 74 20 61 20 63 6f 70 79 | Inser|t a copy|
|00001260| 20 6f 66 20 74 68 65 20 | 6c 61 73 74 20 63 68 61 | of the |last cha|
|00001270| 6e 67 65 20 6d 65 73 73 | 61 67 65 20 79 6f 75 20 |nge mess|age you |
|00001280| 63 6f 6d 70 6f 73 65 64 | 2e 20 55 73 65 66 75 6c |composed|. Useful|
|00001290| 20 77 68 65 6e 20 65 6e | 74 65 72 69 6e 67 0a 20 | when en|tering. |
|000012a0| 20 20 61 20 63 68 61 6e | 67 65 20 6c 6f 67 20 6d | a chan|ge log m|
|000012b0| 65 73 73 61 67 65 2e 0a | 0a 0a 0a 0a 0a 0a 0a 0a |essage..|........|
|000012c0| 0a 0a 0a 0a 0a 0a 0a 0a | 0a 0a 0a 0a 0a 0a 0a 0a |........|........|
|000012d0| 0a 0a 0a 0a 0a 0a 0a 0a | 0a 0a 0a 0a 0a 0a 0a 0a |........|........|
|000012e0| 0a 0a 0a 0a 0a 0a 0a 0a | 0a 0a 0a 0a 0a 0a 0a 0a |........|........|
|000012f0| 0a 0a 0a 0a 0a 46 69 6c | 65 3a 20 73 63 63 73 09 |.....Fil|e: sccs.|
|00001300| 4e 6f 64 65 3a 20 44 69 | 66 66 65 72 65 6e 63 65 |Node: Di|fference|
|00001310| 20 52 65 70 6f 72 74 73 | 09 55 70 3a 20 54 6f 70 | Reports|.Up: Top|
|00001320| 09 09 4e 65 78 74 3a 20 | 53 74 61 74 75 73 20 46 |..Next: |Status F|
|00001330| 75 6e 63 74 69 6f 6e 73 | 0a 0a 20 20 20 53 6f 6d |unctions|.. Som|
|00001340| 65 74 69 6d 65 73 20 69 | 74 20 69 73 20 75 73 65 |etimes i|t is use|
|00001350| 66 75 6c 20 74 6f 20 63 | 6f 6d 70 61 72 65 20 74 |ful to c|ompare t|
|00001360| 68 65 20 63 75 72 72 65 | 6e 74 20 76 65 72 73 69 |he curre|nt versi|
|00001370| 6f 6e 20 6f 66 20 61 20 | 66 69 6c 65 20 77 69 74 |on of a |file wit|
|00001380| 68 0a 70 72 65 76 69 6f | 75 73 20 76 65 72 73 69 |h.previo|us versi|
|00001390| 6f 6e 73 2c 20 6f 72 20 | 67 65 74 20 72 65 70 6f |ons, or |get repo|
|000013a0| 72 74 73 20 6f 6e 20 63 | 68 61 6e 67 65 73 20 74 |rts on c|hanges t|
|000013b0| 68 61 74 20 68 61 76 65 | 20 62 65 65 6e 20 6d 61 |hat have| been ma|
|000013c0| 64 65 20 74 6f 20 61 20 | 66 69 6c 65 0a 6f 72 20 |de to a |file.or |
|000013d0| 67 72 6f 75 70 20 6f 66 | 20 66 69 6c 65 73 2e 20 |group of| files. |
|000013e0| 46 75 6e 63 74 69 6f 6e | 73 20 61 72 65 20 70 72 |Function|s are pr|
|000013f0| 6f 76 69 64 65 64 20 74 | 6f 20 64 6f 20 74 68 69 |ovided t|o do thi|
|00001400| 73 2e 0a 0a 60 43 2d 63 | 20 64 2c 20 4d 2d 78 20 |s...`C-c| d, M-x |
|00001410| 73 63 63 73 2d 64 69 66 | 66 27 0a 20 20 20 43 6f |sccs-dif|f'. Co|
|00001420| 6d 70 61 72 65 20 74 68 | 65 20 63 75 72 72 65 6e |mpare th|e curren|
|00001430| 74 20 76 65 72 73 69 6f | 6e 20 69 6e 20 74 68 65 |t versio|n in the|
|00001440| 20 62 75 66 66 65 72 20 | 77 69 74 68 20 74 68 65 | buffer |with the|
|00001450| 20 6c 61 73 74 20 63 68 | 65 63 6b 65 64 20 69 6e | last ch|ecked in|
|00001460| 0a 20 20 20 72 65 76 69 | 73 69 6f 6e 20 28 64 65 |. revi|sion (de|
|00001470| 6c 74 61 29 20 6f 66 20 | 74 68 65 20 66 69 6c 65 |lta) of |the file|
|00001480| 2c 20 6f 72 2c 20 69 66 | 20 67 69 76 65 6e 20 61 |, or, if| given a|
|00001490| 20 70 72 65 66 69 78 20 | 61 72 67 75 6d 65 6e 74 | prefix |argument|
|000014a0| 2c 20 77 69 74 68 20 61 | 0a 20 20 20 70 72 65 76 |, with a|. prev|
|000014b0| 69 6f 75 73 20 64 65 6c | 74 61 2e 0a 0a 54 68 65 |ious del|ta...The|
|000014c0| 20 63 6f 6d 70 61 72 69 | 73 6f 6e 20 77 69 6c 6c | compari|son will|
|000014d0| 20 62 65 20 74 68 65 20 | 6f 75 74 70 75 74 20 6f | be the |output o|
|000014e0| 66 20 61 20 64 69 66 66 | 28 31 29 20 75 73 69 6e |f a diff|(1) usin|
|000014f0| 67 20 74 68 65 20 66 6c | 61 67 73 20 73 70 65 63 |g the fl|ags spec|
|00001500| 69 66 69 65 64 20 69 6e | 0a 74 68 65 20 76 61 72 |ified in|.the var|
|00001510| 69 61 62 6c 65 20 73 63 | 63 73 2d 64 69 66 66 2d |iable sc|cs-diff-|
|00001520| 64 65 66 61 75 6c 74 2d | 66 6c 61 67 73 2e 20 2a |default-|flags. *|
|00001530| 4e 6f 74 65 20 43 72 6f | 73 73 3a 20 53 43 43 53 |Note Cro|ss: SCCS|
|00001540| 20 56 61 72 69 61 62 6c | 65 73 3a 3a 20 59 6f 75 | Variabl|es:: You|
|00001550| 20 6d 61 79 0a 61 64 64 | 20 66 6c 61 67 73 20 62 | may.add| flags b|
|00001560| 79 20 73 70 65 63 69 66 | 79 69 6e 67 20 73 74 72 |y specif|ying str|
|00001570| 69 6e 67 20 61 72 67 75 | 6d 65 6e 74 73 20 74 6f |ing argu|ments to|
|00001580| 20 73 63 63 73 2d 64 69 | 66 66 2e 0a 0a 60 43 2d | sccs-di|ff...`C-|
|00001590| 63 20 76 2c 20 4d 2d 78 | 20 73 63 63 73 2d 76 65 |c v, M-x| sccs-ve|
|000015a0| 72 73 69 6f 6e 2d 64 69 | 66 66 27 0a 20 20 20 43 |rsion-di|ff'. C|
|000015b0| 6f 6d 70 61 72 65 20 74 | 77 6f 20 70 61 73 74 20 |ompare t|wo past |
|000015c0| 64 65 6c 74 61 73 20 6f | 66 20 74 68 65 20 63 75 |deltas o|f the cu|
|000015d0| 72 72 65 6e 74 20 66 69 | 6c 65 2e 20 59 6f 75 20 |rrent fi|le. You |
|000015e0| 77 69 6c 6c 20 62 65 20 | 70 72 6f 6d 70 74 65 64 |will be |prompted|
|000015f0| 20 66 6f 72 0a 20 20 20 | 74 68 65 20 53 49 44 73 | for. |the SIDs|
|00001600| 20 6f 66 20 74 68 65 20 | 76 65 72 73 69 6f 6e 73 | of the |versions|
|00001610| 20 74 6f 20 63 6f 6d 70 | 61 72 65 2e 0a 0a 43 6f | to comp|are...Co|
|00001620| 6d 70 61 72 69 73 6f 6e | 73 20 77 69 6c 6c 20 62 |mparison|s will b|
|00001630| 65 20 64 6f 6e 65 20 77 | 69 74 68 20 64 69 66 66 |e done w|ith diff|
|00001640| 28 31 29 20 61 73 20 61 | 62 6f 76 65 2e 0a 0a 60 |(1) as a|bove...`|
|00001650| 43 2d 63 20 70 2c 20 4d | 2d 78 20 73 63 63 73 2d |C-c p, M|-x sccs-|
|00001660| 70 72 73 27 0a 20 20 20 | 52 75 6e 20 61 20 70 72 |prs'. |Run a pr|
|00001670| 73 28 31 29 20 6f 6e 20 | 74 68 65 20 53 43 43 53 |s(1) on |the SCCS|
|00001680| 20 73 2e 2a 20 66 69 6c | 65 20 63 6f 72 72 65 73 | s.* fil|e corres|
|00001690| 70 6f 6e 64 69 6e 67 20 | 74 6f 20 74 68 65 20 66 |ponding |to the f|
|000016a0| 69 6c 65 20 69 6e 20 74 | 68 65 20 63 75 72 72 65 |ile in t|he curre|
|000016b0| 6e 74 0a 20 20 20 62 75 | 66 66 65 72 2e 20 54 68 |nt. bu|ffer. Th|
|000016c0| 69 73 20 79 69 65 6c 64 | 73 20 61 20 68 69 73 74 |is yield|s a hist|
|000016d0| 6f 72 79 20 6f 66 20 63 | 68 61 6e 67 65 73 20 74 |ory of c|hanges t|
|000016e0| 6f 20 74 68 65 20 66 69 | 6c 65 2e 0a 0a 54 68 65 |o the fi|le...The|
|000016f0| 20 72 65 73 75 6c 74 73 | 20 6f 66 20 61 6c 6c 20 | results| of all |
|00001700| 6f 66 20 74 68 65 73 65 | 20 67 6f 20 74 6f 20 61 |of these| go to a|
|00001710| 20 63 6f 6d 70 69 6c 61 | 74 69 6f 6e 20 62 75 66 | compila|tion buf|
|00001720| 66 65 72 20 6e 61 6d 65 | 20 2a 53 43 43 53 2a 20 |fer name| *SCCS* |
|00001730| 77 68 69 63 68 20 69 73 | 0a 70 6f 70 70 65 64 20 |which is|.popped |
|00001740| 74 6f 2e 0a 0a 0a 0a 0a | 0a 0a 0a 0a 0a 0a 0a 0a |to......|........|
|00001750| 0a 0a 0a 0a 0a 0a 0a 0a | 0a 0a 0a 0a 0a 0a 0a 0a |........|........|
|00001760| 0a 0a 0a 0a 0a 0a 0a 0a | 0a 0a 0a 0a 0a 0a 0a 0a |........|........|
|00001770| 0a 0a 0a 0a 0a 0a 0a 0a | 0a 0a 0a 0a 0a 0a 0a 0a |........|........|
|00001780| 0a 46 69 6c 65 3a 20 73 | 63 63 73 09 4e 6f 64 65 |.File: s|ccs.Node|
|00001790| 3a 20 53 74 61 74 75 73 | 20 46 75 6e 63 74 69 6f |: Status| Functio|
|000017a0| 6e 73 09 09 55 70 3a 20 | 54 6f 70 09 09 4e 65 78 |ns..Up: |Top..Nex|
|000017b0| 74 3a 20 52 65 6c 65 61 | 73 65 20 47 65 6e 65 72 |t: Relea|se Gener|
|000017c0| 61 74 69 6f 6e 0a 0a 20 | 20 20 53 6f 6d 65 20 66 |ation.. | Some f|
|000017d0| 75 6e 63 74 69 6f 6e 73 | 20 65 78 69 73 74 20 74 |unctions| exist t|
|000017e0| 6f 20 61 6c 6c 6f 77 20 | 79 6f 75 20 74 6f 20 63 |o allow |you to c|
|000017f0| 68 65 63 6b 20 6f 6e 20 | 77 68 69 63 68 20 66 69 |heck on |which fi|
|00001800| 6c 65 73 20 6f 66 20 61 | 20 70 72 6f 6a 65 63 74 |les of a| project|
|00001810| 0a 61 72 65 20 53 43 43 | 53 2d 72 65 67 69 73 74 |.are SCC|S-regist|
|00001820| 65 72 65 64 20 6f 72 20 | 6c 6f 63 6b 65 64 2e 20 |ered or |locked. |
|00001830| 54 68 65 73 65 20 66 75 | 6e 63 74 69 6f 6e 73 20 |These fu|nctions |
|00001840| 61 73 73 75 6d 65 20 74 | 68 61 74 20 74 68 65 20 |assume t|hat the |
|00001850| 66 69 6c 65 73 20 66 6f | 72 20 79 6f 75 72 0a 63 |files fo|r your.c|
|00001860| 75 72 72 65 6e 74 20 70 | 72 6f 6a 65 63 74 20 6f |urrent p|roject o|
|00001870| 72 20 73 75 62 70 72 6f | 6a 65 63 74 20 6f 63 63 |r subpro|ject occ|
|00001880| 75 70 79 20 74 68 65 20 | 63 75 72 72 65 6e 74 20 |upy the |current |
|00001890| 64 69 72 65 63 74 6f 72 | 79 20 61 6e 64 20 61 6c |director|y and al|
|000018a0| 6c 20 69 74 73 0a 73 75 | 62 64 69 72 65 63 74 6f |l its.su|bdirecto|
|000018b0| 72 69 65 73 2e 0a 0a 60 | 43 2d 63 43 2d 70 2c 20 |ries...`|C-cC-p, |
|000018c0| 4d 2d 78 20 73 63 63 73 | 2d 70 65 6e 64 69 6e 67 |M-x sccs|-pending|
|000018d0| 27 0a 20 20 20 4c 69 73 | 74 20 61 6c 6c 20 66 69 |'. Lis|t all fi|
|000018e0| 6c 65 73 20 61 74 20 6f | 72 20 62 65 6c 6f 77 20 |les at o|r below |
|000018f0| 63 75 72 72 65 6e 74 20 | 64 69 72 65 63 74 6f 72 |current |director|
|00001900| 79 20 74 68 61 74 20 61 | 72 65 20 63 75 72 72 65 |y that a|re curre|
|00001910| 6e 74 6c 79 20 6c 6f 63 | 6b 65 64 0a 66 6f 72 20 |ntly loc|ked.for |
|00001920| 65 64 69 74 20 62 79 20 | 61 6e 79 20 75 73 65 72 |edit by |any user|
|00001930| 2e 0a 0a 60 43 2d 63 20 | 72 2c 20 4d 2d 78 20 73 |...`C-c |r, M-x s|
|00001940| 63 63 73 2d 72 65 67 69 | 73 74 65 72 65 64 27 0a |ccs-regi|stered'.|
|00001950| 20 20 20 4c 69 73 74 20 | 61 6c 6c 20 66 69 6c 65 | List |all file|
|00001960| 73 20 61 74 20 6f 72 20 | 62 65 6c 6f 77 20 63 75 |s at or |below cu|
|00001970| 72 72 65 6e 74 20 64 69 | 72 65 63 74 6f 72 79 20 |rrent di|rectory |
|00001980| 74 68 61 74 20 61 72 65 | 20 53 43 43 53 2d 72 65 |that are| SCCS-re|
|00001990| 67 69 73 74 65 72 65 64 | 2e 0a 0a 0a 0a 0a 0a 0a |gistered|........|
|000019a0| 0a 0a 0a 0a 0a 0a 0a 0a | 0a 0a 0a 0a 0a 0a 0a 0a |........|........|
|000019b0| 0a 0a 0a 0a 0a 0a 0a 0a | 0a 0a 0a 0a 0a 0a 0a 0a |........|........|
|000019c0| 0a 0a 0a 0a 0a 0a 0a 0a | 0a 0a 0a 0a 0a 0a 0a 0a |........|........|
|000019d0| 0a 0a 0a 0a 0a 0a 0a 46 | 69 6c 65 3a 20 73 63 63 |.......F|ile: scc|
|000019e0| 73 09 4e 6f 64 65 3a 20 | 52 65 6c 65 61 73 65 20 |s.Node: |Release |
|000019f0| 47 65 6e 65 72 61 74 69 | 6f 6e 09 55 70 3a 20 54 |Generati|on.Up: T|
|00001a00| 6f 70 09 09 4e 65 78 74 | 3a 20 56 61 72 69 61 62 |op..Next|: Variab|
|00001a10| 6c 65 73 0a 0a 20 20 20 | 54 68 65 20 66 6f 6c 6c |les.. |The foll|
|00001a20| 6f 77 69 6e 67 20 66 75 | 6e 63 74 69 6f 6e 73 20 |owing fu|nctions |
|00001a30| 61 73 73 69 73 74 20 69 | 6e 20 64 65 66 69 6e 69 |assist i|n defini|
|00001a40| 6e 67 20 72 65 6c 65 61 | 73 65 73 20 61 6e 64 20 |ng relea|ses and |
|00001a50| 67 65 6e 65 72 61 74 69 | 6e 67 20 70 61 74 63 68 |generati|ng patch|
|00001a60| 0a 73 65 74 73 20 66 6f | 72 20 74 68 65 6d 2e 20 |.sets fo|r them. |
|00001a70| 54 68 65 79 20 61 72 65 | 20 6e 6f 74 20 62 6f 75 |They are| not bou|
|00001a80| 6e 64 20 74 6f 20 6b 65 | 79 73 74 72 6f 6b 65 73 |nd to ke|ystrokes|
|00001a90| 2c 20 61 73 20 74 68 65 | 79 20 77 69 6c 6c 20 62 |, as the|y will b|
|00001aa0| 65 20 75 73 65 64 0a 72 | 65 6c 61 74 69 76 65 6c |e used.r|elativel|
|00001ab0| 79 20 69 6e 66 72 65 71 | 75 65 6e 74 6c 79 2e 0a |y infreq|uently..|
|00001ac0| 0a 60 4d 2d 78 20 73 63 | 63 73 2d 64 65 6c 74 61 |.`M-x sc|cs-delta|
|00001ad0| 2d 72 65 6c 65 61 73 65 | 27 0a 20 20 20 49 6e 73 |-release|'. Ins|
|00001ae0| 65 72 74 20 61 20 64 75 | 6d 6d 79 20 64 65 6c 74 |ert a du|mmy delt|
|00001af0| 61 20 28 74 6f 20 6d 61 | 72 6b 20 61 20 6d 61 6a |a (to ma|rk a maj|
|00001b00| 6f 72 20 72 65 6c 65 61 | 73 65 29 20 69 6e 20 61 |or relea|se) in a|
|00001b10| 6c 6c 20 53 43 43 53 2d | 72 65 67 69 73 74 65 72 |ll SCCS-|register|
|00001b20| 65 64 20 66 69 6c 65 73 | 0a 20 20 20 61 74 20 6f |ed files|. at o|
|00001b30| 72 20 62 65 6c 6f 77 20 | 74 68 65 20 63 75 72 72 |r below |the curr|
|00001b40| 65 6e 74 20 64 69 72 65 | 63 74 6f 72 79 2e 20 54 |ent dire|ctory. T|
|00001b50| 68 65 20 6c 6f 67 20 6d | 65 73 73 61 67 65 20 66 |he log m|essage f|
|00001b60| 6f 72 20 61 6c 6c 20 64 | 65 6c 74 61 73 20 69 73 |or all d|eltas is|
|00001b70| 20 73 69 6d 70 6c 79 0a | 20 20 20 60 52 65 6c 65 | simply.| `Rele|
|00001b80| 61 73 65 20 3c 73 69 64 | 3e 27 20 77 68 65 72 65 |ase <sid|>' where|
|00001b90| 20 3c 73 69 64 3e 20 69 | 73 20 61 6e 20 53 49 44 | <sid> i|s an SID|
|00001ba0| 20 66 6f 72 20 77 68 69 | 63 68 20 79 6f 75 20 77 | for whi|ch you w|
|00001bb0| 69 6c 6c 20 62 65 20 70 | 72 6f 6d 70 74 65 64 2e |ill be p|rompted.|
|00001bc0| 20 54 68 69 73 0a 20 20 | 20 53 49 44 20 69 73 20 | This. | SID is |
|00001bd0| 73 61 76 65 64 20 74 6f | 20 62 65 20 75 73 65 64 |saved to| be used|
|00001be0| 20 69 6e 20 73 75 62 73 | 65 71 75 65 6e 74 20 63 | in subs|equent c|
|00001bf0| 68 65 63 6b 2d 69 6e 73 | 20 6f 66 20 6e 65 77 20 |heck-ins| of new |
|00001c00| 66 69 6c 65 73 2e 0a 0a | 20 20 20 54 68 65 20 53 |files...| The S|
|00001c10| 49 44 20 6f 66 20 74 68 | 65 20 6e 65 77 20 6d 61 |ID of th|e new ma|
|00001c20| 6a 6f 72 20 72 65 6c 65 | 61 73 65 20 6c 65 76 65 |jor rele|ase leve|
|00001c30| 6c 20 69 73 20 73 74 6f | 72 65 64 20 69 6e 20 2e |l is sto|red in .|
|00001c40| 2f 53 43 43 53 2f 65 6d | 61 63 73 2d 76 61 72 73 |/SCCS/em|acs-vars|
|00001c50| 2e 65 6c 20 61 6e 64 0a | 75 73 65 64 20 61 73 20 |.el and.|used as |
|00001c60| 74 68 65 20 62 61 73 65 | 20 53 49 44 20 66 6f 72 |the base| SID for|
|00001c70| 20 61 6c 6c 20 73 75 62 | 73 65 71 75 65 6e 74 20 | all sub|sequent |
|00001c80| 6e 65 77 20 61 64 6d 69 | 6e 73 20 64 6f 6e 65 20 |new admi|ns done |
|00001c90| 66 72 6f 6d 20 74 68 65 | 20 63 75 72 72 65 6e 74 |from the| current|
|00001ca0| 0a 64 69 72 65 63 74 6f | 72 79 2e 20 49 74 20 69 |.directo|ry. It i|
|00001cb0| 73 20 67 6f 6f 64 20 70 | 72 61 63 74 69 63 65 20 |s good p|ractice |
|00001cc0| 74 6f 20 72 65 67 69 73 | 74 65 72 20 61 6c 6c 20 |to regis|ter all |
|00001cd0| 63 75 72 72 65 6e 74 20 | 63 68 61 6e 67 65 73 20 |current |changes |
|00001ce0| 74 6f 20 74 68 65 69 72 | 0a 69 6e 64 69 76 69 64 |to their|.individ|
|00001cf0| 75 61 6c 20 66 69 6c 65 | 73 20 77 69 74 68 20 74 |ual file|s with t|
|00001d00| 68 65 69 72 20 6f 77 6e | 20 65 78 70 6c 61 6e 61 |heir own| explana|
|00001d10| 74 6f 72 79 20 6c 6f 67 | 20 6d 65 73 73 61 67 65 |tory log| message|
|00001d20| 73 20 62 65 66 6f 72 65 | 20 69 6e 76 6f 6b 69 6e |s before| invokin|
|00001d30| 67 0a 73 63 63 73 2d 64 | 65 6c 74 61 2d 72 65 6c |g.sccs-d|elta-rel|
|00001d40| 65 61 73 65 2c 20 73 6f | 20 74 68 61 74 20 65 61 |ease, so| that ea|
|00001d50| 63 68 20 72 65 61 6c 20 | 64 65 6c 74 61 20 77 69 |ch real |delta wi|
|00001d60| 6c 6c 20 63 61 72 72 79 | 20 72 65 61 6c 20 63 68 |ll carry| real ch|
|00001d70| 61 6e 67 65 20 69 6e 66 | 6f 2e 0a 0a 60 4d 2d 78 |ange inf|o...`M-x|
|00001d80| 20 73 63 63 73 2d 72 65 | 6c 65 61 73 65 2d 64 69 | sccs-re|lease-di|
|00001d90| 66 66 27 0a 20 20 20 47 | 65 6e 65 72 61 74 65 20 |ff'. G|enerate |
|00001da0| 61 20 63 6f 6d 70 6c 65 | 74 65 20 72 65 70 6f 72 |a comple|te repor|
|00001db0| 74 20 6f 6e 20 64 69 66 | 66 73 20 62 65 74 77 65 |t on dif|fs betwe|
|00001dc0| 65 6e 20 67 69 76 65 6e | 20 76 65 72 73 69 6f 6e |en given| version|
|00001dd0| 73 20 66 6f 72 20 61 6c | 6c 0a 20 20 20 53 43 43 |s for al|l. SCC|
|00001de0| 53 20 66 69 6c 65 73 20 | 61 74 20 6f 72 20 62 65 |S files |at or be|
|00001df0| 6c 6f 77 20 64 65 66 61 | 75 6c 74 2d 64 69 72 65 |low defa|ult-dire|
|00001e00| 63 74 6f 72 79 2e 20 59 | 6f 75 20 77 69 6c 6c 20 |ctory. Y|ou will |
|00001e10| 62 65 20 70 72 6f 6d 70 | 74 65 64 20 66 6f 72 20 |be promp|ted for |
|00001e20| 74 68 65 0a 20 20 20 53 | 49 44 73 20 6f 66 20 76 |the. S|IDs of v|
|00001e30| 65 72 73 69 6f 6e 73 20 | 74 6f 20 62 65 20 63 6f |ersions |to be co|
|00001e40| 6d 70 61 72 65 64 2e 20 | 49 66 20 74 68 65 20 6e |mpared. |If the n|
|00001e50| 65 77 65 72 20 53 49 44 | 20 69 73 20 6f 6d 69 74 |ewer SID| is omit|
|00001e60| 74 65 64 20 6f 72 20 6e | 69 6c 2c 20 74 68 65 0a |ted or n|il, the.|
|00001e70| 20 20 20 63 6f 6d 70 61 | 72 69 73 6f 6e 20 69 73 | compa|rison is|
|00001e80| 20 64 6f 6e 65 20 61 67 | 61 69 6e 73 74 20 74 68 | done ag|ainst th|
|00001e90| 65 20 6d 6f 73 74 20 72 | 65 63 65 6e 74 20 76 65 |e most r|ecent ve|
|00001ea0| 72 73 69 6f 6e 20 73 61 | 76 65 64 2e 0a 0a 54 68 |rsion sa|ved...Th|
|00001eb0| 69 73 20 72 65 70 6f 72 | 74 20 69 73 20 67 65 6e |is repor|t is gen|
|00001ec0| 65 72 61 74 65 64 20 69 | 6e 74 6f 20 61 20 62 75 |erated i|nto a bu|
|00001ed0| 66 66 65 72 20 69 6e 20 | 74 68 65 20 66 6f 72 6d |ffer in |the form|
|00001ee0| 61 74 20 6f 66 20 61 20 | 63 6f 6e 74 65 78 74 20 |at of a |context |
|00001ef0| 64 69 66 66 20 73 65 74 | 0a 73 75 69 74 61 62 6c |diff set|.suitabl|
|00001f00| 65 20 66 6f 72 20 75 73 | 65 20 77 69 74 68 20 70 |e for us|e with p|
|00001f10| 61 74 63 68 28 31 29 2e | 0a 0a 0a 0a 0a 0a 0a 0a |atch(1).|........|
|00001f20| 0a 0a 0a 0a 0a 0a 0a 0a | 0a 0a 0a 0a 0a 0a 0a 0a |........|........|
|00001f30| 0a 0a 0a 0a 0a 0a 0a 0a | 0a 0a 0a 0a 0a 0a 0a 0a |........|........|
|00001f40| 0a 0a 0a 0a 0a 0a 0a 0a | 0a 0a 0a 0a 0a 0a 0a 0a |........|........|
|00001f50| 0a 0a 0a 0a 0a 0a 46 69 | 6c 65 3a 20 73 63 63 73 |......Fi|le: sccs|
|00001f60| 09 4e 6f 64 65 3a 20 56 | 61 72 69 61 62 6c 65 73 |.Node: V|ariables|
|00001f70| 09 09 09 55 70 3a 20 54 | 6f 70 0a 0a 20 20 20 59 |...Up: T|op.. Y|
|00001f80| 6f 75 20 63 61 6e 20 63 | 75 73 74 6f 6d 69 7a 65 |ou can c|ustomize|
|00001f90| 20 74 68 65 20 62 65 68 | 61 76 69 6f 72 20 6f 66 | the beh|avior of|
|00001fa0| 20 74 68 65 20 45 6d 61 | 63 73 20 69 6e 74 65 72 | the Ema|cs inter|
|00001fb0| 66 61 63 65 20 62 79 20 | 73 65 74 74 69 6e 67 20 |face by |setting |
|00001fc0| 0a 0a 73 63 63 73 2d 6d | 61 78 2d 6c 6f 67 2d 73 |..sccs-m|ax-log-s|
|00001fd0| 69 7a 65 0a 20 20 4d 61 | 78 69 6d 75 6d 20 61 6c |ize. Ma|ximum al|
|00001fe0| 6c 6f 77 61 62 6c 65 20 | 73 69 7a 65 20 6f 66 20 |lowable |size of |
|00001ff0| 61 6e 20 73 63 63 73 20 | 6c 6f 67 20 6d 65 73 73 |an sccs |log mess|
|00002000| 61 67 65 2e 0a 0a 73 63 | 63 73 2d 64 65 66 61 75 |age...sc|cs-defau|
|00002010| 6c 74 2d 64 69 66 66 2d | 66 6c 61 67 73 0a 20 20 |lt-diff-|flags. |
|00002020| 44 65 66 61 75 6c 74 20 | 74 68 65 20 64 69 66 66 |Default |the diff|
|00002030| 20 69 6e 20 73 63 63 73 | 64 69 66 66 20 74 6f 20 | in sccs|diff to |
|00002040| 75 73 65 20 74 68 65 20 | 66 6c 61 67 73 20 67 69 |use the |flags gi|
|00002050| 76 65 6e 20 69 6e 20 74 | 68 69 73 20 6c 69 73 74 |ven in t|his list|
|00002060| 2e 0a 0a 73 63 63 73 2d | 68 65 61 64 65 72 73 2d |...sccs-|headers-|
|00002070| 77 61 6e 74 65 64 0a 20 | 20 41 20 6c 69 73 74 20 |wanted. | A list |
|00002080| 6f 66 20 53 43 43 53 20 | 68 65 61 64 65 72 20 6b |of SCCS |header k|
|00002090| 65 79 77 6f 72 64 73 20 | 69 6e 73 65 72 74 65 64 |eywords |inserted|
|000020a0| 20 69 6e 74 6f 20 63 6f | 6d 6d 65 6e 74 73 20 77 | into co|mments w|
|000020b0| 68 65 6e 20 74 68 65 20 | 0a 20 20 73 63 63 73 2d |hen the |. sccs-|
|000020c0| 69 6e 73 65 72 74 2d 68 | 65 61 64 65 72 20 66 75 |insert-h|eader fu|
|000020d0| 6e 63 74 69 6f 6e 20 69 | 73 20 65 78 65 63 75 74 |nction i|s execut|
|000020e0| 65 64 2e 20 44 65 66 61 | 75 6c 74 73 20 74 6f 20 |ed. Defa|ults to |
|000020f0| 69 6e 73 65 72 74 20 25 | 57 25 20 6f 6e 6c 79 2e |insert %|W% only.|
|00002100| 0a 0a 73 63 63 73 2d 69 | 6e 73 65 72 74 2d 73 74 |..sccs-i|nsert-st|
|00002110| 61 74 69 63 0a 20 20 49 | 66 20 6e 6f 6e 2d 6e 69 |atic. I|f non-ni|
|00002120| 6c 2c 20 75 73 65 20 61 | 20 73 74 61 74 69 63 20 |l, use a| static |
|00002130| 63 68 61 72 61 63 74 65 | 72 20 73 74 72 69 6e 67 |characte|r string|
|00002140| 20 77 68 65 6e 20 69 6e | 73 65 72 74 69 6e 67 20 | when in|serting |
|00002150| 53 43 43 53 20 68 65 61 | 64 65 72 73 20 69 6e 0a |SCCS hea|ders in.|
|00002160| 20 20 43 20 6d 6f 64 65 | 2e 20 54 68 69 73 20 70 | C mode|. This p|
|00002170| 65 72 6d 69 74 73 20 77 | 68 61 74 28 31 29 20 74 |ermits w|hat(1) t|
|00002180| 6f 20 66 69 6e 64 20 53 | 43 43 53 20 76 65 72 73 |o find S|CCS vers|
|00002190| 69 6f 6e 20 69 6e 66 6f | 20 69 6e 20 74 68 65 20 |ion info| in the |
|000021a0| 63 6f 6d 70 69 6c 65 64 | 0a 20 20 6f 62 6a 65 63 |compiled|. objec|
|000021b0| 74 20 66 69 6c 65 2e 0a | 0a 0a 0a 0a 0a 0a 0a 0a |t file..|........|
|000021c0| 0a 0a 0a 0a 0a 0a 0a 0a | 0a 0a 0a 0a 0a 0a 0a 0a |........|........|
|000021d0| 0a 0a 0a 0a 0a 0a 0a 0a | 0a 0a 0a 0a 0a 0a 0a 0a |........|........|
|000021e0| 0a 0a 0a 0a 0a 0a 0a 0a | 0a 0a 0a 0a 0a 0a 0a 0a |........|........|
|000021f0| 0a 0a 0a 0a 0a 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |.....---|--------|
|00002200| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00002210| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 43 55 54 20 48 45 |--------|--CUT HE|
|00002220| 52 45 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |RE------|--------|
|00002230| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00002240| 2d 2d 2d 2d 0a 0a 48 65 | 72 65 27 73 20 74 68 65 |----..He|re's the|
|00002250| 20 72 65 76 69 73 65 64 | 20 6d 6f 64 65 2e 20 43 | revised| mode. C|
|00002260| 68 61 6e 67 65 73 20 66 | 72 6f 6d 20 74 68 65 20 |hanges f|rom the |
|00002270| 6f 6e 65 20 79 6f 75 27 | 76 65 20 73 65 65 6e 20 |one you'|ve seen |
|00002280| 61 6c 72 65 61 64 79 20 | 61 72 65 3a 0a 0a 31 29 |already |are:..1)|
|00002290| 20 47 6c 6f 62 61 6c 2d | 6b 65 79 6d 61 70 20 62 | Global-|keymap b|
|000022a0| 69 6e 64 69 6e 67 73 20 | 66 6f 72 20 74 68 65 20 |indings |for the |
|000022b0| 65 6e 74 72 79 20 70 6f | 69 6e 74 73 2e 0a 0a 32 |entry po|ints...2|
|000022c0| 29 20 54 68 65 20 63 6f | 64 65 20 6e 6f 77 20 6d |) The co|de now m|
|000022d0| 61 69 6e 74 61 69 6e 73 | 20 61 20 6d 61 6a 6f 72 |aintains| a major|
|000022e0| 2d 76 65 72 73 69 6f 6e | 20 76 61 72 69 61 62 6c |-version| variabl|
|000022f0| 65 20 61 73 73 6f 63 69 | 61 74 65 64 20 77 69 74 |e associ|ated wit|
|00002300| 68 20 65 61 63 68 20 0a | 20 20 20 64 69 72 65 63 |h each .| direc|
|00002310| 74 6f 72 79 20 77 68 65 | 72 65 20 73 63 63 73 2e |tory whe|re sccs.|
|00002320| 65 6c 20 69 73 20 72 75 | 6e 3b 20 69 74 20 69 73 |el is ru|n; it is|
|00002330| 20 75 73 65 64 20 61 73 | 20 74 68 65 20 62 61 73 | used as| the bas|
|00002340| 65 20 76 65 72 73 69 6f | 6e 20 77 68 65 6e 0a 20 |e versio|n when. |
|00002350| 20 20 63 68 65 63 6b 69 | 6e 67 20 69 6e 20 6e 65 | checki|ng in ne|
|00002360| 77 20 66 69 6c 65 73 2c | 20 61 6e 64 20 69 73 20 |w files,| and is |
|00002370| 69 6e 63 72 65 6d 65 6e | 74 65 64 20 62 79 20 73 |incremen|ted by s|
|00002380| 63 63 73 2d 64 65 6c 74 | 61 2d 72 65 6c 65 61 73 |ccs-delt|a-releas|
|00002390| 65 2e 0a 0a 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |e...----|--------|
|000023a0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000023b0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 43 55 54 20 48 45 52 |--------|-CUT HER|
|000023c0| 45 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |E-------|--------|
|000023d0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000023e0| 2d 2d 2d 0a 3b 3b 20 73 | 63 63 73 2e 65 6c 20 2d |---.;; s|ccs.el -|
|000023f0| 2d 20 66 72 6f 6e 74 2d | 65 6e 64 20 63 6f 64 65 |- front-|end code|
|00002400| 20 66 6f 72 20 75 73 69 | 6e 67 20 53 43 43 53 20 | for usi|ng SCCS |
|00002410| 66 72 6f 6d 20 47 4e 55 | 20 45 6d 61 63 73 2e 0a |from GNU| Emacs..|
|00002420| 3b 3b 20 09 62 79 20 45 | 72 69 63 20 53 2e 20 52 |;; .by E|ric S. R|
|00002430| 61 79 6d 6f 6e 64 20 28 | 65 72 69 63 40 73 6e 61 |aymond (|eric@sna|
|00002440| 72 6b 2e 75 75 2e 6e 65 | 74 29 20 76 32 2e 30 20 |rk.uu.ne|t) v2.0 |
|00002450| 4d 61 72 63 68 20 34 20 | 31 39 39 30 0a 0a 3b 3b |March 4 |1990..;;|
|00002460| 20 54 68 69 73 20 66 69 | 6c 65 20 69 73 20 70 61 | This fi|le is pa|
|00002470| 72 74 20 6f 66 20 47 4e | 55 20 45 6d 61 63 73 2e |rt of GN|U Emacs.|
|00002480| 0a 0a 3b 3b 20 47 4e 55 | 20 45 6d 61 63 73 20 69 |..;; GNU| Emacs i|
|00002490| 73 20 64 69 73 74 72 69 | 62 75 74 65 64 20 69 6e |s distri|buted in|
|000024a0| 20 74 68 65 20 68 6f 70 | 65 20 74 68 61 74 20 69 | the hop|e that i|
|000024b0| 74 20 77 69 6c 6c 20 62 | 65 20 75 73 65 66 75 6c |t will b|e useful|
|000024c0| 2c 0a 3b 3b 20 62 75 74 | 20 57 49 54 48 4f 55 54 |,.;; but| WITHOUT|
|000024d0| 20 41 4e 59 20 57 41 52 | 52 41 4e 54 59 2e 20 20 | ANY WAR|RANTY. |
|000024e0| 4e 6f 20 61 75 74 68 6f | 72 20 6f 72 20 64 69 73 |No autho|r or dis|
|000024f0| 74 72 69 62 75 74 6f 72 | 0a 3b 3b 20 61 63 63 65 |tributor|.;; acce|
|00002500| 70 74 73 20 72 65 73 70 | 6f 6e 73 69 62 69 6c 69 |pts resp|onsibili|
|00002510| 74 79 20 74 6f 20 61 6e | 79 6f 6e 65 20 66 6f 72 |ty to an|yone for|
|00002520| 20 74 68 65 20 63 6f 6e | 73 65 71 75 65 6e 63 65 | the con|sequence|
|00002530| 73 20 6f 66 20 75 73 69 | 6e 67 20 69 74 0a 3b 3b |s of usi|ng it.;;|
|00002540| 20 6f 72 20 66 6f 72 20 | 77 68 65 74 68 65 72 20 | or for |whether |
|00002550| 69 74 20 73 65 72 76 65 | 73 20 61 6e 79 20 70 61 |it serve|s any pa|
|00002560| 72 74 69 63 75 6c 61 72 | 20 70 75 72 70 6f 73 65 |rticular| purpose|
|00002570| 20 6f 72 20 77 6f 72 6b | 73 20 61 74 20 61 6c 6c | or work|s at all|
|00002580| 2c 0a 3b 3b 20 75 6e 6c | 65 73 73 20 68 65 20 73 |,.;; unl|ess he s|
|00002590| 61 79 73 20 73 6f 20 69 | 6e 20 77 72 69 74 69 6e |ays so i|n writin|
|000025a0| 67 2e 20 20 52 65 66 65 | 72 20 74 6f 20 74 68 65 |g. Refe|r to the|
|000025b0| 20 47 4e 55 20 45 6d 61 | 63 73 20 47 65 6e 65 72 | GNU Ema|cs Gener|
|000025c0| 61 6c 20 50 75 62 6c 69 | 63 0a 3b 3b 20 4c 69 63 |al Publi|c.;; Lic|
|000025d0| 65 6e 73 65 20 66 6f 72 | 20 66 75 6c 6c 20 64 65 |ense for| full de|
|000025e0| 74 61 69 6c 73 2e 0a 0a | 3b 3b 20 45 76 65 72 79 |tails...|;; Every|
|000025f0| 6f 6e 65 20 69 73 20 67 | 72 61 6e 74 65 64 20 70 |one is g|ranted p|
|00002600| 65 72 6d 69 73 73 69 6f | 6e 20 74 6f 20 63 6f 70 |ermissio|n to cop|
|00002610| 79 2c 20 6d 6f 64 69 66 | 79 20 61 6e 64 20 72 65 |y, modif|y and re|
|00002620| 64 69 73 74 72 69 62 75 | 74 65 0a 3b 3b 20 47 4e |distribu|te.;; GN|
|00002630| 55 20 45 6d 61 63 73 2c | 20 62 75 74 20 6f 6e 6c |U Emacs,| but onl|
|00002640| 79 20 75 6e 64 65 72 20 | 74 68 65 20 63 6f 6e 64 |y under |the cond|
|00002650| 69 74 69 6f 6e 73 20 64 | 65 73 63 72 69 62 65 64 |itions d|escribed|
|00002660| 20 69 6e 20 74 68 65 0a | 3b 3b 20 47 4e 55 20 45 | in the.|;; GNU E|
|00002670| 6d 61 63 73 20 47 65 6e | 65 72 61 6c 20 50 75 62 |macs Gen|eral Pub|
|00002680| 6c 69 63 20 4c 69 63 65 | 6e 73 65 2e 20 20 20 41 |lic Lice|nse. A|
|00002690| 20 63 6f 70 79 20 6f 66 | 20 74 68 69 73 20 6c 69 | copy of| this li|
|000026a0| 63 65 6e 73 65 20 69 73 | 0a 3b 3b 20 73 75 70 70 |cense is|.;; supp|
|000026b0| 6f 73 65 64 20 74 6f 20 | 68 61 76 65 20 62 65 65 |osed to |have bee|
|000026c0| 6e 20 67 69 76 65 6e 20 | 74 6f 20 79 6f 75 20 61 |n given |to you a|
|000026d0| 6c 6f 6e 67 20 77 69 74 | 68 20 47 4e 55 20 45 6d |long wit|h GNU Em|
|000026e0| 61 63 73 20 73 6f 20 79 | 6f 75 0a 3b 3b 20 63 61 |acs so y|ou.;; ca|
|000026f0| 6e 20 6b 6e 6f 77 20 79 | 6f 75 72 20 72 69 67 68 |n know y|our righ|
|00002700| 74 73 20 61 6e 64 20 72 | 65 73 70 6f 6e 73 69 62 |ts and r|esponsib|
|00002710| 69 6c 69 74 69 65 73 2e | 20 20 49 74 20 73 68 6f |ilities.| It sho|
|00002720| 75 6c 64 20 62 65 20 69 | 6e 20 61 0a 3b 3b 20 66 |uld be i|n a.;; f|
|00002730| 69 6c 65 20 6e 61 6d 65 | 64 20 43 4f 50 59 49 4e |ile name|d COPYIN|
|00002740| 47 2e 20 20 41 6d 6f 6e | 67 20 6f 74 68 65 72 20 |G. Amon|g other |
|00002750| 74 68 69 6e 67 73 2c 20 | 74 68 65 20 63 6f 70 79 |things, |the copy|
|00002760| 72 69 67 68 74 20 6e 6f | 74 69 63 65 0a 3b 3b 20 |right no|tice.;; |
|00002770| 61 6e 64 20 74 68 69 73 | 20 6e 6f 74 69 63 65 20 |and this| notice |
|00002780| 6d 75 73 74 20 62 65 20 | 70 72 65 73 65 72 76 65 |must be |preserve|
|00002790| 64 20 6f 6e 20 61 6c 6c | 20 63 6f 70 69 65 73 2e |d on all| copies.|
|000027a0| 0a 3b 3b 3b 0a 3b 3b 3b | 20 59 6f 75 20 63 61 6e |.;;;.;;;| You can|
|000027b0| 20 62 6c 61 6d 65 20 74 | 68 69 73 20 6f 6e 65 20 | blame t|his one |
|000027c0| 6f 6e 20 45 72 69 63 20 | 53 2e 20 52 61 79 6d 6f |on Eric |S. Raymo|
|000027d0| 6e 64 20 28 65 72 69 63 | 40 73 6e 61 72 6b 2e 75 |nd (eric|@snark.u|
|000027e0| 75 2e 6e 65 74 29 2e 0a | 3b 3b 3b 20 49 74 20 69 |u.net)..|;;; It i|
|000027f0| 73 20 6c 6f 6f 73 65 6c | 79 20 64 65 72 69 76 65 |s loosel|y derive|
|00002800| 64 20 66 72 6f 6d 20 61 | 6e 20 72 63 73 20 6d 6f |d from a|n rcs mo|
|00002810| 64 65 20 77 72 69 74 74 | 65 6e 20 62 79 20 45 64 |de writt|en by Ed|
|00002820| 20 53 69 6d 70 73 6f 6e | 0a 3b 3b 3b 20 28 7b 64 | Simpson|.;;; ({d|
|00002830| 65 63 76 61 78 2c 20 73 | 65 69 73 6d 6f 7d 21 6d |ecvax, s|eismo}!m|
|00002840| 63 6e 63 21 64 75 6b 65 | 21 64 75 6b 65 63 64 75 |cnc!duke|!dukecdu|
|00002850| 21 65 76 73 29 20 69 6e | 20 79 65 61 72 73 20 67 |!evs) in| years g|
|00002860| 6f 6e 65 20 62 79 0a 3b | 3b 3b 20 61 6e 64 20 72 |one by.;|;; and r|
|00002870| 65 76 69 73 65 64 20 61 | 74 20 4d 49 54 27 73 20 |evised a|t MIT's |
|00002880| 50 72 6f 6a 65 63 74 20 | 41 74 68 65 6e 61 2e 0a |Project |Athena..|
|00002890| 0a 3b 3b 20 55 73 65 72 | 20 6f 70 74 69 6f 6e 73 |.;; User| options|
|000028a0| 0a 0a 28 64 65 66 76 61 | 72 20 73 63 63 73 2d 6d |..(defva|r sccs-m|
|000028b0| 61 78 2d 6c 6f 67 2d 73 | 69 7a 65 20 35 31 30 0a |ax-log-s|ize 510.|
|000028c0| 20 20 22 2a 4d 61 78 69 | 6d 75 6d 20 61 6c 6c 6f | "*Maxi|mum allo|
|000028d0| 77 61 62 6c 65 20 73 69 | 7a 65 20 28 63 68 61 72 |wable si|ze (char|
|000028e0| 73 29 20 2b 20 31 20 6f | 66 20 61 6e 20 73 63 63 |s) + 1 o|f an scc|
|000028f0| 73 20 6c 6f 67 20 6d 65 | 73 73 61 67 65 2e 22 29 |s log me|ssage.")|
|00002900| 0a 28 64 65 66 76 61 72 | 20 73 63 63 73 2d 64 65 |.(defvar| sccs-de|
|00002910| 66 61 75 6c 74 2d 64 69 | 66 66 2d 66 6c 61 67 73 |fault-di|ff-flags|
|00002920| 20 27 28 22 2d 63 22 29 | 0a 20 20 22 2a 49 66 20 | '("-c")|. "*If |
|00002930| 6e 6f 6e 2d 6e 69 6c 2c | 20 64 65 66 61 75 6c 74 |non-nil,| default|
|00002940| 20 74 68 65 20 64 69 66 | 66 20 69 6e 20 73 63 63 | the dif|f in scc|
|00002950| 73 64 69 66 66 20 74 6f | 20 75 73 65 20 74 68 65 |sdiff to| use the|
|00002960| 73 65 20 66 6c 61 67 73 | 2e 22 29 0a 28 64 65 66 |se flags|.").(def|
|00002970| 76 61 72 20 73 63 63 73 | 2d 68 65 61 64 65 72 73 |var sccs|-headers|
|00002980| 2d 77 61 6e 74 65 64 20 | 27 28 22 25 57 25 22 29 |-wanted |'("%W%")|
|00002990| 0a 20 20 22 2a 53 43 43 | 53 20 68 65 61 64 65 72 |. "*SCC|S header|
|000029a0| 20 6b 65 79 77 6f 72 64 | 73 20 69 6e 73 65 72 74 | keyword|s insert|
|000029b0| 65 64 20 69 6e 74 6f 20 | 63 6f 6d 6d 65 6e 74 73 |ed into |comments|
|000029c0| 20 77 68 65 6e 20 73 63 | 63 73 2d 69 6e 73 65 72 | when sc|cs-inser|
|000029d0| 74 2d 68 65 61 64 65 72 | 0a 69 73 20 65 78 65 63 |t-header|.is exec|
|000029e0| 75 74 65 64 22 29 0a 28 | 64 65 66 76 61 72 20 73 |uted").(|defvar s|
|000029f0| 63 63 73 2d 69 6e 73 65 | 72 74 2d 73 74 61 74 69 |ccs-inse|rt-stati|
|00002a00| 63 20 74 0a 20 20 22 2a | 49 6e 73 65 72 74 20 61 |c t. "*|Insert a|
|00002a10| 20 73 74 61 74 69 63 20 | 63 68 61 72 61 63 74 65 | static |characte|
|00002a20| 72 20 73 74 72 69 6e 67 | 20 77 68 65 6e 20 69 6e |r string| when in|
|00002a30| 73 65 72 74 69 6e 67 20 | 53 43 43 53 20 68 65 61 |serting |SCCS hea|
|00002a40| 64 65 72 73 20 69 6e 20 | 43 20 6d 6f 64 65 2e 22 |ders in |C mode."|
|00002a50| 29 0a 0a 3b 3b 20 56 61 | 72 73 20 74 68 65 20 75 |)..;; Va|rs the u|
|00002a60| 73 65 72 20 64 6f 65 73 | 6e 27 74 20 6e 65 65 64 |ser does|n't need|
|00002a70| 20 74 6f 20 6b 6e 6f 77 | 20 61 62 6f 75 74 2e 0a | to know| about..|
|00002a80| 0a 28 64 65 66 76 61 72 | 20 73 63 63 73 2d 6c 6f |.(defvar| sccs-lo|
|00002a90| 67 2d 65 6e 74 72 79 2d | 6d 6f 64 65 20 6e 69 6c |g-entry-|mode nil|
|00002aa0| 29 0a 28 64 65 66 76 61 | 72 20 73 63 63 73 2d 63 |).(defva|r sccs-c|
|00002ab0| 75 72 72 65 6e 74 2d 6d | 61 6a 6f 72 2d 76 65 72 |urrent-m|ajor-ver|
|00002ac0| 73 69 6f 6e 20 6e 69 6c | 29 0a 0a 3b 3b 20 53 6f |sion nil|)..;; So|
|00002ad0| 6d 65 20 68 65 6c 70 65 | 72 20 66 75 6e 63 74 69 |me helpe|r functi|
|00002ae0| 6f 6e 73 0a 0a 28 64 65 | 66 75 6e 20 73 63 63 73 |ons..(de|fun sccs|
|00002af0| 2d 6e 61 6d 65 20 28 66 | 69 6c 65 20 26 6f 70 74 |-name (f|ile &opt|
|00002b00| 69 6f 6e 61 6c 20 6c 65 | 74 74 65 72 29 0a 20 20 |ional le|tter). |
|00002b10| 22 52 65 74 75 72 6e 20 | 74 68 65 20 73 63 63 73 |"Return |the sccs|
|00002b20| 2d 66 69 6c 65 20 6e 61 | 6d 65 20 63 6f 72 72 65 |-file na|me corre|
|00002b30| 73 70 6f 6e 64 69 6e 67 | 20 74 6f 20 61 20 67 69 |sponding| to a gi|
|00002b40| 76 65 6e 20 66 69 6c 65 | 22 0a 20 20 28 66 6f 72 |ven file|". (for|
|00002b50| 6d 61 74 20 22 25 73 53 | 43 43 53 2f 25 73 2e 25 |mat "%sS|CCS/%s.%|
|00002b60| 73 22 0a 09 20 20 28 63 | 6f 6e 63 61 74 20 28 66 |s".. (c|oncat (f|
|00002b70| 69 6c 65 2d 6e 61 6d 65 | 2d 64 69 72 65 63 74 6f |ile-name|-directo|
|00002b80| 72 79 20 66 69 6c 65 29 | 29 0a 09 20 20 28 6f 72 |ry file)|).. (or|
|00002b90| 20 6c 65 74 74 65 72 20 | 22 73 22 29 0a 09 20 20 | letter |"s").. |
|00002ba0| 28 63 6f 6e 63 61 74 20 | 28 66 69 6c 65 2d 6e 61 |(concat |(file-na|
|00002bb0| 6d 65 2d 6e 6f 6e 64 69 | 72 65 63 74 6f 72 79 20 |me-nondi|rectory |
|00002bc0| 66 69 6c 65 29 29 29 29 | 0a 0a 28 64 65 66 75 6e |file))))|..(defun|
|00002bd0| 20 73 63 63 73 2d 6c 6f | 63 6b 2d 69 6e 66 6f 20 | sccs-lo|ck-info |
|00002be0| 28 66 69 6c 65 20 69 6e | 64 65 78 29 0a 20 20 20 |(file in|dex). |
|00002bf0| 22 52 65 74 75 72 6e 20 | 74 68 65 20 6e 74 68 20 |"Return |the nth |
|00002c00| 74 6f 6b 65 6e 20 69 6e | 20 61 20 66 69 6c 65 27 |token in| a file'|
|00002c10| 73 20 53 43 43 53 2d 6c | 6f 63 6b 20 69 6e 66 6f |s SCCS-l|ock info|
|00002c20| 72 6d 61 74 69 6f 6e 22 | 0a 20 20 20 28 6c 65 74 |rmation"|. (let|
|00002c30| 0a 20 20 20 20 20 20 20 | 28 28 70 66 69 6c 65 20 |. |((pfile |
|00002c40| 28 73 63 63 73 2d 6e 61 | 6d 65 20 66 69 6c 65 20 |(sccs-na|me file |
|00002c50| 22 70 22 29 29 29 0a 20 | 20 20 20 20 28 61 6e 64 |"p"))). | (and|
|00002c60| 20 28 66 69 6c 65 2d 65 | 78 69 73 74 73 2d 70 20 | (file-e|xists-p |
|00002c70| 70 66 69 6c 65 29 0a 09 | 20 20 28 73 61 76 65 2d |pfile)..| (save-|
|00002c80| 65 78 63 75 72 73 69 6f | 6e 0a 09 20 20 20 20 28 |excursio|n.. (|
|00002c90| 66 69 6e 64 2d 66 69 6c | 65 20 70 66 69 6c 65 29 |find-fil|e pfile)|
|00002ca0| 0a 09 20 20 20 20 28 61 | 75 74 6f 2d 73 61 76 65 |.. (a|uto-save|
|00002cb0| 2d 6d 6f 64 65 20 6e 69 | 6c 29 0a 09 20 20 20 20 |-mode ni|l).. |
|00002cc0| 28 72 65 70 6c 61 63 65 | 2d 73 74 72 69 6e 67 20 |(replace|-string |
|00002cd0| 22 20 22 20 22 5c 6e 22 | 29 0a 09 20 20 20 20 28 |" " "\n"|).. (|
|00002ce0| 67 6f 74 6f 2d 63 68 61 | 72 20 28 70 6f 69 6e 74 |goto-cha|r (point|
|00002cf0| 2d 6d 69 6e 29 29 0a 09 | 20 20 20 20 28 66 6f 72 |-min))..| (for|
|00002d00| 77 61 72 64 2d 6c 69 6e | 65 20 69 6e 64 65 78 29 |ward-lin|e index)|
|00002d10| 0a 09 20 20 20 20 28 70 | 72 6f 67 31 0a 09 09 28 |.. (p|rog1...(|
|00002d20| 62 75 66 66 65 72 2d 73 | 75 62 73 74 72 69 6e 67 |buffer-s|ubstring|
|00002d30| 20 28 70 6f 69 6e 74 29 | 20 28 70 72 6f 67 6e 20 | (point)| (progn |
|00002d40| 28 65 6e 64 2d 6f 66 2d | 6c 69 6e 65 29 20 28 70 |(end-of-|line) (p|
|00002d50| 6f 69 6e 74 29 29 29 0a | 09 20 20 20 20 20 20 28 |oint))).|. (|
|00002d60| 73 65 74 2d 62 75 66 66 | 65 72 2d 6d 6f 64 69 66 |set-buff|er-modif|
|00002d70| 69 65 64 2d 70 20 6e 69 | 6c 29 0a 09 20 20 20 20 |ied-p ni|l).. |
|00002d80| 20 20 28 6b 69 6c 6c 2d | 62 75 66 66 65 72 20 28 | (kill-|buffer (|
|00002d90| 63 75 72 72 65 6e 74 2d | 62 75 66 66 65 72 29 29 |current-|buffer))|
|00002da0| 29 0a 09 20 20 20 20 29 | 0a 09 20 20 29 0a 20 20 |).. )|.. ). |
|00002db0| 20 20 20 29 0a 20 20 20 | 29 0a 0a 28 64 65 66 75 | ). |)..(defu|
|00002dc0| 6e 20 73 63 63 73 2d 6c | 6f 63 6b 69 6e 67 2d 75 |n sccs-l|ocking-u|
|00002dd0| 73 65 72 20 28 66 69 6c | 65 29 0a 20 20 22 52 65 |ser (fil|e). "Re|
|00002de0| 74 75 72 6e 20 74 68 65 | 20 6e 61 6d 65 20 6f 66 |turn the| name of|
|00002df0| 20 74 68 65 20 70 65 72 | 73 6f 6e 20 63 75 72 72 | the per|son curr|
|00002e00| 65 6e 74 6c 79 20 68 6f | 6c 64 69 6e 67 20 61 20 |ently ho|lding a |
|00002e10| 6c 6f 63 6b 20 6f 6e 20 | 46 49 4c 45 2c 20 6e 69 |lock on |FILE, ni|
|00002e20| 6c 20 69 66 0a 74 68 65 | 72 65 20 69 73 20 6e 6f |l if.the|re is no|
|00002e30| 20 73 75 63 68 20 70 65 | 72 73 6f 6e 2e 22 0a 20 | such pe|rson.". |
|00002e40| 20 28 73 63 63 73 2d 6c | 6f 63 6b 2d 69 6e 66 6f | (sccs-l|ock-info|
|00002e50| 20 66 69 6c 65 20 32 29 | 0a 20 20 29 0a 0a 28 64 | file 2)|. )..(d|
|00002e60| 65 66 75 6e 20 73 63 63 | 73 2d 6c 6f 63 6b 65 64 |efun scc|s-locked|
|00002e70| 2d 72 65 76 69 73 69 6f | 6e 20 28 66 69 6c 65 29 |-revisio|n (file)|
|00002e80| 0a 20 20 22 52 65 74 75 | 72 6e 20 74 68 65 20 72 |. "Retu|rn the r|
|00002e90| 65 76 69 73 69 6f 6e 20 | 6e 75 6d 62 65 72 20 63 |evision |number c|
|00002ea0| 75 72 72 65 6e 74 6c 79 | 20 6c 6f 63 6b 65 64 20 |urrently| locked |
|00002eb0| 66 6f 72 20 46 49 4c 45 | 2c 20 6e 69 6c 20 69 66 |for FILE|, nil if|
|00002ec0| 20 6e 6f 6e 65 20 73 75 | 63 68 2e 22 0a 20 20 28 | none su|ch.". (|
|00002ed0| 73 63 63 73 2d 6c 6f 63 | 6b 2d 69 6e 66 6f 20 66 |sccs-loc|k-info f|
|00002ee0| 69 6c 65 20 31 29 0a 20 | 20 29 0a 0a 28 64 65 66 |ile 1). | )..(def|
|00002ef0| 6d 61 63 72 6f 20 65 72 | 72 6f 72 2d 6f 63 63 75 |macro er|ror-occu|
|00002f00| 72 72 65 64 20 28 26 72 | 65 73 74 20 62 6f 64 79 |rred (&r|est body|
|00002f10| 29 0a 20 20 28 6c 69 73 | 74 20 27 63 6f 6e 64 69 |). (lis|t 'condi|
|00002f20| 74 69 6f 6e 2d 63 61 73 | 65 20 6e 69 6c 20 28 63 |tion-cas|e nil (c|
|00002f30| 6f 6e 73 20 27 70 72 6f | 67 6e 20 28 61 70 70 65 |ons 'pro|gn (appe|
|00002f40| 6e 64 20 62 6f 64 79 20 | 27 28 6e 69 6c 29 29 29 |nd body |'(nil)))|
|00002f50| 20 27 28 65 72 72 6f 72 | 20 74 29 29 29 0a 0a 3b | '(error| t)))..;|
|00002f60| 3b 20 54 68 65 72 65 20 | 68 61 73 20 2a 67 6f 74 |; There |has *got|
|00002f70| 2a 20 74 6f 20 62 65 20 | 61 20 62 65 74 74 65 72 |* to be |a better|
|00002f80| 20 77 61 79 20 74 6f 20 | 64 6f 20 74 68 69 73 2e | way to |do this.|
|00002f90| 2e 2e 0a 28 64 65 66 6d | 61 63 72 6f 20 63 68 6d |...(defm|acro chm|
|00002fa0| 6f 64 20 28 70 65 72 6d | 73 20 66 69 6c 65 29 0a |od (perm|s file).|
|00002fb0| 20 20 28 6c 69 73 74 20 | 27 63 61 6c 6c 2d 70 72 | (list |'call-pr|
|00002fc0| 6f 63 65 73 73 20 22 63 | 68 6d 6f 64 22 20 6e 69 |ocess "c|hmod" ni|
|00002fd0| 6c 20 6e 69 6c 20 6e 69 | 6c 20 70 65 72 6d 73 20 |l nil ni|l perms |
|00002fe0| 66 69 6c 65 29 29 0a 0a | 28 64 65 66 75 6e 20 73 |file))..|(defun s|
|00002ff0| 63 63 73 2d 73 61 76 65 | 2d 76 61 72 73 20 28 73 |ccs-save|-vars (s|
|00003000| 69 64 29 0a 20 20 28 73 | 61 76 65 2d 65 78 63 75 |id). (s|ave-excu|
|00003010| 72 73 69 6f 6e 0a 20 20 | 20 20 28 66 69 6e 64 2d |rsion. | (find-|
|00003020| 66 69 6c 65 20 22 53 43 | 43 53 2f 65 6d 61 63 73 |file "SC|CS/emacs|
|00003030| 2d 76 61 72 73 2e 65 6c | 22 29 0a 20 20 20 20 28 |-vars.el|"). (|
|00003040| 65 72 61 73 65 2d 62 75 | 66 66 65 72 29 0a 20 20 |erase-bu|ffer). |
|00003050| 20 20 28 69 6e 73 65 72 | 74 20 22 28 73 65 74 71 | (inser|t "(setq|
|00003060| 20 73 63 63 73 2d 63 75 | 72 72 65 6e 74 2d 6d 61 | sccs-cu|rrent-ma|
|00003070| 6a 6f 72 2d 76 65 72 73 | 69 6f 6e 20 5c 22 22 20 |jor-vers|ion \"" |
|00003080| 73 69 64 20 22 5c 22 29 | 22 29 0a 20 20 20 20 28 |sid "\")|"). (|
|00003090| 62 61 73 69 63 2d 73 61 | 76 65 2d 62 75 66 66 65 |basic-sa|ve-buffe|
|000030a0| 72 29 0a 20 20 20 20 29 | 0a 20 20 29 0a 0a 28 64 |r). )|. )..(d|
|000030b0| 65 66 75 6e 20 73 63 63 | 73 2d 6c 6f 61 64 2d 76 |efun scc|s-load-v|
|000030c0| 61 72 73 20 28 29 0a 20 | 20 28 69 66 20 28 65 72 |ars (). | (if (er|
|000030d0| 72 6f 72 2d 6f 63 63 75 | 72 72 65 64 20 28 6c 6f |ror-occu|rred (lo|
|000030e0| 61 64 2d 66 69 6c 65 20 | 22 53 43 43 53 2f 65 6d |ad-file |"SCCS/em|
|000030f0| 61 63 73 2d 76 61 72 73 | 2e 65 6c 22 29 29 0a 20 |acs-vars|.el")). |
|00003100| 20 20 20 20 20 28 73 65 | 74 71 20 73 63 63 73 2d | (se|tq sccs-|
|00003110| 63 75 72 72 65 6e 74 2d | 6d 61 6a 6f 72 2d 76 65 |current-|major-ve|
|00003120| 72 73 69 6f 6e 20 22 31 | 2e 31 22 29 29 0a 29 0a |rsion "1|.1")).).|
|00003130| 0a 3b 3b 20 54 68 65 20 | 66 6f 6c 6c 6f 77 69 6e |.;; The |followin|
|00003140| 67 20 66 75 6e 63 74 69 | 6f 6e 73 20 64 6f 20 6d |g functi|ons do m|
|00003150| 6f 73 74 20 6f 66 20 74 | 68 65 20 72 65 61 6c 20 |ost of t|he real |
|00003160| 77 6f 72 6b 0a 0a 28 64 | 65 66 75 6e 20 73 63 63 |work..(d|efun scc|
|00003170| 73 2d 67 65 74 2d 76 65 | 72 73 69 6f 6e 20 28 66 |s-get-ve|rsion (f|
|00003180| 69 6c 65 20 73 69 64 29 | 0a 20 20 20 22 46 6f 72 |ile sid)|. "For|
|00003190| 20 74 68 65 20 67 69 76 | 65 6e 20 46 49 4c 45 2c | the giv|en FILE,|
|000031a0| 20 72 65 74 72 69 65 76 | 65 20 61 20 63 6f 70 79 | retriev|e a copy|
|000031b0| 20 6f 66 20 74 68 65 20 | 76 65 72 73 69 6f 6e 20 | of the |version |
|000031c0| 77 69 74 68 20 67 69 76 | 65 6e 20 53 49 44 20 69 |with giv|en SID i|
|000031d0| 6e 0a 61 20 74 65 6d 70 | 66 69 6c 65 2e 20 52 65 |n.a temp|file. Re|
|000031e0| 74 75 72 6e 20 74 68 65 | 20 74 65 6d 70 66 69 6c |turn the| tempfil|
|000031f0| 65 20 6e 61 6d 65 2c 20 | 6f 72 20 6e 69 6c 20 69 |e name, |or nil i|
|00003200| 66 20 6e 6f 20 73 75 63 | 68 20 76 65 72 73 69 6f |f no suc|h versio|
|00003210| 6e 20 65 78 69 73 74 73 | 2e 22 0a 20 20 28 6c 65 |n exists|.". (le|
|00003220| 74 20 28 6f 6c 64 76 65 | 72 73 69 6f 6e 20 76 62 |t (oldve|rsion vb|
|00003230| 75 66 29 0a 20 20 20 20 | 28 73 65 74 71 20 6f 6c |uf). |(setq ol|
|00003240| 64 76 65 72 73 69 6f 6e | 20 28 73 63 63 73 2d 6e |dversion| (sccs-n|
|00003250| 61 6d 65 20 66 69 6c 65 | 20 28 6f 72 20 73 69 64 |ame file| (or sid|
|00003260| 20 22 6e 65 77 22 29 29 | 29 0a 20 20 20 20 28 73 | "new"))|). (s|
|00003270| 65 74 71 20 76 62 75 66 | 20 28 63 72 65 61 74 65 |etq vbuf| (create|
|00003280| 2d 66 69 6c 65 2d 62 75 | 66 66 65 72 20 6f 6c 64 |-file-bu|ffer old|
|00003290| 76 65 72 73 69 6f 6e 29 | 29 0a 20 20 20 20 28 70 |version)|). (p|
|000032a0| 72 6f 67 31 0a 09 28 69 | 66 20 28 6e 6f 74 20 28 |rog1..(i|f (not (|
|000032b0| 65 72 72 6f 72 2d 6f 63 | 63 75 72 72 65 64 0a 09 |error-oc|curred..|
|000032c0| 20 20 20 20 20 28 73 63 | 63 73 2d 64 6f 2d 63 6f | (sc|cs-do-co|
|000032d0| 6d 6d 61 6e 64 20 76 62 | 75 66 20 22 67 65 74 22 |mmand vb|uf "get"|
|000032e0| 20 66 69 6c 65 0a 09 09 | 09 20 20 20 20 20 20 28 | file...|. (|
|000032f0| 61 6e 64 20 73 69 64 20 | 28 63 6f 6e 63 61 74 20 |and sid |(concat |
|00003300| 22 2d 72 22 20 73 69 64 | 29 29 0a 09 09 09 20 20 |"-r" sid|)).... |
|00003310| 20 20 20 20 22 2d 70 22 | 20 22 2d 73 22 29 29 29 | "-p"| "-s")))|
|00003320| 0a 09 20 20 20 20 28 73 | 61 76 65 2d 65 78 63 75 |.. (s|ave-excu|
|00003330| 72 73 69 6f 6e 0a 09 20 | 20 20 20 20 20 28 73 65 |rsion.. | (se|
|00003340| 74 2d 62 75 66 66 65 72 | 20 76 62 75 66 29 0a 09 |t-buffer| vbuf)..|
|00003350| 20 20 20 20 20 20 28 77 | 72 69 74 65 2d 72 65 67 | (w|rite-reg|
|00003360| 69 6f 6e 20 28 70 6f 69 | 6e 74 2d 6d 69 6e 29 20 |ion (poi|nt-min) |
|00003370| 28 70 6f 69 6e 74 2d 6d | 61 78 29 20 6f 6c 64 76 |(point-m|ax) oldv|
|00003380| 65 72 73 69 6f 6e 20 74 | 20 30 29 0a 09 20 20 20 |ersion t| 0).. |
|00003390| 20 20 20 6f 6c 64 76 65 | 72 73 69 6f 6e 29 0a 09 | oldve|rsion)..|
|000033a0| 20 20 29 0a 20 20 20 20 | 20 20 28 6b 69 6c 6c 2d | ). | (kill-|
|000033b0| 62 75 66 66 65 72 20 76 | 62 75 66 29 0a 20 20 20 |buffer v|buf). |
|000033c0| 20 20 20 29 0a 20 20 20 | 20 29 0a 20 20 29 0a 0a | ). | ). )..|
|000033d0| 28 64 65 66 75 6e 20 73 | 63 63 73 2d 6d 6f 64 65 |(defun s|ccs-mode|
|000033e0| 2d 6c 69 6e 65 20 28 66 | 69 6c 65 29 0a 20 20 22 |-line (f|ile). "|
|000033f0| 53 65 74 20 74 68 65 20 | 6d 6f 64 65 20 6c 69 6e |Set the |mode lin|
|00003400| 65 20 66 6f 72 20 61 6e | 20 73 63 63 73 20 62 75 |e for an| sccs bu|
|00003410| 66 66 65 72 2e 20 46 49 | 4c 45 20 69 73 20 74 68 |ffer. FI|LE is th|
|00003420| 65 20 66 69 6c 65 20 62 | 65 69 6e 67 20 76 69 73 |e file b|eing vis|
|00003430| 69 74 65 64 20 74 6f 0a | 70 75 74 20 69 6e 20 74 |ited to.|put in t|
|00003440| 68 65 20 6d 6f 64 65 6c | 69 6e 65 2e 22 0a 20 20 |he model|ine.". |
|00003450| 28 73 65 74 71 20 6d 6f | 64 65 2d 6c 69 6e 65 2d |(setq mo|de-line-|
|00003460| 70 72 6f 63 65 73 73 0a | 09 28 69 66 20 28 66 69 |process.|.(if (fi|
|00003470| 6c 65 2d 65 78 69 73 74 | 73 2d 70 20 28 73 63 63 |le-exist|s-p (scc|
|00003480| 73 2d 6e 61 6d 65 20 66 | 69 6c 65 20 22 70 22 29 |s-name f|ile "p")|
|00003490| 29 0a 09 20 20 20 20 28 | 66 6f 72 6d 61 74 20 22 |).. (|format "|
|000034a0| 20 3c 53 43 43 53 3a 20 | 25 73 3e 22 20 28 73 63 | <SCCS: |%s>" (sc|
|000034b0| 63 73 2d 6c 6f 63 6b 65 | 64 2d 72 65 76 69 73 69 |cs-locke|d-revisi|
|000034c0| 6f 6e 20 66 69 6c 65 29 | 29 0a 09 20 20 22 22 29 |on file)|).. "")|
|000034d0| 29 0a 0a 20 20 20 20 3b | 20 66 6f 72 63 65 20 75 |).. ;| force u|
|000034e0| 70 64 61 74 65 20 6f 66 | 20 73 63 72 65 65 6e 0a |pdate of| screen.|
|000034f0| 20 20 20 20 28 73 61 76 | 65 2d 65 78 63 75 72 73 | (sav|e-excurs|
|00003500| 69 6f 6e 20 28 73 65 74 | 2d 62 75 66 66 65 72 20 |ion (set|-buffer |
|00003510| 28 6f 74 68 65 72 2d 62 | 75 66 66 65 72 29 29 29 |(other-b|uffer)))|
|00003520| 0a 20 20 20 20 28 73 69 | 74 2d 66 6f 72 20 30 29 |. (si|t-for 0)|
|00003530| 0a 20 20 20 20 29 0a 0a | 28 64 65 66 75 6e 20 73 |. )..|(defun s|
|00003540| 63 63 73 2d 64 6f 2d 63 | 6f 6d 6d 61 6e 64 20 28 |ccs-do-c|ommand (|
|00003550| 62 75 66 66 65 72 20 63 | 6f 6d 6d 61 6e 64 20 66 |buffer c|ommand f|
|00003560| 69 6c 65 20 26 72 65 73 | 74 20 66 6c 61 67 73 29 |ile &res|t flags)|
|00003570| 0a 22 20 20 45 78 65 63 | 75 74 65 20 61 6e 20 73 |." Exec|ute an s|
|00003580| 63 63 73 20 63 6f 6d 6d | 61 6e 64 2c 20 6e 6f 74 |ccs comm|and, not|
|00003590| 69 66 79 69 6e 67 20 74 | 68 65 20 75 73 65 72 20 |ifying t|he user |
|000035a0| 61 6e 64 20 63 68 65 63 | 6b 69 6e 67 20 66 6f 72 |and chec|king for|
|000035b0| 20 65 72 72 6f 72 73 2e | 22 0a 20 20 28 6d 65 73 | errors.|". (mes|
|000035c0| 73 61 67 65 20 28 66 6f | 72 6d 61 74 20 22 52 75 |sage (fo|rmat "Ru|
|000035d0| 6e 6e 69 6e 67 20 25 73 | 20 6f 6e 20 25 73 2e 2e |nning %s| on %s..|
|000035e0| 2e 22 20 63 6f 6d 6d 61 | 6e 64 20 66 69 6c 65 29 |." comma|nd file)|
|000035f0| 29 0a 20 20 28 73 61 76 | 65 2d 77 69 6e 64 6f 77 |). (sav|e-window|
|00003600| 2d 65 78 63 75 72 73 69 | 6f 6e 0a 20 20 20 20 28 |-excursi|on. (|
|00003610| 73 65 74 2d 62 75 66 66 | 65 72 20 28 67 65 74 2d |set-buff|er (get-|
|00003620| 62 75 66 66 65 72 2d 63 | 72 65 61 74 65 20 62 75 |buffer-c|reate bu|
|00003630| 66 66 65 72 29 29 0a 20 | 20 20 20 28 65 72 61 73 |ffer)). | (eras|
|00003640| 65 2d 62 75 66 66 65 72 | 29 0a 20 20 20 20 28 77 |e-buffer|). (w|
|00003650| 68 69 6c 65 20 28 61 6e | 64 20 66 6c 61 67 73 20 |hile (an|d flags |
|00003660| 28 6e 6f 74 20 28 63 61 | 72 20 66 6c 61 67 73 29 |(not (ca|r flags)|
|00003670| 29 29 0a 20 20 20 20 20 | 20 28 73 65 74 71 20 66 |)). | (setq f|
|00003680| 6c 61 67 73 20 28 63 64 | 72 20 66 6c 61 67 73 29 |lags (cd|r flags)|
|00003690| 29 29 0a 20 20 20 20 28 | 6c 65 74 0a 20 20 20 20 |)). (|let. |
|000036a0| 20 20 28 28 64 65 66 61 | 75 6c 74 2d 64 69 72 65 | ((defa|ult-dire|
|000036b0| 63 74 6f 72 79 20 28 66 | 69 6c 65 2d 6e 61 6d 65 |ctory (f|ile-name|
|000036c0| 2d 64 69 72 65 63 74 6f | 72 79 20 28 6f 72 20 66 |-directo|ry (or f|
|000036d0| 69 6c 65 20 22 2e 2f 22 | 29 29 29 29 0a 20 20 20 |ile "./"|)))). |
|000036e0| 20 20 20 28 61 70 70 6c | 79 20 27 63 61 6c 6c 2d | (appl|y 'call-|
|000036f0| 70 72 6f 63 65 73 73 20 | 63 6f 6d 6d 61 6e 64 20 |process |command |
|00003700| 6e 69 6c 20 74 20 6e 69 | 6c 0a 09 20 20 20 20 20 |nil t ni|l.. |
|00003710| 28 61 70 70 65 6e 64 20 | 66 6c 61 67 73 20 28 61 |(append |flags (a|
|00003720| 6e 64 20 66 69 6c 65 20 | 28 6c 69 73 74 20 28 73 |nd file |(list (s|
|00003730| 63 63 73 2d 6e 61 6d 65 | 20 66 69 6c 65 29 29 29 |ccs-name| file)))|
|00003740| 29 29 0a 20 20 20 20 29 | 0a 20 20 20 20 28 67 6f |)). )|. (go|
|00003750| 74 6f 2d 63 68 61 72 20 | 28 70 6f 69 6e 74 2d 6d |to-char |(point-m|
|00003760| 61 78 29 29 0a 20 20 20 | 20 28 70 72 65 76 69 6f |ax)). | (previo|
|00003770| 75 73 2d 6c 69 6e 65 20 | 31 29 0a 20 20 20 20 28 |us-line |1). (|
|00003780| 69 66 20 28 6c 6f 6f 6b | 69 6e 67 2d 61 74 20 22 |if (look|ing-at "|
|00003790| 45 52 52 4f 52 22 29 0a | 09 20 20 28 65 72 72 6f |ERROR").|. (erro|
|000037a0| 72 20 28 66 6f 72 6d 61 | 74 20 22 52 75 6e 6e 69 |r (forma|t "Runni|
|000037b0| 6e 67 20 25 73 20 6f 6e | 20 25 73 2e 2e 2e 66 61 |ng %s on| %s...fa|
|000037c0| 69 6c 65 64 22 20 63 6f | 6d 6d 61 6e 64 20 66 69 |iled" co|mmand fi|
|000037d0| 6c 65 29 29 0a 20 20 20 | 20 20 20 28 6d 65 73 73 |le)). | (mess|
|000037e0| 61 67 65 20 28 66 6f 72 | 6d 61 74 20 22 52 75 6e |age (for|mat "Run|
|000037f0| 6e 69 6e 67 20 25 73 20 | 6f 6e 20 25 73 2e 2e 2e |ning %s |on %s...|
|00003800| 64 6f 6e 65 22 20 63 6f | 6d 6d 61 6e 64 20 66 69 |done" co|mmand fi|
|00003810| 6c 65 29 29 0a 20 20 20 | 20 20 20 29 0a 20 20 20 |le)). | ). |
|00003820| 20 29 0a 20 20 28 69 66 | 20 66 69 6c 65 20 28 73 | ). (if| file (s|
|00003830| 63 63 73 2d 6d 6f 64 65 | 2d 6c 69 6e 65 20 66 69 |ccs-mode|-line fi|
|00003840| 6c 65 29 29 0a 20 20 29 | 0a 0a 28 64 65 66 75 6e |le)). )|..(defun|
|00003850| 20 73 63 63 73 2d 74 72 | 65 65 2d 77 61 6c 6b 20 | sccs-tr|ee-walk |
|00003860| 28 66 75 6e 63 20 26 72 | 65 73 74 20 6f 70 74 61 |(func &r|est opta|
|00003870| 72 67 73 29 0a 20 20 22 | 41 70 70 6c 79 20 46 55 |rgs). "|Apply FU|
|00003880| 4e 43 20 74 6f 20 65 61 | 63 68 20 53 43 43 53 20 |NC to ea|ch SCCS |
|00003890| 66 69 6c 65 20 75 6e 64 | 65 72 20 74 68 65 20 64 |file und|er the d|
|000038a0| 65 66 61 75 6c 74 20 64 | 69 72 65 63 74 6f 72 79 |efault d|irectory|
|000038b0| 2e 20 49 66 20 70 72 65 | 73 65 6e 74 2c 0a 4f 50 |. If pre|sent,.OP|
|000038c0| 54 41 52 47 53 20 61 72 | 65 20 61 6c 73 6f 20 70 |TARGS ar|e also p|
|000038d0| 61 73 73 65 64 2e 22 0a | 20 20 28 73 68 65 6c 6c |assed.".| (shell|
|000038e0| 2d 63 6f 6d 6d 61 6e 64 | 20 28 63 6f 6e 63 61 74 |-command| (concat|
|000038f0| 0a 09 09 20 20 22 66 69 | 6e 64 20 22 20 64 65 66 |... "fi|nd " def|
|00003900| 61 75 6c 74 2d 64 69 72 | 65 63 74 6f 72 79 20 22 |ault-dir|ectory "|
|00003910| 20 2d 70 72 69 6e 74 20 | 7c 20 67 72 65 70 20 27 | -print || grep '|
|00003920| 53 43 43 53 2f 73 5c 5c | 2e 27 22 29 29 0a 20 20 |SCCS/s\\|.'")). |
|00003930| 28 73 65 74 2d 62 75 66 | 66 65 72 20 22 2a 53 68 |(set-buf|fer "*Sh|
|00003940| 65 6c 6c 20 43 6f 6d 6d | 61 6e 64 20 4f 75 74 70 |ell Comm|and Outp|
|00003950| 75 74 2a 22 29 0a 20 20 | 28 67 6f 74 6f 2d 63 68 |ut*"). |(goto-ch|
|00003960| 61 72 20 28 70 6f 69 6e | 74 2d 6d 69 6e 29 29 0a |ar (poin|t-min)).|
|00003970| 20 20 28 72 65 70 6c 61 | 63 65 2d 73 74 72 69 6e | (repla|ce-strin|
|00003980| 67 20 22 53 43 43 53 2f | 73 2e 22 20 22 22 29 0a |g "SCCS/|s." "").|
|00003990| 20 20 28 67 6f 74 6f 2d | 63 68 61 72 20 28 70 6f | (goto-|char (po|
|000039a0| 69 6e 74 2d 6d 69 6e 29 | 29 0a 20 20 28 69 66 20 |int-min)|). (if |
|000039b0| 28 65 6f 62 70 29 0a 20 | 20 20 20 20 20 28 65 72 |(eobp). | (er|
|000039c0| 72 6f 72 20 22 4e 6f 20 | 53 43 43 53 20 66 69 6c |ror "No |SCCS fil|
|000039d0| 65 73 20 75 6e 64 65 72 | 20 25 73 22 20 64 65 66 |es under| %s" def|
|000039e0| 61 75 6c 74 2d 64 69 72 | 65 63 74 6f 72 79 29 29 |ault-dir|ectory))|
|000039f0| 0a 20 20 28 77 68 69 6c | 65 20 28 6e 6f 74 20 28 |. (whil|e (not (|
|00003a00| 65 6f 62 70 29 29 0a 20 | 20 20 20 28 6c 65 74 20 |eobp)). | (let |
|00003a10| 28 28 66 69 6c 65 20 28 | 62 75 66 66 65 72 2d 73 |((file (|buffer-s|
|00003a20| 75 62 73 74 72 69 6e 67 | 20 28 70 6f 69 6e 74 29 |ubstring| (point)|
|00003a30| 20 28 70 72 6f 67 6e 20 | 28 65 6e 64 2d 6f 66 2d | (progn |(end-of-|
|00003a40| 6c 69 6e 65 29 20 28 70 | 6f 69 6e 74 29 29 29 29 |line) (p|oint))))|
|00003a50| 29 0a 20 20 20 20 20 20 | 28 61 70 70 6c 79 20 66 |). |(apply f|
|00003a60| 75 6e 63 20 66 69 6c 65 | 20 6f 70 74 61 72 67 73 |unc file| optargs|
|00003a70| 29 0a 20 20 20 20 20 20 | 29 0a 20 20 20 20 28 66 |). |). (f|
|00003a80| 6f 72 77 61 72 64 2d 6c | 69 6e 65 20 31 29 0a 20 |orward-l|ine 1). |
|00003a90| 20 20 20 29 0a 20 20 29 | 0a 0a 28 64 65 66 75 6e | ). )|..(defun|
|00003aa0| 20 73 63 63 73 2d 69 6e | 69 74 20 28 29 0a 20 20 | sccs-in|it (). |
|00003ab0| 28 73 63 63 73 2d 6c 6f | 61 64 2d 76 61 72 73 29 |(sccs-lo|ad-vars)|
|00003ac0| 0a 20 20 28 64 65 66 69 | 6e 65 2d 6b 65 79 20 28 |. (defi|ne-key (|
|00003ad0| 63 75 72 72 65 6e 74 2d | 67 6c 6f 62 61 6c 2d 6d |current-|global-m|
|00003ae0| 61 70 29 20 22 5c 43 2d | 63 3f 22 20 27 64 65 73 |ap) "\C-|c?" 'des|
|00003af0| 63 72 69 62 65 2d 6d 6f | 64 65 29 0a 20 20 28 64 |cribe-mo|de). (d|
|00003b00| 65 66 69 6e 65 2d 6b 65 | 79 20 28 63 75 72 72 65 |efine-ke|y (curre|
|00003b10| 6e 74 2d 67 6c 6f 62 61 | 6c 2d 6d 61 70 29 20 22 |nt-globa|l-map) "|
|00003b20| 5c 43 2d 63 6e 22 20 27 | 73 63 63 73 29 0a 20 20 |\C-cn" '|sccs). |
|00003b30| 28 64 65 66 69 6e 65 2d | 6b 65 79 20 28 63 75 72 |(define-|key (cur|
|00003b40| 72 65 6e 74 2d 67 6c 6f | 62 61 6c 2d 6d 61 70 29 |rent-glo|bal-map)|
|00003b50| 20 22 5c 43 2d 63 68 22 | 20 27 73 63 63 73 2d 69 | "\C-ch"| 'sccs-i|
|00003b60| 6e 73 65 72 74 2d 68 65 | 61 64 65 72 73 29 0a 20 |nsert-he|aders). |
|00003b70| 20 28 64 65 66 69 6e 65 | 2d 6b 65 79 20 28 63 75 | (define|-key (cu|
|00003b80| 72 72 65 6e 74 2d 67 6c | 6f 62 61 6c 2d 6d 61 70 |rrent-gl|obal-map|
|00003b90| 29 20 22 5c 43 2d 63 64 | 22 20 27 73 63 63 73 2d |) "\C-cd|" 'sccs-|
|00003ba0| 64 69 66 66 29 0a 20 20 | 28 64 65 66 69 6e 65 2d |diff). |(define-|
|00003bb0| 6b 65 79 20 28 63 75 72 | 72 65 6e 74 2d 67 6c 6f |key (cur|rent-glo|
|00003bc0| 62 61 6c 2d 6d 61 70 29 | 20 22 5c 43 2d 63 70 22 |bal-map)| "\C-cp"|
|00003bd0| 20 27 73 63 63 73 2d 70 | 72 73 29 0a 20 20 28 64 | 'sccs-p|rs). (d|
|00003be0| 65 66 69 6e 65 2d 6b 65 | 79 20 28 63 75 72 72 65 |efine-ke|y (curre|
|00003bf0| 6e 74 2d 67 6c 6f 62 61 | 6c 2d 6d 61 70 29 20 22 |nt-globa|l-map) "|
|00003c00| 5c 43 2d 63 43 2d 70 22 | 20 27 73 63 63 73 2d 70 |\C-cC-p"| 'sccs-p|
|00003c10| 65 6e 64 69 6e 67 29 0a | 20 20 28 64 65 66 69 6e |ending).| (defin|
|00003c20| 65 2d 6b 65 79 20 28 63 | 75 72 72 65 6e 74 2d 67 |e-key (c|urrent-g|
|00003c30| 6c 6f 62 61 6c 2d 6d 61 | 70 29 20 22 5c 43 2d 63 |lobal-ma|p) "\C-c|
|00003c40| 72 22 20 27 73 63 63 73 | 2d 72 65 67 69 73 74 65 |r" 'sccs|-registe|
|00003c50| 72 65 64 29 0a 20 20 29 | 0a 0a 3b 3b 20 48 65 72 |red). )|..;; Her|
|00003c60| 65 27 73 20 74 68 65 20 | 6d 61 6a 6f 72 20 65 6e |e's the |major en|
|00003c70| 74 72 79 20 70 6f 69 6e | 74 0a 0a 28 64 65 66 75 |try poin|t..(defu|
|00003c80| 6e 20 73 63 63 73 20 28 | 76 65 72 62 6f 73 65 29 |n sccs (|verbose)|
|00003c90| 0a 20 20 22 2a 54 72 69 | 65 73 20 74 6f 20 64 6f |. "*Tri|es to do|
|00003ca0| 20 74 68 65 20 6e 65 78 | 74 20 6c 6f 67 69 63 61 | the nex|t logica|
|00003cb0| 6c 20 53 43 43 53 20 6f | 70 65 72 61 74 69 6f 6e |l SCCS o|peration|
|00003cc0| 20 6f 6e 20 74 68 65 20 | 66 69 6c 65 20 61 73 73 | on the |file ass|
|00003cd0| 6f 63 69 61 74 65 64 20 | 77 69 74 68 20 74 68 65 |ociated |with the|
|00003ce0| 0a 63 75 72 72 65 6e 74 | 20 62 75 66 66 65 72 2e |.current| buffer.|
|00003cf0| 20 59 6f 75 20 6d 75 73 | 74 20 68 61 76 65 20 61 | You mus|t have a|
|00003d00| 6e 20 53 43 43 53 20 73 | 75 62 64 69 72 65 63 74 |n SCCS s|ubdirect|
|00003d10| 6f 72 79 20 69 6e 20 74 | 68 65 20 73 61 6d 65 20 |ory in t|he same |
|00003d20| 64 69 72 65 63 74 6f 72 | 79 0a 61 73 20 74 68 65 |director|y.as the|
|00003d30| 20 66 69 6c 65 20 62 65 | 69 6e 67 20 6f 70 65 72 | file be|ing oper|
|00003d40| 61 74 65 64 20 6f 6e 2e | 0a 20 20 20 49 66 20 74 |ated on.|. If t|
|00003d50| 68 65 20 66 69 6c 65 20 | 69 73 20 6e 6f 74 20 61 |he file |is not a|
|00003d60| 6c 72 65 61 64 79 20 72 | 65 67 69 73 74 65 72 65 |lready r|egistere|
|00003d70| 64 20 77 69 74 68 20 53 | 43 43 53 2c 20 74 68 69 |d with S|CCS, thi|
|00003d80| 73 20 64 6f 65 73 20 61 | 6e 20 61 64 6d 69 6e 20 |s does a|n admin |
|00003d90| 2d 69 0a 66 6f 6c 6c 6f | 77 65 64 20 62 79 20 61 |-i.follo|wed by a|
|00003da0| 20 67 65 74 20 2d 65 2e | 0a 20 20 20 49 66 20 74 | get -e.|. If t|
|00003db0| 68 65 20 66 69 6c 65 20 | 69 73 20 72 65 67 69 73 |he file |is regis|
|00003dc0| 74 65 72 65 64 20 61 6e | 64 20 6e 6f 74 20 6c 6f |tered an|d not lo|
|00003dd0| 63 6b 65 64 20 62 79 20 | 61 6e 79 6f 6e 65 2c 20 |cked by |anyone, |
|00003de0| 74 68 69 73 20 64 6f 65 | 73 20 61 20 67 65 74 20 |this doe|s a get |
|00003df0| 2d 65 2e 0a 20 20 20 49 | 66 20 74 68 65 20 66 69 |-e.. I|f the fi|
|00003e00| 6c 65 20 69 73 20 72 65 | 67 69 73 74 65 72 65 64 |le is re|gistered|
|00003e10| 20 61 6e 64 20 6c 6f 63 | 6b 65 64 20 62 79 20 74 | and loc|ked by t|
|00003e20| 68 65 20 63 61 6c 6c 69 | 6e 67 20 75 73 65 72 2c |he calli|ng user,|
|00003e30| 20 74 68 69 73 20 70 6f | 70 73 20 75 70 20 61 0a | this po|ps up a.|
|00003e40| 62 75 66 66 65 72 20 66 | 6f 72 20 63 72 65 61 74 |buffer f|or creat|
|00003e50| 69 6f 6e 20 6f 66 20 61 | 20 6c 6f 67 20 6d 65 73 |ion of a| log mes|
|00003e60| 73 61 67 65 2c 20 74 68 | 65 6e 20 64 6f 65 73 20 |sage, th|en does |
|00003e70| 61 20 64 65 6c 74 61 20 | 2d 6e 20 6f 6e 20 74 68 |a delta |-n on th|
|00003e80| 65 20 66 69 6c 65 2e 0a | 41 20 72 65 61 64 2d 6f |e file..|A read-o|
|00003e90| 6e 6c 79 20 63 6f 70 79 | 20 6f 66 20 74 68 65 20 |nly copy| of the |
|00003ea0| 63 68 61 6e 67 65 64 20 | 66 69 6c 65 20 69 73 20 |changed |file is |
|00003eb0| 6c 65 66 74 20 69 6e 20 | 70 6c 61 63 65 20 61 66 |left in |place af|
|00003ec0| 74 65 72 77 61 72 64 73 | 2e 0a 20 20 20 49 66 20 |terwards|.. If |
|00003ed0| 74 68 65 20 66 69 6c 65 | 20 69 73 20 72 65 67 69 |the file| is regi|
|00003ee0| 73 74 65 72 65 64 20 61 | 6e 64 20 6c 6f 63 6b 65 |stered a|nd locke|
|00003ef0| 64 20 62 79 20 73 6f 6d | 65 6f 6e 65 20 65 6c 73 |d by som|eone els|
|00003f00| 65 2c 20 61 6e 20 65 72 | 72 6f 72 20 6d 65 73 73 |e, an er|ror mess|
|00003f10| 61 67 65 20 69 73 0a 72 | 65 74 75 72 6e 65 64 20 |age is.r|eturned |
|00003f20| 69 6e 64 69 63 61 74 69 | 6e 67 20 77 68 6f 20 68 |indicati|ng who h|
|00003f30| 61 73 20 6c 6f 63 6b 65 | 64 20 69 74 2e 22 0a 20 |as locke|d it.". |
|00003f40| 20 28 69 6e 74 65 72 61 | 63 74 69 76 65 20 22 50 | (intera|ctive "P|
|00003f50| 22 29 0a 20 20 28 73 63 | 63 73 2d 69 6e 69 74 29 |"). (sc|cs-init)|
|00003f60| 0a 20 20 28 69 66 20 28 | 62 75 66 66 65 72 2d 66 |. (if (|buffer-f|
|00003f70| 69 6c 65 2d 6e 61 6d 65 | 29 0a 20 20 20 20 20 20 |ile-name|). |
|00003f80| 28 6c 65 74 0a 09 20 20 | 28 64 6f 2d 75 70 64 61 |(let.. |(do-upda|
|00003f90| 74 65 20 72 65 76 69 73 | 69 6f 6e 20 6f 77 6e 65 |te revis|ion owne|
|00003fa0| 72 0a 09 09 20 20 20 20 | 20 28 66 69 6c 65 20 28 |r... | (file (|
|00003fb0| 62 75 66 66 65 72 2d 66 | 69 6c 65 2d 6e 61 6d 65 |buffer-f|ile-name|
|00003fc0| 29 29 0a 09 09 20 20 20 | 20 20 28 73 63 63 73 2d |))... | (sccs-|
|00003fd0| 66 69 6c 65 20 28 73 63 | 63 73 2d 6e 61 6d 65 20 |file (sc|cs-name |
|00003fe0| 28 62 75 66 66 65 72 2d | 66 69 6c 65 2d 6e 61 6d |(buffer-|file-nam|
|00003ff0| 65 29 29 29 0a 09 09 20 | 20 20 20 20 28 73 63 63 |e)))... | (scc|
|00004000| 73 2d 6c 6f 67 2d 62 75 | 66 20 28 67 65 74 2d 62 |s-log-bu|f (get-b|
|00004010| 75 66 66 65 72 2d 63 72 | 65 61 74 65 20 22 2a 53 |uffer-cr|eate "*S|
|00004020| 43 43 53 2d 4c 6f 67 2a | 22 29 29 0a 09 09 20 20 |CCS-Log*|"))... |
|00004030| 20 20 20 28 65 72 72 2d | 6d 73 67 20 6e 69 6c 29 | (err-|msg nil)|
|00004040| 29 0a 0a 09 3b 3b 20 69 | 66 20 74 68 65 72 65 20 |)...;; i|f there |
|00004050| 69 73 20 6e 6f 20 53 43 | 43 53 20 66 69 6c 65 20 |is no SC|CS file |
|00004060| 63 6f 72 72 65 73 70 6f | 6e 64 69 6e 67 2c 20 63 |correspo|nding, c|
|00004070| 72 65 61 74 65 20 6f 6e | 65 0a 09 28 69 66 20 28 |reate on|e..(if (|
|00004080| 6e 6f 74 20 28 66 69 6c | 65 2d 65 78 69 73 74 73 |not (fil|e-exists|
|00004090| 2d 70 20 73 63 63 73 2d | 66 69 6c 65 29 29 0a 09 |-p sccs-|file))..|
|000040a0| 20 20 20 20 20 20 28 73 | 63 63 73 2d 61 64 6d 69 | (s|ccs-admi|
|000040b0| 6e 20 66 69 6c 65 20 73 | 63 63 73 2d 63 75 72 72 |n file s|ccs-curr|
|000040c0| 65 6e 74 2d 6d 61 6a 6f | 72 2d 76 65 72 73 69 6f |ent-majo|r-versio|
|000040d0| 6e 29 29 0a 0a 09 28 63 | 6f 6e 64 0a 0a 09 20 3b |n))...(c|ond... ;|
|000040e0| 3b 20 69 66 20 74 68 65 | 72 65 20 69 73 20 6e 6f |; if the|re is no|
|000040f0| 20 6c 6f 63 6b 20 6f 6e | 20 74 68 65 20 66 69 6c | lock on| the fil|
|00004100| 65 2c 20 61 73 73 65 72 | 74 20 6f 6e 65 20 61 6e |e, asser|t one an|
|00004110| 64 20 67 65 74 20 69 74 | 0a 09 20 28 28 6e 6f 74 |d get it|.. ((not|
|00004120| 20 28 66 69 6c 65 2d 65 | 78 69 73 74 73 2d 70 20 | (file-e|xists-p |
|00004130| 28 73 63 63 73 2d 6e 61 | 6d 65 20 66 69 6c 65 20 |(sccs-na|me file |
|00004140| 22 70 22 29 29 29 0a 09 | 20 20 28 70 72 6f 67 6e |"p")))..| (progn|
|00004150| 0a 09 20 20 20 20 28 73 | 63 63 73 2d 67 65 74 20 |.. (s|ccs-get |
|00004160| 66 69 6c 65 20 74 29 0a | 09 20 20 20 20 28 72 65 |file t).|. (re|
|00004170| 76 65 72 74 2d 62 75 66 | 66 65 72 20 6e 69 6c 20 |vert-buf|fer nil |
|00004180| 74 29 0a 09 20 20 20 20 | 28 73 63 63 73 2d 6d 6f |t).. |(sccs-mo|
|00004190| 64 65 2d 6c 69 6e 65 20 | 66 69 6c 65 29 0a 09 20 |de-line |file).. |
|000041a0| 20 20 20 29 29 0a 0a 09 | 20 3b 3b 20 61 20 63 68 | ))...| ;; a ch|
|000041b0| 65 63 6b 65 64 2d 6f 75 | 74 20 76 65 72 73 69 6f |ecked-ou|t versio|
|000041c0| 6e 20 65 78 69 73 74 73 | 2c 20 62 75 74 20 74 68 |n exists|, but th|
|000041d0| 65 20 75 73 65 72 20 6d | 61 79 20 6e 6f 74 20 6f |e user m|ay not o|
|000041e0| 77 6e 20 74 68 65 20 6c | 6f 63 6b 0a 09 20 28 28 |wn the l|ock.. ((|
|000041f0| 6e 6f 74 20 28 73 74 72 | 69 6e 67 2d 65 71 75 61 |not (str|ing-equa|
|00004200| 6c 0a 09 09 28 73 65 74 | 71 20 6f 77 6e 65 72 20 |l...(set|q owner |
|00004210| 28 73 63 63 73 2d 6c 6f | 63 6b 69 6e 67 2d 75 73 |(sccs-lo|cking-us|
|00004220| 65 72 20 66 69 6c 65 29 | 29 20 28 75 73 65 72 2d |er file)|) (user-|
|00004230| 6c 6f 67 69 6e 2d 6e 61 | 6d 65 29 29 29 0a 09 20 |login-na|me))).. |
|00004240| 20 28 65 72 72 6f 72 20 | 22 53 6f 72 72 79 2c 20 | (error |"Sorry, |
|00004250| 25 73 20 68 61 73 20 74 | 68 61 74 20 66 69 6c 65 |%s has t|hat file|
|00004260| 20 63 68 65 63 6b 65 64 | 20 6f 75 74 22 2c 20 6f | checked| out", o|
|00004270| 77 6e 65 72 29 29 0a 0a | 09 20 3b 3b 20 4f 4b 2c |wner))..|. ;; OK,|
|00004280| 20 75 73 65 72 20 6f 77 | 6e 73 20 74 68 65 20 6c | user ow|ns the l|
|00004290| 6f 63 6b 20 6f 6e 20 74 | 68 65 20 66 69 6c 65 20 |ock on t|he file |
|000042a0| 0a 09 20 28 74 20 28 70 | 72 6f 67 6e 0a 0a 09 20 |.. (t (p|rogn... |
|000042b0| 20 20 20 20 20 3b 3b 20 | 69 66 20 73 6f 2c 20 67 | ;; |if so, g|
|000042c0| 69 76 65 20 6c 75 73 65 | 72 20 61 20 63 68 61 6e |ive luse|r a chan|
|000042d0| 63 65 20 74 6f 20 73 61 | 76 65 20 62 65 66 6f 72 |ce to sa|ve befor|
|000042e0| 65 20 64 65 6c 74 61 2d | 69 6e 67 2e 0a 09 20 20 |e delta-|ing... |
|000042f0| 20 20 20 20 28 69 66 20 | 28 61 6e 64 20 28 62 75 | (if |(and (bu|
|00004300| 66 66 65 72 2d 6d 6f 64 | 69 66 69 65 64 2d 70 29 |ffer-mod|ified-p)|
|00004310| 0a 09 09 20 20 20 20 20 | 20 20 28 79 2d 6f 72 2d |... | (y-or-|
|00004320| 6e 2d 70 20 28 66 6f 72 | 6d 61 74 20 22 25 73 20 |n-p (for|mat "%s |
|00004330| 68 61 73 20 62 65 65 6e | 20 6d 6f 64 69 66 69 65 |has been| modifie|
|00004340| 64 2e 20 57 72 69 74 65 | 20 69 74 20 6f 75 74 3f |d. Write| it out?|
|00004350| 20 22 0a 09 09 09 09 09 | 20 28 62 75 66 66 65 72 | "......| (buffer|
|00004360| 2d 6e 61 6d 65 29 29 29 | 29 0a 09 09 20 20 28 73 |-name)))|)... (s|
|00004370| 61 76 65 2d 62 75 66 66 | 65 72 29 29 0a 0a 09 20 |ave-buff|er))... |
|00004380| 20 20 20 20 20 28 73 65 | 74 71 20 72 65 76 69 73 | (se|tq revis|
|00004390| 69 6f 6e 20 28 73 63 63 | 73 2d 6c 6f 63 6b 65 64 |ion (scc|s-locked|
|000043a0| 2d 72 65 76 69 73 69 6f | 6e 20 66 69 6c 65 29 29 |-revisio|n file))|
|000043b0| 0a 0a 09 20 20 20 20 20 | 20 3b 3b 20 75 73 65 72 |... | ;; user|
|000043c0| 20 6d 61 79 20 77 61 6e | 74 20 74 6f 20 73 65 74 | may wan|t to set|
|000043d0| 20 6e 6f 6e 73 74 61 6e | 64 61 72 64 20 70 61 72 | nonstan|dard par|
|000043e0| 61 6d 65 74 65 72 73 0a | 09 20 20 20 20 20 20 28 |ameters.|. (|
|000043f0| 69 66 20 76 65 72 62 6f | 73 65 0a 09 09 20 20 28 |if verbo|se... (|
|00004400| 69 66 20 28 79 2d 6f 72 | 2d 6e 2d 70 20 0a 09 09 |if (y-or|-n-p ...|
|00004410| 20 20 20 20 20 20 20 28 | 66 6f 72 6d 61 74 20 22 | (|format "|
|00004420| 52 65 76 3a 20 25 73 20 | 20 43 68 61 6e 67 65 20 |Rev: %s | Change |
|00004430| 72 65 76 69 73 69 6f 6e | 20 6c 65 76 65 6c 3f 20 |revision| level? |
|00004440| 22 20 72 65 76 69 73 69 | 6f 6e 29 29 0a 09 09 20 |" revisi|on))... |
|00004450| 20 20 20 20 20 28 73 65 | 74 71 20 72 65 76 69 73 | (se|tq revis|
|00004460| 69 6f 6e 20 28 72 65 61 | 64 2d 73 74 72 69 6e 67 |ion (rea|d-string|
|00004470| 20 22 4e 65 77 20 72 65 | 76 69 73 69 6f 6e 20 6c | "New re|vision l|
|00004480| 65 76 65 6c 3a 20 22 29 | 29 29 29 0a 0a 09 20 20 |evel: ")|)))... |
|00004490| 20 20 20 20 3b 3b 20 4f | 4b 2c 20 6c 65 74 27 73 | ;; O|K, let's|
|000044a0| 20 64 6f 20 74 68 65 20 | 64 65 6c 74 61 0a 09 20 | do the |delta.. |
|000044b0| 20 20 20 20 20 28 69 66 | 0a 09 09 20 20 3b 3b 20 | (if|... ;; |
|000044c0| 74 68 69 73 20 65 78 63 | 75 72 73 69 6f 6e 20 72 |this exc|ursion r|
|000044d0| 65 74 75 72 6e 73 20 74 | 20 69 66 20 74 68 65 20 |eturns t| if the |
|000044e0| 6e 65 77 20 76 65 72 73 | 69 6f 6e 20 77 61 73 20 |new vers|ion was |
|000044f0| 73 61 76 65 64 20 4f 4b | 0a 09 09 20 20 28 73 61 |saved OK|... (sa|
|00004500| 76 65 2d 77 69 6e 64 6f | 77 2d 65 78 63 75 72 73 |ve-windo|w-excurs|
|00004510| 69 6f 6e 0a 09 09 20 20 | 20 20 28 70 6f 70 2d 74 |ion... | (pop-t|
|00004520| 6f 2d 62 75 66 66 65 72 | 20 28 67 65 74 2d 62 75 |o-buffer| (get-bu|
|00004530| 66 66 65 72 2d 63 72 65 | 61 74 65 20 22 2a 53 43 |ffer-cre|ate "*SC|
|00004540| 43 53 2a 22 29 29 0a 09 | 09 20 20 20 20 28 65 72 |CS*"))..|. (er|
|00004550| 61 73 65 2d 62 75 66 66 | 65 72 29 0a 09 09 20 20 |ase-buff|er)... |
|00004560| 20 20 28 73 65 74 2d 62 | 75 66 66 65 72 2d 6d 6f | (set-b|uffer-mo|
|00004570| 64 69 66 69 65 64 2d 70 | 20 6e 69 6c 29 0a 09 09 |dified-p| nil)...|
|00004580| 20 20 20 20 28 73 63 63 | 73 2d 6d 6f 64 65 29 0a | (scc|s-mode).|
|00004590| 09 09 20 20 20 20 28 6d | 65 73 73 61 67 65 20 0a |.. (m|essage .|
|000045a0| 09 09 20 20 20 20 20 22 | 45 6e 74 65 72 20 6c 6f |.. "|Enter lo|
|000045b0| 67 20 6d 65 73 73 61 67 | 65 2e 20 54 79 70 65 20 |g messag|e. Type |
|000045c0| 43 2d 63 20 43 2d 63 20 | 77 68 65 6e 20 64 6f 6e |C-c C-c |when don|
|000045d0| 65 2c 20 43 2d 63 20 3f | 20 66 6f 72 20 68 65 6c |e, C-c ?| for hel|
|000045e0| 70 2e 22 29 0a 09 09 20 | 20 20 20 28 70 72 6f 67 |p.")... | (prog|
|000045f0| 31 0a 09 09 09 28 61 6e | 64 20 28 6e 6f 74 20 28 |1....(an|d (not (|
|00004600| 65 72 72 6f 72 2d 6f 63 | 63 75 72 72 65 64 20 28 |error-oc|curred (|
|00004610| 72 65 63 75 72 73 69 76 | 65 2d 65 64 69 74 29 29 |recursiv|e-edit))|
|00004620| 29 0a 09 09 09 20 20 20 | 20 20 28 6e 6f 74 20 28 |).... | (not (|
|00004630| 65 72 72 6f 72 2d 6f 63 | 63 75 72 72 65 64 20 28 |error-oc|curred (|
|00004640| 73 63 63 73 2d 64 65 6c | 74 61 20 66 69 6c 65 20 |sccs-del|ta file |
|00004650| 72 65 76 69 73 69 6f 6e | 29 29 29 29 0a 09 09 20 |revision|))))... |
|00004660| 20 20 20 20 20 28 73 65 | 74 71 20 62 75 66 66 65 | (se|tq buffe|
|00004670| 72 2d 66 69 6c 65 2d 6e | 61 6d 65 20 6e 69 6c 29 |r-file-n|ame nil)|
|00004680| 0a 09 09 20 20 20 20 20 | 20 28 62 75 72 79 2d 62 |... | (bury-b|
|00004690| 75 66 66 65 72 20 22 2a | 53 43 43 53 2a 22 29 29 |uffer "*|SCCS*"))|
|000046a0| 29 0a 0a 09 09 20 20 3b | 3b 20 69 66 20 74 68 65 |).... ;|; if the|
|000046b0| 20 73 61 76 65 20 77 65 | 6e 74 20 4f 4b 20 64 6f | save we|nt OK do|
|000046c0| 20 73 6f 6d 65 20 70 6f | 73 74 2d 63 68 65 63 6b | some po|st-check|
|000046d0| 69 6e 67 0a 09 09 20 20 | 28 69 66 20 28 62 75 66 |ing... |(if (buf|
|000046e0| 66 65 72 2d 6d 6f 64 69 | 66 69 65 64 2d 70 29 0a |fer-modi|fied-p).|
|000046f0| 09 09 20 20 20 20 20 20 | 28 65 72 72 6f 72 0a 09 |.. |(error..|
|00004700| 09 20 20 20 20 20 20 20 | 22 44 65 6c 74 61 2d 65 |. |"Delta-e|
|00004710| 64 20 76 65 72 73 69 6f | 6e 20 6f 66 20 66 69 6c |d versio|n of fil|
|00004720| 65 20 64 6f 65 73 20 6e | 6f 74 20 6d 61 74 63 68 |e does n|ot match|
|00004730| 20 62 75 66 66 65 72 21 | 22 29 0a 09 09 20 20 20 | buffer!|")... |
|00004740| 20 28 70 72 6f 67 6e 0a | 09 09 20 20 20 20 20 20 | (progn.|.. |
|00004750| 3b 3b 20 73 63 63 73 2d | 64 65 6c 74 61 20 61 6c |;; sccs-|delta al|
|00004760| 72 65 61 64 79 20 74 75 | 72 6e 65 64 20 6f 66 66 |ready tu|rned off|
|00004770| 20 77 72 69 74 65 2d 70 | 72 69 76 69 6c 65 67 65 | write-p|rivilege|
|00004780| 73 20 6f 6e 20 74 68 65 | 0a 09 09 20 20 20 20 20 |s on the|... |
|00004790| 20 3b 3b 20 66 69 6c 65 | 2c 20 6c 65 74 27 73 20 | ;; file|, let's |
|000047a0| 6e 6f 74 20 72 65 2d 66 | 65 74 63 68 20 69 74 20 |not re-f|etch it |
|000047b0| 75 6e 6c 65 73 73 20 74 | 68 65 72 65 27 73 20 73 |unless t|here's s|
|000047c0| 6f 6d 65 74 68 69 6e 67 | 0a 09 09 20 20 20 20 20 |omething|... |
|000047d0| 20 3b 3b 20 69 6e 20 69 | 74 20 74 68 61 74 20 67 | ;; in i|t that g|
|000047e0| 65 74 20 77 6f 75 6c 64 | 20 65 78 70 61 6e 64 0a |et would| expand.|
|000047f0| 09 09 20 20 20 20 20 20 | 28 69 66 20 28 73 63 63 |.. |(if (scc|
|00004800| 73 2d 63 68 65 63 6b 2d | 68 65 61 64 65 72 73 29 |s-check-|headers)|
|00004810| 0a 09 09 09 20 20 28 73 | 63 63 73 2d 67 65 74 20 |.... (s|ccs-get |
|00004820| 66 69 6c 65 20 6e 69 6c | 29 29 0a 09 09 20 20 20 |file nil|))... |
|00004830| 20 20 20 28 72 65 76 65 | 72 74 2d 62 75 66 66 65 | (reve|rt-buffe|
|00004840| 72 20 6e 69 6c 20 74 29 | 0a 09 09 20 20 20 20 20 |r nil t)|... |
|00004850| 20 28 73 63 63 73 2d 6d | 6f 64 65 2d 6c 69 6e 65 | (sccs-m|ode-line|
|00004860| 20 66 69 6c 65 29 0a 09 | 09 20 20 20 20 20 20 29 | file)..|. )|
|00004870| 0a 09 09 20 20 20 20 29 | 29 29 29 29 29 0a 20 20 |... )|))))). |
|00004880| 20 20 28 65 72 72 6f 72 | 20 22 54 68 65 72 65 20 | (error| "There |
|00004890| 69 73 20 6e 6f 20 66 69 | 6c 65 20 61 73 73 6f 63 |is no fi|le assoc|
|000048a0| 69 61 74 65 64 20 77 69 | 74 68 20 62 75 66 66 65 |iated wi|th buffe|
|000048b0| 72 20 25 73 22 20 28 62 | 75 66 66 65 72 2d 6e 61 |r %s" (b|uffer-na|
|000048c0| 6d 65 29 29 29 29 0a 0a | 28 64 65 66 75 6e 20 73 |me))))..|(defun s|
|000048d0| 63 63 73 2d 69 6e 73 65 | 72 74 2d 6c 61 73 74 2d |ccs-inse|rt-last-|
|000048e0| 6c 6f 67 20 28 29 0a 20 | 20 22 2a 49 6e 73 65 72 |log (). | "*Inser|
|000048f0| 74 20 74 68 65 20 6c 6f | 67 20 6d 65 73 73 61 67 |t the lo|g messag|
|00004900| 65 20 6f 66 20 74 68 65 | 20 6c 61 73 74 20 73 63 |e of the| last sc|
|00004910| 63 73 20 63 68 65 63 6b | 20 69 6e 20 61 74 20 70 |cs check| in at p|
|00004920| 6f 69 6e 74 2e 22 0a 20 | 20 28 69 6e 74 65 72 61 |oint.". | (intera|
|00004930| 63 74 69 76 65 29 0a 20 | 20 28 69 6e 73 65 72 74 |ctive). | (insert|
|00004940| 2d 62 75 66 66 65 72 20 | 73 63 63 73 2d 6c 6f 67 |-buffer |sccs-log|
|00004950| 2d 62 75 66 29 29 0a 0a | 3b 3b 3b 20 54 68 65 73 |-buf))..|;;; Thes|
|00004960| 65 20 66 75 6e 63 74 69 | 6f 6e 73 20 68 65 6c 70 |e functi|ons help|
|00004970| 20 74 68 65 20 73 63 63 | 73 20 65 6e 74 72 79 20 | the scc|s entry |
|00004980| 70 6f 69 6e 74 0a 0a 28 | 64 65 66 75 6e 20 73 63 |point..(|defun sc|
|00004990| 63 73 2d 61 64 6d 69 6e | 20 28 66 69 6c 65 20 73 |cs-admin| (file s|
|000049a0| 69 64 29 0a 20 20 22 43 | 68 65 63 6b 73 20 61 20 |id). "C|hecks a |
|000049b0| 66 69 6c 65 20 69 6e 74 | 6f 20 73 63 63 73 2e 20 |file int|o sccs. |
|000049c0| 46 49 4c 45 20 69 73 20 | 74 68 65 20 75 6e 6d 6f |FILE is |the unmo|
|000049d0| 64 69 66 69 65 64 20 6e | 61 6d 65 20 6f 66 20 74 |dified n|ame of t|
|000049e0| 68 65 20 66 69 6c 65 2e | 20 53 49 44 0a 73 68 6f |he file.| SID.sho|
|000049f0| 75 6c 64 20 62 65 20 74 | 68 65 20 62 61 73 65 2d |uld be t|he base-|
|00004a00| 6c 65 76 65 6c 20 73 69 | 64 20 74 6f 20 63 68 65 |level si|d to che|
|00004a10| 63 6b 20 69 74 20 69 6e | 20 75 6e 64 65 72 2e 22 |ck it in| under."|
|00004a20| 0a 20 20 28 73 63 63 73 | 2d 64 6f 2d 63 6f 6d 6d |. (sccs|-do-comm|
|00004a30| 61 6e 64 20 22 2a 53 43 | 43 53 2a 22 20 22 61 64 |and "*SC|CS*" "ad|
|00004a40| 6d 69 6e 22 20 66 69 6c | 65 0a 09 09 20 20 20 28 |min" fil|e... (|
|00004a50| 63 6f 6e 63 61 74 20 22 | 2d 69 22 20 66 69 6c 65 |concat "|-i" file|
|00004a60| 29 20 28 63 6f 6e 63 61 | 74 20 22 2d 72 22 20 73 |) (conca|t "-r" s|
|00004a70| 69 64 29 29 0a 20 20 28 | 63 68 6d 6f 64 20 22 2d |id)). (|chmod "-|
|00004a80| 77 22 20 66 69 6c 65 29 | 0a 29 0a 0a 28 64 65 66 |w" file)|.)..(def|
|00004a90| 75 6e 20 73 63 63 73 2d | 67 65 74 20 28 66 69 6c |un sccs-|get (fil|
|00004aa0| 65 20 77 72 69 74 65 61 | 62 6c 65 29 0a 20 20 22 |e writea|ble). "|
|00004ab0| 52 65 74 72 69 65 76 65 | 20 61 20 6c 6f 63 6b 65 |Retrieve| a locke|
|00004ac0| 64 20 63 6f 70 79 20 6f | 66 20 74 68 65 20 6c 61 |d copy o|f the la|
|00004ad0| 74 65 73 74 20 64 65 6c | 74 61 20 6f 66 20 74 68 |test del|ta of th|
|00004ae0| 65 20 67 69 76 65 6e 20 | 66 69 6c 65 2e 22 0a 20 |e given |file.". |
|00004af0| 20 20 20 28 73 63 63 73 | 2d 64 6f 2d 63 6f 6d 6d | (sccs|-do-comm|
|00004b00| 61 6e 64 20 22 2a 53 43 | 43 53 2a 22 20 22 67 65 |and "*SC|CS*" "ge|
|00004b10| 74 22 20 66 69 6c 65 20 | 28 69 66 20 77 72 69 74 |t" file |(if writ|
|00004b20| 65 61 62 6c 65 20 22 2d | 65 22 29 29 29 0a 0a 28 |eable "-|e")))..(|
|00004b30| 64 65 66 75 6e 20 73 63 | 63 73 2d 64 65 6c 74 61 |defun sc|cs-delta|
|00004b40| 20 28 66 69 6c 65 20 26 | 6f 70 74 69 6f 6e 61 6c | (file &|optional|
|00004b50| 20 72 65 76 20 63 6f 6d | 6d 65 6e 74 29 0a 20 20 | rev com|ment). |
|00004b60| 20 22 44 65 6c 74 61 20 | 74 68 65 20 66 69 6c 65 | "Delta |the file|
|00004b70| 20 73 70 65 63 69 66 69 | 65 64 20 62 79 20 46 49 | specifi|ed by FI|
|00004b80| 4c 45 2e 20 20 52 45 56 | 20 69 73 20 61 20 73 74 |LE. REV| is a st|
|00004b90| 72 69 6e 67 20 73 70 65 | 63 69 66 79 69 6e 67 20 |ring spe|cifying |
|00004ba0| 74 68 65 0a 6e 65 77 20 | 72 65 76 69 73 69 6f 6e |the.new |revision|
|00004bb0| 20 6c 65 76 65 6c 20 28 | 69 66 20 6e 69 6c 20 69 | level (|if nil i|
|00004bc0| 6e 63 72 65 6d 65 6e 74 | 20 74 68 65 20 63 75 72 |ncrement| the cur|
|00004bd0| 72 65 6e 74 20 6c 65 76 | 65 6c 29 2e 20 54 68 65 |rent lev|el). The|
|00004be0| 20 66 69 6c 65 20 69 73 | 20 72 65 74 61 69 6e 65 | file is| retaine|
|00004bf0| 64 0a 77 69 74 68 20 77 | 72 69 74 65 20 70 65 72 |d.with w|rite per|
|00004c00| 6d 69 73 73 69 6f 6e 73 | 20 7a 65 72 6f 65 64 2e |missions| zeroed.|
|00004c10| 20 43 4f 4d 4d 45 4e 54 | 20 69 73 20 61 20 63 6f | COMMENT| is a co|
|00004c20| 6d 6d 65 6e 74 20 73 74 | 72 69 6e 67 3b 20 69 66 |mment st|ring; if|
|00004c30| 20 6f 6d 69 74 74 65 64 | 2c 20 74 68 65 0a 63 6f | omitted|, the.co|
|00004c40| 6e 74 65 6e 74 73 20 6f | 66 20 74 68 65 20 63 75 |ntents o|f the cu|
|00004c50| 72 72 65 6e 74 20 62 75 | 66 66 65 72 20 75 70 20 |rrent bu|ffer up |
|00004c60| 74 6f 20 70 6f 69 6e 74 | 20 62 65 63 6f 6d 65 73 |to point| becomes|
|00004c70| 20 74 68 65 20 63 6f 6d | 6d 65 6e 74 20 66 6f 72 | the com|ment for|
|00004c80| 20 74 68 69 73 20 64 65 | 6c 74 61 2e 22 0a 20 20 | this de|lta.". |
|00004c90| 28 69 66 20 28 6e 6f 74 | 20 63 6f 6d 6d 65 6e 74 |(if (not| comment|
|00004ca0| 29 0a 20 20 20 20 20 20 | 28 70 72 6f 67 6e 0a 09 |). |(progn..|
|00004cb0| 28 67 6f 74 6f 2d 63 68 | 61 72 20 28 70 6f 69 6e |(goto-ch|ar (poin|
|00004cc0| 74 2d 6d 61 78 29 29 0a | 09 28 69 66 20 28 6e 6f |t-max)).|.(if (no|
|00004cd0| 74 20 28 62 6f 6c 70 29 | 29 20 28 6e 65 77 6c 69 |t (bolp)|) (newli|
|00004ce0| 6e 65 29 29 0a 09 28 6e | 65 77 6c 69 6e 65 29 0a |ne))..(n|ewline).|
|00004cf0| 09 28 73 65 74 71 20 63 | 6f 6d 6d 65 6e 74 20 28 |.(setq c|omment (|
|00004d00| 62 75 66 66 65 72 2d 73 | 75 62 73 74 72 69 6e 67 |buffer-s|ubstring|
|00004d10| 20 28 70 6f 69 6e 74 2d | 6d 69 6e 29 20 28 31 2d | (point-|min) (1-|
|00004d20| 20 28 70 6f 69 6e 74 29 | 29 29 29 29 0a 20 20 20 | (point)|)))). |
|00004d30| 20 29 0a 20 20 28 73 63 | 63 73 2d 64 6f 2d 63 6f | ). (sc|cs-do-co|
|00004d40| 6d 6d 61 6e 64 20 22 2a | 53 43 43 53 2a 22 20 22 |mmand "*|SCCS*" "|
|00004d50| 64 65 6c 74 61 22 20 66 | 69 6c 65 20 22 2d 6e 22 |delta" f|ile "-n"|
|00004d60| 0a 09 20 20 20 28 69 66 | 20 72 65 76 20 28 66 6f |.. (if| rev (fo|
|00004d70| 72 6d 61 74 20 22 2d 72 | 25 73 22 20 72 65 76 29 |rmat "-r|%s" rev)|
|00004d80| 29 0a 09 20 20 20 28 66 | 6f 72 6d 61 74 20 22 2d |).. (f|ormat "-|
|00004d90| 79 25 73 22 20 63 6f 6d | 6d 65 6e 74 29 29 0a 20 |y%s" com|ment)). |
|00004da0| 20 28 63 68 6d 6f 64 20 | 22 2d 77 22 20 66 69 6c | (chmod |"-w" fil|
|00004db0| 65 29 0a 29 0a 0a 28 64 | 65 66 75 6e 20 73 63 63 |e).)..(d|efun scc|
|00004dc0| 73 2d 61 62 6f 72 74 20 | 28 29 0a 20 20 22 41 62 |s-abort |(). "Ab|
|00004dd0| 6f 72 74 20 61 6e 20 73 | 63 63 73 20 63 6f 6d 6d |ort an s|ccs comm|
|00004de0| 61 6e 64 2e 22 0a 20 20 | 28 69 6e 74 65 72 61 63 |and.". |(interac|
|00004df0| 74 69 76 65 29 0a 20 20 | 28 69 66 20 28 79 2d 6f |tive). |(if (y-o|
|00004e00| 72 2d 6e 2d 70 20 22 41 | 62 6f 72 74 20 74 68 65 |r-n-p "A|bort the|
|00004e10| 20 64 65 6c 74 61 3f 20 | 22 29 20 28 65 72 72 6f | delta? |") (erro|
|00004e20| 72 20 22 44 65 6c 74 61 | 20 61 62 6f 72 74 65 64 |r "Delta| aborted|
|00004e30| 22 29 29 29 0a 0a 28 64 | 65 66 75 6e 20 73 63 63 |")))..(d|efun scc|
|00004e40| 73 2d 65 78 69 74 20 28 | 29 0a 20 20 22 4c 65 61 |s-exit (|). "Lea|
|00004e50| 76 65 20 74 68 65 20 72 | 65 63 75 72 73 69 76 65 |ve the r|ecursive|
|00004e60| 20 65 64 69 74 20 6f 66 | 20 61 6e 20 73 63 63 73 | edit of| an sccs|
|00004e70| 20 6c 6f 67 20 6d 65 73 | 73 61 67 65 2e 22 0a 20 | log mes|sage.". |
|00004e80| 20 28 69 6e 74 65 72 61 | 63 74 69 76 65 29 0a 20 | (intera|ctive). |
|00004e90| 20 28 69 66 20 28 3c 20 | 28 62 75 66 66 65 72 2d | (if (< |(buffer-|
|00004ea0| 73 69 7a 65 29 20 73 63 | 63 73 2d 6d 61 78 2d 6c |size) sc|cs-max-l|
|00004eb0| 6f 67 2d 73 69 7a 65 29 | 0a 09 20 28 70 72 6f 67 |og-size)|.. (prog|
|00004ec0| 6e 0a 09 20 20 20 28 63 | 6f 70 79 2d 74 6f 2d 62 |n.. (c|opy-to-b|
|00004ed0| 75 66 66 65 72 20 73 63 | 63 73 2d 6c 6f 67 2d 62 |uffer sc|cs-log-b|
|00004ee0| 75 66 20 28 70 6f 69 6e | 74 2d 6d 69 6e 29 20 28 |uf (poin|t-min) (|
|00004ef0| 70 6f 69 6e 74 2d 6d 61 | 78 29 29 0a 09 20 20 20 |point-ma|x)).. |
|00004f00| 28 65 78 69 74 2d 72 65 | 63 75 72 73 69 76 65 2d |(exit-re|cursive-|
|00004f10| 65 64 69 74 29 29 0a 09 | 20 28 70 72 6f 67 6e 0a |edit))..| (progn.|
|00004f20| 09 20 20 20 28 67 6f 74 | 6f 2d 63 68 61 72 20 73 |. (got|o-char s|
|00004f30| 63 63 73 2d 6d 61 78 2d | 6c 6f 67 2d 73 69 7a 65 |ccs-max-|log-size|
|00004f40| 29 0a 09 20 20 20 28 65 | 72 72 6f 72 0a 09 20 20 |).. (e|rror.. |
|00004f50| 20 20 22 4c 6f 67 20 6d | 75 73 74 20 62 65 20 6c | "Log m|ust be l|
|00004f60| 65 73 73 20 74 68 61 6e | 20 25 64 20 63 68 61 72 |ess than| %d char|
|00004f70| 61 63 74 65 72 73 2e 20 | 50 6f 69 6e 74 20 69 73 |acters. |Point is|
|00004f80| 20 6e 6f 77 20 61 74 20 | 63 68 61 72 20 25 64 2e | now at |char %d.|
|00004f90| 22 0a 09 20 20 20 20 73 | 63 63 73 2d 6d 61 78 2d |".. s|ccs-max-|
|00004fa0| 6c 6f 67 2d 73 69 7a 65 | 20 73 63 63 73 2d 6d 61 |log-size| sccs-ma|
|00004fb0| 78 2d 6c 6f 67 2d 73 69 | 7a 65 29 29 29 0a 29 0a |x-log-si|ze))).).|
|00004fc0| 0a 3b 3b 20 41 64 64 69 | 74 69 6f 6e 61 6c 20 65 |.;; Addi|tional e|
|00004fd0| 6e 74 72 79 20 70 6f 69 | 6e 74 73 20 66 6f 72 20 |ntry poi|nts for |
|00004fe0| 65 78 61 6d 69 6e 69 6e | 67 20 76 65 72 73 69 6f |examinin|g versio|
|00004ff0| 6e 20 68 69 73 74 6f 72 | 69 65 73 0a 0a 28 64 65 |n histor|ies..(de|
|00005000| 66 75 6e 20 73 63 63 73 | 2d 64 69 66 66 20 28 26 |fun sccs|-diff (&|
|00005010| 6f 70 74 69 6f 6e 61 6c | 20 72 65 76 6e 6f 20 26 |optional| revno &|
|00005020| 72 65 73 74 20 66 6c 61 | 67 73 29 0a 20 20 22 2a |rest fla|gs). "*|
|00005030| 43 6f 6d 70 61 72 65 20 | 74 68 65 20 63 75 72 72 |Compare |the curr|
|00005040| 65 6e 74 20 76 65 72 73 | 69 6f 6e 20 6f 66 20 74 |ent vers|ion of t|
|00005050| 68 65 20 62 75 66 66 65 | 72 20 77 69 74 68 20 74 |he buffe|r with t|
|00005060| 68 65 20 6c 61 73 74 20 | 63 68 65 63 6b 65 64 20 |he last |checked |
|00005070| 69 6e 0a 72 65 76 69 73 | 69 6f 6e 20 6f 66 20 74 |in.revis|ion of t|
|00005080| 68 65 20 66 69 6c 65 2c | 20 6f 72 2c 20 69 66 20 |he file,| or, if |
|00005090| 67 69 76 65 6e 20 61 20 | 70 72 65 66 69 78 20 61 |given a |prefix a|
|000050a0| 72 67 75 6d 65 6e 74 2c | 20 77 69 74 68 20 61 6e |rgument,| with an|
|000050b0| 6f 74 68 65 72 20 72 65 | 76 69 73 69 6f 6e 2e 22 |other re|vision."|
|000050c0| 0a 20 20 28 69 6e 74 65 | 72 61 63 74 69 76 65 20 |. (inte|ractive |
|000050d0| 28 69 66 20 63 75 72 72 | 65 6e 74 2d 70 72 65 66 |(if curr|ent-pref|
|000050e0| 69 78 2d 61 72 67 20 0a | 09 09 20 20 20 28 6c 69 |ix-arg .|.. (li|
|000050f0| 73 74 20 63 75 72 72 65 | 6e 74 2d 70 72 65 66 69 |st curre|nt-prefi|
|00005100| 78 2d 61 72 67 0a 09 09 | 09 20 28 72 65 61 64 2d |x-arg...|. (read-|
|00005110| 73 74 72 69 6e 67 20 22 | 52 65 76 69 73 69 6f 6e |string "|Revision|
|00005120| 20 74 6f 20 63 6f 6d 70 | 61 72 65 20 61 67 61 69 | to comp|are agai|
|00005130| 6e 73 74 3a 20 22 29 29 | 29 29 0a 28 6c 65 74 20 |nst: "))|)).(let |
|00005140| 28 6f 6c 64 20 66 69 6c | 65 29 0a 20 20 28 69 66 |(old fil|e). (if|
|00005150| 0a 20 20 20 20 20 20 28 | 73 65 74 71 20 6f 6c 64 |. (|setq old|
|00005160| 20 28 73 63 63 73 2d 67 | 65 74 2d 76 65 72 73 69 | (sccs-g|et-versi|
|00005170| 6f 6e 20 28 62 75 66 66 | 65 72 2d 66 69 6c 65 2d |on (buff|er-file-|
|00005180| 6e 61 6d 65 29 20 72 65 | 76 6e 6f 29 29 0a 20 20 |name) re|vno)). |
|00005190| 20 20 20 20 28 70 72 6f | 67 6e 0a 09 28 69 66 20 | (pro|gn..(if |
|000051a0| 28 61 6e 64 20 28 62 75 | 66 66 65 72 2d 6d 6f 64 |(and (bu|ffer-mod|
|000051b0| 69 66 69 65 64 2d 70 29 | 0a 09 09 20 28 79 2d 6f |ified-p)|... (y-o|
|000051c0| 72 2d 6e 2d 70 20 28 66 | 6f 72 6d 61 74 20 22 25 |r-n-p (f|ormat "%|
|000051d0| 73 20 68 61 73 20 62 65 | 65 6e 20 6d 6f 64 69 66 |s has be|en modif|
|000051e0| 69 65 64 2e 20 57 72 69 | 74 65 20 69 74 20 6f 75 |ied. Wri|te it ou|
|000051f0| 74 3f 20 22 0a 09 09 09 | 09 20 20 20 28 62 75 66 |t? "....|. (buf|
|00005200| 66 65 72 2d 6e 61 6d 65 | 29 29 29 29 0a 09 20 20 |fer-name|)))).. |
|00005210| 20 20 28 73 61 76 65 2d | 62 75 66 66 65 72 29 29 | (save-|buffer))|
|00005220| 0a 0a 09 28 73 65 74 71 | 20 66 69 6c 65 20 28 62 |...(setq| file (b|
|00005230| 75 66 66 65 72 2d 66 69 | 6c 65 2d 6e 61 6d 65 29 |uffer-fi|le-name)|
|00005240| 29 0a 09 28 70 6f 70 2d | 74 6f 2d 62 75 66 66 65 |)..(pop-|to-buffe|
|00005250| 72 20 28 67 65 74 2d 62 | 75 66 66 65 72 2d 63 72 |r (get-b|uffer-cr|
|00005260| 65 61 74 65 20 22 2a 53 | 43 43 53 2a 22 29 29 0a |eate "*S|CCS*")).|
|00005270| 09 28 65 72 61 73 65 2d | 62 75 66 66 65 72 29 0a |.(erase-|buffer).|
|00005280| 09 28 61 70 70 6c 79 20 | 27 63 61 6c 6c 2d 70 72 |.(apply |'call-pr|
|00005290| 6f 63 65 73 73 20 22 64 | 69 66 66 22 20 6e 69 6c |ocess "d|iff" nil|
|000052a0| 20 74 20 6e 69 6c 0a 09 | 20 20 20 20 20 20 20 28 | t nil..| (|
|000052b0| 61 70 70 65 6e 64 20 73 | 63 63 73 2d 64 65 66 61 |append s|ccs-defa|
|000052c0| 75 6c 74 2d 64 69 66 66 | 2d 66 6c 61 67 73 20 66 |ult-diff|-flags f|
|000052d0| 6c 61 67 73 20 28 6c 69 | 73 74 20 6f 6c 64 29 20 |lags (li|st old) |
|000052e0| 28 6c 69 73 74 20 66 69 | 6c 65 29 29 29 0a 09 28 |(list fi|le)))..(|
|000052f0| 73 65 74 2d 62 75 66 66 | 65 72 2d 6d 6f 64 69 66 |set-buff|er-modif|
|00005300| 69 65 64 2d 70 20 6e 69 | 6c 29 0a 09 28 67 6f 74 |ied-p ni|l)..(got|
|00005310| 6f 2d 63 68 61 72 20 28 | 70 6f 69 6e 74 2d 6d 69 |o-char (|point-mi|
|00005320| 6e 29 29 0a 09 28 64 65 | 6c 65 74 65 2d 66 69 6c |n))..(de|lete-fil|
|00005330| 65 20 6f 6c 64 29 0a 09 | 29 0a 20 20 20 20 29 0a |e old)..|). ).|
|00005340| 20 20 29 0a 29 0a 0a 28 | 64 65 66 75 6e 20 73 63 | ).)..(|defun sc|
|00005350| 63 73 2d 70 72 73 20 28 | 29 0a 20 20 22 2a 4c 69 |cs-prs (|). "*Li|
|00005360| 73 74 20 74 68 65 20 53 | 43 43 53 20 6c 6f 67 20 |st the S|CCS log |
|00005370| 6f 66 20 74 68 65 20 63 | 75 72 72 65 6e 74 20 62 |of the c|urrent b|
|00005380| 75 66 66 65 72 20 69 6e | 20 61 6e 20 65 6d 61 63 |uffer in| an emac|
|00005390| 73 20 77 69 6e 64 6f 77 | 22 0a 20 20 28 69 6e 74 |s window|". (int|
|000053a0| 65 72 61 63 74 69 76 65 | 29 0a 20 20 28 73 63 63 |eractive|). (scc|
|000053b0| 73 2d 64 6f 2d 63 6f 6d | 6d 61 6e 64 20 22 2a 53 |s-do-com|mand "*S|
|000053c0| 43 43 53 2a 22 20 22 70 | 72 73 22 20 62 75 66 66 |CCS*" "p|rs" buff|
|000053d0| 65 72 2d 66 69 6c 65 2d | 6e 61 6d 65 29 0a 20 20 |er-file-|name). |
|000053e0| 28 70 6f 70 2d 74 6f 2d | 62 75 66 66 65 72 20 28 |(pop-to-|buffer (|
|000053f0| 67 65 74 2d 62 75 66 66 | 65 72 2d 63 72 65 61 74 |get-buff|er-creat|
|00005400| 65 20 22 2a 53 43 43 53 | 2a 22 29 29 29 0a 0a 28 |e "*SCCS|*")))..(|
|00005410| 64 65 66 75 6e 20 73 63 | 63 73 2d 76 65 72 73 69 |defun sc|cs-versi|
|00005420| 6f 6e 2d 64 69 66 66 20 | 28 66 69 6c 65 20 72 65 |on-diff |(file re|
|00005430| 6c 31 20 72 65 6c 32 29 | 0a 20 20 22 2a 47 69 76 |l1 rel2)|. "*Giv|
|00005440| 65 6e 20 61 20 46 49 4c | 45 20 72 65 67 69 73 74 |en a FIL|E regist|
|00005450| 65 72 65 64 20 75 6e 64 | 65 72 20 53 43 43 53 2c |ered und|er SCCS,|
|00005460| 20 72 65 70 6f 72 74 20 | 64 69 66 66 73 20 62 65 | report |diffs be|
|00005470| 74 77 65 65 6e 20 74 77 | 6f 20 73 74 6f 72 65 64 |tween tw|o stored|
|00005480| 20 64 65 6c 74 61 73 0a | 52 45 4c 31 20 61 6e 64 | deltas.|REL1 and|
|00005490| 20 52 45 4c 32 20 6f 66 | 20 69 74 2e 22 0a 20 20 | REL2 of| it.". |
|000054a0| 28 69 6e 74 65 72 61 63 | 74 69 76 65 20 22 73 4f |(interac|tive "sO|
|000054b0| 6c 64 65 72 20 76 65 72 | 73 69 6f 6e 3a 20 5c 6e |lder ver|sion: \n|
|000054c0| 73 4e 65 77 65 72 20 76 | 65 72 73 69 6f 6e 3a 20 |sNewer v|ersion: |
|000054d0| 22 29 0a 20 20 28 69 66 | 20 28 73 74 72 69 6e 67 |"). (if| (string|
|000054e0| 2d 65 71 75 61 6c 20 72 | 65 6c 31 20 22 22 29 20 |-equal r|el1 "") |
|000054f0| 28 73 65 74 71 20 72 65 | 6c 31 20 6e 69 6c 29 29 |(setq re|l1 nil))|
|00005500| 0a 20 20 28 69 66 20 28 | 73 74 72 69 6e 67 2d 65 |. (if (|string-e|
|00005510| 71 75 61 6c 20 72 65 6c | 32 20 22 22 29 20 28 73 |qual rel|2 "") (s|
|00005520| 65 74 71 20 72 65 6c 32 | 20 6e 69 6c 29 29 0a 20 |etq rel2| nil)). |
|00005530| 20 28 70 6f 70 2d 74 6f | 2d 62 75 66 66 65 72 20 | (pop-to|-buffer |
|00005540| 28 67 65 74 2d 62 75 66 | 66 65 72 2d 63 72 65 61 |(get-buf|fer-crea|
|00005550| 74 65 20 22 2a 53 43 43 | 53 2a 22 29 29 0a 20 20 |te "*SCC|S*")). |
|00005560| 28 65 72 61 73 65 2d 62 | 75 66 66 65 72 29 0a 20 |(erase-b|uffer). |
|00005570| 20 28 73 63 63 73 2d 76 | 64 69 66 66 20 66 69 6c | (sccs-v|diff fil|
|00005580| 65 20 72 65 6c 31 20 72 | 65 6c 32 29 0a 20 20 28 |e rel1 r|el2). (|
|00005590| 73 65 74 2d 62 75 66 66 | 65 72 2d 6d 6f 64 69 66 |set-buff|er-modif|
|000055a0| 69 65 64 2d 70 20 6e 69 | 6c 29 0a 20 20 28 67 6f |ied-p ni|l). (go|
|000055b0| 74 6f 2d 63 68 61 72 20 | 28 70 6f 69 6e 74 2d 6d |to-char |(point-m|
|000055c0| 69 6e 29 29 0a 20 20 29 | 0a 0a 28 64 65 66 75 6e |in)). )|..(defun|
|000055d0| 20 73 63 63 73 2d 76 64 | 69 66 66 20 28 66 69 6c | sccs-vd|iff (fil|
|000055e0| 65 20 72 65 6c 31 20 72 | 65 6c 32 20 26 6f 70 74 |e rel1 r|el2 &opt|
|000055f0| 69 6f 6e 61 6c 20 66 6c | 61 67 73 29 0a 20 20 22 |ional fl|ags). "|
|00005600| 43 6f 6d 70 61 72 65 20 | 74 77 6f 20 64 65 6c 74 |Compare |two delt|
|00005610| 61 73 20 69 6e 74 6f 20 | 74 68 65 20 63 75 72 72 |as into |the curr|
|00005620| 65 6e 74 20 62 75 66 66 | 65 72 22 0a 20 20 28 6c |ent buff|er". (l|
|00005630| 65 74 20 28 76 65 72 73 | 31 20 76 65 72 73 32 29 |et (vers|1 vers2)|
|00005640| 0a 20 20 20 20 28 61 6e | 64 0a 20 20 20 20 20 28 |. (an|d. (|
|00005650| 73 65 74 71 20 76 65 72 | 73 31 20 28 73 63 63 73 |setq ver|s1 (sccs|
|00005660| 2d 67 65 74 2d 76 65 72 | 73 69 6f 6e 20 66 69 6c |-get-ver|sion fil|
|00005670| 65 20 72 65 6c 31 29 29 | 0a 20 20 20 20 20 28 73 |e rel1))|. (s|
|00005680| 65 74 71 20 76 65 72 73 | 32 20 28 73 63 63 73 2d |etq vers|2 (sccs-|
|00005690| 67 65 74 2d 76 65 72 73 | 69 6f 6e 20 66 69 6c 65 |get-vers|ion file|
|000056a0| 20 72 65 6c 32 29 29 0a | 3b 20 20 20 20 20 28 70 | rel2)).|; (p|
|000056b0| 72 6f 67 31 0a 3b 09 20 | 28 73 61 76 65 2d 65 78 |rog1.;. |(save-ex|
|000056c0| 63 75 72 73 69 6f 6e 0a | 3b 09 20 20 20 28 6e 6f |cursion.|;. (no|
|000056d0| 74 20 28 65 72 72 6f 72 | 2d 6f 63 63 75 72 72 65 |t (error|-occurre|
|000056e0| 64 0a 3b 09 09 20 28 63 | 61 6c 6c 2d 70 72 6f 63 |d.;.. (c|all-proc|
|000056f0| 65 73 73 20 22 70 72 73 | 22 20 6e 69 6c 20 74 20 |ess "prs|" nil t |
|00005700| 74 0a 3b 09 09 09 20 20 | 20 20 20 20 20 28 73 63 |t.;... | (sc|
|00005710| 63 73 2d 6e 61 6d 65 20 | 66 69 6c 65 29 29 29 29 |cs-name |file))))|
|00005720| 0a 3b 09 20 29 0a 3b 20 | 20 20 20 20 20 20 29 0a |.;. ).; | ).|
|00005730| 20 20 20 20 20 28 75 6e | 77 69 6e 64 2d 70 72 6f | (un|wind-pro|
|00005740| 74 65 63 74 0a 09 20 28 | 61 70 70 6c 79 20 27 63 |tect.. (|apply 'c|
|00005750| 61 6c 6c 2d 70 72 6f 63 | 65 73 73 20 22 64 69 66 |all-proc|ess "dif|
|00005760| 66 22 20 6e 69 6c 20 74 | 20 74 0a 09 09 28 61 70 |f" nil t| t...(ap|
|00005770| 70 65 6e 64 20 73 63 63 | 73 2d 64 65 66 61 75 6c |pend scc|s-defaul|
|00005780| 74 2d 64 69 66 66 2d 66 | 6c 61 67 73 20 66 6c 61 |t-diff-f|lags fla|
|00005790| 67 73 20 28 6c 69 73 74 | 20 76 65 72 73 31 29 20 |gs (list| vers1) |
|000057a0| 28 6c 69 73 74 20 76 65 | 72 73 32 29 29 29 0a 20 |(list ve|rs2))). |
|000057b0| 20 20 20 20 20 20 28 63 | 6f 6e 64 69 74 69 6f 6e | (c|ondition|
|000057c0| 2d 63 61 73 65 20 28 29 | 20 28 64 65 6c 65 74 65 |-case ()| (delete|
|000057d0| 2d 66 69 6c 65 20 76 65 | 72 73 31 29 20 28 65 72 |-file ve|rs1) (er|
|000057e0| 72 6f 72 20 6e 69 6c 29 | 29 0a 20 20 20 20 20 20 |ror nil)|). |
|000057f0| 20 28 63 6f 6e 64 69 74 | 69 6f 6e 2d 63 61 73 65 | (condit|ion-case|
|00005800| 20 28 29 20 28 64 65 6c | 65 74 65 2d 66 69 6c 65 | () (del|ete-file|
|00005810| 20 76 65 72 73 32 29 20 | 28 65 72 72 6f 72 20 6e | vers2) |(error n|
|00005820| 69 6c 29 29 0a 20 20 20 | 20 20 20 20 29 0a 20 20 |il)). | ). |
|00005830| 20 20 20 29 0a 20 20 20 | 20 29 0a 20 20 29 0a 0a | ). | ). )..|
|00005840| 3b 3b 20 53 43 43 53 20 | 68 65 61 64 65 72 20 69 |;; SCCS |header i|
|00005850| 6e 73 65 72 74 69 6f 6e | 20 63 6f 64 65 0a 0a 28 |nsertion| code..(|
|00005860| 64 65 66 75 6e 20 73 63 | 63 73 2d 69 6e 73 65 72 |defun sc|cs-inser|
|00005870| 74 2d 68 65 61 64 65 72 | 73 20 28 29 0a 20 20 22 |t-header|s (). "|
|00005880| 2a 49 6e 73 65 72 74 20 | 68 65 61 64 65 72 73 20 |*Insert |headers |
|00005890| 66 6f 72 20 75 73 65 20 | 77 69 74 68 20 74 68 65 |for use |with the|
|000058a0| 20 53 6f 75 72 63 65 20 | 43 6f 64 65 20 43 6f 6e | Source |Code Con|
|000058b0| 74 72 6f 6c 20 53 79 73 | 74 65 6d 0a 48 65 61 64 |trol Sys|tem.Head|
|000058c0| 65 72 73 20 64 65 73 69 | 72 65 64 20 61 72 65 20 |ers desi|red are |
|000058d0| 69 6e 73 65 72 74 65 64 | 20 61 74 20 74 68 65 20 |inserted| at the |
|000058e0| 73 74 61 72 74 20 6f 66 | 20 74 68 65 20 62 75 66 |start of| the buf|
|000058f0| 66 65 72 2c 20 61 6e 64 | 20 61 72 65 20 70 75 6c |fer, and| are pul|
|00005900| 6c 65 64 20 66 72 6f 6d | 20 0a 74 68 65 20 76 61 |led from| .the va|
|00005910| 72 69 61 62 6c 65 20 73 | 63 63 73 2d 68 65 61 64 |riable s|ccs-head|
|00005920| 65 72 73 2d 77 61 6e 74 | 65 64 22 0a 20 20 28 69 |ers-want|ed". (i|
|00005930| 6e 74 65 72 61 63 74 69 | 76 65 29 0a 20 20 28 73 |nteracti|ve). (s|
|00005940| 61 76 65 2d 65 78 63 75 | 72 73 69 6f 6e 0a 20 20 |ave-excu|rsion. |
|00005950| 20 20 28 73 61 76 65 2d | 72 65 73 74 72 69 63 74 | (save-|restrict|
|00005960| 69 6f 6e 0a 20 20 20 20 | 20 20 28 77 69 64 65 6e |ion. | (widen|
|00005970| 29 0a 20 20 20 20 20 20 | 28 69 66 20 28 6f 72 20 |). |(if (or |
|00005980| 28 6e 6f 74 20 28 73 63 | 63 73 2d 63 68 65 63 6b |(not (sc|cs-check|
|00005990| 2d 68 65 61 64 65 72 73 | 29 29 0a 09 20 20 20 20 |-headers|)).. |
|000059a0| 20 20 28 79 2d 6f 72 2d | 6e 2d 70 20 22 53 43 43 | (y-or-|n-p "SCC|
|000059b0| 53 20 68 65 61 64 65 72 | 73 20 61 6c 72 65 61 64 |S header|s alread|
|000059c0| 79 20 65 78 69 73 74 2e | 20 20 49 6e 73 65 72 74 |y exist.| Insert|
|000059d0| 20 61 6e 6f 74 68 65 72 | 20 73 65 74 3f 22 29 29 | another| set?"))|
|000059e0| 0a 09 20 20 28 70 72 6f | 67 6e 0a 09 20 20 20 20 |.. (pro|gn.. |
|000059f0| 20 28 67 6f 74 6f 2d 63 | 68 61 72 20 28 70 6f 69 | (goto-c|har (poi|
|00005a00| 6e 74 2d 6d 69 6e 29 29 | 0a 09 20 20 20 20 20 28 |nt-min))|.. (|
|00005a10| 72 75 6e 2d 68 6f 6f 6b | 73 20 27 73 63 63 73 2d |run-hook|s 'sccs-|
|00005a20| 69 6e 73 65 72 74 2d 68 | 65 61 64 65 72 73 2d 68 |insert-h|eaders-h|
|00005a30| 6f 6f 6b 29 0a 09 20 20 | 20 20 20 28 63 6f 6e 64 |ook).. | (cond|
|00005a40| 20 28 28 65 71 20 6d 61 | 6a 6f 72 2d 6d 6f 64 65 | ((eq ma|jor-mode|
|00005a50| 20 27 63 2d 6d 6f 64 65 | 29 20 28 73 63 63 73 2d | 'c-mode|) (sccs-|
|00005a60| 69 6e 73 65 72 74 2d 63 | 2d 68 65 61 64 65 72 29 |insert-c|-header)|
|00005a70| 29 0a 09 09 20 20 20 28 | 28 65 71 20 6d 61 6a 6f |)... (|(eq majo|
|00005a80| 72 2d 6d 6f 64 65 20 27 | 6c 69 73 70 2d 6d 6f 64 |r-mode '|lisp-mod|
|00005a90| 65 29 20 28 73 63 63 73 | 2d 69 6e 73 65 72 74 2d |e) (sccs|-insert-|
|00005aa0| 6c 69 73 70 2d 68 65 61 | 64 65 72 29 29 0a 09 09 |lisp-hea|der))...|
|00005ab0| 20 20 20 28 28 65 71 20 | 6d 61 6a 6f 72 2d 6d 6f | ((eq |major-mo|
|00005ac0| 64 65 20 27 65 6d 61 63 | 73 2d 6c 69 73 70 2d 6d |de 'emac|s-lisp-m|
|00005ad0| 6f 64 65 29 20 28 73 63 | 63 73 2d 69 6e 73 65 72 |ode) (sc|cs-inser|
|00005ae0| 74 2d 6c 69 73 70 2d 68 | 65 61 64 65 72 29 29 0a |t-lisp-h|eader)).|
|00005af0| 09 09 20 20 20 28 28 65 | 71 20 6d 61 6a 6f 72 2d |.. ((e|q major-|
|00005b00| 6d 6f 64 65 20 27 73 63 | 68 65 6d 65 2d 6d 6f 64 |mode 'sc|heme-mod|
|00005b10| 65 29 20 28 73 63 63 73 | 2d 69 6e 73 65 72 74 2d |e) (sccs|-insert-|
|00005b20| 6c 69 73 70 2d 68 65 61 | 64 65 72 29 29 0a 09 09 |lisp-hea|der))...|
|00005b30| 20 20 20 28 74 20 28 73 | 63 63 73 2d 69 6e 73 65 | (t (s|ccs-inse|
|00005b40| 72 74 2d 67 65 6e 65 72 | 69 63 2d 68 65 61 64 65 |rt-gener|ic-heade|
|00005b50| 72 29 29 29 29 29 29 29 | 29 0a 0a 28 64 65 66 75 |r)))))))|)..(defu|
|00005b60| 6e 20 73 63 63 73 2d 69 | 6e 73 65 72 74 2d 63 2d |n sccs-i|nsert-c-|
|00005b70| 68 65 61 64 65 72 20 28 | 29 0a 20 20 28 6c 65 74 |header (|). (let|
|00005b80| 20 28 73 74 20 65 6e 29 | 0a 20 20 20 20 28 69 6e | (st en)|. (in|
|00005b90| 73 65 72 74 20 22 2f 2a | 5c 6e 22 29 0a 20 20 20 |sert "/*|\n"). |
|00005ba0| 20 28 6d 61 70 63 61 72 | 20 27 28 6c 61 6d 62 64 | (mapcar| '(lambd|
|00005bb0| 61 20 28 73 29 0a 09 20 | 20 20 20 20 20 20 28 69 |a (s).. | (i|
|00005bc0| 6e 73 65 72 74 20 22 20 | 2a 5c 74 22 20 73 20 22 |nsert " |*\t" s "|
|00005bd0| 5c 6e 22 29 29 0a 09 20 | 20 20 20 73 63 63 73 2d |\n")).. | sccs-|
|00005be0| 68 65 61 64 65 72 73 2d | 77 61 6e 74 65 64 29 0a |headers-|wanted).|
|00005bf0| 20 20 20 20 28 69 6e 73 | 65 72 74 20 22 20 2a 2f | (ins|ert " */|
|00005c00| 5c 6e 5c 6e 22 29 0a 20 | 20 20 20 28 69 66 20 28 |\n\n"). | (if (|
|00005c10| 61 6e 64 20 73 63 63 73 | 2d 69 6e 73 65 72 74 2d |and sccs|-insert-|
|00005c20| 73 74 61 74 69 63 20 0a | 09 20 20 20 20 20 28 6e |static .|. (n|
|00005c30| 6f 74 20 28 73 74 72 69 | 6e 67 2d 6d 61 74 63 68 |ot (stri|ng-match|
|00005c40| 20 22 5c 5c 2e 68 24 22 | 20 28 62 75 66 66 65 72 | "\\.h$"| (buffer|
|00005c50| 2d 66 69 6c 65 2d 6e 61 | 6d 65 29 29 29 29 0a 09 |-file-na|me))))..|
|00005c60| 28 70 72 6f 67 6e 0a 09 | 20 20 28 69 6e 73 65 72 |(progn..| (inser|
|00005c70| 74 20 22 23 69 66 6e 64 | 65 66 20 6c 69 6e 74 5c |t "#ifnd|ef lint\|
|00005c80| 6e 22 0a 09 09 20 20 22 | 73 74 61 74 69 63 20 63 |n"... "|static c|
|00005c90| 68 61 72 20 2a 73 63 63 | 73 69 64 22 29 0a 3b 3b |har *scc|sid").;;|
|00005ca0| 09 20 20 28 73 65 74 71 | 20 73 74 20 28 70 6f 69 |. (setq| st (poi|
|00005cb0| 6e 74 29 29 0a 3b 3b 09 | 20 20 28 69 6e 73 65 72 |nt)).;;.| (inser|
|00005cc0| 74 20 28 66 69 6c 65 2d | 6e 61 6d 65 2d 6e 6f 6e |t (file-|name-non|
|00005cd0| 64 69 72 65 63 74 6f 72 | 79 20 28 62 75 66 66 65 |director|y (buffe|
|00005ce0| 72 2d 66 69 6c 65 2d 6e | 61 6d 65 29 29 29 0a 3b |r-file-n|ame))).;|
|00005cf0| 3b 09 20 20 28 73 65 74 | 71 20 65 6e 20 28 70 6f |;. (set|q en (po|
|00005d00| 69 6e 74 29 29 0a 3b 3b | 09 20 20 28 73 75 62 73 |int)).;;|. (subs|
|00005d10| 74 2d 63 68 61 72 2d 69 | 6e 2d 72 65 67 69 6f 6e |t-char-i|n-region|
|00005d20| 20 73 74 20 65 6e 20 3f | 2e 20 3f 5f 29 0a 09 20 | st en ?|. ?_).. |
|00005d30| 20 28 69 6e 73 65 72 74 | 20 22 20 3d 20 5c 22 25 | (insert| " = \"%|
|00005d40| 57 25 5c 22 3b 5c 6e 22 | 0a 09 09 20 20 22 23 65 |W%\";\n"|... "#e|
|00005d50| 6e 64 69 66 20 2f 2a 20 | 6c 69 6e 74 20 2a 2f 5c |ndif /* |lint */\|
|00005d60| 6e 5c 6e 22 29 29 29 0a | 20 20 20 20 28 72 75 6e |n\n"))).| (run|
|00005d70| 2d 68 6f 6f 6b 73 20 27 | 73 63 63 73 2d 69 6e 73 |-hooks '|sccs-ins|
|00005d80| 65 72 74 2d 63 2d 68 65 | 61 64 65 72 2d 68 6f 6f |ert-c-he|ader-hoo|
|00005d90| 6b 29 29 29 0a 0a 28 64 | 65 66 75 6e 20 73 63 63 |k)))..(d|efun scc|
|00005da0| 73 2d 69 6e 73 65 72 74 | 2d 6c 69 73 70 2d 68 65 |s-insert|-lisp-he|
|00005db0| 61 64 65 72 20 28 29 0a | 20 20 28 6d 61 70 63 61 |ader ().| (mapca|
|00005dc0| 72 20 27 28 6c 61 6d 62 | 64 61 20 28 73 29 20 0a |r '(lamb|da (s) .|
|00005dd0| 09 09 20 20 28 69 6e 73 | 65 72 74 20 22 3b 3b 3b |.. (ins|ert ";;;|
|00005de0| 5c 74 22 20 73 20 22 5c | 6e 22 29 29 0a 09 20 20 |\t" s "\|n")).. |
|00005df0| 73 63 63 73 2d 68 65 61 | 64 65 72 73 2d 77 61 6e |sccs-hea|ders-wan|
|00005e00| 74 65 64 29 0a 20 20 28 | 69 6e 73 65 72 74 20 22 |ted). (|insert "|
|00005e10| 5c 6e 22 29 0a 20 20 28 | 72 75 6e 2d 68 6f 6f 6b |\n"). (|run-hook|
|00005e20| 73 20 27 73 63 63 73 2d | 69 6e 73 65 72 74 2d 6c |s 'sccs-|insert-l|
|00005e30| 69 73 70 2d 68 65 61 64 | 65 72 2d 68 6f 6f 6b 29 |isp-head|er-hook)|
|00005e40| 29 0a 0a 28 64 65 66 75 | 6e 20 73 63 63 73 2d 69 |)..(defu|n sccs-i|
|00005e50| 6e 73 65 72 74 2d 67 65 | 6e 65 72 69 63 2d 68 65 |nsert-ge|neric-he|
|00005e60| 61 64 65 72 20 28 29 0a | 20 20 28 6c 65 74 2a 20 |ader ().| (let* |
|00005e70| 28 28 63 6f 6d 6d 65 6e | 74 2d 73 74 61 72 74 2d |((commen|t-start-|
|00005e80| 73 63 63 73 20 28 6f 72 | 20 63 6f 6d 6d 65 6e 74 |sccs (or| comment|
|00005e90| 2d 73 74 61 72 74 20 22 | 23 22 29 29 0a 09 20 28 |-start "|#")).. (|
|00005ea0| 63 6f 6d 6d 65 6e 74 2d | 65 6e 64 2d 73 63 63 73 |comment-|end-sccs|
|00005eb0| 20 28 6f 72 20 63 6f 6d | 6d 65 6e 74 2d 65 6e 64 | (or com|ment-end|
|00005ec0| 20 22 22 29 29 0a 09 20 | 28 64 6f 6e 74 2d 69 6e | "")).. |(dont-in|
|00005ed0| 73 65 72 74 2d 6e 6c 2d | 70 20 28 73 74 72 69 6e |sert-nl-|p (strin|
|00005ee0| 67 2d 6d 61 74 63 68 20 | 22 5c 6e 22 20 63 6f 6d |g-match |"\n" com|
|00005ef0| 6d 65 6e 74 2d 65 6e 64 | 2d 73 63 63 73 29 29 29 |ment-end|-sccs)))|
|00005f00| 0a 20 20 20 20 28 6d 61 | 70 63 61 72 20 27 28 6c |. (ma|pcar '(l|
|00005f10| 61 6d 62 64 61 20 28 73 | 29 0a 09 20 20 20 20 20 |ambda (s|).. |
|00005f20| 20 20 28 69 6e 73 65 72 | 74 20 63 6f 6d 6d 65 6e | (inser|t commen|
|00005f30| 74 2d 73 74 61 72 74 2d | 73 63 63 73 20 22 5c 74 |t-start-|sccs "\t|
|00005f40| 22 20 73 20 22 22 0a 09 | 09 20 20 20 20 20 20 20 |" s ""..|. |
|00005f50| 63 6f 6d 6d 65 6e 74 2d | 65 6e 64 2d 73 63 63 73 |comment-|end-sccs|
|00005f60| 20 28 69 66 20 64 6f 6e | 74 2d 69 6e 73 65 72 74 | (if don|t-insert|
|00005f70| 2d 6e 6c 2d 70 20 22 22 | 20 22 5c 6e 22 29 29 29 |-nl-p ""| "\n")))|
|00005f80| 0a 09 20 20 73 63 63 73 | 2d 68 65 61 64 65 72 73 |.. sccs|-headers|
|00005f90| 2d 77 61 6e 74 65 64 29 | 0a 20 20 28 69 6e 73 65 |-wanted)|. (inse|
|00005fa0| 72 74 20 63 6f 6d 6d 65 | 6e 74 2d 73 74 61 72 74 |rt comme|nt-start|
|00005fb0| 2d 73 63 63 73 20 63 6f | 6d 6d 65 6e 74 2d 65 6e |-sccs co|mment-en|
|00005fc0| 64 2d 73 63 63 73 20 28 | 69 66 20 64 6f 6e 74 2d |d-sccs (|if dont-|
|00005fd0| 69 6e 73 65 72 74 2d 6e | 6c 2d 70 20 22 22 20 22 |insert-n|l-p "" "|
|00005fe0| 5c 6e 22 29 29 29 29 0a | 0a 28 64 65 66 75 6e 20 |\n")))).|.(defun |
|00005ff0| 73 63 63 73 2d 63 68 65 | 63 6b 2d 68 65 61 64 65 |sccs-che|ck-heade|
|00006000| 72 73 20 28 29 0a 20 20 | 22 43 68 65 63 6b 20 69 |rs (). |"Check i|
|00006010| 66 20 74 68 65 20 63 75 | 72 72 65 6e 74 20 66 69 |f the cu|rrent fi|
|00006020| 6c 65 20 68 61 73 20 61 | 6e 79 20 53 43 43 53 20 |le has a|ny SCCS |
|00006030| 68 65 61 64 65 72 73 20 | 69 6e 20 69 74 2e 22 0a |headers |in it.".|
|00006040| 20 20 28 69 6e 74 65 72 | 61 63 74 69 76 65 29 0a | (inter|active).|
|00006050| 20 20 28 73 61 76 65 2d | 65 78 63 75 72 73 69 6f | (save-|excursio|
|00006060| 6e 0a 20 20 20 20 28 67 | 6f 74 6f 2d 63 68 61 72 |n. (g|oto-char|
|00006070| 20 28 70 6f 69 6e 74 2d | 6d 69 6e 29 29 0a 20 20 | (point-|min)). |
|00006080| 20 20 28 72 65 2d 73 65 | 61 72 63 68 2d 66 6f 72 | (re-se|arch-for|
|00006090| 77 61 72 64 20 20 22 25 | 5b 4d 49 52 4c 42 53 44 |ward "%|[MIRLBSD|
|000060a0| 48 54 45 47 55 59 46 50 | 51 43 5a 57 41 5d 25 22 |HTEGUYFP|QCZWA]%"|
|000060b0| 20 28 70 6f 69 6e 74 2d | 6d 61 78 29 20 74 29 29 | (point-|max) t))|
|000060c0| 29 0a 0a 3b 3b 20 53 74 | 61 74 75 73 2d 63 68 65 |)..;; St|atus-che|
|000060d0| 63 6b 69 6e 67 20 66 75 | 6e 63 74 69 6f 6e 73 0a |cking fu|nctions.|
|000060e0| 0a 28 64 65 66 75 6e 20 | 73 63 63 73 2d 73 74 61 |.(defun |sccs-sta|
|000060f0| 74 75 73 20 28 70 72 65 | 66 69 78 20 6c 65 67 65 |tus (pre|fix lege|
|00006100| 6e 64 29 0a 20 20 20 22 | 4c 69 73 74 20 61 6c 6c |nd). "|List all|
|00006110| 20 66 69 6c 65 73 20 75 | 6e 64 65 72 6e 65 61 74 | files u|nderneat|
|00006120| 68 20 74 68 65 20 63 75 | 72 72 65 6e 74 20 64 69 |h the cu|rrent di|
|00006130| 72 65 63 74 6f 72 79 20 | 6d 61 74 63 68 69 6e 67 |rectory |matching|
|00006140| 20 61 20 70 72 65 66 69 | 78 20 74 79 70 65 22 0a | a prefi|x type".|
|00006150| 20 20 20 28 73 68 65 6c | 6c 2d 63 6f 6d 6d 61 6e | (shel|l-comman|
|00006160| 64 0a 20 20 20 20 28 66 | 6f 72 6d 61 74 20 22 66 |d. (f|ormat "f|
|00006170| 69 6e 64 20 2e 20 2d 70 | 72 69 6e 74 20 7c 20 67 |ind . -p|rint | g|
|00006180| 72 65 70 20 27 53 43 43 | 53 2f 25 73 5c 5c 2e 27 |rep 'SCC|S/%s\\.'|
|00006190| 22 20 70 72 65 66 69 78 | 29 29 0a 20 20 20 28 69 |" prefix|)). (i|
|000061a0| 66 0a 20 20 20 20 20 20 | 20 28 73 61 76 65 2d 65 |f. | (save-e|
|000061b0| 78 63 75 72 73 69 6f 6e | 0a 09 20 28 73 65 74 2d |xcursion|.. (set-|
|000061c0| 62 75 66 66 65 72 20 22 | 2a 53 68 65 6c 6c 20 43 |buffer "|*Shell C|
|000061d0| 6f 6d 6d 61 6e 64 20 4f | 75 74 70 75 74 2a 22 29 |ommand O|utput*")|
|000061e0| 0a 09 20 28 69 66 20 28 | 3d 20 28 70 6f 69 6e 74 |.. (if (|= (point|
|000061f0| 2d 6d 61 78 29 20 28 70 | 6f 69 6e 74 2d 6d 69 6e |-max) (p|oint-min|
|00006200| 29 29 0a 09 20 20 20 20 | 20 28 6e 6f 74 20 28 6d |)).. | (not (m|
|00006210| 65 73 73 61 67 65 0a 09 | 09 20 20 20 22 4e 6f 20 |essage..|. "No |
|00006220| 66 69 6c 65 73 20 61 72 | 65 20 63 75 72 72 65 6e |files ar|e curren|
|00006230| 74 6c 79 20 25 73 20 75 | 6e 64 65 72 20 25 73 22 |tly %s u|nder %s"|
|00006240| 0a 09 09 20 20 20 6c 65 | 67 65 6e 64 20 64 65 66 |... le|gend def|
|00006250| 61 75 6c 74 2d 64 69 72 | 65 63 74 6f 72 79 29 29 |ault-dir|ectory))|
|00006260| 0a 09 20 20 20 28 70 72 | 6f 67 6e 0a 09 20 20 20 |.. (pr|ogn.. |
|00006270| 20 20 28 67 6f 74 6f 2d | 63 68 61 72 20 28 70 6f | (goto-|char (po|
|00006280| 69 6e 74 2d 6d 69 6e 29 | 29 0a 09 20 20 20 20 20 |int-min)|).. |
|00006290| 28 69 6e 73 65 72 74 0a | 09 20 20 20 20 20 20 22 |(insert.|. "|
|000062a0| 54 68 65 20 66 6f 6c 6c | 6f 77 69 6e 67 20 66 69 |The foll|owing fi|
|000062b0| 6c 65 73 20 61 72 65 20 | 63 75 72 72 65 6e 74 6c |les are |currentl|
|000062c0| 79 20 22 20 6c 65 67 65 | 6e 64 0a 09 20 20 20 20 |y " lege|nd.. |
|000062d0| 20 20 22 20 75 6e 64 65 | 72 20 22 20 64 65 66 61 | " unde|r " defa|
|000062e0| 75 6c 74 2d 64 69 72 65 | 63 74 6f 72 79 20 22 3a |ult-dire|ctory ":|
|000062f0| 5c 6e 22 29 0a 09 20 20 | 20 20 20 28 72 65 70 6c |\n").. | (repl|
|00006300| 61 63 65 2d 73 74 72 69 | 6e 67 20 28 66 6f 72 6d |ace-stri|ng (form|
|00006310| 61 74 20 22 53 43 43 53 | 2f 25 73 2e 22 20 70 72 |at "SCCS|/%s." pr|
|00006320| 65 66 69 78 29 20 22 22 | 29 0a 09 20 20 20 20 20 |efix) ""|).. |
|00006330| 29 0a 09 20 20 20 29 0a | 09 20 29 0a 20 20 20 20 |).. ).|. ). |
|00006340| 20 20 20 28 70 6f 70 2d | 74 6f 2d 62 75 66 66 65 | (pop-|to-buffe|
|00006350| 72 20 22 2a 53 68 65 6c | 6c 20 43 6f 6d 6d 61 6e |r "*Shel|l Comman|
|00006360| 64 20 4f 75 74 70 75 74 | 2a 22 29 0a 20 20 20 20 |d Output|*"). |
|00006370| 20 20 20 29 0a 20 20 20 | 20 20 29 0a 0a 28 64 65 | ). | )..(de|
|00006380| 66 75 6e 20 73 63 63 73 | 2d 70 65 6e 64 69 6e 67 |fun sccs|-pending|
|00006390| 20 28 29 0a 20 20 22 2a | 4c 69 73 74 20 61 6c 6c | (). "*|List all|
|000063a0| 20 66 69 6c 65 73 20 63 | 75 72 72 65 6e 74 6c 79 | files c|urrently|
|000063b0| 20 53 43 43 53 20 6c 6f | 63 6b 65 64 22 0a 20 20 | SCCS lo|cked". |
|000063c0| 28 69 6e 74 65 72 61 63 | 74 69 76 65 29 0a 20 20 |(interac|tive). |
|000063d0| 28 73 63 63 73 2d 73 74 | 61 74 75 73 20 22 70 22 |(sccs-st|atus "p"|
|000063e0| 20 22 6c 6f 63 6b 65 64 | 22 29 29 0a 0a 28 64 65 | "locked|"))..(de|
|000063f0| 66 75 6e 20 73 63 63 73 | 2d 72 65 67 69 73 74 65 |fun sccs|-registe|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.