home *** CD-ROM | disk | FTP | other *** search
Emacs Compiled Lisp | 1995-08-29 | 56.4 KB |
open in:
MacOS 8.1
|
Win98
|
DOS
view JSON data
|
view as text
This file was processed as: Emacs Compiled Lisp
(other/emacsCompiledLisp).
This format is not currently supported by dexvert.
Confidence | Program | Detection | Match Type | Support
|
---|
1%
| dexvert
| Emacs Compiled Lisp (other/emacsCompiledLisp)
| magic
| Unsupported |
1%
| dexvert
| Combustion 2 Particle Library (other/combustion2ParticleLibrary)
| ext
| Unsupported |
100%
| file
| Emacs/XEmacs v19 byte-compiled Lisp data
| default
| |
99%
| file
| data
| default
| |
100%
| TrID
| Emacs/XEmacs byte-compiled Lisp (generic)
| default
| |
100%
| xdgMime
| text/x-emacs-lisp
| default (weak)
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 3b 45 4c 43 13 00 00 00 | 0a 3b 3b 3b 20 63 6f 6d |;ELC....|.;;; com|
|00000010| 70 69 6c 65 64 20 62 79 | 20 63 74 68 6f 6d 70 40 |piled by| cthomp@|
|00000020| 77 69 6c 6c 6f 77 2e 63 | 73 2e 75 69 75 63 2e 65 |willow.c|s.uiuc.e|
|00000030| 64 75 20 6f 6e 20 54 75 | 65 20 41 75 67 20 32 39 |du on Tu|e Aug 29|
|00000040| 20 31 33 3a 35 33 3a 35 | 32 20 31 39 39 35 0a 3b | 13:53:5|2 1995.;|
|00000050| 3b 3b 20 66 72 6f 6d 20 | 66 69 6c 65 20 2f 78 65 |;; from |file /xe|
|00000060| 6d 61 63 73 2f 78 65 6d | 61 63 73 2d 31 39 2e 31 |macs/xem|acs-19.1|
|00000070| 33 2d 72 65 6c 65 61 73 | 65 2f 65 64 69 74 6f 72 |3-releas|e/editor|
|00000080| 2f 6c 69 73 70 2f 63 6f | 6d 69 6e 74 2f 63 6f 6d |/lisp/co|mint/com|
|00000090| 69 6e 74 2e 65 6c 0a 3b | 3b 3b 20 65 6d 61 63 73 |int.el.;|;; emacs|
|000000a0| 20 76 65 72 73 69 6f 6e | 20 31 39 2e 31 33 20 58 | version| 19.13 X|
|000000b0| 45 6d 61 63 73 20 4c 75 | 63 69 64 2e 0a 3b 3b 3b |Emacs Lu|cid..;;;|
|000000c0| 20 62 79 74 65 63 6f 6d | 70 20 76 65 72 73 69 6f | bytecom|p versio|
|000000d0| 6e 20 32 2e 32 35 3b 20 | 31 2d 53 65 70 2d 39 34 |n 2.25; |1-Sep-94|
|000000e0| 2e 0a 3b 3b 3b 20 6f 70 | 74 69 6d 69 7a 61 74 69 |..;;; op|timizati|
|000000f0| 6f 6e 20 69 73 20 6f 6e | 2e 0a 3b 3b 3b 20 74 68 |on is on|..;;; th|
|00000100| 69 73 20 66 69 6c 65 20 | 75 73 65 73 20 6f 70 63 |is file |uses opc|
|00000110| 6f 64 65 73 20 77 68 69 | 63 68 20 64 6f 20 6e 6f |odes whi|ch do no|
|00000120| 74 20 65 78 69 73 74 20 | 69 6e 20 45 6d 61 63 73 |t exist |in Emacs|
|00000130| 20 31 38 2e 0a 0a 28 69 | 66 20 28 61 6e 64 20 28 | 18...(i|f (and (|
|00000140| 62 6f 75 6e 64 70 20 27 | 65 6d 61 63 73 2d 76 65 |boundp '|emacs-ve|
|00000150| 72 73 69 6f 6e 29 0a 09 | 20 28 6f 72 20 28 61 6e |rsion)..| (or (an|
|00000160| 64 20 28 62 6f 75 6e 64 | 70 20 27 65 70 6f 63 68 |d (bound|p 'epoch|
|00000170| 3a 3a 76 65 72 73 69 6f | 6e 29 20 65 70 6f 63 68 |::versio|n) epoch|
|00000180| 3a 3a 76 65 72 73 69 6f | 6e 29 0a 09 20 20 20 20 |::versio|n).. |
|00000190| 20 28 73 74 72 69 6e 67 | 2d 6c 65 73 73 70 20 65 | (string|-lessp e|
|000001a0| 6d 61 63 73 2d 76 65 72 | 73 69 6f 6e 20 22 31 39 |macs-ver|sion "19|
|000001b0| 22 29 29 29 0a 20 20 20 | 20 28 65 72 72 6f 72 20 |"))). | (error |
|000001c0| 22 54 68 69 73 20 66 69 | 6c 65 20 77 61 73 20 63 |"This fi|le was c|
|000001d0| 6f 6d 70 69 6c 65 64 20 | 66 6f 72 20 45 6d 61 63 |ompiled |for Emac|
|000001e0| 73 20 31 39 2e 22 29 29 | 0a 0a 28 72 65 71 75 69 |s 19."))|..(requi|
|000001f0| 72 65 20 27 72 69 6e 67 | 29 0a 28 64 65 66 76 61 |re 'ring|).(defva|
|00000200| 72 20 63 6f 6d 69 6e 74 | 2d 70 72 6f 6d 70 74 2d |r comint|-prompt-|
|00000210| 72 65 67 65 78 70 20 22 | 5e 22 20 22 5c 0a 52 65 |regexp "|^" "\.Re|
|00000220| 67 65 78 70 20 74 6f 20 | 72 65 63 6f 67 6e 69 73 |gexp to |recognis|
|00000230| 65 20 70 72 6f 6d 70 74 | 73 20 69 6e 20 74 68 65 |e prompt|s in the|
|00000240| 20 69 6e 66 65 72 69 6f | 72 20 70 72 6f 63 65 73 | inferio|r proces|
|00000250| 73 2e 0a 44 65 66 61 75 | 6c 74 73 20 74 6f 20 5c |s..Defau|lts to \|
|00000260| 22 5e 5c 22 2c 20 74 68 | 65 20 6e 75 6c 6c 20 73 |"^\", th|e null s|
|00000270| 74 72 69 6e 67 20 61 74 | 20 42 4f 4c 2e 0a 0a 47 |tring at| BOL...G|
|00000280| 6f 6f 64 20 63 68 6f 69 | 63 65 73 3a 0a 20 20 43 |ood choi|ces:. C|
|00000290| 61 6e 6f 6e 69 63 61 6c | 20 4c 69 73 70 3a 20 5c |anonical| Lisp: \|
|000002a0| 22 5e 5b 5e 3e 20 5c 5c | 6e 5d 2a 3e 2b 3a 3f 20 |"^[^> \\|n]*>+:? |
|000002b0| 2a 5c 22 20 28 4c 75 63 | 69 64 2c 20 66 72 61 6e |*\" (Luc|id, fran|
|000002c0| 7a 2c 20 6b 63 6c 2c 20 | 54 2c 20 63 73 63 68 65 |z, kcl, |T, csche|
|000002d0| 6d 65 2c 20 6f 61 6b 6c | 69 73 70 29 0a 20 20 4c |me, oakl|isp). L|
|000002e0| 75 63 69 64 20 43 6f 6d | 6d 6f 6e 20 4c 69 73 70 |ucid Com|mon Lisp|
|000002f0| 3a 20 5c 22 5e 5c 5c 5c | 5c 28 3e 5c 5c 5c 5c 7c |: \"^\\\|\(>\\\\||
|00000300| 5c 5c 5c 5c 28 2d 3e 5c | 5c 5c 5c 29 2b 5c 5c 5c |\\\\(->\|\\\)+\\\|
|00000310| 5c 29 20 2a 5c 22 0a 20 | 20 66 72 61 6e 7a 3a 20 |\) *\". | franz: |
|00000320| 5c 22 5e 5c 5c 5c 5c 28 | 2d 3e 5c 5c 5c 5c 7c 3c |\"^\\\\(|->\\\\|<|
|00000330| 5b 30 2d 39 5d 2a 3e 3a | 5c 5c 5c 5c 29 20 2a 5c |[0-9]*>:|\\\\) *\|
|00000340| 22 0a 20 20 6b 63 6c 3a | 20 5c 22 5e 3e 2b 20 2a |". kcl:| \"^>+ *|
|00000350| 5c 22 0a 20 20 73 68 65 | 6c 6c 3a 20 5c 22 5e 5b |\". she|ll: \"^[|
|00000360| 5e 23 24 25 3e 5c 5c 6e | 5d 2a 5b 23 24 25 3e 5d |^#$%>\\n|]*[#$%>]|
|00000370| 20 2a 5c 22 0a 20 20 54 | 3a 20 5c 22 5e 3e 2b 20 | *\". T|: \"^>+ |
|00000380| 2a 5c 22 0a 0a 54 68 65 | 20 70 61 74 74 65 72 6e |*\"..The| pattern|
|00000390| 20 73 68 6f 75 6c 64 20 | 62 65 67 69 6e 20 77 69 | should |begin wi|
|000003a0| 74 68 20 5c 22 5e 5c 22 | 2e 20 20 49 74 20 63 61 |th \"^\"|. It ca|
|000003b0| 6e 20 6d 61 74 63 68 20 | 74 65 78 74 20 6f 6e 20 |n match |text on |
|000003c0| 6d 6f 72 65 20 74 68 61 | 6e 20 6f 6e 65 20 6c 69 |more tha|n one li|
|000003d0| 6e 65 2e 0a 54 68 69 73 | 20 70 61 74 74 65 72 6e |ne..This| pattern|
|000003e0| 20 67 65 74 73 20 68 61 | 6e 64 65 64 20 74 6f 20 | gets ha|nded to |
|000003f0| 72 65 2d 73 65 61 72 63 | 68 2d 62 61 63 6b 77 61 |re-searc|h-backwa|
|00000400| 72 64 2c 20 6e 6f 74 20 | 6c 6f 6f 6b 69 6e 67 2d |rd, not |looking-|
|00000410| 61 74 2e 0a 0a 54 68 69 | 73 20 69 73 20 61 20 67 |at...Thi|s is a g|
|00000420| 6f 6f 64 20 74 68 69 6e | 67 20 74 6f 20 73 65 74 |ood thin|g to set|
|00000430| 20 69 6e 20 6d 6f 64 65 | 20 68 6f 6f 6b 73 2e 22 | in mode| hooks."|
|00000440| 29 0a 28 64 65 66 76 61 | 72 20 63 6f 6d 69 6e 74 |).(defva|r comint|
|00000450| 2d 64 65 6c 69 6d 69 74 | 65 72 2d 61 72 67 75 6d |-delimit|er-argum|
|00000460| 65 6e 74 2d 6c 69 73 74 | 20 6e 69 6c 20 22 5c 0a |ent-list| nil "\.|
|00000470| 4c 69 73 74 20 6f 66 20 | 63 68 61 72 61 63 74 65 |List of |characte|
|00000480| 72 73 20 74 6f 20 72 65 | 63 6f 67 6e 69 73 65 20 |rs to re|cognise |
|00000490| 61 73 20 73 65 70 61 72 | 61 74 65 20 61 72 67 75 |as separ|ate argu|
|000004a0| 6d 65 6e 74 73 20 69 6e | 20 69 6e 70 75 74 2e 0a |ments in| input..|
|000004b0| 53 74 72 69 6e 67 73 20 | 63 6f 6d 70 72 69 73 69 |Strings |comprisi|
|000004c0| 6e 67 20 61 20 63 68 61 | 72 61 63 74 65 72 20 69 |ng a cha|racter i|
|000004d0| 6e 20 74 68 69 73 20 6c | 69 73 74 20 77 69 6c 6c |n this l|ist will|
|000004e0| 20 73 65 70 61 72 61 74 | 65 20 74 68 65 20 61 72 | separat|e the ar|
|000004f0| 67 75 6d 65 6e 74 73 0a | 73 75 72 72 6f 75 6e 64 |guments.|surround|
|00000500| 69 6e 67 20 74 68 65 6d | 2c 20 61 6e 64 20 61 6c |ing them|, and al|
|00000510| 73 6f 20 62 65 20 72 65 | 67 61 72 64 65 64 20 61 |so be re|garded a|
|00000520| 73 20 61 72 67 75 6d 65 | 6e 74 73 20 69 6e 20 74 |s argume|nts in t|
|00000530| 68 65 69 72 20 6f 77 6e | 20 72 69 67 68 74 20 28 |heir own| right (|
|00000540| 75 6e 6c 69 6b 65 0a 77 | 68 69 74 65 73 70 61 63 |unlike.w|hitespac|
|00000550| 65 29 2e 20 20 53 65 65 | 20 60 63 6f 6d 69 6e 74 |e). See| `comint|
|00000560| 2d 61 72 67 75 6d 65 6e | 74 73 27 2e 0a 44 65 66 |-argumen|ts'..Def|
|00000570| 61 75 6c 74 73 20 74 6f | 20 74 68 65 20 65 6d 70 |aults to| the emp|
|00000580| 74 79 20 6c 69 73 74 2e | 0a 0a 46 6f 72 20 73 68 |ty list.|..For sh|
|00000590| 65 6c 6c 73 2c 20 61 20 | 67 6f 6f 64 20 76 61 6c |ells, a |good val|
|000005a0| 75 65 20 69 73 20 28 3f | 5c 5c 7c 20 3f 26 20 3f |ue is (?|\\| ?& ?|
|000005b0| 3c 20 3f 3e 20 3f 5c 5c | 28 20 3f 5c 5c 29 20 3f |< ?> ?\\|( ?\\) ?|
|000005c0| 3b 29 2e 0a 0a 54 68 69 | 73 20 69 73 20 61 20 67 |;)...Thi|s is a g|
|000005d0| 6f 6f 64 20 74 68 69 6e | 67 20 74 6f 20 73 65 74 |ood thin|g to set|
|000005e0| 20 69 6e 20 6d 6f 64 65 | 20 68 6f 6f 6b 73 2e 22 | in mode| hooks."|
|000005f0| 29 0a 28 64 65 66 76 61 | 72 20 63 6f 6d 69 6e 74 |).(defva|r comint|
|00000600| 2d 69 6e 70 75 74 2d 61 | 75 74 6f 65 78 70 61 6e |-input-a|utoexpan|
|00000610| 64 20 6e 69 6c 20 22 5c | 0a 2a 49 66 20 6e 6f 6e |d nil "\|.*If non|
|00000620| 2d 6e 69 6c 2c 20 65 78 | 70 61 6e 64 20 69 6e 70 |-nil, ex|pand inp|
|00000630| 75 74 20 63 6f 6d 6d 61 | 6e 64 20 68 69 73 74 6f |ut comma|nd histo|
|00000640| 72 79 20 72 65 66 65 72 | 65 6e 63 65 73 20 6f 6e |ry refer|ences on|
|00000650| 20 63 6f 6d 70 6c 65 74 | 69 6f 6e 2e 0a 54 68 69 | complet|ion..Thi|
|00000660| 73 20 6d 69 72 72 6f 72 | 73 20 74 68 65 20 6f 70 |s mirror|s the op|
|00000670| 74 69 6f 6e 61 6c 20 62 | 65 68 61 76 69 6f 72 20 |tional b|ehavior |
|00000680| 6f 66 20 74 63 73 68 20 | 28 69 74 73 20 61 75 74 |of tcsh |(its aut|
|00000690| 6f 65 78 70 61 6e 64 20 | 61 6e 64 20 68 69 73 74 |oexpand |and hist|
|000006a0| 6c 69 74 29 2e 0a 0a 49 | 66 20 74 68 65 20 76 61 |lit)...I|f the va|
|000006b0| 6c 75 65 20 69 73 20 60 | 69 6e 70 75 74 27 2c 20 |lue is `|input', |
|000006c0| 74 68 65 6e 20 74 68 65 | 20 65 78 70 61 6e 73 69 |then the| expansi|
|000006d0| 6f 6e 20 69 73 20 73 65 | 65 6e 20 6f 6e 20 69 6e |on is se|en on in|
|000006e0| 70 75 74 2e 0a 49 66 20 | 74 68 65 20 76 61 6c 75 |put..If |the valu|
|000006f0| 65 20 69 73 20 60 68 69 | 73 74 6f 72 79 27 2c 20 |e is `hi|story', |
|00000700| 74 68 65 6e 20 74 68 65 | 20 65 78 70 61 6e 73 69 |then the| expansi|
|00000710| 6f 6e 20 69 73 20 6f 6e | 6c 79 20 77 68 65 6e 20 |on is on|ly when |
|00000720| 69 6e 73 65 72 74 69 6e | 67 0a 69 6e 74 6f 20 74 |insertin|g.into t|
|00000730| 68 65 20 62 75 66 66 65 | 72 27 73 20 69 6e 70 75 |he buffe|r's inpu|
|00000740| 74 20 72 69 6e 67 2e 20 | 20 53 65 65 20 61 6c 73 |t ring. | See als|
|00000750| 6f 20 60 63 6f 6d 69 6e | 74 2d 6d 61 67 69 63 2d |o `comin|t-magic-|
|00000760| 73 70 61 63 65 27 20 61 | 6e 64 0a 60 63 6f 6d 69 |space' a|nd.`comi|
|00000770| 6e 74 2d 64 79 6e 61 6d | 69 63 2d 63 6f 6d 70 6c |nt-dynam|ic-compl|
|00000780| 65 74 65 27 2e 0a 0a 54 | 68 69 73 20 76 61 72 69 |ete'...T|his vari|
|00000790| 61 62 6c 65 20 69 73 20 | 62 75 66 66 65 72 2d 6c |able is |buffer-l|
|000007a0| 6f 63 61 6c 2e 22 29 0a | 28 64 65 66 76 61 72 20 |ocal.").|(defvar |
|000007b0| 63 6f 6d 69 6e 74 2d 69 | 6e 70 75 74 2d 69 67 6e |comint-i|nput-ign|
|000007c0| 6f 72 65 64 75 70 73 20 | 74 20 22 5c 0a 2a 49 66 |oredups |t "\.*If|
|000007d0| 20 6e 6f 6e 2d 6e 69 6c | 2c 20 64 6f 6e 27 74 20 | non-nil|, don't |
|000007e0| 61 64 64 20 69 6e 70 75 | 74 20 6d 61 74 63 68 69 |add inpu|t matchi|
|000007f0| 6e 67 20 74 68 65 20 6c | 61 73 74 20 6f 6e 20 74 |ng the l|ast on t|
|00000800| 68 65 20 69 6e 70 75 74 | 20 72 69 6e 67 2e 0a 54 |he input| ring..T|
|00000810| 68 69 73 20 6d 69 72 72 | 6f 72 73 20 74 68 65 20 |his mirr|ors the |
|00000820| 6f 70 74 69 6f 6e 61 6c | 20 62 65 68 61 76 69 6f |optional| behavio|
|00000830| 72 20 6f 66 20 62 61 73 | 68 2e 0a 0a 54 68 69 73 |r of bas|h...This|
|00000840| 20 76 61 72 69 61 62 6c | 65 20 69 73 20 62 75 66 | variabl|e is buf|
|00000850| 66 65 72 2d 6c 6f 63 61 | 6c 2e 22 29 0a 28 64 65 |fer-loca|l.").(de|
|00000860| 66 76 61 72 20 63 6f 6d | 69 6e 74 2d 69 6e 70 75 |fvar com|int-inpu|
|00000870| 74 2d 72 69 6e 67 2d 66 | 69 6c 65 2d 6e 61 6d 65 |t-ring-f|ile-name|
|00000880| 20 6e 69 6c 20 22 5c 0a | 2a 49 66 20 6e 6f 6e 2d | nil "\.|*If non-|
|00000890| 6e 69 6c 2c 20 6e 61 6d | 65 20 6f 66 20 74 68 65 |nil, nam|e of the|
|000008a0| 20 66 69 6c 65 20 74 6f | 20 72 65 61 64 2f 77 72 | file to| read/wr|
|000008b0| 69 74 65 20 69 6e 70 75 | 74 20 68 69 73 74 6f 72 |ite inpu|t histor|
|000008c0| 79 2e 0a 53 65 65 20 61 | 6c 73 6f 20 60 63 6f 6d |y..See a|lso `com|
|000008d0| 69 6e 74 2d 72 65 61 64 | 2d 69 6e 70 75 74 2d 72 |int-read|-input-r|
|000008e0| 69 6e 67 27 20 61 6e 64 | 20 60 63 6f 6d 69 6e 74 |ing' and| `comint|
|000008f0| 2d 77 72 69 74 65 2d 69 | 6e 70 75 74 2d 72 69 6e |-write-i|nput-rin|
|00000900| 67 27 2e 0a 0a 54 68 69 | 73 20 76 61 72 69 61 62 |g'...Thi|s variab|
|00000910| 6c 65 20 69 73 20 62 75 | 66 66 65 72 2d 6c 6f 63 |le is bu|ffer-loc|
|00000920| 61 6c 2c 20 61 6e 64 20 | 69 73 20 61 20 67 6f 6f |al, and |is a goo|
|00000930| 64 20 74 68 69 6e 67 20 | 74 6f 20 73 65 74 20 69 |d thing |to set i|
|00000940| 6e 20 6d 6f 64 65 20 68 | 6f 6f 6b 73 2e 22 29 0a |n mode h|ooks.").|
|00000950| 28 64 65 66 76 61 72 20 | 63 6f 6d 69 6e 74 2d 73 |(defvar |comint-s|
|00000960| 63 72 6f 6c 6c 2d 74 6f | 2d 62 6f 74 74 6f 6d 2d |croll-to|-bottom-|
|00000970| 6f 6e 2d 69 6e 70 75 74 | 20 6e 69 6c 20 22 5c 0a |on-input| nil "\.|
|00000980| 2a 43 6f 6e 74 72 6f 6c | 73 20 77 68 65 74 68 65 |*Control|s whethe|
|00000990| 72 20 69 6e 70 75 74 20 | 74 6f 20 69 6e 74 65 72 |r input |to inter|
|000009a0| 70 72 65 74 65 72 20 63 | 61 75 73 65 73 20 77 69 |preter c|auses wi|
|000009b0| 6e 64 6f 77 20 74 6f 20 | 73 63 72 6f 6c 6c 2e 0a |ndow to |scroll..|
|000009c0| 49 66 20 6e 69 6c 2c 20 | 74 68 65 6e 20 64 6f 20 |If nil, |then do |
|000009d0| 6e 6f 74 20 73 63 72 6f | 6c 6c 2e 20 20 49 66 20 |not scro|ll. If |
|000009e0| 74 20 6f 72 20 60 61 6c | 6c 27 2c 20 73 63 72 6f |t or `al|l', scro|
|000009f0| 6c 6c 20 61 6c 6c 20 77 | 69 6e 64 6f 77 73 20 73 |ll all w|indows s|
|00000a00| 68 6f 77 69 6e 67 20 62 | 75 66 66 65 72 2e 0a 49 |howing b|uffer..I|
|00000a10| 66 20 60 74 68 69 73 27 | 2c 20 73 63 72 6f 6c 6c |f `this'|, scroll|
|00000a20| 20 6f 6e 6c 79 20 74 68 | 65 20 73 65 6c 65 63 74 | only th|e select|
|00000a30| 65 64 20 77 69 6e 64 6f | 77 2e 0a 0a 54 68 65 20 |ed windo|w...The |
|00000a40| 64 65 66 61 75 6c 74 20 | 69 73 20 6e 69 6c 2e 0a |default |is nil..|
|00000a50| 0a 53 65 65 20 60 63 6f | 6d 69 6e 74 2d 70 72 65 |.See `co|mint-pre|
|00000a60| 69 6e 70 75 74 2d 73 63 | 72 6f 6c 6c 2d 74 6f 2d |input-sc|roll-to-|
|00000a70| 62 6f 74 74 6f 6d 27 2e | 20 20 54 68 69 73 20 76 |bottom'.| This v|
|00000a80| 61 72 69 61 62 6c 65 20 | 69 73 20 62 75 66 66 65 |ariable |is buffe|
|00000a90| 72 2d 6c 6f 63 61 6c 2e | 22 29 0a 28 64 65 66 76 |r-local.|").(defv|
|00000aa0| 61 72 20 63 6f 6d 69 6e | 74 2d 73 63 72 6f 6c 6c |ar comin|t-scroll|
|00000ab0| 2d 74 6f 2d 62 6f 74 74 | 6f 6d 2d 6f 6e 2d 6f 75 |-to-bott|om-on-ou|
|00000ac0| 74 70 75 74 20 6e 69 6c | 20 22 5c 0a 2a 43 6f 6e |tput nil| "\.*Con|
|00000ad0| 74 72 6f 6c 73 20 77 68 | 65 74 68 65 72 20 69 6e |trols wh|ether in|
|00000ae0| 74 65 72 70 72 65 74 65 | 72 20 6f 75 74 70 75 74 |terprete|r output|
|00000af0| 20 63 61 75 73 65 73 20 | 77 69 6e 64 6f 77 20 74 | causes |window t|
|00000b00| 6f 20 73 63 72 6f 6c 6c | 2e 0a 49 66 20 6e 69 6c |o scroll|..If nil|
|00000b10| 2c 20 74 68 65 6e 20 64 | 6f 20 6e 6f 74 20 73 63 |, then d|o not sc|
|00000b20| 72 6f 6c 6c 2e 20 20 49 | 66 20 74 20 6f 72 20 60 |roll. I|f t or `|
|00000b30| 61 6c 6c 27 2c 20 73 63 | 72 6f 6c 6c 20 61 6c 6c |all', sc|roll all|
|00000b40| 20 77 69 6e 64 6f 77 73 | 20 73 68 6f 77 69 6e 67 | windows| showing|
|00000b50| 20 62 75 66 66 65 72 2e | 0a 49 66 20 60 74 68 69 | buffer.|.If `thi|
|00000b60| 73 27 2c 20 73 63 72 6f | 6c 6c 20 6f 6e 6c 79 20 |s', scro|ll only |
|00000b70| 74 68 65 20 73 65 6c 65 | 63 74 65 64 20 77 69 6e |the sele|cted win|
|00000b80| 64 6f 77 2e 0a 49 66 20 | 60 6f 74 68 65 72 73 27 |dow..If |`others'|
|00000b90| 2c 20 73 63 72 6f 6c 6c | 20 6f 6e 6c 79 20 74 68 |, scroll| only th|
|00000ba0| 6f 73 65 20 74 68 61 74 | 20 61 72 65 20 6e 6f 74 |ose that| are not|
|00000bb0| 20 74 68 65 20 73 65 6c | 65 63 74 65 64 20 77 69 | the sel|ected wi|
|00000bc0| 6e 64 6f 77 2e 0a 0a 54 | 68 65 20 64 65 66 61 75 |ndow...T|he defau|
|00000bd0| 6c 74 20 69 73 20 6e 69 | 6c 2e 0a 0a 53 65 65 20 |lt is ni|l...See |
|00000be0| 76 61 72 69 61 62 6c 65 | 20 60 63 6f 6d 69 6e 74 |variable| `comint|
|00000bf0| 2d 73 63 72 6f 6c 6c 2d | 73 68 6f 77 2d 6d 61 78 |-scroll-|show-max|
|00000c00| 69 6d 75 6d 2d 6f 75 74 | 70 75 74 27 20 61 6e 64 |imum-out|put' and|
|00000c10| 20 66 75 6e 63 74 69 6f | 6e 0a 60 63 6f 6d 69 6e | functio|n.`comin|
|00000c20| 74 2d 70 6f 73 74 6f 75 | 74 70 75 74 2d 73 63 72 |t-postou|tput-scr|
|00000c30| 6f 6c 6c 2d 74 6f 2d 62 | 6f 74 74 6f 6d 27 2e 20 |oll-to-b|ottom'. |
|00000c40| 20 54 68 69 73 20 76 61 | 72 69 61 62 6c 65 20 69 | This va|riable i|
|00000c50| 73 20 62 75 66 66 65 72 | 2d 6c 6f 63 61 6c 2e 22 |s buffer|-local."|
|00000c60| 29 0a 28 64 65 66 76 61 | 72 20 63 6f 6d 69 6e 74 |).(defva|r comint|
|00000c70| 2d 73 63 72 6f 6c 6c 2d | 73 68 6f 77 2d 6d 61 78 |-scroll-|show-max|
|00000c80| 69 6d 75 6d 2d 6f 75 74 | 70 75 74 20 6e 69 6c 20 |imum-out|put nil |
|00000c90| 22 5c 0a 2a 43 6f 6e 74 | 72 6f 6c 73 20 68 6f 77 |"\.*Cont|rols how|
|00000ca0| 20 69 6e 74 65 72 70 72 | 65 74 65 72 20 6f 75 74 | interpr|eter out|
|00000cb0| 70 75 74 20 63 61 75 73 | 65 73 20 77 69 6e 64 6f |put caus|es windo|
|00000cc0| 77 20 74 6f 20 73 63 72 | 6f 6c 6c 2e 0a 49 66 20 |w to scr|oll..If |
|00000cd0| 6e 6f 6e 2d 6e 69 6c 2c | 20 74 68 65 6e 20 73 68 |non-nil,| then sh|
|00000ce0| 6f 77 20 74 68 65 20 6d | 61 78 69 6d 75 6d 20 6f |ow the m|aximum o|
|00000cf0| 75 74 70 75 74 20 77 68 | 65 6e 20 74 68 65 20 77 |utput wh|en the w|
|00000d00| 69 6e 64 6f 77 20 69 73 | 20 73 63 72 6f 6c 6c 65 |indow is| scrolle|
|00000d10| 64 2e 0a 0a 53 65 65 20 | 76 61 72 69 61 62 6c 65 |d...See |variable|
|00000d20| 20 60 63 6f 6d 69 6e 74 | 2d 73 63 72 6f 6c 6c 2d | `comint|-scroll-|
|00000d30| 74 6f 2d 62 6f 74 74 6f | 6d 2d 6f 6e 2d 6f 75 74 |to-botto|m-on-out|
|00000d40| 70 75 74 27 20 61 6e 64 | 20 66 75 6e 63 74 69 6f |put' and| functio|
|00000d50| 6e 0a 60 63 6f 6d 69 6e | 74 2d 70 6f 73 74 6f 75 |n.`comin|t-postou|
|00000d60| 74 70 75 74 2d 73 63 72 | 6f 6c 6c 2d 74 6f 2d 62 |tput-scr|oll-to-b|
|00000d70| 6f 74 74 6f 6d 27 2e 20 | 20 54 68 69 73 20 76 61 |ottom'. | This va|
|00000d80| 72 69 61 62 6c 65 20 69 | 73 20 62 75 66 66 65 72 |riable i|s buffer|
|00000d90| 2d 6c 6f 63 61 6c 2e 22 | 29 0a 28 64 65 66 76 61 |-local."|).(defva|
|00000da0| 72 20 63 6f 6d 69 6e 74 | 2d 69 6e 70 75 74 2d 72 |r comint|-input-r|
|00000db0| 69 6e 67 2d 73 69 7a 65 | 20 33 32 20 22 5c 0a 53 |ing-size| 32 "\.S|
|00000dc0| 69 7a 65 20 6f 66 20 69 | 6e 70 75 74 20 68 69 73 |ize of i|nput his|
|00000dd0| 74 6f 72 79 20 72 69 6e | 67 2e 22 29 0a 28 64 65 |tory rin|g.").(de|
|00000de0| 66 76 61 72 20 63 6f 6d | 69 6e 74 2d 70 72 6f 63 |fvar com|int-proc|
|00000df0| 65 73 73 2d 65 63 68 6f | 65 73 20 6e 69 6c 20 22 |ess-echo|es nil "|
|00000e00| 5c 0a 2a 49 66 20 6e 6f | 6e 2d 6e 69 6c 2c 20 61 |\.*If no|n-nil, a|
|00000e10| 73 73 75 6d 65 20 74 68 | 61 74 20 74 68 65 20 73 |ssume th|at the s|
|00000e20| 75 62 70 72 6f 63 65 73 | 73 20 65 63 68 6f 65 73 |ubproces|s echoes|
|00000e30| 20 61 6e 79 20 69 6e 70 | 75 74 2e 0a 49 66 20 73 | any inp|ut..If s|
|00000e40| 6f 2c 20 64 65 6c 65 74 | 65 20 6f 6e 65 20 63 6f |o, delet|e one co|
|00000e50| 70 79 20 6f 66 20 74 68 | 65 20 69 6e 70 75 74 20 |py of th|e input |
|00000e60| 73 6f 20 74 68 61 74 20 | 6f 6e 6c 79 20 6f 6e 65 |so that |only one|
|00000e70| 20 63 6f 70 79 20 65 76 | 65 6e 74 75 61 6c 6c 79 | copy ev|entually|
|00000e80| 0a 61 70 70 65 61 72 73 | 20 69 6e 20 74 68 65 20 |.appears| in the |
|00000e90| 62 75 66 66 65 72 2e 0a | 0a 54 68 69 73 20 76 61 |buffer..|.This va|
|00000ea0| 72 69 61 62 6c 65 20 69 | 73 20 62 75 66 66 65 72 |riable i|s buffer|
|00000eb0| 2d 6c 6f 63 61 6c 2e 22 | 29 0a 28 64 65 66 76 61 |-local."|).(defva|
|00000ec0| 72 20 63 6f 6d 69 6e 74 | 2d 70 61 73 73 77 6f 72 |r comint|-passwor|
|00000ed0| 64 2d 70 72 6f 6d 70 74 | 2d 72 65 67 65 78 70 20 |d-prompt|-regexp |
|00000ee0| 28 62 79 74 65 2d 63 6f | 64 65 20 22 08 c1 3d ab |(byte-co|de "..=.|
|00000ef0| 82 c2 87 c3 87 22 20 5b | 73 79 73 74 65 6d 2d 74 |....." [|system-t|
|00000f00| 79 70 65 20 61 69 78 2d | 76 33 20 22 5c 5c 28 5e |ype aix-|v3 "\\(^|
|00000f10| 2e 2e 2a 73 20 5b 50 70 | 5d 61 73 73 77 6f 72 64 |..*s [Pp|]assword|
|00000f20| 5c 5c 7c 70 61 73 73 20 | 70 68 72 61 73 65 5c 5c |\\|pass |phrase\\|
|00000f30| 29 3a 5c 5c 73 20 2a 5c | 5c 27 22 20 22 5c 5c 28 |):\\s *\|\'" "\\(|
|00000f40| 5e 5b 50 70 5d 61 73 73 | 77 6f 72 64 5c 5c 7c 70 |^[Pp]ass|word\\|p|
|00000f50| 61 73 73 20 70 68 72 61 | 73 65 5c 5c 29 3a 5c 5c |ass phra|se\\):\\|
|00000f60| 73 20 2a 5c 5c 27 22 5d | 20 32 29 20 22 5c 0a 2a |s *\\'"]| 2) "\.*|
|00000f70| 52 65 67 65 78 70 20 6d | 61 74 63 68 69 6e 67 20 |Regexp m|atching |
|00000f80| 70 72 6f 6d 70 74 73 20 | 66 6f 72 20 70 61 73 73 |prompts |for pass|
|00000f90| 77 6f 72 64 73 20 69 6e | 20 74 68 65 20 69 6e 66 |words in| the inf|
|00000fa0| 65 72 69 6f 72 20 70 72 | 6f 63 65 73 73 2e 0a 54 |erior pr|ocess..T|
|00000fb0| 68 69 73 20 69 73 20 75 | 73 65 64 20 62 79 20 60 |his is u|sed by `|
|00000fc0| 63 6f 6d 69 6e 74 2d 77 | 61 74 63 68 2d 66 6f 72 |comint-w|atch-for|
|00000fd0| 2d 70 61 73 73 77 6f 72 | 64 2d 70 72 6f 6d 70 74 |-passwor|d-prompt|
|00000fe0| 27 2e 22 29 0a 28 64 65 | 66 76 61 72 20 63 6f 6d |'.").(de|fvar com|
|00000ff0| 69 6e 74 2d 67 65 74 2d | 6f 6c 64 2d 69 6e 70 75 |int-get-|old-inpu|
|00001000| 74 20 27 63 6f 6d 69 6e | 74 2d 67 65 74 2d 6f 6c |t 'comin|t-get-ol|
|00001010| 64 2d 69 6e 70 75 74 2d | 64 65 66 61 75 6c 74 20 |d-input-|default |
|00001020| 22 5c 0a 46 75 6e 63 74 | 69 6f 6e 20 74 68 61 74 |"\.Funct|ion that|
|00001030| 20 72 65 74 75 72 6e 73 | 20 6f 6c 64 20 74 65 78 | returns| old tex|
|00001040| 74 20 69 6e 20 63 6f 6d | 69 6e 74 20 6d 6f 64 65 |t in com|int mode|
|00001050| 2e 0a 54 68 69 73 20 66 | 75 6e 63 74 69 6f 6e 20 |..This f|unction |
|00001060| 69 73 20 63 61 6c 6c 65 | 64 20 77 68 65 6e 20 72 |is calle|d when r|
|00001070| 65 74 75 72 6e 20 69 73 | 20 74 79 70 65 64 20 77 |eturn is| typed w|
|00001080| 68 69 6c 65 20 74 68 65 | 20 70 6f 69 6e 74 20 69 |hile the| point i|
|00001090| 73 20 69 6e 20 6f 6c 64 | 20 74 65 78 74 2e 0a 49 |s in old| text..I|
|000010a0| 74 20 72 65 74 75 72 6e | 73 20 74 68 65 20 74 65 |t return|s the te|
|000010b0| 78 74 20 74 6f 20 62 65 | 20 73 75 62 6d 69 74 74 |xt to be| submitt|
|000010c0| 65 64 20 61 73 20 70 72 | 6f 63 65 73 73 20 69 6e |ed as pr|ocess in|
|000010d0| 70 75 74 2e 20 20 54 68 | 65 20 64 65 66 61 75 6c |put. Th|e defaul|
|000010e0| 74 20 69 73 0a 60 63 6f | 6d 69 6e 74 2d 67 65 74 |t is.`co|mint-get|
|000010f0| 2d 6f 6c 64 2d 69 6e 70 | 75 74 2d 64 65 66 61 75 |-old-inp|ut-defau|
|00001100| 6c 74 27 2c 20 77 68 69 | 63 68 20 67 72 61 62 73 |lt', whi|ch grabs|
|00001110| 20 74 68 65 20 63 75 72 | 72 65 6e 74 20 6c 69 6e | the cur|rent lin|
|00001120| 65 2c 20 61 6e 64 20 73 | 74 72 69 70 73 20 6f 66 |e, and s|trips of|
|00001130| 66 0a 6c 65 61 64 69 6e | 67 20 74 65 78 74 20 6d |f.leadin|g text m|
|00001140| 61 74 63 68 69 6e 67 20 | 60 63 6f 6d 69 6e 74 2d |atching |`comint-|
|00001150| 70 72 6f 6d 70 74 2d 72 | 65 67 65 78 70 27 2e 22 |prompt-r|egexp'."|
|00001160| 29 0a 28 64 65 66 76 61 | 72 20 63 6f 6d 69 6e 74 |).(defva|r comint|
|00001170| 2d 61 70 70 65 6e 64 2d | 6f 6c 64 2d 69 6e 70 75 |-append-|old-inpu|
|00001180| 74 20 74 20 22 5c 0a 2a | 49 66 20 6e 69 6c 2c 20 |t t "\.*|If nil, |
|00001190| 6f 6c 64 20 74 65 78 74 | 20 73 65 6c 65 63 74 65 |old text| selecte|
|000011a0| 64 20 62 79 20 5c 5c 5b | 63 6f 6d 69 6e 74 2d 73 |d by \\[|comint-s|
|000011b0| 65 6e 64 2d 69 6e 70 75 | 74 5d 20 69 73 20 72 65 |end-inpu|t] is re|
|000011c0| 2d 73 65 6e 74 20 69 6d | 6d 65 64 69 61 74 65 6c |-sent im|mediatel|
|000011d0| 79 2e 0a 49 66 20 6e 6f | 6e 2d 6e 69 6c 2c 20 74 |y..If no|n-nil, t|
|000011e0| 68 65 20 6f 6c 64 20 74 | 65 78 74 20 69 73 20 61 |he old t|ext is a|
|000011f0| 70 70 65 6e 64 65 64 20 | 74 6f 20 74 68 65 20 65 |ppended |to the e|
|00001200| 6e 64 20 6f 66 20 74 68 | 65 20 62 75 66 66 65 72 |nd of th|e buffer|
|00001210| 2c 0a 61 6e 64 20 61 20 | 70 72 6f 6d 70 74 69 6e |,.and a |promptin|
|00001220| 67 20 6d 65 73 73 61 67 | 65 20 69 73 20 70 72 69 |g messag|e is pri|
|00001230| 6e 74 65 64 2e 0a 0a 54 | 68 69 73 20 66 6c 61 67 |nted...T|his flag|
|00001240| 20 64 6f 65 73 20 6e 6f | 74 20 61 66 66 65 63 74 | does no|t affect|
|00001250| 20 74 68 65 20 62 65 68 | 61 76 69 6f 72 20 6f 66 | the beh|avior of|
|00001260| 20 5c 5c 5b 63 6f 6d 69 | 6e 74 2d 73 65 6e 64 2d | \\[comi|nt-send-|
|00001270| 69 6e 70 75 74 5d 0a 61 | 66 74 65 72 20 74 68 65 |input].a|fter the|
|00001280| 20 70 72 6f 63 65 73 73 | 20 6f 75 74 70 75 74 20 | process| output |
|00001290| 6d 61 72 6b 2e 22 29 0a | 28 64 65 66 76 61 72 20 |mark.").|(defvar |
|000012a0| 63 6f 6d 69 6e 74 2d 64 | 79 6e 61 6d 69 63 2d 63 |comint-d|ynamic-c|
|000012b0| 6f 6d 70 6c 65 74 65 2d | 66 75 6e 63 74 69 6f 6e |omplete-|function|
|000012c0| 73 20 27 28 63 6f 6d 69 | 6e 74 2d 72 65 70 6c 61 |s '(comi|nt-repla|
|000012d0| 63 65 2d 62 79 2d 65 78 | 70 61 6e 64 65 64 2d 68 |ce-by-ex|panded-h|
|000012e0| 69 73 74 6f 72 79 20 63 | 6f 6d 69 6e 74 2d 64 79 |istory c|omint-dy|
|000012f0| 6e 61 6d 69 63 2d 63 6f | 6d 70 6c 65 74 65 2d 66 |namic-co|mplete-f|
|00001300| 69 6c 65 6e 61 6d 65 29 | 20 22 5c 0a 4c 69 73 74 |ilename)| "\.List|
|00001310| 20 6f 66 20 66 75 6e 63 | 74 69 6f 6e 73 20 63 61 | of func|tions ca|
|00001320| 6c 6c 65 64 20 74 6f 20 | 70 65 72 66 6f 72 6d 20 |lled to |perform |
|00001330| 63 6f 6d 70 6c 65 74 69 | 6f 6e 2e 0a 46 75 6e 63 |completi|on..Func|
|00001340| 74 69 6f 6e 73 20 73 68 | 6f 75 6c 64 20 72 65 74 |tions sh|ould ret|
|00001350| 75 72 6e 20 6e 6f 6e 2d | 6e 69 6c 20 69 66 20 63 |urn non-|nil if c|
|00001360| 6f 6d 70 6c 65 74 69 6f | 6e 20 77 61 73 20 70 65 |ompletio|n was pe|
|00001370| 72 66 6f 72 6d 65 64 2e | 0a 53 65 65 20 61 6c 73 |rformed.|.See als|
|00001380| 6f 20 60 63 6f 6d 69 6e | 74 2d 64 79 6e 61 6d 69 |o `comin|t-dynami|
|00001390| 63 2d 63 6f 6d 70 6c 65 | 74 65 27 2e 0a 0a 54 68 |c-comple|te'...Th|
|000013a0| 69 73 20 69 73 20 61 20 | 67 6f 6f 64 20 74 68 69 |is is a |good thi|
|000013b0| 6e 67 20 74 6f 20 73 65 | 74 20 69 6e 20 6d 6f 64 |ng to se|t in mod|
|000013c0| 65 20 68 6f 6f 6b 73 2e | 22 29 0a 28 6d 61 6b 65 |e hooks.|").(make|
|000013d0| 2d 6f 62 73 6f 6c 65 74 | 65 20 27 63 6f 6d 69 6e |-obsolet|e 'comin|
|000013e0| 74 2d 69 6e 70 75 74 2d | 73 65 6e 74 69 6e 65 6c |t-input-|sentinel|
|000013f0| 20 27 63 6f 6d 69 6e 74 | 2d 69 6e 70 75 74 2d 66 | 'comint|-input-f|
|00001400| 69 6c 74 65 72 2d 66 75 | 6e 63 74 69 6f 6e 73 29 |ilter-fu|nctions)|
|00001410| 0a 28 64 65 66 76 61 72 | 20 63 6f 6d 69 6e 74 2d |.(defvar| comint-|
|00001420| 69 6e 70 75 74 2d 73 65 | 6e 74 69 6e 65 6c 20 6e |input-se|ntinel n|
|00001430| 69 6c 20 22 5c 0a 4f 62 | 73 6f 6c 65 74 65 20 76 |il "\.Ob|solete v|
|00001440| 61 72 69 61 62 6c 65 2e | 20 20 55 73 65 20 60 63 |ariable.| Use `c|
|00001450| 6f 6d 69 6e 74 2d 69 6e | 70 75 74 2d 66 69 6c 74 |omint-in|put-filt|
|00001460| 65 72 2d 66 75 6e 63 74 | 69 6f 6e 73 27 20 69 6e |er-funct|ions' in|
|00001470| 73 74 65 61 64 2e 22 29 | 0a 28 64 65 66 76 61 72 |stead.")|.(defvar|
|00001480| 20 63 6f 6d 69 6e 74 2d | 69 6e 70 75 74 2d 66 69 | comint-|input-fi|
|00001490| 6c 74 65 72 20 23 5b 28 | 73 74 72 29 20 22 c0 c1 |lter #[(|str) "..|
|000014a0| 5c 6e 5c 22 3f ad 84 5c | 6e 47 c3 56 87 22 20 5b |\n\"?..\|nG.V." [|
|000014b0| 73 74 72 69 6e 67 2d 6d | 61 74 63 68 20 22 5c 5c |string-m|atch "\\|
|000014c0| 60 5c 5c 73 20 2a 5c 5c | 27 22 20 73 74 72 20 32 |`\\s *\\|'" str 2|
|000014d0| 5d 20 33 5d 20 22 5c 0a | 50 72 65 64 69 63 61 74 |] 3] "\.|Predicat|
|000014e0| 65 20 66 6f 72 20 66 69 | 6c 74 65 72 69 6e 67 20 |e for fi|ltering |
|000014f0| 61 64 64 69 74 69 6f 6e | 73 20 74 6f 20 69 6e 70 |addition|s to inp|
|00001500| 75 74 20 68 69 73 74 6f | 72 79 2e 0a 54 61 6b 65 |ut histo|ry..Take|
|00001510| 73 20 6f 6e 65 20 61 72 | 67 75 6d 65 6e 74 2c 20 |s one ar|gument, |
|00001520| 74 68 65 20 69 6e 70 75 | 74 2e 20 20 49 66 20 6e |the inpu|t. If n|
|00001530| 6f 6e 2d 6e 69 6c 2c 20 | 74 68 65 20 69 6e 70 75 |on-nil, |the inpu|
|00001540| 74 20 6d 61 79 20 62 65 | 20 73 61 76 65 64 20 6f |t may be| saved o|
|00001550| 6e 20 74 68 65 20 69 6e | 70 75 74 0a 68 69 73 74 |n the in|put.hist|
|00001560| 6f 72 79 20 6c 69 73 74 | 2e 20 20 44 65 66 61 75 |ory list|. Defau|
|00001570| 6c 74 20 69 73 20 74 6f | 20 73 61 76 65 20 61 6e |lt is to| save an|
|00001580| 79 74 68 69 6e 67 20 6c | 6f 6e 67 65 72 20 74 68 |ything l|onger th|
|00001590| 61 6e 20 74 77 6f 20 63 | 68 61 72 61 63 74 65 72 |an two c|haracter|
|000015a0| 73 0a 74 68 61 74 20 69 | 73 6e 27 74 20 61 6c 6c |s.that i|sn't all|
|000015b0| 20 77 68 69 74 65 73 70 | 61 63 65 2e 22 29 0a 28 | whitesp|ace.").(|
|000015c0| 64 65 66 76 61 72 20 63 | 6f 6d 69 6e 74 2d 69 6e |defvar c|omint-in|
|000015d0| 70 75 74 2d 66 69 6c 74 | 65 72 2d 66 75 6e 63 74 |put-filt|er-funct|
|000015e0| 69 6f 6e 73 20 6e 69 6c | 20 22 5c 0a 46 75 6e 63 |ions nil| "\.Func|
|000015f0| 74 69 6f 6e 73 20 74 6f | 20 63 61 6c 6c 20 62 65 |tions to| call be|
|00001600| 66 6f 72 65 20 69 6e 70 | 75 74 20 69 73 20 73 65 |fore inp|ut is se|
|00001610| 6e 74 20 74 6f 20 74 68 | 65 20 70 72 6f 63 65 73 |nt to th|e proces|
|00001620| 73 2e 0a 54 68 65 73 65 | 20 66 75 6e 63 74 69 6f |s..These| functio|
|00001630| 6e 73 20 67 65 74 20 6f | 6e 65 20 61 72 67 75 6d |ns get o|ne argum|
|00001640| 65 6e 74 2c 20 61 20 73 | 74 72 69 6e 67 20 63 6f |ent, a s|tring co|
|00001650| 6e 74 61 69 6e 69 6e 67 | 20 74 68 65 20 74 65 78 |ntaining| the tex|
|00001660| 74 20 74 6f 20 73 65 6e | 64 2e 0a 0a 54 68 69 73 |t to sen|d...This|
|00001670| 20 76 61 72 69 61 62 6c | 65 20 69 73 20 62 75 66 | variabl|e is buf|
|00001680| 66 65 72 2d 6c 6f 63 61 | 6c 2e 22 29 0a 28 64 65 |fer-loca|l.").(de|
|00001690| 66 76 61 72 20 63 6f 6d | 69 6e 74 2d 6f 75 74 70 |fvar com|int-outp|
|000016a0| 75 74 2d 66 69 6c 74 65 | 72 2d 66 75 6e 63 74 69 |ut-filte|r-functi|
|000016b0| 6f 6e 73 20 27 28 63 6f | 6d 69 6e 74 2d 70 6f 73 |ons '(co|mint-pos|
|000016c0| 74 6f 75 74 70 75 74 2d | 73 63 72 6f 6c 6c 2d 74 |toutput-|scroll-t|
|000016d0| 6f 2d 62 6f 74 74 6f 6d | 20 63 6f 6d 69 6e 74 2d |o-bottom| comint-|
|000016e0| 77 61 74 63 68 2d 66 6f | 72 2d 70 61 73 73 77 6f |watch-fo|r-passwo|
|000016f0| 72 64 2d 70 72 6f 6d 70 | 74 29 20 22 5c 0a 46 75 |rd-promp|t) "\.Fu|
|00001700| 6e 63 74 69 6f 6e 73 20 | 74 6f 20 63 61 6c 6c 20 |nctions |to call |
|00001710| 61 66 74 65 72 20 6f 75 | 74 70 75 74 20 69 73 20 |after ou|tput is |
|00001720| 69 6e 73 65 72 74 65 64 | 20 69 6e 74 6f 20 74 68 |inserted| into th|
|00001730| 65 20 62 75 66 66 65 72 | 2e 0a 4f 6e 65 20 70 6f |e buffer|..One po|
|00001740| 73 73 69 62 6c 65 20 66 | 75 6e 63 74 69 6f 6e 20 |ssible f|unction |
|00001750| 69 73 20 60 63 6f 6d 69 | 6e 74 2d 70 6f 73 74 6f |is `comi|nt-posto|
|00001760| 75 74 70 75 74 2d 73 63 | 72 6f 6c 6c 2d 74 6f 2d |utput-sc|roll-to-|
|00001770| 62 6f 74 74 6f 6d 27 2e | 0a 54 68 65 73 65 20 66 |bottom'.|.These f|
|00001780| 75 6e 63 74 69 6f 6e 73 | 20 67 65 74 20 6f 6e 65 |unctions| get one|
|00001790| 20 61 72 67 75 6d 65 6e | 74 2c 20 61 20 73 74 72 | argumen|t, a str|
|000017a0| 69 6e 67 20 63 6f 6e 74 | 61 69 6e 69 6e 67 20 74 |ing cont|aining t|
|000017b0| 68 65 20 74 65 78 74 20 | 6a 75 73 74 20 69 6e 73 |he text |just ins|
|000017c0| 65 72 74 65 64 2e 0a 0a | 54 68 69 73 20 76 61 72 |erted...|This var|
|000017d0| 69 61 62 6c 65 20 69 73 | 20 62 75 66 66 65 72 2d |iable is| buffer-|
|000017e0| 6c 6f 63 61 6c 2e 22 29 | 0a 28 64 65 66 76 61 72 |local.")|.(defvar|
|000017f0| 20 63 6f 6d 69 6e 74 2d | 69 6e 70 75 74 2d 73 65 | comint-|input-se|
|00001800| 6e 64 65 72 20 27 63 6f | 6d 69 6e 74 2d 73 69 6d |nder 'co|mint-sim|
|00001810| 70 6c 65 2d 73 65 6e 64 | 20 22 5c 0a 46 75 6e 63 |ple-send| "\.Func|
|00001820| 74 69 6f 6e 20 74 6f 20 | 61 63 74 75 61 6c 6c 79 |tion to |actually|
|00001830| 20 73 65 6e 64 20 74 6f | 20 50 52 4f 43 45 53 53 | send to| PROCESS|
|00001840| 20 74 68 65 20 53 54 52 | 49 4e 47 20 73 75 62 6d | the STR|ING subm|
|00001850| 69 74 74 65 64 20 62 79 | 20 75 73 65 72 2e 0a 55 |itted by| user..U|
|00001860| 73 75 61 6c 6c 79 20 74 | 68 69 73 20 69 73 20 6a |sually t|his is j|
|00001870| 75 73 74 20 60 63 6f 6d | 69 6e 74 2d 73 69 6d 70 |ust `com|int-simp|
|00001880| 6c 65 2d 73 65 6e 64 27 | 2c 20 62 75 74 20 69 66 |le-send'|, but if|
|00001890| 20 79 6f 75 72 20 6d 6f | 64 65 20 6e 65 65 64 73 | your mo|de needs|
|000018a0| 20 74 6f 0a 6d 61 73 73 | 61 67 65 20 74 68 65 20 | to.mass|age the |
|000018b0| 69 6e 70 75 74 20 73 74 | 72 69 6e 67 2c 20 70 75 |input st|ring, pu|
|000018c0| 74 20 61 20 64 69 66 66 | 65 72 65 6e 74 20 66 75 |t a diff|erent fu|
|000018d0| 6e 63 74 69 6f 6e 20 68 | 65 72 65 2e 0a 60 63 6f |nction h|ere..`co|
|000018e0| 6d 69 6e 74 2d 73 69 6d | 70 6c 65 2d 73 65 6e 64 |mint-sim|ple-send|
|000018f0| 27 20 6a 75 73 74 20 73 | 65 6e 64 73 20 74 68 65 |' just s|ends the|
|00001900| 20 73 74 72 69 6e 67 20 | 70 6c 75 73 20 61 20 6e | string |plus a n|
|00001910| 65 77 6c 69 6e 65 2e 0a | 54 68 69 73 20 69 73 20 |ewline..|This is |
|00001920| 63 61 6c 6c 65 64 20 66 | 72 6f 6d 20 74 68 65 20 |called f|rom the |
|00001930| 75 73 65 72 20 63 6f 6d | 6d 61 6e 64 20 60 63 6f |user com|mand `co|
|00001940| 6d 69 6e 74 2d 73 65 6e | 64 2d 69 6e 70 75 74 27 |mint-sen|d-input'|
|00001950| 2e 22 29 0a 28 64 65 66 | 76 61 72 20 63 6f 6d 69 |.").(def|var comi|
|00001960| 6e 74 2d 65 6f 6c 2d 6f | 6e 2d 73 65 6e 64 20 74 |nt-eol-o|n-send t|
|00001970| 20 22 5c 0a 2a 4e 6f 6e | 2d 6e 69 6c 20 6d 65 61 | "\.*Non|-nil mea|
|00001980| 6e 73 20 67 6f 20 74 6f | 20 74 68 65 20 65 6e 64 |ns go to| the end|
|00001990| 20 6f 66 20 74 68 65 20 | 6c 69 6e 65 20 62 65 66 | of the |line bef|
|000019a0| 6f 72 65 20 73 65 6e 64 | 69 6e 67 20 69 6e 70 75 |ore send|ing inpu|
|000019b0| 74 2e 0a 53 65 65 20 60 | 63 6f 6d 69 6e 74 2d 73 |t..See `|comint-s|
|000019c0| 65 6e 64 2d 69 6e 70 75 | 74 27 2e 22 29 0a 28 64 |end-inpu|t'.").(d|
|000019d0| 65 66 76 61 72 20 63 6f | 6d 69 6e 74 2d 6d 6f 64 |efvar co|mint-mod|
|000019e0| 65 2d 68 6f 6f 6b 20 6e | 69 6c 20 22 5c 0a 43 61 |e-hook n|il "\.Ca|
|000019f0| 6c 6c 65 64 20 75 70 6f | 6e 20 65 6e 74 72 79 20 |lled upo|n entry |
|00001a00| 69 6e 74 6f 20 63 6f 6d | 69 6e 74 2d 6d 6f 64 65 |into com|int-mode|
|00001a10| 0a 54 68 69 73 20 69 73 | 20 72 75 6e 20 62 65 66 |.This is| run bef|
|00001a20| 6f 72 65 20 74 68 65 20 | 70 72 6f 63 65 73 73 20 |ore the |process |
|00001a30| 69 73 20 63 72 61 6e 6b | 65 64 20 75 70 2e 22 29 |is crank|ed up.")|
|00001a40| 0a 28 64 65 66 76 61 72 | 20 63 6f 6d 69 6e 74 2d |.(defvar| comint-|
|00001a50| 65 78 65 63 2d 68 6f 6f | 6b 20 6e 69 6c 20 22 5c |exec-hoo|k nil "\|
|00001a60| 0a 43 61 6c 6c 65 64 20 | 65 61 63 68 20 74 69 6d |.Called |each tim|
|00001a70| 65 20 61 20 70 72 6f 63 | 65 73 73 20 69 73 20 65 |e a proc|ess is e|
|00001a80| 78 65 63 27 64 20 62 79 | 20 60 63 6f 6d 69 6e 74 |xec'd by| `comint|
|00001a90| 2d 65 78 65 63 27 2e 0a | 54 68 69 73 20 69 73 20 |-exec'..|This is |
|00001aa0| 63 61 6c 6c 65 64 20 61 | 66 74 65 72 20 74 68 65 |called a|fter the|
|00001ab0| 20 70 72 6f 63 65 73 73 | 20 69 73 20 63 72 61 6e | process| is cran|
|00001ac0| 6b 65 64 20 75 70 2e 20 | 20 49 74 20 69 73 20 75 |ked up. | It is u|
|00001ad0| 73 65 66 75 6c 20 66 6f | 72 20 74 68 69 6e 67 73 |seful fo|r things|
|00001ae0| 20 74 68 61 74 0a 6d 75 | 73 74 20 62 65 20 64 6f | that.mu|st be do|
|00001af0| 6e 65 20 65 61 63 68 20 | 74 69 6d 65 20 61 20 70 |ne each |time a p|
|00001b00| 72 6f 63 65 73 73 20 69 | 73 20 65 78 65 63 75 74 |rocess i|s execut|
|00001b10| 65 64 20 69 6e 20 61 20 | 63 6f 6d 69 6e 74 20 6d |ed in a |comint m|
|00001b20| 6f 64 65 20 62 75 66 66 | 65 72 20 28 65 2e 67 2e |ode buff|er (e.g.|
|00001b30| 2c 0a 60 28 70 72 6f 63 | 65 73 73 2d 6b 69 6c 6c |,.`(proc|ess-kill|
|00001b40| 2d 77 69 74 68 6f 75 74 | 2d 71 75 65 72 79 29 27 |-without|-query)'|
|00001b50| 29 2e 20 20 49 6e 20 63 | 6f 6e 74 72 61 73 74 2c |). In c|ontrast,|
|00001b60| 20 74 68 65 20 60 63 6f | 6d 69 6e 74 2d 6d 6f 64 | the `co|mint-mod|
|00001b70| 65 2d 68 6f 6f 6b 27 20 | 69 73 20 6f 6e 6c 79 0a |e-hook' |is only.|
|00001b80| 65 78 65 63 75 74 65 64 | 20 6f 6e 63 65 20 77 68 |executed| once wh|
|00001b90| 65 6e 20 74 68 65 20 62 | 75 66 66 65 72 20 69 73 |en the b|uffer is|
|00001ba0| 20 63 72 65 61 74 65 64 | 2e 22 29 0a 28 62 79 74 | created|.").(byt|
|00001bb0| 65 2d 63 6f 64 65 20 22 | c0 c1 21 ac 82 c2 11 c2 |e-code "|..!.....|
|00001bc0| 87 22 20 5b 62 6f 75 6e | 64 70 20 63 6f 6d 69 6e |." [boun|dp comin|
|00001bd0| 74 2d 6d 6f 64 65 2d 6d | 61 70 20 6e 69 6c 5d 20 |t-mode-m|ap nil] |
|00001be0| 32 29 0a 28 64 65 66 76 | 61 72 20 63 6f 6d 69 6e |2).(defv|ar comin|
|00001bf0| 74 2d 70 74 79 70 20 74 | 20 22 5c 0a 4e 6f 6e 2d |t-ptyp t| "\.Non-|
|00001c00| 6e 69 6c 20 69 66 20 63 | 6f 6d 6d 75 6e 69 63 61 |nil if c|ommunica|
|00001c10| 74 69 6f 6e 73 20 76 69 | 61 20 70 74 79 3b 20 66 |tions vi|a pty; f|
|00001c20| 61 6c 73 65 20 69 66 20 | 62 79 20 70 69 70 65 2e |alse if |by pipe.|
|00001c30| 20 20 42 75 66 66 65 72 | 20 6c 6f 63 61 6c 2e 0a | Buffer| local..|
|00001c40| 54 68 69 73 20 69 73 20 | 74 6f 20 77 6f 72 6b 20 |This is |to work |
|00001c50| 61 72 6f 75 6e 64 20 61 | 20 62 75 67 20 69 6e 20 |around a| bug in |
|00001c60| 45 6d 61 63 73 20 70 72 | 6f 63 65 73 73 20 73 69 |Emacs pr|ocess si|
|00001c70| 67 6e 61 6c 6c 69 6e 67 | 2e 22 29 0a 28 62 79 74 |gnalling|.").(byt|
|00001c80| 65 2d 63 6f 64 65 20 22 | c0 c1 21 ac 82 c2 11 c2 |e-code "|..!.....|
|00001c90| 87 22 20 5b 62 6f 75 6e | 64 70 20 63 6f 6d 69 6e |." [boun|dp comin|
|00001ca0| 74 2d 69 6e 70 75 74 2d | 72 69 6e 67 20 6e 69 6c |t-input-|ring nil|
|00001cb0| 5d 20 32 29 0a 28 64 65 | 66 76 61 72 20 63 6f 6d |] 2).(de|fvar com|
|00001cc0| 69 6e 74 2d 69 6e 70 75 | 74 2d 72 69 6e 67 2d 69 |int-inpu|t-ring-i|
|00001cd0| 6e 64 65 78 20 6e 69 6c | 20 22 5c 0a 49 6e 64 65 |ndex nil| "\.Inde|
|00001ce0| 78 20 6f 66 20 6c 61 73 | 74 20 6d 61 74 63 68 65 |x of las|t matche|
|00001cf0| 64 20 68 69 73 74 6f 72 | 79 20 65 6c 65 6d 65 6e |d histor|y elemen|
|00001d00| 74 2e 22 29 0a 28 64 65 | 66 76 61 72 20 63 6f 6d |t.").(de|fvar com|
|00001d10| 69 6e 74 2d 6d 61 74 63 | 68 69 6e 67 2d 69 6e 70 |int-matc|hing-inp|
|00001d20| 75 74 2d 66 72 6f 6d 2d | 69 6e 70 75 74 2d 73 74 |ut-from-|input-st|
|00001d30| 72 69 6e 67 20 22 22 20 | 22 5c 0a 49 6e 70 75 74 |ring "" |"\.Input|
|00001d40| 20 70 72 65 76 69 6f 75 | 73 6c 79 20 75 73 65 64 | previou|sly used|
|00001d50| 20 74 6f 20 6d 61 74 63 | 68 20 69 6e 70 75 74 20 | to matc|h input |
|00001d60| 68 69 73 74 6f 72 79 2e | 22 29 0a 28 62 79 74 65 |history.|").(byte|
|00001d70| 2d 63 6f 64 65 20 22 c0 | c1 c2 c3 23 88 c0 c4 c2 |-code ".|...#....|
|00001d80| c3 23 88 c0 c5 c2 c3 23 | 88 c0 c6 c2 c3 23 88 c0 |.#.....#|.....#..|
|00001d90| c7 c2 c3 23 88 c0 c8 c2 | c3 23 88 c0 c9 c2 c3 23 |...#....|.#.....#|
|00001da0| 88 c0 ca c2 c3 23 88 c0 | cb c2 c3 23 87 22 20 5b |.....#..|...#." [|
|00001db0| 70 75 74 20 63 6f 6d 69 | 6e 74 2d 69 6e 70 75 74 |put comi|nt-input|
|00001dc0| 2d 72 69 6e 67 20 70 65 | 72 6d 61 6e 65 6e 74 2d |-ring pe|rmanent-|
|00001dd0| 6c 6f 63 61 6c 20 74 20 | 63 6f 6d 69 6e 74 2d 69 |local t |comint-i|
|00001de0| 6e 70 75 74 2d 72 69 6e | 67 2d 69 6e 64 65 78 20 |nput-rin|g-index |
|00001df0| 63 6f 6d 69 6e 74 2d 69 | 6e 70 75 74 2d 61 75 74 |comint-i|nput-aut|
|00001e00| 6f 65 78 70 61 6e 64 20 | 63 6f 6d 69 6e 74 2d 69 |oexpand |comint-i|
|00001e10| 6e 70 75 74 2d 66 69 6c | 74 65 72 2d 66 75 6e 63 |nput-fil|ter-func|
|00001e20| 74 69 6f 6e 73 20 63 6f | 6d 69 6e 74 2d 6f 75 74 |tions co|mint-out|
|00001e30| 70 75 74 2d 66 69 6c 74 | 65 72 2d 66 75 6e 63 74 |put-filt|er-funct|
|00001e40| 69 6f 6e 73 20 63 6f 6d | 69 6e 74 2d 73 63 72 6f |ions com|int-scro|
|00001e50| 6c 6c 2d 74 6f 2d 62 6f | 74 74 6f 6d 2d 6f 6e 2d |ll-to-bo|ttom-on-|
|00001e60| 69 6e 70 75 74 20 63 6f | 6d 69 6e 74 2d 73 63 72 |input co|mint-scr|
|00001e70| 6f 6c 6c 2d 74 6f 2d 62 | 6f 74 74 6f 6d 2d 6f 6e |oll-to-b|ottom-on|
|00001e80| 2d 6f 75 74 70 75 74 20 | 63 6f 6d 69 6e 74 2d 73 |-output |comint-s|
|00001e90| 63 72 6f 6c 6c 2d 73 68 | 6f 77 2d 6d 61 78 69 6d |croll-sh|ow-maxim|
|00001ea0| 75 6d 2d 6f 75 74 70 75 | 74 20 63 6f 6d 69 6e 74 |um-outpu|t comint|
|00001eb0| 2d 70 74 79 70 5d 20 34 | 29 0a 28 66 73 65 74 20 |-ptyp] 4|).(fset |
|00001ec0| 27 63 6f 6d 69 6e 74 2d | 6d 6f 64 65 20 23 5b 6e |'comint-|mode #[n|
|00001ed0| 69 6c 20 22 c0 20 88 c1 | 12 c3 14 c5 16 06 c7 0e |il ". ..|........|
|00001ee0| 08 21 88 c9 ca 21 88 cb | 20 89 16 5c 6e 65 cc 93 |.!...!..| ..\ne..|
|00001ef0| 88 c9 cd 21 88 cb 20 89 | 16 0d 65 cc 93 88 c9 ce |...!.. .|..e.....|
|00001f00| 21 88 cb 20 16 0e c9 cf | 21 88 c9 d0 21 88 c9 d1 |!.. ....|!...!...|
|00001f10| 21 88 c9 d2 21 88 d3 d1 | 21 ab 84 0e 11 ac 86 d4 |!...!...|!.......|
|00001f20| 0e 10 21 16 11 c9 d5 21 | 88 d3 d5 21 ab 84 0e 15 |..!....!|...!....|
|00001f30| ac 83 cc 16 15 c9 d6 21 | 88 c9 d7 21 88 c9 d8 21 |.......!|...!...!|
|00001f40| 88 c9 d9 21 88 c9 da 21 | 88 c9 db 21 88 c9 dc 21 |...!...!|...!...!|
|00001f50| 88 c9 dd 21 88 c9 de 21 | 88 c9 df 21 88 c9 e0 21 |...!...!|...!...!|
|00001f60| 88 c9 e1 21 88 c9 e2 21 | 88 c9 e3 21 88 c9 e4 21 |...!...!|...!...!|
|00001f70| 88 e5 e6 e7 5c 22 88 c9 | e8 21 88 c9 e9 21 88 c9 |....\"..|.!...!..|
|00001f80| ea 21 88 c9 eb 21 88 ec | ed 21 87 22 20 5b 6b 69 |.!...!..|.!." [ki|
|00001f90| 6c 6c 2d 61 6c 6c 2d 6c | 6f 63 61 6c 2d 76 61 72 |ll-all-l|ocal-var|
|00001fa0| 69 61 62 6c 65 73 20 63 | 6f 6d 69 6e 74 2d 6d 6f |iables c|omint-mo|
|00001fb0| 64 65 20 6d 61 6a 6f 72 | 2d 6d 6f 64 65 20 22 43 |de major|-mode "C|
|00001fc0| 6f 6d 69 6e 74 22 20 6d | 6f 64 65 2d 6e 61 6d 65 |omint" m|ode-name|
|00001fd0| 20 28 22 3a 20 25 73 22 | 29 20 6d 6f 64 65 2d 6c | (": %s"|) mode-l|
|00001fe0| 69 6e 65 2d 70 72 6f 63 | 65 73 73 20 75 73 65 2d |ine-proc|ess use-|
|00001ff0| 6c 6f 63 61 6c 2d 6d 61 | 70 20 63 6f 6d 69 6e 74 |local-ma|p comint|
|00002000| 2d 6d 6f 64 65 2d 6d 61 | 70 20 6d 61 6b 65 2d 6c |-mode-ma|p make-l|
|00002010| 6f 63 61 6c 2d 76 61 72 | 69 61 62 6c 65 20 63 6f |ocal-var|iable co|
|00002020| 6d 69 6e 74 2d 6c 61 73 | 74 2d 69 6e 70 75 74 2d |mint-las|t-input-|
|00002030| 73 74 61 72 74 20 6d 61 | 6b 65 2d 6d 61 72 6b 65 |start ma|ke-marke|
|00002040| 72 20 6e 69 6c 20 63 6f | 6d 69 6e 74 2d 6c 61 73 |r nil co|mint-las|
|00002050| 74 2d 69 6e 70 75 74 2d | 65 6e 64 20 63 6f 6d 69 |t-input-|end comi|
|00002060| 6e 74 2d 6c 61 73 74 2d | 6f 75 74 70 75 74 2d 73 |nt-last-|output-s|
|00002070| 74 61 72 74 20 63 6f 6d | 69 6e 74 2d 70 72 6f 6d |tart com|int-prom|
|00002080| 70 74 2d 72 65 67 65 78 | 70 20 63 6f 6d 69 6e 74 |pt-regex|p comint|
|00002090| 2d 69 6e 70 75 74 2d 72 | 69 6e 67 2d 73 69 7a 65 |-input-r|ing-size|
|000020a0| 20 63 6f 6d 69 6e 74 2d | 69 6e 70 75 74 2d 72 69 | comint-|input-ri|
|000020b0| 6e 67 20 63 6f 6d 69 6e | 74 2d 69 6e 70 75 74 2d |ng comin|t-input-|
|000020c0| 72 69 6e 67 2d 66 69 6c | 65 2d 6e 61 6d 65 20 62 |ring-fil|e-name b|
|000020d0| 6f 75 6e 64 70 20 6d 61 | 6b 65 2d 72 69 6e 67 20 |oundp ma|ke-ring |
|000020e0| 63 6f 6d 69 6e 74 2d 69 | 6e 70 75 74 2d 72 69 6e |comint-i|nput-rin|
|000020f0| 67 2d 69 6e 64 65 78 20 | 63 6f 6d 69 6e 74 2d 6d |g-index |comint-m|
|00002100| 61 74 63 68 69 6e 67 2d | 69 6e 70 75 74 2d 66 72 |atching-|input-fr|
|00002110| 6f 6d 2d 69 6e 70 75 74 | 2d 73 74 72 69 6e 67 20 |om-input|-string |
|00002120| 63 6f 6d 69 6e 74 2d 69 | 6e 70 75 74 2d 61 75 74 |comint-i|nput-aut|
|00002130| 6f 65 78 70 61 6e 64 20 | 63 6f 6d 69 6e 74 2d 69 |oexpand |comint-i|
|00002140| 6e 70 75 74 2d 69 67 6e | 6f 72 65 64 75 70 73 20 |nput-ign|oredups |
|00002150| 63 6f 6d 69 6e 74 2d 64 | 65 6c 69 6d 69 74 65 72 |comint-d|elimiter|
|00002160| 2d 61 72 67 75 6d 65 6e | 74 2d 6c 69 73 74 20 63 |-argumen|t-list c|
|00002170| 6f 6d 69 6e 74 2d 64 79 | 6e 61 6d 69 63 2d 63 6f |omint-dy|namic-co|
|00002180| 6d 70 6c 65 74 65 2d 66 | 75 6e 63 74 69 6f 6e 73 |mplete-f|unctions|
|00002190| 20 63 6f 6d 69 6e 74 2d | 63 6f 6d 70 6c 65 74 69 | comint-|completi|
|000021a0| 6f 6e 2d 66 69 67 6e 6f | 72 65 20 63 6f 6d 69 6e |on-figno|re comin|
|000021b0| 74 2d 67 65 74 2d 6f 6c | 64 2d 69 6e 70 75 74 20 |t-get-ol|d-input |
|000021c0| 63 6f 6d 69 6e 74 2d 69 | 6e 70 75 74 2d 66 69 6c |comint-i|nput-fil|
|000021d0| 74 65 72 2d 66 75 6e 63 | 74 69 6f 6e 73 20 63 6f |ter-func|tions co|
|000021e0| 6d 69 6e 74 2d 69 6e 70 | 75 74 2d 73 65 6e 74 69 |mint-inp|ut-senti|
|000021f0| 6e 65 6c 20 63 6f 6d 69 | 6e 74 2d 69 6e 70 75 74 |nel comi|nt-input|
|00002200| 2d 66 69 6c 74 65 72 20 | 63 6f 6d 69 6e 74 2d 69 |-filter |comint-i|
|00002210| 6e 70 75 74 2d 73 65 6e | 64 65 72 20 63 6f 6d 69 |nput-sen|der comi|
|00002220| 6e 74 2d 65 6f 6c 2d 6f | 6e 2d 73 65 6e 64 20 63 |nt-eol-o|n-send c|
|00002230| 6f 6d 69 6e 74 2d 73 63 | 72 6f 6c 6c 2d 74 6f 2d |omint-sc|roll-to-|
|00002240| 62 6f 74 74 6f 6d 2d 6f | 6e 2d 69 6e 70 75 74 20 |bottom-o|n-input |
|00002250| 63 6f 6d 69 6e 74 2d 73 | 63 72 6f 6c 6c 2d 74 6f |comint-s|croll-to|
|00002260| 2d 62 6f 74 74 6f 6d 2d | 6f 6e 2d 6f 75 74 70 75 |-bottom-|on-outpu|
|00002270| 74 20 63 6f 6d 69 6e 74 | 2d 73 63 72 6f 6c 6c 2d |t comint|-scroll-|
|00002280| 73 68 6f 77 2d 6d 61 78 | 69 6d 75 6d 2d 6f 75 74 |show-max|imum-out|
|00002290| 70 75 74 20 61 64 64 2d | 68 6f 6f 6b 20 6c 6f 63 |put add-|hook loc|
|000022a0| 61 6c 2d 70 72 65 2d 63 | 6f 6d 6d 61 6e 64 2d 68 |al-pre-c|ommand-h|
|000022b0| 6f 6f 6b 20 63 6f 6d 69 | 6e 74 2d 70 72 65 69 6e |ook comi|nt-prein|
|000022c0| 70 75 74 2d 73 63 72 6f | 6c 6c 2d 74 6f 2d 62 6f |put-scro|ll-to-bo|
|000022d0| 74 74 6f 6d 20 63 6f 6d | 69 6e 74 2d 6f 75 74 70 |ttom com|int-outp|
|000022e0| 75 74 2d 66 69 6c 74 65 | 72 2d 66 75 6e 63 74 69 |ut-filte|r-functi|
|000022f0| 6f 6e 73 20 63 6f 6d 69 | 6e 74 2d 70 74 79 70 20 |ons comi|nt-ptyp |
|00002300| 63 6f 6d 69 6e 74 2d 65 | 78 65 63 2d 68 6f 6f 6b |comint-e|xec-hook|
|00002310| 20 63 6f 6d 69 6e 74 2d | 70 72 6f 63 65 73 73 2d | comint-|process-|
|00002320| 65 63 68 6f 65 73 20 72 | 75 6e 2d 68 6f 6f 6b 73 |echoes r|un-hooks|
|00002330| 20 63 6f 6d 69 6e 74 2d | 6d 6f 64 65 2d 68 6f 6f | comint-|mode-hoo|
|00002340| 6b 5d 20 34 20 22 5c 0a | 4d 61 6a 6f 72 20 6d 6f |k] 4 "\.|Major mo|
|00002350| 64 65 20 66 6f 72 20 69 | 6e 74 65 72 61 63 74 69 |de for i|nteracti|
|00002360| 6e 67 20 77 69 74 68 20 | 61 6e 20 69 6e 66 65 72 |ng with |an infer|
|00002370| 69 6f 72 20 69 6e 74 65 | 72 70 72 65 74 65 72 2e |ior inte|rpreter.|
|00002380| 0a 49 6e 74 65 72 70 72 | 65 74 65 72 20 6e 61 6d |.Interpr|eter nam|
|00002390| 65 20 69 73 20 73 61 6d | 65 20 61 73 20 62 75 66 |e is sam|e as buf|
|000023a0| 66 65 72 20 6e 61 6d 65 | 2c 20 73 61 6e 73 20 74 |fer name|, sans t|
|000023b0| 68 65 20 61 73 74 65 72 | 69 73 6b 73 2e 0a 52 65 |he aster|isks..Re|
|000023c0| 74 75 72 6e 20 61 74 20 | 65 6e 64 20 6f 66 20 62 |turn at |end of b|
|000023d0| 75 66 66 65 72 20 73 65 | 6e 64 73 20 6c 69 6e 65 |uffer se|nds line|
|000023e0| 20 61 73 20 69 6e 70 75 | 74 2e 0a 52 65 74 75 72 | as inpu|t..Retur|
|000023f0| 6e 20 6e 6f 74 20 61 74 | 20 65 6e 64 20 63 6f 70 |n not at| end cop|
|00002400| 69 65 73 20 72 65 73 74 | 20 6f 66 20 6c 69 6e 65 |ies rest| of line|
|00002410| 20 74 6f 20 65 6e 64 20 | 61 6e 64 20 73 65 6e 64 | to end |and send|
|00002420| 73 20 69 74 2e 0a 53 65 | 74 74 69 6e 67 20 76 61 |s it..Se|tting va|
|00002430| 72 69 61 62 6c 65 20 60 | 63 6f 6d 69 6e 74 2d 65 |riable `|comint-e|
|00002440| 6f 6c 2d 6f 6e 2d 73 65 | 6e 64 27 20 6d 65 61 6e |ol-on-se|nd' mean|
|00002450| 73 20 6a 75 6d 70 20 74 | 6f 20 74 68 65 20 65 6e |s jump t|o the en|
|00002460| 64 20 6f 66 20 74 68 65 | 20 6c 69 6e 65 0a 62 65 |d of the| line.be|
|00002470| 66 6f 72 65 20 73 75 62 | 6d 69 74 74 69 6e 67 20 |fore sub|mitting |
|00002480| 6e 65 77 20 69 6e 70 75 | 74 2e 0a 0a 54 68 69 73 |new inpu|t...This|
|00002490| 20 6d 6f 64 65 20 69 73 | 20 63 75 73 74 6f 6d 69 | mode is| customi|
|000024a0| 73 65 64 20 74 6f 20 63 | 72 65 61 74 65 20 6d 61 |sed to c|reate ma|
|000024b0| 6a 6f 72 20 6d 6f 64 65 | 73 20 73 75 63 68 20 61 |jor mode|s such a|
|000024c0| 73 20 49 6e 66 65 72 69 | 6f 72 20 4c 69 73 70 0a |s Inferi|or Lisp.|
|000024d0| 6d 6f 64 65 2c 20 53 68 | 65 6c 6c 20 6d 6f 64 65 |mode, Sh|ell mode|
|000024e0| 2c 20 65 74 63 2e 20 20 | 54 68 69 73 20 63 61 6e |, etc. |This can|
|000024f0| 20 62 65 20 64 6f 6e 65 | 20 62 79 20 73 65 74 74 | be done| by sett|
|00002500| 69 6e 67 20 74 68 65 20 | 68 6f 6f 6b 73 0a 60 63 |ing the |hooks.`c|
|00002510| 6f 6d 69 6e 74 2d 69 6e | 70 75 74 2d 66 69 6c 74 |omint-in|put-filt|
|00002520| 65 72 2d 66 75 6e 63 74 | 69 6f 6e 73 27 2c 20 60 |er-funct|ions', `|
|00002530| 63 6f 6d 69 6e 74 2d 69 | 6e 70 75 74 2d 66 69 6c |comint-i|nput-fil|
|00002540| 74 65 72 27 2c 20 60 63 | 6f 6d 69 6e 74 2d 69 6e |ter', `c|omint-in|
|00002550| 70 75 74 2d 73 65 6e 64 | 65 72 27 0a 61 6e 64 20 |put-send|er'.and |
|00002560| 60 63 6f 6d 69 6e 74 2d | 67 65 74 2d 6f 6c 64 2d |`comint-|get-old-|
|00002570| 69 6e 70 75 74 27 20 74 | 6f 20 61 70 70 72 6f 70 |input' t|o approp|
|00002580| 72 69 61 74 65 20 66 75 | 6e 63 74 69 6f 6e 73 2c |riate fu|nctions,|
|00002590| 20 61 6e 64 20 74 68 65 | 20 76 61 72 69 61 62 6c | and the| variabl|
|000025a0| 65 0a 60 63 6f 6d 69 6e | 74 2d 70 72 6f 6d 70 74 |e.`comin|t-prompt|
|000025b0| 2d 72 65 67 65 78 70 27 | 20 74 6f 20 74 68 65 20 |-regexp'| to the |
|000025c0| 61 70 70 72 6f 70 72 69 | 61 74 65 20 72 65 67 75 |appropri|ate regu|
|000025d0| 6c 61 72 20 65 78 70 72 | 65 73 73 69 6f 6e 2e 0a |lar expr|ession..|
|000025e0| 0a 41 6e 20 69 6e 70 75 | 74 20 68 69 73 74 6f 72 |.An inpu|t histor|
|000025f0| 79 20 69 73 20 6d 61 69 | 6e 74 61 69 6e 65 64 20 |y is mai|ntained |
|00002600| 6f 66 20 73 69 7a 65 20 | 60 63 6f 6d 69 6e 74 2d |of size |`comint-|
|00002610| 69 6e 70 75 74 2d 72 69 | 6e 67 2d 73 69 7a 65 27 |input-ri|ng-size'|
|00002620| 2c 20 61 6e 64 0a 63 61 | 6e 20 62 65 20 61 63 63 |, and.ca|n be acc|
|00002630| 65 73 73 65 64 20 77 69 | 74 68 20 74 68 65 20 63 |essed wi|th the c|
|00002640| 6f 6d 6d 61 6e 64 73 20 | 5c 5c 5b 63 6f 6d 69 6e |ommands |\\[comin|
|00002650| 74 2d 6e 65 78 74 2d 69 | 6e 70 75 74 5d 2c 20 5c |t-next-i|nput], \|
|00002660| 5c 5b 63 6f 6d 69 6e 74 | 2d 70 72 65 76 69 6f 75 |\[comint|-previou|
|00002670| 73 2d 69 6e 70 75 74 5d | 2c 20 61 6e 64 20 5c 5c |s-input]|, and \\|
|00002680| 5b 63 6f 6d 69 6e 74 2d | 64 79 6e 61 6d 69 63 2d |[comint-|dynamic-|
|00002690| 6c 69 73 74 2d 69 6e 70 | 75 74 2d 72 69 6e 67 5d |list-inp|ut-ring]|
|000026a0| 2e 0a 49 6e 70 75 74 20 | 72 69 6e 67 20 68 69 73 |..Input |ring his|
|000026b0| 74 6f 72 79 20 65 78 70 | 61 6e 73 69 6f 6e 20 63 |tory exp|ansion c|
|000026c0| 61 6e 20 62 65 20 61 63 | 68 69 65 76 65 64 20 77 |an be ac|hieved w|
|000026d0| 69 74 68 20 74 68 65 20 | 63 6f 6d 6d 61 6e 64 73 |ith the |commands|
|000026e0| 0a 5c 5c 5b 63 6f 6d 69 | 6e 74 2d 72 65 70 6c 61 |.\\[comi|nt-repla|
|000026f0| 63 65 2d 62 79 2d 65 78 | 70 61 6e 64 65 64 2d 68 |ce-by-ex|panded-h|
|00002700| 69 73 74 6f 72 79 5d 20 | 6f 72 20 5c 5c 5b 63 6f |istory] |or \\[co|
|00002710| 6d 69 6e 74 2d 6d 61 67 | 69 63 2d 73 70 61 63 65 |mint-mag|ic-space|
|00002720| 5d 2e 0a 49 6e 70 75 74 | 20 72 69 6e 67 20 65 78 |]..Input| ring ex|
|00002730| 70 61 6e 73 69 6f 6e 20 | 69 73 20 63 6f 6e 74 72 |pansion |is contr|
|00002740| 6f 6c 6c 65 64 20 62 79 | 20 74 68 65 20 76 61 72 |olled by| the var|
|00002750| 69 61 62 6c 65 20 60 63 | 6f 6d 69 6e 74 2d 69 6e |iable `c|omint-in|
|00002760| 70 75 74 2d 61 75 74 6f | 65 78 70 61 6e 64 27 2c |put-auto|expand',|
|00002770| 0a 61 6e 64 20 61 64 64 | 69 74 69 6f 6e 20 69 73 |.and add|ition is|
|00002780| 20 63 6f 6e 74 72 6f 6c | 6c 65 64 20 62 79 20 74 | control|led by t|
|00002790| 68 65 20 76 61 72 69 61 | 62 6c 65 20 60 63 6f 6d |he varia|ble `com|
|000027a0| 69 6e 74 2d 69 6e 70 75 | 74 2d 69 67 6e 6f 72 65 |int-inpu|t-ignore|
|000027b0| 64 75 70 73 27 2e 0a 0a | 43 6f 6d 6d 61 6e 64 73 |dups'...|Commands|
|000027c0| 20 77 69 74 68 20 6e 6f | 20 64 65 66 61 75 6c 74 | with no| default|
|000027d0| 20 6b 65 79 20 62 69 6e | 64 69 6e 67 73 20 69 6e | key bin|dings in|
|000027e0| 63 6c 75 64 65 20 60 73 | 65 6e 64 2d 69 6e 76 69 |clude `s|end-invi|
|000027f0| 73 69 62 6c 65 27 2c 0a | 60 63 6f 6d 69 6e 74 2d |sible',.|`comint-|
|00002800| 64 79 6e 61 6d 69 63 2d | 63 6f 6d 70 6c 65 74 65 |dynamic-|complete|
|00002810| 27 2c 20 60 63 6f 6d 69 | 6e 74 2d 64 79 6e 61 6d |', `comi|nt-dynam|
|00002820| 69 63 2d 6c 69 73 74 2d | 66 69 6c 65 6e 61 6d 65 |ic-list-|filename|
|00002830| 2d 63 6f 6d 70 6c 65 74 | 69 6f 6e 73 27 2c 20 61 |-complet|ions', a|
|00002840| 6e 64 0a 60 63 6f 6d 69 | 6e 74 2d 6d 61 67 69 63 |nd.`comi|nt-magic|
|00002850| 2d 73 70 61 63 65 27 2e | 0a 0a 49 6e 70 75 74 20 |-space'.|..Input |
|00002860| 74 6f 2c 20 61 6e 64 20 | 6f 75 74 70 75 74 20 66 |to, and |output f|
|00002870| 72 6f 6d 2c 20 74 68 65 | 20 73 75 62 70 72 6f 63 |rom, the| subproc|
|00002880| 65 73 73 20 63 61 6e 20 | 63 61 75 73 65 20 74 68 |ess can |cause th|
|00002890| 65 20 77 69 6e 64 6f 77 | 20 74 6f 20 73 63 72 6f |e window| to scro|
|000028a0| 6c 6c 20 74 6f 0a 74 68 | 65 20 65 6e 64 20 6f 66 |ll to.th|e end of|
|000028b0| 20 74 68 65 20 62 75 66 | 66 65 72 2e 20 20 53 65 | the buf|fer. Se|
|000028c0| 65 20 76 61 72 69 61 62 | 6c 65 73 20 60 63 6f 6d |e variab|les `com|
|000028d0| 69 6e 74 2d 6f 75 74 70 | 75 74 2d 66 69 6c 74 65 |int-outp|ut-filte|
|000028e0| 72 2d 66 75 6e 63 74 69 | 6f 6e 73 27 2c 0a 60 63 |r-functi|ons',.`c|
|000028f0| 6f 6d 69 6e 74 2d 73 63 | 72 6f 6c 6c 2d 74 6f 2d |omint-sc|roll-to-|
|00002900| 62 6f 74 74 6f 6d 2d 6f | 6e 2d 69 6e 70 75 74 27 |bottom-o|n-input'|
|00002910| 2c 20 61 6e 64 20 60 63 | 6f 6d 69 6e 74 2d 73 63 |, and `c|omint-sc|
|00002920| 72 6f 6c 6c 2d 74 6f 2d | 62 6f 74 74 6f 6d 2d 6f |roll-to-|bottom-o|
|00002930| 6e 2d 6f 75 74 70 75 74 | 27 2e 0a 0a 49 66 20 79 |n-output|'...If y|
|00002940| 6f 75 20 61 63 63 69 64 | 65 6e 74 61 6c 6c 79 20 |ou accid|entally |
|00002950| 73 75 73 70 65 6e 64 20 | 79 6f 75 72 20 70 72 6f |suspend |your pro|
|00002960| 63 65 73 73 2c 20 75 73 | 65 20 5c 5c 5b 63 6f 6d |cess, us|e \\[com|
|00002970| 69 6e 74 2d 63 6f 6e 74 | 69 6e 75 65 2d 73 75 62 |int-cont|inue-sub|
|00002980| 6a 6f 62 5d 0a 74 6f 20 | 63 6f 6e 74 69 6e 75 65 |job].to |continue|
|00002990| 20 69 74 2e 0a 0a 5c 5c | 7b 63 6f 6d 69 6e 74 2d | it...\\|{comint-|
|000029a0| 6d 6f 64 65 2d 6d 61 70 | 7d 0a 0a 45 6e 74 72 79 |mode-map|}..Entry|
|000029b0| 20 74 6f 20 74 68 69 73 | 20 6d 6f 64 65 20 72 75 | to this| mode ru|
|000029c0| 6e 73 20 74 68 65 20 68 | 6f 6f 6b 73 20 6f 6e 20 |ns the h|ooks on |
|000029d0| 60 63 6f 6d 69 6e 74 2d | 6d 6f 64 65 2d 68 6f 6f |`comint-|mode-hoo|
|000029e0| 6b 27 2e 22 20 6e 69 6c | 5d 29 0a 28 62 79 74 65 |k'." nil|]).(byte|
|000029f0| 2d 63 6f 64 65 20 22 08 | 84 8a 00 c1 20 10 c2 08 |-code ".|.... ...|
|00002a00| c0 5c 22 88 c3 08 c4 c5 | 23 88 c3 08 c6 c7 23 88 |.\".....|#.....#.|
|00002a10| c3 08 c8 c9 23 88 c3 08 | ca cb 23 88 c3 08 cc cd |....#...|..#.....|
|00002a20| 23 88 c3 08 ce cf 23 88 | c3 08 d0 cf 23 88 c3 08 |#.....#.|....#...|
|00002a30| d1 d2 23 88 c3 08 d3 d4 | 23 88 c3 08 d5 d6 23 88 |..#.....|#.....#.|
|00002a40| c3 08 d7 d8 23 88 c3 08 | d9 da 23 88 c3 08 db dc |....#...|..#.....|
|00002a50| 23 88 c3 08 dd de 23 88 | c3 08 df e0 23 88 c3 08 |#.....#.|....#...|
|00002a60| e1 e2 23 88 c3 08 e3 e4 | 23 88 c3 08 e5 e6 23 88 |..#.....|#.....#.|
|00002a70| c3 08 e7 e8 23 88 c3 08 | e9 ea 23 88 c3 08 eb ec |....#...|..#.....|
|00002a80| 23 88 ed 16 2e c1 87 22 | 20 5b 63 6f 6d 69 6e 74 |#......"| [comint|
|00002a90| 2d 6d 6f 64 65 2d 6d 61 | 70 20 6d 61 6b 65 2d 73 |-mode-ma|p make-s|
|00002aa0| 70 61 72 73 65 2d 6b 65 | 79 6d 61 70 20 73 65 74 |parse-ke|ymap set|
|00002ab0| 2d 6b 65 79 6d 61 70 2d | 6e 61 6d 65 20 64 65 66 |-keymap-|name def|
|00002ac0| 69 6e 65 2d 6b 65 79 20 | 22 1b 70 22 20 63 6f 6d |ine-key |".p" com|
|00002ad0| 69 6e 74 2d 70 72 65 76 | 69 6f 75 73 2d 6d 61 74 |int-prev|ious-mat|
|00002ae0| 63 68 69 6e 67 2d 69 6e | 70 75 74 2d 66 72 6f 6d |ching-in|put-from|
|00002af0| 2d 69 6e 70 75 74 20 22 | 1b 6e 22 20 63 6f 6d 69 |-input "|.n" comi|
|00002b00| 6e 74 2d 6e 65 78 74 2d | 6d 61 74 63 68 69 6e 67 |nt-next-|matching|
|00002b10| 2d 69 6e 70 75 74 2d 66 | 72 6f 6d 2d 69 6e 70 75 |-input-f|rom-inpu|
|00002b20| 74 20 22 1b 72 22 20 63 | 6f 6d 69 6e 74 2d 70 72 |t ".r" c|omint-pr|
|00002b30| 65 76 69 6f 75 73 2d 6d | 61 74 63 68 69 6e 67 2d |evious-m|atching-|
|00002b40| 69 6e 70 75 74 20 22 1b | 73 22 20 63 6f 6d 69 6e |input ".|s" comin|
|00002b50| 74 2d 6e 65 78 74 2d 6d | 61 74 63 68 69 6e 67 2d |t-next-m|atching-|
|00002b60| 69 6e 70 75 74 20 22 0d | 22 20 63 6f 6d 69 6e 74 |input ".|" comint|
|00002b70| 2d 73 65 6e 64 2d 69 6e | 70 75 74 20 22 01 22 20 |-send-in|put "." |
|00002b80| 63 6f 6d 69 6e 74 2d 62 | 6f 6c 20 22 03 01 22 20 |comint-b|ol ".." |
|00002b90| 22 03 15 22 20 63 6f 6d | 69 6e 74 2d 6b 69 6c 6c |".." com|int-kill|
|00002ba0| 2d 69 6e 70 75 74 20 22 | 03 17 22 20 62 61 63 6b |-input "|.." back|
|00002bb0| 77 61 72 64 2d 6b 69 6c | 6c 2d 77 6f 72 64 20 22 |ward-kil|l-word "|
|00002bc0| 03 03 22 20 63 6f 6d 69 | 6e 74 2d 69 6e 74 65 72 |.." comi|nt-inter|
|00002bd0| 72 75 70 74 2d 73 75 62 | 6a 6f 62 20 22 03 1a 22 |rupt-sub|job ".."|
|00002be0| 20 63 6f 6d 69 6e 74 2d | 73 74 6f 70 2d 73 75 62 | comint-|stop-sub|
|00002bf0| 6a 6f 62 20 22 03 1c 22 | 20 63 6f 6d 69 6e 74 2d |job ".."| comint-|
|00002c00| 71 75 69 74 2d 73 75 62 | 6a 6f 62 20 22 03 0d 22 |quit-sub|job ".."|
|00002c10| 20 63 6f 6d 69 6e 74 2d | 63 6f 70 79 2d 6f 6c 64 | comint-|copy-old|
|00002c20| 2d 69 6e 70 75 74 20 22 | 03 0f 22 20 63 6f 6d 69 |-input "|.." comi|
|00002c30| 6e 74 2d 6b 69 6c 6c 2d | 6f 75 74 70 75 74 20 22 |nt-kill-|output "|
|00002c40| 03 12 22 20 63 6f 6d 69 | 6e 74 2d 73 68 6f 77 2d |.." comi|nt-show-|
|00002c50| 6f 75 74 70 75 74 20 22 | 03 05 22 20 63 6f 6d 69 |output "|.." comi|
|00002c60| 6e 74 2d 73 68 6f 77 2d | 6d 61 78 69 6d 75 6d 2d |nt-show-|maximum-|
|00002c70| 6f 75 74 70 75 74 20 22 | 03 0c 22 20 63 6f 6d 69 |output "|.." comi|
|00002c80| 6e 74 2d 64 79 6e 61 6d | 69 63 2d 6c 69 73 74 2d |nt-dynam|ic-list-|
|00002c90| 69 6e 70 75 74 2d 72 69 | 6e 67 20 22 03 0e 22 20 |input-ri|ng ".." |
|00002ca0| 63 6f 6d 69 6e 74 2d 6e | 65 78 74 2d 70 72 6f 6d |comint-n|ext-prom|
|00002cb0| 70 74 20 22 03 10 22 20 | 63 6f 6d 69 6e 74 2d 70 |pt ".." |comint-p|
|00002cc0| 72 65 76 69 6f 75 73 2d | 70 72 6f 6d 70 74 20 22 |revious-|prompt "|
|00002cd0| 03 04 22 20 63 6f 6d 69 | 6e 74 2d 73 65 6e 64 2d |.." comi|nt-send-|
|00002ce0| 65 6f 66 20 62 75 74 74 | 6f 6e 33 20 63 6f 6d 69 |eof butt|on3 comi|
|00002cf0| 6e 74 2d 70 6f 70 75 70 | 2d 6d 65 6e 75 20 28 22 |nt-popup|-menu ("|
|00002d00| 43 6f 6d 6d 61 6e 64 20 | 49 6e 74 65 72 70 72 65 |Command |Interpre|
|00002d10| 74 65 72 20 43 6f 6d 6d | 61 6e 64 73 22 20 5b 22 |ter Comm|ands" ["|
|00002d20| 4b 69 6c 6c 20 43 6f 6d | 6d 61 6e 64 20 4f 75 74 |Kill Com|mand Out|
|00002d30| 70 75 74 22 20 63 6f 6d | 69 6e 74 2d 6b 69 6c 6c |put" com|int-kill|
|00002d40| 2d 6f 75 74 70 75 74 20 | 74 5d 20 5b 22 47 6f 74 |-output |t] ["Got|
|00002d50| 6f 20 4e 65 78 74 20 50 | 72 6f 6d 70 74 22 20 63 |o Next P|rompt" c|
|00002d60| 6f 6d 69 6e 74 2d 6e 65 | 78 74 2d 70 72 6f 6d 70 |omint-ne|xt-promp|
|00002d70| 74 20 74 5d 20 5b 22 47 | 6f 74 6f 20 50 72 65 76 |t t] ["G|oto Prev|
|00002d80| 69 6f 75 73 20 50 72 6f | 6d 70 74 22 20 63 6f 6d |ious Pro|mpt" com|
|00002d90| 69 6e 74 2d 70 72 65 76 | 69 6f 75 73 2d 70 72 6f |int-prev|ious-pro|
|00002da0| 6d 70 74 20 74 5d 20 5b | 22 4b 69 6c 6c 20 49 6e |mpt t] [|"Kill In|
|00002db0| 70 75 74 22 20 63 6f 6d | 69 6e 74 2d 6b 69 6c 6c |put" com|int-kill|
|00002dc0| 2d 69 6e 70 75 74 20 74 | 5d 20 22 2d 2d 2d 2d 22 |-input t|] "----"|
|00002dd0| 20 5b 22 50 72 65 76 69 | 6f 75 73 20 49 6e 70 75 | ["Previ|ous Inpu|
|00002de0| 74 22 20 63 6f 6d 69 6e | 74 2d 70 72 65 76 69 6f |t" comin|t-previo|
|00002df0| 75 73 2d 6d 61 74 63 68 | 69 6e 67 2d 69 6e 70 75 |us-match|ing-inpu|
|00002e00| 74 2d 66 72 6f 6d 2d 69 | 6e 70 75 74 20 74 5d 20 |t-from-i|nput t] |
|00002e10| 5b 22 4e 65 78 74 20 49 | 6e 70 75 74 22 20 63 6f |["Next I|nput" co|
|00002e20| 6d 69 6e 74 2d 6e 65 78 | 74 2d 6d 61 74 63 68 69 |mint-nex|t-matchi|
|00002e30| 6e 67 2d 69 6e 70 75 74 | 2d 66 72 6f 6d 2d 69 6e |ng-input|-from-in|
|00002e40| 70 75 74 20 74 5d 20 5b | 22 50 72 65 76 69 6f 75 |put t] [|"Previou|
|00002e50| 73 20 49 6e 70 75 74 20 | 6d 61 74 63 68 69 6e 67 |s Input |matching|
|00002e60| 20 52 65 67 65 78 70 2e | 2e 2e 22 20 27 63 6f 6d | Regexp.|.." 'com|
|00002e70| 69 6e 74 2d 70 72 65 76 | 69 6f 75 73 2d 6d 61 74 |int-prev|ious-mat|
|00002e80| 63 68 69 6e 67 2d 69 6e | 70 75 74 20 74 5d 20 5b |ching-in|put t] [|
|00002e90| 22 4e 65 78 74 20 49 6e | 70 75 74 20 6d 61 74 63 |"Next In|put matc|
|00002ea0| 68 69 6e 67 20 52 65 67 | 65 78 70 2e 2e 2e 22 20 |hing Reg|exp..." |
|00002eb0| 27 63 6f 6d 69 6e 74 2d | 6e 65 78 74 2d 6d 61 74 |'comint-|next-mat|
|00002ec0| 63 68 69 6e 67 2d 69 6e | 70 75 74 20 74 5d 20 5b |ching-in|put t] [|
|00002ed0| 22 4c 69 73 74 20 43 6f | 6d 6d 61 6e 64 20 48 69 |"List Co|mmand Hi|
|00002ee0| 73 74 6f 72 79 22 20 63 | 6f 6d 69 6e 74 2d 64 79 |story" c|omint-dy|
|00002ef0| 6e 61 6d 69 63 2d 6c 69 | 73 74 2d 69 6e 70 75 74 |namic-li|st-input|
|00002f00| 2d 72 69 6e 67 20 74 5d | 20 22 2d 2d 2d 2d 22 20 |-ring t]| "----" |
|00002f10| 5b 22 53 65 6e 64 20 53 | 54 4f 50 20 53 69 67 6e |["Send S|TOP Sign|
|00002f20| 61 6c 22 20 63 6f 6d 69 | 6e 74 2d 73 74 6f 70 2d |al" comi|nt-stop-|
|00002f30| 73 75 62 6a 6f 62 20 74 | 5d 20 5b 22 53 65 6e 64 |subjob t|] ["Send|
|00002f40| 20 43 4f 4e 54 20 53 69 | 67 6e 61 6c 22 20 63 6f | CONT Si|gnal" co|
|00002f50| 6d 69 6e 74 2d 63 6f 6e | 74 69 6e 75 65 2d 73 75 |mint-con|tinue-su|
|00002f60| 62 6a 6f 62 20 74 5d 20 | 5b 22 53 65 6e 64 20 49 |bjob t] |["Send I|
|00002f70| 4e 54 20 53 69 67 6e 61 | 6c 22 20 63 6f 6d 69 6e |NT Signa|l" comin|
|00002f80| 74 2d 69 6e 74 65 72 72 | 75 70 74 2d 73 75 62 6a |t-interr|upt-subj|
|00002f90| 6f 62 20 74 5d 20 5b 22 | 53 65 6e 64 20 45 4f 46 |ob t] ["|Send EOF|
|00002fa0| 20 53 69 67 6e 61 6c 22 | 20 63 6f 6d 69 6e 74 2d | Signal"| comint-|
|00002fb0| 73 65 6e 64 2d 65 6f 66 | 20 74 5d 20 5b 22 53 65 |send-eof| t] ["Se|
|00002fc0| 6e 64 20 4b 49 4c 4c 20 | 53 69 67 6e 61 6c 22 20 |nd KILL |Signal" |
|00002fd0| 63 6f 6d 69 6e 74 2d 6b | 69 6c 6c 2d 73 75 62 6a |comint-k|ill-subj|
|00002fe0| 6f 62 20 74 5d 20 5b 22 | 53 65 6e 64 20 51 55 49 |ob t] ["|Send QUI|
|00002ff0| 54 20 53 69 67 6e 61 6c | 22 20 63 6f 6d 69 6e 74 |T Signal|" comint|
|00003000| 2d 71 75 69 74 2d 73 75 | 62 6a 6f 62 20 74 5d 29 |-quit-su|bjob t])|
|00003010| 20 63 6f 6d 69 6e 74 2d | 6d 65 6e 75 5d 20 34 29 | comint-|menu] 4)|
|00003020| 0a 28 66 73 65 74 20 27 | 63 6f 6d 69 6e 74 2d 70 |.(fset '|comint-p|
|00003030| 6f 70 75 70 2d 6d 65 6e | 75 20 23 5b 28 65 76 65 |opup-men|u #[(eve|
|00003040| 6e 74 29 20 22 c0 20 19 | c2 09 ab 8a c3 0c c5 c6 |nt) ". .|........|
|00003050| 09 42 44 5c 22 aa 81 0c | 21 29 87 22 20 5b 63 6f |.BD\"...|!)." [co|
|00003060| 6d 69 6e 74 2d 6d 61 6b | 65 2d 68 69 73 74 6f 72 |mint-mak|e-histor|
|00003070| 79 2d 6d 65 6e 75 20 68 | 69 73 74 6f 72 79 20 70 |y-menu h|istory p|
|00003080| 6f 70 75 70 2d 6d 65 6e | 75 20 61 70 70 65 6e 64 |opup-men|u append|
|00003090| 20 63 6f 6d 69 6e 74 2d | 6d 65 6e 75 20 22 2d 2d | comint-|menu "--|
|000030a0| 2d 22 20 22 43 6f 6d 6d | 61 6e 64 20 48 69 73 74 |-" "Comm|and Hist|
|000030b0| 6f 72 79 22 5d 20 36 20 | 22 5c 0a 44 69 73 70 6c |ory"] 6 |"\.Displ|
|000030c0| 61 79 20 74 68 65 20 63 | 6f 6d 69 6e 74 2d 6d 6f |ay the c|omint-mo|
|000030d0| 64 65 20 6d 65 6e 75 2e | 22 20 22 40 65 22 5d 29 |de menu.|" "@e"])|
|000030e0| 0a 28 64 65 66 76 61 72 | 20 63 6f 6d 69 6e 74 2d |.(defvar| comint-|
|000030f0| 68 69 73 74 6f 72 79 2d | 6d 65 6e 75 2d 6d 61 78 |history-|menu-max|
|00003100| 20 34 30 20 22 5c 0a 2a | 4d 61 78 69 6d 75 6d 20 | 40 "\.*|Maximum |
|00003110| 6e 75 6d 62 65 72 20 6f | 66 20 65 6e 74 72 69 65 |number o|f entrie|
|00003120| 73 20 74 6f 20 64 69 73 | 70 6c 61 79 20 6f 6e 20 |s to dis|play on |
|00003130| 74 68 65 20 43 6f 6d 69 | 6e 74 20 63 6f 6d 6d 61 |the Comi|nt comma|
|00003140| 6e 64 2d 68 69 73 74 6f | 72 79 20 6d 65 6e 75 2e |nd-histo|ry menu.|
|00003150| 22 29 0a 28 62 79 74 65 | 2d 63 6f 64 65 20 22 c0 |").(byte|-code ".|
|00003160| c1 4d 88 c2 c3 4d 87 22 | 20 5b 63 6f 6d 69 6e 74 |.M...M."| [comint|
|00003170| 2d 6d 61 6b 65 2d 68 69 | 73 74 6f 72 79 2d 6d 65 |-make-hi|story-me|
|00003180| 6e 75 20 23 5b 6e 69 6c | 20 22 c0 09 21 3f ae 83 |nu #[nil| "..!?..|
|00003190| c2 09 21 3f ad c5 c3 89 | c4 09 21 53 c5 1e 06 1e |..!?....|..!S....|
|000031a0| 07 1e 08 1e 09 0e 07 c5 | 59 ab ad 0e 5c 6e ab a9 |........|Y...\n..|
|000031b0| 0e 06 0e 5c 6e 57 ab a2 | cb 09 0e 07 5c 22 16 08 |...\nW..|....\"..|
|000031c0| cc 0e 08 cd 0e 08 44 ce | 23 0e 09 42 16 09 0e 06 |......D.|#..B....|
|000031d0| 54 16 06 0e 07 53 89 16 | 07 aa 4f 0e 09 2c 87 22 |T....S..|..O..,."|
|000031e0| 20 5b 72 69 6e 67 2d 70 | 20 63 6f 6d 69 6e 74 2d | [ring-p| comint-|
|000031f0| 69 6e 70 75 74 2d 72 69 | 6e 67 20 72 69 6e 67 2d |input-ri|ng ring-|
|00003200| 65 6d 70 74 79 2d 70 20 | 6e 69 6c 20 72 69 6e 67 |empty-p |nil ring|
|00003210| 2d 6c 65 6e 67 74 68 20 | 30 20 63 6f 75 6e 74 20 |-length |0 count |
|00003220| 69 6e 64 65 78 20 68 69 | 73 74 20 6d 65 6e 75 20 |index hi|st menu |
|00003230| 63 6f 6d 69 6e 74 2d 68 | 69 73 74 6f 72 79 2d 6d |comint-h|istory-m|
|00003240| 65 6e 75 2d 6d 61 78 20 | 72 69 6e 67 2d 72 65 66 |enu-max |ring-ref|
|00003250| 20 76 65 63 74 6f 72 20 | 63 6f 6d 69 6e 74 2d 6d | vector |comint-m|
|00003260| 65 6e 75 2d 68 69 73 74 | 6f 72 79 20 74 5d 20 35 |enu-hist|ory t] 5|
|00003270| 5d 20 63 6f 6d 69 6e 74 | 2d 6d 65 6e 75 2d 68 69 |] comint|-menu-hi|
|00003280| 73 74 6f 72 79 20 23 5b | 28 73 74 72 69 6e 67 29 |story #[|(string)|
|00003290| 20 22 64 62 88 c0 c1 70 | 21 21 60 7c 88 5c 6e 63 | "db...p|!!`|.\nc|
|000032a0| 87 22 20 5b 70 72 6f 63 | 65 73 73 2d 6d 61 72 6b |." [proc|ess-mark|
|000032b0| 20 67 65 74 2d 62 75 66 | 66 65 72 2d 70 72 6f 63 | get-buf|fer-proc|
|000032c0| 65 73 73 20 73 74 72 69 | 6e 67 5d 20 33 5d 5d 20 |ess stri|ng] 3]] |
|000032d0| 32 29 0a 28 66 73 65 74 | 20 27 63 6f 6d 69 6e 74 |2).(fset| 'comint|
|000032e0| 2d 63 68 65 63 6b 2d 70 | 72 6f 63 20 23 5b 28 62 |-check-p|roc #[(b|
|000032f0| 75 66 66 65 72 29 20 22 | c0 09 21 89 1a ad 85 c3 |uffer) "|..!.....|
|00003300| 5c 6e 21 c4 3e 29 87 22 | 20 5b 67 65 74 2d 62 75 |\n!.>)."| [get-bu|
|00003310| 66 66 65 72 2d 70 72 6f | 63 65 73 73 20 62 75 66 |ffer-pro|cess buf|
|00003320| 66 65 72 20 70 72 6f 63 | 20 70 72 6f 63 65 73 73 |fer proc| process|
|00003330| 2d 73 74 61 74 75 73 20 | 28 72 75 6e 20 73 74 6f |-status |(run sto|
|00003340| 70 29 5d 20 33 20 22 5c | 0a 52 65 74 75 72 6e 20 |p)] 3 "\|.Return |
|00003350| 74 20 69 66 20 74 68 65 | 72 65 20 69 73 20 61 20 |t if the|re is a |
|00003360| 6c 69 76 69 6e 67 20 70 | 72 6f 63 65 73 73 20 61 |living p|rocess a|
|00003370| 73 73 6f 63 69 61 74 65 | 64 20 77 2f 62 75 66 66 |ssociate|d w/buff|
|00003380| 65 72 20 42 55 46 46 45 | 52 2e 0a 4c 69 76 69 6e |er BUFFE|R..Livin|
|00003390| 67 20 6d 65 61 6e 73 20 | 74 68 65 20 73 74 61 74 |g means |the stat|
|000033a0| 75 73 20 69 73 20 60 72 | 75 6e 27 20 6f 72 20 60 |us is `r|un' or `|
|000033b0| 73 74 6f 70 27 2e 0a 42 | 55 46 46 45 52 20 63 61 |stop'..B|UFFER ca|
|000033c0| 6e 20 62 65 20 65 69 74 | 68 65 72 20 61 20 62 75 |n be eit|her a bu|
|000033d0| 66 66 65 72 20 6f 72 20 | 74 68 65 20 6e 61 6d 65 |ffer or |the name|
|000033e0| 20 6f 66 20 6f 6e 65 2e | 22 5d 29 0a 28 66 73 65 | of one.|"]).(fse|
|000033f0| 74 20 27 6d 61 6b 65 2d | 63 6f 6d 69 6e 74 20 23 |t 'make-|comint #|
|00003400| 5b 28 6e 61 6d 65 20 70 | 72 6f 67 72 61 6d 20 26 |[(name p|rogram &|
|00003410| 6f 70 74 69 6f 6e 61 6c | 20 73 74 61 72 74 66 69 |optional| startfi|
|00003420| 6c 65 20 26 72 65 73 74 | 20 73 77 69 74 63 68 65 |le &rest| switche|
|00003430| 73 29 20 22 c0 c1 5c 6e | c1 51 21 1b c4 0b 21 ac |s) "..\n|.Q!...!.|
|00003440| 93 8a 0b 71 88 c5 20 88 | 29 c6 0b 5c 6e 0e 07 0e |...q.. .|)..\n...|
|00003450| 08 0e 09 25 88 0b 29 87 | 22 20 5b 67 65 74 2d 62 |...%..).|" [get-b|
|00003460| 75 66 66 65 72 2d 63 72 | 65 61 74 65 20 22 2a 22 |uffer-cr|eate "*"|
|00003470| 20 6e 61 6d 65 20 62 75 | 66 66 65 72 20 63 6f 6d | name bu|ffer com|
|00003480| 69 6e 74 2d 63 68 65 63 | 6b 2d 70 72 6f 63 20 63 |int-chec|k-proc c|
|00003490| 6f 6d 69 6e 74 2d 6d 6f | 64 65 20 63 6f 6d 69 6e |omint-mo|de comin|
|000034a0| 74 2d 65 78 65 63 20 70 | 72 6f 67 72 61 6d 20 73 |t-exec p|rogram s|
|000034b0| 74 61 72 74 66 69 6c 65 | 20 73 77 69 74 63 68 65 |tartfile| switche|
|000034c0| 73 5d 20 36 20 22 5c 0a | 4d 61 6b 65 20 61 20 63 |s] 6 "\.|Make a c|
|000034d0| 6f 6d 69 6e 74 20 70 72 | 6f 63 65 73 73 20 4e 41 |omint pr|ocess NA|
|000034e0| 4d 45 20 69 6e 20 61 20 | 62 75 66 66 65 72 2c 20 |ME in a |buffer, |
|000034f0| 72 75 6e 6e 69 6e 67 20 | 50 52 4f 47 52 41 4d 2e |running |PROGRAM.|
|00003500| 0a 54 68 65 20 6e 61 6d | 65 20 6f 66 20 74 68 65 |.The nam|e of the|
|00003510| 20 62 75 66 66 65 72 20 | 69 73 20 6d 61 64 65 20 | buffer |is made |
|00003520| 62 79 20 73 75 72 72 6f | 75 6e 64 69 6e 67 20 4e |by surro|unding N|
|00003530| 41 4d 45 20 77 69 74 68 | 20 60 2a 27 73 2e 0a 49 |AME with| `*'s..I|
|00003540| 66 20 74 68 65 72 65 20 | 69 73 20 61 6c 72 65 61 |f there |is alrea|
|00003550| 64 79 20 61 20 72 75 6e | 6e 69 6e 67 20 70 72 6f |dy a run|ning pro|
|00003560| 63 65 73 73 20 69 6e 20 | 74 68 61 74 20 62 75 66 |cess in |that buf|
|00003570| 66 65 72 2c 20 69 74 20 | 69 73 20 6e 6f 74 20 72 |fer, it |is not r|
|00003580| 65 73 74 61 72 74 65 64 | 2e 0a 4f 70 74 69 6f 6e |estarted|..Option|
|00003590| 61 6c 20 74 68 69 72 64 | 20 61 72 67 20 53 54 41 |al third| arg STA|
|000035a0| 52 54 46 49 4c 45 20 69 | 73 20 74 68 65 20 6e 61 |RTFILE i|s the na|
|000035b0| 6d 65 20 6f 66 20 61 20 | 66 69 6c 65 20 74 6f 20 |me of a |file to |
|000035c0| 73 65 6e 64 20 74 68 65 | 20 63 6f 6e 74 65 6e 74 |send the| content|
|000035d0| 73 20 6f 66 20 74 6f 0a | 74 68 65 20 70 72 6f 63 |s of to.|the proc|
|000035e0| 65 73 73 2e 20 20 41 6e | 79 20 6d 6f 72 65 20 61 |ess. An|y more a|
|000035f0| 72 67 73 20 61 72 65 20 | 61 72 67 75 6d 65 6e 74 |rgs are |argument|
|00003600| 73 20 74 6f 20 50 52 4f | 47 52 41 4d 2e 22 5d 29 |s to PRO|GRAM."])|
|00003610| 0a 28 66 73 65 74 20 27 | 63 6f 6d 69 6e 74 2d 72 |.(fset '|comint-r|
|00003620| 75 6e 20 23 5b 28 70 72 | 6f 67 72 61 6d 29 20 22 |un #[(pr|ogram) "|
|00003630| c0 09 21 1a c3 c4 5c 6e | 09 5c 22 21 88 c5 c6 c7 |..!...\n|.\"!....|
|00003640| 5c 6e c8 51 21 21 29 87 | 22 20 5b 66 69 6c 65 2d |\n.Q!!).|" [file-|
|00003650| 6e 61 6d 65 2d 6e 6f 6e | 64 69 72 65 63 74 6f 72 |name-non|director|
|00003660| 79 20 70 72 6f 67 72 61 | 6d 20 6e 61 6d 65 20 73 |y progra|m name s|
|00003670| 77 69 74 63 68 2d 74 6f | 2d 62 75 66 66 65 72 20 |witch-to|-buffer |
|00003680| 6d 61 6b 65 2d 63 6f 6d | 69 6e 74 20 72 75 6e 2d |make-com|int run-|
|00003690| 68 6f 6f 6b 73 20 69 6e | 74 65 72 6e 2d 73 6f 66 |hooks in|tern-sof|
|000036a0| 74 20 22 63 6f 6d 69 6e | 74 2d 22 20 22 2d 68 6f |t "comin|t-" "-ho|
|000036b0| 6f 6b 22 5d 20 35 20 22 | 5c 0a 52 75 6e 20 50 52 |ok"] 5 "|\.Run PR|
|000036c0| 4f 47 52 41 4d 20 69 6e | 20 61 20 63 6f 6d 69 6e |OGRAM in| a comin|
|000036d0| 74 20 62 75 66 66 65 72 | 20 61 6e 64 20 73 77 69 |t buffer| and swi|
|000036e0| 74 63 68 20 74 6f 20 69 | 74 2e 0a 54 68 65 20 62 |tch to i|t..The b|
|000036f0| 75 66 66 65 72 20 6e 61 | 6d 65 20 69 73 20 6d 61 |uffer na|me is ma|
|00003700| 64 65 20 62 79 20 73 75 | 72 72 6f 75 6e 64 69 6e |de by su|rroundin|
|00003710| 67 20 74 68 65 20 66 69 | 6c 65 20 6e 61 6d 65 20 |g the fi|le name |
|00003720| 6f 66 20 50 52 4f 47 52 | 41 4d 20 77 69 74 68 20 |of PROGR|AM with |
|00003730| 60 2a 27 73 2e 0a 54 68 | 65 20 66 69 6c 65 20 6e |`*'s..Th|e file n|
|00003740| 61 6d 65 20 69 73 20 75 | 73 65 64 20 74 6f 20 6d |ame is u|sed to m|
|00003750| 61 6b 65 20 61 20 73 79 | 6d 62 6f 6c 20 6e 61 6d |ake a sy|mbol nam|
|00003760| 65 2c 20 73 75 63 68 20 | 61 73 20 60 63 6f 6d 69 |e, such |as `comi|
|00003770| 6e 74 2d 73 68 2d 68 6f | 6f 6b 27 2c 20 61 6e 64 |nt-sh-ho|ok', and|
|00003780| 20 61 6e 79 0a 68 6f 6f | 6b 73 20 6f 6e 20 74 68 | any.hoo|ks on th|
|00003790| 69 73 20 73 79 6d 62 6f | 6c 20 61 72 65 20 72 75 |is symbo|l are ru|
|000037a0| 6e 20 69 6e 20 74 68 65 | 20 62 75 66 66 65 72 2e |n in the| buffer.|
|000037b0| 0a 53 65 65 20 60 6d 61 | 6b 65 2d 63 6f 6d 69 6e |.See `ma|ke-comin|
|000037c0| 74 27 20 61 6e 64 20 60 | 63 6f 6d 69 6e 74 2d 65 |t' and `|comint-e|
|000037d0| 78 65 63 27 2e 22 20 22 | 73 52 75 6e 20 70 72 6f |xec'." "|sRun pro|
|000037e0| 67 72 61 6d 3a 20 22 5d | 29 0a 28 66 73 65 74 20 |gram: "]|).(fset |
|000037f0| 27 63 6f 6d 69 6e 74 2d | 65 78 65 63 20 23 5b 28 |'comint-|exec #[(|
|00003800| 62 75 66 66 65 72 20 6e | 61 6d 65 20 63 6f 6d 6d |buffer n|ame comm|
|00003810| 61 6e 64 20 73 74 61 72 | 74 66 69 6c 65 20 73 77 |and star|tfile sw|
|00003820| 69 74 63 68 65 73 29 20 | 22 8a 08 71 88 c1 08 21 |itches) |"..q...!|
|00003830| 89 1a ab 84 c3 5c 6e 21 | 88 29 c4 0d 08 0e 06 0e |.....\n!|.)......|
|00003840| 07 24 1a c8 5c 6e c9 5c | 22 88 ca cb 21 88 0e 0c |.$..\n.\|"...!...|
|00003850| 16 0b 64 62 88 cd 5c 6e | 21 60 ce 93 88 0e 0f ab |..db..\n|!`......|
|00003860| 9b d0 d1 21 88 64 62 88 | d2 0e 0f 21 88 60 64 7b |...!.db.|...!.`d{|
|00003870| 16 0f 60 64 7c 88 d3 5c | 6e 0e 0f 5c 22 88 d4 d5 |..`d|..\|n..\"...|
|00003880| 21 88 08 2a 87 22 20 5b | 62 75 66 66 65 72 20 67 |!..*." [|buffer g|
|00003890| 65 74 2d 62 75 66 66 65 | 72 2d 70 72 6f 63 65 73 |et-buffe|r-proces|
|000038a0| 73 20 70 72 6f 63 20 64 | 65 6c 65 74 65 2d 70 72 |s proc d|elete-pr|
|000038b0| 6f 63 65 73 73 20 63 6f | 6d 69 6e 74 2d 65 78 65 |ocess co|mint-exe|
|000038c0| 63 2d 31 20 6e 61 6d 65 | 20 63 6f 6d 6d 61 6e 64 |c-1 name| command|
|000038d0| 20 73 77 69 74 63 68 65 | 73 20 73 65 74 2d 70 72 | switche|s set-pr|
|000038e0| 6f 63 65 73 73 2d 66 69 | 6c 74 65 72 20 63 6f 6d |ocess-fi|lter com|
|000038f0| 69 6e 74 2d 6f 75 74 70 | 75 74 2d 66 69 6c 74 65 |int-outp|ut-filte|
|00003900| 72 20 6d 61 6b 65 2d 6c | 6f 63 61 6c 2d 76 61 72 |r make-l|ocal-var|
|00003910| 69 61 62 6c 65 20 63 6f | 6d 69 6e 74 2d 70 74 79 |iable co|mint-pty|
|00003920| 70 20 70 72 6f 63 65 73 | 73 2d 63 6f 6e 6e 65 63 |p proces|s-connec|
|00003930| 74 69 6f 6e 2d 74 79 70 | 65 20 70 72 6f 63 65 73 |tion-typ|e proces|
|00003940| 73 2d 6d 61 72 6b 20 6e | 69 6c 20 73 74 61 72 74 |s-mark n|il start|
|00003950| 66 69 6c 65 20 73 6c 65 | 65 70 2d 66 6f 72 20 31 |file sle|ep-for 1|
|00003960| 20 69 6e 73 65 72 74 2d | 66 69 6c 65 2d 63 6f 6e | insert-|file-con|
|00003970| 74 65 6e 74 73 20 63 6f | 6d 69 6e 74 2d 73 65 6e |tents co|mint-sen|
|00003980| 64 2d 73 74 72 69 6e 67 | 20 72 75 6e 2d 68 6f 6f |d-string| run-hoo|
|00003990| 6b 73 20 63 6f 6d 69 6e | 74 2d 65 78 65 63 2d 68 |ks comin|t-exec-h|
|000039a0| 6f 6f 6b 5d 20 36 20 22 | 5c 0a 53 74 61 72 74 20 |ook] 6 "|\.Start |
|000039b0| 75 70 20 61 20 70 72 6f | 63 65 73 73 20 69 6e 20 |up a pro|cess in |
|000039c0| 62 75 66 66 65 72 20 42 | 55 46 46 45 52 20 66 6f |buffer B|UFFER fo|
|000039d0| 72 20 63 6f 6d 69 6e 74 | 20 6d 6f 64 65 73 2e 0a |r comint| modes..|
|000039e0| 42 6c 61 73 74 73 20 61 | 6e 79 20 6f 6c 64 20 70 |Blasts a|ny old p|
|000039f0| 72 6f 63 65 73 73 20 72 | 75 6e 6e 69 6e 67 20 69 |rocess r|unning i|
|00003a00| 6e 20 74 68 65 20 62 75 | 66 66 65 72 2e 20 20 44 |n the bu|ffer. D|
|00003a10| 6f 65 73 6e 27 74 20 73 | 65 74 20 74 68 65 20 62 |oesn't s|et the b|
|00003a20| 75 66 66 65 72 20 6d 6f | 64 65 2e 0a 59 6f 75 20 |uffer mo|de..You |
|00003a30| 63 61 6e 20 75 73 65 20 | 74 68 69 73 20 74 6f 20 |can use |this to |
|00003a40| 63 68 65 61 70 6c 79 20 | 72 75 6e 20 61 20 73 65 |cheaply |run a se|
|00003a50| 72 69 65 73 20 6f 66 20 | 70 72 6f 63 65 73 73 65 |ries of |processe|
|00003a60| 73 20 69 6e 20 74 68 65 | 20 73 61 6d 65 20 63 6f |s in the| same co|
|00003a70| 6d 69 6e 74 0a 62 75 66 | 66 65 72 2e 20 20 54 68 |mint.buf|fer. Th|
|00003a80| 65 20 68 6f 6f 6b 20 60 | 63 6f 6d 69 6e 74 2d 65 |e hook `|comint-e|
|00003a90| 78 65 63 2d 68 6f 6f 6b | 27 20 69 73 20 72 75 6e |xec-hook|' is run|
|00003aa0| 20 61 66 74 65 72 20 65 | 61 63 68 20 65 78 65 63 | after e|ach exec|
|00003ab0| 2e 22 5d 29 0a 28 66 73 | 65 74 20 27 63 6f 6d 69 |."]).(fs|et 'comi|
|00003ac0| 6e 74 2d 65 78 65 63 2d | 31 20 23 5b 28 6e 61 6d |nt-exec-|1 #[(nam|
|00003ad0| 65 20 62 75 66 66 65 72 | 20 63 6f 6d 6d 61 6e 64 |e buffer| command|
|00003ae0| 20 73 77 69 74 63 68 65 | 73 29 20 22 c0 c1 21 ab | switche|s) "..!.|
|00003af0| 8d 09 ab 8a c2 c3 c4 c5 | c6 20 5c 22 45 aa 88 c2 |........|. \"E...|
|00003b00| c7 c4 c8 c6 20 5c 22 45 | 0e 09 a4 1e 09 ca cb 0e |.... \"E|........|
|00003b10| 0c 0e 0d 0e 0e 0e 0f 25 | 29 87 22 20 5b 62 6f 75 |.......%|)." [bou|
|00003b20| 6e 64 70 20 73 79 73 74 | 65 6d 2d 75 73 65 73 2d |ndp syst|em-uses-|
|00003b30| 74 65 72 6d 69 6e 66 6f | 20 22 45 4d 41 43 53 3d |terminfo| "EMACS=|
|00003b40| 74 22 20 22 54 45 52 4d | 3d 75 6e 6b 6e 6f 77 6e |t" "TERM|=unknown|
|00003b50| 22 20 66 6f 72 6d 61 74 | 20 22 43 4f 4c 55 4d 4e |" format| "COLUMN|
|00003b60| 53 3d 25 64 22 20 66 72 | 61 6d 65 2d 77 69 64 74 |S=%d" fr|ame-widt|
|00003b70| 68 20 22 54 45 52 4d 3d | 65 6d 61 63 73 22 20 22 |h "TERM=|emacs" "|
|00003b80| 54 45 52 4d 43 41 50 3d | 65 6d 61 63 73 3a 63 6f |TERMCAP=|emacs:co|
|00003b90| 23 25 64 3a 74 63 3d 75 | 6e 6b 6e 6f 77 6e 22 20 |#%d:tc=u|nknown" |
|00003ba0| 70 72 6f 63 65 73 73 2d | 65 6e 76 69 72 6f 6e 6d |process-|environm|
|00003bb0| 65 6e 74 20 61 70 70 6c | 79 20 73 74 61 72 74 2d |ent appl|y start-|
|00003bc0| 70 72 6f 63 65 73 73 20 | 6e 61 6d 65 20 62 75 66 |process |name buf|
|00003bd0| 66 65 72 20 63 6f 6d 6d | 61 6e 64 20 73 77 69 74 |fer comm|and swit|
|00003be0| 63 68 65 73 5d 20 36 5d | 29 0a 28 66 73 65 74 20 |ches] 6]|).(fset |
|00003bf0| 27 63 6f 6d 69 6e 74 2d | 72 65 61 64 2d 69 6e 70 |'comint-|read-inp|
|00003c00| 75 74 2d 72 69 6e 67 20 | 23 5b 28 26 6f 70 74 69 |ut-ring |#[(&opti|
|00003c10| 6f 6e 61 6c 20 73 69 6c | 65 6e 74 29 20 22 08 ab |onal sil|ent) "..|
|00003c20| 85 08 c1 9a ab 82 c2 87 | c3 08 21 ac 88 0c ae ed |........|..!.....|
|00003c30| c5 c6 08 5c 22 87 c7 c8 | 21 08 c9 ca 0e 0b 21 1e |...\"...|!.....!.|
|00003c40| 0c 1e 0d 1e 0e 1e 0f d0 | 8e 8a 0e 0f 71 88 7e 88 |........|....q.~.|
|00003c50| d1 20 88 d2 0e 0e 21 88 | 64 62 88 0e 0d 0e 0b 57 |. ....!.|db.....W|
|00003c60| ab b2 d3 d4 c2 d5 23 ab | ab d6 94 d6 95 7b 1e 17 |......#.|.....{..|
|00003c70| 0e 18 ab 90 d9 0e 0c 21 | ac 8a da 0e 0c c9 5c 22 |.......!|......\"|
|00003c80| 0e 17 98 ac 87 db 0e 0c | 0e 17 5c 22 88 29 0e 0d |........|..\".)..|
|00003c90| 54 89 16 0d aa 49 2a 0e | 0c 16 1c c2 89 16 1d 2c |T....I*.|.......,|
|00003ca0| 87 22 20 5b 63 6f 6d 69 | 6e 74 2d 69 6e 70 75 74 |." [comi|nt-input|
|00003cb0| 2d 72 69 6e 67 2d 66 69 | 6c 65 2d 6e 61 6d 65 20 |-ring-fi|le-name |
|00003cc0| 22 22 20 6e 69 6c 20 66 | 69 6c 65 2d 72 65 61 64 |"" nil f|ile-read|
|00003cd0| 61 62 6c 65 2d 70 20 73 | 69 6c 65 6e 74 20 6d 65 |able-p s|ilent me|
|00003ce0| 73 73 61 67 65 20 22 43 | 61 6e 6e 6f 74 20 72 65 |ssage "C|annot re|
|00003cf0| 61 64 20 68 69 73 74 6f | 72 79 20 66 69 6c 65 20 |ad histo|ry file |
|00003d00| 25 73 22 20 67 65 74 2d | 62 75 66 66 65 72 2d 63 |%s" get-|buffer-c|
|00003d10| 72 65 61 74 65 20 22 20 | 2a 63 6f 6d 69 6e 74 2d |reate " |*comint-|
|00003d20| 68 69 73 74 6f 72 79 2a | 22 20 30 20 6d 61 6b 65 |history*|" 0 make|
|00003d30| 2d 72 69 6e 67 20 63 6f | 6d 69 6e 74 2d 69 6e 70 |-ring co|mint-inp|
|00003d40| 75 74 2d 72 69 6e 67 2d | 73 69 7a 65 20 72 69 6e |ut-ring-|size rin|
|00003d50| 67 20 63 6f 75 6e 74 20 | 66 69 6c 65 20 68 69 73 |g count |file his|
|00003d60| 74 6f 72 79 2d 62 75 66 | 20 28 28 6b 69 6c 6c 2d |tory-buf| ((kill-|
|00003d70| 62 75 66 66 65 72 20 68 | 69 73 74 6f 72 79 2d 62 |buffer h|istory-b|
|00003d80| 75 66 29 29 20 65 72 61 | 73 65 2d 62 75 66 66 65 |uf)) era|se-buffe|
|00003d90| 72 20 69 6e 73 65 72 74 | 2d 66 69 6c 65 2d 63 6f |r insert|-file-co|
|00003da0| 6e 74 65 6e 74 73 20 72 | 65 2d 73 65 61 72 63 68 |ntents r|e-search|
|00003db0| 2d 62 61 63 6b 77 61 72 | 64 20 22 5e 5b 20 09 5d |-backwar|d "^[ .]|
|00003dc0| 2a 5c 5c 28 5b 5e 23 5c | 6e 5d 2e 2a 5c 5c 29 5b |*\\([^#\|n].*\\)[|
|00003dd0| 20 09 5d 2a 24 22 20 74 | 20 31 20 68 69 73 74 6f | .]*$" t| 1 histo|
|00003de0| 72 79 20 63 6f 6d 69 6e | 74 2d 69 6e 70 75 74 2d |ry comin|t-input-|
|00003df0| 69 67 6e 6f 72 65 64 75 | 70 73 20 72 69 6e 67 2d |ignoredu|ps ring-|
|00003e00| 65 6d 70 74 79 2d 70 20 | 72 69 6e 67 2d 72 65 66 |empty-p |ring-ref|
|00003e10| 20 72 69 6e 67 2d 69 6e | 73 65 72 74 2d 61 74 2d | ring-in|sert-at-|
|00003e20| 62 65 67 69 6e 6e 69 6e | 67 20 63 6f 6d 69 6e 74 |beginnin|g comint|
|00003e30| 2d 69 6e 70 75 74 2d 72 | 69 6e 67 20 63 6f 6d 69 |-input-r|ing comi|
|00003e40| 6e 74 2d 69 6e 70 75 74 | 2d 72 69 6e 67 2d 69 6e |nt-input|-ring-in|
|00003e50| 64 65 78 5d 20 36 20 22 | 5c 0a 53 65 74 73 20 74 |dex] 6 "|\.Sets t|
|00003e60| 68 65 20 62 75 66 66 65 | 72 27 73 20 60 63 6f 6d |he buffe|r's `com|
|00003e70| 69 6e 74 2d 69 6e 70 75 | 74 2d 72 69 6e 67 27 20 |int-inpu|t-ring' |
|00003e80| 66 72 6f 6d 20 61 20 68 | 69 73 74 6f 72 79 20 66 |from a h|istory f|
|00003e90| 69 6c 65 2e 0a 54 68 65 | 20 6e 61 6d 65 20 6f 66 |ile..The| name of|
|00003ea0| 20 74 68 65 20 66 69 6c | 65 20 69 73 20 67 69 76 | the fil|e is giv|
|00003eb0| 65 6e 20 62 79 20 74 68 | 65 20 76 61 72 69 61 62 |en by th|e variab|
|00003ec0| 6c 65 20 60 63 6f 6d 69 | 6e 74 2d 69 6e 70 75 74 |le `comi|nt-input|
|00003ed0| 2d 72 69 6e 67 2d 66 69 | 6c 65 2d 6e 61 6d 65 27 |-ring-fi|le-name'|
|00003ee0| 2e 0a 54 68 65 20 68 69 | 73 74 6f 72 79 20 72 69 |..The hi|story ri|
|00003ef0| 6e 67 20 69 73 20 6f 66 | 20 73 69 7a 65 20 60 63 |ng is of| size `c|
|00003f00| 6f 6d 69 6e 74 2d 69 6e | 70 75 74 2d 72 69 6e 67 |omint-in|put-ring|
|00003f10| 2d 73 69 7a 65 27 2c 20 | 72 65 67 61 72 64 6c 65 |-size', |regardle|
|00003f20| 73 73 20 6f 66 20 66 69 | 6c 65 20 73 69 7a 65 2e |ss of fi|le size.|
|00003f30| 0a 49 66 20 60 63 6f 6d | 69 6e 74 2d 69 6e 70 75 |.If `com|int-inpu|
|00003f40| 74 2d 72 69 6e 67 2d 66 | 69 6c 65 2d 6e 61 6d 65 |t-ring-f|ile-name|
|00003f50| 27 20 69 73 20 6e 69 6c | 20 74 68 69 73 20 66 75 |' is nil| this fu|
|00003f60| 6e 63 74 69 6f 6e 20 64 | 6f 65 73 20 6e 6f 74 68 |nction d|oes noth|
|00003f70| 69 6e 67 2e 0a 0a 49 66 | 20 74 68 65 20 6f 70 74 |ing...If| the opt|
|00003f80| 69 6f 6e 61 6c 20 61 72 | 67 75 6d 65 6e 74 20 53 |ional ar|gument S|
|00003f90| 49 4c 45 4e 54 20 69 73 | 20 6e 6f 6e 2d 6e 69 6c |ILENT is| non-nil|
|00003fa0| 2c 20 77 65 20 73 61 79 | 20 6e 6f 74 68 69 6e 67 |, we say| nothing|
|00003fb0| 20 61 62 6f 75 74 20 61 | 0a 66 61 69 6c 75 72 65 | about a|.failure|
|00003fc0| 20 74 6f 20 72 65 61 64 | 20 74 68 65 20 68 69 73 | to read| the his|
|00003fd0| 74 6f 72 79 20 66 69 6c | 65 2e 0a 0a 54 68 69 73 |tory fil|e...This|
|00003fe0| 20 66 75 6e 63 74 69 6f | 6e 20 69 73 20 75 73 65 | functio|n is use|
|00003ff0| 66 75 6c 20 66 6f 72 20 | 6d 61 6a 6f 72 20 6d 6f |ful for |major mo|
|00004000| 64 65 20 63 6f 6d 6d 61 | 6e 64 73 20 61 6e 64 20 |de comma|nds and |
|00004010| 6d 6f 64 65 20 68 6f 6f | 6b 73 2e 0a 0a 54 68 65 |mode hoo|ks...The|
|00004020| 20 73 74 72 75 63 74 75 | 72 65 20 6f 66 20 74 68 | structu|re of th|
|00004030| 65 20 68 69 73 74 6f 72 | 79 20 66 69 6c 65 20 73 |e histor|y file s|
|00004040| 68 6f 75 6c 64 20 62 65 | 20 6f 6e 65 20 69 6e 70 |hould be| one inp|
|00004050| 75 74 20 63 6f 6d 6d 61 | 6e 64 20 70 65 72 20 6c |ut comma|nd per l|
|00004060| 69 6e 65 2c 0a 77 69 74 | 68 20 74 68 65 20 6d 6f |ine,.wit|h the mo|
|00004070| 73 74 20 72 65 63 65 6e | 74 20 63 6f 6d 6d 61 6e |st recen|t comman|
|00004080| 64 20 6c 61 73 74 2e 0a | 53 65 65 20 61 6c 73 6f |d last..|See also|
|00004090| 20 60 63 6f 6d 69 6e 74 | 2d 69 6e 70 75 74 2d 69 | `comint|-input-i|
|000040a0| 67 6e 6f 72 65 64 75 70 | 73 27 20 61 6e 64 20 60 |gnoredup|s' and `|
|000040b0| 63 6f 6d 69 6e 74 2d 77 | 72 69 74 65 2d 69 6e 70 |comint-w|rite-inp|
|000040c0| 75 74 2d 72 69 6e 67 27 | 2e 22 5d 29 0a 28 66 73 |ut-ring'|."]).(fs|
|000040d0| 65 74 20 27 63 6f 6d 69 | 6e 74 2d 77 72 69 74 65 |et 'comi|nt-write|
|000040e0| 2d 69 6e 70 75 74 2d 72 | 69 6e 67 20 23 5b 6e 69 |-input-r|ing #[ni|
|000040f0| 6c 20 22 08 ab 8d 08 c1 | 9a ac 88 5c 6e ab 85 c3 |l ".....|...\n...|
|00004100| 5c 6e 21 ab 82 c4 87 c5 | 08 21 ac 85 c6 c7 08 5c |\n!.....|.!.....\|
|00004110| 22 87 c8 c9 21 1e 5c 6e | 5c 6e 1e 0b 08 1e 0c cd |"...!.\n|\n......|
|00004120| 0e 0b 21 1e 0e 8a 0e 5c | 6e 71 88 cf 20 88 0e 0e |..!....\|nq.. ...|
|00004130| d0 56 ab 91 0e 0e 53 16 | 0e d1 0e 0b 0e 0e 5c 22 |.V....S.|......\"|
|00004140| d2 b1 02 88 aa 69 d3 d4 | 20 c4 0e 0c c4 d5 25 88 |.....i..| .....%.|
|00004150| d6 c4 21 2d 87 22 20 5b | 63 6f 6d 69 6e 74 2d 69 |..!-." [|comint-i|
|00004160| 6e 70 75 74 2d 72 69 6e | 67 2d 66 69 6c 65 2d 6e |nput-rin|g-file-n|
|00004170| 61 6d 65 20 22 22 20 63 | 6f 6d 69 6e 74 2d 69 6e |ame "" c|omint-in|
|00004180| 70 75 74 2d 72 69 6e 67 | 20 72 69 6e 67 2d 65 6d |put-ring| ring-em|
|00004190| 70 74 79 2d 70 20 6e 69 | 6c 20 66 69 6c 65 2d 77 |pty-p ni|l file-w|
|000041a0| 72 69 74 61 62 6c 65 2d | 70 20 6d 65 73 73 61 67 |ritable-|p messag|
|000041b0| 65 20 22 43 61 6e 6e 6f | 74 20 77 72 69 74 65 20 |e "Canno|t write |
|000041c0| 68 69 73 74 6f 72 79 20 | 66 69 6c 65 20 25 73 22 |history |file %s"|
|000041d0| 20 67 65 74 2d 62 75 66 | 66 65 72 2d 63 72 65 61 | get-buf|fer-crea|
|000041e0| 74 65 20 22 20 2a 54 65 | 6d 70 20 49 6e 70 75 74 |te " *Te|mp Input|
|000041f0| 20 48 69 73 74 6f 72 79 | 2a 22 20 68 69 73 74 6f | History|*" histo|
|00004200| 72 79 2d 62 75 66 20 72 | 69 6e 67 20 66 69 6c 65 |ry-buf r|ing file|
|00004210| 20 72 69 6e 67 2d 6c 65 | 6e 67 74 68 20 69 6e 64 | ring-le|ngth ind|
|00004220| 65 78 20 65 72 61 73 65 | 2d 62 75 66 66 65 72 20 |ex erase|-buffer |
|00004230| 30 20 72 69 6e 67 2d 72 | 65 66 20 31 30 20 77 72 |0 ring-r|ef 10 wr|
|00004240| 69 74 65 2d 72 65 67 69 | 6f 6e 20 62 75 66 66 65 |ite-regi|on buffe|
|00004250| 72 2d 73 74 72 69 6e 67 | 20 6e 6f 2d 6d 65 73 73 |r-string| no-mess|
|00004260| 61 67 65 20 6b 69 6c 6c | 2d 62 75 66 66 65 72 5d |age kill|-buffer]|
|00004270| 20 36 20 22 5c 0a 57 72 | 69 74 65 73 20 74 68 65 | 6 "\.Wr|ites the|
|00004280| 20 62 75 66 66 65 72 27 | 73 20 60 63 6f 6d 69 6e | buffer'|s `comin|
|00004290| 74 2d 69 6e 70 75 74 2d | 72 69 6e 67 27 20 74 6f |t-input-|ring' to|
|000042a0| 20 61 20 68 69 73 74 6f | 72 79 20 66 69 6c 65 2e | a histo|ry file.|
|000042b0| 0a 54 68 65 20 6e 61 6d | 65 20 6f 66 20 74 68 65 |.The nam|e of the|
|000042c0| 20 66 69 6c 65 20 69 73 | 20 67 69 76 65 6e 20 62 | file is| given b|
|000042d0| 79 20 74 68 65 20 76 61 | 72 69 61 62 6c 65 20 60 |y the va|riable `|
|000042e0| 63 6f 6d 69 6e 74 2d 69 | 6e 70 75 74 2d 72 69 6e |comint-i|nput-rin|
|000042f0| 67 2d 66 69 6c 65 2d 6e | 61 6d 65 27 2e 0a 54 68 |g-file-n|ame'..Th|
|00004300| 65 20 6f 72 69 67 69 6e | 61 6c 20 63 6f 6e 74 65 |e origin|al conte|
|00004310| 6e 74 73 20 6f 66 20 74 | 68 65 20 66 69 6c 65 20 |nts of t|he file |
|00004320| 61 72 65 20 6c 6f 73 74 | 20 69 66 20 60 63 6f 6d |are lost| if `com|
|00004330| 69 6e 74 2d 69 6e 70 75 | 74 2d 72 69 6e 67 27 20 |int-inpu|t-ring' |
|00004340| 69 73 20 6e 6f 74 20 65 | 6d 70 74 79 2e 0a 49 66 |is not e|mpty..If|
|00004350| 20 60 63 6f 6d 69 6e 74 | 2d 69 6e 70 75 74 2d 72 | `comint|-input-r|
|00004360| 69 6e 67 2d 66 69 6c 65 | 2d 6e 61 6d 65 27 20 69 |ing-file|-name' i|
|00004370| 73 20 6e 69 6c 20 74 68 | 69 73 20 66 75 6e 63 74 |s nil th|is funct|
|00004380| 69 6f 6e 20 64 6f 65 73 | 20 6e 6f 74 68 69 6e 67 |ion does| nothing|
|00004390| 2e 0a 0a 55 73 65 66 75 | 6c 20 77 69 74 68 69 6e |...Usefu|l within|
|000043a0| 20 70 72 6f 63 65 73 73 | 20 73 65 6e 74 69 6e 65 | process| sentine|
|000043b0| 6c 73 2e 0a 0a 53 65 65 | 20 61 6c 73 6f 20 60 63 |ls...See| also `c|
|000043c0| 6f 6d 69 6e 74 2d 72 65 | 61 64 2d 69 6e 70 75 74 |omint-re|ad-input|
|000043d0| 2d 72 69 6e 67 27 2e 22 | 5d 29 0a 28 66 73 65 74 |-ring'."|]).(fset|
|000043e0| 20 27 63 6f 6d 69 6e 74 | 2d 72 65 73 74 6f 72 65 | 'comint|-restore|
|000043f0| 2d 77 69 6e 64 6f 77 2d | 63 6f 6e 66 69 67 20 23 |-window-|config #|
|00004400| 5b 28 63 6f 6e 66 20 26 | 6f 70 74 69 6f 6e 61 6c |[(conf &|optional|
|00004410| 20 6d 65 73 73 61 67 65 | 29 20 22 c0 20 c1 20 3d | message|) ". . =|
|00004420| ac 88 c2 c3 5c 6e ae 81 | c4 5c 22 88 c5 c6 21 88 |....\n..|.\"...!.|
|00004430| c7 c8 21 ab 97 c8 20 1e | 09 ca 0e 09 21 cb 3d ab |..!... .|....!.=.|
|00004440| 83 cc aa 85 0e 09 16 0d | ce 29 aa 93 cf 20 89 1e |........|.)... ..|
|00004450| 09 cb 3d ab 83 cc aa 86 | 0e 09 43 16 10 ce 29 ad |..=.....|..C...).|
|00004460| 84 d1 0e 12 21 87 22 20 | 5b 73 65 6c 65 63 74 65 |....!." |[selecte|
|00004470| 64 2d 77 69 6e 64 6f 77 | 20 6d 69 6e 69 62 75 66 |d-window| minibuf|
|00004480| 66 65 72 2d 77 69 6e 64 | 6f 77 20 6d 65 73 73 61 |fer-wind|ow messa|
|00004490| 67 65 20 22 25 73 22 20 | 22 50 72 65 73 73 20 73 |ge "%s" |"Press s|
|000044a0| 70 61 63 65 20 74 6f 20 | 66 6c 75 73 68 22 20 73 |pace to |flush" s|
|000044b0| 69 74 2d 66 6f 72 20 30 | 20 66 62 6f 75 6e 64 70 |it-for 0| fboundp|
|000044c0| 20 6e 65 78 74 2d 63 6f | 6d 6d 61 6e 64 2d 65 76 | next-co|mmand-ev|
|000044d0| 65 6e 74 20 63 68 20 65 | 76 65 6e 74 2d 74 6f 2d |ent ch e|vent-to-|
|000044e0| 63 68 61 72 61 63 74 65 | 72 20 33 32 20 74 20 75 |characte|r 32 t u|
|000044f0| 6e 72 65 61 64 2d 63 6f | 6d 6d 61 6e 64 2d 65 76 |nread-co|mmand-ev|
|00004500| 65 6e 74 20 6e 69 6c 20 | 72 65 61 64 2d 65 76 65 |ent nil |read-eve|
|00004510| 6e 74 20 75 6e 72 65 61 | 64 2d 63 6f 6d 6d 61 6e |nt unrea|d-comman|
|00004520| 64 2d 65 76 65 6e 74 73 | 20 73 65 74 2d 77 69 6e |d-events| set-win|
|00004530| 64 6f 77 2d 63 6f 6e 66 | 69 67 75 72 61 74 69 6f |dow-conf|iguratio|
|00004540| 6e 20 63 6f 6e 66 5d 20 | 34 5d 29 0a 28 66 73 65 |n conf] |4]).(fse|
|00004550| 74 20 27 63 6f 6d 69 6e | 74 2d 64 79 6e 61 6d 69 |t 'comin|t-dynami|
|00004560| 63 2d 6c 69 73 74 2d 69 | 6e 70 75 74 2d 72 69 6e |c-list-i|nput-rin|
|00004570| 67 20 23 5b 6e 69 6c 20 | 22 c0 09 21 ab 85 c2 09 |g #[nil |"..!....|
|00004580| 21 ab 84 c3 c4 21 87 c5 | c6 c7 09 21 53 c8 20 1e |!....!..|...!S. .|
|00004590| 09 1e 5c 6e 1e 0b 1e 0c | 0e 5c 6e cd 59 ab 92 ce |..\n....|.\n.Y...|
|000045a0| 09 0e 5c 6e 5c 22 0e 0c | 42 16 0c 0e 5c 6e 53 89 |..\n\"..|B...\nS.|
|000045b0| 16 5c 6e aa 6a 0e 0b 90 | cf 0e 0c 21 88 0e 0b 71 |.\n.j...|...!...q|
|000045c0| 88 d0 79 88 d1 d2 c5 d3 | 23 ad 86 d4 d5 21 88 aa |..y.....|#....!..|
|000045d0| 73 91 88 d6 0e 09 21 2c | 87 22 20 5b 72 69 6e 67 |s.....!,|." [ring|
|000045e0| 2d 70 20 63 6f 6d 69 6e | 74 2d 69 6e 70 75 74 2d |-p comin|t-input-|
|000045f0| 72 69 6e 67 20 72 69 6e | 67 2d 65 6d 70 74 79 2d |ring rin|g-empty-|
|00004600| 70 20 6d 65 73 73 61 67 | 65 20 22 4e 6f 20 68 69 |p messag|e "No hi|
|00004610| 73 74 6f 72 79 22 20 6e | 69 6c 20 22 20 2a 49 6e |story" n|il " *In|
|00004620| 70 75 74 20 48 69 73 74 | 6f 72 79 2a 22 20 72 69 |put Hist|ory*" ri|
|00004630| 6e 67 2d 6c 65 6e 67 74 | 68 20 63 75 72 72 65 6e |ng-lengt|h curren|
|00004640| 74 2d 77 69 6e 64 6f 77 | 2d 63 6f 6e 66 69 67 75 |t-window|-configu|
|00004650| 72 61 74 69 6f 6e 20 63 | 6f 6e 66 20 69 6e 64 65 |ration c|onf inde|
|00004660| 78 20 68 69 73 74 6f 72 | 79 2d 62 75 66 66 65 72 |x histor|y-buffer|
|00004670| 20 68 69 73 74 6f 72 79 | 20 30 20 72 69 6e 67 2d | history| 0 ring-|
|00004680| 72 65 66 20 64 69 73 70 | 6c 61 79 2d 63 6f 6d 70 |ref disp|lay-comp|
|00004690| 6c 65 74 69 6f 6e 2d 6c | 69 73 74 20 33 20 73 65 |letion-l|ist 3 se|
|000046a0| 61 72 63 68 2d 62 61 63 | 6b 77 61 72 64 20 22 63 |arch-bac|kward "c|
|000046b0| 6f 6d 70 6c 65 74 69 6f | 6e 22 20 6d 6f 76 65 20 |ompletio|n" move |
|000046c0| 72 65 70 6c 61 63 65 2d | 6d 61 74 63 68 20 22 68 |replace-|match "h|
|000046d0| 69 73 74 6f 72 79 20 72 | 65 66 65 72 65 6e 63 65 |istory r|eference|
|000046e0| 22 20 63 6f 6d 69 6e 74 | 2d 72 65 73 74 6f 72 65 |" comint|-restore|
|000046f0| 2d 77 69 6e 64 6f 77 2d | 63 6f 6e 66 69 67 5d 20 |-window-|config] |
|00004700| 36 20 22 5c 0a 4c 69 73 | 74 20 69 6e 20 68 65 6c |6 "\.Lis|t in hel|
|00004710| 70 20 62 75 66 66 65 72 | 20 74 68 65 20 62 75 66 |p buffer| the buf|
|00004720| 66 65 72 27 73 20 69 6e | 70 75 74 20 68 69 73 74 |fer's in|put hist|
|00004730| 6f 72 79 2e 22 20 6e 69 | 6c 5d 29 0a 28 62 79 74 |ory." ni|l]).(byt|
|00004740| 65 2d 63 6f 64 65 20 22 | c0 c1 4d 88 c2 c3 4d 88 |e-code "|..M...M.|
|00004750| c4 c5 4d 87 22 20 5b 63 | 6f 6d 69 6e 74 2d 72 65 |..M." [c|omint-re|
|00004760| 67 65 78 70 2d 61 72 67 | 20 23 5b 28 70 72 6f 6d |gexp-arg| #[(prom|
|00004770| 70 74 29 20 22 c0 19 5c | 6e 1a c3 0c c0 89 89 c5 |pt) "..\|n.......|
|00004780| 25 89 1e 06 c7 98 ab 87 | 0d 89 41 40 a0 aa 82 0e |%.......|..A@....|
|00004790| 06 c8 0e 09 21 2b 44 87 | 22 20 5b 6e 69 6c 20 6d |....!+D.|" [nil m|
|000047a0| 69 6e 69 62 75 66 66 65 | 72 2d 68 69 73 74 6f 72 |inibuffe|r-histor|
|000047b0| 79 2d 73 65 78 70 2d 66 | 6c 61 67 20 6c 61 73 74 |y-sexp-f|lag last|
|000047c0| 2d 63 6f 6d 6d 61 6e 64 | 20 72 65 61 64 2d 66 72 |-command| read-fr|
|000047d0| 6f 6d 2d 6d 69 6e 69 62 | 75 66 66 65 72 20 70 72 |om-minib|uffer pr|
|000047e0| 6f 6d 70 74 20 6d 69 6e | 69 62 75 66 66 65 72 2d |ompt min|ibuffer-|
|000047f0| 68 69 73 74 6f 72 79 2d | 73 65 61 72 63 68 2d 68 |history-|search-h|
|00004800| 69 73 74 6f 72 79 20 72 | 65 67 65 78 70 20 22 22 |istory r|egexp ""|
|00004810| 20 70 72 65 66 69 78 2d | 6e 75 6d 65 72 69 63 2d | prefix-|numeric-|
|00004820| 76 61 6c 75 65 20 63 75 | 72 72 65 6e 74 2d 70 72 |value cu|rrent-pr|
|00004830| 65 66 69 78 2d 61 72 67 | 5d 20 37 5d 20 63 6f 6d |efix-arg|] 7] com|
|00004840| 69 6e 74 2d 73 65 61 72 | 63 68 2d 61 72 67 20 23 |int-sear|ch-arg #|
|00004850| 5b 28 61 72 67 29 20 22 | c0 20 ac 84 c1 c2 21 87 |[(arg) "|. ....!.|
|00004860| 0b ab 85 c4 0b 21 ab 84 | c1 c5 21 87 0e 06 c7 55 |.....!..|..!....U|
|00004870| ab 85 c8 16 09 ca 87 0e | 06 87 22 20 5b 63 6f 6d |........|.." [com|
|00004880| 69 6e 74 2d 61 66 74 65 | 72 2d 70 6d 61 72 6b 2d |int-afte|r-pmark-|
|00004890| 70 20 65 72 72 6f 72 20 | 22 4e 6f 74 20 61 74 20 |p error |"Not at |
|000048a0| 63 6f 6d 6d 61 6e 64 20 | 6c 69 6e 65 22 20 63 6f |command |line" co|
|000048b0| 6d 69 6e 74 2d 69 6e 70 | 75 74 2d 72 69 6e 67 20 |mint-inp|ut-ring |
|000048c0| 72 69 6e 67 2d 65 6d 70 | 74 79 2d 70 20 22 45 6d |ring-emp|ty-p "Em|
|000048d0| 70 74 79 20 69 6e 70 75 | 74 20 72 69 6e 67 22 20 |pty inpu|t ring" |
|000048e0| 61 72 67 20 30 20 6e 69 | 6c 20 63 6f 6d 69 6e 74 |arg 0 ni|l comint|
|000048f0| 2d 69 6e 70 75 74 2d 72 | 69 6e 67 2d 69 6e 64 65 |-input-r|ing-inde|
|00004900| 78 20 31 5d 20 32 5d 20 | 63 6f 6d 69 6e 74 2d 73 |x 1] 2] |comint-s|
|00004910| 65 61 72 63 68 2d 73 74 | 61 72 74 20 23 5b 28 61 |earch-st|art #[(a|
|00004920| 72 67 29 20 22 08 ab 92 | c1 08 5c 6e c3 56 ab 83 |rg) "...|..\n.V..|
|00004930| c4 aa 81 c5 5c 5c c6 0e | 07 21 5c 22 87 5c 6e c3 |....\\..|.!\".\n.|
|00004940| 59 ab 82 c3 87 c6 0e 07 | 21 53 87 22 20 5b 63 6f |Y.......|!S." [co|
|00004950| 6d 69 6e 74 2d 69 6e 70 | 75 74 2d 72 69 6e 67 2d |mint-inp|ut-ring-|
|00004960| 69 6e 64 65 78 20 6d 6f | 64 20 61 72 67 20 30 20 |index mo|d arg 0 |
|00004970| 31 20 2d 31 20 72 69 6e | 67 2d 6c 65 6e 67 74 68 |1 -1 rin|g-length|
|00004980| 20 63 6f 6d 69 6e 74 2d | 69 6e 70 75 74 2d 72 69 | comint-|input-ri|
|00004990| 6e 67 5d 20 34 5d 5d 20 | 32 29 0a 28 66 73 65 74 |ng] 4]] |2).(fset|
|000049a0| 20 27 63 6f 6d 69 6e 74 | 2d 70 72 65 76 69 6f 75 | 'comint|-previou|
|000049b0| 73 2d 69 6e 70 75 74 2d | 73 74 72 69 6e 67 20 23 |s-input-|string #|
|000049c0| 5b 28 61 72 67 29 20 22 | c0 09 5c 6e ab 8a c3 0c |[(arg) "|..\n....|
|000049d0| 5c 6e 5c 5c c5 09 21 5c | 22 aa 81 0c 5c 22 87 22 |\n\\..!\|"...\"."|
|000049e0| 20 5b 72 69 6e 67 2d 72 | 65 66 20 63 6f 6d 69 6e | [ring-r|ef comin|
|000049f0| 74 2d 69 6e 70 75 74 2d | 72 69 6e 67 20 63 6f 6d |t-input-|ring com|
|00004a00| 69 6e 74 2d 69 6e 70 75 | 74 2d 72 69 6e 67 2d 69 |int-inpu|t-ring-i|
|00004a10| 6e 64 65 78 20 6d 6f 64 | 20 61 72 67 20 72 69 6e |ndex mod| arg rin|
|00004a20| 67 2d 6c 65 6e 67 74 68 | 5d 20 36 20 22 5c 0a 52 |g-length|] 6 "\.R|
|00004a30| 65 74 75 72 6e 20 74 68 | 65 20 73 74 72 69 6e 67 |eturn th|e string|
|00004a40| 20 41 52 47 20 70 6c 61 | 63 65 73 20 61 6c 6f 6e | ARG pla|ces alon|
|00004a50| 67 20 74 68 65 20 69 6e | 70 75 74 20 72 69 6e 67 |g the in|put ring|
|00004a60| 2e 0a 4d 6f 76 65 73 20 | 72 65 6c 61 74 69 76 65 |..Moves |relative|
|00004a70| 20 74 6f 20 60 63 6f 6d | 69 6e 74 2d 69 6e 70 75 | to `com|int-inpu|
|00004a80| 74 2d 72 69 6e 67 2d 69 | 6e 64 65 78 27 2e 22 5d |t-ring-i|ndex'."]|
|00004a90| 29 0a 28 66 73 65 74 20 | 27 63 6f 6d 69 6e 74 2d |).(fset |'comint-|
|00004aa0| 70 72 65 76 69 6f 75 73 | 2d 69 6e 70 75 74 20 23 |previous|-input #|
|00004ab0| 5b 28 61 72 67 29 20 22 | c0 c1 5c 6e 5c 22 87 22 |[(arg) "|..\n\"."|
|00004ac0| 20 5b 63 6f 6d 69 6e 74 | 2d 70 72 65 76 69 6f 75 | [comint|-previou|
|00004ad0| 73 2d 6d 61 74 63 68 69 | 6e 67 2d 69 6e 70 75 74 |s-matchi|ng-input|
|00004ae0| 20 22 2e 22 20 61 72 67 | 5d 20 33 20 22 5c 0a 43 | "." arg|] 3 "\.C|
|00004af0| 79 63 6c 65 20 62 61 63 | 6b 77 61 72 64 73 20 74 |ycle bac|kwards t|
|00004b00| 68 72 6f 75 67 68 20 69 | 6e 70 75 74 20 68 69 73 |hrough i|nput his|
|00004b10| 74 6f 72 79 2e 22 20 22 | 2a 70 22 5d 29 0a 28 66 |tory." "|*p"]).(f|
|00004b20| 73 65 74 20 27 63 6f 6d | 69 6e 74 2d 6e 65 78 74 |set 'com|int-next|
|00004b30| 2d 69 6e 70 75 74 20 23 | 5b 28 61 72 67 29 20 22 |-input #|[(arg) "|
|00004b40| c0 09 5b 21 87 22 20 5b | 63 6f 6d 69 6e 74 2d 70 |..[!." [|comint-p|
|00004b50| 72 65 76 69 6f 75 73 2d | 69 6e 70 75 74 20 61 72 |revious-|input ar|
|00004b60| 67 5d 20 32 20 22 5c 0a | 43 79 63 6c 65 20 66 6f |g] 2 "\.|Cycle fo|
|00004b70| 72 77 61 72 64 73 20 74 | 68 72 6f 75 67 68 20 69 |rwards t|hrough i|
|00004b80| 6e 70 75 74 20 68 69 73 | 74 6f 72 79 2e 22 20 22 |nput his|tory." "|
|00004b90| 2a 70 22 5d 29 0a 28 66 | 73 65 74 20 27 63 6f 6d |*p"]).(f|set 'com|
|00004ba0| 69 6e 74 2d 70 72 65 76 | 69 6f 75 73 2d 6d 61 74 |int-prev|ious-mat|
|00004bb0| 63 68 69 6e 67 2d 69 6e | 70 75 74 2d 73 74 72 69 |ching-in|put-stri|
|00004bc0| 6e 67 20 23 5b 28 72 65 | 67 65 78 70 20 61 72 67 |ng #[(re|gexp arg|
|00004bd0| 29 20 22 c0 09 5c 6e 5c | 22 89 1b ad 84 c4 0d 0b |) "..\n\|".......|
|00004be0| 5c 22 29 87 22 20 5b 63 | 6f 6d 69 6e 74 2d 70 72 |\")." [c|omint-pr|
|00004bf0| 65 76 69 6f 75 73 2d 6d | 61 74 63 68 69 6e 67 2d |evious-m|atching-|
|00004c00| 69 6e 70 75 74 2d 73 74 | 72 69 6e 67 2d 70 6f 73 |input-st|ring-pos|
|00004c10| 69 74 69 6f 6e 20 72 65 | 67 65 78 70 20 61 72 67 |ition re|gexp arg|
|00004c20| 20 70 6f 73 20 72 69 6e | 67 2d 72 65 66 20 63 6f | pos rin|g-ref co|
|00004c30| 6d 69 6e 74 2d 69 6e 70 | 75 74 2d 72 69 6e 67 5d |mint-inp|ut-ring]|
|00004c40| 20 34 20 22 5c 0a 52 65 | 74 75 72 6e 20 74 68 65 | 4 "\.Re|turn the|
|00004c50| 20 73 74 72 69 6e 67 20 | 6d 61 74 63 68 69 6e 67 | string |matching|
|00004c60| 20 52 45 47 45 58 50 20 | 41 52 47 20 70 6c 61 63 | REGEXP |ARG plac|
|00004c70| 65 73 20 61 6c 6f 6e 67 | 20 74 68 65 20 69 6e 70 |es along| the inp|
|00004c80| 75 74 20 72 69 6e 67 2e | 0a 4d 6f 76 65 73 20 72 |ut ring.|.Moves r|
|00004c90| 65 6c 61 74 69 76 65 20 | 74 6f 20 60 63 6f 6d 69 |elative |to `comi|
|00004ca0| 6e 74 2d 69 6e 70 75 74 | 2d 72 69 6e 67 2d 69 6e |nt-input|-ring-in|
|00004cb0| 64 65 78 27 2e 22 5d 29 | 0a 28 66 73 65 74 20 27 |dex'."])|.(fset '|
|00004cc0| 63 6f 6d 69 6e 74 2d 70 | 72 65 76 69 6f 75 73 2d |comint-p|revious-|
|00004cd0| 6d 61 74 63 68 69 6e 67 | 2d 69 6e 70 75 74 2d 73 |matching|-input-s|
|00004ce0| 74 72 69 6e 67 2d 70 6f | 73 69 74 69 6f 6e 20 23 |tring-po|sition #|
|00004cf0| 5b 28 72 65 67 65 78 70 | 20 61 72 67 20 26 6f 70 |[(regexp| arg &op|
|00004d00| 74 69 6f 6e 61 6c 20 73 | 74 61 72 74 29 20 22 c0 |tional s|tart) ".|
|00004d10| 09 21 ab 85 c2 09 21 ab | 84 c3 c4 21 88 c5 09 21 |.!....!.|...!...!|
|00004d20| 1e 06 0e 07 c8 56 ab 83 | c9 aa 81 ca 1e 0b cc 0e |.....V..|........|
|00004d30| 0d ae 84 ce 0e 07 21 0e | 0b 5a 0e 06 5c 22 1e 0f |......!.|.Z..\"..|
|00004d40| d0 1e 11 d0 1e 12 0e 07 | c8 55 ac cf 0e 11 ac cb |........|.U......|
|00004d50| 0e 0f 16 12 cc 0e 0f 0e | 0b 5c 5c 0e 06 5c 22 16 |........|.\\..\".|
|00004d60| 0f 0e 0f 0e 06 57 ab a2 | 0e 11 ac 9e d3 0e 14 d5 |.....W..|........|
|00004d70| 09 0e 0f 5c 22 5c 22 ac | 93 cc 0e 0f 0e 0b 5c 5c |...\"\".|......\\|
|00004d80| 0e 06 5c 22 89 16 0f 0e | 12 55 16 11 aa 57 0e 07 |..\"....|.U...W..|
|00004d90| c8 56 ab 85 0e 07 53 aa | 83 0e 07 54 89 16 07 aa |.V....S.|...T....|
|00004da0| 2d d3 0e 14 d5 09 0e 0f | 5c 22 5c 22 ad 82 0e 0f |-.......|\"\"....|
|00004db0| 2d 87 22 20 5b 72 69 6e | 67 2d 70 20 63 6f 6d 69 |-." [rin|g-p comi|
|00004dc0| 6e 74 2d 69 6e 70 75 74 | 2d 72 69 6e 67 20 72 69 |nt-input|-ring ri|
|00004dd0| 6e 67 2d 65 6d 70 74 79 | 2d 70 20 65 72 72 6f 72 |ng-empty|-p error|
|00004de0| 20 22 4e 6f 20 68 69 73 | 74 6f 72 79 22 20 72 69 | "No his|tory" ri|
|00004df0| 6e 67 2d 6c 65 6e 67 74 | 68 20 6c 65 6e 20 61 72 |ng-lengt|h len ar|
|00004e00| 67 20 30 20 31 20 2d 31 | 20 6d 6f 74 69 6f 6e 20 |g 0 1 -1| motion |
|00004e10| 6d 6f 64 20 73 74 61 72 | 74 20 63 6f 6d 69 6e 74 |mod star|t comint|
|00004e20| 2d 73 65 61 72 63 68 2d | 73 74 61 72 74 20 6e 20 |-search-|start n |
|00004e30| 6e 69 6c 20 74 72 69 65 | 64 2d 65 61 63 68 2d 72 |nil trie|d-each-r|
|00004e40| 69 6e 67 2d 69 74 65 6d | 20 70 72 65 76 20 73 74 |ing-item| prev st|
|00004e50| 72 69 6e 67 2d 6d 61 74 | 63 68 20 72 65 67 65 78 |ring-mat|ch regex|
|00004e60| 70 20 72 69 6e 67 2d 72 | 65 66 5d 20 36 20 22 5c |p ring-r|ef] 6 "\|
|00004e70| 0a 52 65 74 75 72 6e 20 | 74 68 65 20 69 6e 64 65 |.Return |the inde|
|00004e80| 78 20 6d 61 74 63 68 69 | 6e 67 20 52 45 47 45 58 |x matchi|ng REGEX|
|00004e90| 50 20 41 52 47 20 70 6c | 61 63 65 73 20 61 6c 6f |P ARG pl|aces alo|
|00004ea0| 6e 67 20 74 68 65 20 69 | 6e 70 75 74 20 72 69 6e |ng the i|nput rin|
|00004eb0| 67 2e 0a 4d 6f 76 65 73 | 20 72 65 6c 61 74 69 76 |g..Moves| relativ|
|00004ec0| 65 20 74 6f 20 53 54 41 | 52 54 2c 20 6f 72 20 60 |e to STA|RT, or `|
|00004ed0| 63 6f 6d 69 6e 74 2d 69 | 6e 70 75 74 2d 72 69 6e |comint-i|nput-rin|
|00004ee0| 67 2d 69 6e 64 65 78 27 | 2e 22 5d 29 0a 28 66 73 |g-index'|."]).(fs|
|00004ef0| 65 74 20 27 63 6f 6d 69 | 6e 74 2d 70 72 65 76 69 |et 'comi|nt-previ|
|00004f00| 6f 75 73 2d 6d 61 74 63 | 68 69 6e 67 2d 69 6e 70 |ous-matc|hing-inp|
|00004f10| 75 74 20 23 5b 28 72 65 | 67 65 78 70 20 61 72 67 |ut #[(re|gexp arg|
|00004f20| 29 20 22 c0 09 21 11 c2 | 0b 09 5c 22 89 1c ac 85 |) "..!..|..\"....|
|00004f30| c5 c6 21 aa 97 0c 16 07 | c8 c9 0c 54 5c 22 88 ca |..!.....|...T\"..|
|00004f40| cb 70 21 21 60 7c 88 cc | 0e 0d 0c 5c 22 63 29 87 |.p!!`|..|...\"c).|
|00004f50| 22 20 5b 63 6f 6d 69 6e | 74 2d 73 65 61 72 63 68 |" [comin|t-search|
|00004f60| 2d 61 72 67 20 61 72 67 | 20 63 6f 6d 69 6e 74 2d |-arg arg| comint-|
|00004f70| 70 72 65 76 69 6f 75 73 | 2d 6d 61 74 63 68 69 6e |previous|-matchin|
|00004f80| 67 2d 69 6e 70 75 74 2d | 73 74 72 69 6e 67 2d 70 |g-input-|string-p|
|00004f90| 6f 73 69 74 69 6f 6e 20 | 72 65 67 65 78 70 20 70 |osition |regexp p|
|00004fa0| 6f 73 20 65 72 72 6f 72 | 20 22 4e 6f 74 20 66 6f |os error| "Not fo|
|00004fb0| 75 6e 64 22 20 63 6f 6d | 69 6e 74 2d 69 6e 70 75 |und" com|int-inpu|
|00004fc0| 74 2d 72 69 6e 67 2d 69 | 6e 64 65 78 20 6d 65 73 |t-ring-i|ndex mes|
|00004fd0| 73 61 67 65 20 22 48 69 | 73 74 6f 72 79 20 69 74 |sage "Hi|story it|
|00004fe0| 65 6d 3a 20 25 64 22 20 | 70 72 6f 63 65 73 73 2d |em: %d" |process-|
|00004ff0| 6d 61 72 6b 20 67 65 74 | 2d 62 75 66 66 65 72 2d |mark get|-buffer-|
|00005000| 70 72 6f 63 65 73 73 20 | 72 69 6e 67 2d 72 65 66 |process |ring-ref|
|00005010| 20 63 6f 6d 69 6e 74 2d | 69 6e 70 75 74 2d 72 69 | comint-|input-ri|
|00005020| 6e 67 5d 20 34 20 22 5c | 0a 53 65 61 72 63 68 20 |ng] 4 "\|.Search |
|00005030| 62 61 63 6b 77 61 72 64 | 73 20 74 68 72 6f 75 67 |backward|s throug|
|00005040| 68 20 69 6e 70 75 74 20 | 68 69 73 74 6f 72 79 20 |h input |history |
|00005050| 66 6f 72 20 6d 61 74 63 | 68 20 66 6f 72 20 52 45 |for matc|h for RE|
|00005060| 47 45 58 50 2e 0a 28 50 | 72 65 76 69 6f 75 73 20 |GEXP..(P|revious |
|00005070| 68 69 73 74 6f 72 79 20 | 65 6c 65 6d 65 6e 74 73 |history |elements|
|00005080| 20 61 72 65 20 65 61 72 | 6c 69 65 72 20 63 6f 6d | are ear|lier com|
|00005090| 6d 61 6e 64 73 2e 29 0a | 57 69 74 68 20 70 72 65 |mands.).|With pre|
|000050a0| 66 69 78 20 61 72 67 75 | 6d 65 6e 74 20 4e 2c 20 |fix argu|ment N, |
|000050b0| 73 65 61 72 63 68 20 66 | 6f 72 20 4e 74 68 20 70 |search f|or Nth p|
|000050c0| 72 65 76 69 6f 75 73 20 | 6d 61 74 63 68 2e 0a 49 |revious |match..I|
|000050d0| 66 20 4e 20 69 73 20 6e | 65 67 61 74 69 76 65 2c |f N is n|egative,|
|000050e0| 20 66 69 6e 64 20 74 68 | 65 20 6e 65 78 74 20 6f | find th|e next o|
|000050f0| 72 20 4e 74 68 20 6e 65 | 78 74 20 6d 61 74 63 68 |r Nth ne|xt match|
|00005100| 2e 22 20 28 63 6f 6d 69 | 6e 74 2d 72 65 67 65 78 |." (comi|nt-regex|
|00005110| 70 2d 61 72 67 20 22 50 | 72 65 76 69 6f 75 73 20 |p-arg "P|revious |
|00005120| 69 6e 70 75 74 20 6d 61 | 74 63 68 69 6e 67 20 28 |input ma|tching (|
|00005130| 72 65 67 65 78 70 29 3a | 20 22 29 5d 29 0a 28 66 |regexp):| ")]).(f|
|00005140| 73 65 74 20 27 63 6f 6d | 69 6e 74 2d 6e 65 78 74 |set 'com|int-next|
|00005150| 2d 6d 61 74 63 68 69 6e | 67 2d 69 6e 70 75 74 20 |-matchin|g-input |
|00005160| 23 5b 28 72 65 67 65 78 | 70 20 61 72 67 29 20 22 |#[(regex|p arg) "|
|00005170| c0 09 5c 6e 5b 5c 22 87 | 22 20 5b 63 6f 6d 69 6e |..\n[\".|" [comin|
|00005180| 74 2d 70 72 65 76 69 6f | 75 73 2d 6d 61 74 63 68 |t-previo|us-match|
|00005190| 69 6e 67 2d 69 6e 70 75 | 74 20 72 65 67 65 78 70 |ing-inpu|t regexp|
|000051a0| 20 61 72 67 5d 20 33 20 | 22 5c 0a 53 65 61 72 63 | arg] 3 |"\.Searc|
|000051b0| 68 20 66 6f 72 77 61 72 | 64 73 20 74 68 72 6f 75 |h forwar|ds throu|
|000051c0| 67 68 20 69 6e 70 75 74 | 20 68 69 73 74 6f 72 79 |gh input| history|
|000051d0| 20 66 6f 72 20 6d 61 74 | 63 68 20 66 6f 72 20 52 | for mat|ch for R|
|000051e0| 45 47 45 58 50 2e 0a 28 | 4c 61 74 65 72 20 68 69 |EGEXP..(|Later hi|
|000051f0| 73 74 6f 72 79 20 65 6c | 65 6d 65 6e 74 73 20 61 |story el|ements a|
|00005200| 72 65 20 6d 6f 72 65 20 | 72 65 63 65 6e 74 20 63 |re more |recent c|
|00005210| 6f 6d 6d 61 6e 64 73 2e | 29 0a 57 69 74 68 20 70 |ommands.|).With p|
|00005220| 72 65 66 69 78 20 61 72 | 67 75 6d 65 6e 74 20 4e |refix ar|gument N|
|00005230| 2c 20 73 65 61 72 63 68 | 20 66 6f 72 20 4e 74 68 |, search| for Nth|
|00005240| 20 66 6f 6c 6c 6f 77 69 | 6e 67 20 6d 61 74 63 68 | followi|ng match|
|00005250| 2e 0a 49 66 20 4e 20 69 | 73 20 6e 65 67 61 74 69 |..If N i|s negati|
|00005260| 76 65 2c 20 66 69 6e 64 | 20 74 68 65 20 70 72 65 |ve, find| the pre|
|00005270| 76 69 6f 75 73 20 6f 72 | 20 4e 74 68 20 70 72 65 |vious or| Nth pre|
|00005280| 76 69 6f 75 73 20 6d 61 | 74 63 68 2e 22 20 28 63 |vious ma|tch." (c|
|00005290| 6f 6d 69 6e 74 2d 72 65 | 67 65 78 70 2d 61 72 67 |omint-re|gexp-arg|
|000052a0| 20 22 4e 65 78 74 20 69 | 6e 70 75 74 20 6d 61 74 | "Next i|nput mat|
|000052b0| 63 68 69 6e 67 20 28 72 | 65 67 65 78 70 29 3a 20 |ching (r|egexp): |
|000052c0| 22 29 5d 29 0a 28 66 73 | 65 74 20 27 63 6f 6d 69 |")]).(fs|et 'comi|
|000052d0| 6e 74 2d 70 72 65 76 69 | 6f 75 73 2d 6d 61 74 63 |nt-previ|ous-matc|
|000052e0| 68 69 6e 67 2d 69 6e 70 | 75 74 2d 66 72 6f 6d 2d |hing-inp|ut-from-|
|000052f0| 69 6e 70 75 74 20 23 5b | 28 61 72 67 29 20 22 08 |input #[|(arg) ".|
|00005300| c1 3e ac 8b c2 c3 70 21 | 21 60 7b 14 c5 16 06 c7 |.>....p!|!`{.....|
|00005310| c8 c9 0c 21 50 0e 5c 6e | 5c 22 87 22 20 5b 6c 61 |...!P.\n|\"." [la|
|00005320| 73 74 2d 63 6f 6d 6d 61 | 6e 64 20 28 63 6f 6d 69 |st-comma|nd (comi|
|00005330| 6e 74 2d 70 72 65 76 69 | 6f 75 73 2d 6d 61 74 63 |nt-previ|ous-matc|
|00005340| 68 69 6e 67 2d 69 6e 70 | 75 74 2d 66 72 6f 6d 2d |hing-inp|ut-from-|
|00005350| 69 6e 70 75 74 20 63 6f | 6d 69 6e 74 2d 6e 65 78 |input co|mint-nex|
|00005360| 74 2d 6d 61 74 63 68 69 | 6e 67 2d 69 6e 70 75 74 |t-matchi|ng-input|
|00005370| 2d 66 72 6f 6d 2d 69 6e | 70 75 74 29 20 70 72 6f |-from-in|put) pro|
|00005380| 63 65 73 73 2d 6d 61 72 | 6b 20 67 65 74 2d 62 75 |cess-mar|k get-bu|
|00005390| 66 66 65 72 2d 70 72 6f | 63 65 73 73 20 63 6f 6d |ffer-pro|cess com|
|000053a0| 69 6e 74 2d 6d 61 74 63 | 68 69 6e 67 2d 69 6e 70 |int-matc|hing-inp|
|000053b0| 75 74 2d 66 72 6f 6d 2d | 69 6e 70 75 74 2d 73 74 |ut-from-|input-st|
|000053c0| 72 69 6e 67 20 6e 69 6c | 20 63 6f 6d 69 6e 74 2d |ring nil| comint-|
|000053d0| 69 6e 70 75 74 2d 72 69 | 6e 67 2d 69 6e 64 65 78 |input-ri|ng-index|
|000053e0| 20 63 6f 6d 69 6e 74 2d | 70 72 65 76 69 6f 75 73 | comint-|previous|
|000053f0| 2d 6d 61 74 63 68 69 6e | 67 2d 69 6e 70 75 74 20 |-matchin|g-input |
|00005400| 22 5e 22 20 72 65 67 65 | 78 70 2d 71 75 6f 74 65 |"^" rege|xp-quote|
|00005410| 20 61 72 67 5d 20 34 20 | 22 5c 0a 53 65 61 72 63 | arg] 4 |"\.Searc|
|00005420| 68 20 62 61 63 6b 77 61 | 72 64 73 20 74 68 72 6f |h backwa|rds thro|
|00005430| 75 67 68 20 69 6e 70 75 | 74 20 68 69 73 74 6f 72 |ugh inpu|t histor|
|00005440| 79 20 66 6f 72 20 6d 61 | 74 63 68 20 66 6f 72 20 |y for ma|tch for |
|00005450| 63 75 72 72 65 6e 74 20 | 69 6e 70 75 74 2e 0a 28 |current |input..(|
|00005460| 50 72 65 76 69 6f 75 73 | 20 68 69 73 74 6f 72 79 |Previous| history|
|00005470| 20 65 6c 65 6d 65 6e 74 | 73 20 61 72 65 20 65 61 | element|s are ea|
|00005480| 72 6c 69 65 72 20 63 6f | 6d 6d 61 6e 64 73 2e 29 |rlier co|mmands.)|
|00005490| 0a 57 69 74 68 20 70 72 | 65 66 69 78 20 61 72 67 |.With pr|efix arg|
|000054a0| 75 6d 65 6e 74 20 4e 2c | 20 73 65 61 72 63 68 20 |ument N,| search |
|000054b0| 66 6f 72 20 4e 74 68 20 | 70 72 65 76 69 6f 75 73 |for Nth |previous|
|000054c0| 20 6d 61 74 63 68 2e 0a | 49 66 20 4e 20 69 73 20 | match..|If N is |
|000054d0| 6e 65 67 61 74 69 76 65 | 2c 20 73 65 61 72 63 68 |negative|, search|
|000054e0| 20 66 6f 72 77 61 72 64 | 73 20 66 6f 72 20 74 68 | forward|s for th|
|000054f0| 65 20 2d 4e 74 68 20 66 | 6f 6c 6c 6f 77 69 6e 67 |e -Nth f|ollowing|
|00005500| 20 6d 61 74 63 68 2e 22 | 20 22 70 22 5d 29 0a 28 | match."| "p"]).(|
|00005510| 66 73 65 74 20 27 63 6f | 6d 69 6e 74 2d 6e 65 78 |fset 'co|mint-nex|
|00005520| 74 2d 6d 61 74 63 68 69 | 6e 67 2d 69 6e 70 75 74 |t-matchi|ng-input|
|00005530| 2d 66 72 6f 6d 2d 69 6e | 70 75 74 20 23 5b 28 61 |-from-in|put #[(a|
|00005540| 72 67 29 20 22 c0 09 5b | 21 87 22 20 5b 63 6f 6d |rg) "..[|!." [com|
|00005550| 69 6e 74 2d 70 72 65 76 | 69 6f 75 73 2d 6d 61 74 |int-prev|ious-mat|
|00005560| 63 68 69 6e 67 2d 69 6e | 70 75 74 2d 66 72 6f 6d |ching-in|put-from|
|00005570| 2d 69 6e 70 75 74 20 61 | 72 67 5d 20 32 20 22 5c |-input a|rg] 2 "\|
|00005580| 0a 53 65 61 72 63 68 20 | 66 6f 72 77 61 72 64 73 |.Search |forwards|
|00005590| 20 74 68 72 6f 75 67 68 | 20 69 6e 70 75 74 20 68 | through| input h|
|000055a0| 69 73 74 6f 72 79 20 66 | 6f 72 20 6d 61 74 63 68 |istory f|or match|
|000055b0| 20 66 6f 72 20 63 75 72 | 72 65 6e 74 20 69 6e 70 | for cur|rent inp|
|000055c0| 75 74 2e 0a 28 46 6f 6c | 6c 6f 77 69 6e 67 20 68 |ut..(Fol|lowing h|
|000055d0| 69 73 74 6f 72 79 20 65 | 6c 65 6d 65 6e 74 73 20 |istory e|lements |
|000055e0| 61 72 65 20 6d 6f 72 65 | 20 72 65 63 65 6e 74 20 |are more| recent |
|000055f0| 63 6f 6d 6d 61 6e 64 73 | 2e 29 0a 57 69 74 68 20 |commands|.).With |
|00005600| 70 72 65 66 69 78 20 61 | 72 67 75 6d 65 6e 74 20 |prefix a|rgument |
|00005610| 4e 2c 20 73 65 61 72 63 | 68 20 66 6f 72 20 4e 74 |N, searc|h for Nt|
|00005620| 68 20 66 6f 6c 6c 6f 77 | 69 6e 67 20 6d 61 74 63 |h follow|ing matc|
|00005630| 68 2e 0a 49 66 20 4e 20 | 69 73 20 6e 65 67 61 74 |h..If N |is negat|
|00005640| 69 76 65 2c 20 73 65 61 | 72 63 68 20 62 61 63 6b |ive, sea|rch back|
|00005650| 77 61 72 64 73 20 66 6f | 72 20 74 68 65 20 2d 4e |wards fo|r the -N|
|00005660| 74 68 20 70 72 65 76 69 | 6f 75 73 20 6d 61 74 63 |th previ|ous matc|
|00005670| 68 2e 22 20 22 70 22 5d | 29 0a 28 66 73 65 74 20 |h." "p"]|).(fset |
|00005680| 27 63 6f 6d 69 6e 74 2d | 72 65 70 6c 61 63 65 2d |'comint-|replace-|
|00005690| 62 79 2d 65 78 70 61 6e | 64 65 64 2d 68 69 73 74 |by-expan|ded-hist|
|000056a0| 6f 72 79 20 23 5b 28 26 | 6f 70 74 69 6f 6e 61 6c |ory #[(&|optional|
|000056b0| 20 73 69 6c 65 6e 74 29 | 20 22 08 ad a6 c1 c2 0b | silent)| "......|
|000056c0| 20 5c 22 ad 9f 8a c4 79 | 88 c5 0e 06 21 29 ad 94 | \"....y|....!)..|
|000056d0| c7 20 1e 08 c9 ca 21 88 | cb 0e 0c 21 88 0e 08 c7 |. ....!.|...!....|
|000056e0| 20 55 29 3f 87 22 20 5b | 63 6f 6d 69 6e 74 2d 69 | U)?." [|comint-i|
|000056f0| 6e 70 75 74 2d 61 75 74 | 6f 65 78 70 61 6e 64 20 |nput-aut|oexpand |
|00005700| 73 74 72 69 6e 67 2d 6d | 61 74 63 68 20 22 5b 21 |string-m|atch "[!|
|00005710| 5e 5d 22 20 63 6f 6d 69 | 6e 74 2d 67 65 74 2d 6f |^]" comi|nt-get-o|
|00005720| 6c 64 2d 69 6e 70 75 74 | 20 30 20 6c 6f 6f 6b 69 |ld-input| 0 looki|
|00005730| 6e 67 2d 61 74 20 63 6f | 6d 69 6e 74 2d 70 72 6f |ng-at co|mint-pro|
|00005740| 6d 70 74 2d 72 65 67 65 | 78 70 20 62 75 66 66 65 |mpt-rege|xp buffe|
|00005750| 72 2d 6d 6f 64 69 66 69 | 65 64 2d 74 69 63 6b 20 |r-modifi|ed-tick |
|00005760| 70 72 65 76 69 6f 75 73 | 2d 6d 6f 64 69 66 69 65 |previous|-modifie|
|00005770| 64 2d 74 69 63 6b 20 6d | 65 73 73 61 67 65 20 22 |d-tick m|essage "|
|00005780| 45 78 70 61 6e 64 69 6e | 67 20 68 69 73 74 6f 72 |Expandin|g histor|
|00005790| 79 20 72 65 66 65 72 65 | 6e 63 65 73 2e 2e 2e 22 |y refere|nces..."|
|000057a0| 20 63 6f 6d 69 6e 74 2d | 72 65 70 6c 61 63 65 2d | comint-|replace-|
|000057b0| 62 79 2d 65 78 70 61 6e | 64 65 64 2d 68 69 73 74 |by-expan|ded-hist|
|000057c0| 6f 72 79 2d 62 65 66 6f | 72 65 2d 70 6f 69 6e 74 |ory-befo|re-point|
|000057d0| 20 73 69 6c 65 6e 74 5d | 20 33 20 22 5c 0a 45 78 | silent]| 3 "\.Ex|
|000057e0| 70 61 6e 64 20 69 6e 70 | 75 74 20 63 6f 6d 6d 61 |pand inp|ut comma|
|000057f0| 6e 64 20 68 69 73 74 6f | 72 79 20 72 65 66 65 72 |nd histo|ry refer|
|00005800| 65 6e 63 65 73 20 62 65 | 66 6f 72 65 20 70 6f 69 |ences be|fore poi|
|00005810| 6e 74 2e 0a 45 78 70 61 | 6e 73 69 6f 6e 20 69 73 |nt..Expa|nsion is|
|00005820| 20 64 65 70 65 6e 64 65 | 6e 74 20 6f 6e 20 74 68 | depende|nt on th|
|00005830| 65 20 76 61 6c 75 65 20 | 6f 66 20 60 63 6f 6d 69 |e value |of `comi|
|00005840| 6e 74 2d 69 6e 70 75 74 | 2d 61 75 74 6f 65 78 70 |nt-input|-autoexp|
|00005850| 61 6e 64 27 2e 0a 0a 54 | 68 69 73 20 66 75 6e 63 |and'...T|his func|
|00005860| 74 69 6f 6e 20 64 65 70 | 65 6e 64 73 20 6f 6e 20 |tion dep|ends on |
|00005870| 74 68 65 20 62 75 66 66 | 65 72 27 73 20 69 64 65 |the buff|er's ide|
|00005880| 61 20 6f 66 20 74 68 65 | 20 69 6e 70 75 74 20 68 |a of the| input h|
|00005890| 69 73 74 6f 72 79 2c 20 | 77 68 69 63 68 20 6d 61 |istory, |which ma|
|000058a0| 79 20 6e 6f 74 0a 6d 61 | 74 63 68 20 74 68 65 20 |y not.ma|tch the |
|000058b0| 63 6f 6d 6d 61 6e 64 20 | 69 6e 74 65 72 70 72 65 |command |interpre|
|000058c0| 74 65 72 27 73 20 69 64 | 65 61 2c 20 61 73 73 75 |ter's id|ea, assu|
|000058d0| 6d 69 6e 67 20 69 74 20 | 68 61 73 20 6f 6e 65 2e |ming it |has one.|
|000058e0| 0a 0a 41 73 73 75 6d 65 | 73 20 68 69 73 74 6f 72 |..Assume|s histor|
|000058f0| 79 20 73 79 6e 74 61 78 | 20 69 73 20 6c 69 6b 65 |y syntax| is like|
|00005900| 20 74 79 70 69 63 61 6c | 20 55 6e 2a 78 20 73 68 | typical| Un*x sh|
|00005910| 65 6c 6c 73 27 2e 20 20 | 48 6f 77 65 76 65 72 2c |ells'. |However,|
|00005920| 20 73 69 6e 63 65 20 65 | 6d 61 63 73 0a 63 61 6e | since e|macs.can|
|00005930| 6e 6f 74 20 6b 6e 6f 77 | 20 74 68 65 20 69 6e 74 |not know| the int|
|00005940| 65 72 70 72 65 74 65 72 | 27 73 20 69 64 65 61 20 |erpreter|'s idea |
|00005950| 6f 66 20 69 6e 70 75 74 | 20 6c 69 6e 65 20 6e 75 |of input| line nu|
|00005960| 6d 62 65 72 73 2c 20 61 | 73 73 75 6d 69 6e 67 20 |mbers, a|ssuming |
|00005970| 69 74 20 68 61 73 20 6f | 6e 65 2c 0a 69 74 20 63 |it has o|ne,.it c|
|00005980| 61 6e 6e 6f 74 20 65 78 | 70 61 6e 64 20 61 62 73 |annot ex|pand abs|
|00005990| 6f 6c 75 74 65 20 69 6e | 70 75 74 20 6c 69 6e 65 |olute in|put line|
|000059a0| 20 6e 75 6d 62 65 72 20 | 72 65 66 65 72 65 6e 63 | number |referenc|
|000059b0| 65 73 2e 0a 0a 49 66 20 | 74 68 65 20 6f 70 74 69 |es...If |the opti|
|000059c0| 6f 6e 61 6c 20 61 72 67 | 75 6d 65 6e 74 20 53 49 |onal arg|ument SI|
|000059d0| 4c 45 4e 54 20 69 73 20 | 6e 6f 6e 2d 6e 69 6c 2c |LENT is |non-nil,|
|000059e0| 20 6e 65 76 65 72 20 63 | 6f 6d 70 6c 61 69 6e 0a | never c|omplain.|
|000059f0| 65 76 65 6e 20 69 66 20 | 68 69 73 74 6f 72 79 20 |even if |history |
|00005a00| 72 65 66 65 72 65 6e 63 | 65 20 73 65 65 6d 73 20 |referenc|e seems |
|00005a10| 65 72 72 6f 6e 65 6f 75 | 73 2e 0a 0a 53 65 65 20 |erroneou|s...See |
|00005a20| 60 63 6f 6d 69 6e 74 2d | 6d 61 67 69 63 2d 73 70 |`comint-|magic-sp|
|00005a30| 61 63 65 27 20 61 6e 64 | 20 60 63 6f 6d 69 6e 74 |ace' and| `comint|
|00005a40| 2d 72 65 70 6c 61 63 65 | 2d 62 79 2d 65 78 70 61 |-replace|-by-expa|
|00005a50| 6e 64 65 64 2d 68 69 73 | 74 6f 72 79 2d 62 65 66 |nded-his|tory-bef|
|00005a60| 6f 72 65 2d 70 6f 69 6e | 74 27 2e 0a 0a 52 65 74 |ore-poin|t'...Ret|
|00005a70| 75 72 6e 73 20 74 20 69 | 66 20 73 75 63 63 65 73 |urns t i|f succes|
|00005a80| 73 66 75 6c 2e 22 20 6e | 69 6c 5d 29 0a 28 66 73 |sful." n|il]).(fs|
|00005a90| 65 74 20 27 63 6f 6d 69 | 6e 74 2d 72 65 70 6c 61 |et 'comi|nt-repla|
|00005aa0| 63 65 2d 62 79 2d 65 78 | 70 61 6e 64 65 64 2d 68 |ce-by-ex|panded-h|
|00005ab0| 69 73 74 6f 72 79 2d 62 | 65 66 6f 72 65 2d 70 6f |istory-b|efore-po|
|00005ac0| 69 6e 74 20 23 5b 28 73 | 69 6c 65 6e 74 29 20 22 |int #[(s|ilent) "|
|00005ad0| 8a 8a c0 7f 88 60 29 60 | 5a c1 c0 21 88 60 1a 1b |.....`)`|Z..!.`..|
|00005ae0| c4 c5 8a c0 7f 88 60 0b | 5a 29 c6 23 85 6f 01 c0 |......`.|Z).#.o..|
|00005af0| 16 07 c8 94 62 88 68 c9 | 55 ac 86 ca 5c 6e 60 5c |....b.h.|U...\n`\|
|00005b00| 22 ab 86 c8 95 62 88 aa | 59 cb cc 21 ab 8a c8 95 |"....b..|Y..!....|
|00005b10| 62 88 cd ce 21 88 aa 4a | cb cf 21 ab b9 d0 d1 94 |b...!..J|..!.....|
|00005b20| d1 95 7b 21 53 89 1e 12 | d3 0e 14 21 58 ab 9c d5 |..{!S...|...!X...|
|00005b30| d6 d7 0e 12 21 d8 94 d8 | 95 23 c6 89 23 88 0e 12 |....!...|.#..#...|
|00005b40| 16 07 cd d9 0e 12 54 5c | 22 88 aa 88 c8 95 62 88 |......T\|".....b.|
|00005b50| cd da 21 88 29 aa 0c cb | db 21 ac 85 cb dc 21 ab |..!.)...|.!....!.|
|00005b60| 95 d5 d6 d7 c8 21 d1 94 | d1 95 23 c6 89 23 88 cd |.....!..|..#..#..|
|00005b70| dd 21 88 82 10 00 cb de | 21 ab f9 d1 94 1e 1f d1 |.!......|!.......|
|00005b80| 95 1e 20 d8 94 1e 21 d8 | 95 1e 5c 22 0e 21 ae 82 |.. ...!.|..\".!..|
|00005b90| 0e 1f 0e 5c 22 ae 82 0e | 20 7b 1e 23 e4 20 1e 25 |...\"...| {.#. .%|
|00005ba0| e6 8e cb e7 21 2a ab 83 | e8 aa 81 e9 1e 2a e4 20 |....!*..|.....*. |
|00005bb0| 1e 25 eb 8e ec 0e 2a ed | 0e 23 21 50 d1 5c 22 2a |.%....*.|.#!P.\"*|
|00005bc0| 89 1e 2e ac 91 c8 95 62 | 88 0e 2f ac a5 cd f0 21 |.......b|../....!|
|00005bd0| 88 f1 20 88 aa 9c 0e 2e | 16 07 d5 d6 f2 0e 14 0e |.. .....|........|
|00005be0| 2e 5c 22 f3 94 f3 95 23 | c6 89 23 88 cd d9 0e 2e |.\"....#|..#.....|
|00005bf0| 54 5c 22 88 2e 07 82 10 | 00 cb f4 21 ab c2 d1 94 |T\".....|...!....|
|00005c00| d1 95 7b d8 94 d8 95 7b | c0 1e 2e 1e 35 1e 36 d5 |..{....{|....5.6.|
|00005c10| d7 c8 21 c6 89 23 88 60 | 16 2e c8 94 62 88 f7 0e |..!..#.`|....b...|
|00005c20| 36 0e 2e c6 23 ac 8a 0e | 2f ac 91 f8 f0 21 88 aa |6...#...|/....!..|
|00005c30| 8b d5 0e 35 c6 89 23 88 | cd f9 21 88 2b 82 10 00 |...5..#.|..!.+...|
|00005c40| c8 95 62 88 82 10 00 2b | 87 22 20 5b 6e 69 6c 20 |..b....+|." [nil |
|00005c50| 63 6f 6d 69 6e 74 2d 62 | 6f 6c 20 73 74 61 72 74 |comint-b|ol start|
|00005c60| 20 74 6f 65 6e 64 20 72 | 65 2d 73 65 61 72 63 68 | toend r|e-search|
|00005c70| 2d 66 6f 72 77 61 72 64 | 20 22 5b 21 5e 5d 22 20 |-forward| "[!^]" |
|00005c80| 74 20 63 6f 6d 69 6e 74 | 2d 69 6e 70 75 74 2d 72 |t comint|-input-r|
|00005c90| 69 6e 67 2d 69 6e 64 65 | 78 20 30 20 39 32 20 63 |ing-inde|x 0 92 c|
|00005ca0| 6f 6d 69 6e 74 2d 77 69 | 74 68 69 6e 2d 71 75 6f |omint-wi|thin-quo|
|00005cb0| 74 65 73 20 6c 6f 6f 6b | 69 6e 67 2d 61 74 20 22 |tes look|ing-at "|
|00005cc0| 21 5b 30 2d 39 5d 2b 5c | 5c 28 24 5c 5c 7c 5b 5e |![0-9]+\|\($\\|[^|
|00005cd0| 2d 5d 5c 5c 29 22 20 6d | 65 73 73 61 67 65 20 22 |-]\\)" m|essage "|
|00005ce0| 41 62 73 6f 6c 75 74 65 | 20 72 65 66 65 72 65 6e |Absolute| referen|
|00005cf0| 63 65 20 63 61 6e 6e 6f | 74 20 62 65 20 65 78 70 |ce canno|t be exp|
|00005d00| 61 6e 64 65 64 22 20 22 | 21 2d 5c 5c 28 5b 30 2d |anded" "|!-\\([0-|
|00005d10| 39 5d 2b 5c 5c 29 5c 5c | 28 3a 3f 5b 30 2d 39 5e |9]+\\)\\|(:?[0-9^|
|00005d20| 24 2a 2d 5d 2b 5c 5c 29 | 3f 22 20 73 74 72 69 6e |$*-]+\\)|?" strin|
|00005d30| 67 2d 74 6f 2d 6e 75 6d | 62 65 72 20 31 20 6e 75 |g-to-num|ber 1 nu|
|00005d40| 6d 62 65 72 20 72 69 6e | 67 2d 6c 65 6e 67 74 68 |mber rin|g-length|
|00005d50| 20 63 6f 6d 69 6e 74 2d | 69 6e 70 75 74 2d 72 69 | comint-|input-ri|
|00005d60| 6e 67 20 72 65 70 6c 61 | 63 65 2d 6d 61 74 63 68 |ng repla|ce-match|
|00005d70| 20 63 6f 6d 69 6e 74 2d | 61 72 67 73 20 63 6f 6d | comint-|args com|
|00005d80| 69 6e 74 2d 70 72 65 76 | 69 6f 75 73 2d 69 6e 70 |int-prev|ious-inp|
|00005d90| 75 74 2d 73 74 72 69 6e | 67 20 32 20 22 48 69 73 |ut-strin|g 2 "His|
|00005da0| 74 6f 72 79 20 69 74 65 | 6d 3a 20 25 64 22 20 22 |tory ite|m: %d" "|
|00005db0| 52 65 6c 61 74 69 76 65 | 20 72 65 66 65 72 65 6e |Relative| referen|
|00005dc0| 63 65 20 65 78 63 65 65 | 64 73 20 69 6e 70 75 74 |ce excee|ds input|
|00005dd0| 20 68 69 73 74 6f 72 79 | 20 73 69 7a 65 22 20 22 | history| size" "|
|00005de0| 21 21 3f 3a 3f 5c 5c 28 | 5b 30 2d 39 5e 24 2a 2d |!!?:?\\(|[0-9^$*-|
|00005df0| 5d 2b 5c 5c 29 22 20 22 | 21 21 22 20 22 48 69 73 |]+\\)" "|!!" "His|
|00005e00| 74 6f 72 79 20 69 74 65 | 6d 3a 20 70 72 65 76 69 |tory ite|m: previ|
|00005e10| 6f 75 73 22 20 22 21 5c | 5c 3f 3f 5c 5c 28 7b 5c |ous" "!\|\??\\({\|
|00005e20| 5c 28 2e 2b 5c 5c 29 7d | 5c 5c 7c 5c 5c 28 5c 5c |\(.+\\)}|\\|\\(\\|
|00005e30| 73 77 2b 5c 5c 29 5c 5c | 29 5c 5c 28 3a 3f 5b 30 |sw+\\)\\|)\\(:?[0|
|00005e40| 2d 39 5e 24 2a 2d 5d 2b | 5c 5c 29 3f 22 20 6d 62 |-9^$*-]+|\\)?" mb|
|00005e50| 31 20 6d 65 31 20 6d 62 | 32 20 6d 65 32 20 65 78 |1 me1 mb|2 me2 ex|
|00005e60| 70 20 6d 61 74 63 68 2d | 64 61 74 61 20 5f 6d 61 |p match-|data _ma|
|00005e70| 74 63 68 5f 64 61 74 61 | 5f 20 28 28 73 74 6f 72 |tch_data|_ ((stor|
|00005e80| 65 2d 6d 61 74 63 68 2d | 64 61 74 61 20 5f 6d 61 |e-match-|data _ma|
|00005e90| 74 63 68 5f 64 61 74 61 | 5f 29 29 20 22 21 5c 5c |tch_data|_)) "!\\|
|00005ea0| 3f 22 20 22 22 20 22 5e | 22 20 70 72 65 66 20 28 |?" "" "^|" pref (|
|00005eb0| 28 73 74 6f 72 65 2d 6d | 61 74 63 68 2d 64 61 74 |(store-m|atch-dat|
|00005ec0| 61 20 5f 6d 61 74 63 68 | 5f 64 61 74 61 5f 29 29 |a _match|_data_))|
|00005ed0| 20 63 6f 6d 69 6e 74 2d | 70 72 65 76 69 6f 75 73 | comint-|previous|
|00005ee0| 2d 6d 61 74 63 68 69 6e | 67 2d 69 6e 70 75 74 2d |-matchin|g-input-|
|00005ef0| 73 74 72 69 6e 67 2d 70 | 6f 73 69 74 69 6f 6e 20 |string-p|osition |
|00005f00| 72 65 67 65 78 70 2d 71 | 75 6f 74 65 20 70 6f 73 |regexp-q|uote pos|
|00005f10| 20 73 69 6c 65 6e 74 20 | 22 4e 6f 74 20 66 6f 75 | silent |"Not fou|
|00005f20| 6e 64 22 20 64 69 6e 67 | 20 72 69 6e 67 2d 72 65 |nd" ding| ring-re|
|00005f30| 66 20 34 20 22 5c 5c 5e | 5c 5c 28 5b 5e 5e 5d 2b |f 4 "\\^|\\([^^]+|
|00005f40| 5c 5c 29 5c 5c 5e 3f 5c | 5c 28 5b 5e 5e 5d 2a 5c |\\)\\^?\|\([^^]*\|
|00005f50| 5c 29 5c 5c 5e 3f 22 20 | 6e 65 77 20 6f 6c 64 20 |\)\\^?" |new old |
|00005f60| 73 65 61 72 63 68 2d 66 | 6f 72 77 61 72 64 20 65 |search-f|orward e|
|00005f70| 72 72 6f 72 20 22 48 69 | 73 74 6f 72 79 20 69 74 |rror "Hi|story it|
|00005f80| 65 6d 3a 20 73 75 62 73 | 74 69 74 75 74 65 64 22 |em: subs|tituted"|
|00005f90| 5d 20 36 20 22 5c 0a 45 | 78 70 61 6e 64 20 64 69 |] 6 "\.E|xpand di|
|00005fa0| 72 65 63 74 6f 72 79 20 | 73 74 61 63 6b 20 72 65 |rectory |stack re|
|00005fb0| 66 65 72 65 6e 63 65 20 | 62 65 66 6f 72 65 20 70 |ference |before p|
|00005fc0| 6f 69 6e 74 2e 0a 53 65 | 65 20 60 63 6f 6d 69 6e |oint..Se|e `comin|
|00005fd0| 74 2d 72 65 70 6c 61 63 | 65 2d 62 79 2d 65 78 70 |t-replac|e-by-exp|
|00005fe0| 61 6e 64 65 64 2d 68 69 | 73 74 6f 72 79 27 2e 20 |anded-hi|story'. |
|00005ff0| 20 52 65 74 75 72 6e 73 | 20 74 20 69 66 20 73 75 | Returns| t if su|
|00006000| 63 63 65 73 73 66 75 6c | 2e 22 5d 29 0a 28 66 73 |ccessful|."]).(fs|
|00006010| 65 74 20 27 63 6f 6d 69 | 6e 74 2d 6d 61 67 69 63 |et 'comi|nt-magic|
|00006020| 2d 73 70 61 63 65 20 23 | 5b 28 61 72 67 29 20 22 |-space #|[(arg) "|
|00006030| c0 20 88 c1 5c 6e 21 87 | 22 20 5b 63 6f 6d 69 6e |. ..\n!.|" [comin|
|00006040| 74 2d 72 65 70 6c 61 63 | 65 2d 62 79 2d 65 78 70 |t-replac|e-by-exp|
|00006050| 61 6e 64 65 64 2d 68 69 | 73 74 6f 72 79 20 73 65 |anded-hi|story se|
|00006060| 6c 66 2d 69 6e 73 65 72 | 74 2d 63 6f 6d 6d 61 6e |lf-inser|t-comman|
|00006070| 64 20 61 72 67 5d 20 32 | 20 22 5c 0a 45 78 70 61 |d arg] 2| "\.Expa|
|00006080| 6e 64 20 69 6e 70 75 74 | 20 68 69 73 74 6f 72 79 |nd input| history|
|00006090| 20 72 65 66 65 72 65 6e | 63 65 73 20 62 65 66 6f | referen|ces befo|
|000060a0| 72 65 20 70 6f 69 6e 74 | 20 61 6e 64 20 69 6e 73 |re point| and ins|
|000060b0| 65 72 74 20 41 52 47 20 | 73 70 61 63 65 73 2e 0a |ert ARG |spaces..|
|000060c0| 41 20 75 73 65 66 75 6c | 20 63 6f 6d 6d 61 6e 64 |A useful| command|
|000060d0| 20 74 6f 20 62 69 6e 64 | 20 74 6f 20 53 50 43 2e | to bind| to SPC.|
|000060e0| 20 20 53 65 65 20 60 63 | 6f 6d 69 6e 74 2d 72 65 | See `c|omint-re|
|000060f0| 70 6c 61 63 65 2d 62 79 | 2d 65 78 70 61 6e 64 65 |place-by|-expande|
|00006100| 64 2d 68 69 73 74 6f 72 | 79 27 2e 22 20 22 70 22 |d-histor|y'." "p"|
|00006110| 5d 29 0a 28 66 73 65 74 | 20 27 63 6f 6d 69 6e 74 |]).(fset| 'comint|
|00006120| 2d 77 69 74 68 69 6e 2d | 71 75 6f 74 65 73 20 23 |-within-|quotes #|
|00006130| 5b 28 62 65 67 20 65 6e | 64 29 20 22 c0 c1 5c 6e |[(beg en|d) "..\n|
|00006140| 0b 23 c0 c4 5c 6e 0b 23 | 1d 1e 06 c7 0e 06 c8 5c |.#..\n.#|.......\|
|00006150| 22 c9 55 ae 86 c7 0d c8 | 5c 22 c9 55 2a 87 22 20 |".U.....|\".U*." |
|00006160| 5b 63 6f 6d 69 6e 74 2d | 68 6f 77 2d 6d 61 6e 79 |[comint-|how-many|
|00006170| 2d 72 65 67 69 6f 6e 20 | 22 5c 5c 28 5e 5c 5c 7c |-region |"\\(^\\||
|00006180| 5b 5e 5c 5c 5c 5c 5d 5c | 5c 29 27 22 20 62 65 67 |[^\\\\]\|\)'" beg|
|00006190| 20 65 6e 64 20 22 5c 5c | 28 5e 5c 5c 7c 5b 5e 5c | end "\\|(^\\|[^\|
|000061a0| 5c 5c 5c 5d 5c 5c 29 5c | 22 22 20 63 6f 75 6e 74 |\\\]\\)\|"" count|
|000061b0| 64 71 20 63 6f 75 6e 74 | 73 71 20 6d 6f 64 20 32 |dq count|sq mod 2|
|000061c0| 20 31 5d 20 35 20 22 5c | 0a 52 65 74 75 72 6e 20 | 1] 5 "\|.Return |
|000061d0| 74 20 69 66 20 74 68 65 | 20 6e 75 6d 62 65 72 20 |t if the| number |
|000061e0| 6f 66 20 71 75 6f 74 65 | 73 20 62 65 74 77 65 65 |of quote|s betwee|
|000061f0| 6e 20 42 45 47 20 61 6e | 64 20 45 4e 44 20 69 73 |n BEG an|d END is|
|00006200| 20 6f 64 64 2e 0a 51 75 | 6f 74 65 73 20 61 72 65 | odd..Qu|otes are|
|00006210| 20 73 69 6e 67 6c 65 20 | 61 6e 64 20 64 6f 75 62 | single |and doub|
|00006220| 6c 65 2e 22 5d 29 0a 28 | 66 73 65 74 20 27 63 6f |le."]).(|fset 'co|
|00006230| 6d 69 6e 74 2d 68 6f 77 | 2d 6d 61 6e 79 2d 72 65 |mint-how|-many-re|
|00006240| 67 69 6f 6e 20 23 5b 28 | 72 65 67 65 78 70 20 62 |gion #[(|regexp b|
|00006250| 65 67 20 65 6e 64 29 20 | 22 c0 19 8a c2 20 1b c4 |eg end) |".... ..|
|00006260| 8e 0d 62 88 c6 0e 07 0e | 08 c9 23 ab 85 09 54 11 |..b.....|..#...T.|
|00006270| aa 72 2b 09 29 87 22 20 | 5b 30 20 63 6f 75 6e 74 |.r+.)." |[0 count|
|00006280| 20 6d 61 74 63 68 2d 64 | 61 74 61 20 5f 6d 61 74 | match-d|ata _mat|
|00006290| 63 68 5f 64 61 74 61 5f | 20 28 28 73 74 6f 72 65 |ch_data_| ((store|
|000062a0| 2d 6d 61 74 63 68 2d 64 | 61 74 61 20 5f 6d 61 74 |-match-d|ata _mat|
|000062b0| 63 68 5f 64 61 74 61 5f | 29 29 20 62 65 67 20 72 |ch_data_|)) beg r|
|000062c0| 65 2d 73 65 61 72 63 68 | 2d 66 6f 72 77 61 72 64 |e-search|-forward|
|000062d0| 20 72 65 67 65 78 70 20 | 65 6e 64 20 74 5d 20 34 | regexp |end t] 4|
|000062e0| 20 22 5c 0a 52 65 74 75 | 72 6e 20 6e 75 6d 62 65 | "\.Retu|rn numbe|
|000062f0| 72 20 6f 66 20 6d 61 74 | 63 68 65 73 20 66 6f 72 |r of mat|ches for|
|00006300| 20 52 45 47 45 58 50 20 | 66 72 6f 6d 20 42 45 47 | REGEXP |from BEG|
|00006310| 20 74 6f 20 45 4e 44 2e | 22 5d 29 0a 28 62 79 74 | to END.|"]).(byt|
|00006320| 65 2d 63 6f 64 65 20 22 | c0 c1 4d 88 c2 c3 4d 87 |e-code "|..M...M.|
|00006330| 22 20 5b 63 6f 6d 69 6e | 74 2d 61 72 67 73 20 23 |" [comin|t-args #|
|00006340| 5b 28 73 74 72 69 6e 67 | 20 62 65 67 69 6e 20 65 |[(string| begin e|
|00006350| 6e 64 29 20 22 c0 20 19 | c2 8e 0b ac 87 c4 0d c6 |nd) ". .|........|
|00006360| c7 23 aa da 0b 66 c8 3d | ab 84 0b 54 aa 81 0b 0e |.#...f.=|...T....|
|00006370| 09 7b 1e 5c 6e cb cc 0e | 5c 6e 5c 22 ab 83 cd aa |.{.\n...|\n\"....|
|00006380| 97 cb ce 0e 5c 6e 5c 22 | ab 83 c6 aa 8d 0e 5c 6e |....\n\"|......\n|
|00006390| cf 98 ab 83 c7 aa 84 d0 | 0e 5c 6e 21 1e 11 cb d2 |........|.\n!....|
|000063a0| 0e 5c 6e 5c 22 ab 83 c7 | aa 93 cb d3 0e 5c 6e 5c |.\n\"...|.....\n\|
|000063b0| 22 ab 8a d0 0e 5c 6e c6 | 95 c7 4f 21 aa 82 0e 11 |"....\n.|..O!....|
|000063c0| 1e 14 c4 0d 0e 11 0e 14 | 23 2b 2a 87 22 20 5b 6d |........|#+*." [m|
|000063d0| 61 74 63 68 2d 64 61 74 | 61 20 5f 6d 61 74 63 68 |atch-dat|a _match|
|000063e0| 5f 64 61 74 61 5f 20 28 | 28 73 74 6f 72 65 2d 6d |_data_ (|(store-m|
|000063f0| 61 74 63 68 2d 64 61 74 | 61 20 5f 6d 61 74 63 68 |atch-dat|a _match|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.