home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 2: Applications / Linux Cubed Series 2 - Applications.iso / editors / emacs / xemacs / xemacs-1.006 / xemacs-1 / lib / xemacs-19.13 / lisp / ilisp / comint-ipc.elc < prev    next >
Emacs Compiled Lisp  |  1995-08-30  |  19.3 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.

ConfidenceProgramDetectionMatch TypeSupport
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
55% TrID Emacs/XEmacs byte-compiled Lisp (generic) default
44% TrID Summation Document Image Information Load File default (weak)
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 39 3a 30 35 3a 30 | 38 20 31 39 39 35 0a 3b | 19:05:0|8 1995.;|
|00000050| 3b 3b 20 66 72 6f 6d 20 | 66 69 6c 65 20 2f 65 78 |;; from |file /ex|
|00000060| 70 6f 72 74 2f 77 69 6c | 6c 6f 77 33 2f 78 65 6d |port/wil|low3/xem|
|00000070| 61 63 73 2d 31 39 2e 31 | 33 2d 72 65 6c 65 61 73 |acs-19.1|3-releas|
|00000080| 65 2f 65 64 69 74 6f 72 | 2f 6c 69 73 70 2f 69 6c |e/editor|/lisp/il|
|00000090| 69 73 70 2f 63 6f 6d 69 | 6e 74 2d 69 70 63 2e 65 |isp/comi|nt-ipc.e|
|000000a0| 6c 0a 3b 3b 3b 20 65 6d | 61 63 73 20 76 65 72 73 |l.;;; em|acs vers|
|000000b0| 69 6f 6e 20 31 39 2e 31 | 33 20 58 45 6d 61 63 73 |ion 19.1|3 XEmacs|
|000000c0| 20 4c 75 63 69 64 2e 0a | 3b 3b 3b 20 62 79 74 65 | Lucid..|;;; byte|
|000000d0| 63 6f 6d 70 20 76 65 72 | 73 69 6f 6e 20 32 2e 32 |comp ver|sion 2.2|
|000000e0| 35 3b 20 31 2d 53 65 70 | 2d 39 34 2e 0a 3b 3b 3b |5; 1-Sep|-94..;;;|
|000000f0| 20 6f 70 74 69 6d 69 7a | 61 74 69 6f 6e 20 69 73 | optimiz|ation is|
|00000100| 20 6f 6e 2e 0a 3b 3b 3b | 20 74 68 69 73 20 66 69 | on..;;;| this fi|
|00000110| 6c 65 20 75 73 65 73 20 | 6f 70 63 6f 64 65 73 20 |le uses |opcodes |
|00000120| 77 68 69 63 68 20 64 6f | 20 6e 6f 74 20 65 78 69 |which do| not exi|
|00000130| 73 74 20 69 6e 20 45 6d | 61 63 73 20 31 38 2e 0a |st in Em|acs 18..|
|00000140| 0a 28 69 66 20 28 61 6e | 64 20 28 62 6f 75 6e 64 |.(if (an|d (bound|
|00000150| 70 20 27 65 6d 61 63 73 | 2d 76 65 72 73 69 6f 6e |p 'emacs|-version|
|00000160| 29 0a 09 20 28 6f 72 20 | 28 61 6e 64 20 28 62 6f |).. (or |(and (bo|
|00000170| 75 6e 64 70 20 27 65 70 | 6f 63 68 3a 3a 76 65 72 |undp 'ep|och::ver|
|00000180| 73 69 6f 6e 29 20 65 70 | 6f 63 68 3a 3a 76 65 72 |sion) ep|och::ver|
|00000190| 73 69 6f 6e 29 0a 09 20 | 20 20 20 20 28 73 74 72 |sion).. | (str|
|000001a0| 69 6e 67 2d 6c 65 73 73 | 70 20 65 6d 61 63 73 2d |ing-less|p emacs-|
|000001b0| 76 65 72 73 69 6f 6e 20 | 22 31 39 22 29 29 29 0a |version |"19"))).|
|000001c0| 20 20 20 20 28 65 72 72 | 6f 72 20 22 54 68 69 73 | (err|or "This|
|000001d0| 20 66 69 6c 65 20 77 61 | 73 20 63 6f 6d 70 69 6c | file wa|s compil|
|000001e0| 65 64 20 66 6f 72 20 45 | 6d 61 63 73 20 31 39 2e |ed for E|macs 19.|
|000001f0| 22 29 29 0a 0a 28 64 65 | 66 76 61 72 20 63 6f 6d |"))..(de|fvar com|
|00000200| 69 6e 74 2d 6c 6f 67 20 | 6e 69 6c 20 22 5c 0a 49 |int-log |nil "\.I|
|00000210| 66 20 54 2c 20 74 68 65 | 6e 20 72 65 63 6f 72 64 |f T, the|n record|
|00000220| 20 61 6c 6c 20 70 72 6f | 63 65 73 73 20 69 6e 70 | all pro|cess inp|
|00000230| 75 74 20 61 6e 64 20 6f | 75 74 70 75 74 20 69 6e |ut and o|utput in|
|00000240| 20 61 20 62 75 66 66 65 | 72 20 63 61 6c 6c 65 64 | a buffe|r called|
|00000250| 0a 70 72 6f 63 65 73 73 | 20 6e 61 6d 65 2e 22 29 |.process| name.")|
|00000260| 0a 28 64 65 66 76 61 72 | 20 63 6f 6d 69 6e 74 2d |.(defvar| comint-|
|00000270| 73 65 6e 64 2d 6e 65 77 | 6c 69 6e 65 20 74 20 22 |send-new|line t "|
|00000280| 5c 0a 49 66 20 54 20 74 | 68 65 6e 20 61 64 64 20 |\.If T t|hen add |
|00000290| 61 20 6e 65 77 6c 69 6e | 65 20 74 6f 20 73 74 72 |a newlin|e to str|
|000002a0| 69 6e 67 20 69 6e 20 63 | 6f 6d 69 6e 74 2d 64 65 |ing in c|omint-de|
|000002b0| 66 61 75 6c 74 2d 73 65 | 6e 64 2e 22 29 0a 28 64 |fault-se|nd.").(d|
|000002c0| 65 66 76 61 72 20 63 6f | 6d 69 6e 74 2d 61 6c 77 |efvar co|mint-alw|
|000002d0| 61 79 73 2d 73 63 72 6f | 6c 6c 20 6e 69 6c 20 22 |ays-scro|ll nil "|
|000002e0| 5c 0a 49 66 20 54 20 74 | 68 65 6e 20 70 72 6f 63 |\.If T t|hen proc|
|000002f0| 65 73 73 20 6f 75 74 70 | 75 74 20 77 69 6c 6c 20 |ess outp|ut will |
|00000300| 61 6c 77 61 79 73 20 62 | 65 20 76 69 73 69 62 6c |always b|e visibl|
|00000310| 65 20 69 6e 20 66 69 72 | 73 74 20 77 69 6e 64 6f |e in fir|st windo|
|00000320| 77 20 6f 6e 20 62 75 66 | 66 65 72 2e 22 29 0a 28 |w on buf|fer.").(|
|00000330| 64 65 66 76 61 72 20 63 | 6f 6d 69 6e 74 2d 66 69 |defvar c|omint-fi|
|00000340| 78 2d 65 72 72 6f 72 20 | 6e 69 6c 20 22 5c 0a 53 |x-error |nil "\.S|
|00000350| 74 72 69 6e 67 20 74 6f | 20 73 65 6e 64 20 74 6f |tring to| send to|
|00000360| 20 73 65 6e 64 20 74 6f | 20 74 68 65 20 63 6f 6d | send to| the com|
|00000370| 6d 61 6e 64 20 69 6e 74 | 65 72 70 72 65 74 65 72 |mand int|erpreter|
|00000380| 20 74 6f 20 66 69 78 20 | 65 72 72 6f 72 73 2e 22 | to fix |errors."|
|00000390| 29 0a 28 64 65 66 76 61 | 72 20 63 6f 6d 69 6e 74 |).(defva|r comint|
|000003a0| 2d 63 6f 6e 74 69 6e 75 | 65 20 6e 69 6c 20 22 5c |-continu|e nil "\|
|000003b0| 0a 53 74 72 69 6e 67 20 | 74 6f 20 73 65 6e 64 20 |.String |to send |
|000003c0| 74 6f 20 63 6f 6e 74 69 | 6e 75 65 20 61 6e 20 69 |to conti|nue an i|
|000003d0| 6e 74 65 72 72 75 70 74 | 65 64 20 6a 6f 62 2e 22 |nterrupt|ed job."|
|000003e0| 29 0a 28 64 65 66 76 61 | 72 20 63 6f 6d 69 6e 74 |).(defva|r comint|
|000003f0| 2d 69 6e 74 65 72 72 75 | 70 74 2d 72 65 67 65 78 |-interru|pt-regex|
|00000400| 70 20 6e 69 6c 20 22 5c | 0a 52 65 67 75 6c 61 72 |p nil "\|.Regular|
|00000410| 20 65 78 70 72 65 73 73 | 69 6f 6e 20 66 6f 72 20 | express|ion for |
|00000420| 74 68 65 20 73 74 61 72 | 74 20 6f 66 20 61 6e 20 |the star|t of an |
|00000430| 69 6e 74 65 72 72 75 70 | 74 20 69 6e 20 70 72 6f |interrup|t in pro|
|00000440| 63 65 73 73 20 6f 75 74 | 70 75 74 2e 22 29 0a 28 |cess out|put.").(|
|00000450| 64 65 66 76 61 72 20 63 | 6f 6d 69 6e 74 2d 65 72 |defvar c|omint-er|
|00000460| 72 6f 72 2d 72 65 67 65 | 78 70 20 6e 69 6c 20 22 |ror-rege|xp nil "|
|00000470| 5c 0a 52 65 67 75 6c 61 | 72 20 65 78 70 72 65 73 |\.Regula|r expres|
|00000480| 73 69 6f 6e 20 66 6f 72 | 20 73 65 74 74 69 6e 67 |sion for| setting|
|00000490| 20 63 6f 6d 69 6e 74 2d | 65 72 72 6f 72 70 20 69 | comint-|errorp i|
|000004a0| 66 20 66 6f 75 6e 64 20 | 69 6e 20 70 72 6f 63 65 |f found |in proce|
|000004b0| 73 73 20 6f 75 74 70 75 | 74 2e 22 29 0a 28 64 65 |ss outpu|t.").(de|
|000004c0| 66 76 61 72 20 63 6f 6d | 69 6e 74 2d 6f 75 74 70 |fvar com|int-outp|
|000004d0| 75 74 2d 62 75 66 66 65 | 72 20 22 20 2a 4f 75 74 |ut-buffe|r " *Out|
|000004e0| 70 75 74 2a 22 20 22 5c | 0a 4e 61 6d 65 20 6f 66 |put*" "\|.Name of|
|000004f0| 20 74 68 65 20 6f 75 74 | 70 75 74 20 62 75 66 66 | the out|put buff|
|00000500| 65 72 2e 22 29 0a 28 64 | 65 66 76 61 72 20 63 6f |er.").(d|efvar co|
|00000510| 6d 69 6e 74 2d 65 72 72 | 6f 72 2d 62 75 66 66 65 |mint-err|or-buffe|
|00000520| 72 20 22 20 2a 45 72 72 | 6f 72 20 4f 75 74 70 75 |r " *Err|or Outpu|
|00000530| 74 2a 22 20 22 5c 0a 4e | 61 6d 65 20 6f 66 20 74 |t*" "\.N|ame of t|
|00000540| 68 65 20 65 72 72 6f 72 | 20 6f 75 74 70 75 74 20 |he error| output |
|00000550| 62 75 66 66 65 72 2e 22 | 29 0a 28 64 65 66 76 61 |buffer."|).(defva|
|00000560| 72 20 63 6f 6d 69 6e 74 | 2d 73 68 6f 77 2d 73 74 |r comint|-show-st|
|00000570| 61 74 75 73 20 74 20 22 | 5c 0a 53 65 74 20 74 6f |atus t "|\.Set to|
|00000580| 20 6e 69 6c 20 74 6f 20 | 69 6e 68 69 62 69 74 20 | nil to |inhibit |
|00000590| 73 74 61 74 75 73 20 72 | 65 64 69 73 70 6c 61 79 |status r|edisplay|
|000005a0| 2e 22 29 0a 28 64 65 66 | 76 61 72 20 63 6f 6d 69 |.").(def|var comi|
|000005b0| 6e 74 2d 6f 75 74 70 75 | 74 2d 66 69 6c 74 65 72 |nt-outpu|t-filter|
|000005c0| 20 27 69 64 65 6e 74 69 | 74 79 20 22 5c 0a 47 69 | 'identi|ty "\.Gi|
|000005d0| 76 65 6e 20 74 68 65 20 | 63 6f 6d 70 6c 65 74 65 |ven the |complete|
|000005e0| 20 4f 55 54 50 55 54 20 | 6f 66 20 61 20 73 65 6e | OUTPUT |of a sen|
|000005f0| 64 2c 20 72 65 74 75 72 | 6e 20 74 68 65 20 72 65 |d, retur|n the re|
|00000600| 73 75 6c 74 20 6f 66 20 | 74 68 65 20 73 65 6e 64 |sult of |the send|
|00000610| 2e 22 29 0a 28 64 65 66 | 76 61 72 20 63 6f 6d 69 |.").(def|var comi|
|00000620| 6e 74 2d 69 6e 74 65 72 | 72 75 70 74 2d 73 74 61 |nt-inter|rupt-sta|
|00000630| 72 74 20 27 63 6f 6d 69 | 6e 74 2d 69 6e 74 65 72 |rt 'comi|nt-inter|
|00000640| 72 75 70 74 2d 73 74 61 | 72 74 20 22 5c 0a 52 65 |rupt-sta|rt "\.Re|
|00000650| 74 75 72 6e 20 74 68 65 | 20 73 74 61 72 74 20 69 |turn the| start i|
|00000660| 6e 20 4f 55 54 50 55 54 | 20 6f 66 20 74 68 65 20 |n OUTPUT| of the |
|00000670| 74 65 78 74 20 70 72 69 | 6e 74 65 64 20 62 79 0a |text pri|nted by.|
|00000680| 63 6f 6d 69 6e 74 2d 69 | 6e 74 65 72 72 75 70 74 |comint-i|nterrupt|
|00000690| 2d 73 75 62 6a 6f 62 20 | 69 6e 20 74 68 65 20 69 |-subjob |in the i|
|000006a0| 6e 66 65 72 69 6f 72 20 | 70 72 6f 63 65 73 73 2e |nferior |process.|
|000006b0| 22 29 0a 28 64 65 66 76 | 61 72 20 63 6f 6d 69 6e |").(defv|ar comin|
|000006c0| 74 2d 68 61 6e 64 6c 65 | 72 20 27 63 6f 6d 69 6e |t-handle|r 'comin|
|000006d0| 74 2d 65 72 72 6f 72 2d | 70 6f 70 75 70 20 22 5c |t-error-|popup "\|
|000006e0| 0a 44 65 66 61 75 6c 74 | 20 68 61 6e 64 6c 65 72 |.Default| handler|
|000006f0| 20 66 6f 72 20 73 65 6e | 64 73 2e 20 20 57 68 65 | for sen|ds. Whe|
|00000700| 6e 20 61 20 73 65 6e 64 | 20 63 6f 6d 70 6c 65 74 |n a send| complet|
|00000710| 65 73 2c 20 74 68 65 20 | 68 61 6e 64 6c 65 72 20 |es, the |handler |
|00000720| 69 73 0a 63 61 6c 6c 65 | 64 20 77 69 74 68 20 65 |is.calle|d with e|
|00000730| 72 72 6f 72 2d 70 2c 20 | 77 61 69 74 2d 70 2c 20 |rror-p, |wait-p, |
|00000740| 6d 65 73 73 61 67 65 2c | 20 6f 75 74 70 75 74 20 |message,| output |
|00000750| 61 6e 64 20 70 72 6f 6d | 70 74 2e 22 29 0a 28 64 |and prom|pt.").(d|
|00000760| 65 66 76 61 72 20 63 6f | 6d 69 6e 74 2d 75 70 64 |efvar co|mint-upd|
|00000770| 61 74 65 2d 73 74 61 74 | 75 73 20 27 63 6f 6d 69 |ate-stat|us 'comi|
|00000780| 6e 74 2d 75 70 64 61 74 | 65 2d 73 74 61 74 75 73 |nt-updat|e-status|
|00000790| 20 22 5c 0a 46 75 6e 63 | 74 69 6f 6e 20 74 6f 20 | "\.Func|tion to |
|000007a0| 75 70 64 61 74 65 20 74 | 68 65 20 53 54 41 54 55 |update t|he STATU|
|000007b0| 53 20 6f 66 20 74 68 65 | 20 69 6e 66 65 72 69 6f |S of the| inferio|
|000007c0| 72 20 70 72 6f 63 65 73 | 73 2e 20 20 49 74 20 73 |r proces|s. It s|
|000007d0| 68 6f 75 6c 64 0a 73 65 | 74 20 63 6f 6d 69 6e 74 |hould.se|t comint|
|000007e0| 2d 73 74 61 74 75 73 20 | 74 6f 20 61 20 73 74 61 |-status |to a sta|
|000007f0| 74 75 73 20 73 74 72 69 | 6e 67 20 69 6e 20 61 64 |tus stri|ng in ad|
|00000800| 64 69 74 69 6f 6e 20 74 | 6f 20 77 68 61 74 65 76 |dition t|o whatev|
|00000810| 65 72 20 65 6c 73 65 20 | 69 74 0a 64 6f 65 73 2e |er else |it.does.|
|00000820| 22 29 0a 28 64 65 66 76 | 61 72 20 63 6f 6d 69 6e |").(defv|ar comin|
|00000830| 74 2d 70 72 6f 6d 70 74 | 2d 73 74 61 74 75 73 20 |t-prompt|-status |
|00000840| 27 63 6f 6d 69 6e 74 2d | 70 72 6f 6d 70 74 2d 73 |'comint-|prompt-s|
|00000850| 74 61 74 75 73 20 22 5c | 0a 47 69 76 65 6e 20 74 |tatus "\|.Given t|
|00000860| 68 65 20 70 72 65 76 69 | 6f 75 73 20 70 72 6f 6d |he previ|ous prom|
|00000870| 70 74 20 61 6e 64 20 74 | 68 65 20 6c 61 73 74 20 |pt and t|he last |
|00000880| 6c 69 6e 65 20 6f 75 74 | 70 75 74 2c 20 72 65 74 |line out|put, ret|
|00000890| 75 72 6e 20 27 65 72 72 | 6f 72 0a 69 66 20 61 6e |urn 'err|or.if an|
|000008a0| 20 65 72 72 6f 72 2c 20 | 54 20 69 66 20 61 20 70 | error, |T if a p|
|000008b0| 72 6f 6d 70 74 20 61 6e | 64 20 6e 69 6c 20 6f 74 |rompt an|d nil ot|
|000008c0| 68 65 72 77 69 73 65 2e | 20 20 49 66 20 69 74 20 |herwise.| If it |
|000008d0| 69 73 20 61 20 70 72 6f | 6d 70 74 2c 20 61 6c 73 |is a pro|mpt, als|
|000008e0| 6f 0a 66 75 6e 63 61 6c | 6c 20 63 6f 6d 69 6e 74 |o.funcal|l comint|
|000008f0| 2d 75 70 64 61 74 65 2d | 73 74 61 74 75 73 20 74 |-update-|status t|
|00000900| 6f 20 73 65 74 20 74 68 | 65 20 73 74 61 74 75 73 |o set th|e status|
|00000910| 2e 20 20 49 66 20 6f 6c | 64 20 69 73 20 6e 69 6c |. If ol|d is nil|
|00000920| 2c 20 74 68 65 6e 0a 6a | 75 73 74 20 72 65 74 75 |, then.j|ust retu|
|00000930| 72 6e 20 54 20 69 66 20 | 6c 61 73 74 20 6c 69 6e |rn T if |last lin|
|00000940| 65 20 69 73 20 61 20 70 | 72 6f 6d 70 74 2e 22 29 |e is a p|rompt.")|
|00000950| 0a 28 64 65 66 76 61 72 | 20 63 6f 6d 69 6e 74 2d |.(defvar| comint-|
|00000960| 61 62 6f 72 74 2d 68 6f | 6f 6b 20 6e 69 6c 20 22 |abort-ho|ok nil "|
|00000970| 5c 0a 4c 69 73 74 20 6f | 66 20 68 6f 6f 6b 73 20 |\.List o|f hooks |
|00000980| 74 6f 20 72 75 6e 20 61 | 66 74 65 72 20 73 65 6e |to run a|fter sen|
|00000990| 64 73 20 61 72 65 20 61 | 62 6f 72 74 65 64 2e 22 |ds are a|borted."|
|000009a0| 29 0a 28 64 65 66 76 61 | 72 20 63 6f 6d 69 6e 74 |).(defva|r comint|
|000009b0| 2d 73 65 6e 64 2d 71 75 | 65 75 65 20 6e 69 6c 20 |-send-qu|eue nil |
|000009c0| 22 5c 0a 4c 69 73 74 20 | 6f 66 20 63 75 72 72 65 |"\.List |of curre|
|000009d0| 6e 74 6c 79 20 70 65 6e | 64 69 6e 67 20 49 50 43 |ntly pen|ding IPC|
|000009e0| 20 73 65 6e 64 20 72 65 | 71 75 65 73 74 73 2e 20 | send re|quests. |
|000009f0| 20 54 68 65 20 66 69 72 | 73 74 20 65 6c 65 6d 65 | The fir|st eleme|
|00000a00| 6e 74 20 69 6e 0a 74 68 | 65 20 71 75 65 75 65 20 |nt in.th|e queue |
|00000a10| 69 73 20 77 68 65 72 65 | 20 6f 75 74 70 75 74 20 |is where| output |
|00000a20| 74 6f 20 74 68 65 20 70 | 72 6f 63 65 73 73 20 77 |to the p|rocess w|
|00000a30| 69 6c 6c 20 62 65 20 73 | 74 6f 72 65 64 2e 0a 41 |ill be s|tored..A|
|00000a40| 20 73 65 6e 64 20 72 65 | 63 6f 72 64 20 69 73 20 | send re|cord is |
|00000a50| 61 20 6c 69 73 74 20 6f | 66 3a 20 0a 0a 73 74 72 |a list o|f: ..str|
|00000a60| 69 6e 67 20 2d 2d 20 54 | 68 65 20 73 74 72 69 6e |ing -- T|he strin|
|00000a70| 67 20 73 65 6e 74 20 74 | 6f 20 74 68 65 20 70 72 |g sent t|o the pr|
|00000a80| 6f 63 65 73 73 2e 0a 0a | 6e 6f 2d 69 6e 73 65 72 |ocess...|no-inser|
|00000a90| 74 20 2d 2d 20 6e 69 6c | 20 74 6f 20 69 6e 73 65 |t -- nil| to inse|
|00000aa0| 72 74 20 6f 75 74 70 75 | 74 20 69 6e 74 6f 20 74 |rt outpu|t into t|
|00000ab0| 68 65 20 70 72 6f 63 65 | 73 73 20 62 75 66 66 65 |he proce|ss buffe|
|00000ac0| 72 2e 20 20 49 66 20 74 | 68 69 73 20 69 73 0a 62 |r. If t|his is.b|
|00000ad0| 65 69 6e 67 20 64 6f 6e | 65 2c 20 74 68 65 20 72 |eing don|e, the r|
|00000ae0| 65 73 75 6c 74 73 20 77 | 69 6c 6c 20 6f 6e 6c 79 |esults w|ill only|
|00000af0| 20 63 6f 6e 74 61 69 6e | 20 74 68 65 20 76 65 72 | contain| the ver|
|00000b00| 79 20 6c 61 73 74 20 6c | 69 6e 65 2e 0a 0a 77 61 |y last l|ine...wa|
|00000b10| 69 74 2d 70 20 2d 2d 20 | 6e 69 6c 20 69 66 20 6e |it-p -- |nil if n|
|00000b20| 6f 74 20 77 61 69 74 69 | 6e 67 2c 20 6e 6f 6e 2d |ot waiti|ng, non-|
|00000b30| 6e 69 6c 20 69 66 20 77 | 61 69 74 69 6e 67 2e 20 |nil if w|aiting. |
|00000b40| 20 49 66 20 69 74 20 69 | 73 20 61 20 73 74 72 69 | If it i|s a stri|
|00000b50| 6e 67 2c 0a 72 65 73 75 | 6c 74 73 20 61 72 65 20 |ng,.resu|lts are |
|00000b60| 69 6e 73 65 72 74 65 64 | 20 69 6e 20 74 68 65 20 |inserted| in the |
|00000b70| 62 75 66 66 65 72 20 75 | 6e 74 69 6c 20 61 20 72 |buffer u|ntil a r|
|00000b80| 65 73 75 6c 74 20 6d 61 | 74 63 68 65 73 20 74 68 |esult ma|tches th|
|00000b90| 65 20 73 74 72 69 6e 67 | 0a 61 73 20 61 20 72 65 |e string|.as a re|
|00000ba0| 67 65 78 70 2e 0a 0a 73 | 74 61 74 75 73 20 2d 2d |gexp...s|tatus --|
|00000bb0| 20 41 20 73 79 6d 62 6f | 6c 20 66 6f 72 20 74 68 | A symbo|l for th|
|00000bc0| 65 20 70 72 6f 63 65 73 | 73 20 73 74 61 74 75 73 |e proces|s status|
|00000bd0| 20 77 68 69 6c 65 20 74 | 68 65 20 73 65 6e 64 20 | while t|he send |
|00000be0| 69 73 20 72 75 6e 6e 69 | 6e 67 2e 0a 0a 6d 65 73 |is runni|ng...mes|
|00000bf0| 73 61 67 65 20 2d 2d 20 | 41 20 6d 65 73 73 61 67 |sage -- |A messag|
|00000c00| 65 20 74 6f 20 62 65 20 | 64 69 73 70 6c 61 79 65 |e to be |displaye|
|00000c10| 64 20 77 68 65 6e 20 61 | 6e 20 61 73 79 6e 63 68 |d when a|n asynch|
|00000c20| 72 6f 6e 6f 75 73 20 73 | 65 6e 64 20 69 73 0a 70 |ronous s|end is.p|
|00000c30| 6f 70 70 65 64 20 75 70 | 20 62 79 20 74 68 65 20 |opped up| by the |
|00000c40| 68 61 6e 64 6c 65 72 2e | 0a 0a 68 61 6e 64 6c 65 |handler.|..handle|
|00000c50| 72 20 2d 2d 20 41 20 66 | 75 6e 63 74 69 6f 6e 20 |r -- A f|unction |
|00000c60| 74 68 61 74 20 67 69 76 | 65 6e 20 65 72 72 6f 72 |that giv|en error|
|00000c70| 2d 70 2c 20 77 61 69 74 | 2d 70 2c 20 6d 65 73 73 |-p, wait|-p, mess|
|00000c80| 61 67 65 2c 20 6f 75 74 | 70 75 74 20 61 6e 64 0a |age, out|put and.|
|00000c90| 70 72 6f 6d 70 74 20 64 | 65 63 69 64 65 73 20 69 |prompt d|ecides i|
|00000ca0| 66 20 74 68 65 20 75 73 | 65 72 20 73 68 6f 75 6c |f the us|er shoul|
|00000cb0| 64 20 62 65 20 6e 6f 74 | 69 66 69 65 64 2e 20 20 |d be not|ified. |
|00000cc0| 49 66 20 69 74 20 69 73 | 20 6e 69 6c 20 6f 72 0a |If it is| nil or.|
|00000cd0| 72 65 74 75 72 6e 73 20 | 6e 69 6c 2c 20 74 68 65 |returns |nil, the|
|00000ce0| 6e 20 6e 6f 20 65 72 72 | 6f 72 20 70 72 6f 63 65 |n no err|or proce|
|00000cf0| 73 73 69 6e 67 20 77 69 | 6c 6c 20 62 65 20 64 6f |ssing wi|ll be do|
|00000d00| 6e 65 2e 0a 0a 72 75 6e | 6e 69 6e 67 20 2d 2d 20 |ne...run|ning -- |
|00000d10| 6e 69 6c 20 69 66 20 61 | 20 73 65 6e 64 20 69 73 |nil if a| send is|
|00000d20| 20 77 61 69 74 69 6e 67 | 2c 20 54 20 69 66 20 69 | waiting|, T if i|
|00000d30| 74 20 69 73 20 72 75 6e | 6e 69 6e 67 2c 20 61 6e |t is run|ning, an|
|00000d40| 6f 74 68 65 72 20 73 65 | 6e 64 0a 69 66 20 69 6e |other se|nd.if in|
|00000d50| 74 65 72 72 75 70 74 69 | 6e 67 20 61 6e 64 20 61 |terrupti|ng and a|
|00000d60| 20 73 74 72 69 6e 67 20 | 77 69 74 68 20 70 65 6e | string |with pen|
|00000d70| 64 69 6e 67 20 6f 75 74 | 70 75 74 20 69 66 20 74 |ding out|put if t|
|00000d80| 68 65 20 73 65 6e 64 20 | 77 61 73 0a 69 6e 74 65 |he send |was.inte|
|00000d90| 72 72 75 70 74 65 64 2e | 0a 0a 6f 6c 64 2d 70 72 |rrupted.|..old-pr|
|00000da0| 6f 6d 70 74 20 2d 2d 20 | 54 68 65 20 70 72 6f 6d |ompt -- |The prom|
|00000db0| 70 74 20 62 65 66 6f 72 | 65 20 74 68 65 20 73 65 |pt befor|e the se|
|00000dc0| 6e 64 20 77 61 73 20 73 | 65 6e 74 2e 20 20 49 66 |nd was s|ent. If|
|00000dd0| 20 69 74 20 69 73 20 6e | 69 6c 2c 20 74 68 65 6e | it is n|il, then|
|00000de0| 0a 65 72 72 6f 72 73 20 | 77 69 6c 6c 20 6e 6f 74 |.errors |will not|
|00000df0| 20 62 65 20 64 65 74 65 | 63 74 65 64 2e 0a 0a 6c | be dete|cted...l|
|00000e00| 69 6e 65 20 2d 2d 20 54 | 68 65 20 73 74 61 72 74 |ine -- T|he start|
|00000e10| 20 6f 66 20 74 68 65 20 | 6c 61 73 74 20 6c 69 6e | of the |last lin|
|00000e20| 65 20 69 6e 20 74 68 65 | 20 72 65 73 75 6c 74 73 |e in the| results|
|00000e30| 2e 0a 0a 72 65 73 75 6c | 74 20 2d 2d 20 43 6f 6e |...resul|t -- Con|
|00000e40| 73 20 6f 66 20 74 68 65 | 20 6f 75 74 70 75 74 20 |s of the| output |
|00000e50| 61 6e 64 20 74 68 65 20 | 70 72 6f 6d 70 74 20 61 |and the |prompt a|
|00000e60| 66 74 65 72 20 74 68 65 | 20 73 65 6e 64 2e 22 29 |fter the| send.")|
|00000e70| 0a 28 64 65 66 76 61 72 | 20 63 6f 6d 69 6e 74 2d |.(defvar| comint-|
|00000e80| 65 6e 64 2d 71 75 65 75 | 65 20 6e 69 6c 20 22 5c |end-queu|e nil "\|
|00000e90| 0a 50 6f 69 6e 74 65 72 | 20 74 6f 20 74 68 65 20 |.Pointer| to the |
|00000ea0| 65 6e 64 20 6f 66 20 63 | 6f 6d 69 6e 74 2d 73 65 |end of c|omint-se|
|00000eb0| 6e 64 2d 71 75 65 75 65 | 2e 22 29 0a 28 64 65 66 |nd-queue|.").(def|
|00000ec0| 76 61 72 20 63 6f 6d 69 | 6e 74 2d 71 75 65 75 65 |var comi|nt-queue|
|00000ed0| 2d 65 6d 70 74 69 65 64 | 20 74 20 22 5c 0a 53 65 |-emptied| t "\.Se|
|00000ee0| 74 20 74 6f 20 54 20 65 | 61 63 68 20 74 69 6d 65 |t to T e|ach time|
|00000ef0| 20 73 65 6e 64 20 71 75 | 65 75 65 20 65 6d 70 74 | send qu|eue empt|
|00000f00| 69 65 73 2e 22 29 0a 28 | 64 65 66 76 61 72 20 63 |ies.").(|defvar c|
|00000f10| 6f 6d 69 6e 74 2d 6f 75 | 74 70 75 74 20 6e 69 6c |omint-ou|tput nil|
|00000f20| 20 22 5c 0a 53 65 74 20 | 74 6f 20 74 68 65 20 6f | "\.Set |to the o|
|00000f30| 75 74 70 75 74 20 6f 66 | 20 74 68 65 20 6c 61 73 |utput of| the las|
|00000f40| 74 20 73 65 6e 64 2e 20 | 20 54 68 69 73 20 69 73 |t send. | This is|
|00000f50| 20 75 73 65 66 75 6c 20 | 77 68 65 6e 20 69 6c 69 | useful |when ili|
|00000f60| 73 70 20 63 6f 64 65 0a | 69 73 20 70 75 74 20 69 |sp code.|is put i|
|00000f70| 6e 20 74 68 65 20 73 65 | 6e 64 20 73 74 72 65 61 |n the se|nd strea|
|00000f80| 6d 2e 22 29 0a 28 64 65 | 66 76 61 72 20 63 6f 6d |m.").(de|fvar com|
|00000f90| 69 6e 74 2d 65 72 72 6f | 72 70 20 6e 69 6c 20 22 |int-erro|rp nil "|
|00000fa0| 5c 0a 53 65 74 20 74 6f | 20 54 20 69 66 20 74 68 |\.Set to| T if th|
|00000fb0| 65 20 6c 61 73 74 20 73 | 65 6e 64 20 77 61 73 20 |e last s|end was |
|00000fc0| 61 6e 20 65 72 72 6f 72 | 2e 22 29 0a 28 64 65 66 |an error|.").(def|
|00000fd0| 76 61 72 20 63 6f 6d 69 | 6e 74 2d 73 74 61 74 75 |var comi|nt-statu|
|00000fe0| 73 20 22 20 3a 72 75 6e | 22 20 22 5c 0a 54 68 65 |s " :run|" "\.The|
|00000ff0| 20 63 75 72 72 65 6e 74 | 20 63 6f 6d 69 6e 74 20 | current| comint |
|00001000| 73 74 61 74 75 73 2e 22 | 29 0a 28 64 65 66 76 61 |status."|).(defva|
|00001010| 72 20 63 6f 6d 69 6e 74 | 2d 6f 72 69 67 69 6e 61 |r comint|-origina|
|00001020| 6c 2d 62 75 66 66 65 72 | 20 6e 69 6c 20 22 5c 0a |l-buffer| nil "\.|
|00001030| 54 68 65 20 6f 72 69 67 | 69 6e 61 6c 20 62 75 66 |The orig|inal buf|
|00001040| 66 65 72 20 77 68 65 6e | 20 74 68 65 72 65 20 77 |fer when| there w|
|00001050| 61 73 20 6f 75 74 70 75 | 74 20 74 6f 20 61 20 63 |as outpu|t to a c|
|00001060| 6f 6d 69 6e 74 20 62 75 | 66 66 65 72 2e 22 29 0a |omint bu|ffer.").|
|00001070| 28 64 65 66 76 61 72 20 | 63 6f 6d 69 6e 74 2d 6c |(defvar |comint-l|
|00001080| 61 73 74 2d 73 65 6e 64 | 20 6e 69 6c 20 22 5c 0a |ast-send| nil "\.|
|00001090| 4c 61 73 74 20 73 65 6e | 64 20 74 68 61 74 20 77 |Last sen|d that w|
|000010a0| 61 73 20 70 75 74 20 69 | 6e 20 71 75 65 75 65 2e |as put i|n queue.|
|000010b0| 22 29 0a 28 64 65 66 76 | 61 72 20 63 6f 6d 69 6e |").(defv|ar comin|
|000010c0| 74 2d 61 62 6f 72 74 69 | 6e 67 20 6e 69 6c 20 22 |t-aborti|ng nil "|
|000010d0| 5c 0a 53 65 74 20 74 6f | 20 54 20 69 66 20 77 65 |\.Set to| T if we|
|000010e0| 20 61 72 65 20 61 62 6f | 72 74 69 6e 67 20 63 6f | are abo|rting co|
|000010f0| 6d 6d 61 6e 64 73 2e 22 | 29 0a 28 66 73 65 74 20 |mmands."|).(fset |
|00001100| 27 63 6f 6d 69 6e 74 2d | 72 65 6d 6f 76 65 2d 77 |'comint-|remove-w|
|00001110| 68 69 74 65 73 70 61 63 | 65 20 23 5b 28 73 74 72 |hitespac|e #[(str|
|00001120| 69 6e 67 29 20 22 08 ad | 9f c1 c2 08 5c 22 ab 84 |ing) "..|....\"..|
|00001130| c3 94 aa 81 c3 89 1c 1d | c1 c6 08 0d 23 ab 85 c3 |........|....#...|
|00001140| 95 15 aa 74 08 0c 0d 4f | 2a 87 22 20 5b 73 74 72 |...t...O|*." [str|
|00001150| 69 6e 67 20 73 74 72 69 | 6e 67 2d 6d 61 74 63 68 |ing stri|ng-match|
|00001160| 20 22 5b 5e 20 09 5c 6e | 5d 22 20 30 20 73 74 61 | "[^ .\n|]" 0 sta|
|00001170| 72 74 20 65 6e 64 20 22 | 5b 20 09 5c 6e 5d 2a 5b |rt end "|[ .\n]*[|
|00001180| 5e 20 09 5c 6e 5d 2b 22 | 5d 20 35 20 22 5c 0a 52 |^ .\n]+"|] 5 "\.R|
|00001190| 65 6d 6f 76 65 20 6c 65 | 61 64 69 6e 67 20 61 6e |emove le|ading an|
|000011a0| 64 20 74 72 61 69 6c 69 | 6e 67 20 77 68 69 74 65 |d traili|ng white|
|000011b0| 73 70 61 63 65 20 69 6e | 20 53 54 52 49 4e 47 2e |space in| STRING.|
|000011c0| 22 5d 29 0a 28 66 73 65 | 74 20 27 63 6f 6d 69 6e |"]).(fse|t 'comin|
|000011d0| 74 2d 6c 6f 67 20 23 5b | 28 70 72 6f 63 65 73 73 |t-log #[|(process|
|000011e0| 20 73 74 72 69 6e 67 20 | 26 6f 70 74 69 6f 6e 61 | string |&optiona|
|000011f0| 6c 20 6f 75 74 70 75 74 | 29 20 22 08 ad 9d 8a c1 |l output|) ".....|
|00001200| c2 0b 21 21 71 88 64 62 | 88 0c ab 8b c5 63 88 0e |..!!q.db|.....c..|
|00001210| 06 63 88 c7 63 aa 83 0e | 06 63 29 87 22 20 5b 63 |.c..c...|.c)." [c|
|00001220| 6f 6d 69 6e 74 2d 6c 6f | 67 20 67 65 74 2d 62 75 |omint-lo|g get-bu|
|00001230| 66 66 65 72 2d 63 72 65 | 61 74 65 20 70 72 6f 63 |ffer-cre|ate proc|
|00001240| 65 73 73 2d 6e 61 6d 65 | 20 70 72 6f 63 65 73 73 |ess-name| process|
|00001250| 20 6f 75 74 70 75 74 20 | 22 7b 22 20 73 74 72 69 | output |"{" stri|
|00001260| 6e 67 20 22 7d 22 5d 20 | 33 20 22 5c 0a 4c 6f 67 |ng "}"] |3 "\.Log|
|00001270| 20 74 6f 20 50 52 4f 43 | 45 53 53 2c 20 53 54 52 | to PROC|ESS, STR|
|00001280| 49 4e 47 20 6d 61 72 6b | 69 6e 67 20 61 73 20 6f |ING mark|ing as o|
|00001290| 70 74 69 6f 6e 61 6c 20 | 4f 55 54 50 55 54 2e 22 |ptional |OUTPUT."|
|000012a0| 5d 29 0a 28 66 73 65 74 | 20 27 63 6f 6d 69 6e 74 |]).(fset| 'comint|
|000012b0| 2d 73 65 6e 64 2d 73 74 | 72 69 6e 67 20 23 5b 28 |-send-st|ring #[(|
|000012c0| 70 72 6f 63 20 73 74 72 | 29 20 22 c0 09 5c 6e 5c |proc str|) "..\n\|
|000012d0| 22 88 5c 6e 47 89 1b 0c | 5e 1d c6 09 5c 6e c7 0d |".\nG...|^...\n..|
|000012e0| 4f 5c 22 88 0d 0b 57 ad | 99 0d 0c 5c 5c 1e 08 c9 |O\"...W.|...\\...|
|000012f0| 20 88 c6 09 5c 6e 0d 0b | 0e 08 5e 4f 5c 22 88 0e | ...\n..|..^O\"..|
|00001300| 08 15 29 aa 62 2a 87 22 | 20 5b 63 6f 6d 69 6e 74 |..).b*."| [comint|
|00001310| 2d 6c 6f 67 20 70 72 6f | 63 20 73 74 72 20 6c 65 |-log pro|c str le|
|00001320| 6e 20 63 6f 6d 69 6e 74 | 2d 69 6e 70 75 74 2d 63 |n comint|-input-c|
|00001330| 68 75 6e 6b 2d 73 69 7a | 65 20 69 20 70 72 6f 63 |hunk-siz|e i proc|
|00001340| 65 73 73 2d 73 65 6e 64 | 2d 73 74 72 69 6e 67 20 |ess-send|-string |
|00001350| 30 20 6e 65 78 74 2d 69 | 20 61 63 63 65 70 74 2d |0 next-i| accept-|
|00001360| 70 72 6f 63 65 73 73 2d | 6f 75 74 70 75 74 5d 20 |process-|output] |
|00001370| 37 20 22 5c 0a 53 65 6e | 64 20 50 52 4f 43 45 53 |7 "\.Sen|d PROCES|
|00001380| 53 20 74 68 65 20 63 6f | 6e 74 65 6e 74 73 20 6f |S the co|ntents o|
|00001390| 66 20 53 54 52 49 4e 47 | 20 61 73 20 69 6e 70 75 |f STRING| as inpu|
|000013a0| 74 2e 0a 54 68 69 73 20 | 69 73 20 65 71 75 69 76 |t..This |is equiv|
|000013b0| 61 6c 65 6e 74 20 74 6f | 20 70 72 6f 63 65 73 73 |alent to| process|
|000013c0| 2d 73 65 6e 64 2d 73 74 | 72 69 6e 67 2c 20 65 78 |-send-st|ring, ex|
|000013d0| 63 65 70 74 20 74 68 61 | 74 20 6c 6f 6e 67 20 69 |cept tha|t long i|
|000013e0| 6e 70 75 74 20 73 74 72 | 69 6e 67 73 0a 61 72 65 |nput str|ings.are|
|000013f0| 20 62 72 6f 6b 65 6e 20 | 75 70 20 69 6e 74 6f 20 | broken |up into |
|00001400| 63 68 75 6e 6b 73 20 6f | 66 20 73 69 7a 65 20 63 |chunks o|f size c|
|00001410| 6f 6d 69 6e 74 2d 69 6e | 70 75 74 2d 63 68 75 6e |omint-in|put-chun|
|00001420| 6b 2d 73 69 7a 65 2e 20 | 50 72 6f 63 65 73 73 65 |k-size. |Processe|
|00001430| 73 0a 61 72 65 20 67 69 | 76 65 6e 20 61 20 63 68 |s.are gi|ven a ch|
|00001440| 61 6e 63 65 20 74 6f 20 | 6f 75 74 70 75 74 20 62 |ance to |output b|
|00001450| 65 74 77 65 65 6e 20 63 | 68 75 6e 6b 73 2e 20 54 |etween c|hunks. T|
|00001460| 68 69 73 20 63 61 6e 20 | 68 65 6c 70 20 70 72 65 |his can |help pre|
|00001470| 76 65 6e 74 20 70 72 6f | 63 65 73 73 65 73 0a 66 |vent pro|cesses.f|
|00001480| 72 6f 6d 20 68 61 6e 67 | 69 6e 67 20 77 68 65 6e |rom hang|ing when|
|00001490| 20 79 6f 75 20 73 65 6e | 64 20 74 68 65 6d 20 6c | you sen|d them l|
|000014a0| 6f 6e 67 20 69 6e 70 75 | 74 73 20 6f 6e 20 73 6f |ong inpu|ts on so|
|000014b0| 6d 65 20 4f 53 27 73 2e | 22 5d 29 0a 28 66 73 65 |me OS's.|"]).(fse|
|000014c0| 74 20 27 63 6f 6d 69 6e | 74 2d 73 65 6e 64 65 72 |t 'comin|t-sender|
|000014d0| 20 23 5b 28 70 72 6f 63 | 65 73 73 20 73 74 72 69 | #[(proc|ess stri|
|000014e0| 6e 67 29 20 22 c0 09 5c | 6e 5c 22 88 0b ad 89 c4 |ng) "..\|n\".....|
|000014f0| 09 c5 5c 22 88 c6 09 c5 | 5c 22 87 22 20 5b 63 6f |..\"....|\"." [co|
|00001500| 6d 69 6e 74 2d 73 65 6e | 64 2d 73 74 72 69 6e 67 |mint-sen|d-string|
|00001510| 20 70 72 6f 63 65 73 73 | 20 73 74 72 69 6e 67 20 | process| string |
|00001520| 63 6f 6d 69 6e 74 2d 73 | 65 6e 64 2d 6e 65 77 6c |comint-s|end-newl|
|00001530| 69 6e 65 20 63 6f 6d 69 | 6e 74 2d 6c 6f 67 20 22 |ine comi|nt-log "|
|00001540| 5c 6e 22 20 70 72 6f 63 | 65 73 73 2d 73 65 6e 64 |\n" proc|ess-send|
|00001550| 2d 73 74 72 69 6e 67 5d | 20 33 20 22 5c 0a 53 65 |-string]| 3 "\.Se|
|00001560| 6e 64 20 74 6f 20 50 52 | 4f 43 45 53 53 20 53 54 |nd to PR|OCESS ST|
|00001570| 52 49 4e 47 20 77 69 74 | 68 20 6e 65 77 6c 69 6e |RING wit|h newlin|
|00001580| 65 20 69 66 20 63 6f 6d | 69 6e 74 2d 73 65 6e 64 |e if com|int-send|
|00001590| 2d 6e 65 77 6c 69 6e 65 | 2e 22 5d 29 0a 28 66 73 |-newline|."]).(fs|
|000015a0| 65 74 20 27 63 6f 6d 69 | 6e 74 2d 69 6e 74 65 72 |et 'comi|nt-inter|
|000015b0| 72 75 70 74 2d 73 75 62 | 6a 6f 62 20 23 5b 6e 69 |rupt-sub|job #[ni|
|000015c0| 6c 20 22 c0 c1 70 21 c2 | 5c 22 88 c3 c4 0d 5c 22 |l "..p!.|\"....\"|
|000015d0| 87 22 20 5b 63 6f 6d 69 | 6e 74 2d 6c 6f 67 20 67 |." [comi|nt-log g|
|000015e0| 65 74 2d 62 75 66 66 65 | 72 2d 70 72 6f 63 65 73 |et-buffe|r-proces|
|000015f0| 73 20 22 03 22 20 69 6e | 74 65 72 72 75 70 74 2d |s "." in|terrupt-|
|00001600| 70 72 6f 63 65 73 73 20 | 6e 69 6c 20 63 6f 6d 69 |process |nil comi|
|00001610| 6e 74 2d 70 74 79 70 5d | 20 33 20 22 5c 0a 49 6e |nt-ptyp]| 3 "\.In|
|00001620| 74 65 72 72 75 70 74 20 | 74 68 65 20 63 75 72 72 |terrupt |the curr|
|00001630| 65 6e 74 20 73 75 62 6a | 6f 62 2e 22 20 6e 69 6c |ent subj|ob." nil|
|00001640| 5d 29 0a 28 66 73 65 74 | 20 27 63 6f 6d 69 6e 74 |]).(fset| 'comint|
|00001650| 2d 73 65 6e 64 2d 76 61 | 72 69 61 62 6c 65 73 20 |-send-va|riables |
|00001660| 23 5b 28 73 65 6e 64 29 | 20 22 08 41 41 41 41 41 |#[(send)| ".AAAAA|
|00001670| 41 87 22 20 5b 73 65 6e | 64 5d 20 31 20 22 5c 0a |A." [sen|d] 1 "\.|
|00001680| 52 65 74 75 72 6e 20 61 | 20 70 6f 69 6e 74 65 72 |Return a| pointer|
|00001690| 20 74 6f 20 74 68 65 20 | 73 74 61 72 74 20 6f 66 | to the |start of|
|000016a0| 20 74 68 65 20 76 61 72 | 69 61 62 6c 65 73 20 66 | the var|iables f|
|000016b0| 6f 72 20 53 45 4e 44 2e | 20 20 49 74 0a 72 65 74 |or SEND.| It.ret|
|000016c0| 75 72 6e 73 20 28 72 75 | 6e 6e 69 6e 67 20 6f 6c |urns (ru|nning ol|
|000016d0| 64 2d 70 72 6f 6d 70 74 | 20 6c 69 6e 65 20 28 6f |d-prompt| line (o|
|000016e0| 75 74 70 75 74 20 2e 20 | 70 72 6f 6d 70 74 29 29 |utput . |prompt))|
|000016f0| 2e 22 5d 29 0a 28 66 73 | 65 74 20 27 63 6f 6d 69 |."]).(fs|et 'comi|
|00001700| 6e 74 2d 73 65 6e 64 2d | 72 65 73 75 6c 74 73 20 |nt-send-|results |
|00001710| 23 5b 28 73 65 6e 64 29 | 20 22 c0 09 21 41 41 41 |#[(send)| "..!AAA|
|00001720| 40 87 22 20 5b 63 6f 6d | 69 6e 74 2d 73 65 6e 64 |@." [com|int-send|
|00001730| 2d 76 61 72 69 61 62 6c | 65 73 20 73 65 6e 64 5d |-variabl|es send]|
|00001740| 20 32 20 22 5c 0a 52 65 | 74 75 72 6e 20 74 68 65 | 2 "\.Re|turn the|
|00001750| 20 72 65 73 75 6c 74 73 | 20 6f 66 20 53 45 4e 44 | results| of SEND|
|00001760| 20 77 68 69 63 68 20 61 | 72 65 20 28 6f 75 74 70 | which a|re (outp|
|00001770| 75 74 20 2e 20 70 72 6f | 6d 70 74 29 2e 20 20 49 |ut . pro|mpt). I|
|00001780| 66 20 74 68 65 72 65 20 | 69 73 0a 61 6e 20 65 72 |f there |is.an er|
|00001790| 72 6f 72 2c 20 74 68 65 | 20 70 72 6f 6d 70 74 20 |ror, the| prompt |
|000017a0| 77 69 6c 6c 20 62 65 20 | 61 20 6c 69 73 74 2e 22 |will be |a list."|
|000017b0| 5d 29 0a 28 66 73 65 74 | 20 27 63 6f 6d 69 6e 74 |]).(fset| 'comint|
|000017c0| 2d 73 65 6e 64 2d 64 65 | 73 63 72 69 70 74 69 6f |-send-de|scriptio|
|000017d0| 6e 20 23 5b 28 73 65 6e | 64 29 20 22 08 41 41 41 |n #[(sen|d) ".AAA|
|000017e0| 89 19 41 40 ae 91 08 40 | 3b ab 84 08 40 ae 88 09 |..A@...@|;...@...|
|000017f0| 40 ad 84 c2 09 40 21 29 | 87 22 20 5b 73 65 6e 64 |@....@!)|." [send|
|00001800| 20 73 74 61 74 75 73 20 | 73 79 6d 62 6f 6c 2d 6e | status |symbol-n|
|00001810| 61 6d 65 5d 20 33 20 22 | 5c 0a 52 65 74 75 72 6e |ame] 3 "|\.Return|
|00001820| 20 61 20 64 65 73 63 72 | 69 70 74 69 6f 6e 20 6f | a descr|iption o|
|00001830| 66 20 53 45 4e 44 2e 22 | 5d 29 0a 28 66 73 65 74 |f SEND."|]).(fset|
|00001840| 20 27 63 6f 6d 69 6e 74 | 2d 69 6e 74 65 72 72 75 | 'comint|-interru|
|00001850| 70 74 65 64 20 23 5b 6e | 69 6c 20 22 08 c1 1a 1b |pted #[n|il "....|
|00001860| 0b ab 95 5c 6e ac 92 c4 | 0b 40 21 40 3b ab 84 c5 |...\n...|.@!@;...|
|00001870| 12 aa 6e 0b 41 89 13 ac | 6b 5c 6e 2a 87 22 20 5b |..n.A...|k\n*." [|
|00001880| 63 6f 6d 69 6e 74 2d 73 | 65 6e 64 2d 71 75 65 75 |comint-s|end-queu|
|00001890| 65 20 6e 69 6c 20 64 6f | 6e 65 20 73 65 6e 64 20 |e nil do|ne send |
|000018a0| 63 6f 6d 69 6e 74 2d 73 | 65 6e 64 2d 76 61 72 69 |comint-s|end-vari|
|000018b0| 61 62 6c 65 73 20 74 5d | 20 33 20 22 5c 0a 52 65 |ables t]| 3 "\.Re|
|000018c0| 74 75 72 6e 20 54 20 69 | 66 20 74 68 65 72 65 20 |turn T i|f there |
|000018d0| 69 73 20 61 6e 20 69 6e | 74 65 72 72 75 70 74 65 |is an in|terrupte|
|000018e0| 64 20 73 65 6e 64 2e 22 | 5d 29 0a 28 66 73 65 74 |d send."|]).(fset|
|000018f0| 20 27 63 6f 6d 69 6e 74 | 2d 70 72 6f 63 65 73 73 | 'comint|-process|
|00001900| 2d 73 65 6e 74 69 6e 65 | 6c 20 23 5b 28 70 72 6f |-sentine|l #[(pro|
|00001910| 63 65 73 73 20 73 74 61 | 74 75 73 29 20 22 c0 09 |cess sta|tus) "..|
|00001920| 21 12 8a c3 c4 09 21 21 | ab 85 c4 09 21 71 88 0d |!.....!!|....!q..|
|00001930| 5c 6e 21 29 87 22 20 5b | 70 72 6f 63 65 73 73 2d |\n!)." [|process-|
|00001940| 73 74 61 74 75 73 20 70 | 72 6f 63 65 73 73 20 73 |status p|rocess s|
|00001950| 74 61 74 75 73 20 62 75 | 66 66 65 72 2d 6e 61 6d |tatus bu|ffer-nam|
|00001960| 65 20 70 72 6f 63 65 73 | 73 2d 62 75 66 66 65 72 |e proces|s-buffer|
|00001970| 20 63 6f 6d 69 6e 74 2d | 75 70 64 61 74 65 2d 73 | comint-|update-s|
|00001980| 74 61 74 75 73 5d 20 33 | 20 22 5c 0a 55 70 64 61 |tatus] 3| "\.Upda|
|00001990| 74 65 20 50 52 4f 43 45 | 53 53 20 53 54 41 54 55 |te PROCE|SS STATU|
|000019a0| 53 20 62 79 20 66 75 6e | 63 61 6c 6c 69 6e 67 20 |S by fun|calling |
|000019b0| 63 6f 6d 69 6e 74 2d 75 | 70 64 61 74 65 2d 73 74 |comint-u|pdate-st|
|000019c0| 61 74 75 73 2e 22 5d 29 | 0a 28 66 73 65 74 20 27 |atus."])|.(fset '|
|000019d0| 63 6f 6d 69 6e 74 2d 69 | 6e 74 65 72 72 75 70 74 |comint-i|nterrupt|
|000019e0| 2d 73 74 61 72 74 20 23 | 5b 28 6f 75 74 70 75 74 |-start #|[(output|
|000019f0| 29 20 22 08 ad 88 c1 08 | 5c 6e 5c 22 ad 82 c3 94 |) ".....|\n\"....|
|00001a00| 87 22 20 5b 63 6f 6d 69 | 6e 74 2d 69 6e 74 65 72 |." [comi|nt-inter|
|00001a10| 72 75 70 74 2d 72 65 67 | 65 78 70 20 73 74 72 69 |rupt-reg|exp stri|
|00001a20| 6e 67 2d 6d 61 74 63 68 | 20 6f 75 74 70 75 74 20 |ng-match| output |
|00001a30| 30 5d 20 33 20 22 5c 0a | 52 65 74 75 72 6e 20 74 |0] 3 "\.|Return t|
|00001a40| 68 65 20 73 74 61 72 74 | 20 6f 66 20 63 6f 6d 69 |he start| of comi|
|00001a50| 6e 74 2d 69 6e 74 65 72 | 72 75 70 74 2d 72 65 67 |nt-inter|rupt-reg|
|00001a60| 65 78 70 20 69 6e 20 4f | 55 54 50 55 54 2e 22 5d |exp in O|UTPUT."]|
|00001a70| 29 0a 28 66 73 65 74 20 | 27 63 6f 6d 69 6e 74 2d |).(fset |'comint-|
|00001a80| 75 70 64 61 74 65 2d 73 | 74 61 74 75 73 20 23 5b |update-s|tatus #[|
|00001a90| 28 73 74 61 74 75 73 29 | 20 22 c0 c1 5c 6e 5c 22 |(status)| "..\n\"|
|00001aa0| 13 0c ad 89 8a c5 20 71 | 88 29 c6 c7 21 87 22 20 |...... q|.)..!." |
|00001ab0| 5b 66 6f 72 6d 61 74 20 | 22 20 3a 25 73 22 20 73 |[format |" :%s" s|
|00001ac0| 74 61 74 75 73 20 63 6f | 6d 69 6e 74 2d 73 74 61 |tatus co|mint-sta|
|00001ad0| 74 75 73 20 63 6f 6d 69 | 6e 74 2d 73 68 6f 77 2d |tus comi|nt-show-|
|00001ae0| 73 74 61 74 75 73 20 6f | 74 68 65 72 2d 62 75 66 |status o|ther-buf|
|00001af0| 66 65 72 20 73 69 74 2d | 66 6f 72 20 30 5d 20 33 |fer sit-|for 0] 3|
|00001b00| 20 22 5c 0a 55 70 64 61 | 74 65 20 74 68 65 20 70 | "\.Upda|te the p|
|00001b10| 72 6f 63 65 73 73 20 53 | 54 41 54 55 53 20 6f 66 |rocess S|TATUS of|
|00001b20| 20 74 68 65 20 63 75 72 | 72 65 6e 74 20 62 75 66 | the cur|rent buf|
|00001b30| 66 65 72 2e 22 5d 29 0a | 28 66 73 65 74 20 27 63 |fer."]).|(fset 'c|
|00001b40| 6f 6d 69 6e 74 2d 70 72 | 6f 6d 70 74 2d 73 74 61 |omint-pr|ompt-sta|
|00001b50| 74 75 73 20 23 5b 28 6f | 6c 64 20 6c 69 6e 65 20 |tus #[(o|ld line |
|00001b60| 26 6f 70 74 69 6f 6e 61 | 6c 20 65 71 75 61 6c 29 |&optiona|l equal)|
|00001b70| 20 22 c0 09 5c 6e 5c 22 | ad a3 0b ab 86 0b 0c 5c | "..\n\"|.......\|
|00001b80| 6e 5c 22 aa 87 0c 3f ae | 86 0c 5c 6e 98 ae 81 c5 |n\"...?.|..\n....|
|00001b90| 1d 0e 06 0d c5 3d ab 83 | 0d aa 81 c7 21 88 0d 29 |.....=..|....!..)|
|00001ba0| 87 22 20 5b 73 74 72 69 | 6e 67 2d 6d 61 74 63 68 |." [stri|ng-match|
|00001bb0| 20 63 6f 6d 69 6e 74 2d | 70 72 6f 6d 70 74 2d 72 | comint-|prompt-r|
|00001bc0| 65 67 65 78 70 20 6c 69 | 6e 65 20 65 71 75 61 6c |egexp li|ne equal|
|00001bd0| 20 6f 6c 64 20 65 72 72 | 6f 72 20 63 6f 6d 69 6e | old err|or comin|
|00001be0| 74 2d 75 70 64 61 74 65 | 2d 73 74 61 74 75 73 20 |t-update|-status |
|00001bf0| 72 65 61 64 79 5d 20 33 | 20 22 5c 0a 43 61 6c 6c |ready] 3| "\.Call|
|00001c00| 65 64 20 62 79 20 63 6f | 6d 69 6e 74 2d 70 72 6f |ed by co|mint-pro|
|00001c10| 63 65 73 73 20 66 69 6c | 74 65 72 20 77 69 74 68 |cess fil|ter with|
|00001c20| 20 4f 4c 44 20 61 6e 64 | 20 4c 49 4e 45 2c 20 72 | OLD and| LINE, r|
|00001c30| 65 74 75 72 6e 20 27 65 | 72 72 6f 72 20 69 66 0a |eturn 'e|rror if.|
|00001c40| 4c 49 4e 45 20 69 73 20 | 61 6e 20 65 72 72 6f 72 |LINE is |an error|
|00001c50| 2c 20 54 20 69 66 20 69 | 74 20 69 73 20 61 20 70 |, T if i|t is a p|
|00001c60| 72 6f 6d 70 74 20 61 73 | 20 64 65 74 65 72 6d 69 |rompt as| determi|
|00001c70| 6e 65 64 20 62 79 0a 63 | 6f 6d 69 6e 74 2d 70 72 |ned by.c|omint-pr|
|00001c80| 6f 6d 70 74 2d 72 65 67 | 65 78 70 20 6f 72 20 6e |ompt-reg|exp or n|
|00001c90| 69 6c 20 6f 74 68 65 72 | 77 69 73 65 2e 20 20 41 |il other|wise. A|
|00001ca0| 6c 73 6f 20 73 65 74 20 | 74 68 65 20 73 74 61 74 |lso set |the stat|
|00001cb0| 75 73 0a 61 70 70 72 6f | 70 72 69 61 74 65 6c 79 |us.appro|priately|
|00001cc0| 20 62 79 20 66 75 6e 63 | 61 6c 6c 69 6e 67 20 63 | by func|alling c|
|00001cd0| 6f 6d 69 6e 74 2d 75 70 | 64 61 74 65 2d 73 74 61 |omint-up|date-sta|
|00001ce0| 74 75 73 2e 20 20 49 66 | 20 73 70 65 63 69 66 69 |tus. If| specifi|
|00001cf0| 65 64 20 45 51 55 41 4c | 0a 77 69 6c 6c 20 62 65 |ed EQUAL|.will be|
|00001d00| 20 63 61 6c 6c 65 64 20 | 77 69 74 68 20 6f 6c 64 | called |with old|
|00001d10| 20 61 6e 64 20 6c 69 6e | 65 20 61 6e 64 20 73 68 | and lin|e and sh|
|00001d20| 6f 75 6c 64 20 72 65 74 | 75 72 6e 20 54 20 69 66 |ould ret|urn T if|
|00001d30| 20 6c 69 6e 65 20 69 73 | 20 6e 6f 74 20 61 6e 0a | line is| not an.|
|00001d40| 65 72 72 6f 72 2e 20 20 | 4f 4c 44 20 77 69 6c 6c |error. |OLD will|
|00001d50| 20 62 65 20 6e 69 6c 20 | 66 6f 72 20 74 68 65 20 | be nil |for the |
|00001d60| 66 69 72 73 74 20 70 72 | 6f 6d 70 74 2e 22 5d 29 |first pr|ompt."])|
|00001d70| 0a 28 66 73 65 74 20 27 | 63 6f 6d 69 6e 74 2d 69 |.(fset '|comint-i|
|00001d80| 6e 73 65 72 74 20 23 5b | 28 6f 75 74 70 75 74 29 |nsert #[|(output)|
|00001d90| 20 22 08 ad dd 70 19 c2 | 09 21 1b c4 0b 21 1d c6 | "...p..|.!...!..|
|00001da0| 20 1e 07 c8 1e 09 ca 0e | 07 21 09 3d ab 87 60 0d | .......|.!.=..`.|
|00001db0| 55 16 09 aa 85 cb 09 21 | 16 07 8a 0d 62 88 08 63 |U......!|....b..c|
|00001dc0| 88 0d 60 c8 93 88 29 0e | 07 ad a6 0e 09 ac 84 0e |..`...).|........|
|00001dd0| 0c ab 83 0d 62 88 cd 60 | 0e 07 5c 22 3f ad 93 c6 |....b..`|..\"?...|
|00001de0| 20 1e 0e 8a cf 0e 07 21 | 88 d0 d1 21 88 cf 0e 0e | ......!|...!....|
|00001df0| 21 2a 2d 87 22 20 5b 6f | 75 74 70 75 74 20 62 75 |!*-." [o|utput bu|
|00001e00| 66 66 65 72 20 67 65 74 | 2d 62 75 66 66 65 72 2d |ffer get|-buffer-|
|00001e10| 70 72 6f 63 65 73 73 20 | 70 72 6f 63 65 73 73 20 |process |process |
|00001e20| 70 72 6f 63 65 73 73 2d | 6d 61 72 6b 20 6d 61 72 |process-|mark mar|
|00001e30| 6b 20 73 65 6c 65 63 74 | 65 64 2d 77 69 6e 64 6f |k select|ed-windo|
|00001e40| 77 20 77 69 6e 64 6f 77 | 20 6e 69 6c 20 61 74 2d |w window| nil at-|
|00001e50| 65 6e 64 20 77 69 6e 64 | 6f 77 2d 62 75 66 66 65 |end wind|ow-buffe|
|00001e60| 72 20 67 65 74 2d 62 75 | 66 66 65 72 2d 77 69 6e |r get-bu|ffer-win|
|00001e70| 64 6f 77 20 63 6f 6d 69 | 6e 74 2d 61 6c 77 61 79 |dow comi|nt-alway|
|00001e80| 73 2d 73 63 72 6f 6c 6c | 20 70 6f 73 2d 76 69 73 |s-scroll| pos-vis|
|00001e90| 69 62 6c 65 2d 69 6e 2d | 77 69 6e 64 6f 77 2d 70 |ible-in-|window-p|
|00001ea0| 20 6f 72 69 67 69 6e 61 | 6c 20 73 65 6c 65 63 74 | origina|l select|
|00001eb0| 2d 77 69 6e 64 6f 77 20 | 72 65 63 65 6e 74 65 72 |-window |recenter|
|00001ec0| 20 28 63 65 6e 74 65 72 | 29 5d 20 33 20 22 5c 0a | (center|)] 3 "\.|
|00001ed0| 49 6e 73 65 72 74 20 70 | 72 6f 63 65 73 73 20 4f |Insert p|rocess O|
|00001ee0| 55 54 50 55 54 20 69 6e | 74 6f 20 74 68 65 20 63 |UTPUT in|to the c|
|00001ef0| 75 72 72 65 6e 74 20 62 | 75 66 66 65 72 2e 22 5d |urrent b|uffer."]|
|00001f00| 29 0a 28 66 73 65 74 20 | 27 63 6f 6d 69 6e 74 2d |).(fset |'comint-|
|00001f10| 68 61 6e 64 6c 65 2d 65 | 72 72 6f 72 20 23 5b 28 |handle-e|rror #[(|
|00001f20| 6f 75 74 70 75 74 20 70 | 72 6f 6d 70 74 20 6b 65 |output p|rompt ke|
|00001f30| 79 73 20 26 6f 70 74 69 | 6f 6e 61 6c 20 64 65 6c |ys &opti|onal del|
|00001f40| 61 79 29 20 22 8a 08 ae | 81 c1 10 c2 c3 21 88 c4 |ay) "...|.....!..|
|00001f50| 0d 21 88 0e 06 71 88 c7 | 08 c8 5c 22 ac 88 c9 ca |.!...q..|..\"....|
|00001f60| c8 21 21 88 aa 72 cb cc | 0e 0d 21 21 ac 84 c4 0d |.!!..r..|..!!....|
|00001f70| 21 88 c3 ce c8 1e 0f 1e | 10 1e 11 d2 0e 13 21 88 |!.......|......!.|
|00001f80| d4 20 97 89 16 0f 0e 15 | 3e ac 93 0e 0f d6 55 ab |. ......|>.....U.|
|00001f90| 85 d7 20 88 aa 65 c8 16 | 18 c2 20 88 aa 5d 0e 0f |.. ..e..|.. ..]..|
|00001fa0| 2c 87 22 20 5b 64 65 6c | 61 79 20 31 20 62 65 65 |,." [del|ay 1 bee|
|00001fb0| 70 20 74 20 63 6f 6d 69 | 6e 74 2d 64 69 73 70 6c |p t comi|nt-displ|
|00001fc0| 61 79 2d 65 72 72 6f 72 | 20 6f 75 74 70 75 74 20 |ay-error| output |
|00001fd0| 63 6f 6d 69 6e 74 2d 6f | 72 69 67 69 6e 61 6c 2d |comint-o|riginal-|
|00001fe0| 62 75 66 66 65 72 20 73 | 69 74 2d 66 6f 72 20 6e |buffer s|it-for n|
|00001ff0| 69 6c 20 65 78 65 63 75 | 74 65 2d 6b 62 64 2d 6d |il execu|te-kbd-m|
|00002000| 61 63 72 6f 20 72 65 61 | 64 2d 6b 65 79 2d 73 65 |acro rea|d-key-se|
|00002010| 71 75 65 6e 63 65 20 67 | 65 74 2d 62 75 66 66 65 |quence g|et-buffe|
|00002020| 72 2d 77 69 6e 64 6f 77 | 20 67 65 74 2d 62 75 66 |r-window| get-buf|
|00002030| 66 65 72 20 63 6f 6d 69 | 6e 74 2d 65 72 72 6f 72 |fer comi|nt-error|
|00002040| 2d 62 75 66 66 65 72 20 | 30 20 63 68 61 72 20 65 |-buffer |0 char e|
|00002050| 63 68 6f 2d 6b 65 79 73 | 74 72 6f 6b 65 73 20 63 |cho-keys|trokes c|
|00002060| 75 72 73 6f 72 2d 69 6e | 2d 65 63 68 6f 2d 61 72 |ursor-in|-echo-ar|
|00002070| 65 61 20 6d 65 73 73 61 | 67 65 20 70 72 6f 6d 70 |ea messa|ge promp|
|00002080| 74 20 72 65 61 64 2d 63 | 68 61 72 20 6b 65 79 73 |t read-c|har keys|
|00002090| 20 33 32 20 69 6c 69 73 | 70 2d 73 63 72 6f 6c 6c | 32 ilis|p-scroll|
|000020a0| 2d 6f 75 74 70 75 74 20 | 71 75 69 74 2d 66 6c 61 |-output |quit-fla|
|000020b0| 67 5d 20 33 20 22 5c 0a | 48 61 6e 64 6c 65 20 61 |g] 3 "\.|Handle a|
|000020c0| 6e 20 65 72 72 6f 72 20 | 62 79 20 62 65 65 70 69 |n error |by beepi|
|000020d0| 6e 67 2c 20 64 69 73 70 | 6c 61 79 69 6e 67 20 4f |ng, disp|laying O|
|000020e0| 55 54 50 55 54 20 61 6e | 64 20 74 68 65 6e 20 77 |UTPUT an|d then w|
|000020f0| 61 69 74 69 6e 67 20 66 | 6f 72 0a 74 68 65 20 75 |aiting f|or.the u|
|00002100| 73 65 72 20 74 6f 20 70 | 61 75 73 65 2e 20 20 4f |ser to p|ause. O|
|00002110| 6e 63 65 20 74 68 65 72 | 65 20 69 73 20 70 61 75 |nce ther|e is pau|
|00002120| 73 65 2c 20 50 52 4f 4d | 50 54 20 75 6e 74 69 6c |se, PROM|PT until|
|00002130| 20 6f 6e 65 20 6f 66 20 | 74 68 65 0a 63 68 61 72 | one of |the.char|
|00002140| 61 63 74 65 72 73 20 69 | 6e 20 4b 45 59 53 20 69 |acters i|n KEYS i|
|00002150| 73 20 74 79 70 65 64 2e | 20 20 49 66 20 6f 70 74 |s typed.| If opt|
|00002160| 69 6f 6e 61 6c 20 44 45 | 4c 41 59 20 69 73 20 73 |ional DE|LAY is s|
|00002170| 70 65 63 69 66 69 65 64 | 2c 20 69 74 20 69 73 0a |pecified|, it is.|
|00002180| 74 68 65 20 6e 75 6d 62 | 65 72 20 6f 66 20 73 65 |the numb|er of se|
|00002190| 63 6f 6e 64 73 20 74 68 | 61 74 20 74 68 65 20 75 |conds th|at the u|
|000021a0| 73 65 72 20 6d 75 73 74 | 20 70 61 75 73 65 2e 20 |ser must| pause. |
|000021b0| 20 54 68 65 20 6b 65 79 | 20 66 6f 75 6e 64 20 77 | The key| found w|
|000021c0| 69 6c 6c 20 62 65 0a 72 | 65 74 75 72 6e 65 64 2e |ill be.r|eturned.|
|000021d0| 22 5d 29 0a 28 66 73 65 | 74 20 27 63 6f 6d 69 6e |"]).(fse|t 'comin|
|000021e0| 74 2d 65 72 72 6f 72 2d | 70 6f 70 75 70 20 23 5b |t-error-|popup #[|
|000021f0| 28 65 72 72 6f 72 20 77 | 61 69 74 2d 70 20 6d 65 |(error w|ait-p me|
|00002200| 73 73 61 67 65 20 6f 75 | 74 70 75 74 20 70 72 6f |ssage ou|tput pro|
|00002210| 6d 70 74 29 20 22 08 ab | 98 8a 09 90 09 71 88 5c |mpt) "..|.....q.\|
|00002220| 6e ab 83 5c 6e 63 88 c3 | 63 88 0c 63 88 c5 c6 21 |n..\nc..|c..c...!|
|00002230| 91 88 29 c6 87 22 20 5b | 65 72 72 6f 72 20 63 6f |..).." [|error co|
|00002240| 6d 69 6e 74 2d 6f 75 74 | 70 75 74 2d 62 75 66 66 |mint-out|put-buff|
|00002250| 65 72 20 6d 65 73 73 61 | 67 65 20 31 30 20 6f 75 |er messa|ge 10 ou|
|00002260| 74 70 75 74 20 62 65 65 | 70 20 74 5d 20 33 20 22 |tput bee|p t] 3 "|
|00002270| 5c 0a 49 66 20 74 68 65 | 72 65 20 69 73 20 61 6e |\.If the|re is an|
|00002280| 20 45 52 52 4f 52 20 70 | 6f 70 20 75 70 20 61 20 | ERROR p|op up a |
|00002290| 77 69 6e 64 6f 77 20 77 | 69 74 68 20 4d 45 53 53 |window w|ith MESS|
|000022a0| 41 47 45 20 61 6e 64 20 | 4f 55 54 50 55 54 2e 0a |AGE and |OUTPUT..|
|000022b0| 4e 6f 74 68 69 6e 67 20 | 69 73 20 64 6f 6e 65 20 |Nothing |is done |
|000022c0| 77 69 74 68 20 50 52 4f | 4d 50 54 20 6f 72 20 57 |with PRO|MPT or W|
|000022d0| 41 49 54 2d 50 2e 22 5d | 29 0a 28 66 73 65 74 20 |AIT-P."]|).(fset |
|000022e0| 27 63 6f 6d 69 6e 74 2d | 70 72 6f 63 65 73 73 2d |'comint-|process-|
|000022f0| 66 69 6c 74 65 72 20 23 | 5b 28 70 72 6f 63 65 73 |filter #|[(proces|
|00002300| 73 20 6f 75 74 70 75 74 | 29 20 22 c0 19 c2 20 1b |s output|) "... .|
|00002310| 70 c4 0d 21 71 88 1e 06 | c7 20 1e 07 0e 08 40 89 |p..!q...|. ....@.|
|00002320| 1e 09 41 89 1e 5c 6e 41 | 89 1e 0b 41 41 89 1e 0c |..A..\nA|...AA...|
|00002330| 41 89 1e 0d 41 89 1e 0e | 41 89 1e 0f 41 89 1e 10 |A...A...|A...A...|
|00002340| 41 40 89 1e 11 40 1e 12 | 0e 5c 6e 40 1e 5c 6e 0e |A@...@..|.\n@.\n.|
|00002350| 0c 40 1e 13 0e 0b 40 89 | 1e 0b 3b 1e 14 d5 0d 0e |.@....@.|..;.....|
|00002360| 16 c0 23 88 0e 12 ac 9b | 8a d7 0d 21 62 88 6e 29 |..#.....|...!b.n)|
|00002370| ab 91 d8 d9 0e 16 5c 22 | da 3d ab 88 0e 16 da 95 |......\"|.=......|
|00002380| db 4f 16 16 0e 11 0e 12 | 0e 16 50 a0 88 d8 dc 0e |.O......|..P.....|
|00002390| 11 40 0e 10 40 23 ab 88 | 0e 10 da 95 a0 88 aa 6d |.@..@#..|.......m|
|000023a0| 0e 14 ac 99 0e 5c 6e ac | 95 dd 0e 16 21 88 0e 11 |.....\n.|....!...|
|000023b0| 89 40 0e 10 40 db 4f a0 | 88 0e 10 da a0 88 0e 0e |.@..@.O.|........|
|000023c0| 40 3a ab b4 0e 1e 0e 11 | 40 21 89 1e 1f ab a8 0e |@:......|@!......|
|000023d0| 0e 40 1e 20 e1 0e 20 21 | 0e 11 40 da 0e 1f 4f a0 |.@. .. !|..@...O.|
|000023e0| 88 0e 11 89 40 0e 10 40 | db 4f a0 88 0e 10 da a0 |....@..@|.O......|
|000023f0| 88 0e 0e c0 a0 88 29 29 | 0e 0e 40 3a 84 77 01 0e |......))|..@:.w..|
|00002400| 11 40 0e 10 40 db 4f 1e | 5c 22 0e 23 0e 0f 40 0e |.@..@.O.|\".#..@.|
|00002410| 5c 22 5c 22 89 1e 24 ab | eb 0e 5c 6e ac 84 0e 14 |\"\"..$.|..\n....|
|00002420| ad 8b 0e 25 0e 11 40 da | 0e 10 40 4f 21 1e 16 0e |...%..@.|..@O!...|
|00002430| 0d 40 1e 0d 0e 24 e6 3d | 1e 26 0e 11 40 16 12 0e |.@...$.=|.&..@...|
|00002440| 11 0e 16 a0 88 0e 11 0e | 26 ab 85 0e 5c 22 43 aa |........|&...\"C.|
|00002450| 82 0e 5c 22 a1 88 0e 11 | 40 16 27 0e 26 ae 8e 0e |..\"....|@.'.&...|
|00002460| 28 ad 8a 0e 27 ad 86 d8 | 0e 28 0e 27 5c 22 16 29 |(...'...|.(.'\".)|
|00002470| ea 8e 0e 0d ab 8f 0e 0d | 0e 29 0e 0b 0e 13 0e 16 |........|.)......|
|00002480| 0e 5c 22 25 16 0d 2c aa | 85 0e 11 db a1 88 2a eb |.\"%..,.|......*.|
|00002490| 0e 07 21 88 ec 0e 06 21 | ac 89 ed ee 20 21 0e 06 |..!....!|.... !..|
|000024a0| 3d ad 83 0e 06 71 2e 12 | 87 22 20 5b 74 20 69 6e |=....q..|." [t in|
|000024b0| 68 69 62 69 74 2d 71 75 | 69 74 20 73 65 6c 65 63 |hibit-qu|it selec|
|000024c0| 74 65 64 2d 77 69 6e 64 | 6f 77 20 77 69 6e 64 6f |ted-wind|ow windo|
|000024d0| 77 20 70 72 6f 63 65 73 | 73 2d 62 75 66 66 65 72 |w proces|s-buffer|
|000024e0| 20 70 72 6f 63 65 73 73 | 20 63 6f 6d 69 6e 74 2d | process| comint-|
|000024f0| 6f 72 69 67 69 6e 61 6c | 2d 62 75 66 66 65 72 20 |original|-buffer |
|00002500| 6d 61 74 63 68 2d 64 61 | 74 61 20 63 6f 6d 69 6e |match-da|ta comin|
|00002510| 74 2d 73 65 6e 64 2d 71 | 75 65 75 65 20 73 65 6e |t-send-q|ueue sen|
|00002520| 64 20 6e 6f 2d 69 6e 73 | 65 72 74 20 77 61 69 74 |d no-ins|ert wait|
|00002530| 2d 70 20 6d 65 73 73 61 | 67 65 70 20 68 61 6e 64 |-p messa|gep hand|
|00002540| 6c 65 72 20 72 75 6e 6e | 69 6e 67 20 6f 6c 64 2d |ler runn|ing old-|
|00002550| 70 72 6f 6d 70 74 20 6c | 69 6e 65 20 72 65 73 75 |prompt l|ine resu|
|00002560| 6c 74 20 6f 6c 64 2d 72 | 65 73 75 6c 74 20 6d 65 |lt old-r|esult me|
|00002570| 73 73 61 67 65 20 73 79 | 6e 63 20 63 6f 6d 69 6e |ssage sy|nc comin|
|00002580| 74 2d 6c 6f 67 20 6f 75 | 74 70 75 74 20 70 72 6f |t-log ou|tput pro|
|00002590| 63 65 73 73 2d 6d 61 72 | 6b 20 73 74 72 69 6e 67 |cess-mar|k string|
|000025a0| 2d 6d 61 74 63 68 20 22 | 5b 20 09 5d 2a 5c 6e 22 |-match "|[ .]*\n"|
|000025b0| 20 30 20 6e 69 6c 20 22 | 5c 6e 22 20 63 6f 6d 69 | 0 nil "|\n" comi|
|000025c0| 6e 74 2d 69 6e 73 65 72 | 74 20 63 6f 6d 69 6e 74 |nt-inser|t comint|
|000025d0| 2d 69 6e 74 65 72 72 75 | 70 74 2d 73 74 61 72 74 |-interru|pt-start|
|000025e0| 20 73 70 6c 69 74 20 69 | 6e 74 65 72 72 75 70 74 | split i|nterrupt|
|000025f0| 65 64 20 63 6f 6d 69 6e | 74 2d 73 65 6e 64 2d 76 |ed comin|t-send-v|
|00002600| 61 72 69 61 62 6c 65 73 | 20 6c 61 73 74 20 63 6f |ariables| last co|
|00002610| 6d 69 6e 74 2d 70 72 6f | 6d 70 74 2d 73 74 61 74 |mint-pro|mpt-stat|
|00002620| 75 73 20 69 73 2d 70 72 | 6f 6d 70 74 20 63 6f 6d |us is-pr|ompt com|
|00002630| 69 6e 74 2d 6f 75 74 70 | 75 74 2d 66 69 6c 74 65 |int-outp|ut-filte|
|00002640| 72 20 65 72 72 6f 72 20 | 63 6f 6d 69 6e 74 2d 6f |r error |comint-o|
|00002650| 75 74 70 75 74 20 63 6f | 6d 69 6e 74 2d 65 72 72 |utput co|mint-err|
|00002660| 6f 72 2d 72 65 67 65 78 | 70 20 63 6f 6d 69 6e 74 |or-regex|p comint|
|00002670| 2d 65 72 72 6f 72 70 20 | 28 28 62 79 74 65 2d 63 |-errorp |((byte-c|
|00002680| 6f 64 65 20 22 08 ab a1 | 09 ab 9e 5c 6e ab 9b 0b |ode "...|...\n...|
|00002690| ab 98 0b c4 c5 c6 c7 c5 | 89 89 c8 c5 89 42 af 5c |........|.....B.\|
|000026a0| 6e 0e 09 41 ae 82 0e 09 | 42 16 09 0e 5c 6e ab c6 |n..A....|B...\n..|
|000026b0| cb 0e 0c 0e 0d 5c 22 89 | 1e 0e ab b8 0e 0f 40 41 |.....\".|......@A|
|000026c0| 41 41 41 d0 a0 88 5c 6e | ac 90 d1 0e 0d c8 0e 0e |AAA...\n|........|
|000026d0| 4f 0e 0d c8 95 c5 4f 50 | 21 88 0e 12 0e 0d 0e 0e |O.....OP|!.......|
|000026e0| 0e 13 40 4f a0 88 0e 14 | d0 a0 88 0e 15 c5 a0 88 |..@O....|........|
|000026f0| d6 0e 17 21 88 29 aa 8f | 0e 14 d0 a0 88 0e 15 c5 |...!.)..|........|
|00002700| a0 88 d6 0e 17 21 88 c5 | 87 22 20 5b 65 72 72 6f |.....!..|." [erro|
|00002710| 72 20 68 61 6e 64 6c 65 | 72 20 6e 6f 2d 69 6e 73 |r handle|r no-ins|
|00002720| 65 72 74 20 63 6f 6d 69 | 6e 74 2d 66 69 78 2d 65 |ert comi|nt-fix-e|
|00002730| 72 72 6f 72 20 74 20 6e | 69 6c 20 66 69 78 20 22 |rror t n|il fix "|
|00002740| 46 69 78 69 6e 67 20 65 | 72 72 6f 72 22 20 30 20 |Fixing e|rror" 0 |
|00002750| 63 6f 6d 69 6e 74 2d 73 | 65 6e 64 2d 71 75 65 75 |comint-s|end-queu|
|00002760| 65 20 73 79 6e 63 20 73 | 74 72 69 6e 67 2d 6d 61 |e sync s|tring-ma|
|00002770| 74 63 68 20 77 61 69 74 | 2d 70 20 6f 6c 64 2d 72 |tch wait|-p old-r|
|00002780| 65 73 75 6c 74 20 6d 61 | 74 63 68 20 63 6f 6d 69 |esult ma|tch comi|
|00002790| 6e 74 2d 65 6e 64 2d 71 | 75 65 75 65 20 22 44 6f |nt-end-q|ueue "Do|
|000027a0| 6e 65 22 20 63 6f 6d 69 | 6e 74 2d 69 6e 73 65 72 |ne" comi|nt-inser|
|000027b0| 74 20 72 65 73 75 6c 74 | 20 6c 69 6e 65 20 6d 65 |t result| line me|
|000027c0| 73 73 61 67 65 70 20 72 | 75 6e 6e 69 6e 67 20 63 |ssagep r|unning c|
|000027d0| 6f 6d 69 6e 74 2d 64 69 | 73 70 61 74 63 68 2d 73 |omint-di|spatch-s|
|000027e0| 65 6e 64 20 70 72 6f 63 | 65 73 73 5d 20 31 32 29 |end proc|ess] 12)|
|000027f0| 29 20 73 74 6f 72 65 2d | 6d 61 74 63 68 2d 64 61 |) store-|match-da|
|00002800| 74 61 20 67 65 74 2d 62 | 75 66 66 65 72 2d 77 69 |ta get-b|uffer-wi|
|00002810| 6e 64 6f 77 20 77 69 6e | 64 6f 77 2d 62 75 66 66 |ndow win|dow-buff|
|00002820| 65 72 20 6d 69 6e 69 62 | 75 66 66 65 72 2d 77 69 |er minib|uffer-wi|
|00002830| 6e 64 6f 77 5d 20 37 20 | 22 5c 0a 46 69 6c 74 65 |ndow] 7 |"\.Filte|
|00002840| 72 20 50 52 4f 43 45 53 | 53 20 4f 55 54 50 55 54 |r PROCES|S OUTPUT|
|00002850| 2e 20 20 53 65 65 20 63 | 6f 6d 69 6e 74 2d 73 65 |. See c|omint-se|
|00002860| 6e 64 20 66 6f 72 20 6d | 6f 72 65 20 69 6e 66 6f |nd for m|ore info|
|00002870| 72 6d 61 74 69 6f 6e 2e | 20 20 54 68 65 0a 66 69 |rmation.| The.fi|
|00002880| 72 73 74 20 65 6c 65 6d | 65 6e 74 20 6f 66 20 74 |rst elem|ent of t|
|00002890| 68 65 20 63 6f 6d 69 6e | 74 2d 73 65 6e 64 2d 71 |he comin|t-send-q|
|000028a0| 75 65 75 65 20 69 73 20 | 74 68 65 20 63 75 72 72 |ueue is |the curr|
|000028b0| 65 6e 74 20 73 65 6e 64 | 20 65 6e 74 72 79 2e 20 |ent send| entry. |
|000028c0| 20 49 66 0a 74 68 65 20 | 65 6e 74 72 79 20 68 61 | If.the |entry ha|
|000028d0| 73 20 61 20 6e 69 6c 20 | 6e 6f 2d 69 6e 73 65 72 |s a nil |no-inser|
|000028e0| 74 20 66 6c 61 67 2c 20 | 69 6e 73 65 72 74 20 74 |t flag, |insert t|
|000028f0| 68 65 20 72 65 73 75 6c | 74 73 20 69 6e 74 6f 20 |he resul|ts into |
|00002900| 74 68 65 0a 70 72 6f 63 | 65 73 73 20 62 75 66 66 |the.proc|ess buff|
|00002910| 65 72 2e 0a 0a 49 66 20 | 74 68 65 20 73 65 6e 64 |er...If |the send|
|00002920| 20 69 73 20 61 6e 20 69 | 6e 74 65 72 72 75 70 74 | is an i|nterrupt|
|00002930| 2c 20 63 6f 6d 69 6e 74 | 2d 69 6e 74 65 72 72 75 |, comint|-interru|
|00002940| 70 74 2d 73 74 61 72 74 | 20 69 73 20 66 75 6e 63 |pt-start| is func|
|00002950| 61 6c 6c 65 64 20 6f 6e | 0a 74 68 65 20 6f 75 74 |alled on|.the out|
|00002960| 70 75 74 20 61 6e 64 20 | 73 68 6f 75 6c 64 20 72 |put and |should r|
|00002970| 65 74 75 72 6e 20 74 68 | 65 20 73 74 61 72 74 20 |eturn th|e start |
|00002980| 6f 66 20 74 68 65 20 6f | 75 74 70 75 74 20 6f 66 |of the o|utput of|
|00002990| 20 61 6e 20 69 6e 74 65 | 72 72 75 70 74 2e 0a 0a | an inte|rrupt...|
|000029a0| 63 6f 6d 69 6e 74 2d 70 | 72 6f 6d 70 74 2d 73 74 |comint-p|rompt-st|
|000029b0| 61 74 75 73 20 69 73 20 | 63 61 6c 6c 65 64 20 77 |atus is |called w|
|000029c0| 69 74 68 20 74 68 65 20 | 6f 6c 64 20 70 72 6f 6d |ith the |old prom|
|000029d0| 70 74 20 61 6e 64 20 74 | 68 65 20 6c 61 73 74 20 |pt and t|he last |
|000029e0| 6c 69 6e 65 2e 0a 49 74 | 20 73 68 6f 75 6c 64 20 |line..It| should |
|000029f0| 72 65 74 75 72 6e 20 27 | 65 72 72 6f 72 20 69 66 |return '|error if|
|00002a00| 20 74 68 65 20 6c 61 73 | 74 20 6c 69 6e 65 20 69 | the las|t line i|
|00002a10| 73 20 61 6e 20 65 72 72 | 6f 72 2c 20 54 20 69 66 |s an err|or, T if|
|00002a20| 20 69 74 20 69 73 20 61 | 0a 70 72 6f 6d 70 74 20 | it is a|.prompt |
|00002a30| 61 6e 64 20 6e 69 6c 20 | 6f 74 68 65 72 77 69 73 |and nil |otherwis|
|00002a40| 65 2e 20 20 49 74 20 73 | 68 6f 75 6c 64 20 61 6c |e. It s|hould al|
|00002a50| 73 6f 20 75 70 64 61 74 | 65 20 74 68 65 20 70 72 |so updat|e the pr|
|00002a60| 6f 63 65 73 73 20 73 74 | 61 74 75 73 20 62 79 0a |ocess st|atus by.|
|00002a70| 66 75 6e 63 61 6c 6c 69 | 6e 67 20 63 6f 6d 69 6e |funcalli|ng comin|
|00002a80| 74 2d 75 70 64 61 74 65 | 2d 73 74 61 74 75 73 2e |t-update|-status.|
|00002a90| 0a 0a 49 66 20 74 68 65 | 72 65 20 69 73 20 61 20 |..If the|re is a |
|00002aa0| 73 65 6e 64 20 68 61 6e | 64 6c 65 72 2c 20 69 74 |send han|dler, it|
|00002ab0| 20 69 73 20 63 61 6c 6c | 65 64 20 77 69 74 68 20 | is call|ed with |
|00002ac0| 28 65 72 72 6f 72 2d 70 | 20 77 61 69 74 2d 70 20 |(error-p| wait-p |
|00002ad0| 6d 65 73 73 61 67 65 0a | 6f 75 74 70 75 74 20 70 |message.|output p|
|00002ae0| 72 6f 6d 70 74 29 20 61 | 6e 64 20 73 68 6f 75 6c |rompt) a|nd shoul|
|00002af0| 64 20 64 65 74 65 72 6d | 69 6e 65 20 77 68 61 74 |d determ|ine what|
|00002b00| 20 73 6f 72 74 20 6f 66 | 20 6e 6f 74 69 66 69 63 | sort of| notific|
|00002b10| 61 74 69 6f 6e 20 69 73 | 0a 61 70 70 72 6f 70 72 |ation is|.appropr|
|00002b20| 69 61 74 65 20 61 6e 64 | 20 72 65 74 75 72 6e 20 |iate and| return |
|00002b30| 54 20 69 66 20 65 72 72 | 6f 72 73 20 73 68 6f 75 |T if err|ors shou|
|00002b40| 6c 64 20 62 65 20 66 69 | 78 65 64 20 61 6e 64 20 |ld be fi|xed and |
|00002b50| 4e 49 4c 20 6f 74 68 65 | 72 77 69 73 65 2e 0a 0a |NIL othe|rwise...|
|00002b60| 49 66 20 74 68 65 20 70 | 72 6f 6d 70 74 20 69 73 |If the p|rompt is|
|00002b70| 20 61 6e 20 65 72 72 6f | 72 2c 20 74 68 65 6e 20 | an erro|r, then |
|00002b80| 63 6f 6d 69 6e 74 2d 66 | 69 78 2d 65 72 72 6f 72 |comint-f|ix-error|
|00002b90| 20 77 69 6c 6c 20 62 65 | 20 73 65 6e 74 20 74 6f | will be| sent to|
|00002ba0| 20 66 69 78 0a 74 68 65 | 20 65 72 72 6f 72 2e 20 | fix.the| error. |
|00002bb0| 0a 0a 57 68 65 6e 20 74 | 68 65 72 65 20 69 73 20 |..When t|here is |
|00002bc0| 61 20 70 72 6f 6d 70 74 | 20 69 6e 20 74 68 65 20 |a prompt| in the |
|00002bd0| 6f 75 74 70 75 74 20 73 | 74 72 65 61 6d 2c 20 74 |output s|tream, t|
|00002be0| 68 65 20 6e 65 78 74 20 | 73 65 6e 64 20 77 69 6c |he next |send wil|
|00002bf0| 6c 20 62 65 0a 64 69 73 | 70 61 74 63 68 65 64 20 |l be.dis|patched |
|00002c00| 75 6e 6c 65 73 73 20 74 | 68 65 20 77 61 69 74 20 |unless t|he wait |
|00002c10| 66 6c 61 67 20 66 6f 72 | 20 74 68 65 20 73 65 6e |flag for| the sen|
|00002c20| 64 20 69 73 20 61 20 73 | 74 72 69 6e 67 2e 20 20 |d is a s|tring. |
|00002c30| 49 66 20 69 74 20 69 73 | 20 61 0a 73 74 72 69 6e |If it is| a.strin|
|00002c40| 67 2c 20 74 68 65 6e 20 | 72 65 73 75 6c 74 73 20 |g, then |results |
|00002c50| 77 69 6c 6c 20 62 65 20 | 64 69 73 63 61 72 64 65 |will be |discarde|
|00002c60| 64 20 75 6e 74 69 6c 20 | 6f 6e 65 20 6d 61 74 63 |d until |one matc|
|00002c70| 68 65 73 20 74 68 65 20 | 73 74 72 69 6e 67 20 61 |hes the |string a|
|00002c80| 73 0a 61 20 72 65 67 65 | 78 70 2e 0a 0a 4f 75 74 |s.a rege|xp...Out|
|00002c90| 70 75 74 20 74 6f 20 74 | 68 65 20 70 72 6f 63 65 |put to t|he proce|
|00002ca0| 73 73 20 73 68 6f 75 6c | 64 20 6f 6e 6c 79 20 62 |ss shoul|d only b|
|00002cb0| 65 20 64 6f 6e 65 20 74 | 68 72 6f 75 67 68 20 74 |e done t|hrough t|
|00002cc0| 68 65 20 66 75 6e 63 74 | 69 6f 6e 73 0a 63 6f 6d |he funct|ions.com|
|00002cd0| 69 6e 74 2d 73 65 6e 64 | 20 6f 72 20 63 6f 6d 69 |int-send| or comi|
|00002ce0| 6e 74 2d 64 65 66 61 75 | 6c 74 2d 73 65 6e 64 2c |nt-defau|lt-send,|
|00002cf0| 20 6f 72 20 72 65 73 75 | 6c 74 73 20 77 69 6c 6c | or resu|lts will|
|00002d00| 20 62 65 20 6d 69 78 65 | 64 20 75 70 2e 22 5d 29 | be mixe|d up."])|
|00002d10| 0a 28 66 73 65 74 20 27 | 63 6f 6d 69 6e 74 2d 64 |.(fset '|comint-d|
|00002d20| 69 73 70 61 74 63 68 2d | 73 65 6e 64 20 23 5b 28 |ispatch-|send #[(|
|00002d30| 70 72 6f 63 65 73 73 29 | 20 22 08 40 19 c2 09 21 |process)| ".@...!|
|00002d40| 89 1b 41 1c 08 ac 85 0d | 3f 86 84 01 08 0d 3d ab |..A.....|?.....=.|
|00002d50| d1 09 40 c6 09 21 1e 07 | 1e 08 c9 16 5c 6e 0c ab |..@..!..|....\n..|
|00002d60| 8f c6 09 21 41 0c 3a ab | 84 0c 40 aa 81 0c a0 88 |...!A.:.|..@.....|
|00002d70| 09 cb a0 88 0e 08 ab 85 | 0e 08 20 aa a2 0e 07 40 |........|.. ....@|
|00002d80| 3b ad 9c 0e 0c 09 41 41 | 41 40 21 88 cd 0e 0e 0e |;.....AA|A@!.....|
|00002d90| 0f 5c 22 88 d0 0e 0e 0e | 07 40 5c 22 88 0e 07 c9 |.\".....|.@\"....|
|00002da0| a0 2a 82 84 01 0c ab 88 | 08 41 89 10 40 11 aa 86 |.*......|.A..@...|
|00002db0| c2 0d 40 21 41 14 08 0d | 3d 1e 11 09 40 1e 12 09 |..@!A...|=...@...|
|00002dc0| 41 89 1e 13 41 89 1e 14 | 41 89 1e 15 41 1e 16 0e |A...A...|A...A...|
|00002dd0| 15 40 1e 15 0e 13 40 1e | 13 0e 16 40 1e 16 c6 09 |.@....@.|...@....|
|00002de0| 21 1e 07 0e 11 ab 86 09 | cb a0 88 aa 8b 0e 12 3b |!.......|.......;|
|00002df0| ab 86 0e 0c 0e 15 21 88 | 0e 16 ab 9c 0e 13 ac 98 |......!.|........|
|00002e00| 0e 14 40 3b ac 92 0e 11 | ac 8e d7 0e 18 89 89 0e |..@;....|........|
|00002e10| 16 0e 19 da b0 06 21 88 | 0e 12 ab 9f 0e 12 3b ac |......!.|......;.|
|00002e20| 9a c2 08 40 21 0c 3a ab | 84 0c 40 aa 81 0c a1 88 |...@!.:.|..@.....|
|00002e30| 0e 12 20 88 db 0e 0e 21 | 82 82 01 0e 07 40 3b ab |.. ....!|.....@;.|
|00002e40| dc 0e 07 40 1e 1c 0e 11 | ac 8c c2 09 21 40 ac 86 |...@....|....!@..|
|00002e50| 0e 1c dd 98 ac a9 0e 07 | c9 a0 88 0e 0c 0e 15 21 |........|.......!|
|00002e60| 88 cd 0e 0e 0e 0f 5c 22 | 88 d0 0e 0e 0e 1c 5c 22 |......\"|......\"|
|00002e70| 88 0e 11 ad a7 0e 12 ad | a3 cd 0e 0e 0e 12 5c 22 |........|......\"|
|00002e80| aa 9b 0e 07 cb a0 88 0e | 1e c9 cb df e0 cb 89 89 |........|........|
|00002e90| e1 cb 89 42 af 5c 6e 08 | 42 10 db 0e 0e 21 29 aa |...B.\n.|B....!).|
|00002ea0| a2 0e 11 ac 8f c6 09 21 | 41 0c 3a ab 84 0c 40 aa |.......!|A.:...@.|
|00002eb0| 81 0c a0 88 0e 12 ad 8b | 0e 07 c9 a0 88 cd 0e 0e |........|........|
|00002ec0| 0e 12 5c 22 2e 5c 6e 2b | 87 22 20 5b 63 6f 6d 69 |..\".\n+|." [comi|
|00002ed0| 6e 74 2d 73 65 6e 64 2d | 71 75 65 75 65 20 73 65 |nt-send-|queue se|
|00002ee0| 6e 64 20 63 6f 6d 69 6e | 74 2d 73 65 6e 64 2d 72 |nd comin|t-send-r|
|00002ef0| 65 73 75 6c 74 73 20 72 | 65 73 75 6c 74 73 20 70 |esults r|esults p|
|00002f00| 72 6f 6d 70 74 20 63 6f | 6d 69 6e 74 2d 65 6e 64 |rompt co|mint-end|
|00002f10| 2d 71 75 65 75 65 20 63 | 6f 6d 69 6e 74 2d 73 65 |-queue c|omint-se|
|00002f20| 6e 64 2d 76 61 72 69 61 | 62 6c 65 73 20 72 75 6e |nd-varia|bles run|
|00002f30| 6e 69 6e 67 20 69 6e 69 | 74 20 74 20 63 6f 6d 69 |ning ini|t t comi|
|00002f40| 6e 74 2d 71 75 65 75 65 | 2d 65 6d 70 74 69 65 64 |nt-queue|-emptied|
|00002f50| 20 6e 69 6c 20 63 6f 6d | 69 6e 74 2d 75 70 64 61 | nil com|int-upda|
|00002f60| 74 65 2d 73 74 61 74 75 | 73 20 63 6f 6d 69 6e 74 |te-statu|s comint|
|00002f70| 2d 73 65 6e 64 65 72 20 | 70 72 6f 63 65 73 73 20 |-sender |process |
|00002f80| 63 6f 6d 69 6e 74 2d 63 | 6f 6e 74 69 6e 75 65 20 |comint-c|ontinue |
|00002f90| 63 6f 6d 69 6e 74 2d 70 | 72 6f 63 65 73 73 2d 66 |comint-p|rocess-f|
|00002fa0| 69 6c 74 65 72 20 74 6f | 70 2d 6c 65 76 65 6c 20 |ilter to|p-level |
|00002fb0| 73 74 72 69 6e 67 20 6e | 6f 2d 69 6e 73 65 72 74 |string n|o-insert|
|00002fc0| 20 77 61 69 74 2d 70 20 | 73 74 61 74 75 73 20 6d | wait-p |status m|
|00002fd0| 65 73 73 61 67 65 20 63 | 6f 6d 69 6e 74 2d 69 6e |essage c|omint-in|
|00002fe0| 73 65 72 74 20 63 6f 6d | 6d 65 6e 74 2d 73 74 61 |sert com|ment-sta|
|00002ff0| 72 74 20 63 6f 6d 6d 65 | 6e 74 2d 65 6e 64 20 22 |rt comme|nt-end "|
|00003000| 5c 6e 22 20 63 6f 6d 69 | 6e 74 2d 64 69 73 70 61 |\n" comi|nt-dispa|
|00003010| 74 63 68 2d 73 65 6e 64 | 20 6f 75 74 70 75 74 20 |tch-send| output |
|00003020| 22 22 20 63 6f 6d 69 6e | 74 2d 66 69 78 2d 65 72 |"" comin|t-fix-er|
|00003030| 72 6f 72 20 66 69 78 20 | 22 46 69 78 69 6e 67 20 |ror fix |"Fixing |
|00003040| 65 72 72 6f 72 22 20 30 | 5d 20 31 32 20 22 5c 0a |error" 0|] 12 "\.|
|00003050| 44 69 73 70 61 74 63 68 | 20 74 68 65 20 6e 65 78 |Dispatch| the nex|
|00003060| 74 20 73 65 6e 64 20 69 | 6e 20 50 52 4f 43 45 53 |t send i|n PROCES|
|00003070| 53 20 63 6f 6d 69 6e 74 | 2d 73 65 6e 64 2d 71 75 |S comint|-send-qu|
|00003080| 65 75 65 2c 20 70 6f 70 | 70 69 6e 67 20 74 68 65 |eue, pop|ping the|
|00003090| 0a 63 75 72 72 65 6e 74 | 20 73 65 6e 64 20 69 66 |.current| send if|
|000030a0| 20 64 6f 6e 65 2e 22 5d | 29 0a 28 66 73 65 74 20 | done."]|).(fset |
|000030b0| 27 63 6f 6d 69 6e 74 2d | 69 6e 74 65 72 72 75 70 |'comint-|interrup|
|000030c0| 74 20 23 5b 28 70 72 6f | 63 65 73 73 20 73 65 6e |t #[(pro|cess sen|
|000030d0| 64 29 20 22 08 ab a9 09 | 40 41 41 40 ac a2 09 40 |d) "....|@AA@...@|
|000030e0| 1a c3 c4 c3 c5 c6 c3 5c | 6e c3 c7 c3 89 42 af 5c |.......\|n....B.\|
|000030f0| 6e 89 1d 0e 08 09 42 42 | 11 0e 09 c5 21 88 ca 20 |n.....BB|....!.. |
|00003100| 2a 87 09 0e 0b 3d ab 8a | 09 40 0e 08 09 42 42 89 |*....=..|.@...BB.|
|00003110| 11 87 09 0e 08 09 41 42 | a1 87 22 20 5b 63 6f 6d |......AB|.." [com|
|00003120| 69 6e 74 2d 63 6f 6e 74 | 69 6e 75 65 20 63 6f 6d |int-cont|inue com|
|00003130| 69 6e 74 2d 73 65 6e 64 | 2d 71 75 65 75 65 20 63 |int-send|-queue c|
|00003140| 75 72 72 65 6e 74 20 6e | 69 6c 20 74 20 69 6e 74 |urrent n|il t int|
|00003150| 65 72 72 75 70 74 20 22 | 49 6e 74 65 72 72 75 70 |errupt "|Interrup|
|00003160| 74 22 20 30 20 73 65 6e | 64 20 63 6f 6d 69 6e 74 |t" 0 sen|d comint|
|00003170| 2d 75 70 64 61 74 65 2d | 73 74 61 74 75 73 20 63 |-update-|status c|
|00003180| 6f 6d 69 6e 74 2d 69 6e | 74 65 72 72 75 70 74 2d |omint-in|terrupt-|
|00003190| 73 75 62 6a 6f 62 20 63 | 6f 6d 69 6e 74 2d 65 6e |subjob c|omint-en|
|000031a0| 64 2d 71 75 65 75 65 5d | 20 31 32 20 22 5c 0a 49 |d-queue]| 12 "\.I|
|000031b0| 6e 74 65 72 72 75 70 74 | 20 50 52 4f 43 45 53 53 |nterrupt| PROCESS|
|000031c0| 20 74 6f 20 73 65 6e 64 | 20 53 45 4e 44 20 69 66 | to send| SEND if|
|000031d0| 20 63 6f 6d 69 6e 74 2d | 63 6f 6e 74 69 6e 75 65 | comint-|continue|
|000031e0| 20 69 73 20 64 65 66 69 | 6e 65 64 20 61 6e 64 0a | is defi|ned and.|
|000031f0| 74 68 65 20 63 75 72 72 | 65 6e 74 20 73 65 6e 64 |the curr|ent send|
|00003200| 20 69 73 20 6e 6f 74 20 | 77 61 69 74 69 6e 67 2e | is not |waiting.|
|00003210| 20 20 4f 74 68 65 72 77 | 69 73 65 2c 20 53 45 4e | Otherw|ise, SEN|
|00003220| 44 20 77 69 6c 6c 20 62 | 65 20 74 68 65 20 6e 65 |D will b|e the ne|
|00003230| 78 74 0a 73 65 6e 64 2e | 22 5d 29 0a 28 66 73 65 |xt.send.|"]).(fse|
|00003240| 74 20 27 63 6f 6d 69 6e | 74 2d 73 65 74 75 70 2d |t 'comin|t-setup-|
|00003250| 69 70 63 20 23 5b 28 26 | 6f 70 74 69 6f 6e 61 6c |ipc #[(&|optional|
|00003260| 20 66 6f 72 63 65 29 20 | 22 c0 c1 21 88 c0 c2 21 | force) |"..!...!|
|00003270| 88 c0 c3 21 88 c0 c4 21 | 88 c0 c5 21 88 c0 c6 21 |...!...!|...!...!|
|00003280| 88 c0 c7 21 88 c0 c8 21 | 88 c0 c9 21 88 c0 ca 21 |...!...!|...!...!|
|00003290| 88 c0 cb 21 88 c0 cc 21 | 88 c0 cd 21 88 c0 ce 21 |...!...!|...!...!|
|000032a0| 88 c0 cf 21 88 c0 d0 21 | 88 c0 d1 21 88 c0 d2 21 |...!...!|...!...!|
|000032b0| 88 0e 13 ac 84 0e 0c ac | 94 d4 89 89 d5 d6 d4 d7 |........|........|
|000032c0| d4 d8 d4 89 42 af 5c 6e | 43 89 16 0c 16 0d d9 70 |....B.\n|C......p|
|000032d0| 21 1e 1a db 0e 1a dc 5c | 22 88 dd 0e 1a de 5c 22 |!......\|".....\"|
|000032e0| 88 29 d1 89 16 1f 87 22 | 20 5b 6d 61 6b 65 2d 6c |.)....."| [make-l|
|000032f0| 6f 63 61 6c 2d 76 61 72 | 69 61 62 6c 65 20 63 6f |ocal-var|iable co|
|00003300| 6d 69 6e 74 2d 73 65 6e | 64 2d 6e 65 77 6c 69 6e |mint-sen|d-newlin|
|00003310| 65 20 63 6f 6d 69 6e 74 | 2d 61 6c 77 61 79 73 2d |e comint|-always-|
|00003320| 73 63 72 6f 6c 6c 20 63 | 6f 6d 69 6e 74 2d 66 69 |scroll c|omint-fi|
|00003330| 78 2d 65 72 72 6f 72 20 | 63 6f 6d 69 6e 74 2d 63 |x-error |comint-c|
|00003340| 6f 6e 74 69 6e 75 65 20 | 63 6f 6d 69 6e 74 2d 69 |ontinue |comint-i|
|00003350| 6e 74 65 72 72 75 70 74 | 2d 72 65 67 65 78 70 20 |nterrupt|-regexp |
|00003360| 63 6f 6d 69 6e 74 2d 65 | 72 72 6f 72 2d 72 65 67 |comint-e|rror-reg|
|00003370| 65 78 70 20 63 6f 6d 69 | 6e 74 2d 6f 75 74 70 75 |exp comi|nt-outpu|
|00003380| 74 2d 66 69 6c 74 65 72 | 20 63 6f 6d 69 6e 74 2d |t-filter| comint-|
|00003390| 69 6e 74 65 72 72 75 70 | 74 2d 73 74 61 72 74 20 |interrup|t-start |
|000033a0| 63 6f 6d 69 6e 74 2d 68 | 61 6e 64 6c 65 72 20 63 |comint-h|andler c|
|000033b0| 6f 6d 69 6e 74 2d 75 70 | 64 61 74 65 2d 73 74 61 |omint-up|date-sta|
|000033c0| 74 75 73 20 63 6f 6d 69 | 6e 74 2d 70 72 6f 6d 70 |tus comi|nt-promp|
|000033d0| 74 2d 73 74 61 74 75 73 | 20 63 6f 6d 69 6e 74 2d |t-status| comint-|
|000033e0| 73 65 6e 64 2d 71 75 65 | 75 65 20 63 6f 6d 69 6e |send-que|ue comin|
|000033f0| 74 2d 65 6e 64 2d 71 75 | 65 75 65 20 63 6f 6d 69 |t-end-qu|eue comi|
|00003400| 6e 74 2d 71 75 65 75 65 | 2d 65 6d 70 74 69 65 64 |nt-queue|-emptied|
|00003410| 20 63 6f 6d 69 6e 74 2d | 6f 75 74 70 75 74 20 63 | comint-|output c|
|00003420| 6f 6d 69 6e 74 2d 65 72 | 72 6f 72 70 20 63 6f 6d |omint-er|rorp com|
|00003430| 69 6e 74 2d 73 74 61 74 | 75 73 20 63 6f 6d 69 6e |int-stat|us comin|
|00003440| 74 2d 61 62 6f 72 74 69 | 6e 67 20 66 6f 72 63 65 |t-aborti|ng force|
|00003450| 20 6e 69 6c 20 72 75 6e | 20 22 54 6f 70 20 4c 65 | nil run| "Top Le|
|00003460| 76 65 6c 22 20 74 20 30 | 20 67 65 74 2d 62 75 66 |vel" t 0| get-buf|
|00003470| 66 65 72 2d 70 72 6f 63 | 65 73 73 20 70 72 6f 63 |fer-proc|ess proc|
|00003480| 65 73 73 20 73 65 74 2d | 70 72 6f 63 65 73 73 2d |ess set-|process-|
|00003490| 66 69 6c 74 65 72 20 63 | 6f 6d 69 6e 74 2d 70 72 |filter c|omint-pr|
|000034a0| 6f 63 65 73 73 2d 66 69 | 6c 74 65 72 20 73 65 74 |ocess-fi|lter set|
|000034b0| 2d 70 72 6f 63 65 73 73 | 2d 73 65 6e 74 69 6e 65 |-process|-sentine|
|000034c0| 6c 20 63 6f 6d 69 6e 74 | 2d 70 72 6f 63 65 73 73 |l comint|-process|
|000034d0| 2d 73 65 6e 74 69 6e 65 | 6c 20 6d 6f 64 65 2d 6c |-sentine|l mode-l|
|000034e0| 69 6e 65 2d 70 72 6f 63 | 65 73 73 5d 20 31 32 20 |ine-proc|ess] 12 |
|000034f0| 22 5c 0a 53 65 74 75 70 | 20 66 6f 72 20 49 50 43 |"\.Setup| for IPC|
|00003500| 20 69 6e 20 74 68 65 20 | 63 75 72 72 65 6e 74 20 | in the |current |
|00003510| 62 75 66 66 65 72 2e 20 | 20 49 66 20 63 61 6c 6c |buffer. | If call|
|00003520| 65 64 20 69 6e 74 65 72 | 61 63 74 69 76 65 6c 79 |ed inter|actively|
|00003530| 2c 0a 66 6f 72 63 65 20 | 63 6f 6d 69 6e 74 2d 73 |,.force |comint-s|
|00003540| 65 6e 64 2d 71 75 65 75 | 65 20 74 6f 20 62 65 20 |end-queu|e to be |
|00003550| 69 6e 69 74 69 61 6c 69 | 7a 65 64 2e 22 20 22 70 |initiali|zed." "p|
|00003560| 22 5d 29 0a 28 66 73 65 | 74 20 27 63 6f 6d 69 6e |"]).(fse|t 'comin|
|00003570| 74 2d 73 65 6e 64 20 23 | 5b 28 70 72 6f 63 65 73 |t-send #|[(proces|
|00003580| 73 20 73 74 72 69 6e 67 | 20 26 6f 70 74 69 6f 6e |s string| &option|
|00003590| 61 6c 20 6e 6f 2d 69 6e | 73 65 72 74 20 77 61 69 |al no-in|sert wai|
|000035a0| 74 20 73 74 61 74 75 73 | 20 6d 65 73 73 61 67 65 |t status| message|
|000035b0| 20 68 61 6e 64 6c 65 72 | 20 61 66 74 65 72 29 20 | handler| after) |
|000035c0| 22 8a c0 09 21 71 88 c2 | 1b 0c 0d 0e 06 0e 07 ae |"...!q..|........|
|000035d0| 81 c8 0e 09 0e 5c 6e c2 | 3d 3f ad 86 0e 5c 6e ae |.....\n.|=?...\n.|
|000035e0| 82 0e 0b cc 89 cd cc 89 | 42 af 5c 6e 1e 0e cf 0e |........|B.\n....|
|000035f0| 0e 21 1e 10 0e 11 0e 12 | 3d 1e 13 0e 12 40 1e 14 |.!......|=....@..|
|00003600| 0e 11 40 1e 15 cf 0e 15 | 21 41 1e 16 cc 1e 17 cc |..@.....|!A......|
|00003610| 16 18 0e 13 ab 96 0e 06 | 3b ac 84 0e 16 ab 8d 0e |........|;.......|
|00003620| 0e 0e 11 42 16 11 d9 09 | 21 88 aa db 0e 06 ab 88 |...B....|!.......|
|00003630| 0e 1a ac 84 0e 16 ab 84 | 0e 13 ab 88 db 09 0e 0e |........|........|
|00003640| 5c 22 88 aa c3 c2 0e 11 | 1e 1c 1e 1d 0e 1a ab a4 |\"......|........|
|00003650| 0e 1d ab a0 0e 1c ab 9c | 0e 1c 40 0e 1e 3d ab 8d |........|..@..=..|
|00003660| 0e 1c 0e 0e 0e 1c 41 42 | a1 88 cc 16 1d 0e 1c 41 |......AB|.......A|
|00003670| 16 1c aa 5c 5c 0e 1d ab | 8f 0e 12 0e 0e a0 88 0e |...\\...|........|
|00003680| 12 0e 14 cc 42 a1 16 12 | 2a 0e 0e 16 1e df 8e cc |....B...|*.......|
|00003690| 1b 0e 06 c2 3d ab 8e 0e | 10 41 ac 89 e0 20 88 e1 |....=...|.A... ..|
|000036a0| cd 21 88 aa 72 0e 10 89 | 16 17 2e 0b 87 22 20 5b |.!..r...|....." [|
|000036b0| 70 72 6f 63 65 73 73 2d | 62 75 66 66 65 72 20 70 |process-|buffer p|
|000036c0| 72 6f 63 65 73 73 20 74 | 20 69 6e 68 69 62 69 74 |rocess t| inhibit|
|000036d0| 2d 71 75 69 74 20 73 74 | 72 69 6e 67 20 6e 6f 2d |-quit st|ring no-|
|000036e0| 69 6e 73 65 72 74 20 77 | 61 69 74 20 73 74 61 74 |insert w|ait stat|
|000036f0| 75 73 20 72 75 6e 20 6d | 65 73 73 61 67 65 20 68 |us run m|essage h|
|00003700| 61 6e 64 6c 65 72 20 63 | 6f 6d 69 6e 74 2d 68 61 |andler c|omint-ha|
|00003710| 6e 64 6c 65 72 20 6e 69 | 6c 20 30 20 73 65 6e 64 |ndler ni|l 0 send|
|00003720| 20 63 6f 6d 69 6e 74 2d | 73 65 6e 64 2d 72 65 73 | comint-|send-res|
|00003730| 75 6c 74 73 20 70 6f 69 | 6e 74 65 72 20 63 6f 6d |ults poi|nter com|
|00003740| 69 6e 74 2d 73 65 6e 64 | 2d 71 75 65 75 65 20 63 |int-send|-queue c|
|00003750| 6f 6d 69 6e 74 2d 65 6e | 64 2d 71 75 65 75 65 20 |omint-en|d-queue |
|00003760| 74 6f 70 2d 6c 65 76 65 | 6c 20 65 6e 64 20 63 75 |top-leve|l end cu|
|00003770| 72 72 65 6e 74 20 70 72 | 6f 6d 70 74 20 6f 6b 20 |rrent pr|ompt ok |
|00003780| 63 6f 6d 69 6e 74 2d 61 | 62 6f 72 74 69 6e 67 20 |comint-a|borting |
|00003790| 63 6f 6d 69 6e 74 2d 64 | 69 73 70 61 74 63 68 2d |comint-d|ispatch-|
|000037a0| 73 65 6e 64 20 61 66 74 | 65 72 20 63 6f 6d 69 6e |send aft|er comin|
|000037b0| 74 2d 69 6e 74 65 72 72 | 75 70 74 20 6e 65 78 74 |t-interr|upt next|
|000037c0| 20 6c 6f 6f 6b 69 6e 67 | 20 63 6f 6d 69 6e 74 2d | looking| comint-|
|000037d0| 6c 61 73 74 2d 73 65 6e | 64 20 28 28 62 79 74 65 |last-sen|d ((byte|
|000037e0| 2d 63 6f 64 65 20 22 08 | ac a9 09 5c 6e 40 3d ab |-code ".|...\n@=.|
|000037f0| 9e c3 c4 c3 c5 c6 c3 09 | c7 09 21 41 40 c3 89 89 |........|..!A@...|
|00003800| 42 af 5c 6e 89 1d 5c 6e | 41 42 12 c8 20 88 29 aa |B.\n..\n|AB.. .).|
|00003810| 85 c9 09 5c 6e 5c 22 12 | c3 87 22 20 5b 6f 6b 20 |...\n\".|.." [ok |
|00003820| 73 65 6e 64 20 63 6f 6d | 69 6e 74 2d 73 65 6e 64 |send com|int-send|
|00003830| 2d 71 75 65 75 65 20 6e | 69 6c 20 74 20 69 6e 74 |-queue n|il t int|
|00003840| 65 72 72 75 70 74 20 22 | 49 6e 74 65 72 72 75 70 |errupt "|Interrup|
|00003850| 74 22 20 63 6f 6d 69 6e | 74 2d 73 65 6e 64 2d 76 |t" comin|t-send-v|
|00003860| 61 72 69 61 62 6c 65 73 | 20 63 6f 6d 69 6e 74 2d |ariables| comint-|
|00003870| 69 6e 74 65 72 72 75 70 | 74 2d 73 75 62 6a 6f 62 |interrup|t-subjob|
|00003880| 20 64 65 6c 71 5d 20 31 | 32 29 29 20 61 63 63 65 | delq] 1|2)) acce|
|00003890| 70 74 2d 70 72 6f 63 65 | 73 73 2d 6f 75 74 70 75 |pt-proce|ss-outpu|
|000038a0| 74 20 73 69 74 2d 66 6f | 72 5d 20 31 31 20 22 5c |t sit-fo|r] 11 "\|
|000038b0| 0a 44 6f 20 61 20 73 65 | 6e 64 20 74 6f 20 50 52 |.Do a se|nd to PR|
|000038c0| 4f 43 45 53 53 20 6f 66 | 20 53 54 52 49 4e 47 2e |OCESS of| STRING.|
|000038d0| 20 20 4f 70 74 69 6f 6e | 61 6c 6c 79 20 73 70 65 | Option|ally spe|
|000038e0| 63 69 66 79 20 4e 4f 2d | 49 4e 53 45 52 54 2c 0a |cify NO-|INSERT,.|
|000038f0| 57 41 49 54 2c 20 53 54 | 41 54 55 53 2c 20 4d 45 |WAIT, ST|ATUS, ME|
|00003900| 53 53 41 47 45 2c 20 48 | 41 4e 44 4c 45 52 20 61 |SSAGE, H|ANDLER a|
|00003910| 6e 64 20 41 46 54 45 52 | 2e 20 20 57 69 74 68 6f |nd AFTER|. Witho|
|00003920| 75 74 20 6f 70 74 69 6f | 6e 61 6c 20 61 72 67 75 |ut optio|nal argu|
|00003930| 6d 65 6e 74 73 2c 0a 74 | 68 69 73 20 69 73 20 6a |ments,.t|his is j|
|00003940| 75 73 74 20 6c 69 6b 65 | 20 70 72 6f 63 65 73 73 |ust like| process|
|00003950| 2d 73 65 6e 64 2d 73 74 | 72 69 6e 67 2e 20 20 49 |-send-st|ring. I|
|00003960| 66 20 53 54 52 49 4e 47 | 20 69 73 20 6e 6f 74 20 |f STRING| is not |
|00003970| 61 20 73 74 72 69 6e 67 | 2c 0a 74 68 65 6e 20 69 |a string|,.then i|
|00003980| 74 20 69 73 20 61 73 73 | 75 6d 65 64 20 74 6f 20 |t is ass|umed to |
|00003990| 62 65 20 61 6e 20 65 6c | 69 73 70 20 66 75 6e 63 |be an el|isp func|
|000039a0| 74 69 6f 6e 20 61 6e 64 | 20 77 69 6c 6c 20 62 65 |tion and| will be|
|000039b0| 20 63 61 6c 6c 65 64 20 | 77 68 65 6e 0a 65 6e 63 | called |when.enc|
|000039c0| 6f 75 6e 74 65 72 65 64 | 20 69 6e 20 74 68 65 20 |ountered| in the |
|000039d0| 73 65 6e 64 20 71 75 65 | 75 65 2e 20 20 54 68 65 |send que|ue. The|
|000039e0| 20 73 65 6e 64 20 77 69 | 6c 6c 20 62 65 20 74 68 | send wi|ll be th|
|000039f0| 65 20 6e 65 78 74 20 6f | 6e 65 20 69 66 20 57 41 |e next o|ne if WA|
|00003a00| 49 54 2c 0a 61 66 74 65 | 72 20 74 68 65 20 6c 61 |IT,.afte|r the la|
|00003a10| 73 74 20 73 65 6e 64 20 | 69 66 20 41 46 54 45 52 |st send |if AFTER|
|00003a20| 2c 20 6f 74 68 65 72 77 | 69 73 65 20 69 74 20 77 |, otherw|ise it w|
|00003a30| 69 6c 6c 20 62 65 20 70 | 75 74 20 61 74 20 74 68 |ill be p|ut at th|
|00003a40| 65 20 65 6e 64 20 6f 66 | 0a 74 68 65 20 71 75 65 |e end of|.the que|
|00003a50| 75 65 2e 20 49 66 20 57 | 41 49 54 20 69 73 20 6e |ue. If W|AIT is n|
|00003a60| 6f 6e 2d 4e 49 4c 20 6f | 72 20 6f 6e 20 74 68 65 |on-NIL o|r on the|
|00003a70| 20 66 69 72 73 74 20 73 | 65 6e 64 20 74 6f 20 61 | first s|end to a|
|00003a80| 20 62 75 73 79 20 69 6e | 66 65 72 69 6f 72 2c 0a | busy in|ferior,.|
|00003a90| 74 68 65 20 69 6e 66 65 | 72 69 6f 72 20 77 69 6c |the infe|rior wil|
|00003aa0| 6c 20 62 65 20 69 6e 74 | 65 72 72 75 70 74 65 64 |l be int|errupted|
|00003ab0| 20 69 66 20 70 6f 73 73 | 69 62 6c 65 2c 20 73 65 | if poss|ible, se|
|00003ac0| 65 20 63 6f 6d 69 6e 74 | 2d 69 6e 74 65 72 72 75 |e comint|-interru|
|00003ad0| 70 74 20 66 6f 72 0a 6d | 6f 72 65 20 69 6e 66 6f |pt for.m|ore info|
|00003ae0| 72 6d 61 74 69 6f 6e 2e | 20 20 4f 6e 63 65 20 74 |rmation.| Once t|
|00003af0| 68 65 20 73 65 6e 64 20 | 69 73 20 73 65 6e 74 2c |he send |is sent,|
|00003b00| 20 74 68 65 20 70 72 6f | 63 65 73 73 20 73 74 61 | the pro|cess sta|
|00003b10| 74 75 73 20 77 69 6c 6c | 20 62 65 0a 53 54 41 54 |tus will| be.STAT|
|00003b20| 55 53 20 6f 72 20 27 72 | 75 6e 2e 20 20 4f 75 74 |US or 'r|un. Out|
|00003b30| 70 75 74 20 6f 66 20 74 | 68 65 20 73 65 6e 64 20 |put of t|he send |
|00003b40| 77 69 6c 6c 20 62 65 20 | 69 6e 73 65 72 74 65 64 |will be |inserted|
|00003b50| 20 69 6e 74 6f 20 74 68 | 65 20 70 72 6f 63 65 73 | into th|e proces|
|00003b60| 73 0a 62 75 66 66 65 72 | 20 75 6e 6c 65 73 73 20 |s.buffer| unless |
|00003b70| 4e 4f 2d 49 4e 53 45 52 | 54 2e 20 20 54 68 69 73 |NO-INSER|T. This|
|00003b80| 20 66 75 6e 63 74 69 6f | 6e 20 72 65 74 75 72 6e | functio|n return|
|00003b90| 73 20 61 20 6c 69 73 74 | 20 6f 66 20 28 72 65 73 |s a list| of (res|
|00003ba0| 75 6c 74 20 2e 0a 70 72 | 6f 6d 70 74 29 2e 20 20 |ult ..pr|ompt). |
|00003bb0| 49 66 20 57 41 49 54 20 | 69 73 20 61 20 73 74 72 |If WAIT |is a str|
|00003bc0| 69 6e 67 2c 20 6f 75 74 | 70 75 74 20 77 69 6c 6c |ing, out|put will|
|00003bd0| 20 62 65 20 69 6e 73 65 | 72 74 65 64 20 75 6e 74 | be inse|rted unt|
|00003be0| 69 6c 20 6f 6e 65 0a 6d | 61 74 63 68 65 73 20 74 |il one.m|atches t|
|00003bf0| 68 65 20 73 74 72 69 6e | 67 20 61 73 20 61 20 72 |he strin|g as a r|
|00003c00| 65 67 65 78 70 2e 20 20 | 49 66 20 57 41 49 54 20 |egexp. |If WAIT |
|00003c10| 69 73 20 54 2c 20 74 68 | 65 6e 20 50 52 4f 4d 50 |is T, th|en PROMP|
|00003c20| 54 20 77 69 6c 6c 20 68 | 61 76 65 0a 74 68 65 20 |T will h|ave.the |
|00003c30| 70 72 6f 6d 70 74 20 77 | 68 65 6e 20 66 69 6e 69 |prompt w|hen fini|
|00003c40| 73 68 65 64 20 61 6e 64 | 20 52 45 53 55 4c 54 20 |shed and| RESULT |
|00003c50| 77 69 6c 6c 20 68 61 76 | 65 20 74 68 65 20 6f 75 |will hav|e the ou|
|00003c60| 74 70 75 74 2e 20 20 49 | 66 20 50 52 4f 4d 50 54 |tput. I|f PROMPT|
|00003c70| 0a 69 73 20 61 20 6c 69 | 73 74 2c 20 74 68 65 6e |.is a li|st, then|
|00003c80| 20 74 68 65 72 65 20 77 | 61 73 20 61 6e 20 65 72 | there w|as an er|
|00003c90| 72 6f 72 2e 20 20 49 66 | 20 57 41 49 54 20 69 73 |ror. If| WAIT is|
|00003ca0| 20 6e 6f 74 20 54 2c 20 | 74 68 65 6e 20 74 68 65 | not T, |then the|
|00003cb0| 20 6c 69 73 74 0a 72 65 | 74 75 72 6e 65 64 20 77 | list.re|turned w|
|00003cc0| 69 6c 6c 20 63 68 61 6e | 67 65 20 77 68 65 6e 20 |ill chan|ge when |
|00003cd0| 74 68 65 20 73 65 6e 64 | 20 68 61 73 20 62 65 65 |the send| has bee|
|00003ce0| 6e 20 73 65 6e 74 20 61 | 6e 64 20 69 73 20 66 69 |n sent a|nd is fi|
|00003cf0| 6e 69 73 68 65 64 2e 20 | 20 49 66 0a 48 41 4e 44 |nished. | If.HAND|
|00003d00| 4c 45 52 20 69 73 20 6e | 69 6c 20 69 74 20 77 69 |LER is n|il it wi|
|00003d10| 6c 6c 20 62 65 20 73 65 | 74 20 74 6f 20 63 6f 6d |ll be se|t to com|
|00003d20| 69 6e 74 2d 68 61 6e 64 | 6c 65 72 2e 20 20 49 66 |int-hand|ler. If|
|00003d30| 20 69 74 20 69 73 20 54 | 2c 20 65 72 72 6f 72 73 | it is T|, errors|
|00003d40| 0a 77 69 6c 6c 20 62 65 | 20 69 67 6e 6f 72 65 64 |.will be| ignored|
|00003d50| 2e 20 20 57 68 65 6e 20 | 61 20 73 65 6e 64 20 69 |. When |a send i|
|00003d60| 73 20 66 69 6e 69 73 68 | 65 64 2c 20 69 74 20 63 |s finish|ed, it c|
|00003d70| 61 6c 6c 73 20 68 61 6e | 64 6c 65 72 20 77 69 74 |alls han|dler wit|
|00003d80| 68 0a 28 65 72 72 6f 72 | 2d 70 20 57 41 49 54 20 |h.(error|-p WAIT |
|00003d90| 4d 45 53 53 41 47 45 20 | 6f 75 74 70 75 74 20 70 |MESSAGE |output p|
|00003da0| 72 6f 6d 70 74 29 20 77 | 68 69 63 68 20 64 65 63 |rompt) w|hich dec|
|00003db0| 69 64 65 73 20 77 68 61 | 74 20 74 6f 20 64 6f 20 |ides wha|t to do |
|00003dc0| 77 69 74 68 0a 74 68 65 | 20 6f 75 74 70 75 74 2e |with.the| output.|
|00003dd0| 0a 0a 56 41 52 49 41 42 | 4c 45 53 3a 0a 0a 63 6f |..VARIAB|LES:..co|
|00003de0| 6d 69 6e 74 2d 61 6c 77 | 61 79 73 2d 73 63 72 6f |mint-alw|ays-scro|
|00003df0| 6c 6c 20 77 69 6c 6c 20 | 63 61 75 73 65 20 61 6c |ll will |cause al|
|00003e00| 6c 20 70 72 6f 63 65 73 | 73 20 6f 75 74 70 75 74 |l proces|s output|
|00003e10| 20 74 6f 20 62 65 20 76 | 69 73 69 62 6c 65 2e 0a | to be v|isible..|
|00003e20| 0a 63 6f 6d 69 6e 74 2d | 66 69 78 2d 65 72 72 6f |.comint-|fix-erro|
|00003e30| 72 20 69 73 20 74 68 65 | 20 73 74 72 69 6e 67 20 |r is the| string |
|00003e40| 75 73 65 64 20 74 6f 20 | 66 69 78 20 65 72 72 6f |used to |fix erro|
|00003e50| 72 73 2e 0a 0a 63 6f 6d | 69 6e 74 2d 63 6f 6e 74 |rs...com|int-cont|
|00003e60| 69 6e 75 65 20 69 73 20 | 74 68 65 20 73 74 72 69 |inue is |the stri|
|00003e70| 6e 67 20 75 73 65 64 20 | 74 6f 20 63 6f 6e 74 69 |ng used |to conti|
|00003e80| 6e 75 65 20 61 66 74 65 | 72 20 61 6e 20 69 6e 74 |nue afte|r an int|
|00003e90| 65 72 72 75 70 74 2e 0a | 0a 63 6f 6d 69 6e 74 2d |errupt..|.comint-|
|00003ea0| 69 6e 74 65 72 72 75 70 | 74 2d 72 65 67 65 78 70 |interrup|t-regexp|
|00003eb0| 20 69 73 20 74 68 65 20 | 64 65 66 61 75 6c 74 20 | is the |default |
|00003ec0| 72 65 67 65 78 70 20 74 | 6f 20 75 73 65 20 69 6e |regexp t|o use in|
|00003ed0| 20 66 69 6e 64 69 6e 67 | 20 74 68 65 0a 73 74 61 | finding| the.sta|
|00003ee0| 72 74 20 6f 66 20 74 68 | 65 20 69 6e 74 65 72 72 |rt of th|e interr|
|00003ef0| 75 70 74 20 74 65 78 74 | 2e 20 20 0a 0a 63 6f 6d |upt text|. ..com|
|00003f00| 69 6e 74 2d 65 72 72 6f | 72 2d 72 65 67 65 78 70 |int-erro|r-regexp|
|00003f10| 20 77 69 6c 6c 20 73 65 | 74 20 63 6f 6d 69 6e 74 | will se|t comint|
|00003f20| 2d 65 72 72 6f 72 70 20 | 69 66 20 66 6f 75 6e 64 |-errorp |if found|
|00003f30| 20 69 6e 20 74 68 65 20 | 70 72 6f 63 65 73 73 20 | in the |process |
|00003f40| 6f 75 74 70 75 74 2e 20 | 20 0a 0a 46 55 4e 43 54 |output. | ..FUNCT|
|00003f50| 49 4f 4e 53 3a 20 20 45 | 61 63 68 20 6f 66 20 74 |IONS: E|ach of t|
|00003f60| 68 65 20 66 75 6e 63 74 | 69 6f 6e 73 20 69 6e 20 |he funct|ions in |
|00003f70| 74 68 65 73 65 20 76 61 | 72 69 61 62 6c 65 73 20 |these va|riables |
|00003f80| 69 73 20 63 61 6c 6c 65 | 64 20 77 69 74 68 0a 74 |is calle|d with.t|
|00003f90| 68 65 20 62 75 66 66 65 | 72 20 73 65 74 20 74 6f |he buffe|r set to|
|00003fa0| 20 74 68 65 20 61 70 70 | 72 6f 70 72 69 61 74 65 | the app|ropriate|
|00003fb0| 20 70 72 6f 63 65 73 73 | 20 62 75 66 66 65 72 20 | process| buffer |
|00003fc0| 61 6e 64 0a 63 6f 6d 69 | 6e 74 2d 6f 72 69 67 69 |and.comi|nt-origi|
|00003fd0| 6e 61 6c 2d 62 75 66 66 | 65 72 20 62 6f 75 6e 64 |nal-buff|er bound|
|00003fe0| 20 74 6f 20 74 68 65 20 | 62 75 66 66 65 72 20 63 | to the |buffer c|
|00003ff0| 75 72 72 65 6e 74 20 77 | 68 65 6e 20 74 68 65 20 |urrent w|hen the |
|00004000| 70 72 6f 63 65 73 73 0a | 66 69 6c 74 65 72 20 77 |process.|filter w|
|00004010| 61 73 20 63 61 6c 6c 65 | 64 2e 20 20 0a 0a 63 6f |as calle|d. ..co|
|00004020| 6d 69 6e 74 2d 75 70 64 | 61 74 65 2d 73 74 61 74 |mint-upd|ate-stat|
|00004030| 75 73 20 69 73 20 61 20 | 66 75 6e 63 74 69 6f 6e |us is a |function|
|00004040| 20 28 73 74 61 74 75 73 | 29 20 74 68 61 74 20 69 | (status|) that i|
|00004050| 73 20 63 61 6c 6c 65 64 | 20 65 61 63 68 20 74 69 |s called| each ti|
|00004060| 6d 65 0a 74 68 65 20 70 | 72 6f 63 65 73 73 20 73 |me.the p|rocess s|
|00004070| 74 61 74 75 73 20 63 68 | 61 6e 67 65 73 2e 0a 0a |tatus ch|anges...|
|00004080| 63 6f 6d 69 6e 74 2d 70 | 72 6f 6d 70 74 2d 73 74 |comint-p|rompt-st|
|00004090| 61 74 75 73 20 69 73 20 | 63 61 6c 6c 65 64 20 77 |atus is |called w|
|000040a0| 69 74 68 20 74 68 65 20 | 6f 6c 64 20 70 72 6f 6d |ith the |old prom|
|000040b0| 70 74 20 61 6e 64 20 74 | 68 65 20 6c 61 73 74 20 |pt and t|he last |
|000040c0| 6c 69 6e 65 2e 0a 49 74 | 20 73 68 6f 75 6c 64 20 |line..It| should |
|000040d0| 72 65 74 75 72 6e 20 27 | 65 72 72 6f 72 20 69 66 |return '|error if|
|000040e0| 20 74 68 65 20 6c 61 73 | 74 20 6c 69 6e 65 20 69 | the las|t line i|
|000040f0| 73 20 61 6e 20 65 72 72 | 6f 72 2c 20 54 20 69 66 |s an err|or, T if|
|00004100| 20 69 74 20 69 73 20 61 | 0a 70 72 6f 6d 70 74 20 | it is a|.prompt |
|00004110| 61 6e 64 20 6e 69 6c 20 | 6f 74 68 65 72 77 69 73 |and nil |otherwis|
|00004120| 65 2e 20 20 49 74 20 73 | 68 6f 75 6c 64 20 61 6c |e. It s|hould al|
|00004130| 73 6f 20 75 70 64 61 74 | 65 20 74 68 65 20 70 72 |so updat|e the pr|
|00004140| 6f 63 65 73 73 20 73 74 | 61 74 75 73 20 62 79 0a |ocess st|atus by.|
|00004150| 66 75 6e 63 61 6c 6c 69 | 6e 67 20 63 6f 6d 69 6e |funcalli|ng comin|
|00004160| 74 2d 75 70 64 61 74 65 | 2d 73 74 61 74 75 73 2e |t-update|-status.|
|00004170| 0a 0a 63 6f 6d 69 6e 74 | 2d 6f 75 74 70 75 74 2d |..comint|-output-|
|00004180| 66 69 6c 74 65 72 20 69 | 73 20 61 20 66 75 6e 63 |filter i|s a func|
|00004190| 74 69 6f 6e 20 28 6f 75 | 74 70 75 74 29 20 66 6f |tion (ou|tput) fo|
|000041a0| 72 20 73 65 6e 64 73 20 | 77 69 74 68 20 4e 4f 2d |r sends |with NO-|
|000041b0| 49 4e 53 45 52 54 2e 0a | 49 74 20 73 68 6f 75 6c |INSERT..|It shoul|
|000041c0| 64 20 72 65 74 75 72 6e | 20 74 68 65 20 6f 75 74 |d return| the out|
|000041d0| 70 75 74 20 73 74 72 69 | 6e 67 2e 0a 0a 63 6f 6d |put stri|ng...com|
|000041e0| 69 6e 74 2d 69 6e 74 65 | 72 72 75 70 74 2d 73 74 |int-inte|rrupt-st|
|000041f0| 61 72 74 20 69 73 20 61 | 20 66 75 6e 63 74 69 6f |art is a| functio|
|00004200| 6e 20 28 6f 75 74 70 75 | 74 29 20 74 68 61 74 20 |n (outpu|t) that |
|00004210| 72 65 74 75 72 6e 73 20 | 74 68 65 20 73 74 61 72 |returns |the star|
|00004220| 74 0a 6f 66 20 74 68 65 | 20 69 6e 74 65 72 72 75 |t.of the| interru|
|00004230| 70 74 20 74 65 78 74 20 | 69 6e 20 6f 75 74 70 75 |pt text |in outpu|
|00004240| 74 20 75 73 69 6e 67 20 | 63 6f 6d 69 6e 74 2d 69 |t using |comint-i|
|00004250| 6e 74 65 72 72 75 70 74 | 2d 72 65 67 65 78 70 20 |nterrupt|-regexp |
|00004260| 74 6f 20 66 69 6e 64 20 | 69 74 2e 22 5d 29 0a 28 |to find |it."]).(|
|00004270| 66 73 65 74 20 27 63 6f | 6d 69 6e 74 2d 73 65 6e |fset 'co|mint-sen|
|00004280| 64 2d 63 6f 64 65 20 23 | 5b 28 70 72 6f 63 65 73 |d-code #|[(proces|
|00004290| 73 20 63 6f 64 65 29 20 | 22 c0 09 5c 6e c3 89 89 |s code) |"..\n...|
|000042a0| 89 89 c4 26 08 87 22 20 | 5b 63 6f 6d 69 6e 74 2d |...&.." |[comint-|
|000042b0| 73 65 6e 64 20 70 72 6f | 63 65 73 73 20 63 6f 64 |send pro|cess cod|
|000042c0| 65 20 6e 69 6c 20 74 5d | 20 39 20 22 5c 0a 45 78 |e nil t]| 9 "\.Ex|
|000042d0| 65 63 75 74 65 20 61 66 | 74 65 72 20 74 68 65 20 |ecute af|ter the |
|000042e0| 70 72 65 76 69 6f 75 73 | 20 73 65 6e 64 20 69 6e |previous| send in|
|000042f0| 20 50 52 4f 43 45 53 53 | 20 71 75 65 75 65 20 43 | PROCESS| queue C|
|00004300| 4f 44 45 2e 20 59 6f 75 | 20 64 6f 20 6e 6f 74 0a |ODE. You| do not.|
|00004310| 77 61 6e 74 20 74 6f 20 | 65 78 65 63 75 74 65 20 |want to |execute |
|00004320| 73 79 6e 63 68 72 6f 6e | 6f 75 73 20 73 65 6e 64 |synchron|ous send|
|00004330| 73 20 69 6e 20 74 68 65 | 20 63 6f 64 65 20 6f 72 |s in the| code or|
|00004340| 20 69 74 20 77 69 6c 6c | 20 6c 6f 63 6b 20 75 70 | it will| lock up|
|00004350| 2e 20 22 5d 29 0a 28 66 | 73 65 74 20 27 63 6f 6d |. "]).(f|set 'com|
|00004360| 69 6e 74 2d 64 65 66 61 | 75 6c 74 2d 73 65 6e 64 |int-defa|ult-send|
|00004370| 20 23 5b 28 70 72 6f 63 | 65 73 73 20 73 74 72 69 | #[(proc|ess stri|
|00004380| 6e 67 29 20 22 8a c0 09 | 21 71 88 5c 6e 40 89 1b |ng) "...|!q.\n@..|
|00004390| 40 1c 5c 6e 40 41 41 41 | 41 0d a0 88 0e 06 5c 6e |@.\n@AAA|A.....\n|
|000043a0| 3d ab 9b 0e 07 c8 21 88 | c9 0e 06 40 21 ca a0 88 |=.....!.|...@!...|
|000043b0| cb 0e 06 40 21 cc a1 88 | cd 09 0d 5c 22 aa 90 0b |...@!...|...\"...|
|000043c0| 0c ab 8a 0c 0e 0e ad 81 | cf 0d 51 aa 81 0d a0 2b |........|..Q....+|
|000043d0| 87 22 20 5b 70 72 6f 63 | 65 73 73 2d 62 75 66 66 |." [proc|ess-buff|
|000043e0| 65 72 20 70 72 6f 63 65 | 73 73 20 63 6f 6d 69 6e |er proce|ss comin|
|000043f0| 74 2d 65 6e 64 2d 71 75 | 65 75 65 20 74 6f 70 20 |t-end-qu|eue top |
|00004400| 6f 6c 64 20 73 74 72 69 | 6e 67 20 63 6f 6d 69 6e |old stri|ng comin|
|00004410| 74 2d 73 65 6e 64 2d 71 | 75 65 75 65 20 63 6f 6d |t-send-q|ueue com|
|00004420| 69 6e 74 2d 75 70 64 61 | 74 65 2d 73 74 61 74 75 |int-upda|te-statu|
|00004430| 73 20 72 75 6e 20 63 6f | 6d 69 6e 74 2d 73 65 6e |s run co|mint-sen|
|00004440| 64 2d 76 61 72 69 61 62 | 6c 65 73 20 74 20 63 6f |d-variab|les t co|
|00004450| 6d 69 6e 74 2d 73 65 6e | 64 2d 72 65 73 75 6c 74 |mint-sen|d-result|
|00004460| 73 20 6e 69 6c 20 63 6f | 6d 69 6e 74 2d 73 65 6e |s nil co|mint-sen|
|00004470| 64 65 72 20 63 6f 6d 69 | 6e 74 2d 73 65 6e 64 2d |der comi|nt-send-|
|00004480| 6e 65 77 6c 69 6e 65 20 | 22 5c 6e 22 5d 20 35 20 |newline |"\n"] 5 |
|00004490| 22 5c 0a 53 65 6e 64 20 | 74 6f 20 50 52 4f 43 45 |"\.Send |to PROCE|
|000044a0| 53 53 20 74 6f 70 2d 6c | 65 76 65 6c 2c 20 53 54 |SS top-l|evel, ST|
|000044b0| 52 49 4e 47 2e 22 5d 29 | 0a 28 66 73 65 74 20 27 |RING."])|.(fset '|
|000044c0| 63 6f 6d 69 6e 74 2d 73 | 79 6e 63 20 23 5b 28 70 |comint-s|ync #[(p|
|000044d0| 72 6f 63 65 73 73 20 73 | 74 61 72 74 20 73 74 61 |rocess s|tart sta|
|000044e0| 72 74 2d 72 65 67 65 78 | 70 20 65 6e 64 20 65 6e |rt-regex|p end en|
|000044f0| 64 2d 72 65 67 65 78 70 | 29 20 22 c0 09 5c 6e c3 |d-regexp|) "..\n.|
|00004500| 0c c5 c6 c7 26 07 88 c0 | 09 0e 08 c9 0e 5c 6e c5 |....&...|.....\n.|
|00004510| cb cc 26 07 87 22 20 5b | 63 6f 6d 69 6e 74 2d 73 |..&.." [|comint-s|
|00004520| 65 6e 64 20 70 72 6f 63 | 65 73 73 20 73 74 61 72 |end proc|ess star|
|00004530| 74 20 6e 69 6c 20 73 74 | 61 72 74 2d 72 65 67 65 |t nil st|art-rege|
|00004540| 78 70 20 73 79 6e 63 20 | 22 53 74 61 72 74 20 73 |xp sync |"Start s|
|00004550| 79 6e 63 22 20 23 5b 28 | 65 72 72 6f 72 2d 70 20 |ync" #[(|error-p |
|00004560| 77 61 69 74 20 6d 65 73 | 73 61 67 65 20 6f 75 74 |wait mes|sage out|
|00004570| 70 75 74 20 70 72 6f 6d | 70 74 29 20 22 c0 09 5c |put prom|pt) "..\|
|00004580| 6e 5c 22 ac 89 c3 c4 70 | 21 0d 40 40 5c 22 88 c6 |n\"....p|!.@@\"..|
|00004590| 87 22 20 5b 73 74 72 69 | 6e 67 2d 6d 61 74 63 68 |." [stri|ng-match|
|000045a0| 20 77 61 69 74 20 6f 75 | 74 70 75 74 20 63 6f 6d | wait ou|tput com|
|000045b0| 69 6e 74 2d 73 65 6e 64 | 65 72 20 67 65 74 2d 62 |int-send|er get-b|
|000045c0| 75 66 66 65 72 2d 70 72 | 6f 63 65 73 73 20 63 6f |uffer-pr|ocess co|
|000045d0| 6d 69 6e 74 2d 73 65 6e | 64 2d 71 75 65 75 65 20 |mint-sen|d-queue |
|000045e0| 6e 69 6c 5d 20 33 5d 20 | 65 6e 64 20 74 20 65 6e |nil] 3] |end t en|
|000045f0| 64 2d 72 65 67 65 78 70 | 20 22 45 6e 64 20 73 79 |d-regexp| "End sy|
|00004600| 6e 63 22 20 28 6c 61 6d | 62 64 61 20 28 26 72 65 |nc" (lam|bda (&re|
|00004610| 73 74 20 61 72 67 73 29 | 29 5d 20 38 20 22 5c 0a |st args)|)] 8 "\.|
|00004620| 53 79 6e 63 68 72 6f 6e | 69 7a 65 20 77 69 74 68 |Synchron|ize with|
|00004630| 20 50 52 4f 43 45 53 53 | 20 6f 75 74 70 75 74 20 | PROCESS| output |
|00004640| 73 74 72 65 61 6d 2e 20 | 20 53 54 41 52 54 20 77 |stream. | START w|
|00004650| 69 6c 6c 20 62 65 20 73 | 65 6e 74 20 77 69 74 68 |ill be s|ent with|
|00004660| 0a 65 61 63 68 20 70 72 | 6f 6d 70 74 20 72 65 63 |.each pr|ompt rec|
|00004670| 65 69 76 65 64 20 75 6e | 74 69 6c 20 53 54 41 52 |eived un|til STAR|
|00004680| 54 2d 52 45 47 45 58 50 | 20 73 68 6f 77 73 20 75 |T-REGEXP| shows u|
|00004690| 70 20 69 6e 20 74 68 65 | 20 73 74 72 65 61 6d 2e |p in the| stream.|
|000046a0| 20 20 54 68 65 6e 0a 45 | 4e 44 20 77 69 6c 6c 20 | Then.E|ND will |
|000046b0| 62 65 20 73 65 6e 74 20 | 61 6e 64 20 61 6c 6c 20 |be sent |and all |
|000046c0| 6f 75 74 70 75 74 20 77 | 69 6c 6c 20 62 65 20 64 |output w|ill be d|
|000046d0| 69 73 63 61 72 64 65 64 | 20 75 6e 74 69 6c 20 45 |iscarded| until E|
|000046e0| 4e 44 2d 52 45 47 45 58 | 50 0a 73 68 6f 77 73 20 |ND-REGEX|P.shows |
|000046f0| 75 70 20 69 6e 20 74 68 | 65 20 6f 75 74 70 75 74 |up in th|e output|
|00004700| 20 73 74 72 65 61 6d 2e | 22 5d 29 0a 28 66 73 65 | stream.|"]).(fse|
|00004710| 74 20 27 63 6f 6d 69 6e | 74 2d 61 62 6f 72 74 2d |t 'comin|t-abort-|
|00004720| 73 65 6e 64 73 20 23 5b | 28 26 6f 70 74 69 6f 6e |sends #[|(&option|
|00004730| 61 6c 20 70 72 6f 63 65 | 73 73 29 20 22 8a 08 ae |al proce|ss) "...|
|00004740| 83 c1 70 21 10 c2 08 21 | 71 88 c3 14 0d 0e 06 3d |..p!...!|q......=|
|00004750| 3f 85 f5 00 c3 1e 07 0d | 40 1e 08 c9 0e 08 21 1e |?.......|@.....!.|
|00004760| 5c 6e 0d 1e 0b cc 1e 0d | 0e 5c 6e 40 ad 86 ce 0e |\n......|.\n@....|
|00004770| 08 21 41 3f 89 1e 0f ab | b1 0e 5c 6e 40 3a ab 91 |.!A?....|..\n@:..|
|00004780| 0e 08 43 16 0d 0e 08 41 | 41 41 41 41 d0 a0 88 aa |..C....A|AAAA....|
|00004790| 9a cc c3 cc cf d1 d2 0e | 08 c9 0e 08 21 41 40 cc |........|....!A@.|
|000047a0| 89 89 42 af 5c 6e 43 16 | 0d d3 20 88 8a d4 d5 21 |..B.\nC.|.. ....!|
|000047b0| 71 88 65 64 7c 88 29 0e | 0b 0e 06 3d ac c3 0e 0b |q.ed|.).|...=....|
|000047c0| 40 89 1e 08 41 41 41 41 | 40 ab 8e 8a d5 71 88 d6 |@...AAAA|@....q..|
|000047d0| 0e 08 21 63 88 d7 63 88 | 29 0e 18 ab 9c c9 0e 08 |..!c..c.|).......|
|000047e0| 21 40 3b ab 94 0e 18 c3 | cc d9 da cc 89 89 db cc |!@;.....|........|
|000047f0| 89 42 af 5c 6e 0e 0d 42 | 16 0d 0e 0b 41 16 0b 29 |.B.\n..B|....A..)|
|00004800| aa 36 dc d5 21 88 0e 06 | 40 cc a0 88 dd 0e 06 40 |.6..!...|@......@|
|00004810| 0e 0d 42 21 89 15 89 1e | 0b 41 ab 88 0e 0b 41 89 |..B!....|.A....A.|
|00004820| 16 0b aa 75 0e 0b 29 16 | 06 de df 21 88 0e 0f 3f |...u..).|...!...?|
|00004830| ad 83 e0 08 21 2e 06 29 | 87 22 20 5b 70 72 6f 63 |....!..)|." [proc|
|00004840| 65 73 73 20 67 65 74 2d | 62 75 66 66 65 72 2d 70 |ess get-|buffer-p|
|00004850| 72 6f 63 65 73 73 20 70 | 72 6f 63 65 73 73 2d 62 |rocess p|rocess-b|
|00004860| 75 66 66 65 72 20 74 20 | 63 6f 6d 69 6e 74 2d 61 |uffer t |comint-a|
|00004870| 62 6f 72 74 69 6e 67 20 | 63 6f 6d 69 6e 74 2d 73 |borting |comint-s|
|00004880| 65 6e 64 2d 71 75 65 75 | 65 20 63 6f 6d 69 6e 74 |end-queu|e comint|
|00004890| 2d 65 6e 64 2d 71 75 65 | 75 65 20 69 6e 68 69 62 |-end-que|ue inhib|
|000048a0| 69 74 2d 71 75 69 74 20 | 73 65 6e 64 20 63 6f 6d |it-quit |send com|
|000048b0| 69 6e 74 2d 73 65 6e 64 | 2d 76 61 72 69 61 62 6c |int-send|-variabl|
|000048c0| 65 73 20 76 61 72 73 20 | 70 6f 69 6e 74 65 72 20 |es vars |pointer |
|000048d0| 6e 69 6c 20 6e 65 77 20 | 63 6f 6d 69 6e 74 2d 73 |nil new |comint-s|
|000048e0| 65 6e 64 2d 72 65 73 75 | 6c 74 73 20 69 6e 74 65 |end-resu|lts inte|
|000048f0| 72 72 75 70 74 20 28 6c | 61 6d 62 64 61 20 28 26 |rrupt (l|ambda (&|
|00004900| 72 65 73 74 20 61 72 67 | 73 29 20 74 29 20 22 49 |rest arg|s) t) "I|
|00004910| 6e 74 65 72 72 75 70 74 | 22 20 28 6c 61 6d 62 64 |nterrupt|" (lambd|
|00004920| 61 20 28 26 72 65 73 74 | 20 61 72 67 73 29 20 74 |a (&rest| args) t|
|00004930| 29 20 63 6f 6d 69 6e 74 | 2d 69 6e 74 65 72 72 75 |) comint|-interru|
|00004940| 70 74 2d 73 75 62 6a 6f | 62 20 67 65 74 2d 62 75 |pt-subjo|b get-bu|
|00004950| 66 66 65 72 2d 63 72 65 | 61 74 65 20 22 2a 41 62 |ffer-cre|ate "*Ab|
|00004960| 6f 72 74 65 64 20 43 6f | 6d 6d 61 6e 64 73 2a 22 |orted Co|mmands*"|
|00004970| 20 63 6f 6d 69 6e 74 2d | 73 65 6e 64 2d 64 65 73 | comint-|send-des|
|00004980| 63 72 69 70 74 69 6f 6e | 20 22 5c 6e 5c 6e 22 20 |cription| "\n\n" |
|00004990| 63 6f 6d 69 6e 74 2d 66 | 69 78 2d 65 72 72 6f 72 |comint-f|ix-error|
|000049a0| 20 66 69 78 20 22 46 69 | 78 69 6e 67 20 65 72 72 | fix "Fi|xing err|
|000049b0| 6f 72 22 20 30 20 62 75 | 72 79 2d 62 75 66 66 65 |or" 0 bu|ry-buffe|
|000049c0| 72 20 72 65 76 65 72 73 | 65 20 72 75 6e 2d 68 6f |r revers|e run-ho|
|000049d0| 6f 6b 73 20 63 6f 6d 69 | 6e 74 2d 61 62 6f 72 74 |oks comi|nt-abort|
|000049e0| 2d 68 6f 6f 6b 20 63 6f | 6d 69 6e 74 2d 64 69 73 |-hook co|mint-dis|
|000049f0| 70 61 74 63 68 2d 73 65 | 6e 64 5d 20 31 32 20 22 |patch-se|nd] 12 "|
|00004a00| 5c 0a 41 62 6f 72 74 20 | 61 6c 6c 20 6f 66 20 74 |\.Abort |all of t|
|00004a10| 68 65 20 70 65 6e 64 69 | 6e 67 20 73 65 6e 64 73 |he pendi|ng sends|
|00004a20| 20 66 6f 72 20 6f 70 74 | 69 6f 6e 61 6c 20 50 52 | for opt|ional PR|
|00004a30| 4f 43 45 53 53 20 61 6e | 64 20 73 68 6f 77 20 74 |OCESS an|d show t|
|00004a40| 68 65 69 72 0a 6d 65 73 | 73 61 67 65 73 20 69 6e |heir.mes|sages in|
|00004a50| 20 2a 41 62 6f 72 74 65 | 64 20 43 6f 6d 6d 61 6e | *Aborte|d Comman|
|00004a60| 64 73 2a 2e 22 20 6e 69 | 6c 5d 29 0a 28 66 73 65 |ds*." ni|l]).(fse|
|00004a70| 74 20 27 63 6f 6d 69 6e | 74 2d 63 75 72 72 65 6e |t 'comin|t-curren|
|00004a80| 74 2d 73 65 6e 64 20 23 | 5b 28 73 68 6f 77 70 29 |t-send #|[(showp)|
|00004a90| 20 22 08 ab a9 09 90 5c | 6e 1b 8a 09 71 88 c4 63 | ".....\|n...q..c|
|00004aa0| 88 0b ad 98 0b 40 41 41 | 41 41 40 89 1d ab 85 0d |.....@AA|AA@.....|
|00004ab0| c6 50 63 88 29 0b 41 89 | 13 ac 69 c7 2a 91 88 c5 |.Pc.).A.|..i.*...|
|00004ac0| c8 c9 5c 6e 40 21 ae 81 | ca 50 21 87 22 20 5b 73 |..\n@!..|.P!." [s|
|00004ad0| 68 6f 77 70 20 63 6f 6d | 69 6e 74 2d 6f 75 74 70 |howp com|int-outp|
|00004ae0| 75 74 2d 62 75 66 66 65 | 72 20 63 6f 6d 69 6e 74 |ut-buffe|r comint|
|00004af0| 2d 73 65 6e 64 2d 71 75 | 65 75 65 20 73 65 6e 64 |-send-qu|eue send|
|00004b00| 20 22 50 65 6e 64 69 6e | 67 20 63 6f 6d 6d 61 6e | "Pendin|g comman|
|00004b10| 64 73 3a 5c 6e 22 20 6d | 65 73 73 61 67 65 20 22 |ds:\n" m|essage "|
|00004b20| 5c 6e 22 20 6e 69 6c 20 | 22 43 6f 6d 6d 61 6e 64 |\n" nil |"Command|
|00004b30| 3a 20 22 20 63 6f 6d 69 | 6e 74 2d 73 65 6e 64 2d |: " comi|nt-send-|
|00004b40| 64 65 73 63 72 69 70 74 | 69 6f 6e 20 22 55 6e 6b |descript|ion "Unk|
|00004b50| 6e 6f 77 6e 22 5d 20 35 | 20 22 5c 0a 53 68 6f 77 |nown"] 5| "\.Show|
|00004b60| 20 74 68 65 20 6d 65 73 | 73 61 67 65 20 6f 66 20 | the mes|sage of |
|00004b70| 74 68 65 20 63 75 72 72 | 65 6e 74 20 73 65 6e 64 |the curr|ent send|
|00004b80| 20 69 6e 20 74 68 65 20 | 6d 69 6e 69 62 75 66 66 | in the |minibuff|
|00004b90| 65 72 2e 22 20 22 50 22 | 5d 29 0a 28 66 73 65 74 |er." "P"|]).(fset|
|00004ba0| 20 27 63 6f 6d 69 6e 74 | 2d 64 69 73 70 6c 61 79 | 'comint|-display|
|00004bb0| 2d 6f 75 74 70 75 74 20 | 23 5b 28 74 65 78 74 20 |-output |#[(text |
|00004bc0| 26 6f 70 74 69 6f 6e 61 | 6c 20 62 75 66 66 65 72 |&optiona|l buffer|
|00004bd0| 29 20 22 08 ae 81 09 89 | 10 90 8a 08 71 88 5c 6e |) ".....|....q.\n|
|00004be0| 63 88 c3 c4 21 29 91 88 | 5c 6e 87 22 20 5b 62 75 |c...!)..|\n." [bu|
|00004bf0| 66 66 65 72 20 63 6f 6d | 69 6e 74 2d 6f 75 74 70 |ffer com|int-outp|
|00004c00| 75 74 2d 62 75 66 66 65 | 72 20 74 65 78 74 20 73 |ut-buffe|r text s|
|00004c10| 65 74 2d 62 75 66 66 65 | 72 2d 6d 6f 64 69 66 69 |et-buffe|r-modifi|
|00004c20| 65 64 2d 70 20 6e 69 6c | 5d 20 34 20 22 5c 0a 50 |ed-p nil|] 4 "\.P|
|00004c30| 75 74 20 54 45 58 54 20 | 69 6e 20 6f 70 74 69 6f |ut TEXT |in optio|
|00004c40| 6e 61 6c 20 42 55 46 46 | 45 52 20 61 6e 64 20 73 |nal BUFF|ER and s|
|00004c50| 68 6f 77 20 69 74 20 69 | 6e 20 61 20 73 6d 61 6c |how it i|n a smal|
|00004c60| 6c 20 74 65 6d 70 6f 72 | 61 72 79 20 77 69 6e 64 |l tempor|ary wind|
|00004c70| 6f 77 2e 22 5d 29 0a 28 | 66 73 65 74 20 27 63 6f |ow."]).(|fset 'co|
|00004c80| 6d 69 6e 74 2d 64 69 73 | 70 6c 61 79 2d 65 72 72 |mint-dis|play-err|
|00004c90| 6f 72 20 23 5b 28 74 65 | 78 74 29 20 22 c0 09 5c |or #[(te|xt) "..\|
|00004ca0| 6e 5c 22 87 22 20 5b 63 | 6f 6d 69 6e 74 2d 64 69 |n\"." [c|omint-di|
|00004cb0| 73 70 6c 61 79 2d 6f 75 | 74 70 75 74 20 74 65 78 |splay-ou|tput tex|
|00004cc0| 74 20 63 6f 6d 69 6e 74 | 2d 65 72 72 6f 72 2d 62 |t comint|-error-b|
|00004cd0| 75 66 66 65 72 5d 20 33 | 20 22 5c 0a 50 75 74 20 |uffer] 3| "\.Put |
|00004ce0| 54 45 58 54 20 69 6e 20 | 74 68 65 20 63 6f 6d 69 |TEXT in |the comi|
|00004cf0| 6e 74 2d 65 72 72 6f 72 | 2d 62 75 66 66 65 72 20 |nt-error|-buffer |
|00004d00| 61 6e 64 20 64 69 73 70 | 6c 61 79 20 69 74 2e 22 |and disp|lay it."|
|00004d10| 5d 29 0a 28 70 72 6f 76 | 69 64 65 20 27 63 6f 6d |]).(prov|ide 'com|
|00004d20| 69 6e 74 2d 69 70 63 29 | 0a |int-ipc)|. |
+--------+-------------------------+-------------------------+--------+--------+