home *** CD-ROM | disk | FTP | other *** search
Emacs Compiled Lisp | 1993-04-01 | 9.0 KB |
open in:
MacOS 8.1
|
Win98
|
DOS
view JSON data
|
view as text
This file was processed as: Emacs Compiled Lisp
(other/emacsCompiledLisp).
This format is not currently supported by dexvert.
Confidence | Program | Detection | Match Type | Support
|
---|
1%
| dexvert
| Emacs Compiled Lisp (other/emacsCompiledLisp)
| magic
| Unsupported |
1%
| dexvert
| Combustion 2 Particle Library (other/combustion2ParticleLibrary)
| ext
| Unsupported |
100%
| file
| Emacs/XEmacs v19 byte-compiled Lisp data
| default
| |
99%
| file
| data
| default
| |
100%
| TrID
| Emacs/XEmacs byte-compiled Lisp (generic)
| default
| |
100%
| xdgMime
| text/x-emacs-lisp
| default (weak)
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 3b 45 4c 43 13 00 00 00 | 0a 3b 3b 3b 20 63 6f 6d |;ELC....|.;;; com|
|00000010| 70 69 6c 65 64 20 62 79 | 20 6a 6c 7a 40 61 73 68 |piled by| jlz@ash|
|00000020| 77 65 64 6e 65 73 64 61 | 79 20 6f 6e 20 4d 6f 6e |wednesda|y on Mon|
|00000030| 20 4d 61 72 20 31 35 20 | 30 30 3a 31 33 3a 33 34 | Mar 15 |00:13:34|
|00000040| 20 31 39 39 33 0a 3b 3b | 3b 20 66 72 6f 6d 20 66 | 1993.;;|; from f|
|00000050| 69 6c 65 20 2f 63 61 64 | 69 6c 6c 61 63 2d 61 77 |ile /cad|illac-aw|
|00000060| 32 2f 74 65 73 74 62 69 | 6e 2d 62 75 69 6c 64 73 |2/testbi|n-builds|
|00000070| 2f 6c 65 6d 61 63 73 2f | 6c 69 73 70 2f 63 6f 6d |/lemacs/|lisp/com|
|00000080| 69 6e 74 2f 73 68 65 6c | 6c 2e 65 6c 0a 3b 3b 3b |int/shel|l.el.;;;|
|00000090| 20 65 6d 61 63 73 20 76 | 65 72 73 69 6f 6e 20 31 | emacs v|ersion 1|
|000000a0| 39 2e 36 20 28 62 65 74 | 61 32 29 20 4c 75 63 69 |9.6 (bet|a2) Luci|
|000000b0| 64 2e 0a 3b 3b 3b 20 62 | 79 74 65 63 6f 6d 70 20 |d..;;; b|ytecomp |
|000000c0| 76 65 72 73 69 6f 6e 20 | 32 2e 31 30 3b 20 31 36 |version |2.10; 16|
|000000d0| 2d 66 65 62 2d 39 33 2e | 0a 3b 3b 3b 20 6f 70 74 |-feb-93.|.;;; opt|
|000000e0| 69 6d 69 7a 61 74 69 6f | 6e 20 69 73 20 6f 6e 2e |imizatio|n is on.|
|000000f0| 0a 3b 3b 3b 20 74 68 69 | 73 20 66 69 6c 65 20 75 |.;;; thi|s file u|
|00000100| 73 65 73 20 6f 70 63 6f | 64 65 73 20 77 68 69 63 |ses opco|des whic|
|00000110| 68 20 64 6f 20 6e 6f 74 | 20 65 78 69 73 74 20 69 |h do not| exist i|
|00000120| 6e 20 45 6d 61 63 73 31 | 38 2e 0a 0a 28 69 66 20 |n Emacs1|8...(if |
|00000130| 28 61 6e 64 20 28 62 6f | 75 6e 64 70 20 27 65 6d |(and (bo|undp 'em|
|00000140| 61 63 73 2d 76 65 72 73 | 69 6f 6e 29 0a 09 20 28 |acs-vers|ion).. (|
|00000150| 6f 72 20 28 61 6e 64 20 | 28 62 6f 75 6e 64 70 20 |or (and |(boundp |
|00000160| 27 65 70 6f 63 68 3a 3a | 76 65 72 73 69 6f 6e 29 |'epoch::|version)|
|00000170| 20 65 70 6f 63 68 3a 3a | 76 65 72 73 69 6f 6e 29 | epoch::|version)|
|00000180| 0a 09 20 20 20 20 20 28 | 73 74 72 69 6e 67 2d 6c |.. (|string-l|
|00000190| 65 73 73 70 20 65 6d 61 | 63 73 2d 76 65 72 73 69 |essp ema|cs-versi|
|000001a0| 6f 6e 20 22 31 39 22 29 | 29 29 0a 20 20 20 20 28 |on "19")|)). (|
|000001b0| 65 72 72 6f 72 20 22 54 | 68 69 73 20 66 69 6c 65 |error "T|his file|
|000001c0| 20 77 61 73 20 63 6f 6d | 70 69 6c 65 64 20 66 6f | was com|piled fo|
|000001d0| 72 20 45 6d 61 63 73 31 | 39 2e 22 29 29 0a 0a 28 |r Emacs1|9."))..(|
|000001e0| 62 79 74 65 2d 63 6f 64 | 65 20 22 c0 c1 21 88 c2 |byte-cod|e "..!..|
|000001f0| c3 21 88 c4 c5 c6 c7 23 | 87 22 20 5b 72 65 71 75 |.!.....#|." [requ|
|00000200| 69 72 65 20 63 6f 6d 69 | 6e 74 20 70 72 6f 76 69 |ire comi|nt provi|
|00000210| 64 65 20 73 68 65 6c 6c | 20 70 75 74 20 73 68 65 |de shell| put she|
|00000220| 6c 6c 2d 70 72 6f 6d 70 | 74 2d 70 61 74 74 65 72 |ll-promp|t-patter|
|00000230| 6e 20 76 61 72 69 61 62 | 6c 65 2d 64 6f 63 75 6d |n variab|le-docum|
|00000240| 65 6e 74 61 74 69 6f 6e | 20 22 52 65 67 65 78 70 |entation| "Regexp|
|00000250| 20 74 6f 20 6d 61 74 63 | 68 20 70 72 6f 6d 70 74 | to matc|h prompt|
|00000260| 73 20 69 6e 20 74 68 65 | 20 69 6e 66 65 72 69 6f |s in the| inferio|
|00000270| 72 20 73 68 65 6c 6c 2e | 5c 6e 44 65 66 61 75 6c |r shell.|\nDefaul|
|00000280| 74 73 20 74 6f 20 5c 22 | 5e 5b 5e 23 24 25 3e 5d |ts to \"|^[^#$%>]|
|00000290| 2a 5b 23 24 25 3e 5d 20 | 2a 5c 22 2c 20 77 68 69 |*[#$%>] |*\", whi|
|000002a0| 63 68 20 77 6f 72 6b 73 | 20 70 72 65 74 74 79 20 |ch works| pretty |
|000002b0| 77 65 6c 6c 2e 5c 6e 54 | 68 69 73 20 76 61 72 69 |well.\nT|his vari|
|000002c0| 61 62 6c 65 20 69 73 20 | 75 73 65 64 20 74 6f 20 |able is |used to |
|000002d0| 69 6e 69 74 69 61 6c 69 | 73 65 20 63 6f 6d 69 6e |initiali|se comin|
|000002e0| 74 2d 70 72 6f 6d 70 74 | 2d 72 65 67 65 78 70 20 |t-prompt|-regexp |
|000002f0| 69 6e 20 74 68 65 20 5c | 6e 73 68 65 6c 6c 20 62 |in the \|nshell b|
|00000300| 75 66 66 65 72 2e 5c 6e | 5c 6e 54 68 69 73 20 69 |uffer.\n|\nThis i|
|00000310| 73 20 61 20 66 69 6e 65 | 20 74 68 69 6e 67 20 74 |s a fine| thing t|
|00000320| 6f 20 73 65 74 20 69 6e | 20 79 6f 75 72 20 2e 65 |o set in| your .e|
|00000330| 6d 61 63 73 20 66 69 6c | 65 2e 22 5d 20 34 29 0a |macs fil|e."] 4).|
|00000340| 28 64 65 66 76 61 72 20 | 73 68 65 6c 6c 2d 70 6f |(defvar |shell-po|
|00000350| 70 64 2d 72 65 67 65 78 | 70 20 22 70 6f 70 64 22 |pd-regex|p "popd"|
|00000360| 20 22 5c 0a 2a 52 65 67 | 65 78 70 20 74 6f 20 6d | "\.*Reg|exp to m|
|00000370| 61 74 63 68 20 73 75 62 | 73 68 65 6c 6c 20 63 6f |atch sub|shell co|
|00000380| 6d 6d 61 6e 64 73 20 65 | 71 75 69 76 61 6c 65 6e |mmands e|quivalen|
|00000390| 74 20 74 6f 20 70 6f 70 | 64 2e 22 29 0a 28 64 65 |t to pop|d.").(de|
|000003a0| 66 76 61 72 20 73 68 65 | 6c 6c 2d 70 75 73 68 64 |fvar she|ll-pushd|
|000003b0| 2d 72 65 67 65 78 70 20 | 22 70 75 73 68 64 22 20 |-regexp |"pushd" |
|000003c0| 22 5c 0a 2a 52 65 67 65 | 78 70 20 74 6f 20 6d 61 |"\.*Rege|xp to ma|
|000003d0| 74 63 68 20 73 75 62 73 | 68 65 6c 6c 20 63 6f 6d |tch subs|hell com|
|000003e0| 6d 61 6e 64 73 20 65 71 | 75 69 76 61 6c 65 6e 74 |mands eq|uivalent|
|000003f0| 20 74 6f 20 70 75 73 68 | 64 2e 22 29 0a 28 64 65 | to push|d.").(de|
|00000400| 66 76 61 72 20 73 68 65 | 6c 6c 2d 63 64 2d 72 65 |fvar she|ll-cd-re|
|00000410| 67 65 78 70 20 22 63 64 | 22 20 22 5c 0a 2a 52 65 |gexp "cd|" "\.*Re|
|00000420| 67 65 78 70 20 74 6f 20 | 6d 61 74 63 68 20 73 75 |gexp to |match su|
|00000430| 62 73 68 65 6c 6c 20 63 | 6f 6d 6d 61 6e 64 73 20 |bshell c|ommands |
|00000440| 65 71 75 69 76 61 6c 65 | 6e 74 20 74 6f 20 63 64 |equivale|nt to cd|
|00000450| 2e 22 29 0a 28 64 65 66 | 76 61 72 20 65 78 70 6c |.").(def|var expl|
|00000460| 69 63 69 74 2d 73 68 65 | 6c 6c 2d 66 69 6c 65 2d |icit-she|ll-file-|
|00000470| 6e 61 6d 65 20 6e 69 6c | 20 22 5c 0a 2a 49 66 20 |name nil| "\.*If |
|00000480| 6e 6f 6e 2d 6e 69 6c 2c | 20 69 73 20 66 69 6c 65 |non-nil,| is file|
|00000490| 20 6e 61 6d 65 20 74 6f | 20 75 73 65 20 66 6f 72 | name to| use for|
|000004a0| 20 65 78 70 6c 69 63 69 | 74 6c 79 20 72 65 71 75 | explici|tly requ|
|000004b0| 65 73 74 65 64 20 69 6e | 66 65 72 69 6f 72 20 73 |ested in|ferior s|
|000004c0| 68 65 6c 6c 2e 22 29 0a | 28 64 65 66 76 61 72 20 |hell.").|(defvar |
|000004d0| 65 78 70 6c 69 63 69 74 | 2d 63 73 68 2d 61 72 67 |explicit|-csh-arg|
|000004e0| 75 6d 65 6e 74 73 20 28 | 62 79 74 65 2d 63 6f 64 |uments (|byte-cod|
|000004f0| 65 20 22 08 c1 3d ab 82 | c2 87 c3 87 22 20 5b 73 |e "..=..|...." [s|
|00000500| 79 73 74 65 6d 2d 74 79 | 70 65 20 68 70 75 78 20 |ystem-ty|pe hpux |
|00000510| 28 22 2d 69 22 20 22 2d | 54 22 29 20 28 22 2d 69 |("-i" "-|T") ("-i|
|00000520| 22 29 5d 20 32 29 20 22 | 5c 0a 2a 41 72 67 73 20 |")] 2) "|\.*Args |
|00000530| 70 61 73 73 65 64 20 74 | 6f 20 69 6e 66 65 72 69 |passed t|o inferi|
|00000540| 6f 72 20 73 68 65 6c 6c | 20 62 79 20 4d 2d 78 20 |or shell| by M-x |
|00000550| 73 68 65 6c 6c 2c 20 69 | 66 20 74 68 65 20 73 68 |shell, i|f the sh|
|00000560| 65 6c 6c 20 69 73 20 63 | 73 68 2e 0a 56 61 6c 75 |ell is c|sh..Valu|
|00000570| 65 20 69 73 20 61 20 6c | 69 73 74 20 6f 66 20 73 |e is a l|ist of s|
|00000580| 74 72 69 6e 67 73 2c 20 | 77 68 69 63 68 20 6d 61 |trings, |which ma|
|00000590| 79 20 62 65 20 6e 69 6c | 2e 22 29 0a 28 64 65 66 |y be nil|.").(def|
|000005a0| 76 61 72 20 73 68 65 6c | 6c 2d 64 69 72 73 74 61 |var shel|l-dirsta|
|000005b0| 63 6b 20 6e 69 6c 20 22 | 5c 0a 4c 69 73 74 20 6f |ck nil "|\.List o|
|000005c0| 66 20 64 69 72 65 63 74 | 6f 72 69 65 73 20 73 61 |f direct|ories sa|
|000005d0| 76 65 64 20 62 79 20 70 | 75 73 68 64 20 69 6e 20 |ved by p|ushd in |
|000005e0| 74 68 69 73 20 62 75 66 | 66 65 72 27 73 20 73 68 |this buf|fer's sh|
|000005f0| 65 6c 6c 2e 22 29 0a 28 | 64 65 66 76 61 72 20 73 |ell.").(|defvar s|
|00000600| 68 65 6c 6c 2d 64 69 72 | 73 74 61 63 6b 2d 71 75 |hell-dir|stack-qu|
|00000610| 65 72 79 20 22 64 69 72 | 73 22 20 22 5c 0a 43 6f |ery "dir|s" "\.Co|
|00000620| 6d 6d 61 6e 64 20 75 73 | 65 64 20 62 79 20 73 68 |mmand us|ed by sh|
|00000630| 65 6c 6c 2d 72 65 73 79 | 6e 63 2d 64 69 72 6c 69 |ell-resy|nc-dirli|
|00000640| 73 74 20 74 6f 20 71 75 | 65 72 79 20 73 68 65 6c |st to qu|ery shel|
|00000650| 6c 2e 22 29 0a 28 62 79 | 74 65 2d 63 6f 64 65 20 |l.").(by|te-code |
|00000660| 22 c0 c1 21 ac 82 c2 11 | 09 ac ba c3 c4 21 ab 96 |"..!....|.....!..|
|00000670| c5 20 1e 06 c4 0e 06 0e | 07 5c 22 88 c8 0e 06 c1 |. ......|.\".....|
|00000680| 5c 22 88 0e 06 29 aa 84 | c9 0e 07 21 1e 06 ca 0e |\"...)..|...!....|
|00000690| 06 cb cc 23 88 ca 0e 06 | cd cc 23 88 ca 0e 06 ce |...#....|..#.....|
|000006a0| cf 23 88 0e 06 11 29 c2 | 87 22 20 5b 62 6f 75 6e |.#....).|." [boun|
|000006b0| 64 70 20 73 68 65 6c 6c | 2d 6d 6f 64 65 2d 6d 61 |dp shell|-mode-ma|
|000006c0| 70 20 6e 69 6c 20 66 62 | 6f 75 6e 64 70 20 73 65 |p nil fb|oundp se|
|000006d0| 74 2d 6b 65 79 6d 61 70 | 2d 70 61 72 65 6e 74 20 |t-keymap|-parent |
|000006e0| 6d 61 6b 65 2d 6b 65 79 | 6d 61 70 20 6d 61 70 20 |make-key|map map |
|000006f0| 63 6f 6d 69 6e 74 2d 6d | 6f 64 65 2d 6d 61 70 20 |comint-m|ode-map |
|00000700| 73 65 74 2d 6b 65 79 6d | 61 70 2d 6e 61 6d 65 20 |set-keym|ap-name |
|00000710| 66 75 6c 6c 2d 63 6f 70 | 79 2d 73 70 61 72 73 65 |full-cop|y-sparse|
|00000720| 2d 6b 65 79 6d 61 70 20 | 64 65 66 69 6e 65 2d 6b |-keymap |define-k|
|00000730| 65 79 20 22 89 22 20 63 | 6f 6d 69 6e 74 2d 64 79 |ey "." c|omint-dy|
|00000740| 6e 61 6d 69 63 2d 63 6f | 6d 70 6c 65 74 65 20 22 |namic-co|mplete "|
|00000750| 09 22 20 22 bf 22 20 63 | 6f 6d 69 6e 74 2d 64 79 |." "." c|omint-dy|
|00000760| 6e 61 6d 69 63 2d 6c 69 | 73 74 2d 63 6f 6d 70 6c |namic-li|st-compl|
|00000770| 65 74 69 6f 6e 73 5d 20 | 34 29 0a 28 64 65 66 76 |etions] |4).(defv|
|00000780| 61 72 20 73 68 65 6c 6c | 2d 6d 6f 64 65 2d 68 6f |ar shell|-mode-ho|
|00000790| 6f 6b 20 6e 69 6c 20 22 | 5c 0a 2a 48 6f 6f 6b 20 |ok nil "|\.*Hook |
|000007a0| 66 6f 72 20 63 75 73 74 | 6f 6d 69 73 69 6e 67 20 |for cust|omising |
|000007b0| 73 68 65 6c 6c 20 6d 6f | 64 65 22 29 0a 28 66 73 |shell mo|de").(fs|
|000007c0| 65 74 20 27 73 68 65 6c | 6c 2d 6d 6f 64 65 20 23 |et 'shel|l-mode #|
|000007d0| 5b 6e 69 6c 20 22 c0 20 | 88 09 12 c3 14 c5 16 06 |[nil ". |........|
|000007e0| c7 0e 08 21 88 c9 ca 21 | 88 cb 16 5c 6e c9 cc 21 |...!...!|...\n..!|
|000007f0| 88 cd 16 0c ce 16 0f d0 | d1 21 87 22 20 5b 63 6f |........|.!." [co|
|00000800| 6d 69 6e 74 2d 6d 6f 64 | 65 20 73 68 65 6c 6c 2d |mint-mod|e shell-|
|00000810| 70 72 6f 6d 70 74 2d 70 | 61 74 74 65 72 6e 20 63 |prompt-p|attern c|
|00000820| 6f 6d 69 6e 74 2d 70 72 | 6f 6d 70 74 2d 72 65 67 |omint-pr|ompt-reg|
|00000830| 65 78 70 20 73 68 65 6c | 6c 2d 6d 6f 64 65 20 6d |exp shel|l-mode m|
|00000840| 61 6a 6f 72 2d 6d 6f 64 | 65 20 22 73 68 65 6c 6c |ajor-mod|e "shell|
|00000850| 22 20 6d 6f 64 65 2d 6e | 61 6d 65 20 75 73 65 2d |" mode-n|ame use-|
|00000860| 6c 6f 63 61 6c 2d 6d 61 | 70 20 73 68 65 6c 6c 2d |local-ma|p shell-|
|00000870| 6d 6f 64 65 2d 6d 61 70 | 20 6d 61 6b 65 2d 6c 6f |mode-map| make-lo|
|00000880| 63 61 6c 2d 76 61 72 69 | 61 62 6c 65 20 73 68 65 |cal-vari|able she|
|00000890| 6c 6c 2d 64 69 72 73 74 | 61 63 6b 20 6e 69 6c 20 |ll-dirst|ack nil |
|000008a0| 73 68 65 6c 6c 2d 64 69 | 72 74 72 61 63 6b 70 20 |shell-di|rtrackp |
|000008b0| 74 20 73 68 65 6c 6c 2d | 64 69 72 65 63 74 6f 72 |t shell-|director|
|000008c0| 79 2d 74 72 61 63 6b 65 | 72 20 63 6f 6d 69 6e 74 |y-tracke|r comint|
|000008d0| 2d 69 6e 70 75 74 2d 73 | 65 6e 74 69 6e 65 6c 20 |-input-s|entinel |
|000008e0| 72 75 6e 2d 68 6f 6f 6b | 73 20 73 68 65 6c 6c 2d |run-hook|s shell-|
|000008f0| 6d 6f 64 65 2d 68 6f 6f | 6b 5d 20 32 20 22 5c 0a |mode-hoo|k] 2 "\.|
|00000900| 4d 61 6a 6f 72 20 6d 6f | 64 65 20 66 6f 72 20 69 |Major mo|de for i|
|00000910| 6e 74 65 72 61 63 74 69 | 6e 67 20 77 69 74 68 20 |nteracti|ng with |
|00000920| 61 6e 20 69 6e 66 65 72 | 69 6f 72 20 73 68 65 6c |an infer|ior shel|
|00000930| 6c 2e 0a 52 65 74 75 72 | 6e 20 61 66 74 65 72 20 |l..Retur|n after |
|00000940| 74 68 65 20 65 6e 64 20 | 6f 66 20 74 68 65 20 70 |the end |of the p|
|00000950| 72 6f 63 65 73 73 27 20 | 6f 75 74 70 75 74 20 73 |rocess' |output s|
|00000960| 65 6e 64 73 20 74 68 65 | 20 74 65 78 74 20 66 72 |ends the| text fr|
|00000970| 6f 6d 20 74 68 65 20 0a | 20 20 20 20 65 6e 64 20 |om the .| end |
|00000980| 6f 66 20 70 72 6f 63 65 | 73 73 20 74 6f 20 74 68 |of proce|ss to th|
|00000990| 65 20 65 6e 64 20 6f 66 | 20 74 68 65 20 63 75 72 |e end of| the cur|
|000009a0| 72 65 6e 74 20 6c 69 6e | 65 2e 0a 52 65 74 75 72 |rent lin|e..Retur|
|000009b0| 6e 20 62 65 66 6f 72 65 | 20 65 6e 64 20 6f 66 20 |n before| end of |
|000009c0| 70 72 6f 63 65 73 73 20 | 6f 75 74 70 75 74 20 63 |process |output c|
|000009d0| 6f 70 69 65 73 20 72 65 | 73 74 20 6f 66 20 6c 69 |opies re|st of li|
|000009e0| 6e 65 20 74 6f 20 65 6e | 64 20 28 73 6b 69 70 70 |ne to en|d (skipp|
|000009f0| 69 6e 67 0a 20 20 20 20 | 74 68 65 20 70 72 6f 6d |ing. |the prom|
|00000a00| 70 74 29 20 61 6e 64 20 | 73 65 6e 64 73 20 69 74 |pt) and |sends it|
|00000a10| 2e 0a 4d 2d 78 20 73 65 | 6e 64 2d 69 6e 76 69 73 |..M-x se|nd-invis|
|00000a20| 69 62 6c 65 20 72 65 61 | 64 73 20 61 20 6c 69 6e |ible rea|ds a lin|
|00000a30| 65 20 6f 66 20 74 65 78 | 74 20 77 69 74 68 6f 75 |e of tex|t withou|
|00000a40| 74 20 65 63 68 6f 69 6e | 67 20 69 74 2c 20 61 6e |t echoin|g it, an|
|00000a50| 64 20 73 65 6e 64 73 20 | 69 74 20 74 6f 0a 20 20 |d sends |it to. |
|00000a60| 20 20 74 68 65 20 73 68 | 65 6c 6c 2e 0a 0a 49 66 | the sh|ell...If|
|00000a70| 20 79 6f 75 20 61 63 63 | 69 64 65 6e 74 61 6c 6c | you acc|identall|
|00000a80| 79 20 73 75 73 70 65 6e | 64 20 79 6f 75 72 20 70 |y suspen|d your p|
|00000a90| 72 6f 63 65 73 73 2c 20 | 75 73 65 20 5c 5c 5b 63 |rocess, |use \\[c|
|00000aa0| 6f 6d 69 6e 74 2d 63 6f | 6e 74 69 6e 75 65 2d 73 |omint-co|ntinue-s|
|00000ab0| 75 62 6a 6f 62 5d 0a 74 | 6f 20 63 6f 6e 74 69 6e |ubjob].t|o contin|
|00000ac0| 75 65 20 69 74 2e 0a 0a | 63 64 2c 20 70 75 73 68 |ue it...|cd, push|
|00000ad0| 64 20 61 6e 64 20 70 6f | 70 64 20 63 6f 6d 6d 61 |d and po|pd comma|
|00000ae0| 6e 64 73 20 67 69 76 65 | 6e 20 74 6f 20 74 68 65 |nds give|n to the|
|00000af0| 20 73 68 65 6c 6c 20 61 | 72 65 20 77 61 74 63 68 | shell a|re watch|
|00000b00| 65 64 20 62 79 20 45 6d | 61 63 73 20 74 6f 20 6b |ed by Em|acs to k|
|00000b10| 65 65 70 0a 74 68 69 73 | 20 62 75 66 66 65 72 27 |eep.this| buffer'|
|00000b20| 73 20 64 65 66 61 75 6c | 74 20 64 69 72 65 63 74 |s defaul|t direct|
|00000b30| 6f 72 79 20 74 68 65 20 | 73 61 6d 65 20 61 73 20 |ory the |same as |
|00000b40| 74 68 65 20 73 68 65 6c | 6c 27 73 20 77 6f 72 6b |the shel|l's work|
|00000b50| 69 6e 67 20 64 69 72 65 | 63 74 6f 72 79 2e 0a 4d |ing dire|ctory..M|
|00000b60| 2d 78 20 73 68 65 6c 6c | 2d 72 65 73 79 6e 63 2d |-x shell|-resync-|
|00000b70| 64 69 72 73 20 71 75 65 | 72 69 65 73 20 74 68 65 |dirs que|ries the|
|00000b80| 20 73 68 65 6c 6c 20 61 | 6e 64 20 72 65 73 79 6e | shell a|nd resyn|
|00000b90| 63 73 20 45 6d 61 63 73 | 27 20 69 64 65 61 20 6f |cs Emacs|' idea o|
|00000ba0| 66 20 77 68 61 74 20 74 | 68 65 20 0a 20 20 20 20 |f what t|he . |
|00000bb0| 63 75 72 72 65 6e 74 20 | 64 69 72 65 63 74 6f 72 |current |director|
|00000bc0| 79 20 73 74 61 63 6b 20 | 69 73 2e 0a 4d 2d 78 20 |y stack |is..M-x |
|00000bd0| 73 68 65 6c 6c 2d 64 69 | 72 74 72 61 63 6b 2d 74 |shell-di|rtrack-t|
|00000be0| 6f 67 67 6c 65 20 74 75 | 72 6e 73 20 64 69 72 65 |oggle tu|rns dire|
|00000bf0| 63 74 6f 72 79 20 74 72 | 61 63 6b 69 6e 67 20 6f |ctory tr|acking o|
|00000c00| 6e 20 61 6e 64 20 6f 66 | 66 2e 0a 0a 5c 5c 7b 73 |n and of|f...\\{s|
|00000c10| 68 65 6c 6c 2d 6d 6f 64 | 65 2d 6d 61 70 7d 0a 43 |hell-mod|e-map}.C|
|00000c20| 75 73 74 6f 6d 69 73 61 | 74 69 6f 6e 3a 20 45 6e |ustomisa|tion: En|
|00000c30| 74 72 79 20 74 6f 20 74 | 68 69 73 20 6d 6f 64 65 |try to t|his mode|
|00000c40| 20 72 75 6e 73 20 74 68 | 65 20 68 6f 6f 6b 73 20 | runs th|e hooks |
|00000c50| 6f 6e 20 63 6f 6d 69 6e | 74 2d 6d 6f 64 65 2d 68 |on comin|t-mode-h|
|00000c60| 6f 6f 6b 20 61 6e 64 0a | 73 68 65 6c 6c 2d 6d 6f |ook and.|shell-mo|
|00000c70| 64 65 2d 68 6f 6f 6b 20 | 28 69 6e 20 74 68 61 74 |de-hook |(in that|
|00000c80| 20 6f 72 64 65 72 29 2e | 0a 0a 56 61 72 69 61 62 | order).|..Variab|
|00000c90| 6c 65 73 20 73 68 65 6c | 6c 2d 63 64 2d 72 65 67 |les shel|l-cd-reg|
|00000ca0| 65 78 70 2c 20 73 68 65 | 6c 6c 2d 70 75 73 68 64 |exp, she|ll-pushd|
|00000cb0| 2d 72 65 67 65 78 70 20 | 61 6e 64 20 73 68 65 6c |-regexp |and shel|
|00000cc0| 6c 2d 70 6f 70 64 2d 72 | 65 67 65 78 70 20 61 72 |l-popd-r|egexp ar|
|00000cd0| 65 20 75 73 65 64 0a 74 | 6f 20 6d 61 74 63 68 20 |e used.t|o match |
|00000ce0| 74 68 65 69 72 20 72 65 | 73 70 65 63 74 69 76 65 |their re|spective|
|00000cf0| 20 63 6f 6d 6d 61 6e 64 | 73 2e 22 20 6e 69 6c 5d | command|s." nil]|
|00000d00| 29 0a 28 66 73 65 74 20 | 27 73 68 65 6c 6c 20 23 |).(fset |'shell #|
|00000d10| 5b 6e 69 6c 20 22 c0 c1 | 21 ac c9 5c 6e ae 8b c3 |[nil "..|!..\n...|
|00000d20| c4 21 ae 86 c3 c5 21 ae | 81 c6 1e 07 c8 0e 07 21 |.!....!.|.......!|
|00000d30| 1e 09 ca 0e 09 50 1e 0b | cc cd 0e 09 ce 51 21 1e |.....P..|.....Q!.|
|00000d40| 0f d0 d1 d2 0e 07 d3 0e | 0b 21 ad 82 0e 0b 0e 0f |........|.!......|
|00000d50| ab 8b d4 0e 0f 21 ab 85 | 0e 0f 4a aa 81 d5 25 71 |.....!..|..J...%q|
|00000d60| 88 d6 20 88 2c d7 c1 21 | 87 22 20 5b 63 6f 6d 69 |.. .,..!|." [comi|
|00000d70| 6e 74 2d 63 68 65 63 6b | 2d 70 72 6f 63 20 22 2a |nt-check|-proc "*|
|00000d80| 73 68 65 6c 6c 2a 22 20 | 65 78 70 6c 69 63 69 74 |shell*" |explicit|
|00000d90| 2d 73 68 65 6c 6c 2d 66 | 69 6c 65 2d 6e 61 6d 65 |-shell-f|ile-name|
|00000da0| 20 67 65 74 65 6e 76 20 | 22 45 53 48 45 4c 4c 22 | getenv |"ESHELL"|
|00000db0| 20 22 53 48 45 4c 4c 22 | 20 22 2f 62 69 6e 2f 73 | "SHELL"| "/bin/s|
|00000dc0| 68 22 20 70 72 6f 67 20 | 66 69 6c 65 2d 6e 61 6d |h" prog |file-nam|
|00000dd0| 65 2d 6e 6f 6e 64 69 72 | 65 63 74 6f 72 79 20 6e |e-nondir|ectory n|
|00000de0| 61 6d 65 20 22 7e 2f 2e | 65 6d 61 63 73 5f 22 20 |ame "~/.|emacs_" |
|00000df0| 73 74 61 72 74 66 69 6c | 65 20 69 6e 74 65 72 6e |startfil|e intern|
|00000e00| 2d 73 6f 66 74 20 22 65 | 78 70 6c 69 63 69 74 2d |-soft "e|xplicit-|
|00000e10| 22 20 22 2d 61 72 67 75 | 6d 65 6e 74 73 22 20 78 |" "-argu|ments" x|
|00000e20| 61 72 67 73 2d 6e 61 6d | 65 20 61 70 70 6c 79 20 |args-nam|e apply |
|00000e30| 6d 61 6b 65 2d 63 6f 6d | 69 6e 74 20 22 73 68 65 |make-com|int "she|
|00000e40| 6c 6c 22 20 66 69 6c 65 | 2d 65 78 69 73 74 73 2d |ll" file|-exists-|
|00000e50| 70 20 62 6f 75 6e 64 70 | 20 28 22 2d 69 22 29 20 |p boundp| ("-i") |
|00000e60| 73 68 65 6c 6c 2d 6d 6f | 64 65 20 73 77 69 74 63 |shell-mo|de switc|
|00000e70| 68 2d 74 6f 2d 62 75 66 | 66 65 72 5d 20 37 20 22 |h-to-buf|fer] 7 "|
|00000e80| 5c 0a 52 75 6e 20 61 6e | 20 69 6e 66 65 72 69 6f |\.Run an| inferio|
|00000e90| 72 20 73 68 65 6c 6c 2c | 20 77 69 74 68 20 49 2f |r shell,| with I/|
|00000ea0| 4f 20 74 68 72 6f 75 67 | 68 20 62 75 66 66 65 72 |O throug|h buffer|
|00000eb0| 20 2a 73 68 65 6c 6c 2a | 2e 0a 49 66 20 62 75 66 | *shell*|..If buf|
|00000ec0| 66 65 72 20 65 78 69 73 | 74 73 20 62 75 74 20 73 |fer exis|ts but s|
|00000ed0| 68 65 6c 6c 20 70 72 6f | 63 65 73 73 20 69 73 20 |hell pro|cess is |
|00000ee0| 6e 6f 74 20 72 75 6e 6e | 69 6e 67 2c 20 6d 61 6b |not runn|ing, mak|
|00000ef0| 65 20 6e 65 77 20 73 68 | 65 6c 6c 2e 0a 49 66 20 |e new sh|ell..If |
|00000f00| 62 75 66 66 65 72 20 65 | 78 69 73 74 73 20 61 6e |buffer e|xists an|
|00000f10| 64 20 73 68 65 6c 6c 20 | 70 72 6f 63 65 73 73 20 |d shell |process |
|00000f20| 69 73 20 72 75 6e 6e 69 | 6e 67 2c 20 0a 20 6a 75 |is runni|ng, . ju|
|00000f30| 73 74 20 73 77 69 74 63 | 68 20 74 6f 20 62 75 66 |st switc|h to buf|
|00000f40| 66 65 72 20 2a 73 68 65 | 6c 6c 2a 2e 0a 50 72 6f |fer *she|ll*..Pro|
|00000f50| 67 72 61 6d 20 75 73 65 | 64 20 63 6f 6d 65 73 20 |gram use|d comes |
|00000f60| 66 72 6f 6d 20 76 61 72 | 69 61 62 6c 65 20 65 78 |from var|iable ex|
|00000f70| 70 6c 69 63 69 74 2d 73 | 68 65 6c 6c 2d 66 69 6c |plicit-s|hell-fil|
|00000f80| 65 2d 6e 61 6d 65 2c 0a | 20 6f 72 20 28 69 66 20 |e-name,.| or (if |
|00000f90| 74 68 61 74 20 69 73 20 | 6e 69 6c 29 20 66 72 6f |that is |nil) fro|
|00000fa0| 6d 20 74 68 65 20 45 53 | 48 45 4c 4c 20 65 6e 76 |m the ES|HELL env|
|00000fb0| 69 72 6f 6e 6d 65 6e 74 | 20 76 61 72 69 61 62 6c |ironment| variabl|
|00000fc0| 65 2c 0a 20 6f 72 20 65 | 6c 73 65 20 66 72 6f 6d |e,. or e|lse from|
|00000fd0| 20 53 48 45 4c 4c 20 69 | 66 20 74 68 65 72 65 20 | SHELL i|f there |
|00000fe0| 69 73 20 6e 6f 20 45 53 | 48 45 4c 4c 2e 0a 49 66 |is no ES|HELL..If|
|00000ff0| 20 61 20 66 69 6c 65 20 | 7e 2f 2e 65 6d 61 63 73 | a file |~/.emacs|
|00001000| 5f 53 48 45 4c 4c 4e 41 | 4d 45 20 65 78 69 73 74 |_SHELLNA|ME exist|
|00001010| 73 2c 20 69 74 20 69 73 | 20 67 69 76 65 6e 20 61 |s, it is| given a|
|00001020| 73 20 69 6e 69 74 69 61 | 6c 20 69 6e 70 75 74 0a |s initia|l input.|
|00001030| 20 28 4e 6f 74 65 20 74 | 68 61 74 20 74 68 69 73 | (Note t|hat this|
|00001040| 20 6d 61 79 20 6c 6f 73 | 65 20 64 75 65 20 74 6f | may los|e due to|
|00001050| 20 61 20 74 69 6d 69 6e | 67 20 65 72 72 6f 72 20 | a timin|g error |
|00001060| 69 66 20 74 68 65 20 73 | 68 65 6c 6c 0a 20 20 64 |if the s|hell. d|
|00001070| 69 73 63 61 72 64 73 20 | 69 6e 70 75 74 20 77 68 |iscards |input wh|
|00001080| 65 6e 20 69 74 20 73 74 | 61 72 74 73 20 75 70 2e |en it st|arts up.|
|00001090| 29 0a 54 68 65 20 62 75 | 66 66 65 72 20 69 73 20 |).The bu|ffer is |
|000010a0| 70 75 74 20 69 6e 20 73 | 68 65 6c 6c 2d 6d 6f 64 |put in s|hell-mod|
|000010b0| 65 2c 20 67 69 76 69 6e | 67 20 63 6f 6d 6d 61 6e |e, givin|g comman|
|000010c0| 64 73 20 66 6f 72 20 73 | 65 6e 64 69 6e 67 20 69 |ds for s|ending i|
|000010d0| 6e 70 75 74 0a 61 6e 64 | 20 63 6f 6e 74 72 6f 6c |nput.and| control|
|000010e0| 6c 69 6e 67 20 74 68 65 | 20 73 75 62 6a 6f 62 73 |ling the| subjobs|
|000010f0| 20 6f 66 20 74 68 65 20 | 73 68 65 6c 6c 2e 20 20 | of the |shell. |
|00001100| 53 65 65 20 73 68 65 6c | 6c 2d 6d 6f 64 65 2e 0a |See shel|l-mode..|
|00001110| 53 65 65 20 61 6c 73 6f | 20 76 61 72 69 61 62 6c |See also| variabl|
|00001120| 65 20 73 68 65 6c 6c 2d | 70 72 6f 6d 70 74 2d 70 |e shell-|prompt-p|
|00001130| 61 74 74 65 72 6e 2e 0a | 0a 54 68 65 20 73 68 65 |attern..|.The she|
|00001140| 6c 6c 20 66 69 6c 65 20 | 6e 61 6d 65 20 28 73 61 |ll file |name (sa|
|00001150| 6e 73 20 64 69 72 65 63 | 74 6f 72 69 65 73 29 20 |ns direc|tories) |
|00001160| 69 73 20 75 73 65 64 20 | 74 6f 20 6d 61 6b 65 20 |is used |to make |
|00001170| 61 20 73 79 6d 62 6f 6c | 20 6e 61 6d 65 0a 73 75 |a symbol| name.su|
|00001180| 63 68 20 61 73 20 60 65 | 78 70 6c 69 63 69 74 2d |ch as `e|xplicit-|
|00001190| 63 73 68 2d 61 72 67 75 | 6d 65 6e 74 73 27 2e 20 |csh-argu|ments'. |
|000011a0| 20 49 66 20 74 68 61 74 | 20 73 79 6d 62 6f 6c 20 | If that| symbol |
|000011b0| 69 73 20 61 20 76 61 72 | 69 61 62 6c 65 2c 0a 69 |is a var|iable,.i|
|000011c0| 74 73 20 76 61 6c 75 65 | 20 69 73 20 75 73 65 64 |ts value| is used|
|000011d0| 20 61 73 20 61 20 6c 69 | 73 74 20 6f 66 20 61 72 | as a li|st of ar|
|000011e0| 67 75 6d 65 6e 74 73 20 | 77 68 65 6e 20 69 6e 76 |guments |when inv|
|000011f0| 6f 6b 69 6e 67 20 74 68 | 65 20 73 68 65 6c 6c 2e |oking th|e shell.|
|00001200| 0a 4f 74 68 65 72 77 69 | 73 65 2c 20 6f 6e 65 20 |.Otherwi|se, one |
|00001210| 61 72 67 75 6d 65 6e 74 | 20 60 2d 69 27 20 69 73 |argument| `-i' is|
|00001220| 20 70 61 73 73 65 64 20 | 74 6f 20 74 68 65 20 73 | passed |to the s|
|00001230| 68 65 6c 6c 2e 0a 0a 28 | 54 79 70 65 20 5c 5c 5b |hell...(|Type \\[|
|00001240| 64 65 73 63 72 69 62 65 | 2d 6d 6f 64 65 5d 20 69 |describe|-mode] i|
|00001250| 6e 20 74 68 65 20 73 68 | 65 6c 6c 20 62 75 66 66 |n the sh|ell buff|
|00001260| 65 72 20 66 6f 72 20 61 | 20 6c 69 73 74 20 6f 66 |er for a| list of|
|00001270| 20 63 6f 6d 6d 61 6e 64 | 73 2e 29 22 20 6e 69 6c | command|s.)" nil|
|00001280| 5d 29 0a 28 66 73 65 74 | 20 27 73 68 65 6c 6c 2d |]).(fset| 'shell-|
|00001290| 66 72 6f 6e 74 2d 6d 61 | 74 63 68 20 23 5b 28 72 |front-ma|tch #[(r|
|000012a0| 65 67 65 78 70 20 73 74 | 72 20 73 74 61 72 74 29 |egexp st|r start)|
|000012b0| 20 22 08 c1 5c 6e 0b 08 | 23 3d 87 22 20 5b 73 74 | "..\n..|#=." [st|
|000012c0| 61 72 74 20 73 74 72 69 | 6e 67 2d 6d 61 74 63 68 |art stri|ng-match|
|000012d0| 20 72 65 67 65 78 70 20 | 73 74 72 5d 20 35 5d 29 | regexp |str] 5])|
|000012e0| 0a 28 66 73 65 74 20 27 | 73 68 65 6c 6c 2d 64 69 |.(fset '|shell-di|
|000012f0| 72 65 63 74 6f 72 79 2d | 74 72 61 63 6b 65 72 20 |rectory-|tracker |
|00001300| 23 5b 28 73 74 72 29 20 | 22 08 ad c1 c1 c2 0b 5c |#[(str) |"......\|
|00001310| 22 88 c4 95 c5 1e 06 1e | 07 c8 0e 09 0b 0e 07 23 |".......|.......#|
|00001320| 89 16 06 ab 86 ca 0e 06 | 21 aa a2 c8 0e 0b 0b 0e |........|!.......|
|00001330| 07 23 89 16 06 ab 86 cc | 0e 06 21 aa 90 c8 0e 0d |.#......|..!.....|
|00001340| 0b 0e 07 23 89 16 06 ad | 84 ce 0e 06 21 2a 87 22 |...#....|....!*."|
|00001350| 20 5b 73 68 65 6c 6c 2d | 64 69 72 74 72 61 63 6b | [shell-|dirtrack|
|00001360| 70 20 73 74 72 69 6e 67 | 2d 6d 61 74 63 68 20 22 |p string|-match "|
|00001370| 5e 5c 5c 73 20 2a 22 20 | 73 74 72 20 30 20 6e 69 |^\\s *" |str 0 ni|
|00001380| 6c 20 78 20 62 6f 73 20 | 73 68 65 6c 6c 2d 6d 61 |l x bos |shell-ma|
|00001390| 74 63 68 2d 63 6d 64 2d | 77 2f 6f 70 74 69 6f 6e |tch-cmd-|w/option|
|000013a0| 61 6c 2d 61 72 67 20 73 | 68 65 6c 6c 2d 70 6f 70 |al-arg s|hell-pop|
|000013b0| 64 2d 72 65 67 65 78 70 | 20 73 68 65 6c 6c 2d 70 |d-regexp| shell-p|
|000013c0| 72 6f 63 65 73 73 2d 70 | 6f 70 64 20 73 68 65 6c |rocess-p|opd shel|
|000013d0| 6c 2d 70 75 73 68 64 2d | 72 65 67 65 78 70 20 73 |l-pushd-|regexp s|
|000013e0| 68 65 6c 6c 2d 70 72 6f | 63 65 73 73 2d 70 75 73 |hell-pro|cess-pus|
|000013f0| 68 64 20 73 68 65 6c 6c | 2d 63 64 2d 72 65 67 65 |hd shell|-cd-rege|
|00001400| 78 70 20 73 68 65 6c 6c | 2d 70 72 6f 63 65 73 73 |xp shell|-process|
|00001410| 2d 63 64 5d 20 34 20 22 | 5c 0a 54 72 61 63 6b 73 |-cd] 4 "|\.Tracks|
|00001420| 20 63 64 2c 20 70 75 73 | 68 64 20 61 6e 64 20 70 | cd, pus|hd and p|
|00001430| 6f 70 64 20 63 6f 6d 6d | 61 6e 64 73 20 69 73 73 |opd comm|ands iss|
|00001440| 75 65 64 20 74 6f 20 74 | 68 65 20 73 68 65 6c 6c |ued to t|he shell|
|00001450| 2e 0a 54 68 69 73 20 66 | 75 6e 63 74 69 6f 6e 20 |..This f|unction |
|00001460| 69 73 20 63 61 6c 6c 65 | 64 20 6f 6e 20 65 61 63 |is calle|d on eac|
|00001470| 68 20 69 6e 70 75 74 20 | 70 61 73 73 65 64 20 74 |h input |passed t|
|00001480| 6f 20 74 68 65 20 73 68 | 65 6c 6c 2e 0a 49 74 20 |o the sh|ell..It |
|00001490| 77 61 74 63 68 65 73 20 | 66 6f 72 20 63 64 2c 20 |watches |for cd, |
|000014a0| 70 75 73 68 64 20 61 6e | 64 20 70 6f 70 64 20 63 |pushd an|d popd c|
|000014b0| 6f 6d 6d 61 6e 64 73 20 | 61 6e 64 20 73 65 74 73 |ommands |and sets|
|000014c0| 20 74 68 65 20 62 75 66 | 66 65 72 27 73 0a 64 65 | the buf|fer's.de|
|000014d0| 66 61 75 6c 74 20 64 69 | 72 65 63 74 6f 72 79 20 |fault di|rectory |
|000014e0| 74 6f 20 74 72 61 63 6b | 20 74 68 65 73 65 20 63 |to track| these c|
|000014f0| 6f 6d 6d 61 6e 64 73 2e | 0a 0a 59 6f 75 20 6d 61 |ommands.|..You ma|
|00001500| 79 20 74 6f 67 67 6c 65 | 20 74 68 69 73 20 74 72 |y toggle| this tr|
|00001510| 61 63 6b 69 6e 67 20 6f | 6e 20 61 6e 64 20 6f 66 |acking o|n and of|
|00001520| 66 20 77 69 74 68 20 4d | 2d 78 20 73 68 65 6c 6c |f with M|-x shell|
|00001530| 2d 64 69 72 74 72 61 63 | 6b 2d 74 6f 67 67 6c 65 |-dirtrac|k-toggle|
|00001540| 2e 0a 49 66 20 65 6d 61 | 63 73 20 67 65 74 73 20 |..If ema|cs gets |
|00001550| 63 6f 6e 66 75 73 65 64 | 2c 20 79 6f 75 20 63 61 |confused|, you ca|
|00001560| 6e 20 72 65 73 79 6e 63 | 20 77 69 74 68 20 74 68 |n resync| with th|
|00001570| 65 20 73 68 65 6c 6c 20 | 77 69 74 68 20 4d 2d 78 |e shell |with M-x|
|00001580| 20 73 68 65 6c 6c 2d 72 | 65 73 79 6e 63 2d 64 69 | shell-r|esync-di|
|00001590| 72 73 2e 0a 0a 53 65 65 | 20 76 61 72 69 61 62 6c |rs...See| variabl|
|000015a0| 65 73 20 73 68 65 6c 6c | 2d 63 64 2d 72 65 67 65 |es shell|-cd-rege|
|000015b0| 78 70 2c 20 73 68 65 6c | 6c 2d 70 75 73 68 64 2d |xp, shel|l-pushd-|
|000015c0| 72 65 67 65 78 70 2c 20 | 61 6e 64 20 73 68 65 6c |regexp, |and shel|
|000015d0| 6c 2d 70 6f 70 64 2d 72 | 65 67 65 78 70 2e 22 5d |l-popd-r|egexp."]|
|000015e0| 29 0a 28 62 79 74 65 2d | 63 6f 64 65 20 22 c0 c1 |).(byte-|code "..|
|000015f0| 4d 88 c2 c3 4d 88 c4 c5 | 4d 88 c6 c7 4d 88 c8 c9 |M...M...|M...M...|
|00001600| 4d 88 ca cb 4d 87 22 20 | 5b 73 68 65 6c 6c 2d 6d |M...M." |[shell-m|
|00001610| 61 74 63 68 2d 63 6d 64 | 2d 77 2f 6f 70 74 69 6f |atch-cmd|-w/optio|
|00001620| 6e 61 6c 2d 61 72 67 20 | 23 5b 28 63 6d 64 20 73 |nal-arg |#[(cmd s|
|00001630| 74 72 20 73 74 61 72 74 | 29 20 22 c0 09 5c 6e 0b |tr start|) "..\n.|
|00001640| 23 ad 9e c4 95 1d c0 c6 | 5c 6e 0d 23 ab 83 c7 aa |#.......|\n.#....|
|00001650| 90 c0 c8 5c 6e 0d 23 ab | 88 5c 6e c9 94 c9 95 4f |...\n.#.|.\n....O|
|00001660| aa 81 ca 29 87 22 20 5b | 73 68 65 6c 6c 2d 66 72 |...)." [|shell-fr|
|00001670| 6f 6e 74 2d 6d 61 74 63 | 68 20 63 6d 64 20 73 74 |ont-matc|h cmd st|
|00001680| 72 20 73 74 61 72 74 20 | 30 20 65 6f 63 20 22 5c |r start |0 eoc "\|
|00001690| 5c 73 20 2a 5c 5c 28 3b | 5c 5c 7c 24 5c 5c 29 22 |\s *\\(;|\\|$\\)"|
|000016a0| 20 22 22 20 22 5c 5c 73 | 20 2b 5c 5c 28 5b 5e 20 | "" "\\s| +\\([^ |
|000016b0| 09 3b 5d 2b 5c 5c 29 5c | 5c 73 20 2a 5c 5c 28 3b |.;]+\\)\|\s *\\(;|
|000016c0| 5c 5c 7c 24 5c 5c 29 22 | 20 31 20 6e 69 6c 5d 20 |\\|$\\)"| 1 nil] |
|000016d0| 34 5d 20 73 68 65 6c 6c | 2d 73 6e 61 72 66 2d 62 |4] shell|-snarf-b|
|000016e0| 61 6e 67 2d 64 6f 6c 6c | 61 72 20 23 5b 6e 69 6c |ang-doll|ar #[nil|
|000016f0| 20 22 c0 c1 c2 8f 87 22 | 20 5b 6e 69 6c 20 28 62 | "....."| [nil (b|
|00001700| 79 74 65 2d 63 6f 64 65 | 20 22 c0 c1 20 c2 5c 22 |yte-code| ".. .\"|
|00001710| 1b c4 c5 0b 5c 22 ad 86 | 0b c2 94 c2 95 4f 29 87 |....\"..|.....O).|
|00001720| 22 20 5b 72 69 6e 67 2d | 72 65 66 20 67 65 74 2d |" [ring-|ref get-|
|00001730| 69 6e 70 75 74 2d 72 69 | 6e 67 20 31 20 70 72 65 |input-ri|ng 1 pre|
|00001740| 76 2d 63 6f 6d 6d 61 6e | 64 20 73 74 72 69 6e 67 |v-comman|d string|
|00001750| 2d 6d 61 74 63 68 20 22 | 5b 20 09 5d 2b 5c 5c 28 |-match "|[ .]+\\(|
|00001760| 5b 5e 20 09 5c 6e 3b 5d | 2b 5c 5c 29 5b 20 09 5d |[^ .\n;]|+\\)[ .]|
|00001770| 2a 5c 5c 27 22 5d 20 33 | 29 20 28 28 65 72 72 6f |*\\'"] 3|) ((erro|
|00001780| 72 29 29 5d 20 33 5d 20 | 73 68 65 6c 6c 2d 70 72 |r))] 3] |shell-pr|
|00001790| 6f 63 65 73 73 2d 70 6f | 70 64 20 23 5b 28 61 72 |ocess-po|pd #[(ar|
|000017a0| 67 29 20 22 08 47 c1 55 | ab 83 c1 aa 83 c2 08 21 |g) ".G.U|.......!|
|000017b0| 89 1b ab ad 0b 0c 47 57 | ab a7 0b c1 55 ab 86 c5 |......GW|....U...|
|000017c0| c6 c7 8f aa 9f c5 0c 42 | 1e 08 0b c9 5a 0e 08 9b |.......B|....Z...|
|000017d0| 89 1e 5c 6e 89 41 41 a1 | 88 0e 08 41 14 cb 20 2a |..\n.AA.|...A.. *|
|000017e0| aa 83 cc cd 21 29 87 22 | 20 5b 61 72 67 20 30 20 |....!)."| [arg 0 |
|000017f0| 73 68 65 6c 6c 2d 65 78 | 74 72 61 63 74 2d 6e 75 |shell-ex|tract-nu|
|00001800| 6d 20 6e 75 6d 20 73 68 | 65 6c 6c 2d 64 69 72 73 |m num sh|ell-dirs|
|00001810| 74 61 63 6b 20 6e 69 6c | 20 28 62 79 74 65 2d 63 |tack nil| (byte-c|
|00001820| 6f 64 65 20 22 c0 09 40 | 21 88 09 41 11 c2 20 87 |ode "..@|!..A.. .|
|00001830| 22 20 5b 63 6f 6d 69 6e | 74 2d 63 64 20 73 68 65 |" [comin|t-cd she|
|00001840| 6c 6c 2d 64 69 72 73 74 | 61 63 6b 20 73 68 65 6c |ll-dirst|ack shel|
|00001850| 6c 2d 64 69 72 73 74 61 | 63 6b 2d 6d 65 73 73 61 |l-dirsta|ck-messa|
|00001860| 67 65 5d 20 32 29 20 28 | 28 65 72 72 6f 72 20 28 |ge] 2) (|(error (|
|00001870| 6d 65 73 73 61 67 65 20 | 22 43 6f 75 6c 64 6e 27 |message |"Couldn'|
|00001880| 74 20 63 64 2e 22 29 29 | 29 20 64 73 20 31 20 63 |t cd."))|) ds 1 c|
|00001890| 65 6c 6c 20 73 68 65 6c | 6c 2d 64 69 72 73 74 61 |ell shel|l-dirsta|
|000018a0| 63 6b 2d 6d 65 73 73 61 | 67 65 20 6d 65 73 73 61 |ck-messa|ge messa|
|000018b0| 67 65 20 22 42 61 64 20 | 70 6f 70 64 2e 22 5d 20 |ge "Bad |popd."] |
|000018c0| 34 5d 20 73 68 65 6c 6c | 2d 70 72 6f 63 65 73 73 |4] shell|-process|
|000018d0| 2d 63 64 20 23 5b 28 61 | 72 67 29 20 22 08 c1 9a |-cd #[(a|rg) "...|
|000018e0| ab 83 c2 20 10 c3 c4 c5 | 8f 87 22 20 5b 61 72 67 |... ....|.." [arg|
|000018f0| 20 22 21 24 22 20 73 68 | 65 6c 6c 2d 73 6e 61 72 | "!$" sh|ell-snar|
|00001900| 66 2d 62 61 6e 67 2d 64 | 6f 6c 6c 61 72 20 6e 69 |f-bang-d|ollar ni|
|00001910| 6c 20 28 62 79 74 65 2d | 63 6f 64 65 20 22 c0 09 |l (byte-|code "..|
|00001920| 47 c2 55 ab 85 c3 c4 21 | aa 81 09 21 88 c5 20 87 |G.U....!|...!.. .|
|00001930| 22 20 5b 63 6f 6d 69 6e | 74 2d 63 64 20 61 72 67 |" [comin|t-cd arg|
|00001940| 20 30 20 67 65 74 65 6e | 76 20 22 48 4f 4d 45 22 | 0 geten|v "HOME"|
|00001950| 20 73 68 65 6c 6c 2d 64 | 69 72 73 74 61 63 6b 2d | shell-d|irstack-|
|00001960| 6d 65 73 73 61 67 65 5d | 20 33 29 20 28 28 65 72 |message]| 3) ((er|
|00001970| 72 6f 72 20 28 6d 65 73 | 73 61 67 65 20 22 43 6f |ror (mes|sage "Co|
|00001980| 75 6c 64 6e 27 74 20 63 | 64 2e 22 29 29 29 5d 20 |uldn't c|d.")))] |
|00001990| 33 5d 20 73 68 65 6c 6c | 2d 70 72 6f 63 65 73 73 |3] shell|-process|
|000019a0| 2d 70 75 73 68 64 20 23 | 5b 28 61 72 67 29 20 22 |-pushd #|[(arg) "|
|000019b0| 08 c1 9a ab 83 c2 20 10 | 08 47 c3 55 ab 85 c4 c5 |...... .|.G.U....|
|000019c0| c6 8f 87 c7 08 21 89 1e | 08 ab bc 0e 08 0e 09 47 |.....!..|.......G|
|000019d0| 56 ab 85 ca cb 21 aa b8 | 0e 0c 0e 09 42 89 1e 0d |V....!..|....B...|
|000019e0| 47 1e 0e 0e 08 0e 0d 9b | 1e 0f d0 0e 0e 0e 08 5a |G.......|.......Z|
|000019f0| d0 0e 0d 21 9b 21 1e 11 | d2 0e 0f 0e 11 5c 22 1e |...!.!..|.....\".|
|00001a00| 13 c4 d4 d5 8f 2d aa 89 | 0e 0c 1e 16 c4 d7 d8 8f |.....-..|........|
|00001a10| 29 29 87 22 20 5b 61 72 | 67 20 22 21 24 22 20 73 |))." [ar|g "!$" s|
|00001a20| 68 65 6c 6c 2d 73 6e 61 | 72 66 2d 62 61 6e 67 2d |hell-sna|rf-bang-|
|00001a30| 64 6f 6c 6c 61 72 20 30 | 20 6e 69 6c 20 28 62 79 |dollar 0| nil (by|
|00001a40| 74 65 2d 63 6f 64 65 20 | 22 08 ab 90 09 1a c3 08 |te-code |".......|
|00001a50| 40 21 88 5c 6e 08 41 42 | 10 c4 20 29 87 c5 c6 21 |@!.\n.AB|.. )...!|
|00001a60| 87 22 20 5b 73 68 65 6c | 6c 2d 64 69 72 73 74 61 |." [shel|l-dirsta|
|00001a70| 63 6b 20 64 65 66 61 75 | 6c 74 2d 64 69 72 65 63 |ck defau|lt-direc|
|00001a80| 74 6f 72 79 20 6f 6c 64 | 20 63 6f 6d 69 6e 74 2d |tory old| comint-|
|00001a90| 63 64 20 73 68 65 6c 6c | 2d 64 69 72 73 74 61 63 |cd shell|-dirstac|
|00001aa0| 6b 2d 6d 65 73 73 61 67 | 65 20 6d 65 73 73 61 67 |k-messag|e messag|
|00001ab0| 65 20 22 44 69 72 65 63 | 74 6f 72 79 20 73 74 61 |e "Direc|tory sta|
|00001ac0| 63 6b 20 65 6d 70 74 79 | 2e 22 5d 20 32 29 20 28 |ck empty|."] 2) (|
|00001ad0| 28 65 72 72 6f 72 20 28 | 6d 65 73 73 61 67 65 20 |(error (|message |
|00001ae0| 22 43 6f 75 6c 64 6e 27 | 74 20 63 64 2e 22 29 29 |"Couldn'|t cd."))|
|00001af0| 29 20 73 68 65 6c 6c 2d | 65 78 74 72 61 63 74 2d |) shell-|extract-|
|00001b00| 6e 75 6d 20 6e 75 6d 20 | 73 68 65 6c 6c 2d 64 69 |num num |shell-di|
|00001b10| 72 73 74 61 63 6b 20 6d | 65 73 73 61 67 65 20 22 |rstack m|essage "|
|00001b20| 44 69 72 65 63 74 6f 72 | 79 20 73 74 61 63 6b 20 |Director|y stack |
|00001b30| 6e 6f 74 20 74 68 61 74 | 20 64 65 65 70 2e 22 20 |not that| deep." |
|00001b40| 64 65 66 61 75 6c 74 2d | 64 69 72 65 63 74 6f 72 |default-|director|
|00001b50| 79 20 64 73 20 64 73 6c | 65 6e 20 66 72 6f 6e 74 |y ds dsl|en front|
|00001b60| 20 72 65 76 65 72 73 65 | 20 62 61 63 6b 20 61 70 | reverse| back ap|
|00001b70| 70 65 6e 64 20 6e 65 77 | 2d 64 73 20 28 62 79 74 |pend new|-ds (byt|
|00001b80| 65 2d 63 6f 64 65 20 22 | c0 09 40 21 88 09 41 12 |e-code "|..@!..A.|
|00001b90| c3 20 87 22 20 5b 63 6f | 6d 69 6e 74 2d 63 64 20 |. ." [co|mint-cd |
|00001ba0| 6e 65 77 2d 64 73 20 73 | 68 65 6c 6c 2d 64 69 72 |new-ds s|hell-dir|
|00001bb0| 73 74 61 63 6b 20 73 68 | 65 6c 6c 2d 64 69 72 73 |stack sh|ell-dirs|
|00001bc0| 74 61 63 6b 2d 6d 65 73 | 73 61 67 65 5d 20 32 29 |tack-mes|sage] 2)|
|00001bd0| 20 28 28 65 72 72 6f 72 | 20 28 6d 65 73 73 61 67 | ((error| (messag|
|00001be0| 65 20 22 43 6f 75 6c 64 | 6e 27 74 20 63 64 2e 22 |e "Could|n't cd."|
|00001bf0| 29 29 29 20 6f 6c 64 2d | 77 64 20 28 62 79 74 65 |))) old-|wd (byte|
|00001c00| 2d 63 6f 64 65 20 22 c0 | 09 21 88 5c 6e 0b 42 13 |-code ".|.!.\n.B.|
|00001c10| c4 20 87 22 20 5b 63 6f | 6d 69 6e 74 2d 63 64 20 |. ." [co|mint-cd |
|00001c20| 61 72 67 20 6f 6c 64 2d | 77 64 20 73 68 65 6c 6c |arg old-|wd shell|
|00001c30| 2d 64 69 72 73 74 61 63 | 6b 20 73 68 65 6c 6c 2d |-dirstac|k shell-|
|00001c40| 64 69 72 73 74 61 63 6b | 2d 6d 65 73 73 61 67 65 |dirstack|-message|
|00001c50| 5d 20 32 29 20 28 28 65 | 72 72 6f 72 20 28 6d 65 |] 2) ((e|rror (me|
|00001c60| 73 73 61 67 65 20 22 43 | 6f 75 6c 64 6e 27 74 20 |ssage "C|ouldn't |
|00001c70| 63 64 2e 22 29 29 29 5d | 20 35 5d 20 73 68 65 6c |cd.")))]| 5] shel|
|00001c80| 6c 2d 65 78 74 72 61 63 | 74 2d 6e 75 6d 20 23 5b |l-extrac|t-num #[|
|00001c90| 28 73 74 72 29 20 22 c0 | c1 5c 6e 5c 22 ad 83 c3 |(str) ".|.\n\"...|
|00001ca0| 5c 6e 21 87 22 20 5b 73 | 74 72 69 6e 67 2d 6d 61 |\n!." [s|tring-ma|
|00001cb0| 74 63 68 20 22 5e 5c 5c | 2b 5b 31 2d 39 5d 5b 30 |tch "^\\|+[1-9][0|
|00001cc0| 2d 39 5d 2a 24 22 20 73 | 74 72 20 73 74 72 69 6e |-9]*$" s|tr strin|
|00001cd0| 67 2d 74 6f 2d 69 6e 74 | 5d 20 33 5d 5d 20 32 29 |g-to-int|] 3]] 2)|
|00001ce0| 0a 28 66 73 65 74 20 27 | 73 68 65 6c 6c 2d 64 69 |.(fset '|shell-di|
|00001cf0| 72 74 72 61 63 6b 2d 74 | 6f 67 67 6c 65 20 23 5b |rtrack-t|oggle #[|
|00001d00| 6e 69 6c 20 22 08 3f 10 | c1 c2 08 ab 83 c3 aa 81 |nil ".?.|........|
|00001d10| c4 5c 22 87 22 20 5b 73 | 68 65 6c 6c 2d 64 69 72 |.\"." [s|hell-dir|
|00001d20| 74 72 61 63 6b 70 20 6d | 65 73 73 61 67 65 20 22 |trackp m|essage "|
|00001d30| 64 69 72 65 63 74 6f 72 | 79 20 74 72 61 63 6b 69 |director|y tracki|
|00001d40| 6e 67 20 25 73 2e 22 20 | 22 4f 4e 22 20 22 4f 46 |ng %s." |"ON" "OF|
|00001d50| 46 22 5d 20 33 20 22 5c | 0a 54 75 72 6e 20 64 69 |F"] 3 "\|.Turn di|
|00001d60| 72 65 63 74 6f 72 79 20 | 74 72 61 63 6b 69 6e 67 |rectory |tracking|
|00001d70| 20 6f 6e 20 61 6e 64 20 | 6f 66 66 20 69 6e 20 61 | on and |off in a|
|00001d80| 20 73 68 65 6c 6c 20 62 | 75 66 66 65 72 2e 22 20 | shell b|uffer." |
|00001d90| 6e 69 6c 5d 29 0a 28 66 | 73 65 74 20 27 73 68 65 |nil]).(f|set 'she|
|00001da0| 6c 6c 2d 72 65 73 79 6e | 63 2d 64 69 72 73 20 23 |ll-resyn|c-dirs #|
|00001db0| 5b 6e 69 6c 20 22 c0 70 | 21 19 c2 09 21 89 1b 62 |[nil ".p|!...!..b|
|00001dc0| 88 0c 63 88 c5 63 88 c6 | c7 21 88 c8 09 0c 5c 22 |..c..c..|.!....\"|
|00001dd0| 88 c8 09 c5 5c 22 88 0b | 60 c9 93 88 60 1e 5c 6e |....\"..|`...`.\n|
|00001de0| c5 63 88 cb cc 21 88 cd | ce 21 ac 8a cf 09 21 88 |.c...!..|.!....!.|
|00001df0| 0e 5c 6e 62 88 aa 71 29 | 0b 62 88 d0 cc 21 88 c7 |.\nb..q)|.b...!..|
|00001e00| 94 c7 95 cc 5a 7b 89 1e | 11 47 1e 12 c9 1e 13 c7 |....Z{..|.G......|
|00001e10| 1e 14 c7 0e 12 57 ab 9b | d5 d6 0e 11 0e 14 23 88 |.....W..|......#.|
|00001e20| 0e 11 cc 94 cc 95 4f 0e | 13 42 16 13 c7 95 89 16 |......O.|.B......|
|00001e30| 14 aa 60 d7 0e 13 21 1e | 13 c9 d8 d9 8f 2e 07 87 |..`...!.|........|
|00001e40| 22 20 5b 67 65 74 2d 62 | 75 66 66 65 72 2d 70 72 |" [get-b|uffer-pr|
|00001e50| 6f 63 65 73 73 20 70 72 | 6f 63 20 70 72 6f 63 65 |ocess pr|oc proce|
|00001e60| 73 73 2d 6d 61 72 6b 20 | 70 6d 61 72 6b 20 73 68 |ss-mark |pmark sh|
|00001e70| 65 6c 6c 2d 64 69 72 73 | 74 61 63 6b 2d 71 75 65 |ell-dirs|tack-que|
|00001e80| 72 79 20 22 5c 6e 22 20 | 73 69 74 2d 66 6f 72 20 |ry "\n" |sit-for |
|00001e90| 30 20 63 6f 6d 69 6e 74 | 2d 73 65 6e 64 2d 73 74 |0 comint|-send-st|
|00001ea0| 72 69 6e 67 20 6e 69 6c | 20 70 74 20 62 61 63 6b |ring nil| pt back|
|00001eb0| 77 61 72 64 2d 63 68 61 | 72 20 31 20 6c 6f 6f 6b |ward-cha|r 1 look|
|00001ec0| 69 6e 67 2d 61 74 20 22 | 2e 2b 5c 6e 22 20 61 63 |ing-at "|.+\n" ac|
|00001ed0| 63 65 70 74 2d 70 72 6f | 63 65 73 73 2d 6f 75 74 |cept-pro|cess-out|
|00001ee0| 70 75 74 20 64 65 6c 65 | 74 65 2d 63 68 61 72 20 |put dele|te-char |
|00001ef0| 64 6c 20 64 6c 2d 6c 65 | 6e 20 64 73 20 69 20 73 |dl dl-le|n ds i s|
|00001f00| 74 72 69 6e 67 2d 6d 61 | 74 63 68 20 22 5c 5c 73 |tring-ma|tch "\\s|
|00001f10| 20 2a 5c 5c 28 5c 5c 53 | 20 2b 5c 5c 29 5c 5c 73 | *\\(\\S| +\\)\\s|
|00001f20| 20 2a 22 20 72 65 76 65 | 72 73 65 20 28 62 79 74 | *" reve|rse (byt|
|00001f30| 65 2d 63 6f 64 65 20 22 | c0 09 40 21 88 09 41 12 |e-code "|..@!..A.|
|00001f40| c3 20 87 22 20 5b 63 6f | 6d 69 6e 74 2d 63 64 20 |. ." [co|mint-cd |
|00001f50| 64 73 20 73 68 65 6c 6c | 2d 64 69 72 73 74 61 63 |ds shell|-dirstac|
|00001f60| 6b 20 73 68 65 6c 6c 2d | 64 69 72 73 74 61 63 6b |k shell-|dirstack|
|00001f70| 2d 6d 65 73 73 61 67 65 | 5d 20 32 29 20 28 28 65 |-message|] 2) ((e|
|00001f80| 72 72 6f 72 20 28 6d 65 | 73 73 61 67 65 20 22 43 |rror (me|ssage "C|
|00001f90| 6f 75 6c 64 6e 27 74 20 | 63 64 2e 22 29 29 29 5d |ouldn't |cd.")))]|
|00001fa0| 20 35 20 22 5c 0a 52 65 | 73 79 6e 63 20 74 68 65 | 5 "\.Re|sync the|
|00001fb0| 20 62 75 66 66 65 72 27 | 73 20 69 64 65 61 20 6f | buffer'|s idea o|
|00001fc0| 66 20 74 68 65 20 63 75 | 72 72 65 6e 74 20 64 69 |f the cu|rrent di|
|00001fd0| 72 65 63 74 6f 72 79 20 | 73 74 61 63 6b 2e 0a 54 |rectory |stack..T|
|00001fe0| 68 69 73 20 63 6f 6d 6d | 61 6e 64 20 71 75 65 72 |his comm|and quer|
|00001ff0| 69 65 73 20 74 68 65 20 | 73 68 65 6c 6c 20 77 69 |ies the |shell wi|
|00002000| 74 68 20 74 68 65 20 63 | 6f 6d 6d 61 6e 64 20 62 |th the c|ommand b|
|00002010| 6f 75 6e 64 20 74 6f 20 | 0a 73 68 65 6c 6c 2d 64 |ound to |.shell-d|
|00002020| 69 72 73 74 61 63 6b 2d | 71 75 65 72 79 20 28 64 |irstack-|query (d|
|00002030| 65 66 61 75 6c 74 20 5c | 22 64 69 72 73 5c 22 29 |efault \|"dirs\")|
|00002040| 2c 20 72 65 61 64 73 20 | 74 68 65 20 6e 65 78 74 |, reads |the next|
|00002050| 0a 6c 69 6e 65 20 6f 75 | 74 70 75 74 20 61 6e 64 |.line ou|tput and|
|00002060| 20 70 61 72 73 65 73 20 | 69 74 20 74 6f 20 66 6f | parses |it to fo|
|00002070| 72 6d 20 74 68 65 20 6e | 65 77 20 64 69 72 65 63 |rm the n|ew direc|
|00002080| 74 6f 72 79 20 73 74 61 | 63 6b 2e 0a 44 4f 4e 27 |tory sta|ck..DON'|
|00002090| 54 20 69 73 73 75 65 20 | 74 68 69 73 20 63 6f 6d |T issue |this com|
|000020a0| 6d 61 6e 64 20 75 6e 6c | 65 73 73 20 74 68 65 20 |mand unl|ess the |
|000020b0| 62 75 66 66 65 72 20 69 | 73 20 61 74 20 61 20 73 |buffer i|s at a s|
|000020c0| 68 65 6c 6c 20 70 72 6f | 6d 70 74 2e 0a 41 6c 73 |hell pro|mpt..Als|
|000020d0| 6f 2c 20 6e 6f 74 65 20 | 74 68 61 74 20 69 66 20 |o, note |that if |
|000020e0| 73 6f 6d 65 20 6f 74 68 | 65 72 20 73 75 62 70 72 |some oth|er subpr|
|000020f0| 6f 63 65 73 73 20 64 65 | 63 69 64 65 73 20 74 6f |ocess de|cides to|
|00002100| 20 64 6f 20 6f 75 74 70 | 75 74 0a 69 6d 6d 65 64 | do outp|ut.immed|
|00002110| 69 61 74 65 6c 79 20 61 | 66 74 65 72 20 74 68 65 |iately a|fter the|
|00002120| 20 71 75 65 72 79 2c 20 | 69 74 73 20 6f 75 74 70 | query, |its outp|
|00002130| 75 74 20 77 69 6c 6c 20 | 62 65 20 74 61 6b 65 6e |ut will |be taken|
|00002140| 20 61 73 20 74 68 65 0a | 6e 65 77 20 64 69 72 65 | as the.|new dire|
|00002150| 63 74 6f 72 79 20 73 74 | 61 63 6b 20 2d 2d 20 79 |ctory st|ack -- y|
|00002160| 6f 75 20 6c 6f 73 65 2e | 20 49 66 20 74 68 69 73 |ou lose.| If this|
|00002170| 20 68 61 70 70 65 6e 73 | 2c 20 6a 75 73 74 20 64 | happens|, just d|
|00002180| 6f 20 74 68 65 0a 63 6f | 6d 6d 61 6e 64 20 61 67 |o the.co|mmand ag|
|00002190| 61 69 6e 2e 22 20 6e 69 | 6c 5d 29 0a 28 66 73 65 |ain." ni|l]).(fse|
|000021a0| 74 20 27 63 6f 6d 69 6e | 74 2d 63 64 20 23 5b 28 |t 'comin|t-cd #[(|
|000021b0| 64 29 20 22 c0 c1 5c 6e | 21 21 87 22 20 5b 63 64 |d) "..\n|!!." [cd|
|000021c0| 20 73 75 62 73 74 69 74 | 75 74 65 2d 69 6e 2d 66 | substit|ute-in-f|
|000021d0| 69 6c 65 2d 6e 61 6d 65 | 20 64 5d 20 33 20 22 5c |ile-name| d] 3 "\|
|000021e0| 0a 53 75 62 73 74 69 74 | 75 74 65 20 65 6e 76 69 |.Substit|ute envi|
|000021f0| 72 6f 6e 6d 65 6e 74 20 | 76 61 72 69 61 62 6c 65 |ronment |variable|
|00002200| 73 20 62 65 66 6f 72 65 | 20 63 61 6c 6c 69 6e 67 |s before| calling|
|00002210| 20 63 64 2e 22 5d 29 0a | 28 64 65 66 76 61 72 20 | cd."]).|(defvar |
|00002220| 73 68 65 6c 6c 2d 64 69 | 72 73 74 61 63 6b 2d 6d |shell-di|rstack-m|
|00002230| 65 73 73 61 67 65 2d 68 | 6f 6f 6b 20 6e 69 6c 20 |essage-h|ook nil |
|00002240| 22 5c 0a 48 6f 6f 6b 20 | 74 6f 20 72 75 6e 20 61 |"\.Hook |to run a|
|00002250| 66 74 65 72 20 61 20 63 | 64 2c 20 70 75 73 68 64 |fter a c|d, pushd|
|00002260| 20 6f 72 20 70 6f 70 64 | 20 65 76 65 6e 74 22 29 | or popd| event")|
|00002270| 0a 28 66 73 65 74 20 27 | 73 68 65 6c 6c 2d 64 69 |.(fset '|shell-di|
|00002280| 72 73 74 61 63 6b 2d 6d | 65 73 73 61 67 65 20 23 |rstack-m|essage #|
|00002290| 5b 6e 69 6c 20 22 c0 09 | 5c 6e 42 1b 1c 0b ab a8 |[nil "..|\nB.....|
|000022a0| 0b 40 1d c6 c7 c8 c9 ca | 21 5c 22 0d 5c 22 ab 88 |.@......|!\".\"..|
|000022b0| cb 0d cc 95 cd 4f 50 15 | 0d cb 98 ab 82 ce 15 0c |.....OP.|........|
|000022c0| 0d cf 51 14 0b 41 13 29 | aa 55 d0 d1 21 88 d2 0c |..Q..A.)|.U..!...|
|000022d0| 21 2a 87 22 20 5b 22 22 | 20 64 65 66 61 75 6c 74 |!*." [""| default|
|000022e0| 2d 64 69 72 65 63 74 6f | 72 79 20 73 68 65 6c 6c |-directo|ry shell|
|000022f0| 2d 64 69 72 73 74 61 63 | 6b 20 64 73 20 6d 73 67 |-dirstac|k ds msg|
|00002300| 20 64 69 72 20 73 74 72 | 69 6e 67 2d 6d 61 74 63 | dir str|ing-matc|
|00002310| 68 20 66 6f 72 6d 61 74 | 20 22 5e 25 73 5c 5c 28 |h format| "^%s\\(|
|00002320| 2f 5c 5c 7c 24 5c 5c 29 | 22 20 67 65 74 65 6e 76 |/\\|$\\)|" getenv|
|00002330| 20 22 48 4f 4d 45 22 20 | 22 7e 2f 22 20 30 20 6e | "HOME" |"~/" 0 n|
|00002340| 69 6c 20 22 7e 22 20 22 | 20 22 20 72 75 6e 2d 68 |il "~" "| " run-h|
|00002350| 6f 6f 6b 73 20 73 68 65 | 6c 6c 2d 64 69 72 73 74 |ooks she|ll-dirst|
|00002360| 61 63 6b 2d 6d 65 73 73 | 61 67 65 2d 68 6f 6f 6b |ack-mess|age-hook|
|00002370| 20 6d 65 73 73 61 67 65 | 5d 20 35 5d 29 0a 28 64 | message|] 5]).(d|
|00002380| 65 66 76 61 72 20 73 68 | 65 6c 6c 2d 6c 6f 61 64 |efvar sh|ell-load|
|00002390| 2d 68 6f 6f 6b 20 6e 69 | 6c 20 22 5c 0a 54 68 69 |-hook ni|l "\.Thi|
|000023a0| 73 20 68 6f 6f 6b 20 69 | 73 20 72 75 6e 20 77 68 |s hook i|s run wh|
|000023b0| 65 6e 20 73 68 65 6c 6c | 20 69 73 20 6c 6f 61 64 |en shell| is load|
|000023c0| 65 64 20 69 6e 2e 0a 54 | 68 69 73 20 69 73 20 61 |ed in..T|his is a|
|000023d0| 20 67 6f 6f 64 20 70 6c | 61 63 65 20 74 6f 20 70 | good pl|ace to p|
|000023e0| 75 74 20 6b 65 79 62 69 | 6e 64 69 6e 67 73 2e 22 |ut keybi|ndings."|
|000023f0| 29 0a 28 72 75 6e 2d 68 | 6f 6f 6b 73 20 27 73 68 |).(run-h|ooks 'sh|
|00002400| 65 6c 6c 2d 6c 6f 61 64 | 2d 68 6f 6f 6b 29 0a |ell-load|-hook). |
+--------+-------------------------+-------------------------+--------+--------+