home *** CD-ROM | disk | FTP | other *** search
/ BCI NET 2 / BCI NET 2.iso / archives / programming / source / a2.0bemacs-src.lha / Emacs-19.25 / lisp / comint.elc < prev    next >
Emacs Compiled Lisp  |  1994-05-30  |  47.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.

ConfidenceProgramDetectionMatch TypeSupport
1% dexvert Emacs Compiled Lisp (other/emacsCompiledLisp) magic Unsupported
100% file Emacs/XEmacs v19 byte-compiled Lisp data default
99% file data default
100% TrID Emacs/XEmacs byte-compiled Lisp (generic) default



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 72 6d 73 40 6d 6f 6c |piled by| rms@mol|
|00000020| 65 2e 67 6e 75 2e 61 69 | 2e 6d 69 74 2e 65 64 75 |e.gnu.ai|.mit.edu|
|00000030| 20 6f 6e 20 4d 6f 6e 20 | 4d 61 79 20 33 30 20 30 | on Mon |May 30 0|
|00000040| 38 3a 32 31 3a 34 32 20 | 31 39 39 34 0a 3b 3b 3b |8:21:42 |1994.;;;|
|00000050| 20 66 72 6f 6d 20 66 69 | 6c 65 20 2f 68 6f 6d 65 | from fi|le /home|
|00000060| 2f 66 73 66 2f 72 6d 73 | 2f 65 31 39 2f 6c 69 73 |/fsf/rms|/e19/lis|
|00000070| 70 2f 63 6f 6d 69 6e 74 | 2e 65 6c 0a 3b 3b 3b 20 |p/comint|.el.;;; |
|00000080| 65 6d 61 63 73 20 76 65 | 72 73 69 6f 6e 20 31 39 |emacs ve|rsion 19|
|00000090| 2e 32 33 2e 39 30 2e 31 | 2e 0a 3b 3b 3b 20 62 79 |.23.90.1|..;;; by|
|000000a0| 74 65 63 6f 6d 70 20 76 | 65 72 73 69 6f 6e 20 46 |tecomp v|ersion F|
|000000b0| 53 46 20 32 2e 31 30 0a | 3b 3b 3b 20 6f 70 74 69 |SF 2.10.|;;; opti|
|000000c0| 6d 69 7a 61 74 69 6f 6e | 20 69 73 20 6f 6e 2e 0a |mization| is on..|
|000000d0| 3b 3b 3b 20 74 68 69 73 | 20 66 69 6c 65 20 75 73 |;;; this| file us|
|000000e0| 65 73 20 6f 70 63 6f 64 | 65 73 20 77 68 69 63 68 |es opcod|es which|
|000000f0| 20 64 6f 20 6e 6f 74 20 | 65 78 69 73 74 20 69 6e | do not |exist in|
|00000100| 20 45 6d 61 63 73 20 31 | 38 2e 0a 0a 28 69 66 20 | Emacs 1|8...(if |
|00000110| 28 61 6e 64 20 28 62 6f | 75 6e 64 70 20 27 65 6d |(and (bo|undp 'em|
|00000120| 61 63 73 2d 76 65 72 73 | 69 6f 6e 29 0a 09 20 28 |acs-vers|ion).. (|
|00000130| 6f 72 20 28 61 6e 64 20 | 28 62 6f 75 6e 64 70 20 |or (and |(boundp |
|00000140| 27 65 70 6f 63 68 3a 3a | 76 65 72 73 69 6f 6e 29 |'epoch::|version)|
|00000150| 20 65 70 6f 63 68 3a 3a | 76 65 72 73 69 6f 6e 29 | epoch::|version)|
|00000160| 0a 09 20 20 20 20 20 28 | 73 74 72 69 6e 67 2d 6c |.. (|string-l|
|00000170| 65 73 73 70 20 65 6d 61 | 63 73 2d 76 65 72 73 69 |essp ema|cs-versi|
|00000180| 6f 6e 20 22 31 39 22 29 | 29 29 0a 20 20 20 20 28 |on "19")|)). (|
|00000190| 65 72 72 6f 72 20 22 60 | 2f 68 6f 6d 65 2f 66 73 |error "`|/home/fs|
|000001a0| 66 2f 72 6d 73 2f 65 31 | 39 2f 6c 69 73 70 2f 63 |f/rms/e1|9/lisp/c|
|000001b0| 6f 6d 69 6e 74 2e 65 6c | 27 20 77 61 73 20 63 6f |omint.el|' was co|
|000001c0| 6d 70 69 6c 65 64 20 66 | 6f 72 20 45 6d 61 63 73 |mpiled f|or Emacs|
|000001d0| 20 31 39 22 29 29 0a 0a | 28 72 65 71 75 69 72 65 | 19"))..|(require|
|000001e0| 20 28 71 75 6f 74 65 20 | 72 69 6e 67 29 29 0a 28 | (quote |ring)).(|
|000001f0| 64 65 66 76 61 72 20 63 | 6f 6d 69 6e 74 2d 70 72 |defvar c|omint-pr|
|00000200| 6f 6d 70 74 2d 72 65 67 | 65 78 70 20 22 5e 22 20 |ompt-reg|exp "^" |
|00000210| 22 5c 0a 52 65 67 65 78 | 70 20 74 6f 20 72 65 63 |"\.Regex|p to rec|
|00000220| 6f 67 6e 69 73 65 20 70 | 72 6f 6d 70 74 73 20 69 |ognise p|rompts i|
|00000230| 6e 20 74 68 65 20 69 6e | 66 65 72 69 6f 72 20 70 |n the in|ferior p|
|00000240| 72 6f 63 65 73 73 2e 0a | 44 65 66 61 75 6c 74 73 |rocess..|Defaults|
|00000250| 20 74 6f 20 5c 22 5e 5c | 22 2c 20 74 68 65 20 6e | to \"^\|", the n|
|00000260| 75 6c 6c 20 73 74 72 69 | 6e 67 20 61 74 20 42 4f |ull stri|ng at BO|
|00000270| 4c 2e 0a 0a 47 6f 6f 64 | 20 63 68 6f 69 63 65 73 |L...Good| choices|
|00000280| 3a 0a 20 20 43 61 6e 6f | 6e 69 63 61 6c 20 4c 69 |:. Cano|nical Li|
|00000290| 73 70 3a 20 5c 22 5e 5b | 5e 3e 20 5c 5c 6e 5d 2a |sp: \"^[|^> \\n]*|
|000002a0| 3e 2b 3a 3f 20 2a 5c 22 | 20 28 4c 75 63 69 64 2c |>+:? *\"| (Lucid,|
|000002b0| 20 66 72 61 6e 7a 2c 20 | 6b 63 6c 2c 20 54 2c 20 | franz, |kcl, T, |
|000002c0| 63 73 63 68 65 6d 65 2c | 20 6f 61 6b 6c 69 73 70 |cscheme,| oaklisp|
|000002d0| 29 0a 20 20 4c 75 63 69 | 64 20 43 6f 6d 6d 6f 6e |). Luci|d Common|
|000002e0| 20 4c 69 73 70 3a 20 5c | 22 5e 5c 5c 5c 5c 28 3e | Lisp: \|"^\\\\(>|
|000002f0| 5c 5c 5c 5c 7c 5c 5c 5c | 5c 28 2d 3e 5c 5c 5c 5c |\\\\|\\\|\(->\\\\|
|00000300| 29 2b 5c 5c 5c 5c 29 20 | 2a 5c 22 0a 20 20 66 72 |)+\\\\) |*\". fr|
|00000310| 61 6e 7a 3a 20 5c 22 5e | 5c 5c 5c 5c 28 2d 3e 5c |anz: \"^|\\\\(->\|
|00000320| 5c 5c 5c 7c 3c 5b 30 2d | 39 5d 2a 3e 3a 5c 5c 5c |\\\|<[0-|9]*>:\\\|
|00000330| 5c 29 20 2a 5c 22 0a 20 | 20 6b 63 6c 3a 20 5c 22 |\) *\". | kcl: \"|
|00000340| 5e 3e 2b 20 2a 5c 22 0a | 20 20 73 68 65 6c 6c 3a |^>+ *\".| shell:|
|00000350| 20 5c 22 5e 5b 5e 23 24 | 25 3e 5c 5c 6e 5d 2a 5b | \"^[^#$|%>\\n]*[|
|00000360| 23 24 25 3e 5d 20 2a 5c | 22 0a 20 20 54 3a 20 5c |#$%>] *\|". T: \|
|00000370| 22 5e 3e 2b 20 2a 5c 22 | 0a 0a 54 68 69 73 20 69 |"^>+ *\"|..This i|
|00000380| 73 20 61 20 67 6f 6f 64 | 20 74 68 69 6e 67 20 74 |s a good| thing t|
|00000390| 6f 20 73 65 74 20 69 6e | 20 6d 6f 64 65 20 68 6f |o set in| mode ho|
|000003a0| 6f 6b 73 2e 22 29 0a 28 | 64 65 66 76 61 72 20 63 |oks.").(|defvar c|
|000003b0| 6f 6d 69 6e 74 2d 64 65 | 6c 69 6d 69 74 65 72 2d |omint-de|limiter-|
|000003c0| 61 72 67 75 6d 65 6e 74 | 2d 6c 69 73 74 20 6e 69 |argument|-list ni|
|000003d0| 6c 20 22 5c 0a 4c 69 73 | 74 20 6f 66 20 63 68 61 |l "\.Lis|t of cha|
|000003e0| 72 61 63 74 65 72 73 20 | 74 6f 20 72 65 63 6f 67 |racters |to recog|
|000003f0| 6e 69 73 65 20 61 73 20 | 73 65 70 61 72 61 74 65 |nise as |separate|
|00000400| 20 61 72 67 75 6d 65 6e | 74 73 20 69 6e 20 69 6e | argumen|ts in in|
|00000410| 70 75 74 2e 0a 53 74 72 | 69 6e 67 73 20 63 6f 6d |put..Str|ings com|
|00000420| 70 72 69 73 69 6e 67 20 | 61 20 63 68 61 72 61 63 |prising |a charac|
|00000430| 74 65 72 20 69 6e 20 74 | 68 69 73 20 6c 69 73 74 |ter in t|his list|
|00000440| 20 77 69 6c 6c 20 73 65 | 70 61 72 61 74 65 20 74 | will se|parate t|
|00000450| 68 65 20 61 72 67 75 6d | 65 6e 74 73 0a 73 75 72 |he argum|ents.sur|
|00000460| 72 6f 75 6e 64 69 6e 67 | 20 74 68 65 6d 2c 20 61 |rounding| them, a|
|00000470| 6e 64 20 61 6c 73 6f 20 | 62 65 20 72 65 67 61 72 |nd also |be regar|
|00000480| 64 65 64 20 61 73 20 61 | 72 67 75 6d 65 6e 74 73 |ded as a|rguments|
|00000490| 20 69 6e 20 74 68 65 69 | 72 20 6f 77 6e 20 72 69 | in thei|r own ri|
|000004a0| 67 68 74 20 28 75 6e 6c | 69 6b 65 0a 77 68 69 74 |ght (unl|ike.whit|
|000004b0| 65 73 70 61 63 65 29 2e | 20 20 53 65 65 20 60 63 |espace).| See `c|
|000004c0| 6f 6d 69 6e 74 2d 61 72 | 67 75 6d 65 6e 74 73 27 |omint-ar|guments'|
|000004d0| 2e 0a 44 65 66 61 75 6c | 74 73 20 74 6f 20 74 68 |..Defaul|ts to th|
|000004e0| 65 20 65 6d 70 74 79 20 | 6c 69 73 74 2e 0a 0a 46 |e empty |list...F|
|000004f0| 6f 72 20 73 68 65 6c 6c | 73 2c 20 61 20 67 6f 6f |or shell|s, a goo|
|00000500| 64 20 76 61 6c 75 65 20 | 69 73 20 28 3f 5c 5c 7c |d value |is (?\\||
|00000510| 20 3f 26 20 3f 3c 20 3f | 3e 20 3f 5c 5c 28 20 3f | ?& ?< ?|> ?\\( ?|
|00000520| 5c 5c 29 20 3f 3b 29 2e | 0a 0a 54 68 69 73 20 69 |\\) ?;).|..This i|
|00000530| 73 20 61 20 67 6f 6f 64 | 20 74 68 69 6e 67 20 74 |s a good| thing t|
|00000540| 6f 20 73 65 74 20 69 6e | 20 6d 6f 64 65 20 68 6f |o set in| mode ho|
|00000550| 6f 6b 73 2e 22 29 0a 28 | 64 65 66 76 61 72 20 63 |oks.").(|defvar c|
|00000560| 6f 6d 69 6e 74 2d 69 6e | 70 75 74 2d 61 75 74 6f |omint-in|put-auto|
|00000570| 65 78 70 61 6e 64 20 6e | 69 6c 20 22 5c 0a 2a 49 |expand n|il "\.*I|
|00000580| 66 20 6e 6f 6e 2d 6e 69 | 6c 2c 20 65 78 70 61 6e |f non-ni|l, expan|
|00000590| 64 20 69 6e 70 75 74 20 | 63 6f 6d 6d 61 6e 64 20 |d input |command |
|000005a0| 68 69 73 74 6f 72 79 20 | 72 65 66 65 72 65 6e 63 |history |referenc|
|000005b0| 65 73 20 6f 6e 20 63 6f | 6d 70 6c 65 74 69 6f 6e |es on co|mpletion|
|000005c0| 2e 0a 54 68 69 73 20 6d | 69 72 72 6f 72 73 20 74 |..This m|irrors t|
|000005d0| 68 65 20 6f 70 74 69 6f | 6e 61 6c 20 62 65 68 61 |he optio|nal beha|
|000005e0| 76 69 6f 72 20 6f 66 20 | 74 63 73 68 20 28 69 74 |vior of |tcsh (it|
|000005f0| 73 20 61 75 74 6f 65 78 | 70 61 6e 64 20 61 6e 64 |s autoex|pand and|
|00000600| 20 68 69 73 74 6c 69 74 | 29 2e 0a 0a 49 66 20 74 | histlit|)...If t|
|00000610| 68 65 20 76 61 6c 75 65 | 20 69 73 20 60 69 6e 70 |he value| is `inp|
|00000620| 75 74 27 2c 20 74 68 65 | 6e 20 74 68 65 20 65 78 |ut', the|n the ex|
|00000630| 70 61 6e 73 69 6f 6e 20 | 69 73 20 73 65 65 6e 20 |pansion |is seen |
|00000640| 6f 6e 20 69 6e 70 75 74 | 2e 0a 49 66 20 74 68 65 |on input|..If the|
|00000650| 20 76 61 6c 75 65 20 69 | 73 20 60 68 69 73 74 6f | value i|s `histo|
|00000660| 72 79 27 2c 20 74 68 65 | 6e 20 74 68 65 20 65 78 |ry', the|n the ex|
|00000670| 70 61 6e 73 69 6f 6e 20 | 69 73 20 6f 6e 6c 79 20 |pansion |is only |
|00000680| 77 68 65 6e 20 69 6e 73 | 65 72 74 69 6e 67 0a 69 |when ins|erting.i|
|00000690| 6e 74 6f 20 74 68 65 20 | 62 75 66 66 65 72 27 73 |nto the |buffer's|
|000006a0| 20 69 6e 70 75 74 20 72 | 69 6e 67 2e 20 20 53 65 | input r|ing. Se|
|000006b0| 65 20 61 6c 73 6f 20 60 | 63 6f 6d 69 6e 74 2d 6d |e also `|comint-m|
|000006c0| 61 67 69 63 2d 73 70 61 | 63 65 27 20 61 6e 64 0a |agic-spa|ce' and.|
|000006d0| 60 63 6f 6d 69 6e 74 2d | 64 79 6e 61 6d 69 63 2d |`comint-|dynamic-|
|000006e0| 63 6f 6d 70 6c 65 74 65 | 27 2e 0a 0a 54 68 69 73 |complete|'...This|
|000006f0| 20 76 61 72 69 61 62 6c | 65 20 69 73 20 62 75 66 | variabl|e is buf|
|00000700| 66 65 72 2d 6c 6f 63 61 | 6c 2e 22 29 0a 28 64 65 |fer-loca|l.").(de|
|00000710| 66 76 61 72 20 63 6f 6d | 69 6e 74 2d 69 6e 70 75 |fvar com|int-inpu|
|00000720| 74 2d 69 67 6e 6f 72 65 | 64 75 70 73 20 6e 69 6c |t-ignore|dups nil|
|00000730| 20 22 5c 0a 2a 49 66 20 | 6e 6f 6e 2d 6e 69 6c 2c | "\.*If |non-nil,|
|00000740| 20 64 6f 6e 27 74 20 61 | 64 64 20 69 6e 70 75 74 | don't a|dd input|
|00000750| 20 6d 61 74 63 68 69 6e | 67 20 74 68 65 20 6c 61 | matchin|g the la|
|00000760| 73 74 20 6f 6e 20 74 68 | 65 20 69 6e 70 75 74 20 |st on th|e input |
|00000770| 72 69 6e 67 2e 0a 54 68 | 69 73 20 6d 69 72 72 6f |ring..Th|is mirro|
|00000780| 72 73 20 74 68 65 20 6f | 70 74 69 6f 6e 61 6c 20 |rs the o|ptional |
|00000790| 62 65 68 61 76 69 6f 72 | 20 6f 66 20 62 61 73 68 |behavior| of bash|
|000007a0| 2e 0a 0a 54 68 69 73 20 | 76 61 72 69 61 62 6c 65 |...This |variable|
|000007b0| 20 69 73 20 62 75 66 66 | 65 72 2d 6c 6f 63 61 6c | is buff|er-local|
|000007c0| 2e 22 29 0a 28 64 65 66 | 76 61 72 20 63 6f 6d 69 |.").(def|var comi|
|000007d0| 6e 74 2d 69 6e 70 75 74 | 2d 72 69 6e 67 2d 66 69 |nt-input|-ring-fi|
|000007e0| 6c 65 2d 6e 61 6d 65 20 | 6e 69 6c 20 22 5c 0a 2a |le-name |nil "\.*|
|000007f0| 49 66 20 6e 6f 6e 2d 6e | 69 6c 2c 20 6e 61 6d 65 |If non-n|il, name|
|00000800| 20 6f 66 20 74 68 65 20 | 66 69 6c 65 20 74 6f 20 | of the |file to |
|00000810| 72 65 61 64 2f 77 72 69 | 74 65 20 69 6e 70 75 74 |read/wri|te input|
|00000820| 20 68 69 73 74 6f 72 79 | 2e 0a 53 65 65 20 61 6c | history|..See al|
|00000830| 73 6f 20 60 63 6f 6d 69 | 6e 74 2d 72 65 61 64 2d |so `comi|nt-read-|
|00000840| 69 6e 70 75 74 2d 72 69 | 6e 67 27 20 61 6e 64 20 |input-ri|ng' and |
|00000850| 60 63 6f 6d 69 6e 74 2d | 77 72 69 74 65 2d 69 6e |`comint-|write-in|
|00000860| 70 75 74 2d 72 69 6e 67 | 27 2e 0a 0a 54 68 69 73 |put-ring|'...This|
|00000870| 20 76 61 72 69 61 62 6c | 65 20 69 73 20 62 75 66 | variabl|e is buf|
|00000880| 66 65 72 2d 6c 6f 63 61 | 6c 2c 20 61 6e 64 20 69 |fer-loca|l, and i|
|00000890| 73 20 61 20 67 6f 6f 64 | 20 74 68 69 6e 67 20 74 |s a good| thing t|
|000008a0| 6f 20 73 65 74 20 69 6e | 20 6d 6f 64 65 20 68 6f |o set in| mode ho|
|000008b0| 6f 6b 73 2e 22 29 0a 28 | 64 65 66 76 61 72 20 63 |oks.").(|defvar c|
|000008c0| 6f 6d 69 6e 74 2d 73 63 | 72 6f 6c 6c 2d 74 6f 2d |omint-sc|roll-to-|
|000008d0| 62 6f 74 74 6f 6d 2d 6f | 6e 2d 69 6e 70 75 74 20 |bottom-o|n-input |
|000008e0| 6e 69 6c 20 22 5c 0a 2a | 43 6f 6e 74 72 6f 6c 73 |nil "\.*|Controls|
|000008f0| 20 77 68 65 74 68 65 72 | 20 69 6e 70 75 74 20 74 | whether| input t|
|00000900| 6f 20 69 6e 74 65 72 70 | 72 65 74 65 72 20 63 61 |o interp|reter ca|
|00000910| 75 73 65 73 20 77 69 6e | 64 6f 77 20 74 6f 20 73 |uses win|dow to s|
|00000920| 63 72 6f 6c 6c 2e 0a 49 | 66 20 6e 69 6c 2c 20 74 |croll..I|f nil, t|
|00000930| 68 65 6e 20 64 6f 20 6e | 6f 74 20 73 63 72 6f 6c |hen do n|ot scrol|
|00000940| 6c 2e 20 20 49 66 20 74 | 20 6f 72 20 60 61 6c 6c |l. If t| or `all|
|00000950| 27 2c 20 73 63 72 6f 6c | 6c 20 61 6c 6c 20 77 69 |', scrol|l all wi|
|00000960| 6e 64 6f 77 73 20 73 68 | 6f 77 69 6e 67 20 62 75 |ndows sh|owing bu|
|00000970| 66 66 65 72 2e 0a 49 66 | 20 60 74 68 69 73 27 2c |ffer..If| `this',|
|00000980| 20 73 63 72 6f 6c 6c 20 | 6f 6e 6c 79 20 74 68 65 | scroll |only the|
|00000990| 20 73 65 6c 65 63 74 65 | 64 20 77 69 6e 64 6f 77 | selecte|d window|
|000009a0| 2e 0a 0a 54 68 65 20 64 | 65 66 61 75 6c 74 20 69 |...The d|efault i|
|000009b0| 73 20 6e 69 6c 2e 0a 0a | 53 65 65 20 60 63 6f 6d |s nil...|See `com|
|000009c0| 69 6e 74 2d 70 72 65 69 | 6e 70 75 74 2d 73 63 72 |int-prei|nput-scr|
|000009d0| 6f 6c 6c 2d 74 6f 2d 62 | 6f 74 74 6f 6d 27 2e 20 |oll-to-b|ottom'. |
|000009e0| 20 54 68 69 73 20 76 61 | 72 69 61 62 6c 65 20 69 | This va|riable i|
|000009f0| 73 20 62 75 66 66 65 72 | 2d 6c 6f 63 61 6c 2e 22 |s buffer|-local."|
|00000a00| 29 0a 28 64 65 66 76 61 | 72 20 63 6f 6d 69 6e 74 |).(defva|r comint|
|00000a10| 2d 73 63 72 6f 6c 6c 2d | 74 6f 2d 62 6f 74 74 6f |-scroll-|to-botto|
|00000a20| 6d 2d 6f 6e 2d 6f 75 74 | 70 75 74 20 6e 69 6c 20 |m-on-out|put nil |
|00000a30| 22 5c 0a 2a 43 6f 6e 74 | 72 6f 6c 73 20 77 68 65 |"\.*Cont|rols whe|
|00000a40| 74 68 65 72 20 69 6e 74 | 65 72 70 72 65 74 65 72 |ther int|erpreter|
|00000a50| 20 6f 75 74 70 75 74 20 | 63 61 75 73 65 73 20 77 | output |causes w|
|00000a60| 69 6e 64 6f 77 20 74 6f | 20 73 63 72 6f 6c 6c 2e |indow to| scroll.|
|00000a70| 0a 49 66 20 6e 69 6c 2c | 20 74 68 65 6e 20 64 6f |.If nil,| then do|
|00000a80| 20 6e 6f 74 20 73 63 72 | 6f 6c 6c 2e 20 20 49 66 | not scr|oll. If|
|00000a90| 20 74 20 6f 72 20 60 61 | 6c 6c 27 2c 20 73 63 72 | t or `a|ll', scr|
|00000aa0| 6f 6c 6c 20 61 6c 6c 20 | 77 69 6e 64 6f 77 73 20 |oll all |windows |
|00000ab0| 73 68 6f 77 69 6e 67 20 | 62 75 66 66 65 72 2e 0a |showing |buffer..|
|00000ac0| 49 66 20 60 74 68 69 73 | 27 2c 20 73 63 72 6f 6c |If `this|', scrol|
|00000ad0| 6c 20 6f 6e 6c 79 20 74 | 68 65 20 73 65 6c 65 63 |l only t|he selec|
|00000ae0| 74 65 64 20 77 69 6e 64 | 6f 77 2e 0a 49 66 20 60 |ted wind|ow..If `|
|00000af0| 6f 74 68 65 72 73 27 2c | 20 73 63 72 6f 6c 6c 20 |others',| scroll |
|00000b00| 6f 6e 6c 79 20 74 68 6f | 73 65 20 74 68 61 74 20 |only tho|se that |
|00000b10| 61 72 65 20 6e 6f 74 20 | 74 68 65 20 73 65 6c 65 |are not |the sele|
|00000b20| 63 74 65 64 20 77 69 6e | 64 6f 77 2e 0a 0a 54 68 |cted win|dow...Th|
|00000b30| 65 20 64 65 66 61 75 6c | 74 20 69 73 20 6e 69 6c |e defaul|t is nil|
|00000b40| 2e 0a 0a 53 65 65 20 76 | 61 72 69 61 62 6c 65 20 |...See v|ariable |
|00000b50| 60 63 6f 6d 69 6e 74 2d | 73 63 72 6f 6c 6c 2d 73 |`comint-|scroll-s|
|00000b60| 68 6f 77 2d 6d 61 78 69 | 6d 75 6d 2d 6f 75 74 70 |how-maxi|mum-outp|
|00000b70| 75 74 27 20 61 6e 64 20 | 66 75 6e 63 74 69 6f 6e |ut' and |function|
|00000b80| 0a 60 63 6f 6d 69 6e 74 | 2d 70 6f 73 74 6f 75 74 |.`comint|-postout|
|00000b90| 70 75 74 2d 73 63 72 6f | 6c 6c 2d 74 6f 2d 62 6f |put-scro|ll-to-bo|
|00000ba0| 74 74 6f 6d 27 2e 20 20 | 54 68 69 73 20 76 61 72 |ttom'. |This var|
|00000bb0| 69 61 62 6c 65 20 69 73 | 20 62 75 66 66 65 72 2d |iable is| buffer-|
|00000bc0| 6c 6f 63 61 6c 2e 22 29 | 0a 28 64 65 66 76 61 72 |local.")|.(defvar|
|00000bd0| 20 63 6f 6d 69 6e 74 2d | 73 63 72 6f 6c 6c 2d 73 | comint-|scroll-s|
|00000be0| 68 6f 77 2d 6d 61 78 69 | 6d 75 6d 2d 6f 75 74 70 |how-maxi|mum-outp|
|00000bf0| 75 74 20 6e 69 6c 20 22 | 5c 0a 2a 43 6f 6e 74 72 |ut nil "|\.*Contr|
|00000c00| 6f 6c 73 20 68 6f 77 20 | 69 6e 74 65 72 70 72 65 |ols how |interpre|
|00000c10| 74 65 72 20 6f 75 74 70 | 75 74 20 63 61 75 73 65 |ter outp|ut cause|
|00000c20| 73 20 77 69 6e 64 6f 77 | 20 74 6f 20 73 63 72 6f |s window| to scro|
|00000c30| 6c 6c 2e 0a 49 66 20 6e | 6f 6e 2d 6e 69 6c 2c 20 |ll..If n|on-nil, |
|00000c40| 74 68 65 6e 20 73 68 6f | 77 20 74 68 65 20 6d 61 |then sho|w the ma|
|00000c50| 78 69 6d 75 6d 20 6f 75 | 74 70 75 74 20 77 68 65 |ximum ou|tput whe|
|00000c60| 6e 20 74 68 65 20 77 69 | 6e 64 6f 77 20 69 73 20 |n the wi|ndow is |
|00000c70| 73 63 72 6f 6c 6c 65 64 | 2e 0a 0a 53 65 65 20 76 |scrolled|...See v|
|00000c80| 61 72 69 61 62 6c 65 20 | 60 63 6f 6d 69 6e 74 2d |ariable |`comint-|
|00000c90| 73 63 72 6f 6c 6c 2d 74 | 6f 2d 62 6f 74 74 6f 6d |scroll-t|o-bottom|
|00000ca0| 2d 6f 6e 2d 6f 75 74 70 | 75 74 27 20 61 6e 64 20 |-on-outp|ut' and |
|00000cb0| 66 75 6e 63 74 69 6f 6e | 0a 60 63 6f 6d 69 6e 74 |function|.`comint|
|00000cc0| 2d 70 6f 73 74 6f 75 74 | 70 75 74 2d 73 63 72 6f |-postout|put-scro|
|00000cd0| 6c 6c 2d 74 6f 2d 62 6f | 74 74 6f 6d 27 2e 20 20 |ll-to-bo|ttom'. |
|00000ce0| 54 68 69 73 20 76 61 72 | 69 61 62 6c 65 20 69 73 |This var|iable is|
|00000cf0| 20 62 75 66 66 65 72 2d | 6c 6f 63 61 6c 2e 22 29 | buffer-|local.")|
|00000d00| 0a 28 64 65 66 76 61 72 | 20 63 6f 6d 69 6e 74 2d |.(defvar| comint-|
|00000d10| 69 6e 70 75 74 2d 72 69 | 6e 67 2d 73 69 7a 65 20 |input-ri|ng-size |
|00000d20| 33 32 20 22 5c 0a 53 69 | 7a 65 20 6f 66 20 69 6e |32 "\.Si|ze of in|
|00000d30| 70 75 74 20 68 69 73 74 | 6f 72 79 20 72 69 6e 67 |put hist|ory ring|
|00000d40| 2e 22 29 0a 28 64 65 66 | 76 61 72 20 63 6f 6d 69 |.").(def|var comi|
|00000d50| 6e 74 2d 70 72 6f 63 65 | 73 73 2d 65 63 68 6f 65 |nt-proce|ss-echoe|
|00000d60| 73 20 6e 69 6c 20 22 5c | 0a 2a 49 66 20 6e 6f 6e |s nil "\|.*If non|
|00000d70| 2d 6e 69 6c 2c 20 61 73 | 73 75 6d 65 20 74 68 61 |-nil, as|sume tha|
|00000d80| 74 20 74 68 65 20 73 75 | 62 70 72 6f 63 65 73 73 |t the su|bprocess|
|00000d90| 20 65 63 68 6f 65 73 20 | 61 6e 79 20 69 6e 70 75 | echoes |any inpu|
|00000da0| 74 2e 0a 49 66 20 73 6f | 2c 20 64 65 6c 65 74 65 |t..If so|, delete|
|00000db0| 20 6f 6e 65 20 63 6f 70 | 79 20 6f 66 20 74 68 65 | one cop|y of the|
|00000dc0| 20 69 6e 70 75 74 20 73 | 6f 20 74 68 61 74 20 6f | input s|o that o|
|00000dd0| 6e 6c 79 20 6f 6e 65 20 | 63 6f 70 79 20 65 76 65 |nly one |copy eve|
|00000de0| 6e 74 75 61 6c 6c 79 0a | 61 70 70 65 61 72 73 20 |ntually.|appears |
|00000df0| 69 6e 20 74 68 65 20 62 | 75 66 66 65 72 2e 0a 0a |in the b|uffer...|
|00000e00| 54 68 69 73 20 76 61 72 | 69 61 62 6c 65 20 69 73 |This var|iable is|
|00000e10| 20 62 75 66 66 65 72 2d | 6c 6f 63 61 6c 2e 22 29 | buffer-|local.")|
|00000e20| 0a 28 64 65 66 76 61 72 | 20 63 6f 6d 69 6e 74 2d |.(defvar| comint-|
|00000e30| 67 65 74 2d 6f 6c 64 2d | 69 6e 70 75 74 20 28 71 |get-old-|input (q|
|00000e40| 75 6f 74 65 20 63 6f 6d | 69 6e 74 2d 67 65 74 2d |uote com|int-get-|
|00000e50| 6f 6c 64 2d 69 6e 70 75 | 74 2d 64 65 66 61 75 6c |old-inpu|t-defaul|
|00000e60| 74 29 20 22 5c 0a 46 75 | 6e 63 74 69 6f 6e 20 74 |t) "\.Fu|nction t|
|00000e70| 68 61 74 20 72 65 74 75 | 72 6e 73 20 6f 6c 64 20 |hat retu|rns old |
|00000e80| 74 65 78 74 20 69 6e 20 | 63 6f 6d 69 6e 74 20 6d |text in |comint m|
|00000e90| 6f 64 65 2e 0a 54 68 69 | 73 20 66 75 6e 63 74 69 |ode..Thi|s functi|
|00000ea0| 6f 6e 20 69 73 20 63 61 | 6c 6c 65 64 20 77 68 65 |on is ca|lled whe|
|00000eb0| 6e 20 72 65 74 75 72 6e | 20 69 73 20 74 79 70 65 |n return| is type|
|00000ec0| 64 20 77 68 69 6c 65 20 | 74 68 65 20 70 6f 69 6e |d while |the poin|
|00000ed0| 74 20 69 73 20 69 6e 20 | 6f 6c 64 20 74 65 78 74 |t is in |old text|
|00000ee0| 2e 0a 49 74 20 72 65 74 | 75 72 6e 73 20 74 68 65 |..It ret|urns the|
|00000ef0| 20 74 65 78 74 20 74 6f | 20 62 65 20 73 75 62 6d | text to| be subm|
|00000f00| 69 74 74 65 64 20 61 73 | 20 70 72 6f 63 65 73 73 |itted as| process|
|00000f10| 20 69 6e 70 75 74 2e 20 | 20 54 68 65 20 64 65 66 | input. | The def|
|00000f20| 61 75 6c 74 20 69 73 0a | 60 63 6f 6d 69 6e 74 2d |ault is.|`comint-|
|00000f30| 67 65 74 2d 6f 6c 64 2d | 69 6e 70 75 74 2d 64 65 |get-old-|input-de|
|00000f40| 66 61 75 6c 74 27 2c 20 | 77 68 69 63 68 20 67 72 |fault', |which gr|
|00000f50| 61 62 73 20 74 68 65 20 | 63 75 72 72 65 6e 74 20 |abs the |current |
|00000f60| 6c 69 6e 65 2c 20 61 6e | 64 20 73 74 72 69 70 73 |line, an|d strips|
|00000f70| 20 6f 66 66 0a 6c 65 61 | 64 69 6e 67 20 74 65 78 | off.lea|ding tex|
|00000f80| 74 20 6d 61 74 63 68 69 | 6e 67 20 60 63 6f 6d 69 |t matchi|ng `comi|
|00000f90| 6e 74 2d 70 72 6f 6d 70 | 74 2d 72 65 67 65 78 70 |nt-promp|t-regexp|
|00000fa0| 27 2e 22 29 0a 28 64 65 | 66 76 61 72 20 63 6f 6d |'.").(de|fvar com|
|00000fb0| 69 6e 74 2d 64 79 6e 61 | 6d 69 63 2d 63 6f 6d 70 |int-dyna|mic-comp|
|00000fc0| 6c 65 74 65 2d 66 75 6e | 63 74 69 6f 6e 73 20 28 |lete-fun|ctions (|
|00000fd0| 71 75 6f 74 65 20 28 63 | 6f 6d 69 6e 74 2d 72 65 |quote (c|omint-re|
|00000fe0| 70 6c 61 63 65 2d 62 79 | 2d 65 78 70 61 6e 64 65 |place-by|-expande|
|00000ff0| 64 2d 68 69 73 74 6f 72 | 79 20 63 6f 6d 69 6e 74 |d-histor|y comint|
|00001000| 2d 64 79 6e 61 6d 69 63 | 2d 63 6f 6d 70 6c 65 74 |-dynamic|-complet|
|00001010| 65 2d 66 69 6c 65 6e 61 | 6d 65 29 29 20 22 5c 0a |e-filena|me)) "\.|
|00001020| 4c 69 73 74 20 6f 66 20 | 66 75 6e 63 74 69 6f 6e |List of |function|
|00001030| 73 20 63 61 6c 6c 65 64 | 20 74 6f 20 70 65 72 66 |s called| to perf|
|00001040| 6f 72 6d 20 63 6f 6d 70 | 6c 65 74 69 6f 6e 2e 0a |orm comp|letion..|
|00001050| 46 75 6e 63 74 69 6f 6e | 73 20 73 68 6f 75 6c 64 |Function|s should|
|00001060| 20 72 65 74 75 72 6e 20 | 6e 6f 6e 2d 6e 69 6c 20 | return |non-nil |
|00001070| 69 66 20 63 6f 6d 70 6c | 65 74 69 6f 6e 20 77 61 |if compl|etion wa|
|00001080| 73 20 70 65 72 66 6f 72 | 6d 65 64 2e 0a 53 65 65 |s perfor|med..See|
|00001090| 20 61 6c 73 6f 20 60 63 | 6f 6d 69 6e 74 2d 64 79 | also `c|omint-dy|
|000010a0| 6e 61 6d 69 63 2d 63 6f | 6d 70 6c 65 74 65 27 2e |namic-co|mplete'.|
|000010b0| 0a 0a 54 68 69 73 20 69 | 73 20 61 20 67 6f 6f 64 |..This i|s a good|
|000010c0| 20 74 68 69 6e 67 20 74 | 6f 20 73 65 74 20 69 6e | thing t|o set in|
|000010d0| 20 6d 6f 64 65 20 68 6f | 6f 6b 73 2e 22 29 0a 28 | mode ho|oks.").(|
|000010e0| 64 65 66 76 61 72 20 63 | 6f 6d 69 6e 74 2d 69 6e |defvar c|omint-in|
|000010f0| 70 75 74 2d 66 69 6c 74 | 65 72 20 23 5b 28 73 74 |put-filt|er #[(st|
|00001100| 72 29 20 22 c0 c1 5c 6e | 5c 22 3f 87 22 20 5b 73 |r) "..\n|\"?." [s|
|00001110| 74 72 69 6e 67 2d 6d 61 | 74 63 68 20 22 5c 5c 60 |tring-ma|tch "\\`|
|00001120| 5c 5c 73 20 2a 5c 5c 27 | 22 20 73 74 72 5d 20 33 |\\s *\\'|" str] 3|
|00001130| 5d 20 22 5c 0a 50 72 65 | 64 69 63 61 74 65 20 66 |] "\.Pre|dicate f|
|00001140| 6f 72 20 66 69 6c 74 65 | 72 69 6e 67 20 61 64 64 |or filte|ring add|
|00001150| 69 74 69 6f 6e 73 20 74 | 6f 20 69 6e 70 75 74 20 |itions t|o input |
|00001160| 68 69 73 74 6f 72 79 2e | 0a 54 61 6b 65 73 20 6f |history.|.Takes o|
|00001170| 6e 65 20 61 72 67 75 6d | 65 6e 74 2c 20 74 68 65 |ne argum|ent, the|
|00001180| 20 69 6e 70 75 74 2e 20 | 20 49 66 20 6e 6f 6e 2d | input. | If non-|
|00001190| 6e 69 6c 2c 20 74 68 65 | 20 69 6e 70 75 74 20 6d |nil, the| input m|
|000011a0| 61 79 20 62 65 20 73 61 | 76 65 64 20 6f 6e 20 74 |ay be sa|ved on t|
|000011b0| 68 65 20 69 6e 70 75 74 | 0a 68 69 73 74 6f 72 79 |he input|.history|
|000011c0| 20 6c 69 73 74 2e 20 20 | 44 65 66 61 75 6c 74 20 | list. |Default |
|000011d0| 69 73 20 74 6f 20 73 61 | 76 65 20 61 6e 79 74 68 |is to sa|ve anyth|
|000011e0| 69 6e 67 20 74 68 61 74 | 20 69 73 6e 27 74 20 61 |ing that| isn't a|
|000011f0| 6c 6c 20 77 68 69 74 65 | 73 70 61 63 65 2e 22 29 |ll white|space.")|
|00001200| 0a 28 64 65 66 76 61 72 | 20 63 6f 6d 69 6e 74 2d |.(defvar| comint-|
|00001210| 69 6e 70 75 74 2d 66 69 | 6c 74 65 72 2d 66 75 6e |input-fi|lter-fun|
|00001220| 63 74 69 6f 6e 73 20 6e | 69 6c 20 22 5c 0a 46 75 |ctions n|il "\.Fu|
|00001230| 6e 63 74 69 6f 6e 73 20 | 74 6f 20 63 61 6c 6c 20 |nctions |to call |
|00001240| 62 65 66 6f 72 65 20 69 | 6e 70 75 74 20 69 73 20 |before i|nput is |
|00001250| 73 65 6e 74 20 74 6f 20 | 74 68 65 20 70 72 6f 63 |sent to |the proc|
|00001260| 65 73 73 2e 0a 54 68 65 | 73 65 20 66 75 6e 63 74 |ess..The|se funct|
|00001270| 69 6f 6e 73 20 67 65 74 | 20 6f 6e 65 20 61 72 67 |ions get| one arg|
|00001280| 75 6d 65 6e 74 2c 20 61 | 20 73 74 72 69 6e 67 20 |ument, a| string |
|00001290| 63 6f 6e 74 61 69 6e 69 | 6e 67 20 74 68 65 20 74 |containi|ng the t|
|000012a0| 65 78 74 20 74 6f 20 73 | 65 6e 64 2e 0a 0a 54 68 |ext to s|end...Th|
|000012b0| 69 73 20 76 61 72 69 61 | 62 6c 65 20 69 73 20 62 |is varia|ble is b|
|000012c0| 75 66 66 65 72 2d 6c 6f | 63 61 6c 2e 22 29 0a 28 |uffer-lo|cal.").(|
|000012d0| 64 65 66 76 61 72 20 63 | 6f 6d 69 6e 74 2d 6f 75 |defvar c|omint-ou|
|000012e0| 74 70 75 74 2d 66 69 6c | 74 65 72 2d 66 75 6e 63 |tput-fil|ter-func|
|000012f0| 74 69 6f 6e 73 20 28 71 | 75 6f 74 65 20 28 63 6f |tions (q|uote (co|
|00001300| 6d 69 6e 74 2d 70 6f 73 | 74 6f 75 74 70 75 74 2d |mint-pos|toutput-|
|00001310| 73 63 72 6f 6c 6c 2d 74 | 6f 2d 62 6f 74 74 6f 6d |scroll-t|o-bottom|
|00001320| 29 29 20 22 5c 0a 46 75 | 6e 63 74 69 6f 6e 73 20 |)) "\.Fu|nctions |
|00001330| 74 6f 20 63 61 6c 6c 20 | 61 66 74 65 72 20 6f 75 |to call |after ou|
|00001340| 74 70 75 74 20 69 73 20 | 69 6e 73 65 72 74 65 64 |tput is |inserted|
|00001350| 20 69 6e 74 6f 20 74 68 | 65 20 62 75 66 66 65 72 | into th|e buffer|
|00001360| 2e 0a 4f 6e 65 20 70 6f | 73 73 69 62 6c 65 20 66 |..One po|ssible f|
|00001370| 75 6e 63 74 69 6f 6e 20 | 69 73 20 60 63 6f 6d 69 |unction |is `comi|
|00001380| 6e 74 2d 70 6f 73 74 6f | 75 74 70 75 74 2d 73 63 |nt-posto|utput-sc|
|00001390| 72 6f 6c 6c 2d 74 6f 2d | 62 6f 74 74 6f 6d 27 2e |roll-to-|bottom'.|
|000013a0| 0a 54 68 65 73 65 20 66 | 75 6e 63 74 69 6f 6e 73 |.These f|unctions|
|000013b0| 20 67 65 74 20 6f 6e 65 | 20 61 72 67 75 6d 65 6e | get one| argumen|
|000013c0| 74 2c 20 61 20 73 74 72 | 69 6e 67 20 63 6f 6e 74 |t, a str|ing cont|
|000013d0| 61 69 6e 69 6e 67 20 74 | 68 65 20 74 65 78 74 20 |aining t|he text |
|000013e0| 6a 75 73 74 20 69 6e 73 | 65 72 74 65 64 2e 0a 0a |just ins|erted...|
|000013f0| 54 68 69 73 20 76 61 72 | 69 61 62 6c 65 20 69 73 |This var|iable is|
|00001400| 20 62 75 66 66 65 72 2d | 6c 6f 63 61 6c 2e 22 29 | buffer-|local.")|
|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 64 65 72 20 28 71 75 |input-se|nder (qu|
|00001430| 6f 74 65 20 63 6f 6d 69 | 6e 74 2d 73 69 6d 70 6c |ote comi|nt-simpl|
|00001440| 65 2d 73 65 6e 64 29 20 | 22 5c 0a 46 75 6e 63 74 |e-send) |"\.Funct|
|00001450| 69 6f 6e 20 74 6f 20 61 | 63 74 75 61 6c 6c 79 20 |ion to a|ctually |
|00001460| 73 65 6e 64 20 74 6f 20 | 50 52 4f 43 45 53 53 20 |send to |PROCESS |
|00001470| 74 68 65 20 53 54 52 49 | 4e 47 20 73 75 62 6d 69 |the STRI|NG submi|
|00001480| 74 74 65 64 20 62 79 20 | 75 73 65 72 2e 0a 55 73 |tted by |user..Us|
|00001490| 75 61 6c 6c 79 20 74 68 | 69 73 20 69 73 20 6a 75 |ually th|is is ju|
|000014a0| 73 74 20 60 63 6f 6d 69 | 6e 74 2d 73 69 6d 70 6c |st `comi|nt-simpl|
|000014b0| 65 2d 73 65 6e 64 27 2c | 20 62 75 74 20 69 66 20 |e-send',| but if |
|000014c0| 79 6f 75 72 20 6d 6f 64 | 65 20 6e 65 65 64 73 20 |your mod|e needs |
|000014d0| 74 6f 20 0a 6d 61 73 73 | 61 67 65 20 74 68 65 20 |to .mass|age the |
|000014e0| 69 6e 70 75 74 20 73 74 | 72 69 6e 67 2c 20 70 75 |input st|ring, pu|
|000014f0| 74 20 61 20 64 69 66 66 | 65 72 65 6e 74 20 66 75 |t a diff|erent fu|
|00001500| 6e 63 74 69 6f 6e 20 68 | 65 72 65 2e 0a 60 63 6f |nction h|ere..`co|
|00001510| 6d 69 6e 74 2d 73 69 6d | 70 6c 65 2d 73 65 6e 64 |mint-sim|ple-send|
|00001520| 27 20 6a 75 73 74 20 73 | 65 6e 64 73 20 74 68 65 |' just s|ends the|
|00001530| 20 73 74 72 69 6e 67 20 | 70 6c 75 73 20 61 20 6e | string |plus a n|
|00001540| 65 77 6c 69 6e 65 2e 0a | 54 68 69 73 20 69 73 20 |ewline..|This is |
|00001550| 63 61 6c 6c 65 64 20 66 | 72 6f 6d 20 74 68 65 20 |called f|rom the |
|00001560| 75 73 65 72 20 63 6f 6d | 6d 61 6e 64 20 60 63 6f |user com|mand `co|
|00001570| 6d 69 6e 74 2d 73 65 6e | 64 2d 69 6e 70 75 74 27 |mint-sen|d-input'|
|00001580| 2e 22 29 0a 28 64 65 66 | 76 61 72 20 63 6f 6d 69 |.").(def|var comi|
|00001590| 6e 74 2d 65 6f 6c 2d 6f | 6e 2d 73 65 6e 64 20 74 |nt-eol-o|n-send t|
|000015a0| 20 22 5c 0a 2a 4e 6f 6e | 2d 6e 69 6c 20 6d 65 61 | "\.*Non|-nil mea|
|000015b0| 6e 73 20 67 6f 20 74 6f | 20 74 68 65 20 65 6e 64 |ns go to| the end|
|000015c0| 20 6f 66 20 74 68 65 20 | 6c 69 6e 65 20 62 65 66 | of the |line bef|
|000015d0| 6f 72 65 20 73 65 6e 64 | 69 6e 67 20 69 6e 70 75 |ore send|ing inpu|
|000015e0| 74 2e 0a 53 65 65 20 60 | 63 6f 6d 69 6e 74 2d 73 |t..See `|comint-s|
|000015f0| 65 6e 64 2d 69 6e 70 75 | 74 27 2e 22 29 0a 28 64 |end-inpu|t'.").(d|
|00001600| 65 66 76 61 72 20 63 6f | 6d 69 6e 74 2d 6d 6f 64 |efvar co|mint-mod|
|00001610| 65 2d 68 6f 6f 6b 20 6e | 69 6c 20 22 5c 0a 43 61 |e-hook n|il "\.Ca|
|00001620| 6c 6c 65 64 20 75 70 6f | 6e 20 65 6e 74 72 79 20 |lled upo|n entry |
|00001630| 69 6e 74 6f 20 63 6f 6d | 69 6e 74 2d 6d 6f 64 65 |into com|int-mode|
|00001640| 0a 54 68 69 73 20 69 73 | 20 72 75 6e 20 62 65 66 |.This is| run bef|
|00001650| 6f 72 65 20 74 68 65 20 | 70 72 6f 63 65 73 73 20 |ore the |process |
|00001660| 69 73 20 63 72 61 6e 6b | 65 64 20 75 70 2e 22 29 |is crank|ed up.")|
|00001670| 0a 28 64 65 66 76 61 72 | 20 63 6f 6d 69 6e 74 2d |.(defvar| comint-|
|00001680| 65 78 65 63 2d 68 6f 6f | 6b 20 6e 69 6c 20 22 5c |exec-hoo|k nil "\|
|00001690| 0a 43 61 6c 6c 65 64 20 | 65 61 63 68 20 74 69 6d |.Called |each tim|
|000016a0| 65 20 61 20 70 72 6f 63 | 65 73 73 20 69 73 20 65 |e a proc|ess is e|
|000016b0| 78 65 63 27 64 20 62 79 | 20 60 63 6f 6d 69 6e 74 |xec'd by| `comint|
|000016c0| 2d 65 78 65 63 27 2e 0a | 54 68 69 73 20 69 73 20 |-exec'..|This is |
|000016d0| 63 61 6c 6c 65 64 20 61 | 66 74 65 72 20 74 68 65 |called a|fter the|
|000016e0| 20 70 72 6f 63 65 73 73 | 20 69 73 20 63 72 61 6e | process| is cran|
|000016f0| 6b 65 64 20 75 70 2e 20 | 20 49 74 20 69 73 20 75 |ked up. | It is u|
|00001700| 73 65 66 75 6c 20 66 6f | 72 20 74 68 69 6e 67 73 |seful fo|r things|
|00001710| 20 74 68 61 74 0a 6d 75 | 73 74 20 62 65 20 64 6f | that.mu|st be do|
|00001720| 6e 65 20 65 61 63 68 20 | 74 69 6d 65 20 61 20 70 |ne each |time a p|
|00001730| 72 6f 63 65 73 73 20 69 | 73 20 65 78 65 63 75 74 |rocess i|s execut|
|00001740| 65 64 20 69 6e 20 61 20 | 63 6f 6d 69 6e 74 20 6d |ed in a |comint m|
|00001750| 6f 64 65 20 62 75 66 66 | 65 72 20 28 65 2e 67 2e |ode buff|er (e.g.|
|00001760| 2c 0a 60 28 70 72 6f 63 | 65 73 73 2d 6b 69 6c 6c |,.`(proc|ess-kill|
|00001770| 2d 77 69 74 68 6f 75 74 | 2d 71 75 65 72 79 29 27 |-without|-query)'|
|00001780| 29 2e 20 20 49 6e 20 63 | 6f 6e 74 72 61 73 74 2c |). In c|ontrast,|
|00001790| 20 74 68 65 20 60 63 6f | 6d 69 6e 74 2d 6d 6f 64 | the `co|mint-mod|
|000017a0| 65 2d 68 6f 6f 6b 27 20 | 69 73 20 6f 6e 6c 79 0a |e-hook' |is only.|
|000017b0| 65 78 65 63 75 74 65 64 | 20 6f 6e 63 65 20 77 68 |executed| once wh|
|000017c0| 65 6e 20 74 68 65 20 62 | 75 66 66 65 72 20 69 73 |en the b|uffer is|
|000017d0| 20 63 72 65 61 74 65 64 | 2e 22 29 0a 28 62 79 74 | created|.").(byt|
|000017e0| 65 2d 63 6f 64 65 20 22 | c0 c1 21 84 08 00 c2 11 |e-code "|..!.....|
|000017f0| c2 87 22 20 5b 62 6f 75 | 6e 64 70 20 63 6f 6d 69 |.." [bou|ndp comi|
|00001800| 6e 74 2d 6d 6f 64 65 2d | 6d 61 70 20 6e 69 6c 5d |nt-mode-|map nil]|
|00001810| 20 32 29 0a 28 64 65 66 | 76 61 72 20 63 6f 6d 69 | 2).(def|var comi|
|00001820| 6e 74 2d 70 74 79 70 20 | 74 20 22 5c 0a 4e 6f 6e |nt-ptyp |t "\.Non|
|00001830| 2d 6e 69 6c 20 69 66 20 | 63 6f 6d 6d 75 6e 69 63 |-nil if |communic|
|00001840| 61 74 69 6f 6e 73 20 76 | 69 61 20 70 74 79 3b 20 |ations v|ia pty; |
|00001850| 66 61 6c 73 65 20 69 66 | 20 62 79 20 70 69 70 65 |false if| by pipe|
|00001860| 2e 20 20 42 75 66 66 65 | 72 20 6c 6f 63 61 6c 2e |. Buffe|r local.|
|00001870| 0a 54 68 69 73 20 69 73 | 20 74 6f 20 77 6f 72 6b |.This is| to work|
|00001880| 20 61 72 6f 75 6e 64 20 | 61 20 62 75 67 20 69 6e | around |a bug in|
|00001890| 20 45 6d 61 63 73 20 70 | 72 6f 63 65 73 73 20 73 | Emacs p|rocess s|
|000018a0| 69 67 6e 61 6c 6c 69 6e | 67 2e 22 29 0a 28 62 79 |ignallin|g.").(by|
|000018b0| 74 65 2d 63 6f 64 65 20 | 22 c0 c1 21 84 08 00 c2 |te-code |"..!....|
|000018c0| 11 c2 87 22 20 5b 62 6f | 75 6e 64 70 20 63 6f 6d |..." [bo|undp com|
|000018d0| 69 6e 74 2d 69 6e 70 75 | 74 2d 72 69 6e 67 20 6e |int-inpu|t-ring n|
|000018e0| 69 6c 5d 20 32 29 0a 28 | 64 65 66 76 61 72 20 63 |il] 2).(|defvar c|
|000018f0| 6f 6d 69 6e 74 2d 69 6e | 70 75 74 2d 72 69 6e 67 |omint-in|put-ring|
|00001900| 2d 69 6e 64 65 78 20 6e | 69 6c 20 22 5c 0a 49 6e |-index n|il "\.In|
|00001910| 64 65 78 20 6f 66 20 6c | 61 73 74 20 6d 61 74 63 |dex of l|ast matc|
|00001920| 68 65 64 20 68 69 73 74 | 6f 72 79 20 65 6c 65 6d |hed hist|ory elem|
|00001930| 65 6e 74 2e 22 29 0a 28 | 64 65 66 76 61 72 20 63 |ent.").(|defvar c|
|00001940| 6f 6d 69 6e 74 2d 6d 61 | 74 63 68 69 6e 67 2d 69 |omint-ma|tching-i|
|00001950| 6e 70 75 74 2d 66 72 6f | 6d 2d 69 6e 70 75 74 2d |nput-fro|m-input-|
|00001960| 73 74 72 69 6e 67 20 22 | 22 20 22 5c 0a 49 6e 70 |string "|" "\.Inp|
|00001970| 75 74 20 70 72 65 76 69 | 6f 75 73 6c 79 20 75 73 |ut previ|ously us|
|00001980| 65 64 20 74 6f 20 6d 61 | 74 63 68 20 69 6e 70 75 |ed to ma|tch inpu|
|00001990| 74 20 68 69 73 74 6f 72 | 79 2e 22 29 0a 28 62 79 |t histor|y.").(by|
|000019a0| 74 65 2d 63 6f 64 65 20 | 22 c0 c1 c2 c3 23 88 c0 |te-code |"....#..|
|000019b0| c4 c5 c6 23 88 c0 c7 c5 | c6 23 88 c0 c3 c5 c6 23 |...#....|.#.....#|
|000019c0| 88 c0 c8 c5 c6 23 88 c0 | c9 c5 c6 23 88 c0 ca c5 |.....#..|...#....|
|000019d0| c6 23 88 c0 cb c5 c6 23 | 88 c0 cc c5 c6 23 88 c0 |.#.....#|.....#..|
|000019e0| cd c5 c6 23 87 22 20 5b | 70 75 74 20 63 6f 6d 69 |...#." [|put comi|
|000019f0| 6e 74 2d 72 65 70 6c 61 | 63 65 2d 62 79 2d 65 78 |nt-repla|ce-by-ex|
|00001a00| 70 61 6e 64 65 64 2d 68 | 69 73 74 6f 72 79 20 6d |panded-h|istory m|
|00001a10| 65 6e 75 2d 65 6e 61 62 | 6c 65 20 63 6f 6d 69 6e |enu-enab|le comin|
|00001a20| 74 2d 69 6e 70 75 74 2d | 61 75 74 6f 65 78 70 61 |t-input-|autoexpa|
|00001a30| 6e 64 20 63 6f 6d 69 6e | 74 2d 69 6e 70 75 74 2d |nd comin|t-input-|
|00001a40| 72 69 6e 67 20 70 65 72 | 6d 61 6e 65 6e 74 2d 6c |ring per|manent-l|
|00001a50| 6f 63 61 6c 20 74 20 63 | 6f 6d 69 6e 74 2d 69 6e |ocal t c|omint-in|
|00001a60| 70 75 74 2d 72 69 6e 67 | 2d 69 6e 64 65 78 20 63 |put-ring|-index c|
|00001a70| 6f 6d 69 6e 74 2d 69 6e | 70 75 74 2d 66 69 6c 74 |omint-in|put-filt|
|00001a80| 65 72 2d 66 75 6e 63 74 | 69 6f 6e 73 20 63 6f 6d |er-funct|ions com|
|00001a90| 69 6e 74 2d 6f 75 74 70 | 75 74 2d 66 69 6c 74 65 |int-outp|ut-filte|
|00001aa0| 72 2d 66 75 6e 63 74 69 | 6f 6e 73 20 63 6f 6d 69 |r-functi|ons comi|
|00001ab0| 6e 74 2d 73 63 72 6f 6c | 6c 2d 74 6f 2d 62 6f 74 |nt-scrol|l-to-bot|
|00001ac0| 74 6f 6d 2d 6f 6e 2d 69 | 6e 70 75 74 20 63 6f 6d |tom-on-i|nput com|
|00001ad0| 69 6e 74 2d 73 63 72 6f | 6c 6c 2d 74 6f 2d 62 6f |int-scro|ll-to-bo|
|00001ae0| 74 74 6f 6d 2d 6f 6e 2d | 6f 75 74 70 75 74 20 63 |ttom-on-|output c|
|00001af0| 6f 6d 69 6e 74 2d 73 63 | 72 6f 6c 6c 2d 73 68 6f |omint-sc|roll-sho|
|00001b00| 77 2d 6d 61 78 69 6d 75 | 6d 2d 6f 75 74 70 75 74 |w-maximu|m-output|
|00001b10| 20 63 6f 6d 69 6e 74 2d | 70 74 79 70 5d 20 34 29 | comint-|ptyp] 4)|
|00001b20| 0a 28 64 65 66 61 6c 69 | 61 73 20 27 63 6f 6d 69 |.(defali|as 'comi|
|00001b30| 6e 74 2d 6d 6f 64 65 20 | 23 5b 6e 69 6c 20 22 c0 |nt-mode |#[nil ".|
|00001b40| 20 88 c1 12 c3 14 c5 16 | 06 c7 0e 08 21 88 c9 ca | .......|....!...|
|00001b50| 21 88 cb 20 89 16 5c 6e | 65 cc 93 88 c9 cd 21 88 |!.. ..\n|e.....!.|
|00001b60| cb 20 89 16 0d 65 cc 93 | 88 c9 ce 21 88 cb 20 16 |. ...e..|...!.. .|
|00001b70| 0e c9 cf 21 88 c9 d0 21 | 88 c9 d1 21 88 c9 d2 21 |...!...!|...!...!|
|00001b80| 88 d3 d1 21 83 4c 00 0e | 11 84 52 00 d4 0e 10 21 |...!.L..|..R....!|
|00001b90| 16 11 c9 d5 21 88 d3 d5 | 21 83 61 00 0e 15 84 64 |....!...|!.a....d|
|00001ba0| 00 cc 16 15 c9 d6 21 88 | c9 d7 21 88 c9 d8 21 88 |......!.|..!...!.|
|00001bb0| c9 d9 21 88 c9 da 21 88 | c9 db 21 88 c9 dc 21 88 |..!...!.|..!...!.|
|00001bc0| c9 dd 21 88 c9 de 21 88 | c9 df 21 88 c9 e0 21 88 |..!...!.|..!...!.|
|00001bd0| c9 e1 21 88 c9 e2 21 88 | c9 e3 21 88 c9 e4 21 88 |..!...!.|..!...!.|
|00001be0| e5 e4 e6 5c 22 88 c9 e7 | 21 88 c9 e8 21 88 c9 e9 |...\"...|!...!...|
|00001bf0| 21 88 c9 ea 21 88 eb ec | 21 87 22 20 5b 6b 69 6c |!...!...|!." [kil|
|00001c00| 6c 2d 61 6c 6c 2d 6c 6f | 63 61 6c 2d 76 61 72 69 |l-all-lo|cal-vari|
|00001c10| 61 62 6c 65 73 20 63 6f | 6d 69 6e 74 2d 6d 6f 64 |ables co|mint-mod|
|00001c20| 65 20 6d 61 6a 6f 72 2d | 6d 6f 64 65 20 22 43 6f |e major-|mode "Co|
|00001c30| 6d 69 6e 74 22 20 6d 6f | 64 65 2d 6e 61 6d 65 20 |mint" mo|de-name |
|00001c40| 28 22 3a 25 73 22 29 20 | 6d 6f 64 65 2d 6c 69 6e |(":%s") |mode-lin|
|00001c50| 65 2d 70 72 6f 63 65 73 | 73 20 75 73 65 2d 6c 6f |e-proces|s use-lo|
|00001c60| 63 61 6c 2d 6d 61 70 20 | 63 6f 6d 69 6e 74 2d 6d |cal-map |comint-m|
|00001c70| 6f 64 65 2d 6d 61 70 20 | 6d 61 6b 65 2d 6c 6f 63 |ode-map |make-loc|
|00001c80| 61 6c 2d 76 61 72 69 61 | 62 6c 65 20 63 6f 6d 69 |al-varia|ble comi|
|00001c90| 6e 74 2d 6c 61 73 74 2d | 69 6e 70 75 74 2d 73 74 |nt-last-|input-st|
|00001ca0| 61 72 74 20 6d 61 6b 65 | 2d 6d 61 72 6b 65 72 20 |art make|-marker |
|00001cb0| 6e 69 6c 20 63 6f 6d 69 | 6e 74 2d 6c 61 73 74 2d |nil comi|nt-last-|
|00001cc0| 69 6e 70 75 74 2d 65 6e | 64 20 63 6f 6d 69 6e 74 |input-en|d comint|
|00001cd0| 2d 6c 61 73 74 2d 6f 75 | 74 70 75 74 2d 73 74 61 |-last-ou|tput-sta|
|00001ce0| 72 74 20 63 6f 6d 69 6e | 74 2d 70 72 6f 6d 70 74 |rt comin|t-prompt|
|00001cf0| 2d 72 65 67 65 78 70 20 | 63 6f 6d 69 6e 74 2d 69 |-regexp |comint-i|
|00001d00| 6e 70 75 74 2d 72 69 6e | 67 2d 73 69 7a 65 20 63 |nput-rin|g-size c|
|00001d10| 6f 6d 69 6e 74 2d 69 6e | 70 75 74 2d 72 69 6e 67 |omint-in|put-ring|
|00001d20| 20 63 6f 6d 69 6e 74 2d | 69 6e 70 75 74 2d 72 69 | comint-|input-ri|
|00001d30| 6e 67 2d 66 69 6c 65 2d | 6e 61 6d 65 20 62 6f 75 |ng-file-|name bou|
|00001d40| 6e 64 70 20 6d 61 6b 65 | 2d 72 69 6e 67 20 63 6f |ndp make|-ring co|
|00001d50| 6d 69 6e 74 2d 69 6e 70 | 75 74 2d 72 69 6e 67 2d |mint-inp|ut-ring-|
|00001d60| 69 6e 64 65 78 20 63 6f | 6d 69 6e 74 2d 6d 61 74 |index co|mint-mat|
|00001d70| 63 68 69 6e 67 2d 69 6e | 70 75 74 2d 66 72 6f 6d |ching-in|put-from|
|00001d80| 2d 69 6e 70 75 74 2d 73 | 74 72 69 6e 67 20 63 6f |-input-s|tring co|
|00001d90| 6d 69 6e 74 2d 69 6e 70 | 75 74 2d 61 75 74 6f 65 |mint-inp|ut-autoe|
|00001da0| 78 70 61 6e 64 20 63 6f | 6d 69 6e 74 2d 69 6e 70 |xpand co|mint-inp|
|00001db0| 75 74 2d 69 67 6e 6f 72 | 65 64 75 70 73 20 63 6f |ut-ignor|edups co|
|00001dc0| 6d 69 6e 74 2d 64 65 6c | 69 6d 69 74 65 72 2d 61 |mint-del|imiter-a|
|00001dd0| 72 67 75 6d 65 6e 74 2d | 6c 69 73 74 20 63 6f 6d |rgument-|list com|
|00001de0| 69 6e 74 2d 64 79 6e 61 | 6d 69 63 2d 63 6f 6d 70 |int-dyna|mic-comp|
|00001df0| 6c 65 74 65 2d 66 75 6e | 63 74 69 6f 6e 73 20 63 |lete-fun|ctions c|
|00001e00| 6f 6d 69 6e 74 2d 63 6f | 6d 70 6c 65 74 69 6f 6e |omint-co|mpletion|
|00001e10| 2d 66 69 67 6e 6f 72 65 | 20 63 6f 6d 69 6e 74 2d |-fignore| comint-|
|00001e20| 67 65 74 2d 6f 6c 64 2d | 69 6e 70 75 74 20 63 6f |get-old-|input co|
|00001e30| 6d 69 6e 74 2d 69 6e 70 | 75 74 2d 66 69 6c 74 65 |mint-inp|ut-filte|
|00001e40| 72 2d 66 75 6e 63 74 69 | 6f 6e 73 20 63 6f 6d 69 |r-functi|ons comi|
|00001e50| 6e 74 2d 69 6e 70 75 74 | 2d 66 69 6c 74 65 72 20 |nt-input|-filter |
|00001e60| 63 6f 6d 69 6e 74 2d 69 | 6e 70 75 74 2d 73 65 6e |comint-i|nput-sen|
|00001e70| 64 65 72 20 63 6f 6d 69 | 6e 74 2d 65 6f 6c 2d 6f |der comi|nt-eol-o|
|00001e80| 6e 2d 73 65 6e 64 20 63 | 6f 6d 69 6e 74 2d 73 63 |n-send c|omint-sc|
|00001e90| 72 6f 6c 6c 2d 74 6f 2d | 62 6f 74 74 6f 6d 2d 6f |roll-to-|bottom-o|
|00001ea0| 6e 2d 69 6e 70 75 74 20 | 63 6f 6d 69 6e 74 2d 73 |n-input |comint-s|
|00001eb0| 63 72 6f 6c 6c 2d 74 6f | 2d 62 6f 74 74 6f 6d 2d |croll-to|-bottom-|
|00001ec0| 6f 6e 2d 6f 75 74 70 75 | 74 20 63 6f 6d 69 6e 74 |on-outpu|t comint|
|00001ed0| 2d 73 63 72 6f 6c 6c 2d | 73 68 6f 77 2d 6d 61 78 |-scroll-|show-max|
|00001ee0| 69 6d 75 6d 2d 6f 75 74 | 70 75 74 20 70 72 65 2d |imum-out|put pre-|
|00001ef0| 63 6f 6d 6d 61 6e 64 2d | 68 6f 6f 6b 20 61 64 64 |command-|hook add|
|00001f00| 2d 68 6f 6f 6b 20 63 6f | 6d 69 6e 74 2d 70 72 65 |-hook co|mint-pre|
|00001f10| 69 6e 70 75 74 2d 73 63 | 72 6f 6c 6c 2d 74 6f 2d |input-sc|roll-to-|
|00001f20| 62 6f 74 74 6f 6d 20 63 | 6f 6d 69 6e 74 2d 6f 75 |bottom c|omint-ou|
|00001f30| 74 70 75 74 2d 66 69 6c | 74 65 72 2d 66 75 6e 63 |tput-fil|ter-func|
|00001f40| 74 69 6f 6e 73 20 63 6f | 6d 69 6e 74 2d 70 74 79 |tions co|mint-pty|
|00001f50| 70 20 63 6f 6d 69 6e 74 | 2d 65 78 65 63 2d 68 6f |p comint|-exec-ho|
|00001f60| 6f 6b 20 63 6f 6d 69 6e | 74 2d 70 72 6f 63 65 73 |ok comin|t-proces|
|00001f70| 73 2d 65 63 68 6f 65 73 | 20 72 75 6e 2d 68 6f 6f |s-echoes| run-hoo|
|00001f80| 6b 73 20 63 6f 6d 69 6e | 74 2d 6d 6f 64 65 2d 68 |ks comin|t-mode-h|
|00001f90| 6f 6f 6b 5d 20 34 20 22 | 5c 0a 4d 61 6a 6f 72 20 |ook] 4 "|\.Major |
|00001fa0| 6d 6f 64 65 20 66 6f 72 | 20 69 6e 74 65 72 61 63 |mode for| interac|
|00001fb0| 74 69 6e 67 20 77 69 74 | 68 20 61 6e 20 69 6e 66 |ting wit|h an inf|
|00001fc0| 65 72 69 6f 72 20 69 6e | 74 65 72 70 72 65 74 65 |erior in|terprete|
|00001fd0| 72 2e 0a 49 6e 74 65 72 | 70 72 65 74 65 72 20 6e |r..Inter|preter n|
|00001fe0| 61 6d 65 20 69 73 20 73 | 61 6d 65 20 61 73 20 62 |ame is s|ame as b|
|00001ff0| 75 66 66 65 72 20 6e 61 | 6d 65 2c 20 73 61 6e 73 |uffer na|me, sans|
|00002000| 20 74 68 65 20 61 73 74 | 65 72 69 73 6b 73 2e 0a | the ast|erisks..|
|00002010| 52 65 74 75 72 6e 20 61 | 74 20 65 6e 64 20 6f 66 |Return a|t end of|
|00002020| 20 62 75 66 66 65 72 20 | 73 65 6e 64 73 20 6c 69 | buffer |sends li|
|00002030| 6e 65 20 61 73 20 69 6e | 70 75 74 2e 0a 52 65 74 |ne as in|put..Ret|
|00002040| 75 72 6e 20 6e 6f 74 20 | 61 74 20 65 6e 64 20 63 |urn not |at end c|
|00002050| 6f 70 69 65 73 20 72 65 | 73 74 20 6f 66 20 6c 69 |opies re|st of li|
|00002060| 6e 65 20 74 6f 20 65 6e | 64 20 61 6e 64 20 73 65 |ne to en|d and se|
|00002070| 6e 64 73 20 69 74 2e 0a | 53 65 74 74 69 6e 67 20 |nds it..|Setting |
|00002080| 76 61 72 69 61 62 6c 65 | 20 60 63 6f 6d 69 6e 74 |variable| `comint|
|00002090| 2d 65 6f 6c 2d 6f 6e 2d | 73 65 6e 64 27 20 6d 65 |-eol-on-|send' me|
|000020a0| 61 6e 73 20 6a 75 6d 70 | 20 74 6f 20 74 68 65 20 |ans jump| to the |
|000020b0| 65 6e 64 20 6f 66 20 74 | 68 65 20 6c 69 6e 65 0a |end of t|he line.|
|000020c0| 62 65 66 6f 72 65 20 73 | 75 62 6d 69 74 74 69 6e |before s|ubmittin|
|000020d0| 67 20 6e 65 77 20 69 6e | 70 75 74 2e 0a 0a 54 68 |g new in|put...Th|
|000020e0| 69 73 20 6d 6f 64 65 20 | 69 73 20 63 75 73 74 6f |is mode |is custo|
|000020f0| 6d 69 73 65 64 20 74 6f | 20 63 72 65 61 74 65 20 |mised to| create |
|00002100| 6d 61 6a 6f 72 20 6d 6f | 64 65 73 20 73 75 63 68 |major mo|des such|
|00002110| 20 61 73 20 49 6e 66 65 | 72 69 6f 72 20 4c 69 73 | as Infe|rior Lis|
|00002120| 70 0a 6d 6f 64 65 2c 20 | 53 68 65 6c 6c 20 6d 6f |p.mode, |Shell mo|
|00002130| 64 65 2c 20 65 74 63 2e | 20 20 54 68 69 73 20 63 |de, etc.| This c|
|00002140| 61 6e 20 62 65 20 64 6f | 6e 65 20 62 79 20 73 65 |an be do|ne by se|
|00002150| 74 74 69 6e 67 20 74 68 | 65 20 68 6f 6f 6b 73 0a |tting th|e hooks.|
|00002160| 60 63 6f 6d 69 6e 74 2d | 69 6e 70 75 74 2d 66 69 |`comint-|input-fi|
|00002170| 6c 74 65 72 2d 66 75 6e | 63 74 69 6f 6e 73 27 2c |lter-fun|ctions',|
|00002180| 20 60 63 6f 6d 69 6e 74 | 2d 69 6e 70 75 74 2d 66 | `comint|-input-f|
|00002190| 69 6c 74 65 72 27 2c 20 | 60 63 6f 6d 69 6e 74 2d |ilter', |`comint-|
|000021a0| 69 6e 70 75 74 2d 73 65 | 6e 64 65 72 27 0a 61 6e |input-se|nder'.an|
|000021b0| 64 20 60 63 6f 6d 69 6e | 74 2d 67 65 74 2d 6f 6c |d `comin|t-get-ol|
|000021c0| 64 2d 69 6e 70 75 74 27 | 20 74 6f 20 61 70 70 72 |d-input'| to appr|
|000021d0| 6f 70 72 69 61 74 65 20 | 66 75 6e 63 74 69 6f 6e |opriate |function|
|000021e0| 73 2c 20 61 6e 64 20 74 | 68 65 20 76 61 72 69 61 |s, and t|he varia|
|000021f0| 62 6c 65 0a 60 63 6f 6d | 69 6e 74 2d 70 72 6f 6d |ble.`com|int-prom|
|00002200| 70 74 2d 72 65 67 65 78 | 70 27 20 74 6f 20 74 68 |pt-regex|p' to th|
|00002210| 65 20 61 70 70 72 6f 70 | 72 69 61 74 65 20 72 65 |e approp|riate re|
|00002220| 67 75 6c 61 72 20 65 78 | 70 72 65 73 73 69 6f 6e |gular ex|pression|
|00002230| 2e 0a 0a 41 6e 20 69 6e | 70 75 74 20 68 69 73 74 |...An in|put hist|
|00002240| 6f 72 79 20 69 73 20 6d | 61 69 6e 74 61 69 6e 65 |ory is m|aintaine|
|00002250| 64 20 6f 66 20 73 69 7a | 65 20 60 63 6f 6d 69 6e |d of siz|e `comin|
|00002260| 74 2d 69 6e 70 75 74 2d | 72 69 6e 67 2d 73 69 7a |t-input-|ring-siz|
|00002270| 65 27 2c 20 61 6e 64 0a | 63 61 6e 20 62 65 20 61 |e', and.|can be a|
|00002280| 63 63 65 73 73 65 64 20 | 77 69 74 68 20 74 68 65 |ccessed |with the|
|00002290| 20 63 6f 6d 6d 61 6e 64 | 73 20 5c 5c 5b 63 6f 6d | command|s \\[com|
|000022a0| 69 6e 74 2d 6e 65 78 74 | 2d 69 6e 70 75 74 5d 2c |int-next|-input],|
|000022b0| 20 5c 5c 5b 63 6f 6d 69 | 6e 74 2d 70 72 65 76 69 | \\[comi|nt-previ|
|000022c0| 6f 75 73 2d 69 6e 70 75 | 74 5d 2c 20 61 6e 64 20 |ous-inpu|t], and |
|000022d0| 5c 5c 5b 63 6f 6d 69 6e | 74 2d 64 79 6e 61 6d 69 |\\[comin|t-dynami|
|000022e0| 63 2d 6c 69 73 74 2d 69 | 6e 70 75 74 2d 72 69 6e |c-list-i|nput-rin|
|000022f0| 67 5d 2e 0a 49 6e 70 75 | 74 20 72 69 6e 67 20 68 |g]..Inpu|t ring h|
|00002300| 69 73 74 6f 72 79 20 65 | 78 70 61 6e 73 69 6f 6e |istory e|xpansion|
|00002310| 20 63 61 6e 20 62 65 20 | 61 63 68 69 65 76 65 64 | can be |achieved|
|00002320| 20 77 69 74 68 20 74 68 | 65 20 63 6f 6d 6d 61 6e | with th|e comman|
|00002330| 64 73 0a 5c 5c 5b 63 6f | 6d 69 6e 74 2d 72 65 70 |ds.\\[co|mint-rep|
|00002340| 6c 61 63 65 2d 62 79 2d | 65 78 70 61 6e 64 65 64 |lace-by-|expanded|
|00002350| 2d 68 69 73 74 6f 72 79 | 5d 20 6f 72 20 5c 5c 5b |-history|] or \\[|
|00002360| 63 6f 6d 69 6e 74 2d 6d | 61 67 69 63 2d 73 70 61 |comint-m|agic-spa|
|00002370| 63 65 5d 2e 0a 49 6e 70 | 75 74 20 72 69 6e 67 20 |ce]..Inp|ut ring |
|00002380| 65 78 70 61 6e 73 69 6f | 6e 20 69 73 20 63 6f 6e |expansio|n is con|
|00002390| 74 72 6f 6c 6c 65 64 20 | 62 79 20 74 68 65 20 76 |trolled |by the v|
|000023a0| 61 72 69 61 62 6c 65 20 | 60 63 6f 6d 69 6e 74 2d |ariable |`comint-|
|000023b0| 69 6e 70 75 74 2d 61 75 | 74 6f 65 78 70 61 6e 64 |input-au|toexpand|
|000023c0| 27 2c 0a 61 6e 64 20 61 | 64 64 69 74 69 6f 6e 20 |',.and a|ddition |
|000023d0| 69 73 20 63 6f 6e 74 72 | 6f 6c 6c 65 64 20 62 79 |is contr|olled by|
|000023e0| 20 74 68 65 20 76 61 72 | 69 61 62 6c 65 20 60 63 | the var|iable `c|
|000023f0| 6f 6d 69 6e 74 2d 69 6e | 70 75 74 2d 69 67 6e 6f |omint-in|put-igno|
|00002400| 72 65 64 75 70 73 27 2e | 0a 0a 43 6f 6d 6d 61 6e |redups'.|..Comman|
|00002410| 64 73 20 77 69 74 68 20 | 6e 6f 20 64 65 66 61 75 |ds with |no defau|
|00002420| 6c 74 20 6b 65 79 20 62 | 69 6e 64 69 6e 67 73 20 |lt key b|indings |
|00002430| 69 6e 63 6c 75 64 65 20 | 60 73 65 6e 64 2d 69 6e |include |`send-in|
|00002440| 76 69 73 69 62 6c 65 27 | 2c 0a 60 63 6f 6d 69 6e |visible'|,.`comin|
|00002450| 74 2d 64 79 6e 61 6d 69 | 63 2d 63 6f 6d 70 6c 65 |t-dynami|c-comple|
|00002460| 74 65 27 2c 20 60 63 6f | 6d 69 6e 74 2d 64 79 6e |te', `co|mint-dyn|
|00002470| 61 6d 69 63 2d 6c 69 73 | 74 2d 66 69 6c 65 6e 61 |amic-lis|t-filena|
|00002480| 6d 65 2d 63 6f 6d 70 6c | 65 74 69 6f 6e 73 27 2c |me-compl|etions',|
|00002490| 20 61 6e 64 20 0a 60 63 | 6f 6d 69 6e 74 2d 6d 61 | and .`c|omint-ma|
|000024a0| 67 69 63 2d 73 70 61 63 | 65 27 2e 0a 0a 49 6e 70 |gic-spac|e'...Inp|
|000024b0| 75 74 20 74 6f 2c 20 61 | 6e 64 20 6f 75 74 70 75 |ut to, a|nd outpu|
|000024c0| 74 20 66 72 6f 6d 2c 20 | 74 68 65 20 73 75 62 70 |t from, |the subp|
|000024d0| 72 6f 63 65 73 73 20 63 | 61 6e 20 63 61 75 73 65 |rocess c|an cause|
|000024e0| 20 74 68 65 20 77 69 6e | 64 6f 77 20 74 6f 20 73 | the win|dow to s|
|000024f0| 63 72 6f 6c 6c 20 74 6f | 0a 74 68 65 20 65 6e 64 |croll to|.the end|
|00002500| 20 6f 66 20 74 68 65 20 | 62 75 66 66 65 72 2e 20 | of the |buffer. |
|00002510| 20 53 65 65 20 76 61 72 | 69 61 62 6c 65 73 20 60 | See var|iables `|
|00002520| 63 6f 6d 69 6e 74 2d 6f | 75 74 70 75 74 2d 66 69 |comint-o|utput-fi|
|00002530| 6c 74 65 72 2d 66 75 6e | 63 74 69 6f 6e 73 27 2c |lter-fun|ctions',|
|00002540| 0a 60 63 6f 6d 69 6e 74 | 2d 73 63 72 6f 6c 6c 2d |.`comint|-scroll-|
|00002550| 74 6f 2d 62 6f 74 74 6f | 6d 2d 6f 6e 2d 69 6e 70 |to-botto|m-on-inp|
|00002560| 75 74 27 2c 20 61 6e 64 | 20 60 63 6f 6d 69 6e 74 |ut', and| `comint|
|00002570| 2d 73 63 72 6f 6c 6c 2d | 74 6f 2d 62 6f 74 74 6f |-scroll-|to-botto|
|00002580| 6d 2d 6f 6e 2d 6f 75 74 | 70 75 74 27 2e 0a 0a 49 |m-on-out|put'...I|
|00002590| 66 20 79 6f 75 20 61 63 | 63 69 64 65 6e 74 61 6c |f you ac|cidental|
|000025a0| 6c 79 20 73 75 73 70 65 | 6e 64 20 79 6f 75 72 20 |ly suspe|nd your |
|000025b0| 70 72 6f 63 65 73 73 2c | 20 75 73 65 20 5c 5c 5b |process,| use \\[|
|000025c0| 63 6f 6d 69 6e 74 2d 63 | 6f 6e 74 69 6e 75 65 2d |comint-c|ontinue-|
|000025d0| 73 75 62 6a 6f 62 5d 0a | 74 6f 20 63 6f 6e 74 69 |subjob].|to conti|
|000025e0| 6e 75 65 20 69 74 2e 0a | 0a 5c 5c 7b 63 6f 6d 69 |nue it..|.\\{comi|
|000025f0| 6e 74 2d 6d 6f 64 65 2d | 6d 61 70 7d 0a 0a 45 6e |nt-mode-|map}..En|
|00002600| 74 72 79 20 74 6f 20 74 | 68 69 73 20 6d 6f 64 65 |try to t|his mode|
|00002610| 20 72 75 6e 73 20 74 68 | 65 20 68 6f 6f 6b 73 20 | runs th|e hooks |
|00002620| 6f 6e 20 60 63 6f 6d 69 | 6e 74 2d 6d 6f 64 65 2d |on `comi|nt-mode-|
|00002630| 68 6f 6f 6b 27 2e 22 20 | 6e 69 6c 5d 29 0a 28 62 |hook'." |nil]).(b|
|00002640| 79 74 65 2d 63 6f 64 65 | 20 22 08 84 b6 01 c1 20 |yte-code| "..... |
|00002650| 10 c2 08 c3 c4 23 88 c2 | 08 c5 c6 23 88 c2 08 c7 |.....#..|...#....|
|00002660| c8 23 88 c2 08 c9 ca 23 | 88 c2 08 cb cc 23 88 c2 |.#.....#|.....#..|
|00002670| 08 cd ce 23 88 c2 08 cf | d0 23 88 c2 08 d1 d2 23 |...#....|.#.....#|
|00002680| 88 c2 08 d3 d4 23 88 c2 | 08 d5 d6 23 88 c2 08 d7 |.....#..|...#....|
|00002690| d8 23 88 c2 08 d9 da 23 | 88 c2 08 db dc 23 88 c2 |.#.....#|.....#..|
|000026a0| 08 dd de 23 88 c2 08 df | e0 23 88 c2 08 e1 e2 23 |...#....|.#.....#|
|000026b0| 88 c2 08 e3 e4 23 88 c2 | 08 e5 d0 23 88 c2 08 e6 |.....#..|...#....|
|000026c0| e7 23 88 c2 08 e8 e9 23 | 88 c2 08 ea eb 23 88 c2 |.#.....#|.....#..|
|000026d0| 08 ec ed 23 88 c2 08 ee | ef 23 88 c2 08 f0 f1 c1 |...#....|.#......|
|000026e0| f1 21 42 23 88 c2 08 f2 | f3 23 88 c2 08 f4 f5 23 |.!B#....|.#.....#|
|000026f0| 88 c2 08 f6 f7 23 88 c2 | 08 f8 f9 23 88 c2 08 fa |.....#..|...#....|
|00002700| fb c1 fb 21 42 23 88 c2 | 08 fc fd 23 88 c2 08 fe |...!B#..|...#....|
|00002710| ff 23 88 c2 08 81 40 00 | 81 41 00 23 88 c2 08 81 |.#....@.|.A.#....|
|00002720| 42 00 81 43 00 23 88 c2 | 08 81 44 00 81 45 00 23 |B..C.#..|..D..E.#|
|00002730| 88 c2 08 81 46 00 81 47 | 00 23 88 c2 08 81 48 00 |....F..G|.#....H.|
|00002740| 81 49 00 23 88 c2 08 81 | 4a 00 81 4b 00 23 88 c2 |.I.#....|J..K.#..|
|00002750| 08 81 4c 00 81 4d 00 23 | 88 c2 08 81 4e 00 81 4f |..L..M.#|....N..O|
|00002760| 00 23 88 c2 08 81 50 00 | 81 51 00 23 88 c2 08 81 |.#....P.|.Q.#....|
|00002770| 52 00 81 53 00 23 88 c2 | 08 81 54 00 81 55 00 23 |R..S.#..|..T..U.#|
|00002780| 88 c2 08 81 56 00 81 57 | 00 23 88 c2 08 81 58 00 |....V..W|.#....X.|
|00002790| 81 59 00 23 88 c2 08 81 | 5a 00 81 5b 00 23 88 c2 |.Y.#....|Z..[.#..|
|000027a0| 08 81 5c 5c 00 81 5d 00 | 23 88 c2 08 81 5e 00 81 |..\\..].|#....^..|
|000027b0| 5f 00 c1 81 5f 00 21 42 | 23 88 c2 08 81 60 00 81 |_..._.!B|#....`..|
|000027c0| 61 00 23 88 c2 08 81 62 | 00 81 63 00 23 88 c2 08 |a.#....b|..c.#...|
|000027d0| 81 64 00 81 65 00 23 88 | c2 08 81 66 00 81 67 00 |.d..e.#.|...f..g.|
|000027e0| 23 88 c2 08 81 68 00 81 | 69 00 23 88 c2 08 81 6a |#....h..|i.#....j|
|000027f0| 00 81 6b 00 23 88 81 6c | 00 81 6d 00 0e 6e 5c 22 |..k.#..l|..m..n\"|
|00002800| 16 6e c1 87 22 20 5b 63 | 6f 6d 69 6e 74 2d 6d 6f |.n.." [c|omint-mo|
|00002810| 64 65 2d 6d 61 70 20 6d | 61 6b 65 2d 73 70 61 72 |de-map m|ake-spar|
|00002820| 73 65 2d 6b 65 79 6d 61 | 70 20 64 65 66 69 6e 65 |se-keyma|p define|
|00002830| 2d 6b 65 79 20 22 1b 70 | 22 20 63 6f 6d 69 6e 74 |-key ".p|" comint|
|00002840| 2d 70 72 65 76 69 6f 75 | 73 2d 69 6e 70 75 74 20 |-previou|s-input |
|00002850| 22 1b 6e 22 20 63 6f 6d | 69 6e 74 2d 6e 65 78 74 |".n" com|int-next|
|00002860| 2d 69 6e 70 75 74 20 22 | 1b 72 22 20 63 6f 6d 69 |-input "|.r" comi|
|00002870| 6e 74 2d 70 72 65 76 69 | 6f 75 73 2d 6d 61 74 63 |nt-previ|ous-matc|
|00002880| 68 69 6e 67 2d 69 6e 70 | 75 74 20 22 1b 73 22 20 |hing-inp|ut ".s" |
|00002890| 63 6f 6d 69 6e 74 2d 6e | 65 78 74 2d 6d 61 74 63 |comint-n|ext-matc|
|000028a0| 68 69 6e 67 2d 69 6e 70 | 75 74 20 5b 2d 38 31 32 |hing-inp|ut [-812|
|000028b0| 36 33 35 30 5d 20 63 6f | 6d 69 6e 74 2d 70 72 65 |6350] co|mint-pre|
|000028c0| 76 69 6f 75 73 2d 6d 61 | 74 63 68 69 6e 67 2d 69 |vious-ma|tching-i|
|000028d0| 6e 70 75 74 2d 66 72 6f | 6d 2d 69 6e 70 75 74 20 |nput-fro|m-input |
|000028e0| 5b 2d 38 31 32 36 33 34 | 39 5d 20 63 6f 6d 69 6e |[-812634|9] comin|
|000028f0| 74 2d 6e 65 78 74 2d 6d | 61 74 63 68 69 6e 67 2d |t-next-m|atching-|
|00002900| 69 6e 70 75 74 2d 66 72 | 6f 6d 2d 69 6e 70 75 74 |input-fr|om-input|
|00002910| 20 22 1b 5c 66 22 20 63 | 6f 6d 69 6e 74 2d 73 68 | ".\f" c|omint-sh|
|00002920| 6f 77 2d 6f 75 74 70 75 | 74 20 22 0d 22 20 63 6f |ow-outpu|t "." co|
|00002930| 6d 69 6e 74 2d 73 65 6e | 64 2d 69 6e 70 75 74 20 |mint-sen|d-input |
|00002940| 22 04 22 20 63 6f 6d 69 | 6e 74 2d 64 65 6c 63 68 |"." comi|nt-delch|
|00002950| 61 72 2d 6f 72 2d 6d 61 | 79 62 65 2d 65 6f 66 20 |ar-or-ma|ybe-eof |
|00002960| 22 01 22 20 63 6f 6d 69 | 6e 74 2d 62 6f 6c 20 22 |"." comi|nt-bol "|
|00002970| 03 15 22 20 63 6f 6d 69 | 6e 74 2d 6b 69 6c 6c 2d |.." comi|nt-kill-|
|00002980| 69 6e 70 75 74 20 22 03 | 17 22 20 62 61 63 6b 77 |input ".|." backw|
|00002990| 61 72 64 2d 6b 69 6c 6c | 2d 77 6f 72 64 20 22 03 |ard-kill|-word ".|
|000029a0| 03 22 20 63 6f 6d 69 6e | 74 2d 69 6e 74 65 72 72 |." comin|t-interr|
|000029b0| 75 70 74 2d 73 75 62 6a | 6f 62 20 22 03 1a 22 20 |upt-subj|ob ".." |
|000029c0| 63 6f 6d 69 6e 74 2d 73 | 74 6f 70 2d 73 75 62 6a |comint-s|top-subj|
|000029d0| 6f 62 20 22 03 1c 22 20 | 63 6f 6d 69 6e 74 2d 71 |ob ".." |comint-q|
|000029e0| 75 69 74 2d 73 75 62 6a | 6f 62 20 22 03 0d 22 20 |uit-subj|ob ".." |
|000029f0| 63 6f 6d 69 6e 74 2d 63 | 6f 70 79 2d 6f 6c 64 2d |comint-c|opy-old-|
|00002a00| 69 6e 70 75 74 20 22 03 | 0f 22 20 63 6f 6d 69 6e |input ".|." comin|
|00002a10| 74 2d 6b 69 6c 6c 2d 6f | 75 74 70 75 74 20 22 03 |t-kill-o|utput ".|
|00002a20| 12 22 20 22 03 05 22 20 | 63 6f 6d 69 6e 74 2d 73 |." ".." |comint-s|
|00002a30| 68 6f 77 2d 6d 61 78 69 | 6d 75 6d 2d 6f 75 74 70 |how-maxi|mum-outp|
|00002a40| 75 74 20 22 03 5c 66 22 | 20 63 6f 6d 69 6e 74 2d |ut ".\f"| comint-|
|00002a50| 64 79 6e 61 6d 69 63 2d | 6c 69 73 74 2d 69 6e 70 |dynamic-|list-inp|
|00002a60| 75 74 2d 72 69 6e 67 20 | 22 03 0e 22 20 63 6f 6d |ut-ring |".." com|
|00002a70| 69 6e 74 2d 6e 65 78 74 | 2d 70 72 6f 6d 70 74 20 |int-next|-prompt |
|00002a80| 22 03 10 22 20 63 6f 6d | 69 6e 74 2d 70 72 65 76 |".." com|int-prev|
|00002a90| 69 6f 75 73 2d 70 72 6f | 6d 70 74 20 22 03 04 22 |ious-pro|mpt ".."|
|00002aa0| 20 63 6f 6d 69 6e 74 2d | 73 65 6e 64 2d 65 6f 66 | comint-|send-eof|
|00002ab0| 20 5b 6d 65 6e 75 2d 62 | 61 72 20 63 6f 6d 70 6c | [menu-b|ar compl|
|00002ac0| 65 74 69 6f 6e 5d 20 22 | 43 6f 6d 70 6c 65 74 65 |etion] "|Complete|
|00002ad0| 22 20 5b 6d 65 6e 75 2d | 62 61 72 20 63 6f 6d 70 |" [menu-|bar comp|
|00002ae0| 6c 65 74 69 6f 6e 20 63 | 6f 6d 70 6c 65 74 65 2d |letion c|omplete-|
|00002af0| 65 78 70 61 6e 64 5d 20 | 28 22 45 78 70 61 6e 64 |expand] |("Expand|
|00002b00| 20 46 69 6c 65 20 4e 61 | 6d 65 22 20 2e 20 63 6f | File Na|me" . co|
|00002b10| 6d 69 6e 74 2d 72 65 70 | 6c 61 63 65 2d 62 79 2d |mint-rep|lace-by-|
|00002b20| 65 78 70 61 6e 64 65 64 | 2d 66 69 6c 65 6e 61 6d |expanded|-filenam|
|00002b30| 65 29 20 5b 6d 65 6e 75 | 2d 62 61 72 20 63 6f 6d |e) [menu|-bar com|
|00002b40| 70 6c 65 74 69 6f 6e 20 | 63 6f 6d 70 6c 65 74 65 |pletion |complete|
|00002b50| 2d 6c 69 73 74 69 6e 67 | 5d 20 28 22 46 69 6c 65 |-listing|] ("File|
|00002b60| 20 43 6f 6d 70 6c 65 74 | 69 6f 6e 20 4c 69 73 74 | Complet|ion List|
|00002b70| 69 6e 67 22 20 2e 20 63 | 6f 6d 69 6e 74 2d 64 79 |ing" . c|omint-dy|
|00002b80| 6e 61 6d 69 63 2d 6c 69 | 73 74 2d 66 69 6c 65 6e |namic-li|st-filen|
|00002b90| 61 6d 65 2d 63 6f 6d 70 | 6c 65 74 69 6f 6e 73 29 |ame-comp|letions)|
|00002ba0| 20 5b 6d 65 6e 75 2d 62 | 61 72 20 63 6f 6d 70 6c | [menu-b|ar compl|
|00002bb0| 65 74 69 6f 6e 20 63 6f | 6d 70 6c 65 74 65 2d 66 |etion co|mplete-f|
|00002bc0| 69 6c 65 5d 20 28 22 43 | 6f 6d 70 6c 65 74 65 20 |ile] ("C|omplete |
|00002bd0| 46 69 6c 65 20 4e 61 6d | 65 22 20 2e 20 63 6f 6d |File Nam|e" . com|
|00002be0| 69 6e 74 2d 64 79 6e 61 | 6d 69 63 2d 63 6f 6d 70 |int-dyna|mic-comp|
|00002bf0| 6c 65 74 65 2d 66 69 6c | 65 6e 61 6d 65 29 20 5b |lete-fil|ename) [|
|00002c00| 6d 65 6e 75 2d 62 61 72 | 20 63 6f 6d 70 6c 65 74 |menu-bar| complet|
|00002c10| 69 6f 6e 20 63 6f 6d 70 | 6c 65 74 65 5d 20 28 22 |ion comp|lete] ("|
|00002c20| 43 6f 6d 70 6c 65 74 65 | 20 42 65 66 6f 72 65 20 |Complete| Before |
|00002c30| 50 6f 69 6e 74 22 20 2e | 20 63 6f 6d 69 6e 74 2d |Point" .| comint-|
|00002c40| 64 79 6e 61 6d 69 63 2d | 63 6f 6d 70 6c 65 74 65 |dynamic-|complete|
|00002c50| 29 20 5b 6d 65 6e 75 2d | 62 61 72 20 69 6e 6f 75 |) [menu-|bar inou|
|00002c60| 74 5d 20 22 49 6e 2f 4f | 75 74 22 20 5b 6d 65 6e |t] "In/O|ut" [men|
|00002c70| 75 2d 62 61 72 20 69 6e | 6f 75 74 20 6b 69 6c 6c |u-bar in|out kill|
|00002c80| 2d 6f 75 74 70 75 74 5d | 20 28 22 4b 69 6c 6c 20 |-output]| ("Kill |
|00002c90| 43 75 72 72 65 6e 74 20 | 4f 75 74 70 75 74 20 47 |Current |Output G|
|00002ca0| 72 6f 75 70 22 20 2e 20 | 63 6f 6d 69 6e 74 2d 6b |roup" . |comint-k|
|00002cb0| 69 6c 6c 2d 6f 75 74 70 | 75 74 29 20 5b 6d 65 6e |ill-outp|ut) [men|
|00002cc0| 75 2d 62 61 72 20 69 6e | 6f 75 74 20 6e 65 78 74 |u-bar in|out next|
|00002cd0| 2d 70 72 6f 6d 70 74 5d | 20 28 22 46 6f 72 77 61 |-prompt]| ("Forwa|
|00002ce0| 72 64 20 4f 75 74 70 75 | 74 20 47 72 6f 75 70 22 |rd Outpu|t Group"|
|00002cf0| 20 2e 20 63 6f 6d 69 6e | 74 2d 6e 65 78 74 2d 70 | . comin|t-next-p|
|00002d00| 72 6f 6d 70 74 29 20 5b | 6d 65 6e 75 2d 62 61 72 |rompt) [|menu-bar|
|00002d10| 20 69 6e 6f 75 74 20 70 | 72 65 76 69 6f 75 73 2d | inout p|revious-|
|00002d20| 70 72 6f 6d 70 74 5d 20 | 28 22 42 61 63 6b 77 61 |prompt] |("Backwa|
|00002d30| 72 64 20 4f 75 74 70 75 | 74 20 47 72 6f 75 70 22 |rd Outpu|t Group"|
|00002d40| 20 2e 20 63 6f 6d 69 6e | 74 2d 70 72 65 76 69 6f | . comin|t-previo|
|00002d50| 75 73 2d 70 72 6f 6d 70 | 74 29 20 5b 6d 65 6e 75 |us-promp|t) [menu|
|00002d60| 2d 62 61 72 20 69 6e 6f | 75 74 20 73 68 6f 77 2d |-bar ino|ut show-|
|00002d70| 6d 61 78 69 6d 75 6d 2d | 6f 75 74 70 75 74 5d 20 |maximum-|output] |
|00002d80| 28 22 53 68 6f 77 20 4d | 61 78 69 6d 75 6d 20 4f |("Show M|aximum O|
|00002d90| 75 74 70 75 74 22 20 2e | 20 63 6f 6d 69 6e 74 2d |utput" .| comint-|
|00002da0| 73 68 6f 77 2d 6d 61 78 | 69 6d 75 6d 2d 6f 75 74 |show-max|imum-out|
|00002db0| 70 75 74 29 20 5b 6d 65 | 6e 75 2d 62 61 72 20 69 |put) [me|nu-bar i|
|00002dc0| 6e 6f 75 74 20 73 68 6f | 77 2d 6f 75 74 70 75 74 |nout sho|w-output|
|00002dd0| 5d 20 28 22 53 68 6f 77 | 20 43 75 72 72 65 6e 74 |] ("Show| Current|
|00002de0| 20 4f 75 74 70 75 74 20 | 47 72 6f 75 70 22 20 2e | Output |Group" .|
|00002df0| 20 63 6f 6d 69 6e 74 2d | 73 68 6f 77 2d 6f 75 74 | comint-|show-out|
|00002e00| 70 75 74 29 20 5b 6d 65 | 6e 75 2d 62 61 72 20 69 |put) [me|nu-bar i|
|00002e10| 6e 6f 75 74 20 6b 69 6c | 6c 2d 69 6e 70 75 74 5d |nout kil|l-input]|
|00002e20| 20 28 22 4b 69 6c 6c 20 | 43 75 72 72 65 6e 74 20 | ("Kill |Current |
|00002e30| 49 6e 70 75 74 22 20 2e | 20 63 6f 6d 69 6e 74 2d |Input" .| comint-|
|00002e40| 6b 69 6c 6c 2d 69 6e 70 | 75 74 29 20 5b 6d 65 6e |kill-inp|ut) [men|
|00002e50| 75 2d 62 61 72 20 69 6e | 6f 75 74 20 63 6f 70 79 |u-bar in|out copy|
|00002e60| 2d 69 6e 70 75 74 5d 20 | 28 22 43 6f 70 79 20 4f |-input] |("Copy O|
|00002e70| 6c 64 20 49 6e 70 75 74 | 22 20 2e 20 63 6f 6d 69 |ld Input|" . comi|
|00002e80| 6e 74 2d 63 6f 70 79 2d | 6f 6c 64 2d 69 6e 70 75 |nt-copy-|old-inpu|
|00002e90| 74 29 20 5b 6d 65 6e 75 | 2d 62 61 72 20 69 6e 6f |t) [menu|-bar ino|
|00002ea0| 75 74 20 66 6f 72 77 61 | 72 64 2d 6d 61 74 63 68 |ut forwa|rd-match|
|00002eb0| 69 6e 67 2d 68 69 73 74 | 6f 72 79 5d 20 28 22 46 |ing-hist|ory] ("F|
|00002ec0| 6f 72 77 61 72 64 20 4d | 61 74 63 68 69 6e 67 20 |orward M|atching |
|00002ed0| 49 6e 70 75 74 2e 2e 2e | 22 20 2e 20 63 6f 6d 69 |Input...|" . comi|
|00002ee0| 6e 74 2d 66 6f 72 77 61 | 72 64 2d 6d 61 74 63 68 |nt-forwa|rd-match|
|00002ef0| 69 6e 67 2d 69 6e 70 75 | 74 29 20 5b 6d 65 6e 75 |ing-inpu|t) [menu|
|00002f00| 2d 62 61 72 20 69 6e 6f | 75 74 20 62 61 63 6b 77 |-bar ino|ut backw|
|00002f10| 61 72 64 2d 6d 61 74 63 | 68 69 6e 67 2d 68 69 73 |ard-matc|hing-his|
|00002f20| 74 6f 72 79 5d 20 28 22 | 42 61 63 6b 77 61 72 64 |tory] ("|Backward|
|00002f30| 20 4d 61 74 63 68 69 6e | 67 20 49 6e 70 75 74 2e | Matchin|g Input.|
|00002f40| 2e 2e 22 20 2e 20 63 6f | 6d 69 6e 74 2d 62 61 63 |.." . co|mint-bac|
|00002f50| 6b 77 61 72 64 2d 6d 61 | 74 63 68 69 6e 67 2d 69 |kward-ma|tching-i|
|00002f60| 6e 70 75 74 29 20 5b 6d | 65 6e 75 2d 62 61 72 20 |nput) [m|enu-bar |
|00002f70| 69 6e 6f 75 74 20 6e 65 | 78 74 2d 6d 61 74 63 68 |inout ne|xt-match|
|00002f80| 69 6e 67 2d 68 69 73 74 | 6f 72 79 5d 20 28 22 4e |ing-hist|ory] ("N|
|00002f90| 65 78 74 20 4d 61 74 63 | 68 69 6e 67 20 49 6e 70 |ext Matc|hing Inp|
|00002fa0| 75 74 2e 2e 2e 22 20 2e | 20 63 6f 6d 69 6e 74 2d |ut..." .| comint-|
|00002fb0| 6e 65 78 74 2d 6d 61 74 | 63 68 69 6e 67 2d 69 6e |next-mat|ching-in|
|00002fc0| 70 75 74 29 20 5b 6d 65 | 6e 75 2d 62 61 72 20 69 |put) [me|nu-bar i|
|00002fd0| 6e 6f 75 74 20 70 72 65 | 76 69 6f 75 73 2d 6d 61 |nout pre|vious-ma|
|00002fe0| 74 63 68 69 6e 67 2d 68 | 69 73 74 6f 72 79 5d 20 |tching-h|istory] |
|00002ff0| 28 22 50 72 65 76 69 6f | 75 73 20 4d 61 74 63 68 |("Previo|us Match|
|00003000| 69 6e 67 20 49 6e 70 75 | 74 2e 2e 2e 22 20 2e 20 |ing Inpu|t..." . |
|00003010| 63 6f 6d 69 6e 74 2d 70 | 72 65 76 69 6f 75 73 2d |comint-p|revious-|
|00003020| 6d 61 74 63 68 69 6e 67 | 2d 69 6e 70 75 74 29 20 |matching|-input) |
|00003030| 5b 6d 65 6e 75 2d 62 61 | 72 20 69 6e 6f 75 74 20 |[menu-ba|r inout |
|00003040| 6e 65 78 74 2d 6d 61 74 | 63 68 69 6e 67 2d 68 69 |next-mat|ching-hi|
|00003050| 73 74 6f 72 79 2d 66 72 | 6f 6d 2d 69 6e 70 75 74 |story-fr|om-input|
|00003060| 5d 20 28 22 4e 65 78 74 | 20 4d 61 74 63 68 69 6e |] ("Next| Matchin|
|00003070| 67 20 43 75 72 72 65 6e | 74 20 49 6e 70 75 74 22 |g Curren|t Input"|
|00003080| 20 2e 20 63 6f 6d 69 6e | 74 2d 6e 65 78 74 2d 6d | . comin|t-next-m|
|00003090| 61 74 63 68 69 6e 67 2d | 69 6e 70 75 74 2d 66 72 |atching-|input-fr|
|000030a0| 6f 6d 2d 69 6e 70 75 74 | 29 20 5b 6d 65 6e 75 2d |om-input|) [menu-|
|000030b0| 62 61 72 20 69 6e 6f 75 | 74 20 70 72 65 76 69 6f |bar inou|t previo|
|000030c0| 75 73 2d 6d 61 74 63 68 | 69 6e 67 2d 68 69 73 74 |us-match|ing-hist|
|000030d0| 6f 72 79 2d 66 72 6f 6d | 2d 69 6e 70 75 74 5d 20 |ory-from|-input] |
|000030e0| 28 22 50 72 65 76 69 6f | 75 73 20 4d 61 74 63 68 |("Previo|us Match|
|000030f0| 69 6e 67 20 43 75 72 72 | 65 6e 74 20 49 6e 70 75 |ing Curr|ent Inpu|
|00003100| 74 22 20 2e 20 63 6f 6d | 69 6e 74 2d 70 72 65 76 |t" . com|int-prev|
|00003110| 69 6f 75 73 2d 6d 61 74 | 63 68 69 6e 67 2d 69 6e |ious-mat|ching-in|
|00003120| 70 75 74 2d 66 72 6f 6d | 2d 69 6e 70 75 74 29 20 |put-from|-input) |
|00003130| 5b 6d 65 6e 75 2d 62 61 | 72 20 69 6e 6f 75 74 20 |[menu-ba|r inout |
|00003140| 6e 65 78 74 2d 68 69 73 | 74 6f 72 79 5d 20 28 22 |next-his|tory] ("|
|00003150| 4e 65 78 74 20 49 6e 70 | 75 74 22 20 2e 20 63 6f |Next Inp|ut" . co|
|00003160| 6d 69 6e 74 2d 6e 65 78 | 74 2d 69 6e 70 75 74 29 |mint-nex|t-input)|
|00003170| 20 5b 6d 65 6e 75 2d 62 | 61 72 20 69 6e 6f 75 74 | [menu-b|ar inout|
|00003180| 20 70 72 65 76 69 6f 75 | 73 2d 68 69 73 74 6f 72 | previou|s-histor|
|00003190| 79 5d 20 28 22 50 72 65 | 76 69 6f 75 73 20 49 6e |y] ("Pre|vious In|
|000031a0| 70 75 74 22 20 2e 20 63 | 6f 6d 69 6e 74 2d 70 72 |put" . c|omint-pr|
|000031b0| 65 76 69 6f 75 73 2d 69 | 6e 70 75 74 29 20 5b 6d |evious-i|nput) [m|
|000031c0| 65 6e 75 2d 62 61 72 20 | 69 6e 6f 75 74 20 6c 69 |enu-bar |inout li|
|000031d0| 73 74 2d 68 69 73 74 6f | 72 79 5d 20 28 22 4c 69 |st-histo|ry] ("Li|
|000031e0| 73 74 20 49 6e 70 75 74 | 20 48 69 73 74 6f 72 79 |st Input| History|
|000031f0| 22 20 2e 20 63 6f 6d 69 | 6e 74 2d 64 79 6e 61 6d |" . comi|nt-dynam|
|00003200| 69 63 2d 6c 69 73 74 2d | 69 6e 70 75 74 2d 72 69 |ic-list-|input-ri|
|00003210| 6e 67 29 20 5b 6d 65 6e | 75 2d 62 61 72 20 69 6e |ng) [men|u-bar in|
|00003220| 6f 75 74 20 65 78 70 61 | 6e 64 2d 68 69 73 74 6f |out expa|nd-histo|
|00003230| 72 79 5d 20 28 22 45 78 | 70 61 6e 64 20 48 69 73 |ry] ("Ex|pand His|
|00003240| 74 6f 72 79 20 42 65 66 | 6f 72 65 20 50 6f 69 6e |tory Bef|ore Poin|
|00003250| 74 22 20 2e 20 63 6f 6d | 69 6e 74 2d 72 65 70 6c |t" . com|int-repl|
|00003260| 61 63 65 2d 62 79 2d 65 | 78 70 61 6e 64 65 64 2d |ace-by-e|xpanded-|
|00003270| 68 69 73 74 6f 72 79 29 | 20 5b 6d 65 6e 75 2d 62 |history)| [menu-b|
|00003280| 61 72 20 73 69 67 6e 61 | 6c 73 5d 20 22 53 69 67 |ar signa|ls] "Sig|
|00003290| 6e 61 6c 73 22 20 5b 6d | 65 6e 75 2d 62 61 72 20 |nals" [m|enu-bar |
|000032a0| 73 69 67 6e 61 6c 73 20 | 65 6f 66 5d 20 28 22 45 |signals |eof] ("E|
|000032b0| 4f 46 22 20 2e 20 63 6f | 6d 69 6e 74 2d 73 65 6e |OF" . co|mint-sen|
|000032c0| 64 2d 65 6f 66 29 20 5b | 6d 65 6e 75 2d 62 61 72 |d-eof) [|menu-bar|
|000032d0| 20 73 69 67 6e 61 6c 73 | 20 6b 69 6c 6c 5d 20 28 | signals| kill] (|
|000032e0| 22 4b 49 4c 4c 22 20 2e | 20 63 6f 6d 69 6e 74 2d |"KILL" .| comint-|
|000032f0| 6b 69 6c 6c 2d 73 75 62 | 6a 6f 62 29 20 5b 6d 65 |kill-sub|job) [me|
|00003300| 6e 75 2d 62 61 72 20 73 | 69 67 6e 61 6c 73 20 71 |nu-bar s|ignals q|
|00003310| 75 69 74 5d 20 28 22 51 | 55 49 54 22 20 2e 20 63 |uit] ("Q|UIT" . c|
|00003320| 6f 6d 69 6e 74 2d 71 75 | 69 74 2d 73 75 62 6a 6f |omint-qu|it-subjo|
|00003330| 62 29 20 5b 6d 65 6e 75 | 2d 62 61 72 20 73 69 67 |b) [menu|-bar sig|
|00003340| 6e 61 6c 73 20 63 6f 6e | 74 5d 20 28 22 43 4f 4e |nals con|t] ("CON|
|00003350| 54 22 20 2e 20 63 6f 6d | 69 6e 74 2d 63 6f 6e 74 |T" . com|int-cont|
|00003360| 69 6e 75 65 2d 73 75 62 | 6a 6f 62 29 20 5b 6d 65 |inue-sub|job) [me|
|00003370| 6e 75 2d 62 61 72 20 73 | 69 67 6e 61 6c 73 20 73 |nu-bar s|ignals s|
|00003380| 74 6f 70 5d 20 28 22 53 | 54 4f 50 22 20 2e 20 63 |top] ("S|TOP" . c|
|00003390| 6f 6d 69 6e 74 2d 73 74 | 6f 70 2d 73 75 62 6a 6f |omint-st|op-subjo|
|000033a0| 62 29 20 5b 6d 65 6e 75 | 2d 62 61 72 20 73 69 67 |b) [menu|-bar sig|
|000033b0| 6e 61 6c 73 20 62 72 65 | 61 6b 5d 20 28 22 42 52 |nals bre|ak] ("BR|
|000033c0| 45 41 4b 22 20 2e 20 63 | 6f 6d 69 6e 74 2d 69 6e |EAK" . c|omint-in|
|000033d0| 74 65 72 72 75 70 74 2d | 73 75 62 6a 6f 62 29 20 |terrupt-|subjob) |
|000033e0| 61 70 70 65 6e 64 20 28 | 63 6f 6d 70 6c 65 74 69 |append (|completi|
|000033f0| 6f 6e 20 69 6e 6f 75 74 | 20 73 69 67 6e 61 6c 73 |on inout| signals|
|00003400| 29 20 6d 65 6e 75 2d 62 | 61 72 2d 66 69 6e 61 6c |) menu-b|ar-final|
|00003410| 2d 69 74 65 6d 73 5d 20 | 36 29 0a 28 64 65 66 61 |-items] |6).(defa|
|00003420| 6c 69 61 73 20 27 63 6f | 6d 69 6e 74 2d 63 68 65 |lias 'co|mint-che|
|00003430| 63 6b 2d 70 72 6f 63 20 | 23 5b 28 62 75 66 66 65 |ck-proc |#[(buffe|
|00003440| 72 29 20 22 c0 09 21 89 | 1a 85 0d 00 c3 5c 6e 21 |r) "..!.|.....\n!|
|00003450| c4 3e 29 87 22 20 5b 67 | 65 74 2d 62 75 66 66 65 |.>)." [g|et-buffe|
|00003460| 72 2d 70 72 6f 63 65 73 | 73 20 62 75 66 66 65 72 |r-proces|s buffer|
|00003470| 20 70 72 6f 63 20 70 72 | 6f 63 65 73 73 2d 73 74 | proc pr|ocess-st|
|00003480| 61 74 75 73 20 28 72 75 | 6e 20 73 74 6f 70 29 5d |atus (ru|n stop)]|
|00003490| 20 33 20 22 5c 0a 52 65 | 74 75 72 6e 20 74 20 69 | 3 "\.Re|turn t i|
|000034a0| 66 20 74 68 65 72 65 20 | 69 73 20 61 20 6c 69 76 |f there |is a liv|
|000034b0| 69 6e 67 20 70 72 6f 63 | 65 73 73 20 61 73 73 6f |ing proc|ess asso|
|000034c0| 63 69 61 74 65 64 20 77 | 2f 62 75 66 66 65 72 20 |ciated w|/buffer |
|000034d0| 42 55 46 46 45 52 2e 0a | 4c 69 76 69 6e 67 20 6d |BUFFER..|Living m|
|000034e0| 65 61 6e 73 20 74 68 65 | 20 73 74 61 74 75 73 20 |eans the| status |
|000034f0| 69 73 20 60 72 75 6e 27 | 20 6f 72 20 60 73 74 6f |is `run'| or `sto|
|00003500| 70 27 2e 0a 42 55 46 46 | 45 52 20 63 61 6e 20 62 |p'..BUFF|ER can b|
|00003510| 65 20 65 69 74 68 65 72 | 20 61 20 62 75 66 66 65 |e either| a buffe|
|00003520| 72 20 6f 72 20 74 68 65 | 20 6e 61 6d 65 20 6f 66 |r or the| name of|
|00003530| 20 6f 6e 65 2e 22 5d 29 | 0a 28 64 65 66 61 6c 69 | one."])|.(defali|
|00003540| 61 73 20 27 6d 61 6b 65 | 2d 63 6f 6d 69 6e 74 20 |as 'make|-comint |
|00003550| 23 5b 28 6e 61 6d 65 20 | 70 72 6f 67 72 61 6d 20 |#[(name |program |
|00003560| 26 6f 70 74 69 6f 6e 61 | 6c 20 73 74 61 72 74 66 |&optiona|l startf|
|00003570| 69 6c 65 20 26 72 65 73 | 74 20 73 77 69 74 63 68 |ile &res|t switch|
|00003580| 65 73 29 20 22 c0 c1 5c | 6e c1 51 21 1b c4 0b 21 |es) "..\|n.Q!...!|
|00003590| 84 20 00 8a 0b 71 88 c5 | 20 88 29 c6 0b 5c 6e 0e |. ...q..| .)..\n.|
|000035a0| 07 0e 08 0e 09 25 88 0b | 29 87 22 20 5b 67 65 74 |.....%..|)." [get|
|000035b0| 2d 62 75 66 66 65 72 2d | 63 72 65 61 74 65 20 22 |-buffer-|create "|
|000035c0| 2a 22 20 6e 61 6d 65 20 | 62 75 66 66 65 72 20 63 |*" name |buffer c|
|000035d0| 6f 6d 69 6e 74 2d 63 68 | 65 63 6b 2d 70 72 6f 63 |omint-ch|eck-proc|
|000035e0| 20 63 6f 6d 69 6e 74 2d | 6d 6f 64 65 20 63 6f 6d | comint-|mode com|
|000035f0| 69 6e 74 2d 65 78 65 63 | 20 70 72 6f 67 72 61 6d |int-exec| program|
|00003600| 20 73 74 61 72 74 66 69 | 6c 65 20 73 77 69 74 63 | startfi|le switc|
|00003610| 68 65 73 5d 20 36 20 22 | 5c 0a 4d 61 6b 65 20 61 |hes] 6 "|\.Make a|
|00003620| 20 63 6f 6d 69 6e 74 20 | 70 72 6f 63 65 73 73 20 | comint |process |
|00003630| 4e 41 4d 45 20 69 6e 20 | 61 20 62 75 66 66 65 72 |NAME in |a buffer|
|00003640| 2c 20 72 75 6e 6e 69 6e | 67 20 50 52 4f 47 52 41 |, runnin|g PROGRA|
|00003650| 4d 2e 0a 54 68 65 20 6e | 61 6d 65 20 6f 66 20 74 |M..The n|ame of t|
|00003660| 68 65 20 62 75 66 66 65 | 72 20 69 73 20 6d 61 64 |he buffe|r is mad|
|00003670| 65 20 62 79 20 73 75 72 | 72 6f 75 6e 64 69 6e 67 |e by sur|rounding|
|00003680| 20 4e 41 4d 45 20 77 69 | 74 68 20 60 2a 27 73 2e | NAME wi|th `*'s.|
|00003690| 0a 49 66 20 74 68 65 72 | 65 20 69 73 20 61 6c 72 |.If ther|e is alr|
|000036a0| 65 61 64 79 20 61 20 72 | 75 6e 6e 69 6e 67 20 70 |eady a r|unning p|
|000036b0| 72 6f 63 65 73 73 20 69 | 6e 20 74 68 61 74 20 62 |rocess i|n that b|
|000036c0| 75 66 66 65 72 2c 20 69 | 74 20 69 73 20 6e 6f 74 |uffer, i|t is not|
|000036d0| 20 72 65 73 74 61 72 74 | 65 64 2e 0a 4f 70 74 69 | restart|ed..Opti|
|000036e0| 6f 6e 61 6c 20 74 68 69 | 72 64 20 61 72 67 20 53 |onal thi|rd arg S|
|000036f0| 54 41 52 54 46 49 4c 45 | 20 69 73 20 74 68 65 20 |TARTFILE| is the |
|00003700| 6e 61 6d 65 20 6f 66 20 | 61 20 66 69 6c 65 20 74 |name of |a file t|
|00003710| 6f 20 73 65 6e 64 20 74 | 68 65 20 63 6f 6e 74 65 |o send t|he conte|
|00003720| 6e 74 73 20 6f 66 20 74 | 6f 20 0a 74 68 65 20 70 |nts of t|o .the p|
|00003730| 72 6f 63 65 73 73 2e 20 | 20 41 6e 79 20 6d 6f 72 |rocess. | Any mor|
|00003740| 65 20 61 72 67 73 20 61 | 72 65 20 61 72 67 75 6d |e args a|re argum|
|00003750| 65 6e 74 73 20 74 6f 20 | 50 52 4f 47 52 41 4d 2e |ents to |PROGRAM.|
|00003760| 22 5d 29 0a 28 64 65 66 | 61 6c 69 61 73 20 27 63 |"]).(def|alias 'c|
|00003770| 6f 6d 69 6e 74 2d 72 75 | 6e 20 23 5b 28 70 72 6f |omint-ru|n #[(pro|
|00003780| 67 72 61 6d 29 20 22 c0 | 09 21 1a c3 c4 5c 6e 09 |gram) ".|.!...\n.|
|00003790| 5c 22 21 88 c5 c6 c7 5c | 6e c8 51 21 21 29 87 22 |\"!....\|n.Q!!)."|
|000037a0| 20 5b 66 69 6c 65 2d 6e | 61 6d 65 2d 6e 6f 6e 64 | [file-n|ame-nond|
|000037b0| 69 72 65 63 74 6f 72 79 | 20 70 72 6f 67 72 61 6d |irectory| program|
|000037c0| 20 6e 61 6d 65 20 73 77 | 69 74 63 68 2d 74 6f 2d | name sw|itch-to-|
|000037d0| 62 75 66 66 65 72 20 6d | 61 6b 65 2d 63 6f 6d 69 |buffer m|ake-comi|
|000037e0| 6e 74 20 72 75 6e 2d 68 | 6f 6f 6b 73 20 69 6e 74 |nt run-h|ooks int|
|000037f0| 65 72 6e 2d 73 6f 66 74 | 20 22 63 6f 6d 69 6e 74 |ern-soft| "comint|
|00003800| 2d 22 20 22 2d 68 6f 6f | 6b 22 5d 20 35 20 22 5c |-" "-hoo|k"] 5 "\|
|00003810| 0a 52 75 6e 20 50 52 4f | 47 52 41 4d 20 69 6e 20 |.Run PRO|GRAM in |
|00003820| 61 20 63 6f 6d 69 6e 74 | 20 62 75 66 66 65 72 20 |a comint| buffer |
|00003830| 61 6e 64 20 73 77 69 74 | 63 68 20 74 6f 20 69 74 |and swit|ch to it|
|00003840| 2e 0a 54 68 65 20 62 75 | 66 66 65 72 20 6e 61 6d |..The bu|ffer nam|
|00003850| 65 20 69 73 20 6d 61 64 | 65 20 62 79 20 73 75 72 |e is mad|e by sur|
|00003860| 72 6f 75 6e 64 69 6e 67 | 20 74 68 65 20 66 69 6c |rounding| the fil|
|00003870| 65 20 6e 61 6d 65 20 6f | 66 20 50 52 4f 47 52 41 |e name o|f PROGRA|
|00003880| 4d 20 77 69 74 68 20 60 | 2a 27 73 2e 0a 54 68 65 |M with `|*'s..The|
|00003890| 20 66 69 6c 65 20 6e 61 | 6d 65 20 69 73 20 75 73 | file na|me is us|
|000038a0| 65 64 20 74 6f 20 6d 61 | 6b 65 20 61 20 73 79 6d |ed to ma|ke a sym|
|000038b0| 62 6f 6c 20 6e 61 6d 65 | 2c 20 73 75 63 68 20 61 |bol name|, such a|
|000038c0| 73 20 60 63 6f 6d 69 6e | 74 2d 73 68 2d 68 6f 6f |s `comin|t-sh-hoo|
|000038d0| 6b 27 2c 20 61 6e 64 20 | 61 6e 79 0a 68 6f 6f 6b |k', and |any.hook|
|000038e0| 73 20 6f 6e 20 74 68 69 | 73 20 73 79 6d 62 6f 6c |s on thi|s symbol|
|000038f0| 20 61 72 65 20 72 75 6e | 20 69 6e 20 74 68 65 20 | are run| in the |
|00003900| 62 75 66 66 65 72 2e 0a | 53 65 65 20 60 6d 61 6b |buffer..|See `mak|
|00003910| 65 2d 63 6f 6d 69 6e 74 | 27 20 61 6e 64 20 60 63 |e-comint|' and `c|
|00003920| 6f 6d 69 6e 74 2d 65 78 | 65 63 27 2e 22 20 22 73 |omint-ex|ec'." "s|
|00003930| 52 75 6e 20 70 72 6f 67 | 72 61 6d 3a 20 22 5d 29 |Run prog|ram: "])|
|00003940| 0a 28 64 65 66 61 6c 69 | 61 73 20 27 63 6f 6d 69 |.(defali|as 'comi|
|00003950| 6e 74 2d 65 78 65 63 20 | 23 5b 28 62 75 66 66 65 |nt-exec |#[(buffe|
|00003960| 72 20 6e 61 6d 65 20 63 | 6f 6d 6d 61 6e 64 20 73 |r name c|ommand s|
|00003970| 74 61 72 74 66 69 6c 65 | 20 73 77 69 74 63 68 65 |tartfile| switche|
|00003980| 73 29 20 22 8a 08 71 88 | c1 08 21 89 1a 83 10 00 |s) "..q.|..!.....|
|00003990| c3 5c 6e 21 88 29 c4 0d | 08 0e 06 0e 07 24 1a c8 |.\n!.)..|.....$..|
|000039a0| 5c 6e c9 5c 22 88 ca cb | 21 88 0e 5c 66 16 0b 64 |\n.\"...|!..\f..d|
|000039b0| 62 88 cd 5c 6e 21 60 ce | 93 88 0e 0f 83 51 00 d0 |b..\n!`.|.....Q..|
|000039c0| d1 21 88 64 62 88 d2 0e | 0f 21 88 60 64 7b 16 0f |.!.db...|.!.`d{..|
|000039d0| 60 64 7c 88 d3 5c 6e 0e | 0f 5c 22 88 d4 d5 21 88 |`d|..\n.|.\"...!.|
|000039e0| 08 2a 87 22 20 5b 62 75 | 66 66 65 72 20 67 65 74 |.*." [bu|ffer get|
|000039f0| 2d 62 75 66 66 65 72 2d | 70 72 6f 63 65 73 73 20 |-buffer-|process |
|00003a00| 70 72 6f 63 20 64 65 6c | 65 74 65 2d 70 72 6f 63 |proc del|ete-proc|
|00003a10| 65 73 73 20 63 6f 6d 69 | 6e 74 2d 65 78 65 63 2d |ess comi|nt-exec-|
|00003a20| 31 20 6e 61 6d 65 20 63 | 6f 6d 6d 61 6e 64 20 73 |1 name c|ommand s|
|00003a30| 77 69 74 63 68 65 73 20 | 73 65 74 2d 70 72 6f 63 |witches |set-proc|
|00003a40| 65 73 73 2d 66 69 6c 74 | 65 72 20 63 6f 6d 69 6e |ess-filt|er comin|
|00003a50| 74 2d 6f 75 74 70 75 74 | 2d 66 69 6c 74 65 72 20 |t-output|-filter |
|00003a60| 6d 61 6b 65 2d 6c 6f 63 | 61 6c 2d 76 61 72 69 61 |make-loc|al-varia|
|00003a70| 62 6c 65 20 63 6f 6d 69 | 6e 74 2d 70 74 79 70 20 |ble comi|nt-ptyp |
|00003a80| 70 72 6f 63 65 73 73 2d | 63 6f 6e 6e 65 63 74 69 |process-|connecti|
|00003a90| 6f 6e 2d 74 79 70 65 20 | 70 72 6f 63 65 73 73 2d |on-type |process-|
|00003aa0| 6d 61 72 6b 20 6e 69 6c | 20 73 74 61 72 74 66 69 |mark nil| startfi|
|00003ab0| 6c 65 20 73 6c 65 65 70 | 2d 66 6f 72 20 31 20 69 |le sleep|-for 1 i|
|00003ac0| 6e 73 65 72 74 2d 66 69 | 6c 65 2d 63 6f 6e 74 65 |nsert-fi|le-conte|
|00003ad0| 6e 74 73 20 63 6f 6d 69 | 6e 74 2d 73 65 6e 64 2d |nts comi|nt-send-|
|00003ae0| 73 74 72 69 6e 67 20 72 | 75 6e 2d 68 6f 6f 6b 73 |string r|un-hooks|
|00003af0| 20 63 6f 6d 69 6e 74 2d | 65 78 65 63 2d 68 6f 6f | comint-|exec-hoo|
|00003b00| 6b 5d 20 36 20 22 5c 0a | 53 74 61 72 74 20 75 70 |k] 6 "\.|Start up|
|00003b10| 20 61 20 70 72 6f 63 65 | 73 73 20 69 6e 20 62 75 | a proce|ss in bu|
|00003b20| 66 66 65 72 20 42 55 46 | 46 45 52 20 66 6f 72 20 |ffer BUF|FER for |
|00003b30| 63 6f 6d 69 6e 74 20 6d | 6f 64 65 73 2e 0a 42 6c |comint m|odes..Bl|
|00003b40| 61 73 74 73 20 61 6e 79 | 20 6f 6c 64 20 70 72 6f |asts any| old pro|
|00003b50| 63 65 73 73 20 72 75 6e | 6e 69 6e 67 20 69 6e 20 |cess run|ning in |
|00003b60| 74 68 65 20 62 75 66 66 | 65 72 2e 20 20 44 6f 65 |the buff|er. Doe|
|00003b70| 73 6e 27 74 20 73 65 74 | 20 74 68 65 20 62 75 66 |sn't set| the buf|
|00003b80| 66 65 72 20 6d 6f 64 65 | 2e 0a 59 6f 75 20 63 61 |fer mode|..You ca|
|00003b90| 6e 20 75 73 65 20 74 68 | 69 73 20 74 6f 20 63 68 |n use th|is to ch|
|00003ba0| 65 61 70 6c 79 20 72 75 | 6e 20 61 20 73 65 72 69 |eaply ru|n a seri|
|00003bb0| 65 73 20 6f 66 20 70 72 | 6f 63 65 73 73 65 73 20 |es of pr|ocesses |
|00003bc0| 69 6e 20 74 68 65 20 73 | 61 6d 65 20 63 6f 6d 69 |in the s|ame comi|
|00003bd0| 6e 74 0a 62 75 66 66 65 | 72 2e 20 20 54 68 65 20 |nt.buffe|r. The |
|00003be0| 68 6f 6f 6b 20 60 63 6f | 6d 69 6e 74 2d 65 78 65 |hook `co|mint-exe|
|00003bf0| 63 2d 68 6f 6f 6b 27 20 | 69 73 20 72 75 6e 20 61 |c-hook' |is run a|
|00003c00| 66 74 65 72 20 65 61 63 | 68 20 65 78 65 63 2e 22 |fter eac|h exec."|
|00003c10| 5d 29 0a 28 64 65 66 61 | 6c 69 61 73 20 28 71 75 |]).(defa|lias (qu|
|00003c20| 6f 74 65 20 63 6f 6d 69 | 6e 74 2d 65 78 65 63 2d |ote comi|nt-exec-|
|00003c30| 31 29 20 23 5b 28 6e 61 | 6d 65 20 62 75 66 66 65 |1) #[(na|me buffe|
|00003c40| 72 20 63 6f 6d 6d 61 6e | 64 20 73 77 69 74 63 68 |r comman|d switch|
|00003c50| 65 73 29 20 22 c0 c1 21 | 83 15 00 09 83 15 00 c2 |es) "..!|........|
|00003c60| c3 c4 c5 c6 20 5c 22 45 | 82 1d 00 c2 c7 c4 c8 c6 |.... \"E|........|
|00003c70| 20 5c 22 45 0e 09 a4 1e | 09 ca cb 0e 5c 66 0e 0d | \"E....|....\f..|
|00003c80| 0e 0e 0e 0f 25 29 87 22 | 20 5b 62 6f 75 6e 64 70 |....%)."| [boundp|
|00003c90| 20 73 79 73 74 65 6d 2d | 75 73 65 73 2d 74 65 72 | system-|uses-ter|
|00003ca0| 6d 69 6e 66 6f 20 22 45 | 4d 41 43 53 3d 74 22 20 |minfo "E|MACS=t" |
|00003cb0| 22 54 45 52 4d 3d 75 6e | 6b 6e 6f 77 6e 22 20 66 |"TERM=un|known" f|
|00003cc0| 6f 72 6d 61 74 20 22 43 | 4f 4c 55 4d 4e 53 3d 25 |ormat "C|OLUMNS=%|
|00003cd0| 64 22 20 66 72 61 6d 65 | 2d 77 69 64 74 68 20 22 |d" frame|-width "|
|00003ce0| 54 45 52 4d 3d 65 6d 61 | 63 73 22 20 22 54 45 52 |TERM=ema|cs" "TER|
|00003cf0| 4d 43 41 50 3d 65 6d 61 | 63 73 3a 63 6f 23 25 64 |MCAP=ema|cs:co#%d|
|00003d00| 3a 74 63 3d 75 6e 6b 6e | 6f 77 6e 22 20 70 72 6f |:tc=unkn|own" pro|
|00003d10| 63 65 73 73 2d 65 6e 76 | 69 72 6f 6e 6d 65 6e 74 |cess-env|ironment|
|00003d20| 20 61 70 70 6c 79 20 73 | 74 61 72 74 2d 70 72 6f | apply s|tart-pro|
|00003d30| 63 65 73 73 20 6e 61 6d | 65 20 62 75 66 66 65 72 |cess nam|e buffer|
|00003d40| 20 63 6f 6d 6d 61 6e 64 | 20 73 77 69 74 63 68 65 | command| switche|
|00003d50| 73 5d 20 36 5d 29 0a 28 | 64 65 66 61 6c 69 61 73 |s] 6]).(|defalias|
|00003d60| 20 27 63 6f 6d 69 6e 74 | 2d 72 65 61 64 2d 69 6e | 'comint|-read-in|
|00003d70| 70 75 74 2d 72 69 6e 67 | 20 23 5b 28 26 6f 70 74 |put-ring| #[(&opt|
|00003d80| 69 6f 6e 61 6c 20 73 69 | 6c 65 6e 74 29 20 22 08 |ional si|lent) ".|
|00003d90| 83 5c 6e 00 08 c1 9a 83 | 5c 66 00 c2 87 c3 08 21 |.\n.....|\f.....!|
|00003da0| 84 1b 00 5c 66 86 7d 00 | c5 c6 08 5c 22 87 c7 08 |...\f.}.|...\"...|
|00003db0| 21 c8 0e 09 21 1e 5c 6e | 1e 0b 8a 0e 0b 86 2f 00 |!...!.\n|....../.|
|00003dc0| cc 08 21 71 88 8a 8c 7e | 88 65 62 88 cd ce c2 cf |..!q...~|.eb.....|
|00003dd0| 23 83 69 00 d0 94 d0 95 | 7b 1e 11 0e 12 83 5e 00 |#.i.....|{.....^.|
|00003de0| d3 0e 5c 6e 21 84 5e 00 | d4 0e 5c 6e d5 5c 22 0e |..\n!.^.|..\n.\".|
|00003df0| 11 98 84 65 00 d6 0e 5c | 6e 0e 11 5c 22 88 29 82 |...e...\|n..\".).|
|00003e00| 38 00 29 0e 0b 84 73 00 | d7 c2 21 88 2a 0e 5c 6e |8.)...s.|..!.*.\n|
|00003e10| 16 18 c2 89 16 19 2a 87 | 22 20 5b 63 6f 6d 69 6e |......*.|" [comin|
|00003e20| 74 2d 69 6e 70 75 74 2d | 72 69 6e 67 2d 66 69 6c |t-input-|ring-fil|
|00003e30| 65 2d 6e 61 6d 65 20 22 | 22 20 6e 69 6c 20 66 69 |e-name "|" nil fi|
|00003e40| 6c 65 2d 72 65 61 64 61 | 62 6c 65 2d 70 20 73 69 |le-reada|ble-p si|
|00003e50| 6c 65 6e 74 20 6d 65 73 | 73 61 67 65 20 22 43 61 |lent mes|sage "Ca|
|00003e60| 6e 6e 6f 74 20 72 65 61 | 64 20 68 69 73 74 6f 72 |nnot rea|d histor|
|00003e70| 79 20 66 69 6c 65 20 25 | 73 22 20 67 65 74 2d 66 |y file %|s" get-f|
|00003e80| 69 6c 65 2d 62 75 66 66 | 65 72 20 6d 61 6b 65 2d |ile-buff|er make-|
|00003e90| 72 69 6e 67 20 63 6f 6d | 69 6e 74 2d 69 6e 70 75 |ring com|int-inpu|
|00003ea0| 74 2d 72 69 6e 67 2d 73 | 69 7a 65 20 72 69 6e 67 |t-ring-s|ize ring|
|00003eb0| 20 68 69 73 74 6f 72 79 | 2d 62 75 66 20 66 69 6e | history|-buf fin|
|00003ec0| 64 2d 66 69 6c 65 2d 6e | 6f 73 65 6c 65 63 74 20 |d-file-n|oselect |
|00003ed0| 72 65 2d 73 65 61 72 63 | 68 2d 66 6f 72 77 61 72 |re-searc|h-forwar|
|00003ee0| 64 20 22 5e 5b 20 09 5d | 2a 5c 5c 28 5b 5e 23 5c |d "^[ .]|*\\([^#\|
|00003ef0| 6e 5d 2e 2a 5c 5c 29 5b | 20 09 5d 2a 24 22 20 74 |n].*\\)[| .]*$" t|
|00003f00| 20 31 20 68 69 73 74 6f | 72 79 20 63 6f 6d 69 6e | 1 histo|ry comin|
|00003f10| 74 2d 69 6e 70 75 74 2d | 69 67 6e 6f 72 65 64 75 |t-input-|ignoredu|
|00003f20| 70 73 20 72 69 6e 67 2d | 65 6d 70 74 79 2d 70 20 |ps ring-|empty-p |
|00003f30| 72 69 6e 67 2d 72 65 66 | 20 30 20 72 69 6e 67 2d |ring-ref| 0 ring-|
|00003f40| 69 6e 73 65 72 74 20 6b | 69 6c 6c 2d 62 75 66 66 |insert k|ill-buff|
|00003f50| 65 72 20 63 6f 6d 69 6e | 74 2d 69 6e 70 75 74 2d |er comin|t-input-|
|00003f60| 72 69 6e 67 20 63 6f 6d | 69 6e 74 2d 69 6e 70 75 |ring com|int-inpu|
|00003f70| 74 2d 72 69 6e 67 2d 69 | 6e 64 65 78 5d 20 34 20 |t-ring-i|ndex] 4 |
|00003f80| 22 5c 0a 53 65 74 73 20 | 74 68 65 20 62 75 66 66 |"\.Sets |the buff|
|00003f90| 65 72 27 73 20 60 63 6f | 6d 69 6e 74 2d 69 6e 70 |er's `co|mint-inp|
|00003fa0| 75 74 2d 72 69 6e 67 27 | 20 66 72 6f 6d 20 61 20 |ut-ring'| from a |
|00003fb0| 68 69 73 74 6f 72 79 20 | 66 69 6c 65 2e 0a 54 68 |history |file..Th|
|00003fc0| 65 20 6e 61 6d 65 20 6f | 66 20 74 68 65 20 66 69 |e name o|f the fi|
|00003fd0| 6c 65 20 69 73 20 67 69 | 76 65 6e 20 62 79 20 74 |le is gi|ven by t|
|00003fe0| 68 65 20 76 61 72 69 61 | 62 6c 65 20 60 63 6f 6d |he varia|ble `com|
|00003ff0| 69 6e 74 2d 69 6e 70 75 | 74 2d 72 69 6e 67 2d 66 |int-inpu|t-ring-f|
|00004000| 69 6c 65 2d 6e 61 6d 65 | 27 2e 0a 54 68 65 20 68 |ile-name|'..The h|
|00004010| 69 73 74 6f 72 79 20 72 | 69 6e 67 20 69 73 20 6f |istory r|ing is o|
|00004020| 66 20 73 69 7a 65 20 60 | 63 6f 6d 69 6e 74 2d 69 |f size `|comint-i|
|00004030| 6e 70 75 74 2d 72 69 6e | 67 2d 73 69 7a 65 27 2c |nput-rin|g-size',|
|00004040| 20 72 65 67 61 72 64 6c | 65 73 73 20 6f 66 20 66 | regardl|ess of f|
|00004050| 69 6c 65 20 73 69 7a 65 | 2e 0a 49 66 20 60 63 6f |ile size|..If `co|
|00004060| 6d 69 6e 74 2d 69 6e 70 | 75 74 2d 72 69 6e 67 2d |mint-inp|ut-ring-|
|00004070| 66 69 6c 65 2d 6e 61 6d | 65 27 20 69 73 20 6e 69 |file-nam|e' is ni|
|00004080| 6c 20 74 68 69 73 20 66 | 75 6e 63 74 69 6f 6e 20 |l this f|unction |
|00004090| 64 6f 65 73 20 6e 6f 74 | 68 69 6e 67 2e 0a 0a 49 |does not|hing...I|
|000040a0| 66 20 74 68 65 20 6f 70 | 74 69 6f 6e 61 6c 20 61 |f the op|tional a|
|000040b0| 72 67 75 6d 65 6e 74 20 | 53 49 4c 45 4e 54 20 69 |rgument |SILENT i|
|000040c0| 73 20 6e 6f 6e 2d 6e 69 | 6c 2c 20 77 65 20 73 61 |s non-ni|l, we sa|
|000040d0| 79 20 6e 6f 74 68 69 6e | 67 20 61 62 6f 75 74 20 |y nothin|g about |
|000040e0| 61 0a 66 61 69 6c 75 72 | 65 20 74 6f 20 72 65 61 |a.failur|e to rea|
|000040f0| 64 20 74 68 65 20 68 69 | 73 74 6f 72 79 20 66 69 |d the hi|story fi|
|00004100| 6c 65 2e 0a 0a 54 68 69 | 73 20 66 75 6e 63 74 69 |le...Thi|s functi|
|00004110| 6f 6e 20 69 73 20 75 73 | 65 66 75 6c 20 66 6f 72 |on is us|eful for|
|00004120| 20 6d 61 6a 6f 72 20 6d | 6f 64 65 20 63 6f 6d 6d | major m|ode comm|
|00004130| 61 6e 64 73 20 61 6e 64 | 20 6d 6f 64 65 20 68 6f |ands and| mode ho|
|00004140| 6f 6b 73 2e 0a 0a 54 68 | 65 20 73 74 72 75 63 74 |oks...Th|e struct|
|00004150| 75 72 65 20 6f 66 20 74 | 68 65 20 68 69 73 74 6f |ure of t|he histo|
|00004160| 72 79 20 66 69 6c 65 20 | 73 68 6f 75 6c 64 20 62 |ry file |should b|
|00004170| 65 20 6f 6e 65 20 69 6e | 70 75 74 20 63 6f 6d 6d |e one in|put comm|
|00004180| 61 6e 64 20 70 65 72 20 | 6c 69 6e 65 2c 0a 77 69 |and per |line,.wi|
|00004190| 74 68 20 74 68 65 20 6d | 6f 73 74 20 72 65 63 65 |th the m|ost rece|
|000041a0| 6e 74 20 63 6f 6d 6d 61 | 6e 64 20 6c 61 73 74 2e |nt comma|nd last.|
|000041b0| 0a 53 65 65 20 61 6c 73 | 6f 20 60 63 6f 6d 69 6e |.See als|o `comin|
|000041c0| 74 2d 69 6e 70 75 74 2d | 69 67 6e 6f 72 65 64 75 |t-input-|ignoredu|
|000041d0| 70 73 27 20 61 6e 64 20 | 60 63 6f 6d 69 6e 74 2d |ps' and |`comint-|
|000041e0| 77 72 69 74 65 2d 69 6e | 70 75 74 2d 72 69 6e 67 |write-in|put-ring|
|000041f0| 27 2e 22 5d 29 0a 28 64 | 65 66 61 6c 69 61 73 20 |'."]).(d|efalias |
|00004200| 27 63 6f 6d 69 6e 74 2d | 77 72 69 74 65 2d 69 6e |'comint-|write-in|
|00004210| 70 75 74 2d 72 69 6e 67 | 20 23 5b 6e 69 6c 20 22 |put-ring| #[nil "|
|00004220| 08 83 14 00 08 c1 9a 84 | 14 00 5c 6e 83 14 00 c3 |........|..\n....|
|00004230| 5c 6e 21 83 16 00 c4 87 | c5 08 21 84 21 00 c6 c7 |\n!.....|..!.!...|
|00004240| 08 5c 22 87 c8 c9 21 1e | 5c 6e 5c 6e 1e 0b 08 1e |.\"...!.|\n\n....|
|00004250| 5c 66 cd 0e 0b 21 1e 0e | 8a 0e 5c 6e 71 88 cf 20 |\f...!..|..\nq.. |
|00004260| 88 0e 0e d0 56 83 53 00 | 0e 0e 53 16 0e d1 0e 0b |....V.S.|..S.....|
|00004270| 0e 0e 5c 22 d2 b1 02 88 | 82 3a 00 d3 d4 20 c4 0e |..\"....|.:... ..|
|00004280| 5c 66 c4 d5 25 88 d6 c4 | 21 2d 87 22 20 5b 63 6f |\f..%...|!-." [co|
|00004290| 6d 69 6e 74 2d 69 6e 70 | 75 74 2d 72 69 6e 67 2d |mint-inp|ut-ring-|
|000042a0| 66 69 6c 65 2d 6e 61 6d | 65 20 22 22 20 63 6f 6d |file-nam|e "" com|
|000042b0| 69 6e 74 2d 69 6e 70 75 | 74 2d 72 69 6e 67 20 72 |int-inpu|t-ring r|
|000042c0| 69 6e 67 2d 65 6d 70 74 | 79 2d 70 20 6e 69 6c 20 |ing-empt|y-p nil |
|000042d0| 66 69 6c 65 2d 77 72 69 | 74 61 62 6c 65 2d 70 20 |file-wri|table-p |
|000042e0| 6d 65 73 73 61 67 65 20 | 22 43 61 6e 6e 6f 74 20 |message |"Cannot |
|000042f0| 77 72 69 74 65 20 68 69 | 73 74 6f 72 79 20 66 69 |write hi|story fi|
|00004300| 6c 65 20 25 73 22 20 67 | 65 74 2d 62 75 66 66 65 |le %s" g|et-buffe|
|00004310| 72 2d 63 72 65 61 74 65 | 20 22 20 2a 54 65 6d 70 |r-create| " *Temp|
|00004320| 20 49 6e 70 75 74 20 48 | 69 73 74 6f 72 79 2a 22 | Input H|istory*"|
|00004330| 20 68 69 73 74 6f 72 79 | 2d 62 75 66 20 72 69 6e | history|-buf rin|
|00004340| 67 20 66 69 6c 65 20 72 | 69 6e 67 2d 6c 65 6e 67 |g file r|ing-leng|
|00004350| 74 68 20 69 6e 64 65 78 | 20 65 72 61 73 65 2d 62 |th index| erase-b|
|00004360| 75 66 66 65 72 20 30 20 | 72 69 6e 67 2d 72 65 66 |uffer 0 |ring-ref|
|00004370| 20 31 30 20 77 72 69 74 | 65 2d 72 65 67 69 6f 6e | 10 writ|e-region|
|00004380| 20 62 75 66 66 65 72 2d | 73 74 72 69 6e 67 20 6e | buffer-|string n|
|00004390| 6f 2d 6d 65 73 73 61 67 | 65 20 6b 69 6c 6c 2d 62 |o-messag|e kill-b|
|000043a0| 75 66 66 65 72 5d 20 36 | 20 22 5c 0a 57 72 69 74 |uffer] 6| "\.Writ|
|000043b0| 65 73 20 74 68 65 20 62 | 75 66 66 65 72 27 73 20 |es the b|uffer's |
|000043c0| 60 63 6f 6d 69 6e 74 2d | 69 6e 70 75 74 2d 72 69 |`comint-|input-ri|
|000043d0| 6e 67 27 20 74 6f 20 61 | 20 68 69 73 74 6f 72 79 |ng' to a| history|
|000043e0| 20 66 69 6c 65 2e 0a 54 | 68 65 20 6e 61 6d 65 20 | file..T|he name |
|000043f0| 6f 66 20 74 68 65 20 66 | 69 6c 65 20 69 73 20 67 |of the f|ile is g|
|00004400| 69 76 65 6e 20 62 79 20 | 74 68 65 20 76 61 72 69 |iven by |the vari|
|00004410| 61 62 6c 65 20 60 63 6f | 6d 69 6e 74 2d 69 6e 70 |able `co|mint-inp|
|00004420| 75 74 2d 72 69 6e 67 2d | 66 69 6c 65 2d 6e 61 6d |ut-ring-|file-nam|
|00004430| 65 27 2e 0a 54 68 65 20 | 6f 72 69 67 69 6e 61 6c |e'..The |original|
|00004440| 20 63 6f 6e 74 65 6e 74 | 73 20 6f 66 20 74 68 65 | content|s of the|
|00004450| 20 66 69 6c 65 20 61 72 | 65 20 6c 6f 73 74 20 69 | file ar|e lost i|
|00004460| 66 20 60 63 6f 6d 69 6e | 74 2d 69 6e 70 75 74 2d |f `comin|t-input-|
|00004470| 72 69 6e 67 27 20 69 73 | 20 6e 6f 74 20 65 6d 70 |ring' is| not emp|
|00004480| 74 79 2e 0a 49 66 20 60 | 63 6f 6d 69 6e 74 2d 69 |ty..If `|comint-i|
|00004490| 6e 70 75 74 2d 72 69 6e | 67 2d 66 69 6c 65 2d 6e |nput-rin|g-file-n|
|000044a0| 61 6d 65 27 20 69 73 20 | 6e 69 6c 20 74 68 69 73 |ame' is |nil this|
|000044b0| 20 66 75 6e 63 74 69 6f | 6e 20 64 6f 65 73 20 6e | functio|n does n|
|000044c0| 6f 74 68 69 6e 67 2e 0a | 0a 55 73 65 66 75 6c 20 |othing..|.Useful |
|000044d0| 77 69 74 68 69 6e 20 70 | 72 6f 63 65 73 73 20 73 |within p|rocess s|
|000044e0| 65 6e 74 69 6e 65 6c 73 | 2e 0a 0a 53 65 65 20 61 |entinels|...See a|
|000044f0| 6c 73 6f 20 60 63 6f 6d | 69 6e 74 2d 72 65 61 64 |lso `com|int-read|
|00004500| 2d 69 6e 70 75 74 2d 72 | 69 6e 67 27 2e 22 5d 29 |-input-r|ing'."])|
|00004510| 0a 28 64 65 66 61 6c 69 | 61 73 20 27 63 6f 6d 69 |.(defali|as 'comi|
|00004520| 6e 74 2d 64 79 6e 61 6d | 69 63 2d 6c 69 73 74 2d |nt-dynam|ic-list-|
|00004530| 69 6e 70 75 74 2d 72 69 | 6e 67 20 23 5b 6e 69 6c |input-ri|ng #[nil|
|00004540| 20 22 c0 09 21 83 5c 66 | 00 c2 09 21 83 10 00 c3 | "..!.\f|...!....|
|00004550| c4 21 87 c5 c6 c7 09 21 | 53 c8 20 1e 09 1e 5c 6e |.!.....!|S. ...\n|
|00004560| 1e 0b 1e 5c 66 0e 5c 6e | cd 59 83 3a 00 ce 09 0e |...\f.\n|.Y.:....|
|00004570| 5c 6e 5c 22 0e 5c 66 42 | 16 5c 66 0e 5c 6e 53 89 |\n\".\fB|.\f.\nS.|
|00004580| 16 5c 6e 82 5c 22 00 0e | 0b 90 cf 0e 5c 66 21 88 |.\n.\"..|....\f!.|
|00004590| 0e 0b 71 88 d0 79 88 d1 | d2 c5 d3 23 85 58 00 d4 |..q..y..|...#.X..|
|000045a0| d5 21 88 82 49 00 91 88 | d6 cd 21 88 c3 d7 21 88 |.!..I...|..!...!.|
|000045b0| d8 20 89 1e 19 da 3d 83 | 73 00 db 0e 09 21 82 79 |. ....=.|s....!.y|
|000045c0| 00 0e 19 43 89 16 1c 2d | 87 22 20 5b 72 69 6e 67 |...C...-|." [ring|
|000045d0| 2d 70 20 63 6f 6d 69 6e | 74 2d 69 6e 70 75 74 2d |-p comin|t-input-|
|000045e0| 72 69 6e 67 20 72 69 6e | 67 2d 65 6d 70 74 79 2d |ring rin|g-empty-|
|000045f0| 70 20 6d 65 73 73 61 67 | 65 20 22 4e 6f 20 68 69 |p messag|e "No hi|
|00004600| 73 74 6f 72 79 22 20 6e | 69 6c 20 22 20 2a 49 6e |story" n|il " *In|
|00004610| 70 75 74 20 48 69 73 74 | 6f 72 79 2a 22 20 72 69 |put Hist|ory*" ri|
|00004620| 6e 67 2d 6c 65 6e 67 74 | 68 20 63 75 72 72 65 6e |ng-lengt|h curren|
|00004630| 74 2d 77 69 6e 64 6f 77 | 2d 63 6f 6e 66 69 67 75 |t-window|-configu|
|00004640| 72 61 74 69 6f 6e 20 63 | 6f 6e 66 20 69 6e 64 65 |ration c|onf inde|
|00004650| 78 20 68 69 73 74 6f 72 | 79 2d 62 75 66 66 65 72 |x histor|y-buffer|
|00004660| 20 68 69 73 74 6f 72 79 | 20 30 20 72 69 6e 67 2d | history| 0 ring-|
|00004670| 72 65 66 20 64 69 73 70 | 6c 61 79 2d 63 6f 6d 70 |ref disp|lay-comp|
|00004680| 6c 65 74 69 6f 6e 2d 6c | 69 73 74 20 33 20 73 65 |letion-l|ist 3 se|
|00004690| 61 72 63 68 2d 62 61 63 | 6b 77 61 72 64 20 22 63 |arch-bac|kward "c|
|000046a0| 6f 6d 70 6c 65 74 69 6f | 6e 22 20 6d 6f 76 65 20 |ompletio|n" move |
|000046b0| 72 65 70 6c 61 63 65 2d | 6d 61 74 63 68 20 22 68 |replace-|match "h|
|000046c0| 69 73 74 6f 72 79 20 72 | 65 66 65 72 65 6e 63 65 |istory r|eference|
|000046d0| 22 20 73 69 74 2d 66 6f | 72 20 22 48 69 74 20 73 |" sit-fo|r "Hit s|
|000046e0| 70 61 63 65 20 74 6f 20 | 66 6c 75 73 68 22 20 72 |pace to |flush" r|
|000046f0| 65 61 64 2d 65 76 65 6e | 74 20 63 68 20 33 32 20 |ead-even|t ch 32 |
|00004700| 73 65 74 2d 77 69 6e 64 | 6f 77 2d 63 6f 6e 66 69 |set-wind|ow-confi|
|00004710| 67 75 72 61 74 69 6f 6e | 20 75 6e 72 65 61 64 2d |guration| unread-|
|00004720| 63 6f 6d 6d 61 6e 64 2d | 65 76 65 6e 74 73 5d 20 |command-|events] |
|00004730| 36 20 22 5c 0a 4c 69 73 | 74 20 69 6e 20 68 65 6c |6 "\.Lis|t in hel|
|00004740| 70 20 62 75 66 66 65 72 | 20 74 68 65 20 62 75 66 |p buffer| the buf|
|00004750| 66 65 72 27 73 20 69 6e | 70 75 74 20 68 69 73 74 |fer's in|put hist|
|00004760| 6f 72 79 2e 22 20 6e 69 | 6c 5d 29 0a 28 62 79 74 |ory." ni|l]).(byt|
|00004770| 65 2d 63 6f 64 65 20 22 | c0 c1 c2 5c 22 88 c0 c3 |e-code "|...\"...|
|00004780| c4 5c 22 88 c0 c5 c6 5c | 22 87 22 20 5b 64 65 66 |.\"....\|"." [def|
|00004790| 61 6c 69 61 73 20 63 6f | 6d 69 6e 74 2d 72 65 67 |alias co|mint-reg|
|000047a0| 65 78 70 2d 61 72 67 20 | 23 5b 28 70 72 6f 6d 70 |exp-arg |#[(promp|
|000047b0| 74 29 20 22 c0 19 5c 6e | 1a c3 5c 66 c0 89 89 c5 |t) "..\n|..\f....|
|000047c0| 25 89 1e 06 c7 98 83 1b | 00 0d 89 41 40 a0 82 1d |%.......|...A@...|
|000047d0| 00 0e 06 c8 0e 09 21 2b | 44 87 22 20 5b 6e 69 6c |......!+|D." [nil|
|000047e0| 20 6d 69 6e 69 62 75 66 | 66 65 72 2d 68 69 73 74 | minibuf|fer-hist|
|000047f0| 6f 72 79 2d 73 65 78 70 | 2d 66 6c 61 67 20 6c 61 |ory-sexp|-flag la|
|00004800| 73 74 2d 63 6f 6d 6d 61 | 6e 64 20 72 65 61 64 2d |st-comma|nd read-|
|00004810| 66 72 6f 6d 2d 6d 69 6e | 69 62 75 66 66 65 72 20 |from-min|ibuffer |
|00004820| 70 72 6f 6d 70 74 20 6d | 69 6e 69 62 75 66 66 65 |prompt m|inibuffe|
|00004830| 72 2d 68 69 73 74 6f 72 | 79 2d 73 65 61 72 63 68 |r-histor|y-search|
|00004840| 2d 68 69 73 74 6f 72 79 | 20 72 65 67 65 78 70 20 |-history| regexp |
|00004850| 22 22 20 70 72 65 66 69 | 78 2d 6e 75 6d 65 72 69 |"" prefi|x-numeri|
|00004860| 63 2d 76 61 6c 75 65 20 | 63 75 72 72 65 6e 74 2d |c-value |current-|
|00004870| 70 72 65 66 69 78 2d 61 | 72 67 5d 20 37 5d 20 63 |prefix-a|rg] 7] c|
|00004880| 6f 6d 69 6e 74 2d 73 65 | 61 72 63 68 2d 61 72 67 |omint-se|arch-arg|
|00004890| 20 23 5b 28 61 72 67 29 | 20 22 c0 20 84 09 00 c1 | #[(arg)| ". ....|
|000048a0| c2 21 87 0b 83 13 00 c4 | 0b 21 83 17 00 c1 c5 21 |.!......|.!.....!|
|000048b0| 87 0e 06 c7 55 83 23 00 | c8 16 09 ca 87 0e 06 87 |....U.#.|........|
|000048c0| 22 20 5b 63 6f 6d 69 6e | 74 2d 61 66 74 65 72 2d |" [comin|t-after-|
|000048d0| 70 6d 61 72 6b 2d 70 20 | 65 72 72 6f 72 20 22 4e |pmark-p |error "N|
|000048e0| 6f 74 20 61 74 20 63 6f | 6d 6d 61 6e 64 20 6c 69 |ot at co|mmand li|
|000048f0| 6e 65 22 20 63 6f 6d 69 | 6e 74 2d 69 6e 70 75 74 |ne" comi|nt-input|
|00004900| 2d 72 69 6e 67 20 72 69 | 6e 67 2d 65 6d 70 74 79 |-ring ri|ng-empty|
|00004910| 2d 70 20 22 45 6d 70 74 | 79 20 69 6e 70 75 74 20 |-p "Empt|y input |
|00004920| 72 69 6e 67 22 20 61 72 | 67 20 30 20 6e 69 6c 20 |ring" ar|g 0 nil |
|00004930| 63 6f 6d 69 6e 74 2d 69 | 6e 70 75 74 2d 72 69 6e |comint-i|nput-rin|
|00004940| 67 2d 69 6e 64 65 78 20 | 31 5d 20 32 5d 20 63 6f |g-index |1] 2] co|
|00004950| 6d 69 6e 74 2d 73 65 61 | 72 63 68 2d 73 74 61 72 |mint-sea|rch-star|
|00004960| 74 20 23 5b 28 61 72 67 | 29 20 22 08 83 18 00 c1 |t #[(arg|) ".....|
|00004970| 08 5c 6e c3 56 83 10 00 | c4 82 11 00 c5 5c 5c c6 |.\n.V...|.....\\.|
|00004980| 0e 07 21 5c 22 87 5c 6e | c3 59 83 20 00 c3 87 c6 |..!\".\n|.Y. ....|
|00004990| 0e 07 21 53 87 22 20 5b | 63 6f 6d 69 6e 74 2d 69 |..!S." [|comint-i|
|000049a0| 6e 70 75 74 2d 72 69 6e | 67 2d 69 6e 64 65 78 20 |nput-rin|g-index |
|000049b0| 6d 6f 64 20 61 72 67 20 | 30 20 31 20 2d 31 20 72 |mod arg |0 1 -1 r|
|000049c0| 69 6e 67 2d 6c 65 6e 67 | 74 68 20 63 6f 6d 69 6e |ing-leng|th comin|
|000049d0| 74 2d 69 6e 70 75 74 2d | 72 69 6e 67 5d 20 34 5d |t-input-|ring] 4]|
|000049e0| 5d 20 33 29 0a 28 64 65 | 66 61 6c 69 61 73 20 27 |] 3).(de|falias '|
|000049f0| 63 6f 6d 69 6e 74 2d 70 | 72 65 76 69 6f 75 73 2d |comint-p|revious-|
|00004a00| 69 6e 70 75 74 2d 73 74 | 72 69 6e 67 20 23 5b 28 |input-st|ring #[(|
|00004a10| 61 72 67 29 20 22 c0 09 | 5c 6e 83 11 00 c3 5c 66 |arg) "..|\n....\f|
|00004a20| 5c 6e 5c 5c c5 09 21 5c | 22 82 12 00 5c 66 5c 22 |\n\\..!\|"...\f\"|
|00004a30| 87 22 20 5b 72 69 6e 67 | 2d 72 65 66 20 63 6f 6d |." [ring|-ref com|
|00004a40| 69 6e 74 2d 69 6e 70 75 | 74 2d 72 69 6e 67 20 63 |int-inpu|t-ring c|
|00004a50| 6f 6d 69 6e 74 2d 69 6e | 70 75 74 2d 72 69 6e 67 |omint-in|put-ring|
|00004a60| 2d 69 6e 64 65 78 20 6d | 6f 64 20 61 72 67 20 72 |-index m|od arg r|
|00004a70| 69 6e 67 2d 6c 65 6e 67 | 74 68 5d 20 36 20 22 5c |ing-leng|th] 6 "\|
|00004a80| 0a 52 65 74 75 72 6e 20 | 74 68 65 20 73 74 72 69 |.Return |the stri|
|00004a90| 6e 67 20 41 52 47 20 70 | 6c 61 63 65 73 20 61 6c |ng ARG p|laces al|
|00004aa0| 6f 6e 67 20 74 68 65 20 | 69 6e 70 75 74 20 72 69 |ong the |input ri|
|00004ab0| 6e 67 2e 0a 4d 6f 76 65 | 73 20 72 65 6c 61 74 69 |ng..Move|s relati|
|00004ac0| 76 65 20 74 6f 20 60 63 | 6f 6d 69 6e 74 2d 69 6e |ve to `c|omint-in|
|00004ad0| 70 75 74 2d 72 69 6e 67 | 2d 69 6e 64 65 78 27 2e |put-ring|-index'.|
|00004ae0| 22 5d 29 0a 28 64 65 66 | 61 6c 69 61 73 20 27 63 |"]).(def|alias 'c|
|00004af0| 6f 6d 69 6e 74 2d 70 72 | 65 76 69 6f 75 73 2d 69 |omint-pr|evious-i|
|00004b00| 6e 70 75 74 20 23 5b 28 | 61 72 67 29 20 22 c0 c1 |nput #[(|arg) "..|
|00004b10| 5c 6e 5c 22 87 22 20 5b | 63 6f 6d 69 6e 74 2d 70 |\n\"." [|comint-p|
|00004b20| 72 65 76 69 6f 75 73 2d | 6d 61 74 63 68 69 6e 67 |revious-|matching|
|00004b30| 2d 69 6e 70 75 74 20 22 | 2e 22 20 61 72 67 5d 20 |-input "|." arg] |
|00004b40| 33 20 22 5c 0a 43 79 63 | 6c 65 20 62 61 63 6b 77 |3 "\.Cyc|le backw|
|00004b50| 61 72 64 73 20 74 68 72 | 6f 75 67 68 20 69 6e 70 |ards thr|ough inp|
|00004b60| 75 74 20 68 69 73 74 6f | 72 79 2e 22 20 22 2a 70 |ut histo|ry." "*p|
|00004b70| 22 5d 29 0a 28 64 65 66 | 61 6c 69 61 73 20 27 63 |"]).(def|alias 'c|
|00004b80| 6f 6d 69 6e 74 2d 6e 65 | 78 74 2d 69 6e 70 75 74 |omint-ne|xt-input|
|00004b90| 20 23 5b 28 61 72 67 29 | 20 22 c0 09 5b 21 87 22 | #[(arg)| "..[!."|
|00004ba0| 20 5b 63 6f 6d 69 6e 74 | 2d 70 72 65 76 69 6f 75 | [comint|-previou|
|00004bb0| 73 2d 69 6e 70 75 74 20 | 61 72 67 5d 20 32 20 22 |s-input |arg] 2 "|
|00004bc0| 5c 0a 43 79 63 6c 65 20 | 66 6f 72 77 61 72 64 73 |\.Cycle |forwards|
|00004bd0| 20 74 68 72 6f 75 67 68 | 20 69 6e 70 75 74 20 68 | through| input h|
|00004be0| 69 73 74 6f 72 79 2e 22 | 20 22 2a 70 22 5d 29 0a |istory."| "*p"]).|
|00004bf0| 28 64 65 66 61 6c 69 61 | 73 20 27 63 6f 6d 69 6e |(defalia|s 'comin|
|00004c00| 74 2d 70 72 65 76 69 6f | 75 73 2d 6d 61 74 63 68 |t-previo|us-match|
|00004c10| 69 6e 67 2d 69 6e 70 75 | 74 2d 73 74 72 69 6e 67 |ing-inpu|t-string|
|00004c20| 20 23 5b 28 72 65 67 65 | 78 70 20 61 72 67 29 20 | #[(rege|xp arg) |
|00004c30| 22 c0 09 5c 6e 5c 22 89 | 1b 85 0d 00 c4 0d 0b 5c |"..\n\".|.......\|
|00004c40| 22 29 87 22 20 5b 63 6f | 6d 69 6e 74 2d 70 72 65 |")." [co|mint-pre|
|00004c50| 76 69 6f 75 73 2d 6d 61 | 74 63 68 69 6e 67 2d 69 |vious-ma|tching-i|
|00004c60| 6e 70 75 74 2d 73 74 72 | 69 6e 67 2d 70 6f 73 69 |nput-str|ing-posi|
|00004c70| 74 69 6f 6e 20 72 65 67 | 65 78 70 20 61 72 67 20 |tion reg|exp arg |
|00004c80| 70 6f 73 20 72 69 6e 67 | 2d 72 65 66 20 63 6f 6d |pos ring|-ref com|
|00004c90| 69 6e 74 2d 69 6e 70 75 | 74 2d 72 69 6e 67 5d 20 |int-inpu|t-ring] |
|00004ca0| 34 20 22 5c 0a 52 65 74 | 75 72 6e 20 74 68 65 20 |4 "\.Ret|urn the |
|00004cb0| 73 74 72 69 6e 67 20 6d | 61 74 63 68 69 6e 67 20 |string m|atching |
|00004cc0| 52 45 47 45 58 50 20 41 | 52 47 20 70 6c 61 63 65 |REGEXP A|RG place|
|00004cd0| 73 20 61 6c 6f 6e 67 20 | 74 68 65 20 69 6e 70 75 |s along |the inpu|
|00004ce0| 74 20 72 69 6e 67 2e 0a | 4d 6f 76 65 73 20 72 65 |t ring..|Moves re|
|00004cf0| 6c 61 74 69 76 65 20 74 | 6f 20 60 63 6f 6d 69 6e |lative t|o `comin|
|00004d00| 74 2d 69 6e 70 75 74 2d | 72 69 6e 67 2d 69 6e 64 |t-input-|ring-ind|
|00004d10| 65 78 27 2e 22 5d 29 0a | 28 64 65 66 61 6c 69 61 |ex'."]).|(defalia|
|00004d20| 73 20 27 63 6f 6d 69 6e | 74 2d 70 72 65 76 69 6f |s 'comin|t-previo|
|00004d30| 75 73 2d 6d 61 74 63 68 | 69 6e 67 2d 69 6e 70 75 |us-match|ing-inpu|
|00004d40| 74 2d 73 74 72 69 6e 67 | 2d 70 6f 73 69 74 69 6f |t-string|-positio|
|00004d50| 6e 20 23 5b 28 72 65 67 | 65 78 70 20 61 72 67 20 |n #[(reg|exp arg |
|00004d60| 26 6f 70 74 69 6f 6e 61 | 6c 20 73 74 61 72 74 29 |&optiona|l start)|
|00004d70| 20 22 c0 09 21 83 5c 66 | 00 c2 09 21 83 10 00 c3 | "..!.\f|...!....|
|00004d80| c4 21 88 c5 09 21 1e 06 | 0e 07 c8 56 83 20 00 c9 |.!...!..|...V. ..|
|00004d90| 82 21 00 ca 1e 0b cc 0e | 0d 86 2d 00 ce 0e 07 21 |.!......|..-....!|
|00004da0| 0e 0b 5a 0e 06 5c 22 1e | 0f d0 1e 11 d0 1e 12 0e |..Z..\".|........|
|00004db0| 07 c8 55 84 99 00 0e 11 | 84 99 00 0e 0f 16 12 cc |..U.....|........|
|00004dc0| 0e 0f 0e 0b 5c 5c 0e 06 | 5c 22 16 0f 0e 0f 0e 06 |....\\..|\"......|
|00004dd0| 57 83 83 00 0e 11 84 83 | 00 d3 0e 14 d5 09 0e 0f |W.......|........|
|00004de0| 5c 22 5c 22 84 83 00 cc | 0e 0f 0e 0b 5c 5c 0e 06 |\"\"....|....\\..|
|00004df0| 5c 22 89 16 0f 0e 12 55 | 16 11 82 56 00 0e 07 c8 |\".....U|...V....|
|00004e00| 56 83 90 00 0e 07 53 82 | 93 00 0e 07 54 89 16 07 |V.....S.|....T...|
|00004e10| 82 3d 00 d3 0e 14 d5 09 | 0e 0f 5c 22 5c 22 85 a7 |.=......|..\"\"..|
|00004e20| 00 0e 0f 2d 87 22 20 5b | 72 69 6e 67 2d 70 20 63 |...-." [|ring-p c|
|00004e30| 6f 6d 69 6e 74 2d 69 6e | 70 75 74 2d 72 69 6e 67 |omint-in|put-ring|
|00004e40| 20 72 69 6e 67 2d 65 6d | 70 74 79 2d 70 20 65 72 | ring-em|pty-p er|
|00004e50| 72 6f 72 20 22 4e 6f 20 | 68 69 73 74 6f 72 79 22 |ror "No |history"|
|00004e60| 20 72 69 6e 67 2d 6c 65 | 6e 67 74 68 20 6c 65 6e | ring-le|ngth len|
|00004e70| 20 61 72 67 20 30 20 31 | 20 2d 31 20 6d 6f 74 69 | arg 0 1| -1 moti|
|00004e80| 6f 6e 20 6d 6f 64 20 73 | 74 61 72 74 20 63 6f 6d |on mod s|tart com|
|00004e90| 69 6e 74 2d 73 65 61 72 | 63 68 2d 73 74 61 72 74 |int-sear|ch-start|
|00004ea0| 20 6e 20 6e 69 6c 20 74 | 72 69 65 64 2d 65 61 63 | n nil t|ried-eac|
|00004eb0| 68 2d 72 69 6e 67 2d 69 | 74 65 6d 20 70 72 65 76 |h-ring-i|tem prev|
|00004ec0| 20 73 74 72 69 6e 67 2d | 6d 61 74 63 68 20 72 65 | string-|match re|
|00004ed0| 67 65 78 70 20 72 69 6e | 67 2d 72 65 66 5d 20 36 |gexp rin|g-ref] 6|
|00004ee0| 20 22 5c 0a 52 65 74 75 | 72 6e 20 74 68 65 20 69 | "\.Retu|rn the i|
|00004ef0| 6e 64 65 78 20 6d 61 74 | 63 68 69 6e 67 20 52 45 |ndex mat|ching RE|
|00004f00| 47 45 58 50 20 41 52 47 | 20 70 6c 61 63 65 73 20 |GEXP ARG| places |
|00004f10| 61 6c 6f 6e 67 20 74 68 | 65 20 69 6e 70 75 74 20 |along th|e input |
|00004f20| 72 69 6e 67 2e 0a 4d 6f | 76 65 73 20 72 65 6c 61 |ring..Mo|ves rela|
|00004f30| 74 69 76 65 20 74 6f 20 | 53 54 41 52 54 2c 20 6f |tive to |START, o|
|00004f40| 72 20 60 63 6f 6d 69 6e | 74 2d 69 6e 70 75 74 2d |r `comin|t-input-|
|00004f50| 72 69 6e 67 2d 69 6e 64 | 65 78 27 2e 22 5d 29 0a |ring-ind|ex'."]).|
|00004f60| 28 64 65 66 61 6c 69 61 | 73 20 27 63 6f 6d 69 6e |(defalia|s 'comin|
|00004f70| 74 2d 70 72 65 76 69 6f | 75 73 2d 6d 61 74 63 68 |t-previo|us-match|
|00004f80| 69 6e 67 2d 69 6e 70 75 | 74 20 23 5b 28 72 65 67 |ing-inpu|t #[(reg|
|00004f90| 65 78 70 20 61 72 67 29 | 20 22 c0 09 21 11 c2 0b |exp arg)| "..!...|
|00004fa0| 09 5c 22 89 1c 84 13 00 | c5 c6 21 82 2a 00 5c 66 |.\".....|..!.*.\f|
|00004fb0| 16 07 c8 c9 5c 66 54 5c | 22 88 ca cb 70 21 21 60 |....\fT\|"...p!!`|
|00004fc0| 7c 88 cc 0e 0d 5c 66 5c | 22 63 29 87 22 20 5b 63 ||....\f\|"c)." [c|
|00004fd0| 6f 6d 69 6e 74 2d 73 65 | 61 72 63 68 2d 61 72 67 |omint-se|arch-arg|
|00004fe0| 20 61 72 67 20 63 6f 6d | 69 6e 74 2d 70 72 65 76 | arg com|int-prev|
|00004ff0| 69 6f 75 73 2d 6d 61 74 | 63 68 69 6e 67 2d 69 6e |ious-mat|ching-in|
|00005000| 70 75 74 2d 73 74 72 69 | 6e 67 2d 70 6f 73 69 74 |put-stri|ng-posit|
|00005010| 69 6f 6e 20 72 65 67 65 | 78 70 20 70 6f 73 20 65 |ion rege|xp pos e|
|00005020| 72 72 6f 72 20 22 4e 6f | 74 20 66 6f 75 6e 64 22 |rror "No|t found"|
|00005030| 20 63 6f 6d 69 6e 74 2d | 69 6e 70 75 74 2d 72 69 | comint-|input-ri|
|00005040| 6e 67 2d 69 6e 64 65 78 | 20 6d 65 73 73 61 67 65 |ng-index| message|
|00005050| 20 22 48 69 73 74 6f 72 | 79 20 69 74 65 6d 3a 20 | "Histor|y item: |
|00005060| 25 64 22 20 70 72 6f 63 | 65 73 73 2d 6d 61 72 6b |%d" proc|ess-mark|
|00005070| 20 67 65 74 2d 62 75 66 | 66 65 72 2d 70 72 6f 63 | get-buf|fer-proc|
|00005080| 65 73 73 20 72 69 6e 67 | 2d 72 65 66 20 63 6f 6d |ess ring|-ref com|
|00005090| 69 6e 74 2d 69 6e 70 75 | 74 2d 72 69 6e 67 5d 20 |int-inpu|t-ring] |
|000050a0| 34 20 22 5c 0a 53 65 61 | 72 63 68 20 62 61 63 6b |4 "\.Sea|rch back|
|000050b0| 77 61 72 64 73 20 74 68 | 72 6f 75 67 68 20 69 6e |wards th|rough in|
|000050c0| 70 75 74 20 68 69 73 74 | 6f 72 79 20 66 6f 72 20 |put hist|ory for |
|000050d0| 6d 61 74 63 68 20 66 6f | 72 20 52 45 47 45 58 50 |match fo|r REGEXP|
|000050e0| 2e 0a 28 50 72 65 76 69 | 6f 75 73 20 68 69 73 74 |..(Previ|ous hist|
|000050f0| 6f 72 79 20 65 6c 65 6d | 65 6e 74 73 20 61 72 65 |ory elem|ents are|
|00005100| 20 65 61 72 6c 69 65 72 | 20 63 6f 6d 6d 61 6e 64 | earlier| command|
|00005110| 73 2e 29 0a 57 69 74 68 | 20 70 72 65 66 69 78 20 |s.).With| prefix |
|00005120| 61 72 67 75 6d 65 6e 74 | 20 4e 2c 20 73 65 61 72 |argument| N, sear|
|00005130| 63 68 20 66 6f 72 20 4e | 74 68 20 70 72 65 76 69 |ch for N|th previ|
|00005140| 6f 75 73 20 6d 61 74 63 | 68 2e 0a 49 66 20 4e 20 |ous matc|h..If N |
|00005150| 69 73 20 6e 65 67 61 74 | 69 76 65 2c 20 66 69 6e |is negat|ive, fin|
|00005160| 64 20 74 68 65 20 6e 65 | 78 74 20 6f 72 20 4e 74 |d the ne|xt or Nt|
|00005170| 68 20 6e 65 78 74 20 6d | 61 74 63 68 2e 22 20 28 |h next m|atch." (|
|00005180| 63 6f 6d 69 6e 74 2d 72 | 65 67 65 78 70 2d 61 72 |comint-r|egexp-ar|
|00005190| 67 20 22 50 72 65 76 69 | 6f 75 73 20 69 6e 70 75 |g "Previ|ous inpu|
|000051a0| 74 20 6d 61 74 63 68 69 | 6e 67 20 28 72 65 67 65 |t matchi|ng (rege|
|000051b0| 78 70 29 3a 20 22 29 5d | 29 0a 28 64 65 66 61 6c |xp): ")]|).(defal|
|000051c0| 69 61 73 20 27 63 6f 6d | 69 6e 74 2d 6e 65 78 74 |ias 'com|int-next|
|000051d0| 2d 6d 61 74 63 68 69 6e | 67 2d 69 6e 70 75 74 20 |-matchin|g-input |
|000051e0| 23 5b 28 72 65 67 65 78 | 70 20 61 72 67 29 20 22 |#[(regex|p arg) "|
|000051f0| c0 09 5c 6e 5b 5c 22 87 | 22 20 5b 63 6f 6d 69 6e |..\n[\".|" [comin|
|00005200| 74 2d 70 72 65 76 69 6f | 75 73 2d 6d 61 74 63 68 |t-previo|us-match|
|00005210| 69 6e 67 2d 69 6e 70 75 | 74 20 72 65 67 65 78 70 |ing-inpu|t regexp|
|00005220| 20 61 72 67 5d 20 33 20 | 22 5c 0a 53 65 61 72 63 | arg] 3 |"\.Searc|
|00005230| 68 20 66 6f 72 77 61 72 | 64 73 20 74 68 72 6f 75 |h forwar|ds throu|
|00005240| 67 68 20 69 6e 70 75 74 | 20 68 69 73 74 6f 72 79 |gh input| history|
|00005250| 20 66 6f 72 20 6d 61 74 | 63 68 20 66 6f 72 20 52 | for mat|ch for R|
|00005260| 45 47 45 58 50 2e 0a 28 | 4c 61 74 65 72 20 68 69 |EGEXP..(|Later hi|
|00005270| 73 74 6f 72 79 20 65 6c | 65 6d 65 6e 74 73 20 61 |story el|ements a|
|00005280| 72 65 20 6d 6f 72 65 20 | 72 65 63 65 6e 74 20 63 |re more |recent c|
|00005290| 6f 6d 6d 61 6e 64 73 2e | 29 0a 57 69 74 68 20 70 |ommands.|).With p|
|000052a0| 72 65 66 69 78 20 61 72 | 67 75 6d 65 6e 74 20 4e |refix ar|gument N|
|000052b0| 2c 20 73 65 61 72 63 68 | 20 66 6f 72 20 4e 74 68 |, search| for Nth|
|000052c0| 20 66 6f 6c 6c 6f 77 69 | 6e 67 20 6d 61 74 63 68 | followi|ng match|
|000052d0| 2e 0a 49 66 20 4e 20 69 | 73 20 6e 65 67 61 74 69 |..If N i|s negati|
|000052e0| 76 65 2c 20 66 69 6e 64 | 20 74 68 65 20 70 72 65 |ve, find| the pre|
|000052f0| 76 69 6f 75 73 20 6f 72 | 20 4e 74 68 20 70 72 65 |vious or| Nth pre|
|00005300| 76 69 6f 75 73 20 6d 61 | 74 63 68 2e 22 20 28 63 |vious ma|tch." (c|
|00005310| 6f 6d 69 6e 74 2d 72 65 | 67 65 78 70 2d 61 72 67 |omint-re|gexp-arg|
|00005320| 20 22 4e 65 78 74 20 69 | 6e 70 75 74 20 6d 61 74 | "Next i|nput mat|
|00005330| 63 68 69 6e 67 20 28 72 | 65 67 65 78 70 29 3a 20 |ching (r|egexp): |
|00005340| 22 29 5d 29 0a 28 64 65 | 66 61 6c 69 61 73 20 27 |")]).(de|falias '|
|00005350| 63 6f 6d 69 6e 74 2d 70 | 72 65 76 69 6f 75 73 2d |comint-p|revious-|
|00005360| 6d 61 74 63 68 69 6e 67 | 2d 69 6e 70 75 74 2d 66 |matching|-input-f|
|00005370| 72 6f 6d 2d 69 6e 70 75 | 74 20 23 5b 28 61 72 67 |rom-inpu|t #[(arg|
|00005380| 29 20 22 08 c1 3e 84 11 | 00 c2 c3 70 21 21 60 7b |) "..>..|...p!!`{|
|00005390| 14 c5 16 06 c7 c8 c9 5c | 66 21 50 0e 5c 6e 5c 22 |.......\|f!P.\n\"|
|000053a0| 87 22 20 5b 6c 61 73 74 | 2d 63 6f 6d 6d 61 6e 64 |." [last|-command|
|000053b0| 20 28 63 6f 6d 69 6e 74 | 2d 70 72 65 76 69 6f 75 | (comint|-previou|
|000053c0| 73 2d 6d 61 74 63 68 69 | 6e 67 2d 69 6e 70 75 74 |s-matchi|ng-input|
|000053d0| 2d 66 72 6f 6d 2d 69 6e | 70 75 74 20 63 6f 6d 69 |-from-in|put comi|
|000053e0| 6e 74 2d 6e 65 78 74 2d | 6d 61 74 63 68 69 6e 67 |nt-next-|matching|
|000053f0| 2d 69 6e 70 75 74 2d 66 | 72 6f 6d 2d 69 6e 70 75 |-input-f|rom-inpu|
|00005400| 74 29 20 70 72 6f 63 65 | 73 73 2d 6d 61 72 6b 20 |t) proce|ss-mark |
|00005410| 67 65 74 2d 62 75 66 66 | 65 72 2d 70 72 6f 63 65 |get-buff|er-proce|
|00005420| 73 73 20 63 6f 6d 69 6e | 74 2d 6d 61 74 63 68 69 |ss comin|t-matchi|
|00005430| 6e 67 2d 69 6e 70 75 74 | 2d 66 72 6f 6d 2d 69 6e |ng-input|-from-in|
|00005440| 70 75 74 2d 73 74 72 69 | 6e 67 20 6e 69 6c 20 63 |put-stri|ng nil c|
|00005450| 6f 6d 69 6e 74 2d 69 6e | 70 75 74 2d 72 69 6e 67 |omint-in|put-ring|
|00005460| 2d 69 6e 64 65 78 20 63 | 6f 6d 69 6e 74 2d 70 72 |-index c|omint-pr|
|00005470| 65 76 69 6f 75 73 2d 6d | 61 74 63 68 69 6e 67 2d |evious-m|atching-|
|00005480| 69 6e 70 75 74 20 22 5e | 22 20 72 65 67 65 78 70 |input "^|" regexp|
|00005490| 2d 71 75 6f 74 65 20 61 | 72 67 5d 20 34 20 22 5c |-quote a|rg] 4 "\|
|000054a0| 0a 53 65 61 72 63 68 20 | 62 61 63 6b 77 61 72 64 |.Search |backward|
|000054b0| 73 20 74 68 72 6f 75 67 | 68 20 69 6e 70 75 74 20 |s throug|h input |
|000054c0| 68 69 73 74 6f 72 79 20 | 66 6f 72 20 6d 61 74 63 |history |for matc|
|000054d0| 68 20 66 6f 72 20 63 75 | 72 72 65 6e 74 20 69 6e |h for cu|rrent in|
|000054e0| 70 75 74 2e 0a 28 50 72 | 65 76 69 6f 75 73 20 68 |put..(Pr|evious h|
|000054f0| 69 73 74 6f 72 79 20 65 | 6c 65 6d 65 6e 74 73 20 |istory e|lements |
|00005500| 61 72 65 20 65 61 72 6c | 69 65 72 20 63 6f 6d 6d |are earl|ier comm|
|00005510| 61 6e 64 73 2e 29 0a 57 | 69 74 68 20 70 72 65 66 |ands.).W|ith pref|
|00005520| 69 78 20 61 72 67 75 6d | 65 6e 74 20 4e 2c 20 73 |ix argum|ent N, s|
|00005530| 65 61 72 63 68 20 66 6f | 72 20 4e 74 68 20 70 72 |earch fo|r Nth pr|
|00005540| 65 76 69 6f 75 73 20 6d | 61 74 63 68 2e 0a 49 66 |evious m|atch..If|
|00005550| 20 4e 20 69 73 20 6e 65 | 67 61 74 69 76 65 2c 20 | N is ne|gative, |
|00005560| 73 65 61 72 63 68 20 66 | 6f 72 77 61 72 64 73 20 |search f|orwards |
|00005570| 66 6f 72 20 74 68 65 20 | 2d 4e 74 68 20 66 6f 6c |for the |-Nth fol|
|00005580| 6c 6f 77 69 6e 67 20 6d | 61 74 63 68 2e 22 20 22 |lowing m|atch." "|
|00005590| 70 22 5d 29 0a 28 64 65 | 66 61 6c 69 61 73 20 27 |p"]).(de|falias '|
|000055a0| 63 6f 6d 69 6e 74 2d 6e | 65 78 74 2d 6d 61 74 63 |comint-n|ext-matc|
|000055b0| 68 69 6e 67 2d 69 6e 70 | 75 74 2d 66 72 6f 6d 2d |hing-inp|ut-from-|
|000055c0| 69 6e 70 75 74 20 23 5b | 28 61 72 67 29 20 22 c0 |input #[|(arg) ".|
|000055d0| 09 5b 21 87 22 20 5b 63 | 6f 6d 69 6e 74 2d 70 72 |.[!." [c|omint-pr|
|000055e0| 65 76 69 6f 75 73 2d 6d | 61 74 63 68 69 6e 67 2d |evious-m|atching-|
|000055f0| 69 6e 70 75 74 2d 66 72 | 6f 6d 2d 69 6e 70 75 74 |input-fr|om-input|
|00005600| 20 61 72 67 5d 20 32 20 | 22 5c 0a 53 65 61 72 63 | arg] 2 |"\.Searc|
|00005610| 68 20 66 6f 72 77 61 72 | 64 73 20 74 68 72 6f 75 |h forwar|ds throu|
|00005620| 67 68 20 69 6e 70 75 74 | 20 68 69 73 74 6f 72 79 |gh input| history|
|00005630| 20 66 6f 72 20 6d 61 74 | 63 68 20 66 6f 72 20 63 | for mat|ch for c|
|00005640| 75 72 72 65 6e 74 20 69 | 6e 70 75 74 2e 0a 28 46 |urrent i|nput..(F|
|00005650| 6f 6c 6c 6f 77 69 6e 67 | 20 68 69 73 74 6f 72 79 |ollowing| history|
|00005660| 20 65 6c 65 6d 65 6e 74 | 73 20 61 72 65 20 6d 6f | element|s are mo|
|00005670| 72 65 20 72 65 63 65 6e | 74 20 63 6f 6d 6d 61 6e |re recen|t comman|
|00005680| 64 73 2e 29 0a 57 69 74 | 68 20 70 72 65 66 69 78 |ds.).Wit|h prefix|
|00005690| 20 61 72 67 75 6d 65 6e | 74 20 4e 2c 20 73 65 61 | argumen|t N, sea|
|000056a0| 72 63 68 20 66 6f 72 20 | 4e 74 68 20 66 6f 6c 6c |rch for |Nth foll|
|000056b0| 6f 77 69 6e 67 20 6d 61 | 74 63 68 2e 0a 49 66 20 |owing ma|tch..If |
|000056c0| 4e 20 69 73 20 6e 65 67 | 61 74 69 76 65 2c 20 73 |N is neg|ative, s|
|000056d0| 65 61 72 63 68 20 62 61 | 63 6b 77 61 72 64 73 20 |earch ba|ckwards |
|000056e0| 66 6f 72 20 74 68 65 20 | 2d 4e 74 68 20 70 72 65 |for the |-Nth pre|
|000056f0| 76 69 6f 75 73 20 6d 61 | 74 63 68 2e 22 20 22 70 |vious ma|tch." "p|
|00005700| 22 5d 29 0a 28 64 65 66 | 61 6c 69 61 73 20 27 63 |"]).(def|alias 'c|
|00005710| 6f 6d 69 6e 74 2d 72 65 | 70 6c 61 63 65 2d 62 79 |omint-re|place-by|
|00005720| 2d 65 78 70 61 6e 64 65 | 64 2d 68 69 73 74 6f 72 |-expande|d-histor|
|00005730| 79 20 23 5b 28 26 6f 70 | 74 69 6f 6e 61 6c 20 73 |y #[(&op|tional s|
|00005740| 69 6c 65 6e 74 29 20 22 | 08 85 2c 00 c1 c2 0b 20 |ilent) "|..,.... |
|00005750| 5c 22 85 2c 00 8a c4 79 | 88 c5 0e 06 21 29 85 2c |\".,...y|....!).,|
|00005760| 00 c7 20 1e 08 c9 ca 21 | 88 cb 0e 5c 66 21 88 0e |.. ....!|...\f!..|
|00005770| 08 c7 20 55 29 3f 87 22 | 20 5b 63 6f 6d 69 6e 74 |.. U)?."| [comint|
|00005780| 2d 69 6e 70 75 74 2d 61 | 75 74 6f 65 78 70 61 6e |-input-a|utoexpan|
|00005790| 64 20 73 74 72 69 6e 67 | 2d 6d 61 74 63 68 20 22 |d string|-match "|
|000057a0| 5b 21 5e 5d 22 20 63 6f | 6d 69 6e 74 2d 67 65 74 |[!^]" co|mint-get|
|000057b0| 2d 6f 6c 64 2d 69 6e 70 | 75 74 20 30 20 6c 6f 6f |-old-inp|ut 0 loo|
|000057c0| 6b 69 6e 67 2d 61 74 20 | 63 6f 6d 69 6e 74 2d 70 |king-at |comint-p|
|000057d0| 72 6f 6d 70 74 2d 72 65 | 67 65 78 70 20 62 75 66 |rompt-re|gexp buf|
|000057e0| 66 65 72 2d 6d 6f 64 69 | 66 69 65 64 2d 74 69 63 |fer-modi|fied-tic|
|000057f0| 6b 20 70 72 65 76 69 6f | 75 73 2d 6d 6f 64 69 66 |k previo|us-modif|
|00005800| 69 65 64 2d 74 69 63 6b | 20 6d 65 73 73 61 67 65 |ied-tick| message|
|00005810| 20 22 45 78 70 61 6e 64 | 69 6e 67 20 68 69 73 74 | "Expand|ing hist|
|00005820| 6f 72 79 20 72 65 66 65 | 72 65 6e 63 65 73 2e 2e |ory refe|rences..|
|00005830| 2e 22 20 63 6f 6d 69 6e | 74 2d 72 65 70 6c 61 63 |." comin|t-replac|
|00005840| 65 2d 62 79 2d 65 78 70 | 61 6e 64 65 64 2d 68 69 |e-by-exp|anded-hi|
|00005850| 73 74 6f 72 79 2d 62 65 | 66 6f 72 65 2d 70 6f 69 |story-be|fore-poi|
|00005860| 6e 74 20 73 69 6c 65 6e | 74 5d 20 33 20 22 5c 0a |nt silen|t] 3 "\.|
|00005870| 45 78 70 61 6e 64 20 69 | 6e 70 75 74 20 63 6f 6d |Expand i|nput com|
|00005880| 6d 61 6e 64 20 68 69 73 | 74 6f 72 79 20 72 65 66 |mand his|tory ref|
|00005890| 65 72 65 6e 63 65 73 20 | 62 65 66 6f 72 65 20 70 |erences |before p|
|000058a0| 6f 69 6e 74 2e 0a 45 78 | 70 61 6e 73 69 6f 6e 20 |oint..Ex|pansion |
|000058b0| 69 73 20 64 65 70 65 6e | 64 65 6e 74 20 6f 6e 20 |is depen|dent on |
|000058c0| 74 68 65 20 76 61 6c 75 | 65 20 6f 66 20 60 63 6f |the valu|e of `co|
|000058d0| 6d 69 6e 74 2d 69 6e 70 | 75 74 2d 61 75 74 6f 65 |mint-inp|ut-autoe|
|000058e0| 78 70 61 6e 64 27 2e 0a | 0a 54 68 69 73 20 66 75 |xpand'..|.This fu|
|000058f0| 6e 63 74 69 6f 6e 20 64 | 65 70 65 6e 64 73 20 6f |nction d|epends o|
|00005900| 6e 20 74 68 65 20 62 75 | 66 66 65 72 27 73 20 69 |n the bu|ffer's i|
|00005910| 64 65 61 20 6f 66 20 74 | 68 65 20 69 6e 70 75 74 |dea of t|he input|
|00005920| 20 68 69 73 74 6f 72 79 | 2c 20 77 68 69 63 68 20 | history|, which |
|00005930| 6d 61 79 20 6e 6f 74 0a | 6d 61 74 63 68 20 74 68 |may not.|match th|
|00005940| 65 20 63 6f 6d 6d 61 6e | 64 20 69 6e 74 65 72 70 |e comman|d interp|
|00005950| 72 65 74 65 72 27 73 20 | 69 64 65 61 2c 20 61 73 |reter's |idea, as|
|00005960| 73 75 6d 69 6e 67 20 69 | 74 20 68 61 73 20 6f 6e |suming i|t has on|
|00005970| 65 2e 0a 0a 41 73 73 75 | 6d 65 73 20 68 69 73 74 |e...Assu|mes hist|
|00005980| 6f 72 79 20 73 79 6e 74 | 61 78 20 69 73 20 6c 69 |ory synt|ax is li|
|00005990| 6b 65 20 74 79 70 69 63 | 61 6c 20 55 6e 2a 78 20 |ke typic|al Un*x |
|000059a0| 73 68 65 6c 6c 73 27 2e | 20 20 48 6f 77 65 76 65 |shells'.| Howeve|
|000059b0| 72 2c 20 73 69 6e 63 65 | 20 65 6d 61 63 73 0a 63 |r, since| emacs.c|
|000059c0| 61 6e 6e 6f 74 20 6b 6e | 6f 77 20 74 68 65 20 69 |annot kn|ow the i|
|000059d0| 6e 74 65 72 70 72 65 74 | 65 72 27 73 20 69 64 65 |nterpret|er's ide|
|000059e0| 61 20 6f 66 20 69 6e 70 | 75 74 20 6c 69 6e 65 20 |a of inp|ut line |
|000059f0| 6e 75 6d 62 65 72 73 2c | 20 61 73 73 75 6d 69 6e |numbers,| assumin|
|00005a00| 67 20 69 74 20 68 61 73 | 20 6f 6e 65 2c 0a 69 74 |g it has| one,.it|
|00005a10| 20 63 61 6e 6e 6f 74 20 | 65 78 70 61 6e 64 20 61 | cannot |expand a|
|00005a20| 62 73 6f 6c 75 74 65 20 | 69 6e 70 75 74 20 6c 69 |bsolute |input li|
|00005a30| 6e 65 20 6e 75 6d 62 65 | 72 20 72 65 66 65 72 65 |ne numbe|r refere|
|00005a40| 6e 63 65 73 2e 0a 0a 49 | 66 20 74 68 65 20 6f 70 |nces...I|f the op|
|00005a50| 74 69 6f 6e 61 6c 20 61 | 72 67 75 6d 65 6e 74 20 |tional a|rgument |
|00005a60| 53 49 4c 45 4e 54 20 69 | 73 20 6e 6f 6e 2d 6e 69 |SILENT i|s non-ni|
|00005a70| 6c 2c 20 6e 65 76 65 72 | 20 63 6f 6d 70 6c 61 69 |l, never| complai|
|00005a80| 6e 0a 65 76 65 6e 20 69 | 66 20 68 69 73 74 6f 72 |n.even i|f histor|
|00005a90| 79 20 72 65 66 65 72 65 | 6e 63 65 20 73 65 65 6d |y refere|nce seem|
|00005aa0| 73 20 65 72 72 6f 6e 65 | 6f 75 73 2e 0a 0a 53 65 |s errone|ous...Se|
|00005ab0| 65 20 60 63 6f 6d 69 6e | 74 2d 6d 61 67 69 63 2d |e `comin|t-magic-|
|00005ac0| 73 70 61 63 65 27 20 61 | 6e 64 20 60 63 6f 6d 69 |space' a|nd `comi|
|00005ad0| 6e 74 2d 72 65 70 6c 61 | 63 65 2d 62 79 2d 65 78 |nt-repla|ce-by-ex|
|00005ae0| 70 61 6e 64 65 64 2d 68 | 69 73 74 6f 72 79 2d 62 |panded-h|istory-b|
|00005af0| 65 66 6f 72 65 2d 70 6f | 69 6e 74 27 2e 0a 0a 52 |efore-po|int'...R|
|00005b00| 65 74 75 72 6e 73 20 74 | 20 69 66 20 73 75 63 63 |eturns t| if succ|
|00005b10| 65 73 73 66 75 6c 2e 22 | 20 6e 69 6c 5d 29 0a 28 |essful."| nil]).(|
|00005b20| 64 65 66 61 6c 69 61 73 | 20 27 63 6f 6d 69 6e 74 |defalias| 'comint|
|00005b30| 2d 72 65 70 6c 61 63 65 | 2d 62 79 2d 65 78 70 61 |-replace|-by-expa|
|00005b40| 6e 64 65 64 2d 68 69 73 | 74 6f 72 79 2d 62 65 66 |nded-his|tory-bef|
|00005b50| 6f 72 65 2d 70 6f 69 6e | 74 20 23 5b 28 73 69 6c |ore-poin|t #[(sil|
|00005b60| 65 6e 74 29 20 22 8a 8a | c0 7f 88 60 29 60 5a c1 |ent) "..|...`)`Z.|
|00005b70| c0 21 88 60 1a 1b c4 8a | c0 7f 88 60 0b 5a 29 77 |.!.`....|...`.Z)w|
|00005b80| 88 60 8a c0 7f 88 60 0b | 5a 29 57 85 88 01 c0 15 |.`....`.|Z)W.....|
|00005b90| 68 c6 55 84 37 00 c7 5c | 6e 60 5c 22 83 3e 00 60 |h.U.7..\|n`\".>.`|
|00005ba0| 54 62 88 82 10 00 c8 c9 | 21 83 4f 00 ca 95 62 88 |Tb......|!.O...b.|
|00005bb0| cb cc 21 88 82 10 00 c8 | cd 21 83 90 00 ce cf 94 |..!.....|.!......|
|00005bc0| cf 95 7b 21 53 89 1e 10 | d1 0e 12 21 58 83 84 00 |..{!S...|...!X...|
|00005bd0| d3 d4 d5 0e 10 21 d6 94 | d6 95 23 d7 89 23 88 0e |.....!..|..#..#..|
|00005be0| 10 15 cb d8 0e 10 54 5c | 22 88 82 8c 00 ca 95 62 |......T\|"......b|
|00005bf0| 88 cb d9 21 88 29 82 10 | 00 c8 da 21 84 9c 00 c8 |...!.)..|...!....|
|00005c00| db 21 83 b1 00 d3 d4 d5 | ca 21 cf 94 cf 95 23 d7 |.!......|.!....#.|
|00005c10| 89 23 88 cb dc 21 88 82 | 10 00 c8 dd 21 83 36 01 |.#...!..|....!.6.|
|00005c20| cf 94 1e 1e cf 95 1e 1f | d6 94 1e 20 d6 95 1e 21 |........|... ...!|
|00005c30| 0e 20 86 ce 00 0e 1e 0e | 21 86 d5 00 0e 1f 7b 1e |. ......|!.....{.|
|00005c40| 5c 22 e3 20 1e 24 e5 8e | c8 e6 21 2a 83 e9 00 e7 |\". .$..|..!*....|
|00005c50| 82 ea 00 e8 1e 29 e3 20 | 1e 2a eb 8e ec 0e 29 ed |.....). |.*....).|
|00005c60| 0e 5c 22 21 50 cf 5c 22 | 2a 89 1e 2e 84 16 01 ca |.\"!P.\"|*.......|
|00005c70| 95 62 88 0e 2f 84 31 01 | cb f0 21 88 f1 20 88 82 |.b../.1.|..!.. ..|
|00005c80| 31 01 0e 2e 15 d3 d4 f2 | 0e 12 0e 2e 5c 22 f3 94 |1.......|....\"..|
|00005c90| f3 95 23 d7 89 23 88 cb | d8 0e 2e 54 5c 22 88 2e |..#..#..|...T\"..|
|00005ca0| 07 82 10 00 c8 f4 21 83 | 81 01 cf 94 cf 95 7b d6 |......!.|......{.|
|00005cb0| 94 d6 95 7b c0 1e 2e 1e | 35 1e 36 d3 d5 ca 21 d7 |...{....|5.6...!.|
|00005cc0| 89 23 88 60 16 2e ca 94 | 62 88 f7 0e 36 0e 2e d7 |.#.`....|b...6...|
|00005cd0| 23 84 72 01 0e 2f 84 7d | 01 f8 f0 21 88 82 7d 01 |#.r../.}|...!..}.|
|00005ce0| d3 0e 35 d7 89 23 88 cb | f9 21 88 2b 82 10 00 ca |..5..#..|.!.+....|
|00005cf0| 95 62 88 82 10 00 2b 87 | 22 20 5b 6e 69 6c 20 63 |.b....+.|" [nil c|
|00005d00| 6f 6d 69 6e 74 2d 62 6f | 6c 20 73 74 61 72 74 20 |omint-bo|l start |
|00005d10| 74 6f 65 6e 64 20 22 5e | 21 5e 22 20 63 6f 6d 69 |toend "^|!^" comi|
|00005d20| 6e 74 2d 69 6e 70 75 74 | 2d 72 69 6e 67 2d 69 6e |nt-input|-ring-in|
|00005d30| 64 65 78 20 39 32 20 63 | 6f 6d 69 6e 74 2d 77 69 |dex 92 c|omint-wi|
|00005d40| 74 68 69 6e 2d 71 75 6f | 74 65 73 20 6c 6f 6f 6b |thin-quo|tes look|
|00005d50| 69 6e 67 2d 61 74 20 22 | 21 5b 30 2d 39 5d 2b 5c |ing-at "|![0-9]+\|
|00005d60| 5c 28 24 5c 5c 7c 5b 5e | 2d 5d 5c 5c 29 22 20 30 |\($\\|[^|-]\\)" 0|
|00005d70| 20 6d 65 73 73 61 67 65 | 20 22 41 62 73 6f 6c 75 | message| "Absolu|
|00005d80| 74 65 20 72 65 66 65 72 | 65 6e 63 65 20 63 61 6e |te refer|ence can|
|00005d90| 6e 6f 74 20 62 65 20 65 | 78 70 61 6e 64 65 64 22 |not be e|xpanded"|
|00005da0| 20 22 21 2d 5c 5c 28 5b | 30 2d 39 5d 2b 5c 5c 29 | "!-\\([|0-9]+\\)|
|00005db0| 5c 5c 28 3a 3f 5b 30 2d | 39 5e 24 2a 2d 5d 2b 5c |\\(:?[0-|9^$*-]+\|
|00005dc0| 5c 29 3f 22 20 73 74 72 | 69 6e 67 2d 74 6f 2d 6e |\)?" str|ing-to-n|
|00005dd0| 75 6d 62 65 72 20 31 20 | 6e 75 6d 62 65 72 20 72 |umber 1 |number r|
|00005de0| 69 6e 67 2d 6c 65 6e 67 | 74 68 20 63 6f 6d 69 6e |ing-leng|th comin|
|00005df0| 74 2d 69 6e 70 75 74 2d | 72 69 6e 67 20 72 65 70 |t-input-|ring rep|
|00005e00| 6c 61 63 65 2d 6d 61 74 | 63 68 20 63 6f 6d 69 6e |lace-mat|ch comin|
|00005e10| 74 2d 61 72 67 73 20 63 | 6f 6d 69 6e 74 2d 70 72 |t-args c|omint-pr|
|00005e20| 65 76 69 6f 75 73 2d 69 | 6e 70 75 74 2d 73 74 72 |evious-i|nput-str|
|00005e30| 69 6e 67 20 32 20 74 20 | 22 48 69 73 74 6f 72 79 |ing 2 t |"History|
|00005e40| 20 69 74 65 6d 3a 20 25 | 64 22 20 22 52 65 6c 61 | item: %|d" "Rela|
|00005e50| 74 69 76 65 20 72 65 66 | 65 72 65 6e 63 65 20 65 |tive ref|erence e|
|00005e60| 78 63 65 65 64 73 20 69 | 6e 70 75 74 20 68 69 73 |xceeds i|nput his|
|00005e70| 74 6f 72 79 20 73 69 7a | 65 22 20 22 21 21 3f 3a |tory siz|e" "!!?:|
|00005e80| 3f 5c 5c 28 5b 30 2d 39 | 5e 24 2a 2d 5d 2b 5c 5c |?\\([0-9|^$*-]+\\|
|00005e90| 29 22 20 22 21 21 22 20 | 22 48 69 73 74 6f 72 79 |)" "!!" |"History|
|00005ea0| 20 69 74 65 6d 3a 20 70 | 72 65 76 69 6f 75 73 22 | item: p|revious"|
|00005eb0| 20 22 21 5c 5c 3f 3f 5c | 5c 28 7b 5c 5c 28 2e 2b | "!\\??\|\({\\(.+|
|00005ec0| 5c 5c 29 7d 5c 5c 7c 5c | 5c 28 5c 5c 73 77 2b 5c |\\)}\\|\|\(\\sw+\|
|00005ed0| 5c 29 5c 5c 29 5c 5c 28 | 3a 3f 5b 30 2d 39 5e 24 |\)\\)\\(|:?[0-9^$|
|00005ee0| 2a 2d 5d 2b 5c 5c 29 3f | 22 20 6d 62 31 20 6d 65 |*-]+\\)?|" mb1 me|
|00005ef0| 31 20 6d 62 32 20 6d 65 | 32 20 65 78 70 20 6d 61 |1 mb2 me|2 exp ma|
|00005f00| 74 63 68 2d 64 61 74 61 | 20 6d 61 74 63 68 2d 64 |tch-data| match-d|
|00005f10| 61 74 61 20 28 28 73 74 | 6f 72 65 2d 6d 61 74 63 |ata ((st|ore-matc|
|00005f20| 68 2d 64 61 74 61 20 6d | 61 74 63 68 2d 64 61 74 |h-data m|atch-dat|
|00005f30| 61 29 29 20 22 21 5c 5c | 3f 22 20 22 22 20 22 5e |a)) "!\\|?" "" "^|
|00005f40| 22 20 70 72 65 66 20 6d | 61 74 63 68 2d 64 61 74 |" pref m|atch-dat|
|00005f50| 61 20 28 28 73 74 6f 72 | 65 2d 6d 61 74 63 68 2d |a ((stor|e-match-|
|00005f60| 64 61 74 61 20 6d 61 74 | 63 68 2d 64 61 74 61 29 |data mat|ch-data)|
|00005f70| 29 20 63 6f 6d 69 6e 74 | 2d 70 72 65 76 69 6f 75 |) comint|-previou|
|00005f80| 73 2d 6d 61 74 63 68 69 | 6e 67 2d 69 6e 70 75 74 |s-matchi|ng-input|
|00005f90| 2d 73 74 72 69 6e 67 2d | 70 6f 73 69 74 69 6f 6e |-string-|position|
|00005fa0| 20 72 65 67 65 78 70 2d | 71 75 6f 74 65 20 70 6f | regexp-|quote po|
|00005fb0| 73 20 73 69 6c 65 6e 74 | 20 22 4e 6f 74 20 66 6f |s silent| "Not fo|
|00005fc0| 75 6e 64 22 20 64 69 6e | 67 20 72 69 6e 67 2d 72 |und" din|g ring-r|
|00005fd0| 65 66 20 34 20 22 5c 5c | 5e 5c 5c 28 5b 5e 5e 5d |ef 4 "\\|^\\([^^]|
|00005fe0| 2b 5c 5c 29 5c 5c 5e 3f | 5c 5c 28 5b 5e 5e 5d 2a |+\\)\\^?|\\([^^]*|
|00005ff0| 5c 5c 29 5c 5c 5e 3f 22 | 20 6e 65 77 20 6f 6c 64 |\\)\\^?"| new old|
|00006000| 20 73 65 61 72 63 68 2d | 66 6f 72 77 61 72 64 20 | search-|forward |
|00006010| 65 72 72 6f 72 20 22 48 | 69 73 74 6f 72 79 20 69 |error "H|istory i|
|00006020| 74 65 6d 3a 20 73 75 62 | 73 74 69 74 75 74 65 64 |tem: sub|stituted|
|00006030| 22 5d 20 36 20 22 5c 0a | 45 78 70 61 6e 64 20 64 |"] 6 "\.|Expand d|
|00006040| 69 72 65 63 74 6f 72 79 | 20 73 74 61 63 6b 20 72 |irectory| stack r|
|00006050| 65 66 65 72 65 6e 63 65 | 20 62 65 66 6f 72 65 20 |eference| before |
|00006060| 70 6f 69 6e 74 2e 0a 53 | 65 65 20 60 63 6f 6d 69 |point..S|ee `comi|
|00006070| 6e 74 2d 72 65 70 6c 61 | 63 65 2d 62 79 2d 65 78 |nt-repla|ce-by-ex|
|00006080| 70 61 6e 64 65 64 2d 68 | 69 73 74 6f 72 79 27 2e |panded-h|istory'.|
|00006090| 20 20 52 65 74 75 72 6e | 73 20 74 20 69 66 20 73 | Return|s t if s|
|000060a0| 75 63 63 65 73 73 66 75 | 6c 2e 22 5d 29 0a 28 64 |uccessfu|l."]).(d|
|000060b0| 65 66 61 6c 69 61 73 20 | 27 63 6f 6d 69 6e 74 2d |efalias |'comint-|
|000060c0| 6d 61 67 69 63 2d 73 70 | 61 63 65 20 23 5b 28 61 |magic-sp|ace #[(a|
|000060d0| 72 67 29 20 22 c0 20 88 | c1 5c 6e 21 87 22 20 5b |rg) ". .|.\n!." [|
|000060e0| 63 6f 6d 69 6e 74 2d 72 | 65 70 6c 61 63 65 2d 62 |comint-r|eplace-b|
|000060f0| 79 2d 65 78 70 61 6e 64 | 65 64 2d 68 69 73 74 6f |y-expand|ed-histo|
|00006100| 72 79 20 73 65 6c 66 2d | 69 6e 73 65 72 74 2d 63 |ry self-|insert-c|
|00006110| 6f 6d 6d 61 6e 64 20 61 | 72 67 5d 20 32 20 22 5c |ommand a|rg] 2 "\|
|00006120| 0a 45 78 70 61 6e 64 20 | 69 6e 70 75 74 20 68 69 |.Expand |input hi|
|00006130| 73 74 6f 72 79 20 72 65 | 66 65 72 65 6e 63 65 73 |story re|ferences|
|00006140| 20 62 65 66 6f 72 65 20 | 70 6f 69 6e 74 20 61 6e | before |point an|
|00006150| 64 20 69 6e 73 65 72 74 | 20 41 52 47 20 73 70 61 |d insert| ARG spa|
|00006160| 63 65 73 2e 0a 41 20 75 | 73 65 66 75 6c 20 63 6f |ces..A u|seful co|
|00006170| 6d 6d 61 6e 64 20 74 6f | 20 62 69 6e 64 20 74 6f |mmand to| bind to|
|00006180| 20 53 50 43 2e 20 20 53 | 65 65 20 60 63 6f 6d 69 | SPC. S|ee `comi|
|00006190| 6e 74 2d 72 65 70 6c 61 | 63 65 2d 62 79 2d 65 78 |nt-repla|ce-by-ex|
|000061a0| 70 61 6e 64 65 64 2d 68 | 69 73 74 6f 72 79 27 2e |panded-h|istory'.|
|000061b0| 22 20 22 70 22 5d 29 0a | 28 64 65 66 61 6c 69 61 |" "p"]).|(defalia|
|000061c0| 73 20 27 63 6f 6d 69 6e | 74 2d 77 69 74 68 69 6e |s 'comin|t-within|
|000061d0| 2d 71 75 6f 74 65 73 20 | 23 5b 28 62 65 67 20 65 |-quotes |#[(beg e|
|000061e0| 6e 64 29 20 22 c0 c1 5c | 6e 0b 23 c0 c4 5c 6e 0b |nd) "..\|n.#..\n.|
|000061f0| 23 1d 1e 06 c7 0e 06 c8 | 5c 22 c9 55 86 1d 00 c7 |#.......|\".U....|
|00006200| 0d c8 5c 22 c9 55 2a 87 | 22 20 5b 63 6f 6d 69 6e |..\".U*.|" [comin|
|00006210| 74 2d 68 6f 77 2d 6d 61 | 6e 79 2d 72 65 67 69 6f |t-how-ma|ny-regio|
|00006220| 6e 20 22 5c 5c 28 5e 5c | 5c 7c 5b 5e 5c 5c 5c 5c |n "\\(^\|\|[^\\\\|
|00006230| 5d 5c 5c 29 27 22 20 62 | 65 67 20 65 6e 64 20 22 |]\\)'" b|eg end "|
|00006240| 5c 5c 28 5e 5c 5c 7c 5b | 5e 5c 5c 5c 5c 5d 5c 5c |\\(^\\|[|^\\\\]\\|
|00006250| 29 5c 22 22 20 63 6f 75 | 6e 74 64 71 20 63 6f 75 |)\"" cou|ntdq cou|
|00006260| 6e 74 73 71 20 6d 6f 64 | 20 32 20 31 5d 20 35 20 |ntsq mod| 2 1] 5 |
|00006270| 22 5c 0a 52 65 74 75 72 | 6e 20 74 20 69 66 20 74 |"\.Retur|n t if t|
|00006280| 68 65 20 6e 75 6d 62 65 | 72 20 6f 66 20 71 75 6f |he numbe|r of quo|
|00006290| 74 65 73 20 62 65 74 77 | 65 65 6e 20 42 45 47 20 |tes betw|een BEG |
|000062a0| 61 6e 64 20 45 4e 44 20 | 69 73 20 6f 64 64 2e 0a |and END |is odd..|
|000062b0| 51 75 6f 74 65 73 20 61 | 72 65 20 73 69 6e 67 6c |Quotes a|re singl|
|000062c0| 65 20 61 6e 64 20 64 6f | 75 62 6c 65 2e 22 5d 29 |e and do|uble."])|
|000062d0| 0a 28 64 65 66 61 6c 69 | 61 73 20 27 63 6f 6d 69 |.(defali|as 'comi|
|000062e0| 6e 74 2d 68 6f 77 2d 6d | 61 6e 79 2d 72 65 67 69 |nt-how-m|any-regi|
|000062f0| 6f 6e 20 23 5b 28 72 65 | 67 65 78 70 20 62 65 67 |on #[(re|gexp beg|
|00006300| 20 65 6e 64 29 20 22 c0 | 19 8a c2 20 1b c4 8e 0d | end) ".|... ....|
|00006310| 62 88 c6 0e 07 0e 08 c9 | 23 83 1b 00 09 54 11 82 |b.......|#....T..|
|00006320| 0b 00 2b 09 29 87 22 20 | 5b 30 20 63 6f 75 6e 74 |..+.)." |[0 count|
|00006330| 20 6d 61 74 63 68 2d 64 | 61 74 61 20 6d 61 74 63 | match-d|ata matc|
|00006340| 68 2d 64 61 74 61 20 28 | 28 73 74 6f 72 65 2d 6d |h-data (|(store-m|
|00006350| 61 74 63 68 2d 64 61 74 | 61 20 6d 61 74 63 68 2d |atch-dat|a match-|
|00006360| 64 61 74 61 29 29 20 62 | 65 67 20 72 65 2d 73 65 |data)) b|eg re-se|
|00006370| 61 72 63 68 2d 66 6f 72 | 77 61 72 64 20 72 65 67 |arch-for|ward reg|
|00006380| 65 78 70 20 65 6e 64 20 | 74 5d 20 34 20 22 5c 0a |exp end |t] 4 "\.|
|00006390| 52 65 74 75 72 6e 20 6e | 75 6d 62 65 72 20 6f 66 |Return n|umber of|
|000063a0| 20 6d 61 74 63 68 65 73 | 20 66 6f 72 20 52 45 47 | matches| for REG|
|000063b0| 45 58 50 20 66 72 6f 6d | 20 42 45 47 20 74 6f 20 |EXP from| BEG to |
|000063c0| 45 4e 44 2e 22 5d 29 0a | 28 62 79 74 65 2d 63 6f |END."]).|(byte-co|
|000063d0| 64 65 20 22 c0 c1 c2 5c | 22 88 c0 c3 c4 5c 22 87 |de "...\|"....\".|
|000063e0| 22 20 5b 64 65 66 61 6c | 69 61 73 20 63 6f 6d 69 |" [defal|ias comi|
|000063f0| 6e 74 2d 61 72 67 73 20 | 23 5b 28 73 74 72 69 6e |nt-args |#[(strin|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.