home *** CD-ROM | disk | FTP | other *** search
open in: MacOS 8.1
extracted
|
Win98
extracted
|
DOS
extracted
browse contents |
view JSON data
|
view as text
This file was processed as: Mailbox/MIME Entity
(archive/mbox ).
Confidence Program Detection Match Type Support
100%
dexvert
Mailbox/MIME Entity (archive/mbox)
magic
Supported
100%
dexvert
Internet Message Format (text/imf)
magic
Supported
1%
dexvert
PageFocus Data (other/pageFocusData)
ext
Unsupported
1%
dexvert
Banyans VINES patch data (other/banyansVINESPatchData)
ext
Unsupported
1%
dexvert
Text File (text/txt)
fallback
Supported
100%
file
Mailbox text, 1st line "From utkcs2!emory!swrinde!ucsd!tut.cis.ohio-state.edu!pt.cs.cmu.edu!a.gp.cs.cmu.edu!shivers Tue Jun 12 10:07:39 EDT 1990", ASCII text
default
100%
TrID
E-Mail message (Var. 2)
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 75 74 6b | 63 73 32 21 65 6d 6f 72 |From utk|cs2!emor| |00000010| 79 21 73 77 72 69 6e 64 | 65 21 75 63 73 64 21 74 |y!swrind|e!ucsd!t| |00000020| 75 74 2e 63 69 73 2e 6f | 68 69 6f 2d 73 74 61 74 |ut.cis.o|hio-stat| |00000030| 65 2e 65 64 75 21 70 74 | 2e 63 73 2e 63 6d 75 2e |e.edu!pt|.cs.cmu.| |00000040| 65 64 75 21 61 2e 67 70 | 2e 63 73 2e 63 6d 75 2e |edu!a.gp|.cs.cmu.| |00000050| 65 64 75 21 73 68 69 76 | 65 72 73 20 54 75 65 20 |edu!shiv|ers Tue | |00000060| 4a 75 6e 20 31 32 20 31 | 30 3a 30 37 3a 33 39 20 |Jun 12 1|0:07:39 | |00000070| 45 44 54 20 31 39 39 30 | 0a 41 72 74 69 63 6c 65 |EDT 1990|.Article| |00000080| 20 34 34 32 32 20 6f 66 | 20 63 6f 6d 70 2e 65 6d | 4422 of| comp.em| |00000090| 61 63 73 3a 0a 58 72 65 | 66 3a 20 75 74 6b 63 73 |acs:.Xre|f: utkcs| |000000a0| 32 20 63 6f 6d 70 2e 65 | 6d 61 63 73 3a 34 34 32 |2 comp.e|macs:442| |000000b0| 32 20 67 6e 75 2e 65 6d | 61 63 73 3a 32 39 34 34 |2 gnu.em|acs:2944| |000000c0| 0a 50 61 74 68 3a 20 75 | 74 6b 63 73 32 21 65 6d |.Path: u|tkcs2!em| |000000d0| 6f 72 79 21 73 77 72 69 | 6e 64 65 21 75 63 73 64 |ory!swri|nde!ucsd| |000000e0| 21 74 75 74 2e 63 69 73 | 2e 6f 68 69 6f 2d 73 74 |!tut.cis|.ohio-st| |000000f0| 61 74 65 2e 65 64 75 21 | 70 74 2e 63 73 2e 63 6d |ate.edu!|pt.cs.cm| |00000100| 75 2e 65 64 75 21 61 2e | 67 70 2e 63 73 2e 63 6d |u.edu!a.|gp.cs.cm| |00000110| 75 2e 65 64 75 21 73 68 | 69 76 65 72 73 0a 3e 46 |u.edu!sh|ivers.>F| |00000120| 72 6f 6d 3a 20 73 68 69 | 76 65 72 73 40 61 2e 67 |rom: shi|vers@a.g| |00000130| 70 2e 63 73 2e 63 6d 75 | 2e 65 64 75 20 28 4f 6c |p.cs.cmu|.edu (Ol| |00000140| 69 6e 20 53 68 69 76 65 | 72 73 29 0a 4e 65 77 73 |in Shive|rs).News| |00000150| 67 72 6f 75 70 73 3a 20 | 63 6f 6d 70 2e 65 6d 61 |groups: |comp.ema| |00000160| 63 73 2c 67 6e 75 2e 65 | 6d 61 63 73 0a 53 75 62 |cs,gnu.e|macs.Sub| |00000170| 6a 65 63 74 3a 20 52 65 | 6c 65 61 73 65 20 74 77 |ject: Re|lease tw| |00000180| 6f 20 6f 66 20 43 4d 55 | 20 70 72 6f 63 65 73 73 |o of CMU| process| |00000190| 20 6d 6f 64 65 73 20 20 | 28 31 20 6f 66 20 34 29 | modes |(1 of 4)| |000001a0| 0a 4b 65 79 77 6f 72 64 | 73 3a 20 63 6f 6d 69 6e |.Keyword|s: comin| |000001b0| 74 0a 4d 65 73 73 61 67 | 65 2d 49 44 3a 20 3c 39 |t.Messag|e-ID: <9| |000001c0| 35 39 39 40 70 74 2e 63 | 73 2e 63 6d 75 2e 65 64 |599@pt.c|s.cmu.ed| |000001d0| 75 3e 0a 44 61 74 65 3a | 20 31 32 20 4a 75 6e 20 |u>.Date:| 12 Jun | |000001e0| 39 30 20 30 36 3a 31 34 | 3a 33 36 20 47 4d 54 0a |90 06:14|:36 GMT.| |000001f0| 4f 72 67 61 6e 69 7a 61 | 74 69 6f 6e 3a 20 43 61 |Organiza|tion: Ca| |00000200| 72 6e 65 67 69 65 2d 4d | 65 6c 6c 6f 6e 20 55 6e |rnegie-M|ellon Un| |00000210| 69 76 65 72 73 69 74 79 | 2c 20 43 53 2f 52 49 0a |iversity|, CS/RI.| |00000220| 4c 69 6e 65 73 3a 20 31 | 32 36 39 0a 0a 0a 54 68 |Lines: 1|269...Th| |00000230| 69 73 20 6d 65 73 73 61 | 67 65 20 63 6f 6e 74 61 |is messa|ge conta| |00000240| 69 6e 73 3a 0a 31 2e 20 | 54 68 65 20 73 74 61 6e |ins:.1. |The stan| |00000250| 64 61 72 64 20 61 6e 6f | 75 6e 63 65 6d 65 6e 74 |dard ano|uncement| |00000260| 20 68 65 61 64 65 72 0a | 32 2e 20 41 20 73 68 61 | header.|2. A sha| |00000270| 72 20 66 69 6c 65 20 66 | 6f 72 20 63 6d 75 73 68 |r file f|or cmush| |00000280| 65 6c 6c 2e 65 6c 20 61 | 6e 64 20 74 65 61 2e 65 |ell.el a|nd tea.e| |00000290| 6c 0a 28 54 68 65 20 65 | 6e 74 69 72 65 20 70 61 |l.(The e|ntire pa| |000002a0| 63 6b 61 67 65 20 6d 75 | 73 74 20 62 65 20 73 70 |ckage mu|st be sp| |000002b0| 6c 69 74 20 2d 2d 20 6f | 74 68 65 72 77 69 73 65 |lit -- o|therwise| |000002c0| 20 6e 6f 74 65 73 66 69 | 6c 65 73 20 73 69 74 65 | notesfi|les site| |000002d0| 73 20 77 69 6c 6c 20 6e | 6f 74 0a 62 65 20 61 62 |s will n|ot.be ab| |000002e0| 6c 65 20 74 6f 20 68 61 | 6e 64 6c 65 20 69 74 2e |le to ha|ndle it.| |000002f0| 29 0a 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |).------|--------| |00000300| 2d 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 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------| |00000330| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------| |00000340| 2d 0a 49 20 61 6d 20 70 | 6f 73 74 69 6e 67 20 72 |-.I am p|osting r| |00000350| 65 6c 65 61 73 65 20 74 | 77 6f 20 6f 66 20 74 68 |elease t|wo of th| |00000360| 65 20 43 4d 55 20 70 72 | 6f 63 65 73 73 20 6d 6f |e CMU pr|ocess mo| |00000370| 64 65 73 2e 20 54 68 65 | 73 65 20 61 72 65 20 61 |des. The|se are a| |00000380| 20 73 75 69 74 65 20 6f | 66 0a 67 6e 75 2d 65 6d | suite o|f.gnu-em| |00000390| 61 63 73 20 70 61 63 6b | 61 67 65 73 20 66 6f 72 |acs pack|ages for| |000003a0| 20 72 75 6e 6e 69 6e 67 | 20 76 61 72 69 6f 75 73 | running| various| |000003b0| 20 63 6f 6d 6d 61 6e 64 | 20 69 6e 74 65 72 70 72 | command| interpr| |000003c0| 65 74 65 72 73 20 69 6e | 20 62 75 66 66 65 72 73 |eters in| buffers| |000003d0| 2e 20 54 68 65 79 0a 61 | 72 65 20 61 6c 6c 20 62 |. They.a|re all b| |000003e0| 75 69 6c 74 20 6f 6e 20 | 74 6f 70 20 6f 66 20 61 |uilt on |top of a| |000003f0| 20 73 69 6e 67 6c 65 20 | 62 61 73 65 20 6d 6f 64 | single |base mod| |00000400| 65 20 28 63 6f 6d 69 6e | 74 20 6d 6f 64 65 29 20 |e (comin|t mode) | |00000410| 74 68 61 74 20 70 72 6f | 76 69 64 65 73 20 61 0a |that pro|vides a.| |00000420| 63 6f 6e 73 69 73 74 65 | 6e 74 20 73 65 74 20 6f |consiste|nt set o| |00000430| 66 20 62 61 73 65 20 66 | 75 6e 63 74 69 6f 6e 61 |f base f|unctiona| |00000440| 6c 69 74 79 20 61 6e 64 | 20 6b 65 79 62 69 6e 64 |lity and| keybind| |00000450| 69 6e 67 73 2e 0a 0a 54 | 68 65 73 65 20 6d 6f 64 |ings...T|hese mod| |00000460| 65 73 20 68 61 76 65 20 | 74 68 65 20 66 6f 6c 6c |es have |the foll| |00000470| 6f 77 69 6e 67 20 61 64 | 76 61 6e 74 61 67 65 73 |owing ad|vantages| |00000480| 3a 0a 2d 20 49 6e 70 75 | 74 20 68 69 73 74 6f 72 |:.- Inpu|t histor| |00000490| 79 20 69 73 20 6b 65 70 | 74 20 69 6e 20 61 6c 6c |y is kep|t in all| |000004a0| 20 6d 6f 64 65 73 2c 20 | 74 72 61 76 65 72 73 65 | modes, |traverse| |000004b0| 64 20 77 69 74 68 20 4d | 2d 70 20 61 6e 64 20 4d |d with M|-p and M| |000004c0| 2d 6e 2c 20 6a 75 73 74 | 0a 20 20 6c 69 6b 65 20 |-n, just|. like | |000004d0| 6f 6e 20 4c 69 73 70 4d | 27 73 20 61 6e 64 20 76 |on LispM|'s and v| |000004e0| 61 72 69 6f 75 73 20 66 | 61 6e 63 79 20 73 68 65 |arious f|ancy she| |000004f0| 6c 6c 73 2e 0a 2d 20 46 | 69 6c 65 6e 61 6d 65 20 |lls..- F|ilename | |00000500| 63 6f 6d 70 6c 65 74 69 | 6f 6e 20 61 6e 64 20 71 |completi|on and q| |00000510| 75 65 72 79 20 69 73 20 | 61 76 61 69 6c 61 62 6c |uery is |availabl| |00000520| 65 20 69 6e 20 61 6c 6c | 20 6d 6f 64 65 73 2e 0a |e in all| modes..| |00000530| 2d 20 4b 65 79 62 69 6e | 64 69 6e 67 73 20 61 72 |- Keybin|dings ar| |00000540| 65 20 63 72 6f 73 73 2d | 63 6f 6d 70 61 74 69 62 |e cross-|compatib| |00000550| 6c 65 20 61 6d 6f 6e 67 | 20 61 6c 6c 20 6d 6f 64 |le among| all mod| |00000560| 65 73 2e 0a 2d 20 4b 65 | 79 62 69 6e 64 69 6e 67 |es..- Ke|ybinding| |00000570| 73 20 61 72 65 20 63 6f | 6d 70 61 74 69 62 6c 65 |s are co|mpatible| |00000580| 20 77 69 74 68 20 5a 77 | 65 69 20 61 6e 64 20 48 | with Zw|ei and H| |00000590| 65 6d 6c 6f 63 6b 2e 0a | 2d 20 44 69 72 65 63 74 |emlock..|- Direct| |000005a0| 6f 72 79 20 74 72 61 63 | 6b 69 6e 67 20 69 73 20 |ory trac|king is | |000005b0| 6d 6f 72 65 20 72 6f 62 | 75 73 74 20 69 6e 20 73 |more rob|ust in s| |000005c0| 68 65 6c 6c 20 6d 6f 64 | 65 2c 20 61 6e 64 20 69 |hell mod|e, and i| |000005d0| 73 20 2a 6f 6e 6c 79 2a | 20 61 63 74 69 76 65 20 |s *only*| active | |000005e0| 69 6e 0a 20 20 73 68 65 | 6c 6c 20 6d 6f 64 65 2e |in. she|ll mode.| |000005f0| 20 28 54 72 79 20 65 6e | 74 65 72 69 6e 67 20 22 | (Try en|tering "| |00000600| 63 64 20 2f 22 20 74 6f | 20 61 6e 20 69 6e 66 65 |cd /" to| an infe| |00000610| 72 69 6f 72 20 6c 69 73 | 70 20 69 6e 20 74 68 65 |rior lis|p in the| |00000620| 20 6f 6c 64 20 70 61 63 | 6b 61 67 65 3a 0a 20 20 | old pac|kage:. | |00000630| 4c 69 73 70 20 62 61 72 | 66 73 2c 20 62 75 74 20 |Lisp bar|fs, but | |00000640| 74 68 65 20 69 6e 66 65 | 72 69 6f 72 20 6c 69 73 |the infe|rior lis| |00000650| 70 20 6d 6f 64 65 20 67 | 6f 65 73 20 61 68 65 61 |p mode g|oes ahea| |00000660| 64 20 61 6e 64 20 63 68 | 61 6e 67 65 73 20 74 68 |d and ch|anges th| |00000670| 65 20 0a 20 20 62 75 66 | 66 65 72 27 73 20 64 69 |e . buf|fer's di| |00000680| 72 65 63 74 6f 72 79 2e | 29 0a 2d 20 4e 6f 6e 2d |rectory.|).- Non-| |00000690| 65 63 68 6f 65 64 20 74 | 65 78 74 20 65 6e 74 72 |echoed t|ext entr| |000006a0| 79 20 28 66 6f 72 20 65 | 6e 74 65 72 69 6e 67 20 |y (for e|ntering | |000006b0| 70 61 73 73 77 6f 72 64 | 73 29 20 69 73 20 61 76 |password|s) is av| |000006c0| 61 69 6c 61 62 6c 65 20 | 69 6e 20 61 6c 6c 20 6d |ailable |in all m| |000006d0| 6f 64 65 73 2e 0a 2d 20 | 53 68 65 6c 6c 20 61 6e |odes..- |Shell an| |000006e0| 64 20 69 6e 66 65 72 69 | 6f 72 20 4c 69 73 70 20 |d inferi|or Lisp | |000006f0| 6d 6f 64 65 73 20 61 72 | 65 20 62 61 63 6b 77 61 |modes ar|e backwa| |00000700| 72 64 73 20 63 6f 6d 70 | 61 74 69 62 6c 65 20 77 |rds comp|atible w| |00000710| 69 74 68 20 74 68 65 20 | 73 74 61 6e 64 61 72 64 |ith the |standard| |00000720| 0a 20 20 67 6e 75 20 6d | 6f 64 65 73 2e 0a 2d 20 |. gnu m|odes..- | |00000730| 41 20 66 75 6c 6c 20 73 | 65 74 20 6f 66 20 65 76 |A full s|et of ev| |00000740| 61 6c 2f 63 6f 6d 70 69 | 6c 65 2d 72 65 67 69 6f |al/compi|le-regio| |00000750| 6e 2f 64 65 66 75 6e 20 | 63 6f 6d 6d 61 6e 64 73 |n/defun |commands| |00000760| 20 66 6f 72 20 74 68 65 | 20 69 6e 66 65 72 69 6f | for the| inferio| |00000770| 72 20 4c 69 73 70 2c 0a | 20 20 53 63 68 65 6d 65 |r Lisp,.| Scheme| |00000780| 2c 20 61 6e 64 20 54 20 | 6d 6f 64 65 73 2e 0a 2d |, and T |modes..-| |00000790| 20 4e 65 77 20 6d 6f 64 | 65 73 20 61 72 65 20 65 | New mod|es are e| |000007a0| 61 73 69 6c 79 20 63 72 | 65 61 74 65 64 20 66 6f |asily cr|eated fo| |000007b0| 72 20 6e 65 77 20 74 79 | 70 65 73 20 6f 66 20 70 |r new ty|pes of p| |000007c0| 72 6f 63 65 73 73 65 73 | 2e 0a 0a 54 68 65 20 63 |rocesses|...The c| |000007d0| 6f 6d 69 6e 74 20 73 6f | 75 72 63 65 20 68 61 73 |omint so|urce has| |000007e0| 20 61 20 73 65 63 74 69 | 6f 6e 20 67 69 76 69 6e | a secti|on givin| |000007f0| 67 20 68 69 6e 74 73 20 | 6f 6e 20 63 6f 6e 76 65 |g hints |on conve| |00000800| 72 74 69 6e 67 20 6f 6c | 64 65 72 0a 73 68 65 6c |rting ol|der.shel| |00000810| 6c 2e 65 6c 2d 62 61 73 | 65 64 20 6d 6f 64 65 73 |l.el-bas|ed modes| |00000820| 20 74 6f 20 75 73 65 20 | 63 6f 6d 69 6e 74 2e 20 | to use |comint. | |00000830| 49 20 61 6d 20 74 6f 6c | 64 20 74 68 61 74 20 74 |I am tol|d that t| |00000840| 68 65 20 46 53 46 20 77 | 69 6c 6c 20 62 65 0a 75 |he FSF w|ill be.u| |00000850| 73 69 6e 67 20 63 6f 6d | 69 6e 74 20 69 6e 20 74 |sing com|int in t| |00000860| 68 65 20 6e 65 78 74 20 | 72 65 6c 65 61 73 65 20 |he next |release | |00000870| 6f 66 20 67 6e 75 6d 61 | 63 73 2e 0a 0a 0a 54 68 |of gnuma|cs....Th| |00000880| 65 20 63 75 72 72 65 6e | 74 20 73 65 74 20 6f 66 |e curren|t set of| |00000890| 20 6d 6f 64 65 73 20 61 | 72 65 3a 0a 20 20 20 20 | modes a|re:. | |000008a0| 62 61 63 6b 67 72 6f 75 | 6e 64 2e 65 6c 20 20 20 |backgrou|nd.el | |000008b0| 09 2d 20 72 75 6e 20 70 | 72 6f 63 65 73 73 20 69 |.- run p|rocess i| |000008c0| 6e 20 62 61 63 6b 67 72 | 6f 75 6e 64 2c 20 61 20 |n backgr|ound, a | |000008d0| 6c 61 20 63 73 68 2e 0a | 20 20 20 20 63 6d 75 6c |la csh..| cmul| |000008e0| 69 73 70 2e 65 6c 09 20 | 20 20 20 09 2d 20 73 69 |isp.el. | .- si| |000008f0| 6d 70 6c 65 20 6c 69 73 | 70 2d 69 6e 2d 61 2d 62 |mple lis|p-in-a-b| |00000900| 75 66 66 65 72 20 6d 6f | 64 65 2e 0a 20 20 20 20 |uffer mo|de.. | |00000910| 63 6d 75 73 63 68 65 6d | 65 2e 65 6c 20 20 20 20 |cmuschem|e.el | |00000920| 09 2d 20 53 63 68 65 6d | 65 2d 69 6e 2d 61 2d 62 |.- Schem|e-in-a-b| |00000930| 75 66 66 65 72 2e 0a 20 | 20 20 20 63 6d 75 73 68 |uffer.. | cmush| |00000940| 65 6c 6c 2e 65 6c 09 20 | 20 20 20 09 2d 20 73 68 |ell.el. | .- sh| |00000950| 65 6c 6c 2d 69 6e 2d 61 | 2d 62 75 66 66 65 72 2e |ell-in-a|-buffer.| |00000960| 0a 20 20 20 20 63 6d 75 | 74 65 78 2e 65 6c 09 20 |. cmu|tex.el. | |00000970| 20 20 20 09 2d 20 66 6f | 72 20 54 65 58 20 61 6e | .- fo|r TeX an| |00000980| 64 20 4c 61 54 65 58 20 | 65 64 69 74 69 6e 67 2e |d LaTeX |editing.| |00000990| 20 50 72 6f 63 65 73 73 | 20 73 75 70 70 6f 72 74 | Process| support| |000009a0| 20 66 6f 72 0a 20 20 20 | 20 09 20 20 20 20 09 20 | for. | . . | |000009b0| 20 20 20 09 20 20 72 75 | 6e 6e 69 6e 67 20 74 65 | . ru|nning te| |000009c0| 78 20 61 6e 64 20 6c 61 | 74 65 78 2c 20 61 6e 64 |x and la|tex, and| |000009d0| 20 70 72 69 6e 74 69 6e | 67 20 61 6e 64 20 70 72 | printin|g and pr| |000009e0| 65 76 69 65 77 69 6e 67 | 0a 20 20 20 20 09 20 20 |eviewing|. . | |000009f0| 20 20 09 20 20 20 20 09 | 20 20 2e 64 76 69 20 66 | . .| .dvi f| |00000a00| 69 6c 65 73 2e 0a 20 20 | 20 20 63 6f 6d 69 6e 74 |iles.. | comint| |00000a10| 2e 65 6c 09 20 20 20 20 | 09 2d 20 62 61 73 65 20 |.el. |.- base | |00000a20| 6d 6f 64 65 2e 20 55 73 | 65 64 20 62 79 20 65 76 |mode. Us|ed by ev| |00000a30| 65 72 79 6f 6e 65 20 65 | 6c 73 65 2e 0a 20 20 20 |eryone e|lse.. | |00000a40| 20 74 65 61 2e 65 6c 20 | 20 09 20 20 20 20 09 2d | tea.el | . .-| |00000a50| 20 54 2d 69 6e 2d 61 2d | 62 75 66 66 65 72 0a 0a | T-in-a-|buffer..| |00000a60| 54 68 65 73 65 20 70 61 | 63 6b 61 67 65 73 20 63 |These pa|ckages c| |00000a70| 61 6e 20 62 65 20 75 73 | 65 64 20 73 69 6e 67 6c |an be us|ed singl| |00000a80| 79 20 6f 72 20 74 6f 67 | 65 74 68 65 72 2e 20 54 |y or tog|ether. T| |00000a90| 68 65 79 20 61 72 65 20 | 63 61 72 65 66 75 6c 20 |hey are |careful | |00000aa0| 6e 6f 74 20 74 6f 0a 69 | 6e 74 65 72 66 65 72 65 |not to.i|nterfere| |00000ab0| 20 77 69 74 68 20 6f 74 | 68 65 72 20 6d 6f 64 65 | with ot|her mode| |00000ac0| 73 2e 20 57 68 65 72 65 | 20 70 6f 73 73 69 62 6c |s. Where| possibl| |00000ad0| 65 2c 20 49 20 68 61 76 | 65 20 74 72 69 65 64 20 |e, I hav|e tried | |00000ae0| 74 6f 20 6d 61 6b 65 20 | 74 68 65 6d 0a 63 6f 6d |to make |them.com| |00000af0| 70 61 74 69 62 6c 65 20 | 77 69 74 68 20 6f 74 68 |patible |with oth| |00000b00| 65 72 20 73 69 6d 69 6c | 61 72 20 6d 6f 64 65 73 |er simil|ar modes| |00000b10| 2c 20 69 6e 20 74 65 72 | 6d 73 20 6f 66 20 6b 65 |, in ter|ms of ke| |00000b20| 79 62 69 6e 64 69 6e 67 | 73 2c 20 66 75 6e 63 74 |ybinding|s, funct| |00000b30| 69 6f 6e 61 6c 69 74 79 | 2c 0a 61 6e 64 20 76 61 |ionality|,.and va| |00000b40| 72 69 61 62 6c 65 20 6e | 61 6d 65 73 2e 20 55 73 |riable n|ames. Us| |00000b50| 65 72 73 20 66 61 6d 69 | 6c 69 61 72 20 77 69 74 |ers fami|liar wit| |00000b60| 68 20 48 65 6d 6c 6f 63 | 6b 20 6f 72 20 74 68 65 |h Hemloc|k or the| |00000b70| 20 4c 69 73 70 4d 27 73 | 20 5a 65 6d 61 63 73 20 | LispM's| Zemacs | |00000b80| 77 69 6c 6c 0a 66 69 6e | 64 20 74 68 65 20 63 6f |will.fin|d the co| |00000b90| 6d 6d 61 6e 64 73 20 69 | 6e 20 63 6d 75 6c 69 73 |mmands i|n cmulis| |00000ba0| 70 20 61 72 65 20 62 6f | 75 6e 64 20 74 6f 20 73 |p are bo|und to s| |00000bb0| 69 6d 69 6c 61 72 20 6b | 65 79 73 2e 20 43 6d 75 |imilar k|eys. Cmu| |00000bc0| 73 68 65 6c 6c 20 6d 6f | 64 65 20 70 61 79 73 0a |shell mo|de pays.| |00000bd0| 61 74 74 65 6e 74 69 6f | 6e 20 74 6f 20 74 68 65 |attentio|n to the| |00000be0| 20 76 61 72 69 61 62 6c | 65 73 20 74 68 61 74 20 | variabl|es that | |00000bf0| 63 75 73 74 6f 6d 69 73 | 65 20 73 68 65 6c 6c 2e |customis|e shell.| |00000c00| 65 6c 2e 20 41 6e 64 20 | 73 6f 20 66 6f 72 74 68 |el. And |so forth| |00000c10| 2e 0a 0a 0a 41 6c 73 6f | 20 73 65 70 61 72 61 74 |....Also| separat| |00000c20| 65 6c 79 20 61 76 61 69 | 6c 61 62 6c 65 20 61 72 |ely avai|lable ar| |00000c30| 65 3a 0a 20 20 20 20 69 | 6c 69 73 70 2e 65 6c 09 |e:. i|lisp.el.| |00000c40| 20 20 20 20 09 2d 20 50 | 6f 77 65 72 66 75 6c 20 | .- P|owerful | |00000c50| 74 69 67 68 74 6c 79 2d | 69 6e 74 65 67 72 61 74 |tightly-|integrat| |00000c60| 65 64 20 6c 69 73 70 2d | 69 6e 2d 61 2d 62 75 66 |ed lisp-|in-a-buf| |00000c70| 66 65 72 20 6d 6f 64 65 | 2e 0a 20 20 20 20 63 6f |fer mode|.. co| |00000c80| 6d 69 6e 74 2d 69 70 63 | 2e 65 6c 20 20 20 20 20 |mint-ipc|.el | |00000c90| 20 20 2d 20 46 61 63 69 | 6c 69 74 79 20 66 6f 72 | - Faci|lity for| |00000ca0| 20 70 69 67 67 79 2d 62 | 61 63 6b 69 6e 67 20 65 | piggy-b|acking e| |00000cb0| 6d 61 63 73 2f 73 75 62 | 70 72 6f 63 65 73 73 0a |macs/sub|process.| |00000cc0| 20 20 20 20 09 20 20 20 | 20 09 20 20 20 20 09 20 | . | . . | |00000cd0| 20 63 6f 6d 6d 75 6e 69 | 63 61 74 69 6f 6e 73 20 | communi|cations | |00000ce0| 6f 6e 20 74 6f 70 20 6f | 66 20 74 68 65 20 75 73 |on top o|f the us| |00000cf0| 65 72 27 73 20 70 69 70 | 65 20 6f 72 20 70 74 79 |er's pip|e or pty| |00000d00| 0a 20 20 20 20 09 20 20 | 20 20 09 20 20 20 20 09 |. . | . .| |00000d10| 20 20 63 6f 6d 6d 75 6e | 69 63 61 74 69 6f 6e 73 | commun|ications| |00000d20| 2e 20 55 6e 61 76 6f 69 | 64 61 62 6c 79 20 73 6f |. Unavoi|dably so| |00000d30| 6d 65 77 68 61 74 20 66 | 72 61 67 69 6c 65 2c 20 |mewhat f|ragile, | |00000d40| 62 75 74 0a 20 20 20 20 | 09 20 20 20 20 09 20 20 |but. |. . | |00000d50| 20 20 09 20 20 6e 6f 6e | 74 68 65 6c 65 73 73 20 | . non|theless | |00000d60| 75 73 65 66 75 6c 2e 20 | 55 73 65 64 20 62 79 20 |useful. |Used by | |00000d70| 69 6c 69 73 70 2e 65 6c | 2e 0a 54 68 65 73 65 20 |ilisp.el|..These | |00000d80| 66 69 6c 65 73 20 73 68 | 6f 75 6c 64 20 62 65 20 |files sh|ould be | |00000d90| 72 65 6c 65 61 73 65 64 | 20 69 6d 6d 69 6e 65 6e |released| imminen| |00000da0| 74 6c 79 20 62 79 20 43 | 68 72 69 73 20 4d 63 43 |tly by C|hris McC| |00000db0| 6f 6e 6e 65 6c 6c 2e 0a | 0a 0a 4d 41 4a 4f 52 20 |onnell..|..MAJOR | |00000dc0| 43 48 41 4e 47 45 53 20 | 46 52 4f 4d 20 52 45 4c |CHANGES |FROM REL| |00000dd0| 45 41 53 45 20 4f 4e 45 | 0a 3d 3d 3d 3d 3d 3d 3d |EASE ONE|.=======| |00000de0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========| |00000df0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========| |00000e00| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========| |00000e10| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========| |00000e20| 3d 3d 3d 3d 3d 3d 3d 3d | 0a 2d 20 41 6e 20 65 78 |========|.- An ex| |00000e30| 74 72 65 6d 65 6c 79 20 | 68 61 69 72 79 20 4c 69 |tremely |hairy Li| |00000e40| 73 70 2f 53 63 68 65 6d | 65 20 69 6e 74 65 72 66 |sp/Schem|e interf| |00000e50| 61 63 65 20 62 79 20 43 | 68 72 69 73 20 4d 63 6f |ace by C|hris Mco| |00000e60| 6e 6e 65 6c 6c 20 28 63 | 63 6d 40 63 73 2e 63 6d |nnell (c|cm@cs.cm| |00000e70| 75 2e 65 64 75 29 2e 0a | 20 20 54 68 69 73 20 70 |u.edu)..| This p| |00000e80| 61 63 6b 61 67 65 2c 20 | 69 6c 69 73 70 2e 65 6c |ackage, |ilisp.el| |00000e90| 2c 20 61 6c 6c 6f 77 73 | 20 65 6d 61 63 73 20 74 |, allows| emacs t| |00000ea0| 6f 20 71 75 65 72 79 20 | 74 68 65 20 72 75 6e 6e |o query |the runn| |00000eb0| 69 6e 67 20 70 72 6f 63 | 65 73 73 20 66 6f 72 20 |ing proc|ess for | |00000ec0| 75 73 65 66 75 6c 0a 20 | 20 73 74 61 74 65 2e 20 |useful. | state. | |00000ed0| 45 78 61 6d 70 6c 65 20 | 63 6f 6d 6d 61 6e 64 73 |Example |commands| |00000ee0| 20 61 72 65 3a 0a 20 20 | 20 20 6c 69 73 70 2d 61 | are:. | lisp-a| |00000ef0| 72 67 6c 69 73 74 20 20 | 20 20 64 69 73 70 6c 61 |rglist | displa| |00000f00| 79 20 74 68 65 20 61 72 | 67 75 6d 65 6e 74 73 20 |y the ar|guments | |00000f10| 74 61 6b 65 6e 20 62 79 | 20 74 68 65 20 63 75 72 |taken by| the cur| |00000f20| 72 65 6e 74 20 66 75 6e | 63 74 69 6f 6e 2e 0a 20 |rent fun|ction.. | |00000f30| 20 20 20 6c 69 73 70 2d | 64 65 73 63 72 69 62 65 | lisp-|describe| |00000f40| 20 20 20 63 61 6c 6c 20 | 74 68 65 20 43 6f 6d 6d | call |the Comm| |00000f50| 6f 6e 20 4c 69 73 70 20 | 44 45 53 43 52 49 42 45 |on Lisp |DESCRIBE| |00000f60| 20 66 75 6e 63 74 69 6f | 6e 20 6f 6e 20 74 68 65 | functio|n on the| |00000f70| 20 73 79 6d 62 6f 6c 0a | 20 20 20 20 09 20 20 20 | symbol.| . | |00000f80| 20 09 20 20 20 20 74 68 | 65 20 63 75 72 73 6f 72 | . th|e cursor| |00000f90| 20 69 73 20 6f 76 65 72 | 2c 20 61 6e 64 20 70 75 | is over|, and pu| |00000fa0| 74 20 74 68 65 20 72 65 | 73 75 6c 74 73 20 69 6e |t the re|sults in| |00000fb0| 20 61 20 77 69 6e 64 6f | 77 2e 0a 20 20 20 20 6c | a windo|w.. l| |00000fc0| 69 73 70 2d 6d 61 63 72 | 6f 65 78 70 61 6e 64 20 |isp-macr|oexpand | |00000fd0| 6d 61 63 72 6f 65 78 70 | 61 6e 64 20 74 68 65 20 |macroexp|and the | |00000fe0| 63 75 72 72 65 6e 74 20 | 66 6f 72 6d 20 61 6e 64 |current |form and| |00000ff0| 20 64 69 73 70 6c 61 79 | 20 74 68 65 20 72 65 73 | display| the res| |00001000| 75 6c 74 73 2e 0a 20 20 | 20 20 6c 69 73 70 2d 66 |ults.. | lisp-f| |00001010| 69 6e 64 2d 73 6f 75 72 | 63 65 20 45 64 69 74 20 |ind-sour|ce Edit | |00001020| 74 68 65 20 66 69 6c 65 | 20 74 68 61 74 20 64 65 |the file| that de| |00001030| 66 69 6e 65 73 20 74 68 | 65 20 66 75 6e 63 74 69 |fines th|e functi| |00001040| 6f 6e 20 74 68 65 20 70 | 6f 69 6e 74 20 69 73 20 |on the p|oint is | |00001050| 6f 6e 2e 0a 20 20 20 20 | 65 64 69 74 2d 6e 65 78 |on.. |edit-nex| |00001060| 74 2d 63 61 6c 6c 65 72 | 20 45 64 69 74 20 74 68 |t-caller| Edit th| |00001070| 65 20 6e 65 78 74 20 70 | 6c 61 63 65 20 74 68 69 |e next p|lace thi| |00001080| 73 20 66 75 6e 63 74 69 | 6f 6e 20 69 73 20 63 61 |s functi|on is ca| |00001090| 6c 6c 65 64 2e 0a 0a 20 | 20 20 49 6c 69 73 70 2e |lled... | Ilisp.| |000010a0| 65 6c 20 61 6c 6c 6f 77 | 73 20 74 69 67 68 74 20 |el allow|s tight | |000010b0| 69 6e 74 65 67 72 61 74 | 69 6f 6e 20 77 69 74 68 |integrat|ion with| |000010c0| 20 74 68 65 20 6c 69 73 | 70 20 73 75 62 70 72 6f | the lis|p subpro| |000010d0| 63 65 73 73 20 62 79 0a | 20 20 20 73 65 6e 64 69 |cess by.| sendi| |000010e0| 6e 67 20 6d 65 73 73 61 | 67 65 73 20 74 6f 20 74 |ng messa|ges to t| |000010f0| 68 65 20 73 75 62 70 72 | 6f 63 65 73 73 20 22 62 |he subpr|ocess "b| |00001100| 65 68 69 6e 64 2d 74 68 | 65 2d 73 63 65 6e 65 73 |ehind-th|e-scenes| |00001110| 22 20 6f 76 65 72 20 74 | 68 65 0a 20 20 20 75 73 |" over t|he. us| |00001120| 65 72 27 73 20 63 6f 6e | 6e 65 63 74 69 6f 6e 2e |er's con|nection.| |00001130| 20 49 74 20 64 6f 65 73 | 20 6e 6f 74 20 61 73 73 | It does| not ass| |00001140| 75 6d 65 20 61 20 6d 75 | 6c 74 69 74 68 72 65 61 |ume a mu|ltithrea| |00001150| 64 65 64 20 6c 69 73 70 | 20 28 61 73 20 69 6e 0a |ded lisp| (as in.| |00001160| 20 20 20 46 72 61 6e 7a | 20 49 6e 63 2e 27 73 20 | Franz| Inc.'s | |00001170| 41 6c 6c 65 67 72 6f 20 | 43 6f 6d 6d 6f 6e 20 4c |Allegro |Common L| |00001180| 69 73 70 29 2e 20 28 48 | 6f 77 65 76 65 72 2c 20 |isp). (H|owever, | |00001190| 69 74 20 63 6f 75 6c 64 | 20 63 65 72 74 61 69 6e |it could| certain| |000011a0| 6c 79 20 62 65 0a 20 20 | 20 70 6f 72 74 65 64 20 |ly be. | ported | |000011b0| 74 6f 20 74 61 6b 65 20 | 61 64 76 61 6e 74 61 67 |to take |advantag| |000011c0| 65 20 6f 66 20 61 20 6d | 75 6c 74 69 74 68 72 65 |e of a m|ultithre| |000011d0| 61 64 65 64 20 6c 69 73 | 70 2c 20 70 72 6f 76 69 |aded lis|p, provi| |000011e0| 64 69 6e 67 20 67 72 65 | 61 74 65 72 0a 20 20 20 |ding gre|ater. | |000011f0| 63 6f 6d 6d 75 6e 69 63 | 61 74 69 6f 6e 73 20 72 |communic|ations r| |00001200| 6f 62 75 73 74 6e 65 73 | 73 20 77 69 74 68 6f 75 |obustnes|s withou| |00001210| 74 20 61 6c 74 65 72 69 | 6e 67 20 74 68 65 20 69 |t alteri|ng the i| |00001220| 6e 74 65 72 66 61 63 65 | 20 66 75 6e 63 74 69 6f |nterface| functio| |00001230| 6e 61 6c 69 74 79 0a 20 | 20 20 61 74 20 61 6c 6c |nality. | at all| |00001240| 2e 20 41 6e 79 6f 6e 65 | 20 69 6e 74 65 72 65 73 |. Anyone| interes| |00001250| 74 65 64 20 69 6e 20 64 | 6f 69 6e 67 20 73 6f 20 |ted in d|oing so | |00001260| 73 68 6f 75 6c 64 20 63 | 6f 6e 74 61 63 74 20 43 |should c|ontact C| |00001270| 68 72 69 73 2e 29 0a 0a | 20 20 20 49 6c 69 73 70 |hris.)..| Ilisp| |00001280| 20 63 61 6e 20 62 65 20 | 63 75 73 74 6f 6d 69 73 | can be |customis| |00001290| 65 64 20 66 6f 72 20 6d | 6f 73 74 20 6d 61 6a 6f |ed for m|ost majo| |000012a0| 72 20 64 69 61 6c 65 63 | 74 73 20 6f 66 20 4c 69 |r dialec|ts of Li| |000012b0| 73 70 20 61 6e 64 20 53 | 63 68 65 6d 65 2e 20 54 |sp and S|cheme. T| |000012c0| 68 69 73 0a 20 20 20 70 | 61 63 6b 61 67 65 20 69 |his. p|ackage i| |000012d0| 73 20 73 6f 20 6d 61 73 | 73 69 76 65 20 69 74 20 |s so mas|sive it | |000012e0| 69 73 20 62 65 69 6e 67 | 20 72 65 6c 65 61 73 65 |is being| release| |000012f0| 64 20 69 6e 20 61 20 73 | 65 70 61 72 61 74 65 20 |d in a s|eparate | |00001300| 70 6f 73 74 20 62 79 20 | 43 68 72 69 73 2e 0a 20 |post by |Chris.. | |00001310| 20 20 49 27 76 65 20 69 | 6e 63 6c 75 64 65 64 20 | I've i|ncluded | |00001320| 61 20 64 75 6d 62 2c 20 | 73 69 6d 70 6c 65 20 69 |a dumb, |simple i| |00001330| 6e 66 65 72 69 6f 72 2d | 6c 69 73 70 20 70 61 63 |nferior-|lisp pac| |00001340| 6b 61 67 65 20 69 6e 20 | 74 68 69 73 20 72 65 6c |kage in |this rel| |00001350| 65 61 73 65 2c 20 61 73 | 20 77 65 6c 6c 0a 20 20 |ease, as| well. | |00001360| 20 28 63 6d 75 6c 69 73 | 70 2e 65 6c 29 2e 0a 0a | (cmulis|p.el)...| |00001370| 2d 20 41 20 6e 65 77 20 | 70 61 63 6b 61 67 65 2c |- A new |package,| |00001380| 20 62 61 63 6b 67 72 6f | 75 6e 64 2e 65 6c 20 74 | backgro|und.el t| |00001390| 68 61 74 20 61 6c 6c 6f | 77 73 20 79 6f 75 20 74 |hat allo|ws you t| |000013a0| 6f 20 72 75 6e 20 62 61 | 63 6b 67 72 6f 75 6e 64 |o run ba|ckground| |000013b0| 20 70 72 6f 63 65 73 73 | 65 73 20 69 6e 20 0a 20 | process|es in . | |000013c0| 20 62 75 66 66 65 72 73 | 2e 20 54 68 69 73 20 77 | buffers|. This w| |000013d0| 61 73 20 61 64 61 70 74 | 65 64 20 66 6f 72 20 63 |as adapt|ed for c| |000013e0| 6f 6d 69 6e 74 2e 65 6c | 20 66 72 6f 6d 20 4a 6f |omint.el| from Jo| |000013f0| 65 20 4b 65 61 6e 65 27 | 73 20 62 61 63 6b 67 72 |e Keane'|s backgr| |00001400| 6f 75 6e 64 2e 65 6c 2e | 0a 0a 2d 20 41 20 76 65 |ound.el.|..- A ve| |00001410| 72 79 20 68 61 69 72 79 | 20 54 65 58 20 61 6e 64 |ry hairy| TeX and| |00001420| 20 4c 61 54 65 58 20 70 | 61 63 6b 61 67 65 2e 20 | LaTeX p|ackage. | |00001430| 54 68 69 73 20 69 6e 63 | 6c 75 64 65 73 20 62 75 |This inc|ludes bu| |00001440| 66 66 65 72 20 76 61 6c | 69 64 61 74 69 6f 6e 2c |ffer val|idation,| |00001450| 0a 20 20 63 6f 6d 6d 61 | 6e 64 20 65 6e 74 72 79 |. comma|nd entry| |00001460| 20 63 6f 6d 6d 61 6e 64 | 73 2c 20 70 72 6f 63 65 | command|s, proce| |00001470| 73 73 20 69 6e 74 65 72 | 66 61 63 65 73 20 74 6f |ss inter|faces to| |00001480| 20 54 65 58 2c 20 4c 61 | 54 65 58 2c 20 64 76 69 | TeX, La|TeX, dvi| |00001490| 20 70 72 69 6e 74 65 72 | 73 20 61 6e 64 0a 20 20 | printer|s and. | |000014a0| 70 72 65 76 69 65 77 65 | 72 73 2e 20 50 69 65 63 |previewe|rs. Piec| |000014b0| 65 73 20 6f 66 20 74 68 | 69 73 20 68 61 76 65 20 |es of th|is have | |000014c0| 62 65 65 6e 20 63 6f 6e | 74 72 69 62 75 74 65 64 |been con|tributed| |000014d0| 20 62 79 20 6d 61 6e 79 | 20 70 65 6f 70 6c 65 2c | by many| people,| |000014e0| 0a 20 20 6e 6f 74 61 62 | 6c 79 20 53 74 65 76 65 |. notab|ly Steve| |000014f0| 20 41 6e 64 65 72 73 6f | 6e 2c 20 53 74 65 70 68 | Anderso|n, Steph| |00001500| 65 6e 20 47 69 6c 64 65 | 61 2c 20 44 6f 72 61 62 |en Gilde|a, Dorab| |00001510| 20 50 61 74 65 6c 2c 20 | 61 6e 64 20 41 73 68 77 | Patel, |and Ashw| |00001520| 69 6e 20 52 61 6d 2e 0a | 0a 2d 20 4c 6f 74 73 20 |in Ram..|.- Lots | |00001530| 6f 66 20 74 77 65 61 6b | 73 20 74 6f 20 74 68 65 |of tweak|s to the| |00001540| 20 62 61 73 69 63 20 63 | 6f 6d 69 6e 74 20 70 61 | basic c|omint pa| |00001550| 63 6b 61 67 65 2c 20 6d | 61 6e 79 20 63 6f 6e 74 |ckage, m|any cont| |00001560| 72 69 62 75 74 65 64 20 | 62 79 20 6f 74 68 65 72 |ributed |by other| |00001570| 0a 20 20 70 65 6f 70 6c | 65 2e 0a 20 20 2b 20 41 |. peopl|e.. + A| |00001580| 20 6e 65 77 20 69 6e 70 | 75 74 20 68 69 73 74 6f | new inp|ut histo| |00001590| 72 79 20 63 6f 6d 6d 61 | 6e 64 20 63 6f 6d 69 6e |ry comma|nd comin| |000015a0| 74 2d 70 72 65 76 69 6f | 75 73 2d 73 69 6d 69 6c |t-previo|us-simil| |000015b0| 61 72 2d 69 6e 70 75 74 | 20 28 4d 2d 73 29 20 74 |ar-input| (M-s) t| |000015c0| 61 6b 65 6e 0a 20 20 20 | 20 66 72 6f 6d 20 73 6f |aken. | from so| |000015d0| 6d 65 20 4c 69 73 70 4d | 20 69 6e 74 65 72 66 61 |me LispM| interfa| |000015e0| 63 65 2e 20 54 68 69 73 | 20 69 73 20 2a 71 75 69 |ce. This| is *qui| |000015f0| 74 65 2a 20 75 73 65 66 | 75 6c 2e 0a 20 20 2b 20 |te* usef|ul.. + | |00001600| 54 68 65 20 6f 74 68 65 | 72 20 69 6e 70 75 74 20 |The othe|r input | |00001610| 68 69 73 74 6f 72 79 20 | 63 6f 6d 6d 61 6e 64 73 |history |commands| |00001620| 20 68 61 76 65 20 62 65 | 65 6e 20 69 6d 70 72 6f | have be|en impro| |00001630| 76 65 64 2e 0a 20 20 2b | 20 46 69 6c 65 6e 61 6d |ved.. +| Filenam| |00001640| 65 20 63 6f 6d 70 6c 65 | 74 69 6f 6e 20 68 61 73 |e comple|tion has| |00001650| 20 62 65 65 6e 20 69 6d | 70 72 6f 76 65 64 2e 0a | been im|proved..| |00001660| 20 20 2b 20 42 79 20 70 | 6f 70 75 6c 61 72 20 64 | + By p|opular d| |00001670| 65 6d 61 6e 64 2c 20 72 | 65 74 75 72 6e 20 6e 6f |emand, r|eturn no| |00001680| 77 20 6a 75 6d 70 73 20 | 74 6f 20 74 68 65 20 65 |w jumps |to the e| |00001690| 6e 64 20 6f 66 20 6c 69 | 6e 65 20 62 65 66 6f 72 |nd of li|ne befor| |000016a0| 65 20 0a 20 20 20 20 73 | 75 62 6d 69 74 74 69 6e |e . s|ubmittin| |000016b0| 67 20 69 6e 70 75 74 20 | 28 74 68 69 73 20 69 73 |g input |(this is| |000016c0| 20 73 65 74 74 61 62 6c | 65 2c 20 62 75 74 20 64 | settabl|e, but d| |000016d0| 65 66 61 75 6c 74 73 20 | 74 6f 20 74 68 65 20 65 |efaults |to the e| |000016e0| 6f 6c 20 62 65 68 61 76 | 69 6f 72 29 2e 0a 20 20 |ol behav|ior).. | |000016f0| 2b 20 4e 65 77 20 68 6f | 6f 6b 73 20 66 6f 72 20 |+ New ho|oks for | |00001700| 6d 6f 64 65 20 68 61 63 | 6b 65 72 73 2e 0a 20 20 |mode hac|kers.. | |00001710| 2b 20 63 6f 6d 69 6e 74 | 2d 65 78 65 63 20 6e 6f |+ comint|-exec no| |00001720| 20 6c 6f 6e 67 65 72 20 | 64 65 70 65 6e 64 65 6e | longer |dependen| |00001730| 74 20 6f 6e 20 65 74 63 | 2f 65 6e 76 20 70 72 6f |t on etc|/env pro| |00001740| 67 72 61 6d 2e 0a 20 20 | 2b 20 50 72 6f 63 65 73 |gram.. |+ Proces| |00001750| 73 20 63 6f 6d 6d 75 6e | 69 63 61 74 69 6f 6e 20 |s commun|ication | |00001760| 76 69 61 20 70 69 70 65 | 73 20 73 75 70 70 6f 72 |via pipe|s suppor| |00001770| 74 65 64 20 62 65 74 74 | 65 72 2e 0a 20 20 2b 20 |ted bett|er.. + | |00001780| 53 69 6d 70 6c 65 20 70 | 72 6f 63 65 73 73 2d 71 |Simple p|rocess-q| |00001790| 75 65 72 79 20 66 61 63 | 69 6c 69 74 79 20 61 76 |uery fac|ility av| |000017a0| 61 69 6c 61 62 6c 65 2e | 0a 20 20 2b 20 4e 65 77 |ailable.|. + New| |000017b0| 20 70 72 6f 63 65 64 75 | 72 65 73 20 66 6f 72 20 | procedu|res for | |000017c0| 73 65 6e 64 69 6e 67 20 | 69 6e 70 75 74 20 74 6f |sending |input to| |000017d0| 20 70 72 6f 63 65 73 73 | 65 73 20 74 68 61 74 20 | process|es that | |000017e0| 61 76 6f 69 64 20 68 61 | 6e 67 69 6e 67 0a 20 20 |avoid ha|nging. | |000017f0| 20 20 6f 6e 20 6c 61 72 | 67 65 20 74 65 78 74 20 | on lar|ge text | |00001800| 62 6c 6f 63 6b 73 2e 0a | 0a 2d 20 54 77 65 61 6b |blocks..|.- Tweak| |00001810| 73 20 74 6f 20 74 68 65 | 20 6f 74 68 65 72 20 70 |s to the| other p| |00001820| 61 63 6b 61 67 65 73 3a | 0a 20 20 2b 20 49 6d 70 |ackages:|. + Imp| |00001830| 72 6f 76 65 64 20 64 69 | 72 65 63 74 6f 72 79 20 |roved di|rectory | |00001840| 74 72 61 63 6b 69 6e 67 | 20 69 6e 20 63 6d 75 73 |tracking| in cmus| |00001850| 68 65 6c 6c 2e 65 6c 2e | 20 49 74 20 6e 6f 77 20 |hell.el.| It now | |00001860| 68 61 6e 64 6c 65 73 0a | 20 20 20 20 61 6c 6c 20 |handles.| all | |00001870| 66 6f 72 6d 73 20 6f 66 | 20 70 75 73 68 64 20 61 |forms of| pushd a| |00001880| 6e 64 20 70 6f 70 64 2e | 20 4e 65 77 20 63 6f 6d |nd popd.| New com| |00001890| 6d 61 6e 64 73 20 64 69 | 72 74 72 61 63 6b 2d 74 |mands di|rtrack-t| |000018a0| 6f 67 67 6c 65 20 61 6e | 64 0a 20 20 20 20 64 69 |oggle an|d. di| |000018b0| 72 73 20 74 6f 67 67 6c | 65 20 74 68 65 20 64 69 |rs toggl|e the di| |000018c0| 72 65 63 74 6f 72 79 20 | 74 72 61 63 6b 69 6e 67 |rectory |tracking| |000018d0| 20 6d 61 63 68 69 6e 65 | 72 79 20 6f 66 66 20 61 | machine|ry off a| |000018e0| 6e 64 20 6f 6e 2c 20 61 | 6e 64 0a 20 20 20 20 72 |nd on, a|nd. r| |000018f0| 65 73 79 6e 63 20 74 68 | 65 20 6d 6f 64 65 27 73 |esync th|e mode's| |00001900| 20 64 69 72 65 63 74 6f | 72 79 20 73 74 61 63 6b | directo|ry stack| |00001910| 20 77 69 74 68 20 74 68 | 65 20 73 68 65 6c 6c 27 | with th|e shell'| |00001920| 73 2e 0a 20 20 2b 20 63 | 6d 75 73 68 65 6c 6c 20 |s.. + c|mushell | |00001930| 61 6e 64 20 63 6d 75 6c | 69 73 70 20 6d 6f 64 65 |and cmul|isp mode| |00001940| 73 20 6e 6f 77 20 72 65 | 73 69 64 65 20 69 6e 20 |s now re|side in | |00001950| 73 65 70 61 72 61 74 65 | 20 66 69 6c 65 73 0a 20 |separate| files. | |00001960| 20 20 20 63 6d 75 73 68 | 65 6c 6c 2e 65 6c 20 61 | cmush|ell.el a| |00001970| 6e 64 20 63 6d 75 6c 69 | 73 70 2e 65 6c 2e 20 4e |nd cmuli|sp.el. N| |00001980| 6f 74 20 6f 6e 6c 79 20 | 69 73 20 74 68 69 73 20 |ot only |is this | |00001990| 61 20 67 6f 6f 64 20 69 | 64 65 61 2c 20 0a 20 20 |a good i|dea, . | |000019a0| 20 20 69 74 27 73 20 61 | 70 70 61 72 65 6e 74 6c | it's a|pparentl| |000019b0| 79 20 74 68 65 20 77 61 | 79 20 69 74 27 6c 6c 20 |y the wa|y it'll | |000019c0| 62 65 20 72 65 6c 20 31 | 39 2e 20 4e 2e 42 2e 3a |be rel 1|9. N.B.:| |000019d0| 20 43 4d 55 4c 49 53 50 | 20 55 53 45 52 53 0a 20 | CMULISP| USERS. | |000019e0| 20 20 20 4d 55 53 54 20 | 43 48 41 4e 47 45 20 54 | MUST |CHANGE T| |000019f0| 48 45 49 52 20 2e 45 4d | 41 43 53 20 41 55 54 4f |HEIR .EM|ACS AUTO| |00001a00| 4c 4f 41 44 27 53 20 41 | 43 43 4f 52 44 49 4e 47 |LOAD'S A|CCORDING| |00001a10| 4c 59 2e 0a 20 20 2b 20 | 62 65 74 74 65 72 20 73 |LY.. + |better s| |00001a20| 75 70 70 6f 72 74 20 66 | 6f 72 20 6d 75 6c 74 69 |upport f|or multi| |00001a30| 70 6c 65 20 70 72 6f 63 | 65 73 73 65 73 20 69 6e |ple proc|esses in| |00001a40| 20 63 6d 75 6c 69 73 70 | 2c 20 63 6d 75 73 63 68 | cmulisp|, cmusch| |00001a50| 65 6d 65 20 0a 20 20 20 | 20 61 6e 64 20 74 65 61 |eme . | and tea| |00001a60| 20 6d 6f 64 65 73 2e 0a | 20 20 2b 20 63 6d 75 6c | modes..| + cmul| |00001a70| 69 73 70 20 68 61 73 20 | 73 6f 6d 65 20 73 69 6d |isp has |some sim| |00001a80| 70 6c 65 20 71 75 65 72 | 79 20 63 6f 6d 6d 61 6e |ple quer|y comman| |00001a90| 64 73 2c 20 66 6f 72 20 | 66 75 6e 63 74 69 6f 6e |ds, for |function| |00001aa0| 20 61 6e 64 0a 20 20 20 | 20 76 61 72 69 61 62 6c | and. | variabl| |00001ab0| 65 20 64 6f 63 75 6d 65 | 6e 74 61 74 69 6f 6e 2c |e docume|ntation,| |00001ac0| 20 64 65 73 63 72 69 62 | 69 6e 67 20 73 79 6d 62 | describ|ing symb| |00001ad0| 6f 6c 73 2c 20 61 6e 64 | 20 67 65 74 74 69 6e 67 |ols, and| getting| |00001ae0| 0a 20 20 20 20 66 75 6e | 63 74 69 6f 6e 20 61 72 |. fun|ction ar| |00001af0| 67 6c 69 73 74 73 2e 20 | 54 68 69 73 20 69 73 20 |glists. |This is | |00001b00| 61 20 73 69 6d 70 6c 65 | 20 66 61 63 69 6c 69 74 |a simple| facilit| |00001b10| 79 3b 20 43 68 72 69 73 | 20 4d 63 43 6f 6e 6e 65 |y; Chris| McConne| |00001b20| 6c 6c 27 73 0a 20 20 20 | 20 69 6c 69 73 70 20 70 |ll's. | ilisp p| |00001b30| 61 63 6b 61 67 65 20 69 | 73 20 6d 75 63 68 20 6d |ackage i|s much m| |00001b40| 6f 72 65 20 66 65 61 74 | 75 72 65 66 75 6c 2e 20 |ore feat|ureful. | |00001b50| 49 74 20 77 61 73 20 62 | 61 73 65 64 20 6f 6e 20 |It was b|ased on | |00001b60| 73 6f 6d 65 20 63 6f 64 | 65 0a 20 20 20 20 63 6f |some cod|e. co| |00001b70| 6e 74 72 69 62 75 74 65 | 64 20 62 79 20 44 6f 75 |ntribute|d by Dou| |00001b80| 67 20 52 6f 62 65 72 74 | 73 2e 0a 20 20 2b 20 63 |g Robert|s.. + c| |00001b90| 6d 75 6c 69 73 70 2c 20 | 63 6d 75 73 63 68 65 6d |mulisp, |cmuschem| |00001ba0| 65 2c 20 61 6e 64 20 74 | 65 61 20 6e 6f 77 20 68 |e, and t|ea now h| |00001bb0| 61 76 65 20 61 20 63 6f | 6d 6d 61 6e 64 20 28 63 |ave a co|mmand (c| |00001bc0| 2d 78 20 63 2d 65 29 20 | 74 6f 20 65 76 61 6c 20 |-x c-e) |to eval | |00001bd0| 74 68 65 0a 20 20 20 20 | 6c 61 73 74 20 73 65 78 |the. |last sex| |00001be0| 70 2e 20 54 68 65 20 6b | 65 79 62 69 6e 64 69 6e |p. The k|eybindin| |00001bf0| 67 20 69 73 20 63 6f 6d | 70 61 74 69 62 6c 65 20 |g is com|patible | |00001c00| 77 69 74 68 20 65 6d 61 | 63 73 20 6c 69 73 70 20 |with ema|cs lisp | |00001c10| 61 6e 64 20 48 65 6d 6c | 6f 63 6b 2e 0a 20 20 2b |and Heml|ock.. +| |00001c20| 20 46 69 6c 65 6e 61 6d | 65 20 64 65 66 61 75 6c | Filenam|e defaul| |00001c30| 74 73 20 69 6e 20 53 63 | 68 65 6d 65 20 61 6e 64 |ts in Sc|heme and| |00001c40| 20 4c 69 73 70 20 6d 6f | 64 65 73 20 77 69 6c 6c | Lisp mo|des will| |00001c50| 20 75 73 65 20 74 68 65 | 20 73 74 72 69 6e 67 0a | use the| string.| |00001c60| 20 20 20 20 74 68 65 20 | 63 75 72 73 6f 72 20 69 | the |cursor i| |00001c70| 73 20 6f 76 65 72 2c 20 | 69 66 20 69 74 27 73 20 |s over, |if it's | |00001c80| 61 6e 20 65 78 69 73 74 | 69 6e 67 20 66 69 6c 65 |an exist|ing file| |00001c90| 6e 61 6d 65 2e 20 54 68 | 69 73 20 69 73 20 61 0a |name. Th|is is a.| |00001ca0| 20 20 20 20 64 65 62 61 | 74 61 62 6c 65 20 64 65 | deba|table de| |00001cb0| 63 69 73 69 6f 6e 2e 20 | 46 65 65 64 62 61 63 6b |cision. |Feedback| |00001cc0| 20 61 70 70 72 65 63 69 | 61 74 65 64 2e 0a 0a 47 | appreci|ated...G| |00001cd0| 45 4e 45 52 41 4c 20 4e | 4f 54 45 53 0a 3d 3d 3d |ENERAL N|OTES.===| |00001ce0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========| |00001cf0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========| |00001d00| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========| |00001d10| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========| |00001d20| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 0a 44 69 72 |========|====.Dir| |00001d30| 65 63 74 6f 72 79 20 74 | 72 61 63 6b 69 6e 67 3a |ectory t|racking:| |00001d40| 0a 54 68 65 20 6e 65 77 | 20 64 69 72 65 63 74 6f |.The new| directo| |00001d50| 72 79 20 74 72 61 63 6b | 69 6e 67 20 63 6f 64 65 |ry track|ing code| |00001d60| 20 77 69 6c 6c 20 68 61 | 6e 64 6c 65 0a 20 20 20 | will ha|ndle. | |00001d70| 20 70 75 73 68 64 20 5b | 2b 6e 20 7c 20 3c 64 69 | pushd [|+n | <di| |00001d80| 72 3e 5d 0a 20 20 20 20 | 70 6f 70 64 20 5b 2b 6e |r>]. |popd [+n| |00001d90| 5d 0a 20 20 20 20 63 64 | 20 5b 3c 64 69 72 3e 5d |]. cd| [<dir>]| |00001da0| 0a 54 68 65 20 65 6d 61 | 63 73 20 63 6f 6d 6d 61 |.The ema|cs comma| |00001db0| 6e 64 20 4d 2d 78 20 64 | 69 72 73 20 77 69 6c 6c |nd M-x d|irs will| |00001dc0| 20 73 74 75 66 66 20 61 | 20 22 64 69 72 73 22 20 | stuff a| "dirs" | |00001dd0| 61 74 20 74 68 65 20 70 | 72 6f 63 65 73 73 2c 20 |at the p|rocess, | |00001de0| 77 61 69 74 20 66 6f 72 | 0a 61 20 6c 69 6e 65 20 |wait for|.a line | |00001df0| 6f 66 20 6f 75 74 70 75 | 74 2c 20 70 61 72 73 65 |of outpu|t, parse| |00001e00| 20 69 74 20 75 70 2c 20 | 61 6e 64 20 72 65 73 65 | it up, |and rese| |00001e10| 74 20 74 68 65 20 62 75 | 66 66 65 72 27 73 20 64 |t the bu|ffer's d| |00001e20| 69 72 65 63 74 6f 72 79 | 0a 73 74 61 63 6b 20 61 |irectory|.stack a| |00001e30| 63 63 6f 72 64 69 6e 67 | 6c 79 2e 20 54 68 65 20 |ccording|ly. The | |00001e40| 65 6d 61 63 73 20 63 6f | 6d 6d 61 6e 64 20 4d 2d |emacs co|mmand M-| |00001e50| 78 20 64 69 72 74 72 61 | 63 6b 2d 74 6f 67 67 6c |x dirtra|ck-toggl| |00001e60| 65 20 77 69 6c 6c 20 74 | 6f 67 67 6c 65 0a 74 68 |e will t|oggle.th| |00001e70| 65 20 64 69 72 65 63 74 | 6f 72 79 20 74 72 61 63 |e direct|ory trac| |00001e80| 6b 69 6e 67 20 6d 61 63 | 68 69 6e 65 72 79 20 6f |king mac|hinery o| |00001e90| 6e 20 61 6e 64 20 6f 66 | 66 2e 20 54 68 69 73 20 |n and of|f. This | |00001ea0| 69 73 20 75 73 65 66 75 | 6c 2c 20 66 6f 72 20 65 |is usefu|l, for e| |00001eb0| 78 61 6d 70 6c 65 2c 0a | 77 68 65 6e 20 79 6f 75 |xample,.|when you| |00001ec0| 20 61 72 65 20 72 75 6e | 6e 69 6e 67 20 66 74 70 | are run|ning ftp| |00001ed0| 2c 20 61 6e 64 20 64 6f | 6e 27 74 20 77 61 6e 74 |, and do|n't want| |00001ee0| 20 66 74 70 27 73 20 22 | 63 64 22 20 63 6f 6d 6d | ftp's "|cd" comm| |00001ef0| 61 6e 64 20 74 6f 20 74 | 68 72 6f 77 0a 65 6d 61 |and to t|hrow.ema| |00001f00| 63 73 20 6f 66 66 2e 0a | 0a 54 68 65 20 6e 65 77 |cs off..|.The new| |00001f10| 20 63 6f 64 65 20 77 61 | 73 20 62 61 73 65 64 20 | code wa|s based | |00001f20| 6f 6e 20 73 6f 75 72 63 | 65 20 63 6f 6e 74 72 69 |on sourc|e contri| |00001f30| 62 75 74 65 64 20 62 79 | 20 56 69 6e 63 65 20 42 |buted by| Vince B| |00001f40| 72 6f 6d 61 6e 2c 20 4d | 69 6b 65 20 43 6f 66 66 |roman, M|ike Coff| |00001f50| 69 6e 2c 0a 4a 65 66 66 | 20 50 65 63 6b 2c 20 61 |in,.Jeff| Peck, a| |00001f60| 6e 64 20 42 61 72 72 79 | 20 57 61 72 73 61 77 2e |nd Barry| Warsaw.| |00001f70| 20 49 74 73 20 73 74 72 | 75 63 74 75 72 65 20 73 | Its str|ucture s| |00001f80| 68 6f 75 6c 64 20 61 6c | 6c 6f 77 20 7a 65 61 6c |hould al|low zeal| |00001f90| 6f 75 73 20 73 68 65 6c | 6c 20 68 61 63 6b 65 72 |ous shel|l hacker| |00001fa0| 73 0a 74 6f 20 65 78 74 | 65 6e 64 20 69 74 20 70 |s.to ext|end it p| |00001fb0| 72 65 74 74 79 20 65 61 | 73 69 6c 79 2e 0a 0a 54 |retty ea|sily...T| |00001fc0| 68 65 20 63 6f 6d 6d 61 | 6e 64 73 20 74 68 61 74 |he comma|nds that| |00001fd0| 20 64 69 72 65 63 74 6f | 72 79 20 74 72 61 63 6b | directo|ry track| |00001fe0| 69 6e 67 20 6c 6f 6f 6b | 73 20 66 6f 72 20 61 72 |ing look|s for ar| |00001ff0| 65 20 63 75 73 74 6f 6d | 69 73 61 62 6c 65 2e 0a |e custom|isable..| |00002000| 49 66 20 79 6f 75 20 64 | 65 66 69 6e 65 20 61 6c |If you d|efine al| |00002010| 69 61 73 65 73 20 66 6f | 72 20 63 64 20 6f 72 20 |iases fo|r cd or | |00002020| 70 75 73 68 64 20 6f 72 | 20 70 6f 70 64 2c 20 79 |pushd or| popd, y| |00002030| 6f 75 20 63 61 6e 20 73 | 65 74 20 74 68 65 20 72 |ou can s|et the r| |00002040| 69 67 68 74 0a 65 6d 61 | 63 73 20 76 61 72 69 61 |ight.ema|cs varia| |00002050| 62 6c 65 73 20 61 6e 64 | 20 77 69 6e 2e 0a 0a 4e |bles and| win...N| |00002060| 6f 74 65 20 74 68 61 74 | 20 69 6e 20 67 65 6e 65 |ote that| in gene| |00002070| 72 61 6c 2c 20 63 6f 6d | 70 6c 65 78 20 64 69 72 |ral, com|plex dir| |00002080| 65 63 74 6f 72 79 20 74 | 72 61 63 6b 69 6e 67 20 |ectory t|racking | |00002090| 69 73 20 61 20 6c 6f 73 | 69 6e 67 20 67 61 6d 65 |is a los|ing game| |000020a0| 2e 0a 59 6f 75 20 63 61 | 6e 27 74 20 77 69 6e 2e |..You ca|n't win.| |000020b0| 20 49 66 20 79 6f 75 20 | 68 61 76 65 20 61 20 70 | If you |have a p| |000020c0| 72 6f 67 72 61 6d 6d 61 | 62 6c 65 20 73 68 65 6c |rogramma|ble shel| |000020d0| 6c 2c 20 61 6e 20 65 78 | 63 65 6c 6c 65 6e 74 20 |l, an ex|cellent | |000020e0| 68 61 63 6b 0a 69 73 20 | 74 6f 20 70 72 6f 67 72 |hack.is |to progr| |000020f0| 61 6d 20 74 68 65 20 64 | 69 72 65 63 74 6f 72 79 |am the d|irectory| |00002100| 2d 63 68 61 6e 67 69 6e | 67 20 63 6f 6d 6d 61 6e |-changin|g comman| |00002110| 64 73 20 74 6f 20 74 79 | 70 65 20 63 6f 64 65 20 |ds to ty|pe code | |00002120| 73 65 71 75 65 6e 63 65 | 73 0a 61 74 20 74 68 65 |sequence|s.at the| |00002130| 20 74 65 72 6d 69 6e 61 | 6c 2c 20 61 6e 64 20 77 | termina|l, and w| |00002140| 72 69 74 65 20 61 20 70 | 72 6f 63 65 73 73 20 66 |rite a p|rocess f| |00002150| 69 6c 74 65 72 20 74 6f | 20 77 61 74 63 68 20 66 |ilter to| watch f| |00002160| 6f 72 20 74 68 65 73 65 | 20 73 65 71 75 65 6e 63 |or these| sequenc| |00002170| 65 73 2e 0a 41 20 73 65 | 71 75 65 6e 63 65 20 6c |es..A se|quence l| |00002180| 69 6b 65 20 22 45 53 43 | 20 44 20 3c 6c 65 6e 67 |ike "ESC| D <leng| |00002190| 74 68 3e 20 3c 64 69 72 | 65 63 74 6f 72 79 3e 22 |th> <dir|ectory>"| |000021a0| 20 77 68 65 72 65 20 3c | 64 69 72 65 63 74 6f 72 | where <|director| |000021b0| 79 3e 20 69 73 20 3c 6c | 65 6e 67 74 68 3e 0a 63 |y> is <l|ength>.c| |000021c0| 68 61 72 61 63 74 65 72 | 73 20 6c 6f 6e 67 20 77 |haracter|s long w| |000021d0| 6f 75 6c 64 20 64 6f 20 | 66 69 6e 65 2e 20 28 55 |ould do |fine. (U| |000021e0| 73 69 6e 67 20 61 20 3c | 6c 65 6e 67 74 68 3e 20 |sing a <|length> | |000021f0| 70 61 72 61 6d 65 74 65 | 72 20 69 6e 73 74 65 61 |paramete|r instea| |00002200| 64 20 6f 66 0a 73 74 72 | 69 6e 67 20 64 65 6c 69 |d of.str|ing deli| |00002210| 6d 65 74 65 72 73 20 70 | 72 65 76 65 6e 74 73 20 |meters p|revents | |00002220| 65 6d 61 63 73 20 66 72 | 6f 6d 20 67 6f 62 62 6c |emacs fr|om gobbl| |00002230| 69 6e 67 20 75 70 20 75 | 6e 62 6f 75 6e 64 65 64 |ing up u|nbounded| |00002240| 20 61 6d 6f 75 6e 74 73 | 20 6f 66 20 73 68 65 6c | amounts| of shel| |00002250| 6c 0a 6f 75 74 70 75 74 | 20 69 6e 20 74 68 65 20 |l.output| in the | |00002260| 65 76 65 6e 74 20 74 68 | 65 20 74 65 72 6d 69 6e |event th|e termin| |00002270| 61 74 69 6e 67 20 64 65 | 6c 69 6d 69 74 65 72 20 |ating de|limiter | |00002280| 67 65 74 73 20 6c 6f 73 | 74 2e 29 0a 0a 0a 4d 75 |gets los|t.)...Mu| |00002290| 6c 74 69 70 6c 65 20 70 | 72 6f 63 65 73 73 20 62 |ltiple p|rocess b| |000022a0| 75 66 66 65 72 73 3a 0a | 4d 61 6e 79 20 70 65 6f |uffers:.|Many peo| |000022b0| 70 6c 65 20 73 75 67 67 | 65 73 74 20 77 61 79 73 |ple sugg|est ways| |000022c0| 20 74 6f 20 72 75 6e 20 | 6d 75 6c 74 69 70 6c 65 | to run |multiple| |000022d0| 20 73 68 65 6c 6c 20 62 | 75 66 66 65 72 73 2e 20 | shell b|uffers. | |000022e0| 54 68 69 73 20 64 6f 65 | 73 20 6e 6f 74 20 72 65 |This doe|s not re| |000022f0| 71 75 69 72 65 0a 65 78 | 74 72 61 20 66 65 61 74 |quire.ex|tra feat| |00002300| 75 72 65 73 2e 20 53 75 | 70 70 6f 73 65 20 79 6f |ures. Su|ppose yo| |00002310| 75 20 77 61 6e 74 20 74 | 77 6f 20 73 68 65 6c 6c |u want t|wo shell| |00002320| 20 62 75 66 66 65 72 73 | 2e 20 20 53 69 6d 70 6c | buffers|. Simpl| |00002330| 79 20 6d 61 6b 65 20 61 | 20 73 68 65 6c 6c 0a 62 |y make a| shell.b| |00002340| 75 66 66 65 72 20 77 69 | 74 68 20 4d 2d 78 20 63 |uffer wi|th M-x c| |00002350| 6d 75 73 68 65 6c 6c 2c | 20 61 6e 64 20 74 68 65 |mushell,| and the| |00002360| 6e 20 72 65 6e 61 6d 65 | 20 69 74 20 77 69 74 68 |n rename| it with| |00002370| 20 4d 2d 78 20 72 65 6e | 61 6d 65 2d 62 75 66 66 | M-x ren|ame-buff| |00002380| 65 72 2e 20 4d 61 6b 65 | 20 74 68 65 0a 6e 65 78 |er. Make| the.nex| |00002390| 74 20 73 68 65 6c 6c 20 | 77 69 74 68 20 4d 2d 78 |t shell |with M-x| |000023a0| 20 63 6d 75 73 68 65 6c | 6c 2c 20 61 6e 64 20 6e | cmushel|l, and n| |000023b0| 6f 77 20 79 6f 75 27 76 | 65 20 67 6f 74 20 74 77 |ow you'v|e got tw| |000023c0| 6f 2e 20 55 73 65 20 4d | 2d 78 20 63 6d 75 73 68 |o. Use M|-x cmush| |000023d0| 65 6c 6c 20 74 6f 20 67 | 65 74 0a 74 6f 20 74 68 |ell to g|et.to th| |000023e0| 65 20 6e 65 77 65 73 74 | 20 6f 6e 65 2c 20 61 6e |e newest| one, an| |000023f0| 64 20 43 2d 78 20 62 20 | 3c 62 75 66 6e 61 6d 65 |d C-x b |<bufname| |00002400| 3e 20 74 6f 20 67 65 74 | 20 74 6f 20 74 68 65 20 |> to get| to the | |00002410| 6f 74 68 65 72 2e 0a 0a | 4d 75 6c 74 69 70 6c 65 |other...|Multiple| |00002420| 20 4c 69 73 70 20 61 6e | 64 20 53 63 68 65 6d 65 | Lisp an|d Scheme| |00002430| 20 62 75 66 66 65 72 73 | 20 77 6f 72 6b 20 73 69 | buffers| work si| |00002440| 6d 69 6c 61 72 6c 79 2e | 20 43 6f 6d 6d 61 6e 64 |milarly.| Command| |00002450| 73 20 74 68 61 74 20 73 | 65 6e 64 20 74 65 78 74 |s that s|end text| |00002460| 0a 66 72 6f 6d 20 61 20 | 73 6f 75 72 63 65 20 62 |.from a |source b| |00002470| 75 66 66 65 72 20 74 6f | 20 74 68 65 20 70 72 6f |uffer to| the pro| |00002480| 63 65 73 73 20 62 75 66 | 66 65 72 20 77 69 6c 6c |cess buf|fer will| |00002490| 20 61 6c 77 61 79 73 20 | 73 65 6e 64 20 74 6f 20 | always |send to | |000024a0| 74 68 65 0a 62 75 66 66 | 65 72 20 77 69 74 68 20 |the.buff|er with | |000024b0| 74 68 65 20 22 6f 66 66 | 69 63 69 61 6c 22 20 6e |the "off|icial" n| |000024c0| 61 6d 65 20 75 6e 6c 65 | 73 73 20 79 6f 75 20 65 |ame unle|ss you e| |000024d0| 78 70 6c 69 63 69 74 6c | 79 20 6f 76 65 72 72 69 |xplicitl|y overri| |000024e0| 64 65 20 74 68 69 73 0a | 28 73 65 65 20 76 61 72 |de this.|(see var| |000024f0| 69 61 62 6c 65 20 6c 69 | 73 70 2f 73 63 68 65 6d |iable li|sp/schem| |00002500| 65 2f 74 65 61 2d 62 75 | 66 66 65 72 29 2e 20 49 |e/tea-bu|ffer). I| |00002510| 20 64 6f 6e 27 74 20 73 | 65 65 20 61 6e 79 20 72 | don't s|ee any r| |00002520| 65 61 6c 20 67 6f 6f 64 | 20 77 61 79 73 20 74 6f |eal good| ways to| |00002530| 0a 65 78 74 65 6e 64 20 | 74 68 69 73 2e 20 59 6f |.extend |this. Yo| |00002540| 75 20 63 6f 75 6c 64 20 | 61 73 73 6f 63 69 61 74 |u could |associat| |00002550| 65 20 65 61 63 68 20 73 | 6f 75 72 63 65 20 62 75 |e each s|ource bu| |00002560| 66 66 65 72 20 77 69 74 | 68 20 73 6f 6d 65 20 70 |ffer wit|h some p| |00002570| 72 6f 63 65 73 73 0a 62 | 75 66 66 65 72 2c 20 62 |rocess.b|uffer, b| |00002580| 75 74 20 74 68 69 73 20 | 67 65 74 73 20 6d 65 73 |ut this |gets mes| |00002590| 73 79 2e 20 49 27 76 65 | 20 74 72 69 65 64 20 74 |sy. I've| tried t| |000025a0| 6f 20 6b 65 65 70 20 69 | 74 20 73 69 6d 70 6c 65 |o keep i|t simple| |000025b0| 2e 20 49 66 20 79 6f 75 | 20 66 69 6e 64 0a 79 6f |. If you| find.yo| |000025c0| 75 72 73 65 6c 66 20 73 | 77 69 74 63 68 69 6e 67 |urself s|witching| |000025d0| 20 62 65 74 77 65 65 6e | 20 6d 75 6c 74 69 70 6c | between| multipl| |000025e0| 65 20 70 72 6f 63 65 73 | 73 20 62 75 66 66 65 72 |e proces|s buffer| |000025f0| 73 20 61 20 6c 6f 74 2c | 20 63 6f 6e 73 69 64 65 |s a lot,| conside| |00002600| 72 20 75 73 69 6e 67 0a | 69 6c 69 73 70 2e 65 6c |r using.|ilisp.el| |00002610| 2e 20 4f 72 20 77 72 69 | 74 65 20 61 20 6c 69 74 |. Or wri|te a lit| |00002620| 74 6c 65 20 63 6f 64 65 | 20 74 6f 20 73 6f 75 70 |tle code| to soup| |00002630| 20 75 70 20 63 6d 75 6c | 69 73 70 2e 65 6c 2e 0a | up cmul|isp.el..| |00002640| 0a 0a 44 6f 63 75 6d 65 | 6e 74 61 74 69 6f 6e 3a |..Docume|ntation:| |00002650| 0a 54 68 65 72 65 20 69 | 73 20 6e 6f 20 6d 61 6e |.There i|s no man| |00002660| 75 61 6c 20 6f 72 20 69 | 6e 66 6f 20 6e 6f 64 65 |ual or i|nfo node| |00002670| 20 66 6f 72 20 61 6e 79 | 20 6f 66 20 74 68 69 73 | for any| of this| |00002680| 20 73 74 75 66 66 2e 20 | 49 20 61 6d 20 6e 6f 74 | stuff. |I am not| |00002690| 20 67 6f 69 6e 67 20 74 | 6f 0a 77 72 69 74 65 20 | going t|o.write | |000026a0| 6f 6e 65 2e 20 46 65 65 | 6c 20 66 72 65 65 20 74 |one. Fee|l free t| |000026b0| 6f 20 77 72 69 74 65 20 | 6f 6e 65 20 69 66 20 79 |o write |one if y| |000026c0| 6f 75 20 6c 69 6b 65 2c | 20 61 6e 64 20 73 75 62 |ou like,| and sub| |000026d0| 6d 69 74 20 69 74 20 74 | 6f 20 6d 65 20 6f 72 20 |mit it t|o me or | |000026e0| 74 68 65 20 46 53 46 2e | 0a 49 74 20 77 6f 75 6c |the FSF.|.It woul| |000026f0| 64 20 62 65 20 61 20 67 | 6f 6f 64 20 74 68 69 6e |d be a g|ood thin| |00002700| 67 2e 0a 0a 54 68 65 20 | 2e 65 6c 20 66 69 6c 65 |g...The |.el file| |00002710| 73 20 61 72 65 20 63 6f | 70 69 6f 75 73 6c 79 20 |s are co|piously | |00002720| 64 6f 63 75 6d 65 6e 74 | 65 64 2c 20 68 6f 77 65 |document|ed, howe| |00002730| 76 65 72 2e 20 49 66 20 | 79 6f 75 20 77 61 6e 74 |ver. If |you want| |00002740| 20 74 6f 20 75 73 65 20 | 61 6e 79 20 6f 66 0a 74 | to use |any of.t| |00002750| 68 65 73 65 20 6d 6f 64 | 65 73 2c 20 49 20 73 74 |hese mod|es, I st| |00002760| 72 6f 6e 67 6c 79 20 73 | 75 67 67 65 73 74 20 74 |rongly s|uggest t| |00002770| 68 61 74 20 79 6f 75 20 | 72 65 61 64 20 74 68 65 |hat you |read the| |00002780| 20 73 6f 75 72 63 65 20 | 66 69 6c 65 73 2e 20 20 | source |files. | |00002790| 52 65 61 6c 6c 79 2e 20 | 44 6f 0a 69 74 2e 20 54 |Really. |Do.it. T| |000027a0| 68 65 79 20 63 6f 6e 74 | 61 69 6e 20 6d 61 6e 79 |hey cont|ain many| |000027b0| 20 75 73 65 66 75 6c 20 | 73 65 63 74 69 6f 6e 73 | useful |sections| |000027c0| 20 6f 66 20 63 6f 6d 6d | 65 6e 74 73 2e 20 53 6b | of comm|ents. Sk| |000027d0| 69 70 20 61 6e 79 74 68 | 69 6e 67 20 79 6f 75 20 |ip anyth|ing you | |000027e0| 64 6f 6e 27 74 0a 75 6e | 64 65 72 73 74 61 6e 64 |don't.un|derstand| |000027f0| 3b 20 72 65 61 64 20 74 | 68 65 20 65 61 73 79 20 |; read t|he easy | |00002800| 70 61 72 74 73 2e 20 20 | 59 6f 75 20 6d 61 79 20 |parts. |You may | |00002810| 66 69 6e 64 20 73 6f 6d | 65 20 75 73 65 66 75 6c |find som|e useful| |00002820| 20 63 6f 6d 6d 61 6e 64 | 73 20 79 6f 75 20 64 69 | command|s you di| |00002830| 64 6e 27 74 0a 6b 6e 6f | 77 20 61 62 6f 75 74 2e |dn't.kno|w about.| |00002840| 20 20 54 68 65 20 74 6f | 70 20 6f 66 20 65 61 63 | The to|p of eac| |00002850| 68 20 66 69 6c 65 20 63 | 6f 6e 74 61 69 6e 73 20 |h file c|ontains | |00002860| 61 20 63 6c 65 61 72 6c | 79 2d 6d 61 72 6b 65 64 |a clearl|y-marked| |00002870| 2c 20 66 72 69 65 6e 64 | 6c 79 0a 22 73 75 67 67 |, friend|ly."sugg| |00002880| 65 73 74 69 6f 6e 73 20 | 66 6f 72 20 79 6f 75 72 |estions |for your| |00002890| 20 2e 65 6d 61 63 73 20 | 66 69 6c 65 22 20 73 65 | .emacs |file" se| |000028a0| 63 74 69 6f 6e 20 74 68 | 61 74 20 77 69 6c 6c 20 |ction th|at will | |000028b0| 73 68 6f 77 20 79 6f 75 | 20 65 78 61 63 74 6c 79 |show you| exactly| |000028c0| 20 68 6f 77 20 74 6f 0a | 67 65 74 20 73 65 74 20 | how to.|get set | |000028d0| 75 70 20 75 73 69 6e 67 | 20 74 68 65 20 70 61 63 |up using| the pac| |000028e0| 6b 61 67 65 2e 20 41 6c | 73 6f 2c 20 70 61 79 20 |kage. Al|so, pay | |000028f0| 61 74 74 65 6e 74 69 6f | 6e 20 74 6f 20 74 68 65 |attentio|n to the| |00002900| 20 44 45 46 56 41 52 27 | 64 20 76 61 72 69 61 62 | DEFVAR'|d variab| |00002910| 6c 65 73 2e 0a 54 68 65 | 73 65 20 61 72 65 20 74 |les..The|se are t| |00002920| 79 70 69 63 61 6c 6c 79 | 20 74 68 65 20 6d 65 61 |ypically| the mea| |00002930| 6e 73 20 62 79 20 77 68 | 69 63 68 20 79 6f 75 20 |ns by wh|ich you | |00002940| 63 61 6e 20 63 75 73 74 | 6f 6d 69 73 65 20 74 68 |can cust|omise th| |00002950| 65 20 70 61 63 6b 61 67 | 65 20 66 6f 72 20 79 6f |e packag|e for yo| |00002960| 75 72 0a 6c 6f 63 61 6c | 20 65 6e 76 69 72 6f 6e |ur.local| environ| |00002970| 6d 65 6e 74 2e 0a 0a 54 | 68 65 20 75 73 75 61 6c |ment...T|he usual| |00002980| 20 6f 6e 2d 6c 69 6e 65 | 20 64 6f 63 75 6d 65 6e | on-line| documen| |00002990| 74 61 74 69 6f 6e 20 6f | 6e 20 6d 6f 64 65 73 2c |tation o|n modes,| |000029a0| 20 76 61 72 69 61 62 6c | 65 73 20 61 6e 64 20 63 | variabl|es and c| |000029b0| 6f 6d 6d 61 6e 64 73 0a | 69 73 20 61 6c 73 6f 20 |ommands.|is also | |000029c0| 61 76 61 69 6c 61 62 6c | 65 20 76 69 61 20 63 2d |availabl|e via c-| |000029d0| 68 20 6d 2c 20 63 2d 68 | 20 76 2c 20 61 6e 64 20 |h m, c-h| v, and | |000029e0| 63 2d 68 20 64 2e 0a 0a | 0a 3d 3d 3d 3d 3d 3d 3d |c-h d...|.=======| |000029f0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========| |00002a00| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========| |00002a10| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========| |00002a20| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========| |00002a30| 3d 3d 3d 3d 3d 3d 3d 3d | 0a 41 20 73 68 61 72 20 |========|.A shar | |00002a40| 66 69 6c 65 20 66 6f 72 | 20 74 68 65 20 73 6f 75 |file for| the sou| |00002a50| 72 63 65 20 66 69 6c 65 | 73 20 66 6f 6c 6c 6f 77 |rce file|s follow| |00002a60| 73 2e 20 54 68 69 73 20 | 63 6f 64 65 20 69 73 20 |s. This |code is | |00002a70| 61 76 61 69 6c 61 62 6c | 65 20 75 6e 64 65 72 20 |availabl|e under | |00002a80| 74 68 65 0a 74 65 72 6d | 73 20 6f 66 20 74 68 65 |the.term|s of the| |00002a90| 20 47 6e 75 20 43 6f 70 | 79 72 69 67 68 74 20 61 | Gnu Cop|yright a| |00002aa0| 67 72 65 65 6d 65 6e 74 | 3a 20 79 6f 75 20 63 61 |greement|: you ca| |00002ab0| 6e 20 64 6f 20 77 68 61 | 74 65 76 65 72 20 79 6f |n do wha|tever yo| |00002ac0| 75 20 6c 69 6b 65 20 77 | 69 74 68 20 69 74 20 61 |u like w|ith it a| |00002ad0| 73 0a 6c 6f 6e 67 20 61 | 73 20 79 6f 75 20 64 6f |s.long a|s you do| |00002ae0| 6e 27 74 20 63 68 61 72 | 67 65 20 66 6f 72 20 69 |n't char|ge for i| |00002af0| 74 20 6f 72 20 68 6f 6c | 64 20 6d 65 20 72 65 73 |t or hol|d me res| |00002b00| 70 6f 6e 73 69 62 6c 65 | 20 66 6f 72 20 61 6e 79 |ponsible| for any| |00002b10| 74 68 69 6e 67 20 69 74 | 20 64 6f 65 73 2e 0a 50 |thing it| does..P| |00002b20| 6c 65 61 73 65 20 73 65 | 6e 64 20 61 6e 79 20 63 |lease se|nd any c| |00002b30| 6f 6d 6d 65 6e 74 73 2c | 20 69 6d 70 72 6f 76 65 |omments,| improve| |00002b40| 6d 65 6e 74 73 2c 20 62 | 75 67 20 72 65 70 6f 72 |ments, b|ug repor| |00002b50| 74 73 2c 20 66 69 78 65 | 73 20 6f 72 20 73 75 67 |ts, fixe|s or sug| |00002b60| 67 65 73 74 69 6f 6e 73 | 20 74 6f 0a 6f 6c 69 6e |gestions| to.olin| |00002b70| 2e 73 68 69 76 65 72 73 | 40 63 73 2e 63 6d 75 2e |.shivers|@cs.cmu.| |00002b80| 65 64 75 2e 0a 0a 49 20 | 77 6f 75 6c 64 20 6c 69 |edu...I |would li| |00002b90| 6b 65 20 74 6f 20 74 68 | 61 6e 6b 20 61 6c 6c 20 |ke to th|ank all | |00002ba0| 74 68 65 20 70 65 6f 70 | 6c 65 20 77 68 6f 20 74 |the peop|le who t| |00002bb0| 6f 6f 6b 20 74 68 65 20 | 74 69 6d 65 20 74 6f 20 |ook the |time to | |00002bc0| 73 65 6e 64 20 6d 65 20 | 74 68 65 20 63 6f 64 65 |send me |the code| |00002bd0| 0a 74 68 61 74 20 77 65 | 6e 74 20 69 6e 74 6f 20 |.that we|nt into | |00002be0| 74 68 69 73 20 73 65 63 | 6f 6e 64 20 72 65 6c 65 |this sec|ond rele| |00002bf0| 61 73 65 2e 0a 20 20 20 | 20 09 2d 4f 6c 69 6e 0a |ase.. | .-Olin.| |00002c00| 20 20 20 20 09 4a 75 6e | 65 20 31 32 2c 20 31 39 | .Jun|e 12, 19| |00002c10| 39 30 0a 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |90.=====|========| |00002c20| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========| |00002c30| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========| |00002c40| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========| |00002c50| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========| |00002c60| 3d 3d 0a 23 0a 23 20 74 | 79 70 65 20 20 20 20 73 |==.#.# t|ype s| |00002c70| 68 20 2f 61 66 73 2f 63 | 73 2e 63 6d 75 2e 65 64 |h /afs/c|s.cmu.ed| |00002c80| 75 2f 75 73 65 72 2f 73 | 68 69 76 65 72 73 2f 6c |u/user/s|hivers/l| |00002c90| 69 62 2f 65 6d 61 63 73 | 2f 73 68 32 20 20 20 74 |ib/emacs|/sh2 t| |00002ca0| 6f 20 75 6e 70 61 63 6b | 20 74 68 69 73 20 61 72 |o unpack| this ar| |00002cb0| 63 68 69 76 65 2e 0a 23 | 0a 65 63 68 6f 20 65 78 |chive..#|.echo ex| |00002cc0| 74 72 61 63 74 69 6e 67 | 20 63 6d 75 73 68 65 6c |tracting| cmushel| |00002cd0| 6c 2e 65 6c 2e 2e 2e 0a | 63 61 74 20 3e 63 6d 75 |l.el....|cat >cmu| |00002ce0| 73 68 65 6c 6c 2e 65 6c | 20 3c 3c 27 21 45 21 4f |shell.el| <<'!E!O| |00002cf0| 21 46 21 27 0a 3b 3b 3b | 20 2d 2a 2d 45 6d 61 63 |!F!'.;;;| -*-Emac| |00002d00| 73 2d 4c 69 73 70 2d 2a | 2d 20 47 65 6e 65 72 61 |s-Lisp-*|- Genera| |00002d10| 6c 20 63 6f 6d 6d 61 6e | 64 20 69 6e 74 65 72 70 |l comman|d interp| |00002d20| 72 65 74 65 72 20 69 6e | 20 61 20 77 69 6e 64 6f |reter in| a windo| |00002d30| 77 20 73 74 75 66 66 0a | 3b 3b 3b 20 43 6f 70 79 |w stuff.|;;; Copy| |00002d40| 72 69 67 68 74 20 4f 6c | 69 6e 20 53 68 69 76 65 |right Ol|in Shive| |00002d50| 72 73 20 28 31 39 38 38 | 29 2e 0a 3b 3b 3b 20 50 |rs (1988|)..;;; P| |00002d60| 6c 65 61 73 65 20 69 6d | 61 67 69 6e 65 20 61 20 |lease im|agine a | |00002d70| 6c 6f 6e 67 2c 20 74 65 | 64 69 6f 75 73 2c 20 6c |long, te|dious, l| |00002d80| 65 67 61 6c 69 73 74 69 | 63 20 35 2d 70 61 67 65 |egalisti|c 5-page| |00002d90| 20 67 6e 75 2d 73 74 79 | 6c 65 20 63 6f 70 79 72 | gnu-sty|le copyr| |00002da0| 69 67 68 74 0a 3b 3b 3b | 20 6e 6f 74 69 63 65 20 |ight.;;;| notice | |00002db0| 61 70 70 65 61 72 69 6e | 67 20 68 65 72 65 20 74 |appearin|g here t| |00002dc0| 6f 20 74 68 65 20 65 66 | 66 65 63 74 20 74 68 61 |o the ef|fect tha| |00002dd0| 74 20 79 6f 75 20 6d 61 | 79 20 75 73 65 20 74 68 |t you ma|y use th| |00002de0| 69 73 20 63 6f 64 65 20 | 61 6e 79 0a 3b 3b 3b 20 |is code |any.;;; | |00002df0| 77 61 79 20 79 6f 75 20 | 6c 69 6b 65 2c 20 61 73 |way you |like, as| |00002e00| 20 6c 6f 6e 67 20 61 73 | 20 79 6f 75 20 64 6f 6e | long as| you don| |00002e10| 27 74 20 63 68 61 72 67 | 65 20 6d 6f 6e 65 79 20 |'t charg|e money | |00002e20| 66 6f 72 20 69 74 2c 20 | 72 65 6d 6f 76 65 20 74 |for it, |remove t| |00002e30| 68 69 73 0a 3b 3b 3b 20 | 6e 6f 74 69 63 65 2c 20 |his.;;; |notice, | |00002e40| 6f 72 20 68 6f 6c 64 20 | 6d 65 20 6c 69 61 62 6c |or hold |me liabl| |00002e50| 65 20 66 6f 72 20 69 74 | 73 20 72 65 73 75 6c 74 |e for it|s result| |00002e60| 73 2e 0a 0a 3b 3b 3b 20 | 54 68 65 20 63 68 61 6e |s...;;; |The chan| |00002e70| 67 65 6c 6f 67 20 69 73 | 20 61 74 20 74 68 65 20 |gelog is| at the | |00002e80| 65 6e 64 20 6f 66 20 66 | 69 6c 65 2e 0a 0a 3b 3b |end of f|ile...;;| |00002e90| 3b 20 50 6c 65 61 73 65 | 20 73 65 6e 64 20 6d 65 |; Please| send me| |00002ea0| 20 62 75 67 20 72 65 70 | 6f 72 74 73 2c 20 62 75 | bug rep|orts, bu| |00002eb0| 67 20 66 69 78 65 73 2c | 20 61 6e 64 20 65 78 74 |g fixes,| and ext| |00002ec0| 65 6e 73 69 6f 6e 73 2c | 20 73 6f 20 74 68 61 74 |ensions,| so that| |00002ed0| 20 49 20 63 61 6e 0a 3b | 3b 3b 20 6d 65 72 67 65 | I can.;|;; merge| |00002ee0| 20 74 68 65 6d 20 69 6e | 74 6f 20 74 68 65 20 6d | them in|to the m| |00002ef0| 61 73 74 65 72 20 73 6f | 75 72 63 65 2e 0a 3b 3b |aster so|urce..;;| |00002f00| 3b 20 20 20 20 20 2d 20 | 4f 6c 69 6e 20 53 68 69 |; - |Olin Shi| |00002f10| 76 65 72 73 20 28 73 68 | 69 76 65 72 73 40 63 73 |vers (sh|ivers@cs| |00002f20| 2e 63 6d 75 2e 65 64 75 | 29 0a 0a 3b 3b 3b 20 54 |.cmu.edu|)..;;; T| |00002f30| 68 69 73 20 66 69 6c 65 | 20 64 65 66 69 6e 65 73 |his file| defines| |00002f40| 20 61 20 61 20 73 68 65 | 6c 6c 2d 69 6e 2d 61 2d | a a she|ll-in-a-| |00002f50| 62 75 66 66 65 72 20 70 | 61 63 6b 61 67 65 20 28 |buffer p|ackage (| |00002f60| 63 6d 75 73 68 65 6c 6c | 20 6d 6f 64 65 29 20 62 |cmushell| mode) b| |00002f70| 75 69 6c 74 20 6f 6e 0a | 3b 3b 3b 20 74 6f 70 20 |uilt on.|;;; top | |00002f80| 6f 66 20 63 6f 6d 69 6e | 74 20 6d 6f 64 65 2e 20 |of comin|t mode. | |00002f90| 20 43 6d 75 73 68 65 6c | 6c 20 6d 6f 64 65 20 69 | Cmushel|l mode i| |00002fa0| 73 20 73 69 6d 69 6c 61 | 72 20 74 6f 2c 20 61 6e |s simila|r to, an| |00002fb0| 64 20 69 6e 74 65 6e 64 | 65 64 20 74 6f 20 72 65 |d intend|ed to re| |00002fc0| 70 6c 61 63 65 2c 0a 3b | 3b 3b 20 69 74 73 20 63 |place,.;|;; its c| |00002fd0| 6f 75 6e 74 65 72 70 61 | 72 74 20 69 6e 20 74 68 |ounterpa|rt in th| |00002fe0| 65 20 73 74 61 6e 64 61 | 72 64 20 67 6e 75 20 65 |e standa|rd gnu e| |00002ff0| 6d 61 63 73 20 72 65 6c | 65 61 73 65 2e 20 54 68 |macs rel|ease. Th| |00003000| 69 73 20 72 65 70 6c 61 | 63 65 6d 65 6e 74 20 69 |is repla|cement i| |00003010| 73 0a 3b 3b 3b 20 6d 6f | 72 65 20 66 65 61 74 75 |s.;;; mo|re featu| |00003020| 72 65 66 75 6c 2c 20 72 | 6f 62 75 73 74 2c 20 61 |reful, r|obust, a| |00003030| 6e 64 20 75 6e 69 66 6f | 72 6d 20 74 68 61 6e 20 |nd unifo|rm than | |00003040| 74 68 65 20 72 65 6c 65 | 61 73 65 64 20 76 65 72 |the rele|ased ver| |00003050| 73 69 6f 6e 2e 0a 0a 3b | 3b 3b 20 53 69 6e 63 65 |sion...;|;; Since| |00003060| 20 74 68 69 73 20 6d 6f | 64 65 20 69 73 20 62 75 | this mo|de is bu| |00003070| 69 6c 74 20 6f 6e 20 74 | 6f 70 20 6f 66 20 74 68 |ilt on t|op of th| |00003080| 65 20 67 65 6e 65 72 61 | 6c 20 63 6f 6d 6d 61 6e |e genera|l comman| |00003090| 64 2d 69 6e 74 65 72 70 | 72 65 74 65 72 2d 69 6e |d-interp|reter-in| |000030a0| 2d 0a 3b 3b 3b 20 61 2d | 62 75 66 66 65 72 20 6d |-.;;; a-|buffer m| |000030b0| 6f 64 65 20 28 63 6f 6d | 69 6e 74 20 6d 6f 64 65 |ode (com|int mode| |000030c0| 29 2c 20 69 74 20 73 68 | 61 72 65 73 20 61 20 63 |), it sh|ares a c| |000030d0| 6f 6d 6d 6f 6e 20 62 61 | 73 65 20 66 75 6e 63 74 |ommon ba|se funct| |000030e0| 69 6f 6e 61 6c 69 74 79 | 2c 20 0a 3b 3b 3b 20 61 |ionality|, .;;; a| |000030f0| 6e 64 20 61 20 63 6f 6d | 6d 6f 6e 20 73 65 74 20 |nd a com|mon set | |00003100| 6f 66 20 62 69 6e 64 69 | 6e 67 73 2c 20 77 69 74 |of bindi|ngs, wit| |00003110| 68 20 61 6c 6c 20 6d 6f | 64 65 73 20 64 65 72 69 |h all mo|des deri| |00003120| 76 65 64 20 66 72 6f 6d | 20 63 6f 6d 69 6e 74 20 |ved from| comint | |00003130| 6d 6f 64 65 2e 0a 3b 3b | 3b 20 54 68 69 73 20 6d |mode..;;|; This m| |00003140| 61 6b 65 73 20 74 68 65 | 73 65 20 6d 6f 64 65 73 |akes the|se modes| |00003150| 20 65 61 73 69 65 72 20 | 74 6f 20 75 73 65 2e 0a | easier |to use..| |00003160| 0a 3b 3b 3b 20 46 6f 72 | 20 64 6f 63 75 6d 65 6e |.;;; For| documen| |00003170| 74 61 74 69 6f 6e 20 6f | 6e 20 74 68 65 20 66 75 |tation o|n the fu| |00003180| 6e 63 74 69 6f 6e 61 6c | 69 74 79 20 70 72 6f 76 |nctional|ity prov| |00003190| 69 64 65 64 20 62 79 20 | 63 6f 6d 69 6e 74 20 6d |ided by |comint m| |000031a0| 6f 64 65 2c 20 61 6e 64 | 0a 3b 3b 3b 20 74 68 65 |ode, and|.;;; the| |000031b0| 20 68 6f 6f 6b 73 20 61 | 76 61 69 6c 61 62 6c 65 | hooks a|vailable| |000031c0| 20 66 6f 72 20 63 75 73 | 74 6f 6d 69 73 69 6e 67 | for cus|tomising| |000031d0| 20 69 74 2c 20 73 65 65 | 20 74 68 65 20 66 69 6c | it, see| the fil| |000031e0| 65 20 63 6f 6d 69 6e 74 | 2e 65 6c 2e 0a 3b 3b 3b |e comint|.el..;;;| |000031f0| 20 46 6f 72 20 66 75 72 | 74 68 65 72 20 69 6e 66 | For fur|ther inf| |00003200| 6f 72 6d 61 74 69 6f 6e | 20 6f 6e 20 63 6d 75 73 |ormation| on cmus| |00003210| 68 65 6c 6c 20 6d 6f 64 | 65 2c 20 73 65 65 20 74 |hell mod|e, see t| |00003220| 68 65 20 63 6f 6d 6d 65 | 6e 74 73 20 62 65 6c 6f |he comme|nts belo| |00003230| 77 2e 0a 0a 3b 3b 3b 20 | 4e 65 65 64 73 20 66 69 |w...;;; |Needs fi| |00003240| 78 69 6e 3a 0a 3b 3b 3b | 20 57 68 65 6e 20 73 65 |xin:.;;;| When se| |00003250| 6e 64 69 6e 67 20 74 65 | 78 74 20 66 72 6f 6d 20 |nding te|xt from | |00003260| 61 20 73 6f 75 72 63 65 | 20 66 69 6c 65 20 74 6f |a source| file to| |00003270| 20 61 20 73 75 62 70 72 | 6f 63 65 73 73 2c 20 74 | a subpr|ocess, t| |00003280| 68 65 20 70 72 6f 63 65 | 73 73 2d 6d 61 72 6b 20 |he proce|ss-mark | |00003290| 63 61 6e 20 0a 3b 3b 3b | 20 6d 6f 76 65 20 6f 66 |can .;;;| move of| |000032a0| 66 20 74 68 65 20 77 69 | 6e 64 6f 77 2c 20 73 6f |f the wi|ndow, so| |000032b0| 20 79 6f 75 20 63 61 6e | 20 6c 6f 73 65 20 73 69 | you can| lose si| |000032c0| 67 68 74 20 6f 66 20 74 | 68 65 20 70 72 6f 63 65 |ght of t|he proce| |000032d0| 73 73 20 69 6e 74 65 72 | 61 63 74 69 6f 6e 73 2e |ss inter|actions.| |000032e0| 0a 3b 3b 3b 20 4d 61 79 | 62 65 20 49 20 73 68 6f |.;;; May|be I sho| |000032f0| 75 6c 64 20 65 6e 73 75 | 72 65 20 74 68 65 20 70 |uld ensu|re the p| |00003300| 72 6f 63 65 73 73 20 6d | 61 72 6b 20 69 73 20 69 |rocess m|ark is i| |00003310| 6e 20 74 68 65 20 77 69 | 6e 64 6f 77 20 77 68 65 |n the wi|ndow whe| |00003320| 6e 20 49 20 73 65 6e 64 | 0a 3b 3b 3b 20 74 65 78 |n I send|.;;; tex| |00003330| 74 20 74 6f 20 74 68 65 | 20 70 72 6f 63 65 73 73 |t to the| process| |00003340| 3f 20 53 77 69 74 63 68 | 20 73 65 6c 65 63 74 61 |? Switch| selecta| |00003350| 62 6c 65 3f 0a 0a 28 72 | 65 71 75 69 72 65 20 27 |ble?..(r|equire '| |00003360| 63 6f 6d 69 6e 74 29 0a | 28 70 72 6f 76 69 64 65 |comint).|(provide| |00003370| 20 27 63 6d 75 73 68 65 | 6c 6c 29 0a 0a 3b 3b 20 | 'cmushe|ll)..;; | |00003380| 59 4f 55 52 20 2e 45 4d | 41 43 53 20 46 49 4c 45 |YOUR .EM|ACS FILE| |00003390| 0a 3b 3b 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |.;;=====|========| |000033a0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========| |000033b0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========| |000033c0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========| |000033d0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========| |000033e0| 0a 3b 3b 20 53 6f 6d 65 | 20 73 75 67 67 65 73 74 |.;; Some| suggest| |000033f0| 69 6f 6e 73 20 66 6f 72 | 20 79 6f 75 72 20 2e 65 |ions for| your .e| |00003400| 6d 61 63 73 20 66 69 6c | 65 2e 0a 3b 3b 0a 3b 3b |macs fil|e..;;.;;| |00003410| 20 3b 20 49 66 20 63 6d | 75 73 68 65 6c 6c 20 6c | ; If cm|ushell l| |00003420| 69 76 65 73 20 69 6e 20 | 73 6f 6d 65 20 6e 6f 6e |ives in |some non| |00003430| 2d 73 74 61 6e 64 61 72 | 64 20 64 69 72 65 63 74 |-standar|d direct| |00003440| 6f 72 79 2c 20 79 6f 75 | 20 6d 75 73 74 20 74 65 |ory, you| must te| |00003450| 6c 6c 20 65 6d 61 63 73 | 0a 3b 3b 20 3b 20 77 68 |ll emacs|.;; ; wh| |00003460| 65 72 65 20 74 6f 20 67 | 65 74 20 69 74 2e 20 54 |ere to g|et it. T| |00003470| 68 69 73 20 6d 61 79 20 | 6f 72 20 6d 61 79 20 6e |his may |or may n| |00003480| 6f 74 20 62 65 20 6e 65 | 63 65 73 73 61 72 79 2e |ot be ne|cessary.| |00003490| 0a 3b 3b 20 28 73 65 74 | 71 20 6c 6f 61 64 2d 70 |.;; (set|q load-p| |000034a0| 61 74 68 20 28 63 6f 6e | 73 20 28 65 78 70 61 6e |ath (con|s (expan| |000034b0| 64 2d 66 69 6c 65 2d 6e | 61 6d 65 20 22 7e 6a 6f |d-file-n|ame "~jo| |000034c0| 6e 65 73 2f 6c 69 62 2f | 65 6d 61 63 73 22 29 20 |nes/lib/|emacs") | |000034d0| 6c 6f 61 64 2d 70 61 74 | 68 29 29 0a 3b 3b 0a 3b |load-pat|h)).;;.;| |000034e0| 3b 20 3b 20 41 75 74 6f | 6c 6f 61 64 20 63 6d 75 |; ; Auto|load cmu| |000034f0| 73 68 65 6c 6c 20 66 72 | 6f 6d 20 66 69 6c 65 20 |shell fr|om file | |00003500| 63 6d 75 73 68 65 6c 6c | 2e 65 6c 0a 3b 3b 20 28 |cmushell|.el.;; (| |00003510| 61 75 74 6f 6c 6f 61 64 | 20 27 63 6d 75 73 68 65 |autoload| 'cmushe| |00003520| 6c 6c 20 22 63 6d 75 73 | 68 65 6c 6c 22 0a 3b 3b |ll "cmus|hell".;;| |00003530| 20 20 20 20 20 20 20 20 | 20 20 20 22 52 75 6e 20 | | "Run | |00003540| 61 6e 20 69 6e 66 65 72 | 69 6f 72 20 73 68 65 6c |an infer|ior shel| |00003550| 6c 20 70 72 6f 63 65 73 | 73 2e 22 0a 3b 3b 20 20 |l proces|s.".;; | |00003560| 20 20 20 20 20 20 20 20 | 20 74 29 0a 3b 3b 0a 3b | | t).;;.;| |00003570| 3b 20 3b 20 44 65 66 69 | 6e 65 20 43 2d 63 20 43 |; ; Defi|ne C-c C| |00003580| 2d 74 20 74 6f 20 72 75 | 6e 20 6d 79 20 66 61 76 |-t to ru|n my fav| |00003590| 6f 72 69 74 65 20 63 6f | 6d 6d 61 6e 64 20 69 6e |orite co|mmand in| |000035a0| 20 63 6d 75 73 68 65 6c | 6c 20 6d 6f 64 65 3a 0a | cmushel|l mode:.| |000035b0| 3b 3b 20 28 73 65 74 71 | 20 63 6d 75 73 68 65 6c |;; (setq| cmushel| |000035c0| 6c 2d 6c 6f 61 64 2d 68 | 6f 6f 6b 0a 3b 3b 20 20 |l-load-h|ook.;; | |000035d0| 20 20 20 20 20 27 28 28 | 6c 61 6d 62 64 61 20 28 | '((|lambda (| |000035e0| 29 20 0a 3b 3b 20 20 20 | 20 20 20 20 20 20 20 20 |) .;; | | |000035f0| 28 64 65 66 69 6e 65 2d | 6b 65 79 20 63 6d 75 73 |(define-|key cmus| |00003600| 68 65 6c 6c 2d 6d 6f 64 | 65 2d 6d 61 70 20 22 5c |hell-mod|e-map "\| |00003610| 43 2d 63 5c 43 2d 74 22 | 20 27 66 61 76 6f 72 69 |C-c\C-t"| 'favori| |00003620| 74 65 2d 63 6d 64 29 29 | 29 29 0a 0a 0c 0a 3b 3b |te-cmd))|))....;;| |00003630| 3b 20 42 72 69 65 66 20 | 43 6f 6d 6d 61 6e 64 20 |; Brief |Command | |00003640| 44 6f 63 75 6d 65 6e 74 | 61 74 69 6f 6e 3a 0a 3b |Document|ation:.;| |00003650| 3b 3b 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |;;======|========| |00003660| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========| |00003670| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========| |00003680| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========| |00003690| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 0a 3b |========|======.;| |000036a0| 3b 3b 20 43 6f 6d 69 6e | 74 20 4d 6f 64 65 20 43 |;; Comin|t Mode C| |000036b0| 6f 6d 6d 61 6e 64 73 3a | 20 28 63 6f 6d 6d 6f 6e |ommands:| (common| |000036c0| 20 74 6f 20 63 6d 75 73 | 68 65 6c 6c 20 61 6e 64 | to cmus|hell and| |000036d0| 20 61 6c 6c 20 63 6f 6d | 69 6e 74 2d 64 65 72 69 | all com|int-deri| |000036e0| 76 65 64 20 6d 6f 64 65 | 73 29 0a 3b 3b 3b 0a 3b |ved mode|s).;;;.;| |000036f0| 3b 3b 20 6d 2d 70 09 20 | 20 20 20 63 6f 6d 69 6e |;; m-p. | comin| |00003700| 74 2d 70 72 65 76 69 6f | 75 73 2d 69 6e 70 75 74 |t-previo|us-input| |00003710| 20 20 20 20 09 20 20 20 | 20 43 79 63 6c 65 20 62 | . | Cycle b| |00003720| 61 63 6b 77 61 72 64 73 | 20 69 6e 20 69 6e 70 75 |ackwards| in inpu| |00003730| 74 20 68 69 73 74 6f 72 | 79 0a 3b 3b 3b 20 6d 2d |t histor|y.;;; m-| |00003740| 6e 09 20 20 20 20 63 6f | 6d 69 6e 74 2d 6e 65 78 |n. co|mint-nex| |00003750| 74 2d 69 6e 70 75 74 20 | 20 09 20 20 20 20 09 20 |t-input | . . | |00003760| 20 20 20 43 79 63 6c 65 | 20 66 6f 72 77 61 72 64 | Cycle| forward| |00003770| 73 0a 3b 3b 3b 20 63 2d | 63 20 72 20 20 20 63 6f |s.;;; c-|c r co| |00003780| 6d 69 6e 74 2d 70 72 65 | 76 69 6f 75 73 2d 69 6e |mint-pre|vious-in| |00003790| 70 75 74 2d 6d 61 74 63 | 68 69 6e 67 20 20 53 65 |put-matc|hing Se| |000037a0| 61 72 63 68 20 62 61 63 | 6b 77 61 72 64 73 20 69 |arch bac|kwards i| |000037b0| 6e 20 69 6e 70 75 74 20 | 68 69 73 74 6f 72 79 0a |n input |history.| |000037c0| 3b 3b 3b 20 72 65 74 75 | 72 6e 20 20 63 6f 6d 69 |;;; retu|rn comi| |000037d0| 6e 74 2d 73 65 6e 64 2d | 69 6e 70 75 74 0a 3b 3b |nt-send-|input.;;| |000037e0| 3b 20 63 2d 61 20 20 20 | 20 20 63 6f 6d 69 6e 74 |; c-a | comint| |000037f0| 2d 62 6f 6c 20 20 20 20 | 20 20 20 20 20 20 20 20 |-bol | | |00003800| 20 20 20 20 20 20 20 20 | 20 20 42 65 67 69 6e 6e | | Beginn| |00003810| 69 6e 67 20 6f 66 20 6c | 69 6e 65 3b 20 73 6b 69 |ing of l|ine; ski| |00003820| 70 20 70 72 6f 6d 70 74 | 2e 0a 3b 3b 3b 20 63 2d |p prompt|..;;; c-| |00003830| 64 09 20 20 20 20 63 6f | 6d 69 6e 74 2d 64 65 6c |d. co|mint-del| |00003840| 63 68 61 72 2d 6f 72 2d | 6d 61 79 62 65 2d 65 6f |char-or-|maybe-eo| |00003850| 66 09 20 20 20 20 44 65 | 6c 65 74 65 20 63 68 61 |f. De|lete cha| |00003860| 72 20 75 6e 6c 65 73 73 | 20 61 74 20 65 6e 64 20 |r unless| at end | |00003870| 6f 66 20 62 75 66 66 2e | 0a 3b 3b 3b 20 63 2d 63 |of buff.|.;;; c-c| |00003880| 20 63 2d 75 20 63 6f 6d | 69 6e 74 2d 6b 69 6c 6c | c-u com|int-kill| |00003890| 2d 69 6e 70 75 74 09 20 | 20 20 20 09 20 20 20 20 |-input. | . | |000038a0| 5e 75 0a 3b 3b 3b 20 63 | 2d 63 20 63 2d 77 20 62 |^u.;;; c|-c c-w b| |000038b0| 61 63 6b 77 61 72 64 2d | 6b 69 6c 6c 2d 77 6f 72 |ackward-|kill-wor| |000038c0| 64 20 20 20 20 09 20 20 | 20 20 5e 77 0a 3b 3b 3b |d . | ^w.;;;| |000038d0| 20 63 2d 63 20 63 2d 63 | 20 63 6f 6d 69 6e 74 2d | c-c c-c| comint-| |000038e0| 69 6e 74 65 72 72 75 70 | 74 2d 73 75 62 6a 6f 62 |interrup|t-subjob| |000038f0| 20 09 20 20 20 20 5e 63 | 0a 3b 3b 3b 20 63 2d 63 | . ^c|.;;; c-c| |00003900| 20 63 2d 7a 20 63 6f 6d | 69 6e 74 2d 73 74 6f 70 | c-z com|int-stop| |00003910| 2d 73 75 62 6a 6f 62 09 | 20 20 20 20 09 20 20 20 |-subjob.| . | |00003920| 20 5e 7a 0a 3b 3b 3b 20 | 63 2d 63 20 63 2d 5c 20 | ^z.;;; |c-c c-\ | |00003930| 63 6f 6d 69 6e 74 2d 71 | 75 69 74 2d 73 75 62 6a |comint-q|uit-subj| |00003940| 6f 62 09 20 20 20 20 09 | 20 20 20 20 5e 5c 0a 3b |ob. .| ^\.;| |00003950| 3b 3b 20 63 2d 63 20 63 | 2d 6f 20 63 6f 6d 69 6e |;; c-c c|-o comin| |00003960| 74 2d 6b 69 6c 6c 2d 6f | 75 74 70 75 74 09 09 20 |t-kill-o|utput.. | |00003970| 20 20 20 44 65 6c 65 74 | 65 20 6c 61 73 74 20 62 | Delet|e last b| |00003980| 61 74 63 68 20 6f 66 20 | 70 72 6f 63 65 73 73 20 |atch of |process | |00003990| 6f 75 74 70 75 74 0a 3b | 3b 3b 20 63 2d 63 20 63 |output.;|;; c-c c| |000039a0| 2d 72 20 63 6f 6d 69 6e | 74 2d 73 68 6f 77 2d 6f |-r comin|t-show-o| |000039b0| 75 74 70 75 74 09 09 20 | 20 20 20 53 68 6f 77 20 |utput.. | Show | |000039c0| 6c 61 73 74 20 62 61 74 | 63 68 20 6f 66 20 70 72 |last bat|ch of pr| |000039d0| 6f 63 65 73 73 20 6f 75 | 74 70 75 74 0a 3b 3b 3b |ocess ou|tput.;;;| |000039e0| 20 20 20 20 20 20 20 20 | 20 73 65 6e 64 2d 69 6e | | send-in| |000039f0| 76 69 73 69 62 6c 65 20 | 20 20 20 20 20 20 20 20 |visible | | |00003a00| 20 20 20 20 20 20 20 20 | 20 52 65 61 64 20 6c 69 | | Read li| |00003a10| 6e 65 20 77 2f 6f 20 65 | 63 68 6f 20 26 20 73 65 |ne w/o e|cho & se| |00003a20| 6e 64 20 74 6f 20 70 72 | 6f 63 0a 3b 3b 3b 20 20 |nd to pr|oc.;;; | |00003a30| 20 20 20 20 20 20 20 63 | 6f 6d 69 6e 74 2d 63 6f | c|omint-co| |00003a40| 6e 74 69 6e 75 65 2d 73 | 75 62 6a 6f 62 09 20 20 |ntinue-s|ubjob. | |00003a50| 20 20 55 73 65 66 75 6c | 20 69 66 20 79 6f 75 20 | Useful| if you | |00003a60| 61 63 63 69 64 65 6e 74 | 61 6c 6c 79 20 73 75 73 |accident|ally sus| |00003a70| 70 65 6e 64 0a 3b 3b 3b | 09 09 09 09 09 20 20 20 |pend.;;;|..... | |00003a80| 20 20 20 20 20 74 6f 70 | 2d 6c 65 76 65 6c 20 6a | top|-level j| |00003a90| 6f 62 2e 0a 3b 3b 3b 20 | 63 6f 6d 69 6e 74 2d 6d |ob..;;; |comint-m| |00003aa0| 6f 64 65 2d 68 6f 6f 6b | 20 69 73 20 74 68 65 20 |ode-hook| is the | |00003ab0| 63 6f 6d 69 6e 74 20 6d | 6f 64 65 20 68 6f 6f 6b |comint m|ode hook| |00003ac0| 2e 0a 0a 3b 3b 3b 20 53 | 68 65 6c 6c 20 4d 6f 64 |...;;; S|hell Mod| |00003ad0| 65 20 43 6f 6d 6d 61 6e | 64 73 3a 0a 3b 3b 3b 20 |e Comman|ds:.;;; | |00003ae0| 20 20 20 20 20 20 20 20 | 63 6d 75 73 68 65 6c 6c | |cmushell| |00003af0| 09 09 09 20 20 20 20 46 | 69 72 65 73 20 75 70 20 |... F|ires up | |00003b00| 74 68 65 20 73 68 65 6c | 6c 20 70 72 6f 63 65 73 |the shel|l proces| |00003b10| 73 2e 0a 3b 3b 3b 20 6d | 2d 74 61 62 20 20 20 63 |s..;;; m|-tab c| |00003b20| 6f 6d 69 6e 74 2d 64 79 | 6e 61 6d 69 63 2d 63 6f |omint-dy|namic-co| |00003b30| 6d 70 6c 65 74 65 09 20 | 20 20 20 43 6f 6d 70 6c |mplete. | Compl| |00003b40| 65 74 65 20 61 20 70 61 | 72 74 69 61 6c 20 66 69 |ete a pa|rtial fi| |00003b50| 6c 65 20 6e 61 6d 65 0a | 3b 3b 3b 20 6d 2d 3f 20 |le name.|;;; m-? | |00003b60| 20 20 20 20 63 6f 6d 69 | 6e 74 2d 64 79 6e 61 6d | comi|nt-dynam| |00003b70| 69 63 2d 6c 69 73 74 2d | 63 6f 6d 70 6c 65 74 69 |ic-list-|completi| |00003b80| 6f 6e 73 20 4c 69 73 74 | 20 63 6f 6d 70 6c 65 74 |ons List| complet| |00003b90| 69 6f 6e 73 20 69 6e 20 | 68 65 6c 70 20 62 75 66 |ions in |help buf| |00003ba0| 66 65 72 0a 3b 3b 3b 20 | 09 20 20 20 20 64 69 72 |fer.;;; |. dir| |00003bb0| 73 20 20 20 20 09 09 09 | 20 20 20 20 52 65 73 79 |s ...| Resy| |00003bc0| 6e 63 20 74 68 65 20 62 | 75 66 66 65 72 27 73 20 |nc the b|uffer's | |00003bd0| 64 69 72 20 73 74 61 63 | 6b 2e 0a 3b 3b 3b 20 09 |dir stac|k..;;; .| |00003be0| 20 20 20 20 64 69 72 74 | 72 61 63 6b 2d 74 6f 67 | dirt|rack-tog| |00003bf0| 67 6c 65 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |gle | | |00003c00| 20 20 20 20 54 75 72 6e | 20 64 69 72 20 74 72 61 | Turn| dir tra| |00003c10| 63 6b 69 6e 67 20 6f 6e | 2f 6f 66 66 2e 0a 3b 3b |cking on|/off..;;| |00003c20| 3b 0a 3b 3b 3b 20 54 68 | 65 20 63 6d 75 73 68 65 |;.;;; Th|e cmushe| |00003c30| 6c 6c 20 6d 6f 64 65 20 | 68 6f 6f 6b 20 69 73 20 |ll mode |hook is | |00003c40| 63 6d 75 73 68 65 6c 6c | 2d 6d 6f 64 65 2d 68 6f |cmushell|-mode-ho| |00003c50| 6f 6b 0a 3b 3b 3b 20 54 | 68 65 20 63 6d 75 73 68 |ok.;;; T|he cmush| |00003c60| 65 6c 6c 2d 6c 6f 61 64 | 2d 68 6f 6f 6b 20 69 73 |ell-load|-hook is| |00003c70| 20 72 75 6e 20 61 66 74 | 65 72 20 74 68 69 73 20 | run aft|er this | |00003c80| 66 69 6c 65 20 69 73 20 | 6c 6f 61 64 65 64 2e 0a |file is |loaded..| |00003c90| 3b 3b 3b 20 63 6f 6d 69 | 6e 74 2d 70 72 6f 6d 70 |;;; comi|nt-promp| |00003ca0| 74 2d 72 65 67 65 78 70 | 20 69 73 20 69 6e 69 74 |t-regexp| is init| |00003cb0| 69 61 6c 69 73 65 64 20 | 74 6f 20 73 68 65 6c 6c |ialised |to shell| |00003cc0| 2d 70 72 6f 6d 70 74 2d | 70 61 74 74 65 72 6e 2c |-prompt-|pattern,| |00003cd0| 20 66 6f 72 20 62 61 63 | 6b 77 61 72 64 73 0a 3b | for bac|kwards.;| |00003ce0| 3b 3b 20 63 6f 6d 70 61 | 74 69 62 69 6c 69 74 79 |;; compa|tibility| |00003cf0| 2e 0a 0a 3b 3b 3b 20 52 | 65 61 64 20 74 68 65 20 |...;;; R|ead the | |00003d00| 72 65 73 74 20 6f 66 20 | 74 68 69 73 20 66 69 6c |rest of |this fil| |00003d10| 65 20 66 6f 72 20 6d 6f | 72 65 20 69 6e 66 6f 72 |e for mo|re infor| |00003d20| 6d 61 74 69 6f 6e 2e 0a | 0c 0a 3b 3b 3b 20 53 48 |mation..|..;;; SH| |00003d30| 45 4c 4c 2e 45 4c 20 43 | 4f 4d 50 41 54 49 42 49 |ELL.EL C|OMPATIBI| |00003d40| 4c 49 54 59 0a 3b 3b 3b | 3d 3d 3d 3d 3d 3d 3d 3d |LITY.;;;|========| |00003d50| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========| |00003d60| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========| |00003d70| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========| |00003d80| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========| |00003d90| 3d 3d 3d 3d 0a 3b 3b 3b | 20 49 6e 20 62 72 69 65 |====.;;;| In brie| |00003da0| 66 3a 20 74 68 69 73 20 | 70 61 63 6b 61 67 65 20 |f: this |package | |00003db0| 73 68 6f 75 6c 64 20 68 | 61 76 65 20 6e 6f 20 74 |should h|ave no t| |00003dc0| 72 6f 75 62 6c 65 20 63 | 6f 65 78 69 73 74 69 6e |rouble c|oexistin| |00003dd0| 67 20 77 69 74 68 20 73 | 68 65 6c 6c 2e 65 6c 2e |g with s|hell.el.| |00003de0| 0a 3b 3b 3b 20 0a 3b 3b | 3b 20 4d 6f 73 74 20 63 |.;;; .;;|; Most c| |00003df0| 75 73 74 6f 6d 69 73 69 | 6e 67 20 76 61 72 69 61 |ustomisi|ng varia| |00003e00| 62 6c 65 73 20 2d 2d 20 | 65 2e 67 2e 2c 20 65 78 |bles -- |e.g., ex| |00003e10| 70 6c 69 63 69 74 2d 73 | 68 65 6c 6c 2d 66 69 6c |plicit-s|hell-fil| |00003e20| 65 2d 6e 61 6d 65 20 2d | 2d 20 61 72 65 20 74 68 |e-name -|- are th| |00003e30| 65 0a 3b 3b 3b 20 73 61 | 6d 65 2c 20 73 6f 20 74 |e.;;; sa|me, so t| |00003e40| 68 65 20 75 73 65 72 73 | 20 73 68 6f 75 6c 64 6e |he users| shouldn| |00003e50| 27 74 20 68 61 76 65 20 | 6d 75 63 68 20 74 72 6f |'t have |much tro| |00003e60| 75 62 6c 65 2e 20 48 6f | 6f 6b 73 20 68 61 76 65 |uble. Ho|oks have| |00003e70| 20 64 69 66 66 65 72 65 | 6e 74 0a 3b 3b 3b 20 6e | differe|nt.;;; n| |00003e80| 61 6d 65 73 2c 20 68 6f | 77 65 76 65 72 2c 20 73 |ames, ho|wever, s| |00003e90| 6f 20 79 6f 75 20 63 61 | 6e 20 63 75 73 74 6f 6d |o you ca|n custom| |00003ea0| 69 73 65 20 73 68 65 6c | 6c 20 6d 6f 64 65 20 64 |ise shel|l mode d| |00003eb0| 69 66 66 65 72 65 6e 74 | 6c 79 20 66 72 6f 6d 20 |ifferent|ly from | |00003ec0| 63 6d 75 73 68 65 6c 6c | 0a 3b 3b 3b 20 6d 6f 64 |cmushell|.;;; mod| |00003ed0| 65 2e 20 59 6f 75 20 62 | 61 73 69 63 61 6c 6c 79 |e. You b|asically| |00003ee0| 20 6a 75 73 74 20 68 61 | 76 65 20 74 6f 20 72 65 | just ha|ve to re| |00003ef0| 6d 65 6d 62 65 72 20 74 | 6f 20 74 79 70 65 20 4d |member t|o type M| |00003f00| 2d 78 20 63 6d 75 73 68 | 65 6c 6c 20 69 6e 73 74 |-x cmush|ell inst| |00003f10| 65 61 64 20 6f 66 0a 3b | 3b 3b 20 4d 2d 78 20 73 |ead of.;|;; M-x s| |00003f20| 68 65 6c 6c 2e 0a 3b 3b | 3b 20 0a 3b 3b 3b 20 49 |hell..;;|; .;;; I| |00003f30| 74 20 77 6f 75 6c 64 20 | 62 65 20 6e 69 63 65 20 |t would |be nice | |00003f40| 69 66 20 74 68 69 73 20 | 66 69 6c 65 20 77 61 73 |if this |file was| |00003f50| 20 63 6f 6d 70 6c 65 74 | 65 6c 79 20 70 6c 75 67 | complet|ely plug| |00003f60| 2d 63 6f 6d 70 61 74 69 | 62 6c 65 20 77 69 74 68 |-compati|ble with| |00003f70| 20 74 68 65 20 6f 6c 64 | 0a 3b 3b 3b 20 73 68 65 | the old|.;;; she| |00003f80| 6c 6c 20 70 61 63 6b 61 | 67 65 20 2d 2d 20 69 66 |ll packa|ge -- if| |00003f90| 20 79 6f 75 20 63 6f 75 | 6c 64 20 6a 75 73 74 20 | you cou|ld just | |00003fa0| 6e 61 6d 65 20 74 68 69 | 73 20 66 69 6c 65 20 73 |name thi|s file s| |00003fb0| 68 65 6c 6c 2e 65 6c 2c | 20 61 6e 64 20 68 61 76 |hell.el,| and hav| |00003fc0| 65 20 69 74 0a 3b 3b 3b | 20 74 72 61 6e 73 70 61 |e it.;;;| transpa| |00003fd0| 72 65 6e 74 6c 79 20 72 | 65 70 6c 61 63 65 20 74 |rently r|eplace t| |00003fe0| 68 65 20 6f 6c 64 20 6f | 6e 65 2e 20 42 75 74 20 |he old o|ne. But | |00003ff0| 79 6f 75 20 63 61 6e 27 | 74 2e 20 20 53 65 76 65 |you can'|t. Seve| |00004000| 72 61 6c 20 6f 74 68 65 | 72 20 70 61 63 6b 61 67 |ral othe|r packag| |00004010| 65 73 0a 3b 3b 3b 20 28 | 74 65 78 2d 6d 6f 64 65 |es.;;; (|tex-mode| |00004020| 2c 20 62 61 63 6b 67 72 | 6f 75 6e 64 2c 20 64 62 |, backgr|ound, db| |00004030| 78 2c 20 67 64 62 2c 20 | 6b 65 72 6d 69 74 2c 20 |x, gdb, |kermit, | |00004040| 6d 6f 6e 6b 65 79 2c 20 | 70 72 6f 6c 6f 67 2c 20 |monkey, |prolog, | |00004050| 74 65 6c 6e 65 74 29 20 | 61 72 65 20 61 6c 73 6f |telnet) |are also| |00004060| 0a 3b 3b 3b 20 63 6c 69 | 65 6e 74 73 20 6f 66 20 |.;;; cli|ents of | |00004070| 73 68 65 6c 6c 20 6d 6f | 64 65 2e 20 54 68 65 73 |shell mo|de. Thes| |00004080| 65 20 70 61 63 6b 61 67 | 65 73 20 61 73 73 75 6d |e packag|es assum| |00004090| 65 20 64 65 74 61 69 6c | 65 64 20 6b 6e 6f 77 6c |e detail|ed knowl| |000040a0| 65 64 67 65 20 6f 66 20 | 73 68 65 6c 6c 0a 3b 3b |edge of |shell.;;| |000040b0| 3b 20 6d 6f 64 65 20 69 | 6e 74 65 72 6e 61 6c 73 |; mode i|nternals| |000040c0| 20 69 6e 20 77 61 79 73 | 20 74 68 61 74 20 61 72 | in ways| that ar| |000040d0| 65 20 69 6e 63 6f 6d 70 | 61 74 69 62 6c 65 20 77 |e incomp|atible w| |000040e0| 69 74 68 20 63 6d 75 73 | 68 65 6c 6c 20 6d 6f 64 |ith cmus|hell mod| |000040f0| 65 20 28 6d 6f 73 74 6c | 79 0a 3b 3b 3b 20 62 65 |e (mostl|y.;;; be| |00004100| 63 61 75 73 65 20 6f 66 | 20 63 6d 75 73 68 65 6c |cause of| cmushel| |00004110| 6c 20 6d 6f 64 65 27 73 | 20 67 72 65 61 74 65 72 |l mode's| greater| |00004120| 20 66 75 6e 63 74 69 6f | 6e 61 6c 69 74 79 29 2e | functio|nality).| |00004130| 20 20 53 6f 2c 20 75 6e | 6c 65 73 73 20 77 65 20 | So, un|less we | |00004140| 61 72 65 0a 3b 3b 3b 20 | 77 69 6c 6c 69 6e 67 20 |are.;;; |willing | |00004150| 74 6f 20 70 6f 72 74 20 | 61 6c 6c 20 6f 66 20 74 |to port |all of t| |00004160| 68 65 73 65 20 70 61 63 | 6b 61 67 65 73 2c 20 77 |hese pac|kages, w| |00004170| 65 20 63 61 6e 27 74 20 | 68 61 76 65 20 74 68 69 |e can't |have thi| |00004180| 73 20 66 69 6c 65 20 62 | 65 20 61 0a 3b 3b 3b 20 |s file b|e a.;;; | |00004190| 63 6f 6d 70 6c 65 74 65 | 20 72 65 70 6c 61 63 65 |complete| replace| |000041a0| 6d 65 6e 74 20 66 6f 72 | 20 73 68 65 6c 6c 2e 65 |ment for| shell.e| |000041b0| 6c 20 2d 2d 20 74 68 61 | 74 20 69 73 2c 20 77 65 |l -- tha|t is, we| |000041c0| 20 63 61 6e 27 74 20 6e | 61 6d 65 20 74 68 69 73 | can't n|ame this| |000041d0| 20 66 69 6c 65 0a 3b 3b | 3b 20 73 68 65 6c 6c 2e | file.;;|; shell.| |000041e0| 65 6c 2c 20 61 6e 64 20 | 69 74 73 20 6d 61 69 6e |el, and |its main| |000041f0| 20 65 6e 74 72 79 20 70 | 6f 69 6e 74 20 28 73 68 | entry p|oint (sh| |00004200| 65 6c 6c 29 2c 20 62 65 | 63 61 75 73 65 20 64 62 |ell), be|cause db| |00004210| 78 2e 65 6c 20 77 69 6c | 6c 20 62 72 65 61 6b 0a |x.el wil|l break.| |00004220| 3b 3b 3b 20 77 68 65 6e | 20 69 74 20 6c 6f 61 64 |;;; when| it load| |00004230| 73 20 69 74 20 69 6e 20 | 61 6e 64 20 74 72 69 65 |s it in |and trie| |00004240| 73 20 74 6f 20 75 73 65 | 20 69 74 2e 0a 3b 3b 3b |s to use| it..;;;| |00004250| 20 0a 3b 3b 3b 20 54 68 | 65 72 65 20 61 72 65 20 | .;;; Th|ere are | |00004260| 74 77 6f 20 77 61 79 73 | 20 74 6f 20 66 69 78 20 |two ways| to fix | |00004270| 74 68 69 73 2e 20 4f 6e | 65 3a 20 72 65 77 72 69 |this. On|e: rewri| |00004280| 74 65 20 74 68 65 73 65 | 20 6f 74 68 65 72 20 6d |te these| other m| |00004290| 6f 64 65 73 20 74 6f 20 | 75 73 65 20 74 68 65 0a |odes to |use the.| |000042a0| 3b 3b 3b 20 6e 65 77 20 | 70 61 63 6b 61 67 65 2e |;;; new |package.| |000042b0| 20 54 68 69 73 20 69 73 | 20 61 20 77 69 6e 2c 20 | This is| a win, | |000042c0| 62 75 74 20 63 61 6e 27 | 74 20 62 65 20 61 73 73 |but can'|t be ass| |000042d0| 75 6d 65 64 2e 20 54 68 | 65 20 6f 74 68 65 72 2c |umed. Th|e other,| |000042e0| 20 62 61 63 6b 77 61 72 | 64 73 0a 3b 3b 3b 20 63 | backwar|ds.;;; c| |000042f0| 6f 6d 70 61 74 69 62 6c | 65 20 72 6f 75 74 65 2c |ompatibl|e route,| |00004300| 20 69 73 20 74 6f 20 6d | 61 6b 65 20 74 68 69 73 | is to m|ake this| |00004310| 20 70 61 63 6b 61 67 65 | 20 6e 6f 6e 2d 63 6f 6e | package| non-con| |00004320| 66 6c 69 63 74 20 77 69 | 74 68 20 73 68 65 6c 6c |flict wi|th shell| |00004330| 2e 65 6c 2c 20 73 6f 0a | 3b 3b 3b 20 62 6f 74 68 |.el, so.|;;; both| |00004340| 20 66 69 6c 65 73 20 63 | 61 6e 20 62 65 20 6c 6f | files c|an be lo| |00004350| 61 64 65 64 20 69 6e 20 | 61 74 20 74 68 65 20 73 |aded in |at the s| |00004360| 61 6d 65 20 74 69 6d 65 | 2e 20 41 6e 64 20 2a 74 |ame time|. And *t| |00004370| 68 61 74 2a 20 69 73 20 | 77 68 79 20 73 6f 6d 65 |hat* is |why some| |00004380| 0a 3b 3b 3b 20 66 75 6e | 63 74 69 6f 6e 73 20 61 |.;;; fun|ctions a| |00004390| 6e 64 20 76 61 72 69 61 | 62 6c 65 73 20 68 61 76 |nd varia|bles hav| |000043a0| 65 20 64 69 66 66 65 72 | 65 6e 74 20 6e 61 6d 65 |e differ|ent name| |000043b0| 73 3a 20 28 63 6d 75 73 | 68 65 6c 6c 29 2c 0a 3b |s: (cmus|hell),.;| |000043c0| 3b 3b 20 63 6d 75 73 68 | 65 6c 6c 2d 6d 6f 64 65 |;; cmush|ell-mode| |000043d0| 2d 6d 61 70 2c 20 74 68 | 61 74 20 73 6f 72 74 20 |-map, th|at sort | |000043e0| 6f 66 20 74 68 69 6e 67 | 2e 20 41 6c 6c 20 74 68 |of thing|. All th| |000043f0| 65 20 6e 61 6d 65 73 20 | 68 61 76 65 20 62 65 65 |e names |have bee| |00004400| 6e 20 63 61 72 65 66 75 | 6c 6c 79 0a 3b 3b 3b 20 |n carefu|lly.;;; | |00004410| 63 68 6f 73 65 6e 20 73 | 6f 20 74 68 61 74 20 73 |chosen s|o that s| |00004420| 68 65 6c 6c 2e 65 6c 20 | 61 6e 64 20 63 6d 75 73 |hell.el |and cmus| |00004430| 68 65 6c 6c 2e 65 6c 20 | 77 6f 6e 27 74 20 74 72 |hell.el |won't tr| |00004440| 6f 6d 70 20 6f 6e 20 65 | 61 63 68 20 6f 74 68 65 |omp on e|ach othe| |00004450| 72 2e 0a 0c 0a 3b 3b 3b | 20 43 75 73 74 6f 6d 69 |r....;;;| Customi| |00004460| 73 61 74 69 6f 6e 20 61 | 6e 64 20 42 75 66 66 65 |sation a|nd Buffe| |00004470| 72 20 56 61 72 69 61 62 | 6c 65 73 0a 3b 3b 3b 20 |r Variab|les.;;; | |00004480| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========| |00004490| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========| |000044a0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========| |000044b0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========| |000044c0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 0a 3b 3b 3b 20 |========|===.;;; | |000044d0| 0a 0a 3b 49 6e 20 6c 6f | 61 64 64 65 66 73 2e 65 |..;In lo|addefs.e| |000044e0| 6c 20 6e 6f 77 2e 0a 3b | 28 64 65 66 63 6f 6e 73 |l now..;|(defcons| |000044f0| 74 20 73 68 65 6c 6c 2d | 70 72 6f 6d 70 74 2d 70 |t shell-|prompt-p| |00004500| 61 74 74 65 72 6e 0a 3b | 20 20 22 5e 5b 5e 23 24 |attern.;| "^[^#$| |00004510| 25 3e 5d 2a 5b 23 24 25 | 3e 5d 20 2a 22 0a 3b 20 |%>]*[#$%|>] *".; | |00004520| 20 22 2a 52 65 67 65 78 | 70 20 75 73 65 64 20 62 | "*Regex|p used b| |00004530| 79 20 4e 65 77 6c 69 6e | 65 20 63 6f 6d 6d 61 6e |y Newlin|e comman| |00004540| 64 20 74 6f 20 6d 61 74 | 63 68 20 73 75 62 73 68 |d to mat|ch subsh| |00004550| 65 6c 6c 20 70 72 6f 6d | 70 74 73 2e 0a 3b 3b 3b |ell prom|pts..;;;| |00004560| 20 43 68 61 6e 67 65 20 | 74 68 65 20 64 6f 63 20 | Change |the doc | |00004570| 73 74 72 69 6e 67 20 66 | 6f 72 20 73 68 65 6c 6c |string f|or shell| |00004580| 2d 70 72 6f 6d 70 74 2d | 70 61 74 74 65 72 6e 3a |-prompt-|pattern:| |00004590| 0a 28 70 75 74 20 27 73 | 68 65 6c 6c 2d 70 72 6f |.(put 's|hell-pro| |000045a0| 6d 70 74 2d 70 61 74 74 | 65 72 6e 20 27 76 61 72 |mpt-patt|ern 'var| |000045b0| 69 61 62 6c 65 2d 64 6f | 63 75 6d 65 6e 74 61 74 |iable-do|cumentat| |000045c0| 69 6f 6e 0a 20 20 22 52 | 65 67 65 78 70 20 74 6f |ion. "R|egexp to| |000045d0| 20 6d 61 74 63 68 20 70 | 72 6f 6d 70 74 73 20 69 | match p|rompts i| |000045e0| 6e 20 74 68 65 20 69 6e | 66 65 72 69 6f 72 20 73 |n the in|ferior s| |000045f0| 68 65 6c 6c 2e 0a 44 65 | 66 61 75 6c 74 73 20 74 |hell..De|faults t| |00004600| 6f 20 5c 22 5e 5b 5e 23 | 24 25 3e 5d 2a 5b 23 24 |o \"^[^#|$%>]*[#$| |00004610| 25 3e 5d 20 2a 5c 22 2c | 20 77 68 69 63 68 20 77 |%>] *\",| which w| |00004620| 6f 72 6b 73 20 70 72 65 | 74 74 79 20 77 65 6c 6c |orks pre|tty well| |00004630| 2e 0a 54 68 69 73 20 76 | 61 72 69 61 62 6c 65 20 |..This v|ariable | |00004640| 69 73 20 75 73 65 64 20 | 74 6f 20 69 6e 69 74 69 |is used |to initi| |00004650| 61 6c 69 73 65 20 63 6f | 6d 69 6e 74 2d 70 72 6f |alise co|mint-pro| |00004660| 6d 70 74 2d 72 65 67 65 | 78 70 20 69 6e 20 74 68 |mpt-rege|xp in th| |00004670| 65 20 0a 73 68 65 6c 6c | 20 62 75 66 66 65 72 2e |e .shell| buffer.| |00004680| 0a 0a 54 68 69 73 20 69 | 73 20 61 20 66 69 6e 65 |..This i|s a fine| |00004690| 20 74 68 69 6e 67 20 74 | 6f 20 73 65 74 20 69 6e | thing t|o set in| |000046a0| 20 79 6f 75 72 20 2e 65 | 6d 61 63 73 20 66 69 6c | your .e|macs fil| |000046b0| 65 2e 22 29 0a 0a 28 64 | 65 66 76 61 72 20 73 68 |e.")..(d|efvar sh| |000046c0| 65 6c 6c 2d 70 6f 70 64 | 2d 72 65 67 65 78 70 20 |ell-popd|-regexp | |000046d0| 22 70 6f 70 64 22 0a 20 | 20 22 2a 52 65 67 65 78 |"popd". | "*Regex| |000046e0| 70 20 74 6f 20 6d 61 74 | 63 68 20 73 75 62 73 68 |p to mat|ch subsh| |000046f0| 65 6c 6c 20 63 6f 6d 6d | 61 6e 64 73 20 65 71 75 |ell comm|ands equ| |00004700| 69 76 61 6c 65 6e 74 20 | 74 6f 20 70 6f 70 64 2e |ivalent |to popd.| |00004710| 22 29 0a 0a 28 64 65 66 | 76 61 72 20 73 68 65 6c |")..(def|var shel| |00004720| 6c 2d 70 75 73 68 64 2d | 72 65 67 65 78 70 20 22 |l-pushd-|regexp "| |00004730| 70 75 73 68 64 22 0a 20 | 20 22 2a 52 65 67 65 78 |pushd". | "*Regex| |00004740| 70 20 74 6f 20 6d 61 74 | 63 68 20 73 75 62 73 68 |p to mat|ch subsh| |00004750| 65 6c 6c 20 63 6f 6d 6d | 61 6e 64 73 20 65 71 75 |ell comm|ands equ| |00004760| 69 76 61 6c 65 6e 74 20 | 74 6f 20 70 75 73 68 64 |ivalent |to pushd| |00004770| 2e 22 29 0a 0a 28 64 65 | 66 76 61 72 20 73 68 65 |.")..(de|fvar she| |00004780| 6c 6c 2d 63 64 2d 72 65 | 67 65 78 70 20 22 63 64 |ll-cd-re|gexp "cd| |00004790| 22 0a 20 20 22 2a 52 65 | 67 65 78 70 20 74 6f 20 |". "*Re|gexp to | |000047a0| 6d 61 74 63 68 20 73 75 | 62 73 68 65 6c 6c 20 63 |match su|bshell c| |000047b0| 6f 6d 6d 61 6e 64 73 20 | 65 71 75 69 76 61 6c 65 |ommands |equivale| |000047c0| 6e 74 20 74 6f 20 63 64 | 2e 22 29 0a 0a 28 64 65 |nt to cd|.")..(de| |000047d0| 66 76 61 72 20 65 78 70 | 6c 69 63 69 74 2d 73 68 |fvar exp|licit-sh| |000047e0| 65 6c 6c 2d 66 69 6c 65 | 2d 6e 61 6d 65 20 6e 69 |ell-file|-name ni| |000047f0| 6c 0a 20 20 22 2a 49 66 | 20 6e 6f 6e 2d 6e 69 6c |l. "*If| non-nil| |00004800| 2c 20 69 73 20 66 69 6c | 65 20 6e 61 6d 65 20 74 |, is fil|e name t| |00004810| 6f 20 75 73 65 20 66 6f | 72 20 65 78 70 6c 69 63 |o use fo|r explic| |00004820| 69 74 6c 79 20 72 65 71 | 75 65 73 74 65 64 20 69 |itly req|uested i| |00004830| 6e 66 65 72 69 6f 72 20 | 73 68 65 6c 6c 2e 22 29 |nferior |shell.")| |00004840| 0a 0a 28 64 65 66 76 61 | 72 20 65 78 70 6c 69 63 |..(defva|r explic| |00004850| 69 74 2d 63 73 68 2d 61 | 72 67 73 0a 20 20 28 69 |it-csh-a|rgs. (i| |00004860| 66 20 28 65 71 20 73 79 | 73 74 65 6d 2d 74 79 70 |f (eq sy|stem-typ| |00004870| 65 20 27 68 70 75 78 29 | 0a 20 20 20 20 20 20 3b |e 'hpux)|. ;| |00004880| 3b 20 2d 54 20 70 65 72 | 73 75 61 64 65 73 20 48 |; -T per|suades H| |00004890| 50 27 73 20 63 73 68 20 | 6e 6f 74 20 74 6f 20 74 |P's csh |not to t| |000048a0| 68 69 6e 6b 20 69 74 20 | 69 73 20 73 6d 61 72 74 |hink it |is smart| |000048b0| 65 72 0a 20 20 20 20 20 | 20 3b 3b 20 74 68 61 6e |er. | ;; than| |000048c0| 20 75 73 20 61 62 6f 75 | 74 20 77 68 61 74 20 74 | us abou|t what t| |000048d0| 65 72 6d 69 6e 61 6c 20 | 6d 6f 64 65 73 20 74 6f |erminal |modes to| |000048e0| 20 75 73 65 2e 0a 20 20 | 20 20 20 20 27 28 22 2d | use.. | '("-| |000048f0| 69 22 20 22 2d 54 22 29 | 0a 20 20 20 20 27 28 22 |i" "-T")|. '("| |00004900| 2d 69 22 29 29 0a 20 20 | 22 2a 41 72 67 73 20 70 |-i")). |"*Args p| |00004910| 61 73 73 65 64 20 74 6f | 20 69 6e 66 65 72 69 6f |assed to| inferio| |00004920| 72 20 73 68 65 6c 6c 20 | 62 79 20 4d 2d 78 20 63 |r shell |by M-x c| |00004930| 6d 75 73 68 65 6c 6c 2c | 20 69 66 20 74 68 65 20 |mushell,| if the | |00004940| 73 68 65 6c 6c 20 69 73 | 20 63 73 68 2e 0a 56 61 |shell is| csh..Va| |00004950| 6c 75 65 20 69 73 20 61 | 20 6c 69 73 74 20 6f 66 |lue is a| list of| |00004960| 20 73 74 72 69 6e 67 73 | 2c 20 77 68 69 63 68 20 | strings|, which | |00004970| 6d 61 79 20 62 65 20 6e | 69 6c 2e 22 29 0a 0a 3b |may be n|il.")..;| |00004980| 3b 3b 20 41 6c 6c 20 74 | 68 65 20 61 62 6f 76 65 |;; All t|he above| |00004990| 20 76 61 72 73 20 61 72 | 65 6e 27 74 20 70 72 65 | vars ar|en't pre| |000049a0| 66 69 78 65 64 20 22 63 | 6d 75 73 68 65 6c 6c 2d |fixed "c|mushell-| |000049b0| 22 20 74 6f 20 6d 61 6b | 65 20 74 68 65 6d 0a 3b |" to mak|e them.;| |000049c0| 3b 3b 20 62 61 63 6b 77 | 61 72 64 73 20 63 6f 6d |;; backw|ards com| |000049d0| 70 61 74 69 62 6c 65 20 | 77 2f 73 68 65 6c 6c 2e |patible |w/shell.| |000049e0| 65 6c 20 61 6e 64 20 6f | 6c 64 20 2e 65 6d 61 63 |el and o|ld .emac| |000049f0| 73 20 66 69 6c 65 73 2e | 0a 0a 28 64 65 66 76 61 |s files.|..(defva| |00004a00| 72 20 63 6d 75 73 68 65 | 6c 6c 2d 64 69 72 73 74 |r cmushe|ll-dirst| |00004a10| 61 63 6b 20 6e 69 6c 0a | 20 20 22 4c 69 73 74 20 |ack nil.| "List | |00004a20| 6f 66 20 64 69 72 65 63 | 74 6f 72 69 65 73 20 73 |of direc|tories s| |00004a30| 61 76 65 64 20 62 79 20 | 70 75 73 68 64 20 69 6e |aved by |pushd in| |00004a40| 20 74 68 69 73 20 62 75 | 66 66 65 72 27 73 20 73 | this bu|ffer's s| |00004a50| 68 65 6c 6c 2e 22 29 0a | 0a 28 64 65 66 76 61 72 |hell.").|.(defvar| |00004a60| 20 63 6d 75 73 68 65 6c | 6c 2d 64 69 72 73 74 61 | cmushel|l-dirsta| |00004a70| 63 6b 2d 71 75 65 72 79 | 20 22 64 69 72 73 22 0a |ck-query| "dirs".| |00004a80| 20 20 22 43 6f 6d 6d 61 | 6e 64 20 75 73 65 64 20 | "Comma|nd used | |00004a90| 62 79 20 73 68 65 6c 6c | 2d 72 65 73 79 6e 63 2d |by shell|-resync-| |00004aa0| 64 69 72 6c 69 73 74 20 | 74 6f 20 71 75 65 72 79 |dirlist |to query| |00004ab0| 20 73 68 65 6c 6c 2e 22 | 29 0a 0a 28 64 65 66 76 | shell."|)..(defv| |00004ac0| 61 72 20 63 6d 75 73 68 | 65 6c 6c 2d 6d 6f 64 65 |ar cmush|ell-mode| |00004ad0| 2d 6d 61 70 20 27 28 29 | 29 0a 28 63 6f 6e 64 20 |-map '()|).(cond | |00004ae0| 28 28 6e 6f 74 20 63 6d | 75 73 68 65 6c 6c 2d 6d |((not cm|ushell-m| |00004af0| 6f 64 65 2d 6d 61 70 29 | 0a 20 20 20 20 20 20 20 |ode-map)|. | |00004b00| 28 73 65 74 71 20 63 6d | 75 73 68 65 6c 6c 2d 6d |(setq cm|ushell-m| |00004b10| 6f 64 65 2d 6d 61 70 20 | 28 66 75 6c 6c 2d 63 6f |ode-map |(full-co| |00004b20| 70 79 2d 73 70 61 72 73 | 65 2d 6b 65 79 6d 61 70 |py-spars|e-keymap| |00004b30| 20 63 6f 6d 69 6e 74 2d | 6d 6f 64 65 2d 6d 61 70 | comint-|mode-map| |00004b40| 29 29 0a 20 20 20 20 20 | 20 20 28 64 65 66 69 6e |)). | (defin| |00004b50| 65 2d 6b 65 79 20 63 6d | 75 73 68 65 6c 6c 2d 6d |e-key cm|ushell-m| |00004b60| 6f 64 65 2d 6d 61 70 20 | 22 5c 4d 2d 5c 74 22 20 |ode-map |"\M-\t" | |00004b70| 27 63 6f 6d 69 6e 74 2d | 64 79 6e 61 6d 69 63 2d |'comint-|dynamic-| |00004b80| 63 6f 6d 70 6c 65 74 65 | 29 0a 20 20 20 20 20 20 |complete|). | |00004b90| 20 28 64 65 66 69 6e 65 | 2d 6b 65 79 20 63 6d 75 | (define|-key cmu| |00004ba0| 73 68 65 6c 6c 2d 6d 6f | 64 65 2d 6d 61 70 20 22 |shell-mo|de-map "| |00004bb0| 5c 4d 2d 3f 22 20 20 27 | 63 6f 6d 69 6e 74 2d 64 |\M-?" '|comint-d| |00004bc0| 79 6e 61 6d 69 63 2d 6c | 69 73 74 2d 63 6f 6d 70 |ynamic-l|ist-comp| |00004bd0| 6c 65 74 69 6f 6e 73 29 | 29 29 0a 0a 28 64 65 66 |letions)|))..(def| |00004be0| 76 61 72 20 63 6d 75 73 | 68 65 6c 6c 2d 6d 6f 64 |var cmus|hell-mod| |00004bf0| 65 2d 68 6f 6f 6b 20 27 | 28 29 0a 20 20 22 2a 48 |e-hook '|(). "*H| |00004c00| 6f 6f 6b 20 66 6f 72 20 | 63 75 73 74 6f 6d 69 73 |ook for |customis| |00004c10| 69 6e 67 20 63 6d 75 73 | 68 65 6c 6c 20 6d 6f 64 |ing cmus|hell mod| |00004c20| 65 22 29 0a 0a 0c 0a 3b | 3b 3b 20 42 61 73 69 63 |e")....;|;; Basic| |00004c30| 20 50 72 6f 63 65 64 75 | 72 65 73 0a 3b 3b 3b 20 | Procedu|res.;;; | |00004c40| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========| |00004c50| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========| |00004c60| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========| |00004c70| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========| |00004c80| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 0a 3b 3b 3b 0a |========|===.;;;.| |00004c90| 0a 28 64 65 66 75 6e 20 | 63 6d 75 73 68 65 6c 6c |.(defun |cmushell| |00004ca0| 2d 6d 6f 64 65 20 28 29 | 0a 20 20 22 4d 61 6a 6f |-mode ()|. "Majo| |00004cb0| 72 20 6d 6f 64 65 20 66 | 6f 72 20 69 6e 74 65 72 |r mode f|or inter| |00004cc0| 61 63 74 69 6e 67 20 77 | 69 74 68 20 61 6e 20 69 |acting w|ith an i| |00004cd0| 6e 66 65 72 69 6f 72 20 | 73 68 65 6c 6c 2e 0a 52 |nferior |shell..R| |00004ce0| 65 74 75 72 6e 20 61 66 | 74 65 72 20 74 68 65 20 |eturn af|ter the | |00004cf0| 65 6e 64 20 6f 66 20 74 | 68 65 20 70 72 6f 63 65 |end of t|he proce| |00004d00| 73 73 27 20 6f 75 74 70 | 75 74 20 73 65 6e 64 73 |ss' outp|ut sends| |00004d10| 20 74 68 65 20 74 65 78 | 74 20 66 72 6f 6d 20 74 | the tex|t from t| |00004d20| 68 65 20 0a 20 20 20 20 | 65 6e 64 20 6f 66 20 70 |he . |end of p| |00004d30| 72 6f 63 65 73 73 20 74 | 6f 20 74 68 65 20 65 6e |rocess t|o the en| |00004d40| 64 20 6f 66 20 74 68 65 | 20 63 75 72 72 65 6e 74 |d of the| current| |00004d50| 20 6c 69 6e 65 2e 0a 52 | 65 74 75 72 6e 20 62 65 | line..R|eturn be| |00004d60| 66 6f 72 65 20 65 6e 64 | 20 6f 66 20 70 72 6f 63 |fore end| of proc| |00004d70| 65 73 73 20 6f 75 74 70 | 75 74 20 63 6f 70 69 65 |ess outp|ut copie| |00004d80| 73 20 72 65 73 74 20 6f | 66 20 6c 69 6e 65 20 74 |s rest o|f line t| |00004d90| 6f 20 65 6e 64 20 28 73 | 6b 69 70 70 69 6e 67 0a |o end (s|kipping.| |00004da0| 20 20 20 20 74 68 65 20 | 70 72 6f 6d 70 74 29 20 | the |prompt) | |00004db0| 61 6e 64 20 73 65 6e 64 | 73 20 69 74 2e 0a 4d 2d |and send|s it..M-| |00004dc0| 78 20 73 65 6e 64 2d 69 | 6e 76 69 73 69 62 6c 65 |x send-i|nvisible| |00004dd0| 20 72 65 61 64 73 20 61 | 20 6c 69 6e 65 20 6f 66 | reads a| line of| |00004de0| 20 74 65 78 74 20 77 69 | 74 68 6f 75 74 20 65 63 | text wi|thout ec| |00004df0| 68 6f 69 6e 67 20 69 74 | 2c 20 61 6e 64 20 73 65 |hoing it|, and se| |00004e00| 6e 64 73 20 69 74 20 74 | 6f 0a 20 20 20 20 74 68 |nds it t|o. th| |00004e10| 65 20 73 68 65 6c 6c 2e | 0a 0a 49 66 20 79 6f 75 |e shell.|..If you| |00004e20| 20 61 63 63 69 64 65 6e | 74 61 6c 6c 79 20 73 75 | acciden|tally su| |00004e30| 73 70 65 6e 64 20 79 6f | 75 72 20 70 72 6f 63 65 |spend yo|ur proce| |00004e40| 73 73 2c 20 75 73 65 20 | 5c 5c 5b 63 6f 6d 69 6e |ss, use |\\[comin| |00004e50| 74 2d 63 6f 6e 74 69 6e | 75 65 2d 73 75 62 6a 6f |t-contin|ue-subjo| |00004e60| 62 5d 0a 74 6f 20 63 6f | 6e 74 69 6e 75 65 20 69 |b].to co|ntinue i| |00004e70| 74 2e 0a 0a 63 64 2c 20 | 70 75 73 68 64 20 61 6e |t...cd, |pushd an| |00004e80| 64 20 70 6f 70 64 20 63 | 6f 6d 6d 61 6e 64 73 20 |d popd c|ommands | |00004e90| 67 69 76 65 6e 20 74 6f | 20 74 68 65 20 73 68 65 |given to| the she| |00004ea0| 6c 6c 20 61 72 65 20 77 | 61 74 63 68 65 64 20 62 |ll are w|atched b| |00004eb0| 79 20 45 6d 61 63 73 20 | 74 6f 20 6b 65 65 70 0a |y Emacs |to keep.| |00004ec0| 74 68 69 73 20 62 75 66 | 66 65 72 27 73 20 64 65 |this buf|fer's de| |00004ed0| 66 61 75 6c 74 20 64 69 | 72 65 63 74 6f 72 79 20 |fault di|rectory | |00004ee0| 74 68 65 20 73 61 6d 65 | 20 61 73 20 74 68 65 20 |the same| as the | |00004ef0| 73 68 65 6c 6c 27 73 20 | 77 6f 72 6b 69 6e 67 20 |shell's |working | |00004f00| 64 69 72 65 63 74 6f 72 | 79 2e 0a 4d 2d 78 20 64 |director|y..M-x d| |00004f10| 69 72 73 20 71 75 65 72 | 69 65 73 20 74 68 65 20 |irs quer|ies the | |00004f20| 73 68 65 6c 6c 20 61 6e | 64 20 72 65 73 79 6e 63 |shell an|d resync| |00004f30| 73 20 45 6d 61 63 73 27 | 20 69 64 65 61 20 6f 66 |s Emacs'| idea of| |00004f40| 20 77 68 61 74 20 74 68 | 65 20 63 75 72 72 65 6e | what th|e curren| |00004f50| 74 20 0a 20 20 20 20 64 | 69 72 65 63 74 6f 72 79 |t . d|irectory| |00004f60| 20 73 74 61 63 6b 20 69 | 73 2e 0a 4d 2d 78 20 64 | stack i|s..M-x d| |00004f70| 69 72 74 72 61 63 6b 2d | 74 6f 67 67 6c 65 20 74 |irtrack-|toggle t| |00004f80| 75 72 6e 73 20 64 69 72 | 65 63 74 6f 72 79 20 74 |urns dir|ectory t| |00004f90| 72 61 63 6b 69 6e 67 20 | 6f 6e 20 61 6e 64 20 6f |racking |on and o| |00004fa0| 66 66 2e 0a 0a 5c 5c 7b | 63 6d 75 73 68 65 6c 6c |ff...\\{|cmushell| |00004fb0| 2d 6d 6f 64 65 2d 6d 61 | 70 7d 0a 43 75 73 74 6f |-mode-ma|p}.Custo| |00004fc0| 6d 69 73 61 74 69 6f 6e | 3a 20 45 6e 74 72 79 20 |misation|: Entry | |00004fd0| 74 6f 20 74 68 69 73 20 | 6d 6f 64 65 20 72 75 6e |to this |mode run| |00004fe0| 73 20 74 68 65 20 68 6f | 6f 6b 73 20 6f 6e 20 63 |s the ho|oks on c| |00004ff0| 6f 6d 69 6e 74 2d 6d 6f | 64 65 2d 68 6f 6f 6b 20 |omint-mo|de-hook | |00005000| 61 6e 64 0a 63 6d 75 73 | 68 65 6c 6c 2d 6d 6f 64 |and.cmus|hell-mod| |00005010| 65 2d 68 6f 6f 6b 20 28 | 69 6e 20 74 68 61 74 20 |e-hook (|in that | |00005020| 6f 72 64 65 72 29 2e 0a | 0a 56 61 72 69 61 62 6c |order)..|.Variabl| |00005030| 65 73 20 73 68 65 6c 6c | 2d 63 64 2d 72 65 67 65 |es shell|-cd-rege| |00005040| 78 70 2c 20 73 68 65 6c | 6c 2d 70 75 73 68 64 2d |xp, shel|l-pushd-| |00005050| 72 65 67 65 78 70 20 61 | 6e 64 20 73 68 65 6c 6c |regexp a|nd shell| |00005060| 2d 70 6f 70 64 2d 72 65 | 67 65 78 70 20 61 72 65 |-popd-re|gexp are| |00005070| 20 75 73 65 64 0a 74 6f | 20 6d 61 74 63 68 20 74 | used.to| match t| |00005080| 68 65 69 72 20 72 65 73 | 70 65 63 74 69 76 65 20 |heir res|pective | |00005090| 63 6f 6d 6d 61 6e 64 73 | 2e 22 0a 20 20 28 69 6e |commands|.". (in| |000050a0| 74 65 72 61 63 74 69 76 | 65 29 0a 20 20 28 63 6f |teractiv|e). (co| |000050b0| 6d 69 6e 74 2d 6d 6f 64 | 65 29 0a 20 20 28 73 65 |mint-mod|e). (se| |000050c0| 74 71 20 63 6f 6d 69 6e | 74 2d 70 72 6f 6d 70 74 |tq comin|t-prompt| |000050d0| 2d 72 65 67 65 78 70 20 | 73 68 65 6c 6c 2d 70 72 |-regexp |shell-pr| |000050e0| 6f 6d 70 74 2d 70 61 74 | 74 65 72 6e 29 0a 20 20 |ompt-pat|tern). | |000050f0| 28 73 65 74 71 20 6d 61 | 6a 6f 72 2d 6d 6f 64 65 |(setq ma|jor-mode| |00005100| 20 27 63 6d 75 73 68 65 | 6c 6c 2d 6d 6f 64 65 29 | 'cmushe|ll-mode)| |00005110| 0a 20 20 28 73 65 74 71 | 20 6d 6f 64 65 2d 6e 61 |. (setq| mode-na| |00005120| 6d 65 20 22 43 4d 55 20 | 73 68 65 6c 6c 22 29 0a |me "CMU |shell").| |00005130| 20 20 28 75 73 65 2d 6c | 6f 63 61 6c 2d 6d 61 70 | (use-l|ocal-map| |00005140| 20 63 6d 75 73 68 65 6c | 6c 2d 6d 6f 64 65 2d 6d | cmushel|l-mode-m| |00005150| 61 70 29 0a 20 20 28 6d | 61 6b 65 2d 6c 6f 63 61 |ap). (m|ake-loca| |00005160| 6c 2d 76 61 72 69 61 62 | 6c 65 20 27 63 6d 75 73 |l-variab|le 'cmus| |00005170| 68 65 6c 6c 2d 64 69 72 | 73 74 61 63 6b 29 0a 20 |hell-dir|stack). | |00005180| 20 28 73 65 74 71 20 63 | 6d 75 73 68 65 6c 6c 2d | (setq c|mushell-| |00005190| 64 69 72 73 74 61 63 6b | 20 6e 69 6c 29 0a 20 20 |dirstack| nil). | |000051a0| 28 6d 61 6b 65 2d 6c 6f | 63 61 6c 2d 76 61 72 69 |(make-lo|cal-vari| |000051b0| 61 62 6c 65 20 27 63 6d | 75 73 68 65 6c 6c 2d 64 |able 'cm|ushell-d| |000051c0| 69 72 74 72 61 63 6b 70 | 29 0a 20 20 28 73 65 74 |irtrackp|). (set| |000051d0| 71 20 63 6d 75 73 68 65 | 6c 6c 2d 64 69 72 74 72 |q cmushe|ll-dirtr| |000051e0| 61 63 6b 70 20 74 29 0a | 20 20 28 73 65 74 71 20 |ackp t).| (setq | |000051f0| 63 6f 6d 69 6e 74 2d 69 | 6e 70 75 74 2d 73 65 6e |comint-i|nput-sen| |00005200| 74 69 6e 65 6c 20 27 63 | 6d 75 73 68 65 6c 6c 2d |tinel 'c|mushell-| |00005210| 64 69 72 65 63 74 6f 72 | 79 2d 74 72 61 63 6b 65 |director|y-tracke| |00005220| 72 29 0a 20 20 28 72 75 | 6e 2d 68 6f 6f 6b 73 20 |r). (ru|n-hooks | |00005230| 27 63 6d 75 73 68 65 6c | 6c 2d 6d 6f 64 65 2d 68 |'cmushel|l-mode-h| |00005240| 6f 6f 6b 29 29 0a 0a 0c | 0a 28 64 65 66 75 6e 20 |ook))...|.(defun | |00005250| 63 6d 75 73 68 65 6c 6c | 20 28 29 0a 20 20 22 52 |cmushell| (). "R| |00005260| 75 6e 20 61 6e 20 69 6e | 66 65 72 69 6f 72 20 73 |un an in|ferior s| |00005270| 68 65 6c 6c 2c 20 77 69 | 74 68 20 49 2f 4f 20 74 |hell, wi|th I/O t| |00005280| 68 72 6f 75 67 68 20 62 | 75 66 66 65 72 20 2a 63 |hrough b|uffer *c| |00005290| 6d 75 73 68 65 6c 6c 2a | 2e 0a 49 66 20 62 75 66 |mushell*|..If buf| |000052a0| 66 65 72 20 65 78 69 73 | 74 73 20 62 75 74 20 73 |fer exis|ts but s| |000052b0| 68 65 6c 6c 20 70 72 6f | 63 65 73 73 20 69 73 20 |hell pro|cess is | |000052c0| 6e 6f 74 20 72 75 6e 6e | 69 6e 67 2c 20 6d 61 6b |not runn|ing, mak| |000052d0| 65 20 6e 65 77 20 73 68 | 65 6c 6c 2e 0a 49 66 20 |e new sh|ell..If | |000052e0| 62 75 66 66 65 72 20 65 | 78 69 73 74 73 20 61 6e |buffer e|xists an| |000052f0| 64 20 73 68 65 6c 6c 20 | 70 72 6f 63 65 73 73 20 |d shell |process | |00005300| 69 73 20 72 75 6e 6e 69 | 6e 67 2c 20 0a 20 6a 75 |is runni|ng, . ju| |00005310| 73 74 20 73 77 69 74 63 | 68 20 74 6f 20 62 75 66 |st switc|h to buf| |00005320| 66 65 72 20 2a 63 6d 75 | 73 68 65 6c 6c 2a 2e 0a |fer *cmu|shell*..| |00005330| 50 72 6f 67 72 61 6d 20 | 75 73 65 64 20 63 6f 6d |Program |used com| |00005340| 65 73 20 66 72 6f 6d 20 | 76 61 72 69 61 62 6c 65 |es from |variable| |00005350| 20 65 78 70 6c 69 63 69 | 74 2d 73 68 65 6c 6c 2d | explici|t-shell-| |00005360| 66 69 6c 65 2d 6e 61 6d | 65 2c 0a 20 6f 72 20 28 |file-nam|e,. or (| |00005370| 69 66 20 74 68 61 74 20 | 69 73 20 6e 69 6c 29 20 |if that |is nil) | |00005380| 66 72 6f 6d 20 74 68 65 | 20 45 53 48 45 4c 4c 20 |from the| ESHELL | |00005390| 65 6e 76 69 72 6f 6e 6d | 65 6e 74 20 76 61 72 69 |environm|ent vari| |000053a0| 61 62 6c 65 2c 0a 20 6f | 72 20 65 6c 73 65 20 66 |able,. o|r else f| |000053b0| 72 6f 6d 20 53 48 45 4c | 4c 20 69 66 20 74 68 65 |rom SHEL|L if the| |000053c0| 72 65 20 69 73 20 6e 6f | 20 45 53 48 45 4c 4c 2e |re is no| ESHELL.| |000053d0| 0a 49 66 20 61 20 66 69 | 6c 65 20 7e 2f 2e 65 6d |.If a fi|le ~/.em| |000053e0| 61 63 73 5f 53 48 45 4c | 4c 4e 41 4d 45 20 65 78 |acs_SHEL|LNAME ex| |000053f0| 69 73 74 73 2c 20 69 74 | 20 69 73 20 67 69 76 65 |ists, it| is give| |00005400| 6e 20 61 73 20 69 6e 69 | 74 69 61 6c 20 69 6e 70 |n as ini|tial inp| |00005410| 75 74 0a 20 28 4e 6f 74 | 65 20 74 68 61 74 20 74 |ut. (Not|e that t| |00005420| 68 69 73 20 6d 61 79 20 | 6c 6f 73 65 20 64 75 65 |his may |lose due| |00005430| 20 74 6f 20 61 20 74 69 | 6d 69 6e 67 20 65 72 72 | to a ti|ming err| |00005440| 6f 72 20 69 66 20 74 68 | 65 20 73 68 65 6c 6c 0a |or if th|e shell.| |00005450| 20 20 64 69 73 63 61 72 | 64 73 20 69 6e 70 75 74 | discar|ds input| |00005460| 20 77 68 65 6e 20 69 74 | 20 73 74 61 72 74 73 20 | when it| starts | |00005470| 75 70 2e 29 0a 54 68 65 | 20 62 75 66 66 65 72 20 |up.).The| buffer | |00005480| 69 73 20 70 75 74 20 69 | 6e 20 63 6d 75 73 68 65 |is put i|n cmushe| |00005490| 6c 6c 2d 6d 6f 64 65 2c | 20 67 69 76 69 6e 67 20 |ll-mode,| giving | |000054a0| 63 6f 6d 6d 61 6e 64 73 | 20 66 6f 72 20 73 65 6e |commands| for sen| |000054b0| 64 69 6e 67 20 69 6e 70 | 75 74 0a 61 6e 64 20 63 |ding inp|ut.and c| |000054c0| 6f 6e 74 72 6f 6c 6c 69 | 6e 67 20 74 68 65 20 73 |ontrolli|ng the s| |000054d0| 75 62 6a 6f 62 73 20 6f | 66 20 74 68 65 20 73 68 |ubjobs o|f the sh| |000054e0| 65 6c 6c 2e 20 20 53 65 | 65 20 63 6d 75 73 68 65 |ell. Se|e cmushe| |000054f0| 6c 6c 2d 6d 6f 64 65 2e | 0a 53 65 65 20 61 6c 73 |ll-mode.|.See als| |00005500| 6f 20 76 61 72 69 61 62 | 6c 65 20 73 68 65 6c 6c |o variab|le shell| |00005510| 2d 70 72 6f 6d 70 74 2d | 70 61 74 74 65 72 6e 2e |-prompt-|pattern.| |00005520| 0a 0a 54 68 65 20 73 68 | 65 6c 6c 20 66 69 6c 65 |..The sh|ell file| |00005530| 20 6e 61 6d 65 20 28 73 | 61 6e 73 20 64 69 72 65 | name (s|ans dire| |00005540| 63 74 6f 72 69 65 73 29 | 20 69 73 20 75 73 65 64 |ctories)| is used| |00005550| 20 74 6f 20 6d 61 6b 65 | 20 61 20 73 79 6d 62 6f | to make| a symbo| |00005560| 6c 20 6e 61 6d 65 0a 73 | 75 63 68 20 61 73 20 60 |l name.s|uch as `| |00005570| 65 78 70 6c 69 63 69 74 | 2d 63 73 68 2d 61 72 67 |explicit|-csh-arg| |00005580| 75 6d 65 6e 74 73 27 2e | 20 20 49 66 20 74 68 61 |uments'.| If tha| |00005590| 74 20 73 79 6d 62 6f 6c | 20 69 73 20 61 20 76 61 |t symbol| is a va| |000055a0| 72 69 61 62 6c 65 2c 0a | 69 74 73 20 76 61 6c 75 |riable,.|its valu| |000055b0| 65 20 69 73 20 75 73 65 | 64 20 61 73 20 61 20 6c |e is use|d as a l| |000055c0| 69 73 74 20 6f 66 20 61 | 72 67 75 6d 65 6e 74 73 |ist of a|rguments| |000055d0| 20 77 68 65 6e 20 69 6e | 76 6f 6b 69 6e 67 20 74 | when in|voking t| |000055e0| 68 65 20 73 68 65 6c 6c | 2e 0a 4f 74 68 65 72 77 |he shell|..Otherw| |000055f0| 69 73 65 2c 20 6f 6e 65 | 20 61 72 67 75 6d 65 6e |ise, one| argumen| |00005600| 74 20 60 2d 69 27 20 69 | 73 20 70 61 73 73 65 64 |t `-i' i|s passed| |00005610| 20 74 6f 20 74 68 65 20 | 73 68 65 6c 6c 2e 0a 0a | to the |shell...| |00005620| 5c 28 54 79 70 65 20 5c | 5c 5b 64 65 73 63 72 69 |\(Type \|\[descri| |00005630| 62 65 2d 6d 6f 64 65 5d | 20 69 6e 20 74 68 65 20 |be-mode]| in the | |00005640| 73 68 65 6c 6c 20 62 75 | 66 66 65 72 20 66 6f 72 |shell bu|ffer for| |00005650| 20 61 20 6c 69 73 74 20 | 6f 66 20 63 6f 6d 6d 61 | a list |of comma| |00005660| 6e 64 73 2e 29 22 0a 20 | 20 28 69 6e 74 65 72 61 |nds.)". | (intera| |00005670| 63 74 69 76 65 29 0a 20 | 20 28 63 6f 6e 64 20 28 |ctive). | (cond (| |00005680| 28 6e 6f 74 20 28 63 6f | 6d 69 6e 74 2d 63 68 65 |(not (co|mint-che| |00005690| 63 6b 2d 70 72 6f 63 20 | 22 2a 63 6d 75 73 68 65 |ck-proc |"*cmushe| |000056a0| 6c 6c 2a 22 29 29 0a 09 | 20 28 6c 65 74 2a 20 28 |ll*"))..| (let* (| |000056b0| 28 70 72 6f 67 20 28 6f | 72 20 65 78 70 6c 69 63 |(prog (o|r explic| |000056c0| 69 74 2d 73 68 65 6c 6c | 2d 66 69 6c 65 2d 6e 61 |it-shell|-file-na| |000056d0| 6d 65 0a 09 09 09 20 20 | 28 67 65 74 65 6e 76 20 |me.... |(getenv | |000056e0| 22 45 53 48 45 4c 4c 22 | 29 0a 09 09 09 20 20 28 |"ESHELL"|).... (| |000056f0| 67 65 74 65 6e 76 20 22 | 53 48 45 4c 4c 22 29 0a |getenv "|SHELL").| |00005700| 09 09 09 20 20 22 2f 62 | 69 6e 2f 73 68 22 29 29 |... "/b|in/sh"))| |00005710| 09 09 20 20 20 20 20 0a | 09 09 28 6e 61 6d 65 20 |.. .|..(name | |00005720| 28 66 69 6c 65 2d 6e 61 | 6d 65 2d 6e 6f 6e 64 69 |(file-na|me-nondi| |00005730| 72 65 63 74 6f 72 79 20 | 70 72 6f 67 29 29 0a 09 |rectory |prog))..| |00005740| 09 28 73 74 61 72 74 66 | 69 6c 65 20 28 63 6f 6e |.(startf|ile (con| |00005750| 63 61 74 20 22 7e 2f 2e | 65 6d 61 63 73 5f 22 20 |cat "~/.|emacs_" | |00005760| 6e 61 6d 65 29 29 0a 09 | 09 28 78 61 72 67 73 2d |name))..|.(xargs-| |00005770| 6e 61 6d 65 20 28 69 6e | 74 65 72 6e 2d 73 6f 66 |name (in|tern-sof| |00005780| 74 20 28 63 6f 6e 63 61 | 74 20 22 65 78 70 6c 69 |t (conca|t "expli| |00005790| 63 69 74 2d 22 20 6e 61 | 6d 65 20 22 2d 61 72 67 |cit-" na|me "-arg| |000057a0| 73 22 29 29 29 29 0a 09 | 20 20 20 28 73 65 74 2d |s"))))..| (set-| |000057b0| 62 75 66 66 65 72 20 28 | 61 70 70 6c 79 20 27 6d |buffer (|apply 'm| |000057c0| 61 6b 65 2d 63 6f 6d 69 | 6e 74 20 22 63 6d 75 73 |ake-comi|nt "cmus| |000057d0| 68 65 6c 6c 22 20 70 72 | 6f 67 0a 09 09 09 20 20 |hell" pr|og.... | |000057e0| 20 20 20 20 28 69 66 20 | 28 66 69 6c 65 2d 65 78 | (if |(file-ex| |000057f0| 69 73 74 73 2d 70 20 73 | 74 61 72 74 66 69 6c 65 |ists-p s|tartfile| |00005800| 29 20 73 74 61 72 74 66 | 69 6c 65 29 0a 09 09 09 |) startf|ile)....| |00005810| 20 20 20 20 20 20 28 69 | 66 20 28 61 6e 64 20 78 | (i|f (and x| |00005820| 61 72 67 73 2d 6e 61 6d | 65 20 28 62 6f 75 6e 64 |args-nam|e (bound| |00005830| 70 20 78 61 72 67 73 2d | 6e 61 6d 65 29 29 0a 09 |p xargs-|name))..| |00005840| 09 09 09 20 20 28 73 79 | 6d 62 6f 6c 2d 76 61 6c |... (sy|mbol-val| |00005850| 75 65 20 78 61 72 67 73 | 2d 6e 61 6d 65 29 0a 09 |ue xargs|-name)..| |00005860| 09 09 09 20 20 27 28 22 | 2d 69 22 29 29 29 29 0a |... '("|-i")))).| |00005870| 09 20 20 20 28 63 6d 75 | 73 68 65 6c 6c 2d 6d 6f |. (cmu|shell-mo| |00005880| 64 65 29 29 29 29 0a 20 | 20 28 73 77 69 74 63 68 |de)))). | (switch| |00005890| 2d 74 6f 2d 62 75 66 66 | 65 72 20 22 2a 63 6d 75 |-to-buff|er "*cmu| |000058a0| 73 68 65 6c 6c 2a 22 29 | 29 0a 0a 0c 0a 3b 3b 3b |shell*")|)....;;;| |000058b0| 20 44 69 72 65 63 74 6f | 72 79 20 74 72 61 63 6b | Directo|ry track| |000058c0| 69 6e 67 0a 3b 3b 3b 20 | 3d 3d 3d 3d 3d 3d 3d 3d |ing.;;; |========| |000058d0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========| |000058e0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========| |000058f0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========| |00005900| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========| |00005910| 3d 3d 3d 0a 3b 3b 3b 20 | 54 68 69 73 20 63 6f 64 |===.;;; |This cod| |00005920| 65 20 70 72 6f 76 69 64 | 65 73 20 74 68 65 20 63 |e provid|es the c| |00005930| 6d 75 73 68 65 6c 6c 20 | 6d 6f 64 65 20 69 6e 70 |mushell |mode inp| |00005940| 75 74 20 73 65 6e 74 69 | 6e 65 6c 0a 3b 3b 3b 20 |ut senti|nel.;;; | |00005950| 20 20 20 20 43 4d 55 53 | 48 45 4c 4c 2d 44 49 52 | CMUS|HELL-DIR| |00005960| 45 43 54 4f 52 59 2d 54 | 52 41 43 4b 45 52 0a 3b |ECTORY-T|RACKER.;| |00005970| 3b 3b 20 74 68 61 74 20 | 74 72 61 63 6b 73 20 63 |;; that |tracks c| |00005980| 64 2c 20 70 75 73 68 64 | 2c 20 61 6e 64 20 70 6f |d, pushd|, and po| |00005990| 70 64 20 63 6f 6d 6d 61 | 6e 64 73 20 69 73 73 75 |pd comma|nds issu| |000059a0| 65 64 20 74 6f 20 74 68 | 65 20 73 68 65 6c 6c 2c |ed to th|e shell,| |000059b0| 20 61 6e 64 0a 3b 3b 3b | 20 63 68 61 6e 67 65 73 | and.;;;| changes| |000059c0| 20 74 68 65 20 63 75 72 | 72 65 6e 74 20 64 69 72 | the cur|rent dir| |000059d0| 65 63 74 6f 72 79 20 6f | 66 20 74 68 65 20 73 68 |ectory o|f the sh| |000059e0| 65 6c 6c 20 62 75 66 66 | 65 72 20 61 63 63 6f 72 |ell buff|er accor| |000059f0| 64 69 6e 67 6c 79 2e 0a | 3b 3b 3b 0a 3b 3b 3b 20 |dingly..|;;;.;;; | |00005a00| 54 68 69 73 20 69 73 20 | 62 61 73 69 63 61 6c 6c |This is |basicall| |00005a10| 79 20 61 20 66 72 61 67 | 69 6c 65 20 68 61 63 6b |y a frag|ile hack| |00005a20| 2c 20 61 6c 74 68 6f 75 | 67 68 20 69 74 27 73 20 |, althou|gh it's | |00005a30| 6d 6f 72 65 20 61 63 63 | 75 72 61 74 65 20 74 68 |more acc|urate th| |00005a40| 61 6e 0a 3b 3b 3b 20 74 | 68 65 20 72 65 6c 65 61 |an.;;; t|he relea| |00005a50| 73 65 64 20 76 65 72 73 | 69 6f 6e 20 69 6e 20 73 |sed vers|ion in s| |00005a60| 68 65 6c 6c 2e 65 6c 2e | 20 49 74 20 68 61 73 20 |hell.el.| It has | |00005a70| 74 68 65 20 66 6f 6c 6c | 6f 77 69 6e 67 20 66 61 |the foll|owing fa| |00005a80| 69 6c 69 6e 67 73 3a 0a | 3b 3b 3b 20 31 2e 20 49 |ilings:.|;;; 1. I| |00005a90| 74 20 64 6f 65 73 6e 27 | 74 20 6b 6e 6f 77 20 61 |t doesn'|t know a| |00005aa0| 62 6f 75 74 20 74 68 65 | 20 63 64 70 61 74 68 20 |bout the| cdpath | |00005ab0| 73 68 65 6c 6c 20 76 61 | 72 69 61 62 6c 65 2e 0a |shell va|riable..| |00005ac0| 3b 3b 3b 20 32 2e 20 49 | 74 20 6f 6e 6c 79 20 73 |;;; 2. I|t only s| |00005ad0| 70 6f 74 73 20 74 68 65 | 20 66 69 72 73 74 20 63 |pots the| first c| |00005ae0| 6f 6d 6d 61 6e 64 20 69 | 6e 20 61 20 63 6f 6d 6d |ommand i|n a comm| |00005af0| 61 6e 64 20 73 65 71 75 | 65 6e 63 65 2e 20 45 2e |and sequ|ence. E.| |00005b00| 67 2e 2c 20 69 74 20 77 | 69 6c 6c 0a 3b 3b 3b 20 |g., it w|ill.;;; | |00005b10| 20 20 20 6d 69 73 73 20 | 74 68 65 20 63 64 20 69 | miss |the cd i| |00005b20| 6e 20 22 6c 73 3b 20 63 | 64 20 66 6f 6f 22 0a 3b |n "ls; c|d foo".;| |00005b30| 3b 3b 20 33 2e 20 4d 6f | 72 65 20 67 65 6e 65 72 |;; 3. Mo|re gener| |00005b40| 61 6c 6c 79 2c 20 61 6e | 79 20 63 6f 6d 70 6c 65 |ally, an|y comple| |00005b50| 78 20 63 6f 6d 6d 61 6e | 64 20 28 6c 69 6b 65 20 |x comman|d (like | |00005b60| 22 3b 22 20 73 65 71 75 | 65 6e 63 69 6e 67 29 20 |";" sequ|encing) | |00005b70| 69 73 20 67 6f 69 6e 67 | 20 74 6f 0a 3b 3b 3b 20 |is going| to.;;; | |00005b80| 20 20 20 74 68 72 6f 77 | 20 69 74 2e 20 4f 74 68 | throw| it. Oth| |00005b90| 65 72 77 69 73 65 2c 20 | 79 6f 75 27 64 20 68 61 |erwise, |you'd ha| |00005ba0| 76 65 20 74 6f 20 62 75 | 69 6c 64 20 61 6e 20 65 |ve to bu|ild an e| |00005bb0| 6e 74 69 72 65 20 73 68 | 65 6c 6c 20 69 6e 74 65 |ntire sh|ell inte| |00005bc0| 72 70 72 65 74 65 72 20 | 69 6e 0a 3b 3b 3b 20 20 |rpreter |in.;;; | |00005bd0| 20 20 65 6d 61 63 73 20 | 6c 69 73 70 2e 20 20 46 | emacs |lisp. F| |00005be0| 61 69 6c 69 6e 67 20 74 | 68 61 74 2c 20 74 68 65 |ailing t|hat, the| |00005bf0| 72 65 27 73 20 6e 6f 20 | 77 61 79 20 74 6f 20 63 |re's no |way to c| |00005c00| 61 74 63 68 20 73 68 65 | 6c 6c 20 63 6f 6d 6d 61 |atch she|ll comma| |00005c10| 6e 64 73 20 77 68 65 72 | 65 0a 3b 3b 3b 20 20 20 |nds wher|e.;;; | |00005c20| 20 63 64 27 73 20 61 72 | 65 20 62 75 72 69 65 64 | cd's ar|e buried| |00005c30| 20 69 6e 73 69 64 65 20 | 63 6f 6e 64 69 74 69 6f | inside |conditio| |00005c40| 6e 61 6c 20 65 78 70 72 | 65 73 73 69 6f 6e 73 2c |nal expr|essions,| |00005c50| 20 61 6c 69 61 73 65 73 | 2c 20 61 6e 64 20 73 6f | aliases|, and so| |00005c60| 20 66 6f 72 74 68 2e 0a | 3b 3b 3b 0a 3b 3b 3b 20 | forth..|;;;.;;; | |00005c70| 54 68 65 20 77 68 6f 6c | 65 20 61 70 70 72 6f 61 |The whol|e approa| |00005c80| 63 68 20 69 73 20 61 20 | 63 72 6f 63 6b 2e 20 53 |ch is a |crock. S| |00005c90| 68 65 6c 6c 20 61 6c 69 | 61 73 65 73 20 6d 65 73 |hell ali|ases mes| |00005ca0| 73 20 69 74 20 75 70 2e | 20 46 69 6c 65 20 73 6f |s it up.| File so| |00005cb0| 75 72 63 69 6e 67 0a 3b | 3b 3b 20 6d 65 73 73 65 |urcing.;|;; messe| |00005cc0| 73 20 69 74 20 75 70 2e | 20 59 6f 75 20 72 75 6e |s it up.| You run| |00005cd0| 20 6f 74 68 65 72 20 70 | 72 6f 63 65 73 73 65 73 | other p|rocesses| |00005ce0| 20 75 6e 64 65 72 20 74 | 68 65 20 73 68 65 6c 6c | under t|he shell| |00005cf0| 3b 20 74 68 65 73 65 20 | 65 61 63 68 20 68 61 76 |; these |each hav| |00005d00| 65 0a 3b 3b 3b 20 73 65 | 70 61 72 61 74 65 20 77 |e.;;; se|parate w| |00005d10| 6f 72 6b 69 6e 67 20 64 | 69 72 65 63 74 6f 72 69 |orking d|irectori| |00005d20| 65 73 2c 20 61 6e 64 20 | 73 6f 6d 65 20 68 61 76 |es, and |some hav| |00005d30| 65 20 63 6f 6d 6d 61 6e | 64 73 20 66 6f 72 20 6d |e comman|ds for m| |00005d40| 61 6e 69 70 75 6c 61 74 | 69 6e 67 0a 3b 3b 3b 20 |anipulat|ing.;;; | |00005d50| 74 68 65 69 72 20 77 2e | 64 2e 27 73 20 28 65 2e |their w.|d.'s (e.| |00005d60| 67 2e 2c 20 74 68 65 20 | 6c 63 64 20 63 6f 6d 6d |g., the |lcd comm| |00005d70| 61 6e 64 20 69 6e 20 66 | 74 70 29 2e 20 53 6f 6d |and in f|tp). Som| |00005d80| 65 20 6f 66 20 74 68 65 | 73 65 20 70 72 6f 67 72 |e of the|se progr| |00005d90| 61 6d 73 20 68 61 76 65 | 0a 3b 3b 3b 20 63 6f 6d |ams have|.;;; com| |00005da0| 6d 61 6e 64 73 20 74 68 | 61 74 20 64 6f 20 2a 6e |mands th|at do *n| |00005db0| 6f 74 2a 20 65 66 66 65 | 63 74 20 74 68 65 20 63 |ot* effe|ct the c| |00005dc0| 75 72 72 65 6e 74 20 77 | 2e 64 2e 20 61 74 20 61 |urrent w|.d. at a| |00005dd0| 6c 6c 2c 20 62 75 74 20 | 6c 6f 6f 6b 20 6c 69 6b |ll, but |look lik| |00005de0| 65 20 74 68 65 79 0a 3b | 3b 3b 20 64 6f 20 28 65 |e they.;|;; do (e| |00005df0| 2e 67 2e 2c 20 74 68 65 | 20 63 64 20 63 6f 6d 6d |.g., the| cd comm| |00005e00| 61 6e 64 20 69 6e 20 66 | 74 70 29 2e 20 20 49 6e |and in f|tp). In| |00005e10| 20 73 68 65 6c 6c 73 20 | 74 68 61 74 20 61 6c 6c | shells |that all| |00005e20| 6f 77 20 79 6f 75 20 6a | 6f 62 0a 3b 3b 3b 20 63 |ow you j|ob.;;; c| |00005e30| 6f 6e 74 72 6f 6c 2c 20 | 79 6f 75 20 63 61 6e 20 |ontrol, |you can | |00005e40| 73 77 69 74 63 68 20 62 | 65 74 77 65 65 6e 20 6a |switch b|etween j| |00005e50| 6f 62 73 2c 20 61 6c 6c | 20 68 61 76 69 6e 67 20 |obs, all| having | |00005e60| 64 69 66 66 65 72 65 6e | 74 20 77 2e 64 2e 27 73 |differen|t w.d.'s| |00005e70| 2e 20 53 6f 0a 3b 3b 3b | 20 73 69 6d 70 6c 79 20 |. So.;;;| simply | |00005e80| 73 61 79 69 6e 67 20 25 | 33 20 63 61 6e 20 73 68 |saying %|3 can sh| |00005e90| 69 66 74 20 79 6f 75 72 | 20 77 2e 64 2e 2e 0a 3b |ift your| w.d...;| |00005ea0| 3b 3b 0a 3b 3b 3b 20 54 | 68 65 20 73 6f 6c 75 74 |;;.;;; T|he solut| |00005eb0| 69 6f 6e 20 69 73 20 74 | 6f 20 72 65 6c 61 78 2c |ion is t|o relax,| |00005ec0| 20 6e 6f 74 20 73 74 72 | 65 73 73 20 6f 75 74 20 | not str|ess out | |00005ed0| 61 62 6f 75 74 20 69 74 | 2c 20 61 6e 64 20 73 65 |about it|, and se| |00005ee0| 74 74 6c 65 20 66 6f 72 | 0a 3b 3b 3b 20 61 20 68 |ttle for|.;;; a h| |00005ef0| 61 63 6b 20 74 68 61 74 | 20 77 6f 72 6b 73 20 70 |ack that| works p| |00005f00| 72 65 74 74 79 20 77 65 | 6c 6c 20 69 6e 20 74 79 |retty we|ll in ty| |00005f10| 70 69 63 61 6c 20 63 69 | 72 63 75 6d 73 74 61 6e |pical ci|rcumstan| |00005f20| 63 65 73 2e 20 52 65 6d | 65 6d 62 65 72 0a 3b 3b |ces. Rem|ember.;;| |00005f30| 3b 20 74 68 61 74 20 61 | 20 68 61 6c 66 2d 61 73 |; that a| half-as| |00005f40| 73 65 64 20 73 6f 6c 75 | 74 69 6f 6e 20 69 73 20 |sed solu|tion is | |00005f50| 6d 6f 72 65 20 69 6e 20 | 6b 65 65 70 69 6e 67 20 |more in |keeping | |00005f60| 77 69 74 68 20 74 68 65 | 20 73 70 69 72 69 74 20 |with the| spirit | |00005f70| 6f 66 20 55 6e 69 78 2c | 20 0a 3b 3b 3b 20 61 6e |of Unix,| .;;; an| |00005f80| 79 77 61 79 2e 20 42 6c | 65 63 68 2e 0a 3b 3b 3b |yway. Bl|ech..;;;| |00005f90| 0a 3b 3b 3b 20 4f 6e 65 | 20 67 6f 6f 64 20 68 61 |.;;; One| good ha| |00005fa0| 63 6b 20 6e 6f 74 20 69 | 6d 70 6c 65 6d 65 6e 74 |ck not i|mplement| |00005fb0| 65 64 20 68 65 72 65 20 | 66 6f 72 20 75 73 65 72 |ed here |for user| |00005fc0| 73 20 6f 66 20 70 72 6f | 67 72 61 6d 6d 61 62 6c |s of pro|grammabl| |00005fd0| 65 20 73 68 65 6c 6c 73 | 0a 3b 3b 3b 20 69 73 20 |e shells|.;;; is | |00005fe0| 74 6f 20 70 72 6f 67 72 | 61 6d 20 75 70 20 74 68 |to progr|am up th| |00005ff0| 65 20 73 68 65 6c 6c 20 | 77 2e 64 2e 20 6d 61 6e |e shell |w.d. man| |00006000| 69 70 75 6c 61 74 69 6f | 6e 20 63 6f 6d 6d 61 6e |ipulatio|n comman| |00006010| 64 73 20 74 6f 20 6f 75 | 74 70 75 74 0a 3b 3b 3b |ds to ou|tput.;;;| |00006020| 20 61 20 63 6f 64 65 64 | 20 63 6f 6d 6d 61 6e 64 | a coded| command| |00006030| 20 73 65 71 75 65 6e 63 | 65 20 74 6f 20 74 68 65 | sequenc|e to the| |00006040| 20 74 74 79 2e 20 53 6f | 6d 65 74 68 69 6e 67 20 | tty. So|mething | |00006050| 6c 69 6b 65 0a 3b 3b 3b | 20 20 20 20 20 45 53 43 |like.;;;| ESC| |00006060| 20 7c 20 3c 63 77 64 3e | 20 7c 0a 3b 3b 3b 20 77 | | <cwd>| |.;;; w| |00006070| 68 65 72 65 20 3c 63 77 | 64 3e 20 69 73 20 74 68 |here <cw|d> is th| |00006080| 65 20 6e 65 77 20 63 75 | 72 72 65 6e 74 20 77 6f |e new cu|rrent wo| |00006090| 72 6b 69 6e 67 20 64 69 | 72 65 63 74 6f 72 79 2e |rking di|rectory.| |000060a0| 20 54 68 65 6e 20 74 72 | 61 73 68 20 74 68 65 0a | Then tr|ash the.| |000060b0| 3b 3b 3b 20 64 69 72 65 | 63 74 6f 72 79 20 74 72 |;;; dire|ctory tr| |000060c0| 61 63 6b 69 6e 67 20 6d | 61 63 68 69 6e 65 72 79 |acking m|achinery| |000060d0| 20 63 75 72 72 65 6e 74 | 6c 79 20 75 73 65 64 20 | current|ly used | |000060e0| 69 6e 20 74 68 69 73 20 | 70 61 63 6b 61 67 65 2c |in this |package,| |000060f0| 20 61 6e 64 0a 3b 3b 3b | 20 72 65 70 6c 61 63 65 | and.;;;| replace| |00006100| 20 69 74 20 77 69 74 68 | 20 61 20 70 72 6f 63 65 | it with| a proce| |00006110| 73 73 20 66 69 6c 74 65 | 72 20 74 68 61 74 20 77 |ss filte|r that w| |00006120| 61 74 63 68 65 73 20 66 | 6f 72 20 61 6e 64 20 73 |atches f|or and s| |00006130| 74 72 69 70 73 20 6f 75 | 74 0a 3b 3b 3b 20 74 68 |trips ou|t.;;; th| |00006140| 65 73 65 20 6d 65 73 73 | 61 67 65 73 2e 0a 0a 3b |ese mess|ages...;| |00006150| 3b 3b 20 52 45 47 45 58 | 50 20 69 73 20 61 20 72 |;; REGEX|P is a r| |00006160| 65 67 75 6c 61 72 20 65 | 78 70 72 65 73 73 69 6f |egular e|xpressio| |00006170| 6e 2e 20 53 54 52 20 69 | 73 20 61 20 73 74 72 69 |n. STR i|s a stri| |00006180| 6e 67 2e 20 53 54 41 52 | 54 20 69 73 20 61 20 66 |ng. STAR|T is a f| |00006190| 69 78 6e 75 6d 2e 0a 3b | 3b 3b 20 52 65 74 75 72 |ixnum..;|;; Retur| |000061a0| 6e 73 20 54 20 69 66 20 | 52 45 47 45 58 50 20 6d |ns T if |REGEXP m| |000061b0| 61 74 63 68 65 73 20 53 | 54 52 20 77 68 65 72 65 |atches S|TR where| |000061c0| 20 74 68 65 20 6d 61 74 | 63 68 20 69 73 20 61 6e | the mat|ch is an| |000061d0| 63 68 6f 72 65 64 20 74 | 6f 20 73 74 61 72 74 0a |chored t|o start.| |000061e0| 3b 3b 3b 20 61 74 20 70 | 6f 73 69 74 69 6f 6e 20 |;;; at p|osition | |000061f0| 53 54 41 52 54 20 69 6e | 20 53 54 52 2e 20 53 6f |START in| STR. So| |00006200| 72 74 20 6f 66 20 6c 69 | 6b 65 20 4c 4f 4f 4b 49 |rt of li|ke LOOKI| |00006210| 4e 47 2d 41 54 20 66 6f | 72 20 73 74 72 69 6e 67 |NG-AT fo|r string| |00006220| 73 2e 0a 28 64 65 66 75 | 6e 20 63 6d 75 73 68 65 |s..(defu|n cmushe| |00006230| 6c 6c 2d 66 72 6f 6e 74 | 2d 6d 61 74 63 68 20 28 |ll-front|-match (| |00006240| 72 65 67 65 78 70 20 73 | 74 72 20 73 74 61 72 74 |regexp s|tr start| |00006250| 29 0a 20 20 28 65 71 20 | 73 74 61 72 74 20 28 73 |). (eq |start (s| |00006260| 74 72 69 6e 67 2d 6d 61 | 74 63 68 20 72 65 67 65 |tring-ma|tch rege| |00006270| 78 70 20 73 74 72 20 73 | 74 61 72 74 29 29 29 0a |xp str s|tart))).| |00006280| 0a 28 64 65 66 75 6e 20 | 63 6d 75 73 68 65 6c 6c |.(defun |cmushell| |00006290| 2d 64 69 72 65 63 74 6f | 72 79 2d 74 72 61 63 6b |-directo|ry-track| |000062a0| 65 72 20 28 73 74 72 29 | 0a 20 20 22 54 72 61 63 |er (str)|. "Trac| |000062b0| 6b 73 20 63 64 2c 20 70 | 75 73 68 64 20 61 6e 64 |ks cd, p|ushd and| |000062c0| 20 70 6f 70 64 20 63 6f | 6d 6d 61 6e 64 73 20 69 | popd co|mmands i| |000062d0| 73 73 75 65 64 20 74 6f | 20 74 68 65 20 73 68 65 |ssued to| the she| |000062e0| 6c 6c 2e 0a 54 68 69 73 | 20 66 75 6e 63 74 69 6f |ll..This| functio| |000062f0| 6e 20 69 73 20 63 61 6c | 6c 65 64 20 6f 6e 20 65 |n is cal|led on e| |00006300| 61 63 68 20 69 6e 70 75 | 74 20 70 61 73 73 65 64 |ach inpu|t passed| |00006310| 20 74 6f 20 74 68 65 20 | 73 68 65 6c 6c 2e 0a 49 | to the |shell..I| |00006320| 74 20 77 61 74 63 68 65 | 73 20 66 6f 72 20 63 64 |t watche|s for cd| |00006330| 2c 20 70 75 73 68 64 20 | 61 6e 64 20 70 6f 70 64 |, pushd |and popd| |00006340| 20 63 6f 6d 6d 61 6e 64 | 73 20 61 6e 64 20 73 65 | command|s and se| |00006350| 74 73 20 74 68 65 20 62 | 75 66 66 65 72 27 73 0a |ts the b|uffer's.| |00006360| 64 65 66 61 75 6c 74 20 | 64 69 72 65 63 74 6f 72 |default |director| |00006370| 79 20 74 6f 20 74 72 61 | 63 6b 20 74 68 65 73 65 |y to tra|ck these| |00006380| 20 63 6f 6d 6d 61 6e 64 | 73 2e 0a 0a 59 6f 75 20 | command|s...You | |00006390| 6d 61 79 20 74 6f 67 67 | 6c 65 20 74 68 69 73 20 |may togg|le this | |000063a0| 74 72 61 63 6b 69 6e 67 | 20 6f 6e 20 61 6e 64 20 |tracking| on and | |000063b0| 6f 66 66 20 77 69 74 68 | 20 4d 2d 78 20 64 69 72 |off with| M-x dir| |000063c0| 74 72 61 63 6b 2d 74 6f | 67 67 6c 65 2e 0a 49 66 |track-to|ggle..If| |000063d0| 20 65 6d 61 63 73 20 67 | 65 74 73 20 63 6f 6e 66 | emacs g|ets conf| |000063e0| 75 73 65 64 2c 20 79 6f | 75 20 63 61 6e 20 72 65 |used, yo|u can re| |000063f0| 73 79 6e 63 20 77 69 74 | 68 20 74 68 65 20 73 68 |sync wit|h the sh| +--------+-------------------------+-------------------------+--------+--------+ Only 25.0 KB of data is shown above.