home *** CD-ROM | disk | FTP | other *** search
Emacs Compiled Lisp | 1995-08-29 | 7.5 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 63 74 68 6f 6d 70 40 |piled by| cthomp@|
|00000020| 77 69 6c 6c 6f 77 2e 63 | 73 2e 75 69 75 63 2e 65 |willow.c|s.uiuc.e|
|00000030| 64 75 20 6f 6e 20 54 75 | 65 20 41 75 67 20 32 39 |du on Tu|e Aug 29|
|00000040| 20 31 34 3a 32 31 3a 35 | 31 20 31 39 39 35 0a 3b | 14:21:5|1 1995.;|
|00000050| 3b 3b 20 66 72 6f 6d 20 | 66 69 6c 65 20 2f 78 65 |;; from |file /xe|
|00000060| 6d 61 63 73 2f 78 65 6d | 61 63 73 2d 31 39 2e 31 |macs/xem|acs-19.1|
|00000070| 33 2d 72 65 6c 65 61 73 | 65 2f 65 64 69 74 6f 72 |3-releas|e/editor|
|00000080| 2f 6c 69 73 70 2f 70 72 | 69 6d 2f 70 72 6f 63 65 |/lisp/pr|im/proce|
|00000090| 73 73 2e 65 6c 0a 3b 3b | 3b 20 65 6d 61 63 73 20 |ss.el.;;|; emacs |
|000000a0| 76 65 72 73 69 6f 6e 20 | 31 39 2e 31 33 20 58 45 |version |19.13 XE|
|000000b0| 6d 61 63 73 20 4c 75 63 | 69 64 2e 0a 3b 3b 3b 20 |macs Luc|id..;;; |
|000000c0| 62 79 74 65 63 6f 6d 70 | 20 76 65 72 73 69 6f 6e |bytecomp| version|
|000000d0| 20 32 2e 32 35 3b 20 31 | 2d 53 65 70 2d 39 34 2e | 2.25; 1|-Sep-94.|
|000000e0| 0a 3b 3b 3b 20 6f 70 74 | 69 6d 69 7a 61 74 69 6f |.;;; opt|imizatio|
|000000f0| 6e 20 69 73 20 6f 6e 2e | 0a 3b 3b 3b 20 74 68 69 |n is on.|.;;; thi|
|00000100| 73 20 66 69 6c 65 20 75 | 73 65 73 20 6f 70 63 6f |s file u|ses opco|
|00000110| 64 65 73 20 77 68 69 63 | 68 20 64 6f 20 6e 6f 74 |des whic|h do not|
|00000120| 20 65 78 69 73 74 20 69 | 6e 20 45 6d 61 63 73 20 | exist i|n Emacs |
|00000130| 31 38 2e 0a 0a 28 69 66 | 20 28 61 6e 64 20 28 62 |18...(if| (and (b|
|00000140| 6f 75 6e 64 70 20 27 65 | 6d 61 63 73 2d 76 65 72 |oundp 'e|macs-ver|
|00000150| 73 69 6f 6e 29 0a 09 20 | 28 6f 72 20 28 61 6e 64 |sion).. |(or (and|
|00000160| 20 28 62 6f 75 6e 64 70 | 20 27 65 70 6f 63 68 3a | (boundp| 'epoch:|
|00000170| 3a 76 65 72 73 69 6f 6e | 29 20 65 70 6f 63 68 3a |:version|) epoch:|
|00000180| 3a 76 65 72 73 69 6f 6e | 29 0a 09 20 20 20 20 20 |:version|).. |
|00000190| 28 73 74 72 69 6e 67 2d | 6c 65 73 73 70 20 65 6d |(string-|lessp em|
|000001a0| 61 63 73 2d 76 65 72 73 | 69 6f 6e 20 22 31 39 22 |acs-vers|ion "19"|
|000001b0| 29 29 29 0a 20 20 20 20 | 28 65 72 72 6f 72 20 22 |))). |(error "|
|000001c0| 54 68 69 73 20 66 69 6c | 65 20 77 61 73 20 63 6f |This fil|e was co|
|000001d0| 6d 70 69 6c 65 64 20 66 | 6f 72 20 45 6d 61 63 73 |mpiled f|or Emacs|
|000001e0| 20 31 39 2e 22 29 29 0a | 0a 28 66 73 65 74 20 27 | 19.")).|.(fset '|
|000001f0| 73 74 61 72 74 2d 70 72 | 6f 63 65 73 73 2d 73 68 |start-pr|ocess-sh|
|00000200| 65 6c 6c 2d 63 6f 6d 6d | 61 6e 64 20 23 5b 28 6e |ell-comm|and #[(n|
|00000210| 61 6d 65 20 62 75 66 66 | 65 72 20 26 72 65 73 74 |ame buff|er &rest|
|00000220| 20 61 72 67 73 29 20 22 | 08 c1 3d ab 88 c2 c3 0c | args) "|..=.....|
|00000230| 0d 0e 06 24 87 c3 0c 0d | 0e 07 c8 c9 ca cb 0e 06 |...$....|........|
|00000240| cc 23 50 25 87 22 20 5b | 73 79 73 74 65 6d 2d 74 |.#P%." [|system-t|
|00000250| 79 70 65 20 76 61 78 2d | 76 6d 73 20 61 70 70 6c |ype vax-|vms appl|
|00000260| 79 20 73 74 61 72 74 2d | 70 72 6f 63 65 73 73 20 |y start-|process |
|00000270| 6e 61 6d 65 20 62 75 66 | 66 65 72 20 61 72 67 73 |name buf|fer args|
|00000280| 20 73 68 65 6c 6c 2d 66 | 69 6c 65 2d 6e 61 6d 65 | shell-f|ile-name|
|00000290| 20 22 2d 63 22 20 22 65 | 78 65 63 20 22 20 6d 61 | "-c" "e|xec " ma|
|000002a0| 70 63 6f 6e 63 61 74 20 | 69 64 65 6e 74 69 74 79 |pconcat |identity|
|000002b0| 20 22 20 22 5d 20 31 30 | 20 22 5c 0a 53 74 61 72 | " "] 10| "\.Star|
|000002c0| 74 20 61 20 70 72 6f 67 | 72 61 6d 20 69 6e 20 61 |t a prog|ram in a|
|000002d0| 20 73 75 62 70 72 6f 63 | 65 73 73 2e 20 20 52 65 | subproc|ess. Re|
|000002e0| 74 75 72 6e 20 74 68 65 | 20 70 72 6f 63 65 73 73 |turn the| process|
|000002f0| 20 6f 62 6a 65 63 74 20 | 66 6f 72 20 69 74 2e 0a | object |for it..|
|00000300| 41 72 67 73 20 61 72 65 | 20 4e 41 4d 45 20 42 55 |Args are| NAME BU|
|00000310| 46 46 45 52 20 43 4f 4d | 4d 41 4e 44 20 26 72 65 |FFER COM|MAND &re|
|00000320| 73 74 20 43 4f 4d 4d 41 | 4e 44 2d 41 52 47 53 2e |st COMMA|ND-ARGS.|
|00000330| 0a 4e 41 4d 45 20 69 73 | 20 6e 61 6d 65 20 66 6f |.NAME is| name fo|
|00000340| 72 20 70 72 6f 63 65 73 | 73 2e 20 20 49 74 20 69 |r proces|s. It i|
|00000350| 73 20 6d 6f 64 69 66 69 | 65 64 20 69 66 20 6e 65 |s modifi|ed if ne|
|00000360| 63 65 73 73 61 72 79 20 | 74 6f 20 6d 61 6b 65 20 |cessary |to make |
|00000370| 69 74 20 75 6e 69 71 75 | 65 2e 0a 42 55 46 46 45 |it uniqu|e..BUFFE|
|00000380| 52 20 69 73 20 74 68 65 | 20 62 75 66 66 65 72 20 |R is the| buffer |
|00000390| 6f 72 20 28 62 75 66 66 | 65 72 2d 6e 61 6d 65 29 |or (buff|er-name)|
|000003a0| 20 74 6f 20 61 73 73 6f | 63 69 61 74 65 20 77 69 | to asso|ciate wi|
|000003b0| 74 68 20 74 68 65 20 70 | 72 6f 63 65 73 73 2e 0a |th the p|rocess..|
|000003c0| 20 50 72 6f 63 65 73 73 | 20 6f 75 74 70 75 74 20 | Process| output |
|000003d0| 67 6f 65 73 20 61 74 20 | 65 6e 64 20 6f 66 20 74 |goes at |end of t|
|000003e0| 68 61 74 20 62 75 66 66 | 65 72 2c 20 75 6e 6c 65 |hat buff|er, unle|
|000003f0| 73 73 20 79 6f 75 20 73 | 70 65 63 69 66 79 0a 20 |ss you s|pecify. |
|00000400| 61 6e 20 6f 75 74 70 75 | 74 20 73 74 72 65 61 6d |an outpu|t stream|
|00000410| 20 6f 72 20 66 69 6c 74 | 65 72 20 66 75 6e 63 74 | or filt|er funct|
|00000420| 69 6f 6e 20 74 6f 20 68 | 61 6e 64 6c 65 20 74 68 |ion to h|andle th|
|00000430| 65 20 6f 75 74 70 75 74 | 2e 0a 20 42 55 46 46 45 |e output|.. BUFFE|
|00000440| 52 20 6d 61 79 20 62 65 | 20 61 6c 73 6f 20 6e 69 |R may be| also ni|
|00000450| 6c 2c 20 6d 65 61 6e 69 | 6e 67 20 74 68 61 74 20 |l, meani|ng that |
|00000460| 74 68 69 73 20 70 72 6f | 63 65 73 73 20 69 73 20 |this pro|cess is |
|00000470| 6e 6f 74 20 61 73 73 6f | 63 69 61 74 65 64 0a 20 |not asso|ciated. |
|00000480| 77 69 74 68 20 61 6e 79 | 20 62 75 66 66 65 72 0a |with any| buffer.|
|00000490| 54 68 69 72 64 20 61 72 | 67 20 69 73 20 63 6f 6d |Third ar|g is com|
|000004a0| 6d 61 6e 64 20 6e 61 6d | 65 2c 20 74 68 65 20 6e |mand nam|e, the n|
|000004b0| 61 6d 65 20 6f 66 20 61 | 20 73 68 65 6c 6c 20 63 |ame of a| shell c|
|000004c0| 6f 6d 6d 61 6e 64 2e 0a | 52 65 6d 61 69 6e 69 6e |ommand..|Remainin|
|000004d0| 67 20 61 72 67 75 6d 65 | 6e 74 73 20 61 72 65 20 |g argume|nts are |
|000004e0| 74 68 65 20 61 72 67 75 | 6d 65 6e 74 73 20 66 6f |the argu|ments fo|
|000004f0| 72 20 74 68 65 20 63 6f | 6d 6d 61 6e 64 2e 0a 57 |r the co|mmand..W|
|00000500| 69 6c 64 63 61 72 64 73 | 20 61 6e 64 20 72 65 64 |ildcards| and red|
|00000510| 69 72 65 63 74 69 6f 6e | 20 61 72 65 20 68 61 6e |irection| are han|
|00000520| 64 6c 65 64 20 61 73 20 | 75 73 75 61 6c 20 69 6e |dled as |usual in|
|00000530| 20 74 68 65 20 73 68 65 | 6c 6c 2e 22 5d 29 0a 28 | the she|ll."]).(|
|00000540| 66 73 65 74 20 27 63 61 | 6c 6c 2d 70 72 6f 63 65 |fset 'ca|ll-proce|
|00000550| 73 73 20 23 5b 28 70 72 | 6f 67 72 61 6d 20 26 6f |ss #[(pr|ogram &o|
|00000560| 70 74 69 6f 6e 61 6c 20 | 69 6e 66 69 6c 65 20 62 |ptional |infile b|
|00000570| 75 66 66 65 72 20 64 69 | 73 70 6c 61 79 20 26 72 |uffer di|splay &r|
|00000580| 65 73 74 20 61 72 67 73 | 29 20 22 c0 c1 5c 6e 0b |est args|) "..\n.|
|00000590| 0c 0d 0e 06 26 06 87 22 | 20 5b 61 70 70 6c 79 20 |....&.."| [apply |
|000005a0| 63 61 6c 6c 2d 70 72 6f | 63 65 73 73 2d 69 6e 74 |call-pro|cess-int|
|000005b0| 65 72 6e 61 6c 20 70 72 | 6f 67 72 61 6d 20 69 6e |ernal pr|ogram in|
|000005c0| 66 69 6c 65 20 62 75 66 | 66 65 72 20 64 69 73 70 |file buf|fer disp|
|000005d0| 6c 61 79 20 61 72 67 73 | 5d 20 37 20 22 5c 0a 43 |lay args|] 7 "\.C|
|000005e0| 61 6c 6c 20 50 52 4f 47 | 52 41 4d 20 73 79 6e 63 |all PROG|RAM sync|
|000005f0| 68 72 6f 6e 6f 75 73 6c | 79 20 69 6e 20 73 65 70 |hronousl|y in sep|
|00000600| 61 72 61 74 65 20 70 72 | 6f 63 65 73 73 2e 0a 54 |arate pr|ocess..T|
|00000610| 68 65 20 70 72 6f 67 72 | 61 6d 27 73 20 69 6e 70 |he progr|am's inp|
|00000620| 75 74 20 63 6f 6d 65 73 | 20 66 72 6f 6d 20 66 69 |ut comes| from fi|
|00000630| 6c 65 20 49 4e 46 49 4c | 45 20 28 6e 69 6c 20 6d |le INFIL|E (nil m|
|00000640| 65 61 6e 73 20 60 2f 64 | 65 76 2f 6e 75 6c 6c 27 |eans `/d|ev/null'|
|00000650| 29 2e 0a 49 6e 73 65 72 | 74 20 6f 75 74 70 75 74 |)..Inser|t output|
|00000660| 20 69 6e 20 42 55 46 46 | 45 52 20 62 65 66 6f 72 | in BUFF|ER befor|
|00000670| 65 20 70 6f 69 6e 74 3b | 20 74 20 6d 65 61 6e 73 |e point;| t means|
|00000680| 20 63 75 72 72 65 6e 74 | 20 62 75 66 66 65 72 3b | current| buffer;|
|00000690| 0a 20 6e 69 6c 20 66 6f | 72 20 42 55 46 46 45 52 |. nil fo|r BUFFER|
|000006a0| 20 6d 65 61 6e 73 20 64 | 69 73 63 61 72 64 20 69 | means d|iscard i|
|000006b0| 74 3b 20 30 20 6d 65 61 | 6e 73 20 64 69 73 63 61 |t; 0 mea|ns disca|
|000006c0| 72 64 20 61 6e 64 20 64 | 6f 6e 27 74 20 77 61 69 |rd and d|on't wai|
|000006d0| 74 2e 0a 46 6f 75 72 74 | 68 20 61 72 67 20 44 49 |t..Fourt|h arg DI|
|000006e0| 53 50 4c 41 59 20 6e 6f | 6e 2d 6e 69 6c 20 6d 65 |SPLAY no|n-nil me|
|000006f0| 61 6e 73 20 72 65 64 69 | 73 70 6c 61 79 20 62 75 |ans redi|splay bu|
|00000700| 66 66 65 72 20 61 73 20 | 6f 75 74 70 75 74 20 69 |ffer as |output i|
|00000710| 73 20 69 6e 73 65 72 74 | 65 64 2e 0a 52 65 6d 61 |s insert|ed..Rema|
|00000720| 69 6e 69 6e 67 20 61 72 | 67 75 6d 65 6e 74 73 20 |ining ar|guments |
|00000730| 61 72 65 20 73 74 72 69 | 6e 67 73 20 70 61 73 73 |are stri|ngs pass|
|00000740| 65 64 20 61 73 20 63 6f | 6d 6d 61 6e 64 20 61 72 |ed as co|mmand ar|
|00000750| 67 75 6d 65 6e 74 73 20 | 74 6f 20 50 52 4f 47 52 |guments |to PROGR|
|00000760| 41 4d 2e 0a 49 66 20 42 | 55 46 46 45 52 20 69 73 |AM..If B|UFFER is|
|00000770| 20 30 2c 20 72 65 74 75 | 72 6e 73 20 69 6d 6d 65 | 0, retu|rns imme|
|00000780| 64 69 61 74 65 6c 79 20 | 77 69 74 68 20 76 61 6c |diately |with val|
|00000790| 75 65 20 6e 69 6c 2e 0a | 4f 74 68 65 72 77 69 73 |ue nil..|Otherwis|
|000007a0| 65 20 77 61 69 74 73 20 | 66 6f 72 20 50 52 4f 47 |e waits |for PROG|
|000007b0| 52 41 4d 20 74 6f 20 74 | 65 72 6d 69 6e 61 74 65 |RAM to t|erminate|
|000007c0| 0a 61 6e 64 20 72 65 74 | 75 72 6e 73 20 61 20 6e |.and ret|urns a n|
|000007d0| 75 6d 65 72 69 63 20 65 | 78 69 74 20 73 74 61 74 |umeric e|xit stat|
|000007e0| 75 73 20 6f 72 20 61 20 | 73 69 67 6e 61 6c 20 64 |us or a |signal d|
|000007f0| 65 73 63 72 69 70 74 69 | 6f 6e 20 73 74 72 69 6e |escripti|on strin|
|00000800| 67 2e 0a 49 66 20 79 6f | 75 20 71 75 69 74 2c 20 |g..If yo|u quit, |
|00000810| 74 68 65 20 70 72 6f 63 | 65 73 73 20 69 73 20 6b |the proc|ess is k|
|00000820| 69 6c 6c 65 64 20 77 69 | 74 68 20 53 49 47 49 4e |illed wi|th SIGIN|
|00000830| 54 2c 20 6f 72 20 53 49 | 47 4b 49 4c 4c 20 69 66 |T, or SI|GKILL if|
|00000840| 20 79 6f 75 0a 71 75 69 | 74 20 61 67 61 69 6e 2e | you.qui|t again.|
|00000850| 22 5d 29 0a 28 66 73 65 | 74 20 27 63 61 6c 6c 2d |"]).(fse|t 'call-|
|00000860| 70 72 6f 63 65 73 73 2d | 72 65 67 69 6f 6e 20 23 |process-|region #|
|00000870| 5b 28 73 74 61 72 74 20 | 65 6e 64 20 70 72 6f 67 |[(start |end prog|
|00000880| 72 61 6d 20 26 6f 70 74 | 69 6f 6e 61 6c 20 64 65 |ram &opt|ional de|
|00000890| 6c 65 74 65 70 20 62 75 | 66 66 65 72 20 64 69 73 |letep bu|ffer dis|
|000008a0| 70 6c 61 79 70 20 26 72 | 65 73 74 20 61 72 67 73 |playp &r|est args|
|000008b0| 29 20 22 08 c1 3d ab 85 | c2 c3 21 aa 83 c2 c4 21 |) "..=..|..!....!|
|000008c0| 1d c6 8e c7 0e 08 0e 09 | 0d ca cb 25 88 0e 0c ab |........|...%....|
|000008d0| 86 0e 08 0e 09 7c 88 cd | ce 0e 0f 0d 0e 10 0e 11 |.....|..|........|
|000008e0| 0e 12 26 06 2a 87 22 20 | 5b 73 79 73 74 65 6d 2d |..&.*." |[system-|
|000008f0| 74 79 70 65 20 76 61 78 | 2d 76 6d 73 20 6d 61 6b |type vax|-vms mak|
|00000900| 65 2d 74 65 6d 70 2d 6e | 61 6d 65 20 22 74 6d 70 |e-temp-n|ame "tmp|
|00000910| 3a 65 6d 61 63 73 22 20 | 22 2f 74 6d 70 2f 65 6d |:emacs" |"/tmp/em|
|00000920| 61 63 73 22 20 74 65 6d | 70 20 28 28 62 79 74 65 |acs" tem|p ((byte|
|00000930| 2d 63 6f 64 65 20 22 c0 | c1 c2 8f 87 22 20 5b 6e |-code ".|...." [n|
|00000940| 69 6c 20 28 64 65 6c 65 | 74 65 2d 66 69 6c 65 20 |il (dele|te-file |
|00000950| 74 65 6d 70 29 20 28 28 | 66 69 6c 65 2d 65 72 72 |temp) ((|file-err|
|00000960| 6f 72 29 29 5d 20 33 29 | 29 20 77 72 69 74 65 2d |or))] 3)|) write-|
|00000970| 72 65 67 69 6f 6e 20 73 | 74 61 72 74 20 65 6e 64 |region s|tart end|
|00000980| 20 6e 69 6c 20 73 69 6c | 65 6e 74 20 64 65 6c 65 | nil sil|ent dele|
|00000990| 74 65 70 20 61 70 70 6c | 79 20 63 61 6c 6c 2d 70 |tep appl|y call-p|
|000009a0| 72 6f 63 65 73 73 20 70 | 72 6f 67 72 61 6d 20 62 |rocess p|rogram b|
|000009b0| 75 66 66 65 72 20 64 69 | 73 70 6c 61 79 70 20 61 |uffer di|splayp a|
|000009c0| 72 67 73 5d 20 37 20 22 | 5c 0a 53 65 6e 64 20 74 |rgs] 7 "|\.Send t|
|000009d0| 65 78 74 20 66 72 6f 6d | 20 53 54 41 52 54 20 74 |ext from| START t|
|000009e0| 6f 20 45 4e 44 20 74 6f | 20 61 20 73 79 6e 63 68 |o END to| a synch|
|000009f0| 72 6f 6e 6f 75 73 20 70 | 72 6f 63 65 73 73 20 72 |ronous p|rocess r|
|00000a00| 75 6e 6e 69 6e 67 20 50 | 52 4f 47 52 41 4d 2e 0a |unning P|ROGRAM..|
|00000a10| 44 65 6c 65 74 65 20 74 | 68 65 20 74 65 78 74 20 |Delete t|he text |
|00000a20| 69 66 20 66 6f 75 72 74 | 68 20 61 72 67 20 44 45 |if fourt|h arg DE|
|00000a30| 4c 45 54 45 20 69 73 20 | 6e 6f 6e 2d 6e 69 6c 2e |LETE is |non-nil.|
|00000a40| 0a 49 6e 73 65 72 74 20 | 6f 75 74 70 75 74 20 69 |.Insert |output i|
|00000a50| 6e 20 42 55 46 46 45 52 | 20 62 65 66 6f 72 65 20 |n BUFFER| before |
|00000a60| 70 6f 69 6e 74 3b 20 74 | 20 6d 65 61 6e 73 20 63 |point; t| means c|
|00000a70| 75 72 72 65 6e 74 20 62 | 75 66 66 65 72 3b 0a 20 |urrent b|uffer;. |
|00000a80| 6e 69 6c 20 66 6f 72 20 | 42 55 46 46 45 52 20 6d |nil for |BUFFER m|
|00000a90| 65 61 6e 73 20 64 69 73 | 63 61 72 64 20 69 74 3b |eans dis|card it;|
|00000aa0| 20 30 20 6d 65 61 6e 73 | 20 64 69 73 63 61 72 64 | 0 means| discard|
|00000ab0| 20 61 6e 64 20 64 6f 6e | 27 74 20 77 61 69 74 2e | and don|'t wait.|
|00000ac0| 0a 53 69 78 74 68 20 61 | 72 67 20 44 49 53 50 4c |.Sixth a|rg DISPL|
|00000ad0| 41 59 20 6e 6f 6e 2d 6e | 69 6c 20 6d 65 61 6e 73 |AY non-n|il means|
|00000ae0| 20 72 65 64 69 73 70 6c | 61 79 20 62 75 66 66 65 | redispl|ay buffe|
|00000af0| 72 20 61 73 20 6f 75 74 | 70 75 74 20 69 73 20 69 |r as out|put is i|
|00000b00| 6e 73 65 72 74 65 64 2e | 0a 52 65 6d 61 69 6e 69 |nserted.|.Remaini|
|00000b10| 6e 67 20 61 72 67 73 20 | 61 72 65 20 70 61 73 73 |ng args |are pass|
|00000b20| 65 64 20 74 6f 20 50 52 | 4f 47 52 41 4d 20 61 74 |ed to PR|OGRAM at|
|00000b30| 20 73 74 61 72 74 75 70 | 20 61 73 20 63 6f 6d 6d | startup| as comm|
|00000b40| 61 6e 64 20 61 72 67 73 | 2e 0a 49 66 20 42 55 46 |and args|..If BUF|
|00000b50| 46 45 52 20 69 73 20 30 | 2c 20 72 65 74 75 72 6e |FER is 0|, return|
|00000b60| 73 20 69 6d 6d 65 64 69 | 61 74 65 6c 79 20 77 69 |s immedi|ately wi|
|00000b70| 74 68 20 76 61 6c 75 65 | 20 6e 69 6c 2e 0a 4f 74 |th value| nil..Ot|
|00000b80| 68 65 72 77 69 73 65 20 | 77 61 69 74 73 20 66 6f |herwise |waits fo|
|00000b90| 72 20 50 52 4f 47 52 41 | 4d 20 74 6f 20 74 65 72 |r PROGRA|M to ter|
|00000ba0| 6d 69 6e 61 74 65 0a 61 | 6e 64 20 72 65 74 75 72 |minate.a|nd retur|
|00000bb0| 6e 73 20 61 20 6e 75 6d | 65 72 69 63 20 65 78 69 |ns a num|eric exi|
|00000bc0| 74 20 73 74 61 74 75 73 | 20 6f 72 20 61 20 73 69 |t status| or a si|
|00000bd0| 67 6e 61 6c 20 64 65 73 | 63 72 69 70 74 69 6f 6e |gnal des|cription|
|00000be0| 20 73 74 72 69 6e 67 2e | 0a 49 66 20 79 6f 75 20 | string.|.If you |
|00000bf0| 71 75 69 74 2c 20 74 68 | 65 20 70 72 6f 63 65 73 |quit, th|e proces|
|00000c00| 73 20 69 73 20 66 69 72 | 73 74 20 6b 69 6c 6c 65 |s is fir|st kille|
|00000c10| 64 20 77 69 74 68 20 53 | 49 47 49 4e 54 2c 20 74 |d with S|IGINT, t|
|00000c20| 68 65 6e 20 77 69 74 68 | 20 53 49 47 4b 49 4c 4c |hen with| SIGKILL|
|00000c30| 20 69 66 0a 79 6f 75 20 | 71 75 69 74 20 61 67 61 | if.you |quit aga|
|00000c40| 69 6e 20 62 65 66 6f 72 | 65 20 74 68 65 20 70 72 |in befor|e the pr|
|00000c50| 6f 63 65 73 73 20 65 78 | 69 74 73 2e 22 5d 29 0a |ocess ex|its."]).|
|00000c60| 28 66 73 65 74 20 27 73 | 68 65 6c 6c 2d 63 6f 6d |(fset 's|hell-com|
|00000c70| 6d 61 6e 64 20 23 5b 28 | 63 6f 6d 6d 61 6e 64 20 |mand #[(|command |
|00000c80| 26 6f 70 74 69 6f 6e 61 | 6c 20 66 6c 61 67 29 20 |&optiona|l flag) |
|00000c90| 22 08 ab 95 c1 20 88 c2 | 20 88 c3 0c c5 c6 c5 c7 |".... ..| .......|
|00000ca0| 0e 08 26 06 88 c9 c6 21 | 87 ca 20 1e 0b cc 8e cd |..&....!|.. .....|
|00000cb0| ce 0e 08 5c 22 ab 8e cf | d0 21 88 d0 0e 08 d1 89 |...\"...|.!......|
|00000cc0| 94 4f 21 aa 87 d2 60 60 | 0e 08 c5 24 2a 87 22 20 |.O!...``|...$*." |
|00000cd0| 5b 66 6c 61 67 20 62 61 | 72 66 2d 69 66 2d 62 75 |[flag ba|rf-if-bu|
|00000ce0| 66 66 65 72 2d 72 65 61 | 64 2d 6f 6e 6c 79 20 70 |ffer-rea|d-only p|
|00000cf0| 75 73 68 2d 6d 61 72 6b | 20 63 61 6c 6c 2d 70 72 |ush-mark| call-pr|
|00000d00| 6f 63 65 73 73 20 73 68 | 65 6c 6c 2d 66 69 6c 65 |ocess sh|ell-file|
|00000d10| 2d 6e 61 6d 65 20 6e 69 | 6c 20 74 20 22 2d 63 22 |-name ni|l t "-c"|
|00000d20| 20 63 6f 6d 6d 61 6e 64 | 20 65 78 63 68 61 6e 67 | command| exchang|
|00000d30| 65 2d 70 6f 69 6e 74 2d | 61 6e 64 2d 6d 61 72 6b |e-point-|and-mark|
|00000d40| 20 6d 61 74 63 68 2d 64 | 61 74 61 20 64 61 74 61 | match-d|ata data|
|00000d50| 20 28 28 73 74 6f 72 65 | 2d 6d 61 74 63 68 2d 64 | ((store|-match-d|
|00000d60| 61 74 61 20 64 61 74 61 | 29 29 20 73 74 72 69 6e |ata data|)) strin|
|00000d70| 67 2d 6d 61 74 63 68 20 | 22 5b 20 09 5d 2a 26 5b |g-match |"[ .]*&[|
|00000d80| 20 09 5d 2a 24 22 20 72 | 65 71 75 69 72 65 20 62 | .]*$" r|equire b|
|00000d90| 61 63 6b 67 72 6f 75 6e | 64 20 30 20 73 68 65 6c |ackgroun|d 0 shel|
|00000da0| 6c 2d 63 6f 6d 6d 61 6e | 64 2d 6f 6e 2d 72 65 67 |l-comman|d-on-reg|
|00000db0| 69 6f 6e 5d 20 37 20 22 | 5c 0a 45 78 65 63 75 74 |ion] 7 "|\.Execut|
|00000dc0| 65 20 73 74 72 69 6e 67 | 20 43 4f 4d 4d 41 4e 44 |e string| COMMAND|
|00000dd0| 20 69 6e 20 69 6e 66 65 | 72 69 6f 72 20 73 68 65 | in infe|rior she|
|00000de0| 6c 6c 3b 20 64 69 73 70 | 6c 61 79 20 6f 75 74 70 |ll; disp|lay outp|
|00000df0| 75 74 2c 20 69 66 20 61 | 6e 79 2e 0a 49 66 20 43 |ut, if a|ny..If C|
|00000e00| 4f 4d 4d 41 4e 44 20 65 | 6e 64 73 20 69 6e 20 61 |OMMAND e|nds in a|
|00000e10| 6d 70 65 72 73 61 6e 64 | 2c 20 65 78 65 63 75 74 |mpersand|, execut|
|00000e20| 65 20 69 74 20 61 73 79 | 6e 63 68 72 6f 6e 6f 75 |e it asy|nchronou|
|00000e30| 73 6c 79 2e 0a 20 0a 4f | 70 74 69 6f 6e 61 6c 20 |sly.. .O|ptional |
|00000e40| 73 65 63 6f 6e 64 20 61 | 72 67 20 6e 6f 6e 2d 6e |second a|rg non-n|
|00000e50| 69 6c 20 28 70 72 65 66 | 69 78 20 61 72 67 2c 20 |il (pref|ix arg, |
|00000e60| 69 66 20 69 6e 74 65 72 | 61 63 74 69 76 65 29 0a |if inter|active).|
|00000e70| 6d 65 61 6e 73 20 69 6e | 73 65 72 74 20 6f 75 74 |means in|sert out|
|00000e80| 70 75 74 20 69 6e 20 63 | 75 72 72 65 6e 74 20 62 |put in c|urrent b|
|00000e90| 75 66 66 65 72 20 61 66 | 74 65 72 20 70 6f 69 6e |uffer af|ter poin|
|00000ea0| 74 20 28 6c 65 61 76 65 | 20 6d 61 72 6b 20 61 66 |t (leave| mark af|
|00000eb0| 74 65 72 20 69 74 29 2e | 0a 54 68 69 73 20 63 61 |ter it).|.This ca|
|00000ec0| 6e 6e 6f 74 20 62 65 20 | 64 6f 6e 65 20 61 73 79 |nnot be |done asy|
|00000ed0| 6e 63 68 72 6f 6e 6f 75 | 73 6c 79 2e 22 20 28 62 |nchronou|sly." (b|
|00000ee0| 79 74 65 2d 63 6f 64 65 | 20 22 c0 c1 21 5c 6e 44 |yte-code| "..!\nD|
|00000ef0| 87 22 20 5b 72 65 61 64 | 2d 73 68 65 6c 6c 2d 63 |." [read|-shell-c|
|00000f00| 6f 6d 6d 61 6e 64 20 22 | 53 68 65 6c 6c 20 63 6f |ommand "|Shell co|
|00000f10| 6d 6d 61 6e 64 3a 20 22 | 20 63 75 72 72 65 6e 74 |mmand: "| current|
|00000f20| 2d 70 72 65 66 69 78 2d | 61 72 67 5d 20 32 29 5d |-prefix-|arg] 2)]|
|00000f30| 29 0a 28 66 73 65 74 20 | 27 73 68 65 6c 6c 2d 63 |).(fset |'shell-c|
|00000f40| 6f 6d 6d 61 6e 64 2d 6f | 6e 2d 72 65 67 69 6f 6e |ommand-o|n-region|
|00000f50| 20 23 5b 28 73 74 61 72 | 74 20 65 6e 64 20 63 6f | #[(star|t end co|
|00000f60| 6d 6d 61 6e 64 20 26 6f | 70 74 69 6f 6e 61 6c 20 |mmand &o|ptional |
|00000f70| 66 6c 61 67 20 69 6e 74 | 65 72 61 63 74 69 76 65 |flag int|eractive|
|00000f80| 29 20 22 08 ab bd 09 ad | 84 60 c2 20 57 1b 09 ab |) ".....|.`. W...|
|00000f90| 83 c4 20 88 c5 0e 06 0e | 07 0e 08 c9 89 ca cb 0e |.. .....|........|
|00000fa0| 0c 26 08 88 cd ce 21 89 | 1e 0f ab 8b 0e 0f 70 3d |.&....!.|......p=|
|00000fb0| ac 85 d0 0e 0f 21 88 29 | 09 ad 86 0b ad 83 d1 c9 |.....!.)|........|
|00000fc0| 21 29 87 d2 ce 21 ca 0e | 13 1e 14 1e 15 1e 16 d7 |!)...!..|........|
|00000fd0| 8e 0e 16 70 3d ab 9e 0e | 07 64 7c 88 65 0e 06 7c |...p=...|.d|.e..||
|00000fe0| 88 c5 65 64 0e 08 c9 89 | ca cb 0e 0c 26 08 88 c9 |..ed....|....&...|
|00000ff0| 89 16 15 aa a2 8a 0e 16 | 71 88 0e 14 16 13 d8 20 |........|q...... |
|00001000| 88 29 c5 0e 06 0e 07 0e | 08 ca 0e 16 ca cb 0e 0c |.)......|........|
|00001010| 26 08 88 c9 89 16 15 2c | 87 22 20 5b 66 6c 61 67 |&......,|." [flag|
|00001020| 20 69 6e 74 65 72 61 63 | 74 69 76 65 20 6d 61 72 | interac|tive mar|
|00001030| 6b 20 73 77 61 70 20 70 | 75 73 68 2d 6d 61 72 6b |k swap p|ush-mark|
|00001040| 20 63 61 6c 6c 2d 70 72 | 6f 63 65 73 73 2d 72 65 | call-pr|ocess-re|
|00001050| 67 69 6f 6e 20 73 74 61 | 72 74 20 65 6e 64 20 73 |gion sta|rt end s|
|00001060| 68 65 6c 6c 2d 66 69 6c | 65 2d 6e 61 6d 65 20 74 |hell-fil|e-name t|
|00001070| 20 6e 69 6c 20 22 2d 63 | 22 20 63 6f 6d 6d 61 6e | nil "-c|" comman|
|00001080| 64 20 67 65 74 2d 62 75 | 66 66 65 72 20 22 2a 53 |d get-bu|ffer "*S|
|00001090| 68 65 6c 6c 20 43 6f 6d | 6d 61 6e 64 20 4f 75 74 |hell Com|mand Out|
|000010a0| 70 75 74 2a 22 20 73 68 | 65 6c 6c 2d 62 75 66 66 |put*" sh|ell-buff|
|000010b0| 65 72 20 6b 69 6c 6c 2d | 62 75 66 66 65 72 20 65 |er kill-|buffer e|
|000010c0| 78 63 68 61 6e 67 65 2d | 70 6f 69 6e 74 2d 61 6e |xchange-|point-an|
|000010d0| 64 2d 6d 61 72 6b 20 67 | 65 74 2d 62 75 66 66 65 |d-mark g|et-buffe|
|000010e0| 72 2d 63 72 65 61 74 65 | 20 64 65 66 61 75 6c 74 |r-create| default|
|000010f0| 2d 64 69 72 65 63 74 6f | 72 79 20 64 69 72 65 63 |-directo|ry direc|
|00001100| 74 6f 72 79 20 73 75 63 | 63 65 73 73 20 62 75 66 |tory suc|cess buf|
|00001110| 66 65 72 20 28 28 62 79 | 74 65 2d 63 6f 64 65 20 |fer ((by|te-code |
|00001120| 22 8a 08 71 88 c1 20 c2 | 55 ab 83 c2 aa 84 c3 65 |"..q.. .|U......e|
|00001130| 64 5c 22 29 89 1c c2 55 | ab 8d 0d ab 84 c6 c7 21 |d\")...U|.......!|
|00001140| 88 c8 08 21 88 aa a3 0d | ab 99 0c c9 55 ab 94 c6 |...!....|....U...|
|00001150| ca 8a 08 71 88 65 62 88 | 60 cb 7f 88 60 7b 29 5c |...q.eb.|`...`{)\|
|00001160| 22 88 aa 87 cc cd 08 21 | c9 5c 22 88 29 cb 87 22 |"......!|.\".).."|
|00001170| 20 5b 62 75 66 66 65 72 | 20 62 75 66 66 65 72 2d | [buffer| buffer-|
|00001180| 73 69 7a 65 20 30 20 63 | 6f 75 6e 74 2d 6c 69 6e |size 0 c|ount-lin|
|00001190| 65 73 20 6c 69 6e 65 73 | 20 73 75 63 63 65 73 73 |es lines| success|
|000011a0| 20 6d 65 73 73 61 67 65 | 20 22 28 53 68 65 6c 6c | message| "(Shell|
|000011b0| 20 63 6f 6d 6d 61 6e 64 | 20 63 6f 6d 70 6c 65 74 | command| complet|
|000011c0| 65 64 20 77 69 74 68 20 | 6e 6f 20 6f 75 74 70 75 |ed with |no outpu|
|000011d0| 74 29 22 20 6b 69 6c 6c | 2d 62 75 66 66 65 72 20 |t)" kill|-buffer |
|000011e0| 31 20 22 25 73 22 20 6e | 69 6c 20 73 65 74 2d 77 |1 "%s" n|il set-w|
|000011f0| 69 6e 64 6f 77 2d 73 74 | 61 72 74 20 64 69 73 70 |indow-st|art disp|
|00001200| 6c 61 79 2d 62 75 66 66 | 65 72 5d 20 35 29 29 20 |lay-buff|er] 5)) |
|00001210| 65 72 61 73 65 2d 62 75 | 66 66 65 72 5d 20 31 30 |erase-bu|ffer] 10|
|00001220| 20 22 5c 0a 45 78 65 63 | 75 74 65 20 73 74 72 69 | "\.Exec|ute stri|
|00001230| 6e 67 20 43 4f 4d 4d 41 | 4e 44 20 69 6e 20 69 6e |ng COMMA|ND in in|
|00001240| 66 65 72 69 6f 72 20 73 | 68 65 6c 6c 20 77 69 74 |ferior s|hell wit|
|00001250| 68 20 72 65 67 69 6f 6e | 20 61 73 20 69 6e 70 75 |h region| as inpu|
|00001260| 74 2e 0a 4e 6f 72 6d 61 | 6c 6c 79 20 64 69 73 70 |t..Norma|lly disp|
|00001270| 6c 61 79 20 6f 75 74 70 | 75 74 20 28 69 66 20 61 |lay outp|ut (if a|
|00001280| 6e 79 29 20 69 6e 20 74 | 65 6d 70 20 62 75 66 66 |ny) in t|emp buff|
|00001290| 65 72 20 60 2a 53 68 65 | 6c 6c 20 43 6f 6d 6d 61 |er `*She|ll Comma|
|000012a0| 6e 64 20 4f 75 74 70 75 | 74 2a 27 3b 0a 50 72 65 |nd Outpu|t*';.Pre|
|000012b0| 66 69 78 20 61 72 67 20 | 6d 65 61 6e 73 20 72 65 |fix arg |means re|
|000012c0| 70 6c 61 63 65 20 74 68 | 65 20 72 65 67 69 6f 6e |place th|e region|
|000012d0| 20 77 69 74 68 20 69 74 | 2e 0a 4e 6f 6e 69 6e 74 | with it|..Nonint|
|000012e0| 65 72 61 63 74 69 76 65 | 20 61 72 67 73 20 61 72 |eractive| args ar|
|000012f0| 65 20 53 54 41 52 54 2c | 20 45 4e 44 2c 20 43 4f |e START,| END, CO|
|00001300| 4d 4d 41 4e 44 2c 20 46 | 4c 41 47 2e 0a 4e 6f 6e |MMAND, F|LAG..Non|
|00001310| 69 6e 74 65 72 61 63 74 | 69 76 65 6c 79 20 46 4c |interact|ively FL|
|00001320| 41 47 20 6d 65 61 6e 73 | 20 69 6e 73 65 72 74 20 |AG means| insert |
|00001330| 6f 75 74 70 75 74 20 69 | 6e 20 70 6c 61 63 65 20 |output i|n place |
|00001340| 6f 66 20 74 65 78 74 20 | 66 72 6f 6d 20 53 54 41 |of text |from STA|
|00001350| 52 54 20 74 6f 20 45 4e | 44 2c 0a 61 6e 64 20 70 |RT to EN|D,.and p|
|00001360| 75 74 20 70 6f 69 6e 74 | 20 61 74 20 74 68 65 20 |ut point| at the |
|00001370| 65 6e 64 2c 20 62 75 74 | 20 64 6f 6e 27 74 20 61 |end, but| don't a|
|00001380| 6c 74 65 72 20 74 68 65 | 20 6d 61 72 6b 2e 0a 0a |lter the| mark...|
|00001390| 49 66 20 74 68 65 20 6f | 75 74 70 75 74 20 69 73 |If the o|utput is|
|000013a0| 20 6f 6e 65 20 6c 69 6e | 65 2c 20 69 74 20 69 73 | one lin|e, it is|
|000013b0| 20 64 69 73 70 6c 61 79 | 65 64 20 69 6e 20 74 68 | display|ed in th|
|000013c0| 65 20 65 63 68 6f 20 61 | 72 65 61 2c 0a 62 75 74 |e echo a|rea,.but|
|000013d0| 20 69 74 20 69 73 20 6e | 6f 6e 65 74 68 65 6c 65 | it is n|onethele|
|000013e0| 73 73 20 61 76 61 69 6c | 61 62 6c 65 20 69 6e 20 |ss avail|able in |
|000013f0| 62 75 66 66 65 72 20 60 | 2a 53 68 65 6c 6c 20 43 |buffer `|*Shell C|
|00001400| 6f 6d 6d 61 6e 64 20 4f | 75 74 70 75 74 2a 27 0a |ommand O|utput*'.|
|00001410| 65 76 65 6e 20 74 68 6f | 75 67 68 20 74 68 61 74 |even tho|ugh that|
|00001420| 20 62 75 66 66 65 72 20 | 69 73 20 6e 6f 74 20 61 | buffer |is not a|
|00001430| 75 74 6f 6d 61 74 69 63 | 61 6c 6c 79 20 64 69 73 |utomatic|ally dis|
|00001440| 70 6c 61 79 65 64 2e 20 | 20 49 66 20 74 68 65 72 |played. | If ther|
|00001450| 65 20 69 73 20 6e 6f 20 | 6f 75 74 70 75 74 0a 6f |e is no |output.o|
|00001460| 72 20 6f 75 74 70 75 74 | 20 69 73 20 69 6e 73 65 |r output| is inse|
|00001470| 72 74 65 64 20 69 6e 20 | 74 68 65 20 63 75 72 72 |rted in |the curr|
|00001480| 65 6e 74 20 62 75 66 66 | 65 72 20 74 68 65 6e 20 |ent buff|er then |
|00001490| 60 2a 53 68 65 6c 6c 20 | 43 6f 6d 6d 61 6e 64 20 |`*Shell |Command |
|000014a0| 4f 75 74 70 75 74 2a 27 | 20 69 73 0a 64 65 6c 65 |Output*'| is.dele|
|000014b0| 74 65 64 2e 22 20 28 62 | 79 74 65 2d 63 6f 64 65 |ted." (b|yte-code|
|000014c0| 20 22 60 c0 20 5e 60 c0 | 20 5d c1 c2 21 0b c4 0b | "`. ^`.| ]..!...|
|000014d0| 21 af 05 87 22 20 5b 6d | 61 72 6b 20 72 65 61 64 |!..." [m|ark read|
|000014e0| 2d 73 68 65 6c 6c 2d 63 | 6f 6d 6d 61 6e 64 20 22 |-shell-c|ommand "|
|000014f0| 53 68 65 6c 6c 20 63 6f | 6d 6d 61 6e 64 20 6f 6e |Shell co|mmand on|
|00001500| 20 72 65 67 69 6f 6e 3a | 20 22 20 63 75 72 72 65 | region:| " curre|
|00001510| 6e 74 2d 70 72 65 66 69 | 78 2d 61 72 67 20 70 72 |nt-prefi|x-arg pr|
|00001520| 65 66 69 78 2d 6e 75 6d | 65 72 69 63 2d 76 61 6c |efix-num|eric-val|
|00001530| 75 65 5d 20 36 29 5d 29 | 0a 28 66 73 65 74 20 27 |ue] 6)])|.(fset '|
|00001540| 73 74 61 72 74 2d 70 72 | 6f 63 65 73 73 20 23 5b |start-pr|ocess #[|
|00001550| 28 6e 61 6d 65 20 62 75 | 66 66 65 72 20 70 72 6f |(name bu|ffer pro|
|00001560| 67 72 61 6d 20 26 72 65 | 73 74 20 70 72 6f 67 72 |gram &re|st progr|
|00001570| 61 6d 2d 61 72 67 73 29 | 20 22 c0 c1 5c 6e 0b 0c |am-args)| "..\n..|
|00001580| 0d 25 87 22 20 5b 61 70 | 70 6c 79 20 73 74 61 72 |.%." [ap|ply star|
|00001590| 74 2d 70 72 6f 63 65 73 | 73 2d 69 6e 74 65 72 6e |t-proces|s-intern|
|000015a0| 61 6c 20 6e 61 6d 65 20 | 62 75 66 66 65 72 20 70 |al name |buffer p|
|000015b0| 72 6f 67 72 61 6d 20 70 | 72 6f 67 72 61 6d 2d 61 |rogram p|rogram-a|
|000015c0| 72 67 73 5d 20 36 20 22 | 5c 0a 53 74 61 72 74 20 |rgs] 6 "|\.Start |
|000015d0| 61 20 70 72 6f 67 72 61 | 6d 20 69 6e 20 61 20 73 |a progra|m in a s|
|000015e0| 75 62 70 72 6f 63 65 73 | 73 2e 20 20 52 65 74 75 |ubproces|s. Retu|
|000015f0| 72 6e 20 74 68 65 20 70 | 72 6f 63 65 73 73 20 6f |rn the p|rocess o|
|00001600| 62 6a 65 63 74 20 66 6f | 72 20 69 74 2e 0a 41 72 |bject fo|r it..Ar|
|00001610| 67 73 20 61 72 65 20 4e | 41 4d 45 20 42 55 46 46 |gs are N|AME BUFF|
|00001620| 45 52 20 50 52 4f 47 52 | 41 4d 20 26 72 65 73 74 |ER PROGR|AM &rest|
|00001630| 20 50 52 4f 47 52 41 4d | 2d 41 52 47 53 0a 4e 41 | PROGRAM|-ARGS.NA|
|00001640| 4d 45 20 69 73 20 6e 61 | 6d 65 20 66 6f 72 20 70 |ME is na|me for p|
|00001650| 72 6f 63 65 73 73 2e 20 | 20 49 74 20 69 73 20 6d |rocess. | It is m|
|00001660| 6f 64 69 66 69 65 64 20 | 69 66 20 6e 65 63 65 73 |odified |if neces|
|00001670| 73 61 72 79 20 74 6f 20 | 6d 61 6b 65 20 69 74 20 |sary to |make it |
|00001680| 75 6e 69 71 75 65 2e 0a | 42 55 46 46 45 52 20 69 |unique..|BUFFER i|
|00001690| 73 20 74 68 65 20 62 75 | 66 66 65 72 20 6f 72 20 |s the bu|ffer or |
|000016a0| 28 62 75 66 66 65 72 2d | 6e 61 6d 65 29 20 74 6f |(buffer-|name) to|
|000016b0| 20 61 73 73 6f 63 69 61 | 74 65 20 77 69 74 68 20 | associa|te with |
|000016c0| 74 68 65 20 70 72 6f 63 | 65 73 73 2e 0a 20 50 72 |the proc|ess.. Pr|
|000016d0| 6f 63 65 73 73 20 6f 75 | 74 70 75 74 20 67 6f 65 |ocess ou|tput goe|
|000016e0| 73 20 61 74 20 65 6e 64 | 20 6f 66 20 74 68 61 74 |s at end| of that|
|000016f0| 20 62 75 66 66 65 72 2c | 20 75 6e 6c 65 73 73 20 | buffer,| unless |
|00001700| 79 6f 75 20 73 70 65 63 | 69 66 79 0a 20 61 6e 20 |you spec|ify. an |
|00001710| 6f 75 74 70 75 74 20 73 | 74 72 65 61 6d 20 6f 72 |output s|tream or|
|00001720| 20 66 69 6c 74 65 72 20 | 66 75 6e 63 74 69 6f 6e | filter |function|
|00001730| 20 74 6f 20 68 61 6e 64 | 6c 65 20 74 68 65 20 6f | to hand|le the o|
|00001740| 75 74 70 75 74 2e 0a 20 | 42 55 46 46 45 52 20 6d |utput.. |BUFFER m|
|00001750| 61 79 20 62 65 20 61 6c | 73 6f 20 6e 69 6c 2c 20 |ay be al|so nil, |
|00001760| 6d 65 61 6e 69 6e 67 20 | 74 68 61 74 20 74 68 69 |meaning |that thi|
|00001770| 73 20 70 72 6f 63 65 73 | 73 20 69 73 20 6e 6f 74 |s proces|s is not|
|00001780| 20 61 73 73 6f 63 69 61 | 74 65 64 0a 20 77 69 74 | associa|ted. wit|
|00001790| 68 20 61 6e 79 20 62 75 | 66 66 65 72 0a 54 68 69 |h any bu|ffer.Thi|
|000017a0| 72 64 20 61 72 67 20 69 | 73 20 70 72 6f 67 72 61 |rd arg i|s progra|
|000017b0| 6d 20 66 69 6c 65 20 6e | 61 6d 65 2e 20 20 49 74 |m file n|ame. It|
|000017c0| 20 69 73 20 73 65 61 72 | 63 68 65 64 20 66 6f 72 | is sear|ched for|
|000017d0| 20 61 73 20 69 6e 20 74 | 68 65 20 73 68 65 6c 6c | as in t|he shell|
|000017e0| 2e 0a 52 65 6d 61 69 6e | 69 6e 67 20 61 72 67 75 |..Remain|ing argu|
|000017f0| 6d 65 6e 74 73 20 61 72 | 65 20 73 74 72 69 6e 67 |ments ar|e string|
|00001800| 73 20 74 6f 20 67 69 76 | 65 20 70 72 6f 67 72 61 |s to giv|e progra|
|00001810| 6d 20 61 73 20 61 72 67 | 75 6d 65 6e 74 73 2e 0a |m as arg|uments..|
|00001820| 49 4e 43 4f 44 45 20 61 | 6e 64 20 4f 55 54 43 4f |INCODE a|nd OUTCO|
|00001830| 44 45 20 73 70 65 63 69 | 66 79 20 74 68 65 20 63 |DE speci|fy the c|
|00001840| 6f 64 69 6e 67 2d 73 79 | 73 74 65 6d 20 6f 62 6a |oding-sy|stem obj|
|00001850| 65 63 74 73 20 75 73 65 | 64 20 69 6e 20 69 6e 70 |ects use|d in inp|
|00001860| 75 74 2f 6f 75 74 70 75 | 74 0a 20 66 72 6f 6d 2f |ut/outpu|t. from/|
|00001870| 74 6f 20 74 68 65 20 70 | 72 6f 63 65 73 73 2e 22 |to the p|rocess."|
|00001880| 5d 29 0a 28 66 73 65 74 | 20 27 6f 70 65 6e 2d 6e |]).(fset| 'open-n|
|00001890| 65 74 77 6f 72 6b 2d 73 | 74 72 65 61 6d 20 23 5b |etwork-s|tream #[|
|000018a0| 28 6e 61 6d 65 20 62 75 | 66 66 65 72 20 68 6f 73 |(name bu|ffer hos|
|000018b0| 74 20 73 65 72 76 69 63 | 65 29 20 22 c0 09 5c 6e |t servic|e) "..\n|
|000018c0| 0b 0c 24 87 22 20 5b 6f | 70 65 6e 2d 6e 65 74 77 |..$." [o|pen-netw|
|000018d0| 6f 72 6b 2d 73 74 72 65 | 61 6d 2d 69 6e 74 65 72 |ork-stre|am-inter|
|000018e0| 6e 61 6c 20 6e 61 6d 65 | 20 62 75 66 66 65 72 20 |nal name| buffer |
|000018f0| 68 6f 73 74 20 73 65 72 | 76 69 63 65 5d 20 35 20 |host ser|vice] 5 |
|00001900| 22 5c 0a 4f 70 65 6e 20 | 61 20 54 43 50 20 63 6f |"\.Open |a TCP co|
|00001910| 6e 6e 65 63 74 69 6f 6e | 20 66 6f 72 20 61 20 73 |nnection| for a s|
|00001920| 65 72 76 69 63 65 20 74 | 6f 20 61 20 68 6f 73 74 |ervice t|o a host|
|00001930| 2e 0a 52 65 74 75 72 6e | 73 20 61 20 73 75 62 70 |..Return|s a subp|
|00001940| 72 6f 63 65 73 73 2d 6f | 62 6a 65 63 74 20 74 6f |rocess-o|bject to|
|00001950| 20 72 65 70 72 65 73 65 | 6e 74 20 74 68 65 20 63 | represe|nt the c|
|00001960| 6f 6e 6e 65 63 74 69 6f | 6e 2e 0a 49 6e 70 75 74 |onnectio|n..Input|
|00001970| 20 61 6e 64 20 6f 75 74 | 70 75 74 20 77 6f 72 6b | and out|put work|
|00001980| 20 61 73 20 66 6f 72 20 | 73 75 62 70 72 6f 63 65 | as for |subproce|
|00001990| 73 73 65 73 3b 20 60 64 | 65 6c 65 74 65 2d 70 72 |sses; `d|elete-pr|
|000019a0| 6f 63 65 73 73 27 20 63 | 6c 6f 73 65 73 20 69 74 |ocess' c|loses it|
|000019b0| 2e 0a 41 72 67 73 20 61 | 72 65 20 4e 41 4d 45 20 |..Args a|re NAME |
|000019c0| 42 55 46 46 45 52 20 48 | 4f 53 54 20 53 45 52 56 |BUFFER H|OST SERV|
|000019d0| 49 43 45 2e 0a 4e 41 4d | 45 20 69 73 20 6e 61 6d |ICE..NAM|E is nam|
|000019e0| 65 20 66 6f 72 20 70 72 | 6f 63 65 73 73 2e 20 20 |e for pr|ocess. |
|000019f0| 49 74 20 69 73 20 6d 6f | 64 69 66 69 65 64 20 69 |It is mo|dified i|
|00001a00| 66 20 6e 65 63 65 73 73 | 61 72 79 20 74 6f 20 6d |f necess|ary to m|
|00001a10| 61 6b 65 20 69 74 20 75 | 6e 69 71 75 65 2e 0a 42 |ake it u|nique..B|
|00001a20| 55 46 46 45 52 20 69 73 | 20 74 68 65 20 62 75 66 |UFFER is| the buf|
|00001a30| 66 65 72 20 28 6f 72 20 | 62 75 66 66 65 72 2d 6e |fer (or |buffer-n|
|00001a40| 61 6d 65 29 20 74 6f 20 | 61 73 73 6f 63 69 61 74 |ame) to |associat|
|00001a50| 65 20 77 69 74 68 20 74 | 68 65 20 70 72 6f 63 65 |e with t|he proce|
|00001a60| 73 73 2e 0a 20 50 72 6f | 63 65 73 73 20 6f 75 74 |ss.. Pro|cess out|
|00001a70| 70 75 74 20 67 6f 65 73 | 20 61 74 20 65 6e 64 20 |put goes| at end |
|00001a80| 6f 66 20 74 68 61 74 20 | 62 75 66 66 65 72 2c 20 |of that |buffer, |
|00001a90| 75 6e 6c 65 73 73 20 79 | 6f 75 20 73 70 65 63 69 |unless y|ou speci|
|00001aa0| 66 79 0a 20 61 6e 20 6f | 75 74 70 75 74 20 73 74 |fy. an o|utput st|
|00001ab0| 72 65 61 6d 20 6f 72 20 | 66 69 6c 74 65 72 20 66 |ream or |filter f|
|00001ac0| 75 6e 63 74 69 6f 6e 20 | 74 6f 20 68 61 6e 64 6c |unction |to handl|
|00001ad0| 65 20 74 68 65 20 6f 75 | 74 70 75 74 2e 0a 20 42 |e the ou|tput.. B|
|00001ae0| 55 46 46 45 52 20 6d 61 | 79 20 62 65 20 61 6c 73 |UFFER ma|y be als|
|00001af0| 6f 20 6e 69 6c 2c 20 6d | 65 61 6e 69 6e 67 20 74 |o nil, m|eaning t|
|00001b00| 68 61 74 20 74 68 69 73 | 20 70 72 6f 63 65 73 73 |hat this| process|
|00001b10| 20 69 73 20 6e 6f 74 20 | 61 73 73 6f 63 69 61 74 | is not |associat|
|00001b20| 65 64 0a 20 77 69 74 68 | 20 61 6e 79 20 62 75 66 |ed. with| any buf|
|00001b30| 66 65 72 0a 54 68 69 72 | 64 20 61 72 67 20 69 73 |fer.Thir|d arg is|
|00001b40| 20 6e 61 6d 65 20 6f 66 | 20 74 68 65 20 68 6f 73 | name of| the hos|
|00001b50| 74 20 74 6f 20 63 6f 6e | 6e 65 63 74 20 74 6f 2c |t to con|nect to,|
|00001b60| 20 6f 72 20 69 74 73 20 | 49 50 20 61 64 64 72 65 | or its |IP addre|
|00001b70| 73 73 2e 0a 46 6f 75 72 | 74 68 20 61 72 67 20 53 |ss..Four|th arg S|
|00001b80| 45 52 56 49 43 45 20 69 | 73 20 6e 61 6d 65 20 6f |ERVICE i|s name o|
|00001b90| 66 20 74 68 65 20 73 65 | 72 76 69 63 65 20 64 65 |f the se|rvice de|
|00001ba0| 73 69 72 65 64 2c 20 6f | 72 20 61 6e 20 69 6e 74 |sired, o|r an int|
|00001bb0| 65 67 65 72 0a 20 73 70 | 65 63 69 66 79 69 6e 67 |eger. sp|ecifying|
|00001bc0| 20 61 20 70 6f 72 74 20 | 6e 75 6d 62 65 72 20 74 | a port |number t|
|00001bd0| 6f 20 63 6f 6e 6e 65 63 | 74 20 74 6f 2e 22 5d 29 |o connec|t to."])|
|00001be0| 0a 28 66 73 65 74 20 27 | 73 68 65 6c 6c 2d 71 75 |.(fset '|shell-qu|
|00001bf0| 6f 74 65 2d 61 72 67 75 | 6d 65 6e 74 20 23 5b 28 |ote-argu|ment #[(|
|00001c00| 61 72 67 75 6d 65 6e 74 | 29 20 22 c0 c1 c2 1b 1c |argument|) ".....|
|00001c10| 1d c6 c7 0e 08 0c 23 ab | 97 c1 94 13 0d 0e 08 0c |......#.|........|
|00001c20| 0b 4f c9 0e 08 0b 89 54 | 4f 52 15 0b 54 14 aa 61 |.O.....T|OR..T..a|
|00001c30| 0d 0e 08 0c c2 4f 50 2b | 87 22 20 5b 22 22 20 30 |.....OP+|." ["" 0|
|00001c40| 20 6e 69 6c 20 65 6e 64 | 20 73 74 61 72 74 20 72 | nil end| start r|
|00001c50| 65 73 75 6c 74 20 73 74 | 72 69 6e 67 2d 6d 61 74 |esult st|ring-mat|
|00001c60| 63 68 20 22 5b 5e 2d 30 | 2d 39 61 2d 7a 41 2d 5a |ch "[^-0|-9a-zA-Z|
|00001c70| 5f 2e 2f 5d 22 20 61 72 | 67 75 6d 65 6e 74 20 22 |_./]" ar|gument "|
|00001c80| 5c 5c 22 5d 20 36 20 22 | 5c 0a 51 75 6f 74 65 20 |\\"] 6 "|\.Quote |
|00001c90| 61 6e 20 61 72 67 75 6d | 65 6e 74 20 66 6f 72 20 |an argum|ent for |
|00001ca0| 70 61 73 73 69 6e 67 20 | 61 73 20 61 72 67 75 6d |passing |as argum|
|00001cb0| 65 6e 74 20 74 6f 20 61 | 6e 20 69 6e 66 65 72 69 |ent to a|n inferi|
|00001cc0| 6f 72 20 73 68 65 6c 6c | 2e 22 5d 29 0a 28 66 73 |or shell|."]).(fs|
|00001cd0| 65 74 20 27 65 78 65 63 | 2d 74 6f 2d 73 74 72 69 |et 'exec|-to-stri|
|00001ce0| 6e 67 20 23 5b 28 63 6f | 6d 6d 61 6e 64 29 20 22 |ng #[(co|mmand) "|
|00001cf0| 8a c0 c1 21 71 88 c2 13 | c4 70 21 88 c5 20 88 70 |...!q...|.p!.. .p|
|00001d00| 1e 06 c7 0e 08 c2 c9 c2 | ca 0e 0b 26 06 88 29 cc |........|...&..).|
|00001d10| 20 c5 20 88 29 87 22 20 | 5b 67 65 74 2d 62 75 66 | . .)." |[get-buf|
|00001d20| 66 65 72 2d 63 72 65 61 | 74 65 20 22 20 2a 73 74 |fer-crea|te " *st|
|00001d30| 72 69 6e 67 2d 6f 75 74 | 70 75 74 2a 22 20 6e 69 |ring-out|put*" ni|
|00001d40| 6c 20 62 75 66 66 65 72 | 2d 72 65 61 64 2d 6f 6e |l buffer|-read-on|
|00001d50| 6c 79 20 62 75 66 66 65 | 72 2d 64 69 73 61 62 6c |ly buffe|r-disabl|
|00001d60| 65 2d 75 6e 64 6f 20 65 | 72 61 73 65 2d 62 75 66 |e-undo e|rase-buf|
|00001d70| 66 65 72 20 73 74 61 6e | 64 61 72 64 2d 6f 75 74 |fer stan|dard-out|
|00001d80| 70 75 74 20 63 61 6c 6c | 2d 70 72 6f 63 65 73 73 |put call|-process|
|00001d90| 20 73 68 65 6c 6c 2d 66 | 69 6c 65 2d 6e 61 6d 65 | shell-f|ile-name|
|00001da0| 20 74 20 22 2d 63 22 20 | 63 6f 6d 6d 61 6e 64 20 | t "-c" |command |
|00001db0| 62 75 66 66 65 72 2d 73 | 74 72 69 6e 67 5d 20 37 |buffer-s|tring] 7|
|00001dc0| 20 22 5c 0a 45 78 65 63 | 75 74 65 20 43 4f 4d 4d | "\.Exec|ute COMM|
|00001dd0| 41 4e 44 20 61 73 20 61 | 6e 20 65 78 74 65 72 6e |AND as a|n extern|
|00001de0| 61 6c 20 70 72 6f 63 65 | 73 73 20 61 6e 64 20 72 |al proce|ss and r|
|00001df0| 65 74 75 72 6e 20 74 68 | 65 20 6f 75 74 70 75 74 |eturn th|e output|
|00001e00| 20 6f 66 20 74 68 61 74 | 0a 70 72 6f 63 65 73 73 | of that|.process|
|00001e10| 20 61 73 20 61 20 73 74 | 72 69 6e 67 22 5d 29 0a | as a st|ring"]).|
+--------+-------------------------+-------------------------+--------+--------+